Needed this in a script to automatically add a firewall rule to my Azure SQL server:

 

$externalIP = (New-Object net.webclient).downloadstring("http://checkip.dyndns.com") -replace "[^\d\.]"

Posted by svdoever | 3 comment(s)
Filed under: ,

Recently working a lot with JSON data. Needed a debugger visualizer for JSON. Found one at: http://jsonviewer.codeplex.com/

Copy contents of the visualizer folder in the zip package to VisualStudioInstallPath\Common7\Packages\Debugger\Visualizers (on my machine this is C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Packages\Debugger\Visualizers) and working! See http://msdn.microsoft.com/en-us/library/sb2yca43(v=vs.110).aspx for other instalation options.

SNAGHTML8c38f1dd

SNAGHTML8c3e0925

Posted by svdoever | with no comments
Filed under:

I’m developing LightSwitch code in c# but didn’t get intellisense. After configuring Resharper to use the Visual Studio intellisense I finally got intellisense, and you need that in LightSwitch development!

SNAGHTML12a68c6

Posted by svdoever | with no comments
Filed under:

SharePoint list items have in the the base Item template a field named Order. This field is not shown by default.

SharePoint 2007, 2010 and 2013 have a possibility to specify the order in a UI, using the _layouts page:

{SiteUrl}/_layouts/Reorder.aspx?List={ListId}

In SharePoint 2010 and 2013 it is possible to add a custom action to a list. It is possible to add a custom action to order list items as follows (SharePoint 2010 description):

  1. Open SharePoint Designer 2010
  2. Navigate to a list
  3. Select Custom Actions > List Item Menu
    image
  4. Fill in the dialog box:
    SNAGHTML100ead33
    SNAGHTML100f1567
  5. Open List Settings > Advanced Settings > Content Types, and set Allow management of content types to No 
  6. On List Settings select Column Orderingimage

This results in the following UI in the browser:

image

Selecting the custom Order Items action (under List Tools > Items) results in:

image

You can change your custom action in SharePoint designer. On the list screen in the bottom right corner you can find the custom action:

image

We now need to modify the view to include the order by adding the Order field to the view, and sorting on the Order field. Problem is that the Order field is hidden. It is possible to modify the schema of the Order field to set the Hidden attribute to FALSE. If we don’t want to write code to do it and still get the required result it is also possible to modify the view through SharePoint Designer:

image

Modify the code of the view:

image

This results in:

image

Note that if you change the view through the web UI these changes are partly lost. If this is a problem modify the Order field schema for the list.

Posted by svdoever | 16 comment(s)
Filed under:

Sometimes you need an icon in a site, but don’t want to (or can’t) add the icons themselves to the site. A good example is http://jsfiddle.net (a playground for web developers) where you can only edit html, Javascript and css, but can’t add any icons. In my case I need some icons for a custom SharePoint list action on Office365. I could add the icons to a SharePoint picture library, but I don’t want to do that. So after some search I stumbled upon this StackOverflow question. In one of the answers the site the site http://www.iconfinder.com was mentioned, together with a link to a post describing that linking to the icons from their CDN is allowed (if licence permits it):

https://getsatisfaction.com/iconfinder/topics/direct_linking_to_icons_from_iconfinder

I love their search UI where you can specify a search term, that you want a transparent background, the size of the icon, and that you want an unlicensed icon.

image

To get the CDN url, select the icon, and on the following screen right-click on the icon and select Copy Image Location.

 

image

This results in the following url: http://cdn1.iconfinder.com/data/icons/fugue/icon/edit-list-order.png.

Posted by svdoever | 36 comment(s)

When I need an icon I use Google search for images, type in the usage for the icon, for example order, and specify an exact size for the icon.

Until recently…

 

Google in their infinite wisdom decided to change the image search UI:

image

Select Search tools:

image

As you can see, no exact size can be specified… you can specify Icon, but no size for the icon.

After some searching I found this question nicely answered. An the answer is…. add the following to your search terms:

imagesize:widthxheight

So search for: order imagesize:16x16

 

This results in some messed up UI:

image

