Devis's blog

An article outlining the digg.com engineering teams switch from svn to git. Basically sings git's praises, without getting technical.

Git is a distributed revision control system (while svn is a centralized one) where you can perform commits, branches, merges on your local working copy, without being connected to Internet. It allows, for instance, to commit multiple local commits as a single commit, even to a svn repository.

How strong is firefox password encryption? I've seen programs on the net to recover ff passwords after you've lost your master password, and comments on hacker forums that ff uses a hackable encryption technique, not, say, AES or blowfish.

I was just reading this and thinking about a possible solution to achieve unique IDs for objects in PHP.

Since spl_object_hash() returns an md5 hash of the internal pointer of an object an php reuses pointers you might wonder how to have unique IDs through your application. Well we still have microtime() and time goes forward never backward Wink

Today I decided to give php 5.3 a run on my laptop, in particular I was interested to test a closure for the case below.

First of all I am running tests on a fancy Linux Mint where there's no official 5.3 package for php so I took the 'compile way' following the clear instructions from Brandon (thanks!). It has been a while since I compiled php and I must say that debian pre-packaged libraries has made the task quite simple and panicless.

The Google Perftools, especially tcmalloc (Thread Caching Malloc), can be very useful to speed up your applications, depending on your environment :

TCMalloc is faster than the glibc 2.3 malloc (available as a separate library called ptmalloc2) and other mallocs that I have tested. ptmalloc2 takes approximately 300 nanoseconds to execute a malloc/free pair on a 2.8 GHz P4 (for small objects). The TCMalloc implementation takes approximately 50 nanoseconds for the same operation pair.

With Flash or Without Flash ? flXHR or jXHR ?

Syndicate content
© 2010 Devis Lucato.