March 2009


I was stuck in the partial class while trying to create a skeleton class from my diagram. It seem that you shouldn’t make the method inside the class to partial, only the class.

Here is the ref

I was populating my graph with the node from my DSL when I notice that some of the node have same name (although there belong to different actor). I was thinking to use the node name as key to my graph and obiviously it can’t anymore. I try to concat the actor name with the node name but stumble upon another problem. I look through the XML file (for the sample DSL) and came across an attribute name ID.

Ah, each node have a unique ID. I was strugling for three days on how I can get the element ID. At last I manage to do it. To think about it, it just so simple. Here is the code:

Let say your Domain Class name is Task.
You draw an object name t1.

id = t1.Id(); or
WriteLine(t1.Id.ToString());

Click here for link to MSDN.

I was doing my graph path and try to return list of path using string. It work fine but I was thinking of improving it using ArrayList. After a while I remember that I may have similar function as List method. In fact I did remember that it is much more simpler to use List. So I start to google around and found out that List is way better than ArrayList.

The (major) difference is List require less memory space than ArrayList but it is specific to a single type. With ArrayList, you can insert from int to string without problem (the problem will came when you want to display it :p)

Here are the references that I read:
+ http://www.geekinterview.com/talk/5520-what-is-difference-between-list-arraylist.html
+ http://bytes.com/groups/net-c/552160-difference-between-arraylist-list-object
+ http://blogs.msdn.com/joshwil/archive/2004/04/13/112598.aspx

I found this application while reading ZDnet. It is an application that sync your local pc folder to the web. It’s free and easy to use.

What I like about it is I can drop a few document n code to my drop box, it will store it in the net and when I get back home (to my notebook) I can download it.

It is usefull for a clumsy person like me. I forget to bring my external hdisk to work. Simple enough, just ask my wife to access my notebook (+external hdisk) and drop it off to the net. I just wait to pick it up. Ya, email can do the same thing but this is much easier.

You can try it here

I found this website (click here) while searching about UML. It can help you to draw the diagram by just entering the text and few simple commands :D Try it out

I found this website while searching on how to display line of code number beside your code. Click here.

This is how you show your line of code. Go to:
- Tools
- Options
- Text Editor (Left Tree)
- Expand and select “All Languages”
- Check “Line Numbers”

and now you can see your numbers :D

Hehehe, I was watching a tutorial from Microsoft when I was distracted by a blinking red/green dot on the explorer. So I looked through the video and notice an application called Camtasia.

Camtasia is a video capturing tool usefull if you want to make a demo and pass it around. It will get the screen capture and your voice if you like to talk. Camtasia price tag is USD299 and it blow my eye balls away.

So then begin the searching for alternative software and serial key (if I’m lucky). I stumble to this site (click here) and it suggest to use Window Media Encoder. Let’s try and see what happen. By the way, it’s free.