Patrick\’s Bytes

29, April 2007

Hosting Windows Workflow Foundation in a NT/Windows Service

Filed under: Workflow — patrickyong @ 4:56 pm

People have been asking me about ideas to host WF outside of Sharepoint and IIS, maybe its because for security purposes and infrastructure constrant, so this is one fine example how WF found its way to Windows Services.

Link to Sometimes I Wonder… » Hosting Windows Workflow Foundation in a NT/Windows Service


27, April 2007

‘Longhorn’ Server Public Beta 3 Arrives

Filed under: Windows — patrickyong @ 2:59 am

Never expect Beta 3 to come out so soon after couple of week since my last download. The last CTP didnt perform very well inside VPC so I am still hoping that Beta 3 will have performance tuning on VPC.

Also I will be testing out the Server 2003 upgrade to Longhorn which last time it crash my Sharepoint 2007 server.

Another new thing I will be watching will be the new server roles in Longhorn Server Core.

Link to Redmond | News: ‘Longhorn’ Server Public Beta Arrives

24, April 2007

Malaysia Boleh ! Windows Vista Sidebar Gadgets

Filed under: Windows — patrickyong @ 3:02 am

Windows Vista has been out for months and there is some local developed Sidebar Gadgets out there from AirAsia, The Star and Cinema Online to ‘Malaysianize’ our Vista Desktop.


The Star

Cinema Online

Link to Windows Vista Sidebar Gadgets

23, April 2007

Google Doc on zip file format

Filed under: OpenXML — patrickyong @ 4:31 am

As OpenXML and ODF battles for acceptance with governments and corporations, Google is quietly rolling out its down ‘contents + zip’ file format. The screenshot below shows a ‘Save as HTML (Zipped)’ option in Google Doc’s File menu

Once saved, it appears as a zip file in my system. Silly me try to rename it to docx but Office 2007 reported a file corruption. so lets explore what is inside the zip file. Since I just inserted an image and type a line of text, the zip contains a HTML file with an  image folder as below

If i extract the file contents and edit it with Word 2007, it will appear nicely.

So now lets look at the HTML source:

<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″>


font-family: Verdana;

font-size: 10.0pt;


line-height: ;
background: white;
margin: 6px;
padding: 0px;

{ font-size: 10pt }
{ font-size: 11pt }
{ font-size: 12pt }
{ font-size: 13pt }
{ font-size: 14pt }
{ font-size: 16pt }

{padding: 10px; border: 1px #DDDDDD dashed }

a img
{border: 0}



<body revision=”ddhn77sv_46hnkzjt:2″>


<IMG src=”Test_images/ddhn77sv_47dvgmzdgg.jpg” mce_src=”Test_images/ddhn77sv_47dvgmzdgg.jpg” style=”WIDTH:400px; HEIGHT:300px”>


Quite a standard HTML (not event XHTML as there is no notation). Google Doc embeds all the standard formattings in the Style area. One thing added is the revision attribute in Body with the value ‘ddhn77sv_46hnkzjt’. The 2 after the colon is the revision since this is teh 2nd time I saved the file. HTML editor would not increase this value but once you upload to Google Doc, it will be increased to 3. I wonder this is a pre-text for a document management system later for Google Apps Domain.

That’s all for Google Doc….

Addin Express For MS VSTO

Filed under: Office Business Application,VSTO — patrickyong @ 3:55 am

For MS Office VSTO developers, there is now a solution available to create Office Addins with minimum coding. Selling at USD349 per pack is a bit costly but consider the fact most Office addin out there is to consume and manipulate some Line of Business web services at the backend, Addin Express do help you cut down on man power requirement while at the same time add value to your solution.

They have put up some Flash demo at their website

  1. Add Outlook Explorer toolbar and controls, add custom button to intercept a built-in button
  2. Add custom Outlook Options page in Outlook add-ins
  3. Add custom Outlook Folder Property page in VSTO with no coding
  4. Add Outlook commandbar controls to a built-in Inspector toolbar
  5. Process events of the Items collection in Outlook add-in

19, April 2007

OBA in Wikipedia

Filed under: Office Business Application — patrickyong @ 2:59 am

Created an entry but I don’t know why it ain’t show up in search yet. First time did this in wikipedia so I am not sure about the approval process (if any). Anywhere I keep a link here just in case anyone wants to find out more.

Logging down dead locks in SQL Server 2000

Filed under: Database — patrickyong @ 2:56 am

CK Chin (eBworx) taught me this before but after spent 2 years in Oracle development I forgotten this trick. Thanks to soonyu in SPAN who remind me.

– add the -T1204 and the -T3605 startup parameters to SQL Server and restart sqlserver services


– from query analyzer
dbcc traceon(1204,3605,-1)
dbcc tracestatus(-1)

18, April 2007

Microsoft: The SOA road less traveled

Filed under: Uncategorized — patrickyong @ 8:04 am

there is an article in which talks about Microsoft’s approach to SOA. They talk about how Microsoft is different in everyway in the SOA implementation whereby instead of creating a whole SOA suite, MS is leveraging on Biztalk, WCF and Windows Workflow Foundation to provide a SOA platform. Having said that, SOA as its name suggest, is an architecture after all. So I guess this is why MS is not coming out with a totally new SOA product like the other vendors did. This strategy work well for MS because they have matured products like Windows, Office and Biztalk which just need to be enhanced to provide an end to end experience for developing and deploying SOA applications. The new Office Business Architecture (OCA) seems to aim at this vision where Sharepoint and Office (which almost everyone is familar with) provides a frontend to the backend processes such as workflow, business inteligence and legacy system; benefits is end user will have a single sign on experience to access corporate information under one shop. On the developer side .NET framework provides a common paradigm for OBA to develop application is all kinds of platform as we see more and more Microsoft products being .NET enabled (meaning there is a .NET API available whether or not the product is coded in C++ or managed code).

SOA is abstract as an architecture so this opens up opportunities for vendors to develop their own implementation and innovate on it. Qouting from the article, “Microsoft has an ecosystem and they have a value proposition that’s very solid for that ecosystem. What Microsoft has for what it’s doing is very good. It is what it is.”

15, April 2007

HP MediaSmart Server

Filed under: Windows — patrickyong @ 4:09 pm

So far HP is the only vendor showcasing product that supports Windows Home Server

Link to HP MediaSmart Server

Windows Home Server Blog : Building Add-ins

Filed under: Windows — patrickyong @ 1:44 pm

Just installed Windows Home Server April 07 CTP today. There is something new with this CTP known as an addin. According to Home Server blog, building addin is like developing Windows based application. However bear in mind that Home Server serves as only a server with no user session. Meaning this whatever addin must be able to run as a Windows service. After constant bombard of SOA architecture at the enterprise app space, I would have immediate thought of a few applications or services that would should have made it as a Windows Home Server addins:

  1. VOIP. Skype and VOIP services is becoming something we take for granted in the enterprise and SOHO alike. I can imagine I just need to dial a number on my local land phone, and some service sitting elsewhere (in this case, mostly in WHS) would be able to determine whether a VOIP gateway is available for me to connect to that number.
  2. Remote downloading services, this is a feature I found in Flashget downloader whereby I am able to install a service at my home PC and hook it online 24/7. Then from anywhere I can send a command or URL to my home PC to download a particular file. This is useful when I don’t have immediate access to fast and constant Internet connection.
  3. Expression Media is one application I would like to see able to make it as an server based application where we have AJAX based interface to manage our digital assets. I can also share it with anyone such as my customer my photograph portfolios.

Link to Windows Home Server Blog : Building Add-ins

Create a free website or blog at