Archive

Archive for July, 2008

Novell OpenOffice developer speaks on why we need client side apps

July 29th, 2008 Patrick No comments

Some may look at this interview as a Sun bashing post but I think its more on why client side apps like OpenOffice (or MS Office) is still relevant despite more companies coming out with online apps like Google Apps

Also OpenOffice.org isn’t even finished right now and rewriting all of this in HTML and Javascript would be quite difficult, the web is not a beautiful, clean development environment. It’s actually very difficult to produce something which looks like you want it to look like. And that’s by design - it’s not a fixed layout, which is good for the web but when you try to layout documents you need more precision.

Meeks also mentioned why OpenOffice does not need to follow MS Office 2007 Ribbon interface but the problem with current OpenOffice UI

The current one is using a very inflexible widget toolkit called VCL and that is really something out of the Mid-Nineties - it’s a disaster. It hasn’t been improved substantially since then. So we are doing a whole lot of work to improve the widget toolkit inside OpenOffice.org, to introduce layout and that’s being funded by Novell and driven by us.

 

Then they chat about an alternative OpenOffice version named Go-OO

There also is the gstreamer audio/video-support which is not yet upstream, lots of that nasty Microsoft Works file format support, Mono-integration, better Chinese font rendering and so on. You can go to go-oo.org/discover and check the differences out for yourself.

Not to leave out is OOXML support in Go-OO

Categories: Uncategorized Tags: ,

http://patrickyong.net will be shifting to new web host next month

July 28th, 2008 Patrick No comments

3 more days to go and I will point the DNS to a new web host at Cyberjaya. Do expect the site to be down for the whole weekend starting 1st August Friday night.

Categories: Uncategorized Tags:

Workflow Services error: "Operation is not implemented by the service"

July 28th, 2008 Patrick No comments

I been trying to solve this Workflow Services error on my IssueTracker project for 2 weeks without any progress. :(

Operation is not implemented by the service.
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)\r\n   at

System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)\r\n   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)\r\n   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)\r\n   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)\r\n\r\nException rethrown at [0]: \r\n   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)\r\n   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)\r\n   at IssueTrackerTest.IssueProcessService.IIssueProcess.ProcessIssue(Issue issue)\r\n   at IssueTrackerTest.IssueProcessService.IssueProcessClient.ProcessIssue(Issue issue) in C:\\Workspace\\Projects\\IssueTracker\\IssueTrackerTest\\Service References\\IssueProcessService\\Reference.cs:line 285\r\n   at IssueTrackerTest.IssueProcessTest.TestProcessIssue() in C:\\Workspace\\Projects\\IssueTracker\\IssueTrackerTest\\IssueProcessTest.cs:line 88″    string

 

Until today I found this blog post by Damir Dobric.

While invoking an operation on the workflow’s web service you may get following error:

“Operation is not implemented by the service.”

To solve the problem take a look on the ContextToken property of the receive-activity of the workflow service.
If this property is set as shown on the picture below, remove the value, rebuild solution and start all again.

image

 

Thanks Damir for saving my days :)

Categories: Uncategorized Tags: ,

365 days validity war between DiGi and Maxis

July 26th, 2008 Patrick No comments

Good news for pre-paid users like me, DiGi and Maxis launched their respective 365 days number validity plan. For DiGi customer, you have to reload RM100 at one shot before 31st August to enjoy the offer while Maxis just need RM33 balance before you send in a #100 activation code.

image  vs image

Regardless how, it will be consumer who benefit the most from competitions. I hope Celcom will do the same because I occasionally uses their pre-paid 3G services. So this will encourage people to take up extra phone line for various purposes.

Categories: Uncategorized Tags:

Delphi no longer belongs to Borland.

July 24th, 2008 Patrick No comments

image

