$site=Get-SPSite $siteURL $web=$site.RootWeb $list=$web.Lists.TryGetList($listName) if($list -ne $null) { write-host -f green $listName "exists in the site" } else { write-host -f yellow $listName "does not exist in the site"

json http://sharein-dev.corp.ponet/innop-r/r01/Working%20Documents/Forms/AllItems.aspx \\sdctwp0253\LivraisonIC\TopAppsMasterDataRepository-dev\2017-02-08_17-11-24_TopAppsMasterDataRepository-dev_1.0.2.44655\APPS\SPDeploy Add-PSSnapin Microsoft.Sharepoint.Powershell $site = Get-SPSite "SiteURL" $sitelists = foreach ($web in $site.AllWebs) { foreach($list in $web.lists){ $list }} $sitelists |select Title | Export-CSV C:\liststitles.csv Remove-PsSnapin Microsoft.SharePoint.PowerShell http://topshare.corp.ponet/sites/cs1369-ResearchProjectTool/_layouts/15/WopiFrame.aspx?sourcedoc=/sites/cs1369-ResearchProjectTool/Shared%20Documents/Detailed%20Description%20of%20Business%20Need.docx&action=default http://topshare.corp.ponet/sites/cs1369-ResearchProjectTool/_layouts/15/WopiFrame.aspx?sourcedoc=/sites/cs1369-ResearchProjectTool/Shared%20Documents/Specifications%20-%20Research%20Project%20Tool%20-%20Phase%202.docx&action=defaul…
$(function() { var isCustomerNominated = $("#IsCustomerNominated");; isCustomerNominated.on("change", function (e) {$(this)); }) }); function hideAirline() { var contractedAirline = $("#contractedAirline"); if (":checked")) { contractedAirline.css("visibility", "visible"); } else { contractedAirline.css("visibility", "hidden"); } }

Initializing xslt variable with static content

I had to use a variable in an xslt template. The value for that variable would be returned by a stored procedure at a SQL Server DB. So, I decided to populate the variable with static content:

    <xsl:variable name="hideColumns" select ="'ISBN,author_id,vendor_id'" />

Populated with the static content, the variable proved to be a good replacement for the real-life data. So, as soon as the stored procedure was deployed, my xslt template was readily updated with the appropriate select statement in the hideColumns variable declaration.

T-SQL: COALESCE returns int for integer operations

DECLARE @can_import BIT



jQuery | remove inline style

Summary: The jQuery.UI dialog widget can be called on a dynamically created <div />. In this case, the element will have its height set to 30px. A possible solution could be setting height to the empty string using the css() method. Normally the jQuery.UI dialog is called on an existing element. But it can also be bound to a dynamically created element:
var confirmText = Would you like to edit this task as the administrator user?'; // dynamically create <div /> to call the dialog on $('<div />').appendTo(document.forms[0]) .attr('id', 'div1') .attr('title', 'Dialog Title') .text(confirmText); // initialize the dialog $('#div1').dialog(); The resulting dialog assigns div1 to the message pane. But it also adds inline styling that squeezes div1 to the height of 30px, like this:
To fix this issue just remove the height style from div1:
$('#div1').dialog().css('height', ''); This seems to be …

Enable the full .NET Framework in Console Application

Console Projects created by Visual Studio 2010 support only a limited subset of the .NET Framework (read more about this on MSDN). This means that for such projects some libraries will be filtered away by VS2010 from the Add a Reference dialog.
To gain access to all .NET libraries available on your PC, you may want to tweak the element called TargetFrameworkProfile in the project file (=<your-project-name>.csproj). Follow the steps below:
Open that file in a code editor of your choice (for example, in Notepad++),Find the TargetFrameworkProfile element. Notice that it is set to Client like below:
<TargetFrameworkProfile>Client</TargetFrameworkProfile>.Change it to <TargetFrameworkProfile  />.Then restart the project and enjoy the full version of the .NET Framework!Note: As of .NET 4.5, the TargetFrameworkProfile property is discontinued (for more details see here).