The next step is that I want to specify the type of image. In the new UI I get the following options:

image

That’s not what I mean…I want to say gif or png!

 

If we go to the Google advanced image search page (http://www.google.com/advanced_image_search), we see some other options:

image

After some fiddling we extend our search to: order imagesize:16x16 filetype:png

image

The Google search UI is modified again!

 

Happy image searching!

Posted by svdoever | 21 comment(s)
Filed under:

The new SharePoint is running on the .Net 4 framework, but still using ASP.NET web forms, and not ASP.NET MVC. As far as I can see its running on ASP.NET Web Forms 4.0, although Chris O’Brian (http://www.sharepointnutsandbolts.com/2012/07/sharepoint-2013-my-view-on-whats-new.html) says that ASP.NET Web Forms 4.5 is used.

image

What is the best method to see which version of ASP.NET web forms is running?

Posted by svdoever | 65 comment(s)
Filed under:

I’m a happy customer of http://www.cloudshare.com, and only days after the release of SharePoint 2013 preview I was able to spin up an instance of SharePoint Server 2013 with the following configuration:

SharePoint Server 2013 Preview

Description: OS: Windows Server 2012 RC x64
Spec: 80 GB HD / 8 GB RAM
Installed:
• SharePoint Server 2013 Preview
• SQL Server 2012 Standard
• Visual Studio 2012 RC Ultimate Edition
• SharePoint Designer 2013 Preview
• Adobe Reader

The machine works like a breeze, although I already had some SharePoint crashes. But hey, it’s a preview!

Kudo’s to CloudShare for getting a template machine up and running so fast.

PS: I’m in no way affiliated to CloudShare, just a happy customer.

Posted by svdoever | 33 comment(s)
Filed under:

Today I released version 1.4.0.3. of SharePoint.DesignFactory.ContentFiles. This is a bugfix release where the following issues are fixed:

Change Log - SharePoint.DesignFactory.ContentFiles v1.4.0.3
===========================================================

Product Version:

1.4.0.3
- Fixed issue: Documentation and Sample.ps1 machine configuration file had missing ';' after first line of configuration (SharePointDeployment = 'ClientObjectModel')
- Fixed issue: UseClaims flag of machine configuration was not passed correctly, so Claims Authenticated deployment with client object model (Office365 for example) was not working
- Fixed issue: Custom configurations not working due to missing parameter in Deploy.cmd and Redeploy.cmd
               See:
http://myspworld.wordpress.com/2012/06/25/deploy-content-files-to-sharepoint-using-sharepoint-designfactory-contentfiles/ (thanks Amadeu)
1.4.0.2
- Fixed issue: Code outside begin block when doing ClientObjectModel deployment
- Fixed issue: Not all files packaged (fixed by Danny)
- Fixed issue: Deployment path incorrect (one letter missing)

1.4.0.1
- Fixed issue: Mapped folder ABC would also deploy files in unmapped folder ABCD due to startswith() logic.

1.4.0.0
- Initial release to general public.

To upgrade the NuGet package to a new version execute the following steps:

  1. To upgrade your NuGet package following the following steps:
  2. Right-click on solution or project, and select Manage NuGet packages…
  3. In the Manage NuGet Packages screen click left on Updates
    clip_image002
  4. Select the SharePoint.DesignFactory.ContentFiles package and press the Update button
  5. Open from the menu Build the Configuration Manager
  6. Make the project configurations match the solution configurations (always mixed up after uninstall/install or update)
    clip_image004

This should get you up and running!

For Facebook with 900.000.000 users one of the most important things is performance. Core libraries of Facebook are written in C++, and some of these libraries are now open-source on github: https://github.com/facebook/folly. See also the blog post http://herbsutter.com/2012/06/02/facebook-folly-oss-c-libraries/ and the discussions in this post where other C++ libraries open sourced by big companies are mentioned. There is already someone working on getting the libraries to work under Windows and Visual Studio at the fork: https://github.com/jbandela/folly/tree/vc11/.

Posted by svdoever | 41 comment(s)
Filed under:
More Posts Next page »