This happened sometime ago but I was not aware until today. Codegear is the company that owns the famous Delphi programming IDE as well as the once popular Turbo suite of development tools under Borland. When open source IDEs such as Eclipse and Netbeans started eating into Borland’s JBuilder’s market share, they realize IDEs are becoming commodities and started focus on value added businesses such as Application Lifecycle Management. Then they spin off all developer tools (incl Delphi, CBuilder and JBuilder) to a subsidary named CodeGear with the intention of selling it. As of 1st July 2008, database tools vendor Embarcadero bought over CodeGear, and this closed another chapter of Borland which the father of C#, Anders Hejlbergs once worked there to create the tools we known as IDE today and fathered Turbo Pascal and Delphi.

Categories: Uncategorized Tags:

Live Mesh Tech Preview: First Impression

July 18th, 2008 Patrick No comments

image

At last, I saw the news that Mesh is accessible for public now. Manage to get to the login screen pictured above but my Internet connection is too slow to see anything cool on Live Desktop. :( Still showing the Loading… message after 30 minutes.

image

So I click on Add Device to install the Live Mesh client on my laptop.

image

There is a choice for 32 or 64 bit but surprising the client for Windows Mobile is not available yet. I heard someone mentioned there is a client for WM out there.

image

Now got to wait for the client to be installed. During the setup it will ask you for your Windows Live ID and goes thru the Vista’s UAC request.

 image

Once setup I have a Messenger like app sitting at my taskbar.

image

My laptop is now visible on my Mesh website

image

When I click  connect to my laptop they prompt me to install Live Mesh ActiveX. Looks like this going to work in IE only.

image

Haha… since I am using my laptop to connect to my laptop, it prompt an message.

Thinking of this, when the Mobile client is available, I can leave my laptop on my desk and take my HTC Diamond to meeting. :)

image

Above is my Mesh desktop.

image

Lets create a new folder.

image

I thought this is an app on my laptop, but its actually on Mesh’s desktop. Got this Vista look and feel.

image

No drag and drop yet, got to select files to upload.

So go back to my work but if you want to find out what’s so nice about Live Mesh, check out Fai’s blog here. He is one of the few secret testers for Mesh for the pass few months and the guy with Live Mesh client on his Windows Mobile!

Beam me up to my Live Dekstop and all my devices!!!

Here is a tutorial on Live Mesh P2P IE Favorites sync

Categories: Uncategorized Tags: ,

Thoughts on C# 4.0

July 17th, 2008 Patrick No comments

Yes yes… meet the design team on C# 4.0. C# 3.0 was out with Visual Studio 2008 so it is natural to start look at the future of the language now. This is an interesting team as they got guys from different background i.e. SQL Server, VB, IronPython and even Javascript. We continue to have the father of C# Anders Hejlsberg in the talk here.

http://channel9.msdn.com/posts/Charles/C-40-Meet-the-Design-Team/

Categories: Uncategorized Tags: ,

Not blogging today. Busy with my new HTC Touch Diamond

July 15th, 2008 Patrick 3 comments

DSC00499

 

DSC00500

Just got my new HTC Touch Diamond phone today so I guess I will be busy configuring it and skip blogging for a day or two.

Categories: Uncategorized Tags: ,

Moonlight 0.7 ships! Silverlight’s homepage rendered in Linux

July 15th, 2008 Patrick No comments

image

There you have it, Novell ships Moonlight 0.7 and now it works perfectly in Firefox ver2.0 and 3.0 as well. If you followed my workaround for Moonlight 0.6 here, you have to disable to script.

Above its a screenshot of Moonlight 0.7 working in Ubuntu 8.04 with Firefox 3.0.

Go here for the download.

Categories: Uncategorized Tags:

MOSS 2007 BDC Definition Editor gotchas

July 9th, 2008 Patrick 3 comments

What is Business Data Catalog(BDC)?

