zaterdag 26 juni 2010

Using PHP to insert blobs in a MSSQL database

Is a very straightforward job, once you've figured out how MSSQL wants the data supplied....
As hex....

vrijdag 25 juni 2010

MySQL datatype for PHP microtime()

Ok, this has probably been already solved by just about everyone on the world-wide-web.... Well, count me out then....

Until just now i was trying to put a microtime(true) result in a float(20.4) field....

Which simply doesnt work on MySQL 5.1 (at least not in my case, since all values after the decimalseparationcharacter are .0000)....

Try a field type named double(20,4) and it works like a charm....

And out.

woensdag 23 juni 2010

dinsdag 22 juni 2010

XDebug + Php5 + openSUSE 11.2

Apart from the XDebug routine (which should be installed thru openSUSE's build service: http://software.opensuse.org/search?q=xdebug&baseproject=openSUSE%3A11.2&exclude_filter=home%3A&exclude_debuginfo=true ) this looks really useful:

http://bogdan-albei.blogspot.com/2010/06/php-remote-debugging-with-xdebug-and.html

Much fun reading! (and/or implementing?)

maandag 21 juni 2010

ImageMagick works miracles

Suppose you've got some kind of way to big photo archive you would like to make sense of....

Suppose, you'd like to place it on the web....

Suppose, the images are all way, way, i said, way to big for that purpose!!!

And, of course, you're running Linux

Look no further:

http://www.novell.com/coolsolutions/tip/16524.html

donderdag 3 juni 2010

Windows Server on Xen

Works like a charm! Just as long as you use:

http://wiki.xensource.com/xenwiki/XenWindowsGplPv


The paravirtualisationdrivers! Windows 2003 seems more sensitive to this than Win2008 server, but still, it works miracles in speed and stability!