Today I am trying out JQuery on Visual Studio 2008 for the first time. I go to the website at www.jquery.com and downloaded the library as well as the document for Visual Studio.
So I imported the JQuery library into my VS project
But when I want to try to the intellisense, I notice it is not working!! It should be able to recognize the famous $!!
Then I realize at the bottom of the VS IDE, there is an error message -
Warning 1 Error updating JScript IntelliSense: D:\workspace\Projects\JQuerySample\JQuerySample\scripts\jquery-1.3.2.js: Object doesn’t support this property or method @ 2139:1 D:\workspace\Projects\JQuerySample\JQuerySample\Default.aspx 1 1 JQuerySample
But this is not a bug inside the JQuery library itself. So I went back to scottgu’s blog post about on JQuery I notice something very difference with his library (besides the fact that he is using version 1.2.6).

I notice mine has got an extra number 2 at the end of vsdoc there. So I go back to the Google code side where I downloaded the file and I found out en they release a new vsdoc file to replace the exisiting deplecated one, they ‘tangan gatal’ change the name to jquery-1.3.2-vsdoc2.js. VS Interllisense only programmed to regconized [Javascript file name]-vsdoc.js without the 2 at the back there.
That vsdoc2 is the cause of the problem here! Just rename it to jquery-1.3.2-vsdoc.js and you got JQuery Intellisense working!

I know this is not the place to blog about family relationships (where are the codes?!) but when you have Raymond Chen (author of the book Old New Thing and developer in Windows Shell team) talked about this topic and finding out that he can write in Chinese then this is awesome.
Normally we Asians think that in English there are no word/ vocabulary to tell you want relationship you have with i.e. your father’s sister in law’s daughter. Chinese have word for every relationship but in English an uncle is just uncle, outsiders of your family won’t know when you call your uncle it’s your dad’s side or mum’s side. But here in Raymond’s blog post, I actually find out there is.
http://blogs.msdn.com/oldnewthing/archive/2009/04/27/9570320.aspx
I added MSMQ to my WCF web service (which was running OK) by adding the following endpoint to the service in web.config file
<endpoint
address="net.msmq://server/private/queue1"
binding="netMsmqBinding"
bindingConfiguration="MsmqConfiguration"
contract="ITestQueue" />
I also added the following binding
<netMsmqBinding>
<binding name="MsmqConfiguration"
exactlyOnce="false">
<security mode="None"/>
</binding>
</netMsmqBinding>
Once I deployed the Wcf service on Windows Server 2008, I also enable net.msmq on the website using the following command
appcmd set app "localhost/service" /enabledProtocols:net.msmq
However when I try to point to the svc file from my browser I got an Error 503 instead. Removing the MSMQ endpoint and I have the service up and running again.
After that I have a look at the website via the IIS Management Console and I realize that http protocol is not enabled for the website anymore
A normal web app will have http protocol such as below
At last I figure out that the appcmd actually overwrote the settings instead of adding on to it. So the correct appcmd command is:-
appcmd set app "localhost/service" /enabledProtocols:net.msmq, http
And I have the site running again with both http and msmq protocol enabled.
The Windows team blog annouced that the final testing milestone for Win7 which is the RC will be available to MSDN and TechNet subscribers on 30th April.
On the mean time Paul Thurrott’s Super Site for Windows has tons of screenshots for Windows 7RC. Compared to Beta, I don’t see much difference except the news about a Virtual Windows XP Classic Mode.
Now I wonder how Paul got access to the build?
My fellow SharePoint User Group co-founder Matthew was invited to speak at International Association of Software Architects (IASA) this Tuesday and he presented a topic on SharePoint Content Governance. About 15 members from IASA attended the talk held at Microsoft Malaysia’s office.

Got invited by Software Consortium of Penang (SCoPe) to conduct a one day course on Composite Application Guidance for WPF (Prism) and Sync Framework. Due to short notice, about 8 participants turned up for the weekend workshop.
My Prism hands on labs are downloadable here.
http://cid-732d1d42507315a3.skydrive.live.com/browse.aspx/Public/Prism
Go here to download the files
Windows 7 introduces several new shortcut keys to take advantage of design improvements. These shortcut keys will help save time and improve productivity while using Windows 7. To perform shortcut key strokes, press and hold the keys while performing the task. For example, hold the
key and press the arrow to maximize the selected window.
Table of Shortcuts

