Prabir's Blog

open source geek and lover of all tech  

JQuery intellisense has been around for quite a long time. And the great news is that it is officially supported by Microsoft. Its a lightweight JavaScript framework having huger users.

Installing Intellisense support:

  1. Make sure you are running the Service Pack 1 of Visual Studio installed. You can download it from here.
  2. Then download the JScript editor support for “-vsdoc.js” patch (KB958502) at the end of this post or from MSDN.
  3. Then go to the official JQuery download page at http://docs.jquery.com/Downloading_jQuery#Download_jQuery.

imageSelect the Visual Studio documentation when downloading.

Then reference the JavaScript file you just downloaded

<script type="text/javascript" src="js/jquery-1.3.2-vsdoc2.js"></script>

 

Now you must be getting the intellisense support in your visual studio. Pages that inherits from master page will get the intellisense support, But the user controls will not be getting the intellisense support. To do that you can use the following hack.

<% if (false){ %>
        <script type="text/javascript" src="js/jquery-1.3.2-vsdoc2.js"></script>
<% } %>

The expression will always evaluate to false. That means *-vsdoc2.js file will never be added to the webpage. But the visual studio will evaluate it and provide the intellisense support.

image

The way I use JQuery:

Since the *-vsdoc2.js file is quite huge I prefer to use .min.js version of JQuery. I reference it by using the following way.

<script type="text/javascript" src='<%= ResolveClientUrl("~/js/jquery-1.3.2.min.js") %>'></script>
<% if (false){ %>
     <script type="text/javascript" src="js/jquery-1.3.2-vsdoc2.js"></script>
<% } %>

Notice the ResolveClientUrl. Its helpful when your page inherits from the master page and the page lies in different folder.

Another way is rather just reference .min.js file and add the following line at the top of the file.

/// <reference path="jquery-1.3.2-vsdoc.js" />

This allows the Visual Studio to automatically recognize the file and provide appropriate intellisense support.

VS90SP1-KB958502-x86.exe (JSEditor Patch) (2.13 mb)
jquery-1.3.2-all.zip (95.67 kb)

[noadsense]

Linus Torvalds has made some comments regarding the submission of 20,000 lines of code to the Linux Kernel.

Linus hasn’t actually looked at the code yet but has commented on it:

I'm a big believer in "technology over politics". I don't care who it comes from, as long as there are solid reasons for the code, and as long as we don't have to worry about licensing etc issues.

I may make jokes about Microsoft at times, but at the same time, I think the Microsoft hatred is a disease. I believe in open development, and that very much involves not just making the source open, but also not shutting other people and companies out.

There are 'extremists' in the free software world, but that's one major reason why I don't call what I do 'free software' any more. I don't want to be associated with the people for whom it's about exclusion and hatred."

For detailed information please refer to here.

This is Microsoft’s second GPL license -- a popular open-source license it's criticized in the past -- but now the company seems to be embracing it. The other one being open source learning system Moodle.

For those of you who have not know about Microsoft’s solution to the N-Tier system, you should hurry up and learn more about it. Its already been months old with two public releases (Preview versions).

Microsoft calls it .NET RIA services. What the hell is it and how is it different from traditional 2-tier and 3-tier systems?

Microsoft .NET RIA Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms. The RIA Services provides a pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes and custom operations. It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier.

Untitled

I have posted some links below to help get familiarize with .NET RIA services.

Installing July 2009 preview: Download the installer from here. (Prerequisites: Visual Studio 2008SP1 or Visual Web Developer SP1 and Silverlight 3.0 Runtime,SDK and Tools. You are required to uninstall March / May 2009 Preview before installing the newer version.

More information/tutorials on it can be found at

  1. http://code.msdn.microsoft.com/RiaServices
  2. http://blogs.msdn.com/brada/archive/2009/03/19/what-is-net-ria-services.aspx
  3. http://silverlight.net/forums/t/108916.aspx
  4. http://blogs.microsoft.co.il/blogs/bursteg/archive/2009/04/04/build-a-simple-application-with-net-ria-services-silverlight-3.aspx
  5. http://www.silverlightshow.net/items/Creating-applications-with-.NET-RIA-Service-Part-1-Introduction.aspx
  6. http://blogs.microsoft.co.il/blogs/bursteg/archive/tags/.Net+RIA+Services/default.aspx

I had been one of those luck guys, to get an invitation to join the Office 2010 Technical Preview (thanks to Microsoft). As I was studying for my exams, going through the PowerPoint slides, I discovered a new feature. It is called Reading View. As you can see in the screenshot below, it allows the PowerPoint slide to take the full view and yet bet able to see the taskbar. This useful feature enables me to chat with friends, or do some other things simultaneously (especially when studying for exams, I communicate with friends about the particular note in the slide. :-)

imageI think this can be useful to you guys out there. To activate it, you can click the Reading View button on the bottom right of PowerPoint.

image