Sunday, March 09, 2008

Ubuntu 8.04 Hardy Heron Alpha 6

Khmer Script Line break solved see screenshot bellow

However I am not sure what was wrong with a few character which can't render properly.

Any thought?

Friday, March 07, 2008

IP Switch WS_FTP die die

I always been a fan of WS_FTP up until last night I just can't get on with that freaking slow file transfer. I just told myself to blame ISP for not taken care of FTP connection however after tried a few different ISP connection I start to belive that was not the case. I must had to do something about it or else I better shot myself in the foot. So here come the decision:

Get rid of WS_FTP install CuteFTP from GlobalSCAPE and voilá all the pain gone thanks Budha !
Last word die die die WS_FTP.

Wednesday, March 05, 2008

Tabify why I never care?

I thought I was one of the coder who obey coding standard, but hell no until a guy told me I wasn't. That kind of make me feel like a fool :))

Well, this is how I get around:
  • Tools -> Options -> Text Editor -> C# -> Tabs (Hell no ! "Insert spaces" was selected)
  • select "Keep tabs"
Alright let see will this work "Tabify"
  • Edit -> Advanced -> View White space (Crtl + R, Crtl + W)
  • Now reformat your code [ Ctrl + A; Ctrl + K, Ctrl + F]
Is that "Tabify" you talking about Ken ;)

Tuesday, March 04, 2008

What a storm !

No no there is no weather news to tell ya, just being one of Ubuntu's fan I got to tell you how I love the project as well as the people behind it.

They try so hard to make it possible for everyone to contribute back and like every kids love x-mas hope their wish will come true. Now there is a new Santa looking for your wishes @


To cut the long story short here is the latest tool brainstorm ;) I find it cool to vote/write down great idea and got it build "without us do the hard work" what a storm !

Friday, February 01, 2008

ASP.NET Fileupload

Call me lazy cuz I am deserved it. It shocked me a bit when a production code crash on my face. As part of my job today I have to train a few admin staffs on how to operate our newly invented site www.ncdd.gov.kh/jobs it works out quiet well on my machine cuz I dev, test & teach on Mozill Firefox. But it turn out that I don't perform enough exercise cuz I haven't test the site with IE yeah, cuz I haven't use IE for almost 3 years enough to forgot about it :)) anyway here is the story.

Do you know this guy System.Web.HttpPostedFile? yeah, he is my best friend when it comes to uploading file in ASP.NET. However you should know that he acted bit strange with browse in used.

Let say file1 is an instance of HttpPostedFile and if we ask him file1.FileName
Firefox return :
"Hello My Friend.doc"
Nice , isn't it?

IE return :
"C:\Document & Setting ....\user_name\desktop\Hello My Friend.doc"
WWOWO WHAT?! it slap me so hard to make me laugh out loud :))
Not Nice !
Anyway quick fix would be add a small detection on the file1.FileName
int lastDirSeparatorChar = file1.FileName.LastIndexOf(Path.DirectorySeparatorChar);

if (lastDirSeparatorChar > 0)
{
filename = file1.FileName.Substring(lastDirSeparatorChar + 1);
}
else
{
filename = file1.FileName
}
Lesson learn - test dev. site with IE as much as I hate "IE"