Archives for May 2008
KL and Ambition
Each time Paul Graham comes up with an essay, more often than not I would feel like doing a write-up on it. Whether or not you agree with his ruminations, he makes you think.
(Paul Graham is a well-known programmer who likes to write essays. He’s also one of the founders of Y Combinator, a company […]
Visual Studio 2008 COM Exception Error
This morning I tried to open a Web Application Project using Visual Studio 2008 and got the following error:
System.Runtime.InteropServices.COM Exception
Sounds bad, doesn’t it? But actually the solution is very simple. Just ensure that the value for IISURL in the .csproj (or .vbproj) file is valid.
I would like to thank Martin Kulov for this tip.
Copying Table Structures in MySQL
In MySQL it’s possible to create a new table – with the same column names and types of that of an existing table – using the following syntax:
CREATE TABLE <new table> LIKE <existing table>
This is for MySQL 4.1 and above.
Reference
MySQL 3.23, 4.0, 4.1 Reference Manual :: 12.1.5 CREATE TABLE Syntax
ASP.NET Page Life Cycle
This is a favourite interview question: “what are the sequence of events in the ASP.NET page life cycle?”
Short answer:
Init
Load
PreRender
Unload
Long answer:
PreInit
Init
InitComplete
PreLoad
Load
LoadComplete
PreRender
SaveStateComplete
Unload
Disposed
Short answer with explanation, i.e., what to do when:
Init – read or initialize control properties
Load – set properties in controls and establish database connections
PreRender – make final changes to the contents of the page or its […]
Last Minute Pangkor Trip
Let’s say it’s a long weekend (Monday is a public holiday) and you decide to just wing it to Pangkor. Here’s a short guide.
Getting There
PLUS Highway: take the Bidor exit and head to Teluk Intan, and from there to Sitiawan and then to Lumut.
Old road: Actually KL to Lumut using the old road might be […]