The BDC is essentially a catalog of business applications that are of interest to SharePoint Server 2007 users, and it bridges the gap between the portal and business applications by bringing in key data from various applications to SharePoint sites, lists, search, and user profiles. The BDC is the key infrastructural component around which most of the other business data features of SharePoint Server 2007 are built. Administrators can register business applications in the BDC, after which the data in the application is immediately available to SharePoint through the business data features described below. A key requirement for each registered business application is an XML-based metadata model that describes the application programming interfaces (API) of the application or the schema of the database that maps to business objects (e.g. customer) and properties (e.g. name) that a SharePoint user can understand. These metadata models can be easily created by DBAs or database developers.

For example you can expose a table in a SQL Server database

image

On to a Business Data List webpart in MOSS 2007.

image

Creating an application definition use to be a pain because you have to define every properties and entities inside a XML file without the help of any tools. Then came BDC Man to over this problem but it comes with a pocket burning price tag. So somewhere early this year, SharePoint SDK update includes a simple BDC Definition Editor. Now you can have (almost) all the features found in BDC Man for free!

Connecting to a database is easy, fire up DBC Def Editor

image Click on Add LOB System

image On the Add LOB System window, you can connect to a DB or Webservice, for this I click on Connect to Database

image Key in the connection string and click Connect

image After that on the right you can see 2 new buttons, I click on Add Table to bring in a table now

image I select the table Currency and drag in over to the blue blank space.

image For this I going to use 1 table only, so I click at the bottom.

image Name it as ‘currency’

image  Now the definition has been created. Logically I can click Export and upload it to MOSS. The exported Application Definition is a XML file shown below

[sourcecode language='xml'] xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemalocation="http://schemas.microsoft.com/office/2006/03/BusinessDataCatalog BDCMetadata.xsd"
type="Database" version="1.0.0.0" name="currency"> localhost simpledb True SqlServer PassThrough Text Select “Name”,”Description” from Currency where Name=@Name Text Select “Name” from Currency
[/sourcecode]

Imagine you have to do this manually even for a single database table!!

 image

So now go to your Shared Service Admin site to upload the def file.  Click on Import application definition

image Choose the file and click Import on the next screen.

image  There you go, no problem reported.

image

So now with the app def imported I go back to my SharePoint site to add the Business Data list webpart.

image

To bind my Currency table to the part, I open up the webpart editor. At the Type textbox click on the telephone book icon.

image

To my surprise, when I open up the Business Data Type Picker, it reported There are no Business Data Type loaded in the Catalog! So what went wrong? The Currency Add Def indeed imported.

Actually the def editor left out a couple of things which need the user to manually configure which I found out later.

image

First one, the Business Data List webpart uses a Finder method instance of the app def to list the data. The def editor by default only create the SpecificFinder and the IdEnumerator method instances.

image

To verify this, open up your Event Viewer and you will see errors in Application log.

To create another method instance, right click on Methods and click Add Method

Change the name of the new method to List

image

On RdbCommandText, copy the one from the SpecificFinder but remove the where clause

Then add a new Return parameter. Right click on Parameter and choose Add Parameter.

Change the name to @Currency

image

Now right click @Currency and select Create Root TypeDescriptor

image

Cut the story short, you now continue to construct the parameter as per the one on Find_Currency method. Only thing is you do not need to create the input parameter @Name.

image

Right click Instances and choose Add Method Instance, select the radio button ‘Finder’ on the Create Method Instance window. The Return TypeDescriptor should be Reader.

image

After that go over to Currency Entity, fill in the name of the Title field. The purpose of the Title field is to tell MOSS later which column to display the action menu.

Having mentioned action menu, I won’t be created any Action for this entity but instead use the default ‘View Profile’ action menu.

image

Now update the version number to 1.1 else BDC will complain version conflict. After that export the definition to xml file and import it to MOSS.

image

Double confirm the version number is 1.1 now.

image

Then go back to my SharePoint site, funny thing is now you need to remove the blank web part and insert a new Business Data List webpart. Then open the webpart editor and you will see your Currency table there.

 

image

Add that to the editor and exit the edit mode. You can now see the Currency table listed here.

Categories: Uncategorized Tags: ,