Event handlers in PHP

I'm a .NET developer by profession. One of the things I really like about .NET is event driver applications and web sites. PHP doesn't natively support this, but with a little imagination it's not hard to recreate.
» read more...

MS-SQL dynamic DateAdd function

The DateAdd function of Microsoft SQL-server allows you to add a specified number of days, weeks, month or years to a specified date. But it does not allow you to dynamically specify if you want to add a day, week, month, etc.
» read more...

List all User Defined Functions in MS-SQL database

Sql statement to enumerate all user defined functions in a MS-SQL instance.

SELECT a.[Name] as FunctionName 
  FROM sysobjects a
 WHERE a.xtype = 'FN'
» read more...

Index Tuning Wizard error

"The workload does not contain any events or queries that can be tuned against current database. Check to see that the trace contains valid events or that the SQL script contains valid queries and you are tuning against the right database."
» read more...

Asus Eee PC-701 2GB memory upgrade

My Asus Eee PC-701 4G came with 512MB RAM. It's not bad, and most tasks perform good enough. But at the current memory prices, I bought a strip of 2GB SO-DIMM anyway.
» read more...

Asus Eee pc

» read more...

The good, the bad and the ugly about the Asus Eee PC-701

I've had my 701 for about 2 weeks now. I really love the little machine. But even so, there are some things I think are allegable for improvement.
» read more...

Installing Windows Fundamentals on Asus Eee PC

Here's a short guide to installing Windows Fundamentals for Legacy PCs (WinFLP) on the Asus Eee PC. I'm using the 4G model, with 4GB SSD flash disk and 512MB RAM.
» read more...

Favicons

<link rel="shortcut icon" href="/favicon.ico">
» read more...

Code reviews

» read more...

Calculate sha1-hash using javascript

Here's a snippet to calculate a string's sha1-hash using javascript.
The sha1 hashes are compatible with php's sha1 function.
The snippet depends on the utf-8 encode function, see link at bottom of this page.
» read more...

Javascript UTF-8 encoding

Here's a little snippet to utf-8 encode a string using javascript.
» read more...




Smile!