From the category archives:

Programming

Doorbell on Bebo is growing steadily, despite some randomness in the Bebo platform uptime. One side effect of its popularity was a new error – Too Many Connections. Here is a quick overview of the cause and a solution.
Too Many Connections can be caused by either a lot of simultaneous connections or by old connections [...]

{ 3 comments }

The Facebook API does have a way to set and get cookies, but it is in beta so is not currently part of the FB PHP libraries. I found it out by searching through forums, by trial-and-error, and on the FB Beta docs page. There are 2 functions available:
 
data.getCookies( user_id, cookie_name );
[...]

{ 1 comment }

PHP 4.x introduced magic methods with the __serialize and __unserialize methods. Since then many have been added. Love them or hate them as a language abomination magic methods are here to stay. Most are well-documented but one, the __set_state() magic method, is not. I hope to change that a bit.
First, a simple description of magic [...]

{ 4 comments }

For the longest time I have used 4NT as a replacement for the Windows CMD.exe shell. It provides an environment variable, _CWD, that provides the current working directory. I never knew that Windows also provides the same thing, in the form of the CD environment variable. This led me to look for other system-wide default [...]

{ 0 comments }

I use the console in Firebug all the time to test out one-liners in Javascript (like regexes for instance), but I had no idea that you could type multiple lines of JS in Firebug and run it. As I should have known of course they implemented this. Here’s how.
You can either just paste a block [...]

{ 0 comments }