Besides upgraded my PC to Intel Q9400 Quad cores processor (I will share my experience on setting up a SharePoint clusters on Hyper-V) later. I also flashed my HTC Diamond to run the latest beta of Windows Mobile 6.5.
The phone upgrade process is not for the faint hearted (it could renders your phone unusable), for example during install Hard SPL to my phone at one point the screen on my Diamond gone blank and an error message appeared on my PC. Luckily thanks to the guidance here I find out this is normal and I just need to restart the application again.
All the while I don’t have intention to upgrade my phone to WM6.5 if not because of the new themes appear on the latest build. Although people still argue about how good looking the themes are but for me it is good enough. Beyond look, the usability of the new Today’s screen is similar to the one found on Smart Phone Edition of WM6.1 which I like very much when I loaned a Motorola Q9 from Pohz.
Below are the links to the latest ROM
HTC Touch Diamond (This is the one I installed)
The cooked ROM for Diamond does not comes with full set of themes so you got to download here.
HTC Touch HD
Again, try this at your own risk, the best support you can get is from xda-developers.com
This is because FCKEditor only create a <embed> element to display Flash content which does not work for IE. IE requires the <object> element to embed Flash in a webpage where else <embed> only works for Firefox based browsers. This links shows the way to embed Flash object in HTML.
Changing the JavaScript code in FCKEditor is a bit troublesome (my JavaScript skill is not good enough) So if you are using .NET you can refer to this method I created to wrap the <embed> element with <object> element. This is more of a quick hack so I make no guarantee it will work in your environment. I am using LINQ to XML for this so you will need Visual Studio 2008 + .NET 3.5.
Public Function UpdateEmbedTag(ByVal content As String) As String
Const embedTag As String = "<embed "
Const objectTag As String = _
"<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'" + _
"codebase='http://download.macromedia.com/pub/shockwave/cabs/" + _
"flash/swflash.cab#version=6,0,40,0' id='myMovieName'><embed "
Const embedCloseTag As String = "</embed>"
Const objectCloseTag As String = "</embed></object>"
'<embed type="application/x-shockwave-flash"
' pluginspage="http://www.macromedia.com/go/getflashplayer"
' src="http://localhost:49427/userfiles/Video/test/flash.swf"
' play="true" loop="true" menu="true"></embed>
'
'TO
'
'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
' codebase="http://download.macromedia.com/pub/shockwave/cabs/
' flash/swflash.cab#version=6,0,40,0" id="myMovieName">
' <param name="movie" value=""/>
'</object>
Dim _newContent = "<div>" + content.Replace(" ", " ") + "</div>"
_newContent = _newContent.Replace(embedTag, objectTag)
_newContent = _newContent.Replace(embedCloseTag, objectCloseTag)
Dim root = XElement.Parse(_newContent)
Dim embedElementList = root.Descendants("embed")
Dim flashLocation As String
Dim height As String
Dim width As String
If embedElementList.Count > 0 Then
For Each embedElement As XElement In embedElementList
If ((embedElement.Attribute("pluginspage") = _
"http://www.macromedia.com/go/getflashplayer") _
Or embedElement.Attribute("type").ToString.Contains("flash")) Then
flashLocation = embedElement.Attribute("src")
height = embedElement.Attribute("height")
width = embedElement.Attribute("width")
If Not String.IsNullOrEmpty(width) Then _
embedElement.Parent.Add(New XAttribute("width", width))
If Not String.IsNullOrEmpty(height) Then _
embedElement.Parent.Add(New XAttribute("height", height))
Dim movie = New XElement("param")
movie.Add(New XAttribute("name", "movie"))
movie.Add(New XAttribute("value", flashLocation))
embedElement.Parent.Add(movie)
End If
Next
Return root.ToString
Else
Return content
End If
End Function