HTML5 Web Workers and AJAX

One of the new features in HTML5 allows asynchronous JavaScript operations to happen on the web freeing your UI thread to continue and not lock up the user providing a rich user experience. But how do you use AJAX along with the web workers to post data back to the server? This proves a little more difficult because we are limited to basic JavaScript calls. We can’t use jQuery from within the web worker, so we have to rely on our old friend the XMLHttpRequest.

Posted in HTML5, JavaScript, JQuery | Tagged , , | Leave a comment

Taking Sammy to the SPA

Web applications are now expected to be as responsive and immersive as desktop applications. In my opinion, Single Page Applications or SPAs are where the web is going and many sites you are already familiar, with such as Gmail, are already there. However writing an application on the web poses some unique concerns. Being on the web, users will expect the forward and back button to work and to be able to bookmark pages. Having a SPA poses some problems since everything is done on a single page. So how do you provide support for back and forward buttons and support for bookmarks? Enter Sammy.js

Posted in JavaScript | Tagged , , | 1 Comment

Using Templates to Generate HTML from JSON

Instead of generating HTML inside of JavaScript by concatenating strings to form your display code you can use JSRender to apply templates to your JSON objects in order to greatly simplify your code.
As an example I am going to create a simple form that takes in some person information and uses JQuery and JSRender to display it back on the page.

Posted in JavaScript, JQuery | 1 Comment

Creating Entity Framework POCO Objects with EF 4.x POCO Entity Generator

If you’re using Entity Framework and want to quickly generate POCO objects, EF 4.x POCO Entity Generator is a great tool to use. By simply downloading and installing the EF POCO Template from here if you’re using C# or from here if you’re using VB, you’re 90% of the way there.

Posted in .Net, ASP.NET, Entity Framework, Visual Studio | Tagged , , , , , , , | Leave a comment

Sorting a SharePoint List in Report Builder

I recently needed to display a list of items in alphabetical order for a multi select parameter inside of a report.  I was using Report Builder 3.0 and there is no option for sorting the list in the user interface.  Many people recommended sorting the list before returning it to the report. This wasn’t really an option for me because I was pulling the data from a SharePoint list that I didn’t have control over.

Posted in Development, SharePoint 2010, SSRS | 1 Comment

Quickly Creating a Virtual Machine using Windows Azure Powershell

I have recently been demoing Quick virtual machine build-up using Powershell and Windows Azure.  My demos are based upon the excellent tutorial for the New-AzureQuickVM functionality described here (http://msdn.microsoft.com/en-us/library/windowsazure/jj835085.aspx#bk_Quick).  I thought it would be useful to share the script of my demo and the slight modifications I have made to the tutorial if it will help anyone else out.

Posted in Powershell, Windows Azure | Tagged , , | 1 Comment

Leveraging Visual Studio 2012 for Node.js development

Lately I have been working through many good tutorials and books on Node.js. I have always wondered whether or not I could use Visual Studio as my development environment when developing for Node.js. I had a couple of things I wanted; First, I wanted to be able to use the syntax highlighting and formatting tools within Visual Studio.  Second, I wanted to take advantage of the improved JavaScript Intellisense available in Visual Studio.  Finally, I wanted to integrate the Run step in Visual Studio with the Node.js server.

Posted in JavaScript, Node.js, Visual Studio | Tagged , , | Leave a comment

SharePoint 2013 Power View Error: rsCannotRetrieveModel

I was setting up SharePoint 2013 with SQL Server 2012 SP1.  I ran into an error that started with “rsCannotRetrieveModel” whenever I would try to create a Power View report from a PowerPivot workbook.  With all the reporting services and PowerPivot services becoming deeply integrated with SharePoint 2013, there needs to be a clear security plan.  After seeing a lot of posts where people were reporting this error and not seeing many good answers, I finally found an answer that actually worked for this problem in my environment and the answer actually makes sense.

Posted in Business Intelligence, SharePoint 2013, SQL 2012 | 2 Comments

A Snippet to Create New Snippets in PowerShell ISE v3

I came across this article on how to create a new snippet in PowerShell ISE v3. I wanted to take it a step further and have a snippet for creating new snippets so not to have to remember this each time.

Posted in PowerShell | Tagged | Leave a comment

Print to PDF in SharePoint 2013

You have probably heard by now that SharePoint 2013 has native PDF support. If you haven’t, then your jaw probably just hit the floor. That’s right; we now have things like a PDF iFilter built right in for searching PDFs. Add in the new features of Office Web Apps 2013 and you have options like “Print to PDF” directly from the document preview pane. Let’s go over how that looks and the steps necessary to complete.

Posted in SharePoint 2013 | Tagged | Leave a comment