Archive for October, 2008
Ubuntu Linux slow/bad internet connection problems
At my office I had been having a problem with my Ubuntu and Fedora boxen having problem connecting to external sites. Some would work, albeit slow, where as others would not work at all (e.g. trying to connect to reddit in Firefox would get enough of the page to display the <title></title> tags but it [...]
Serialize Python Variables To PHP
So I’m in the planning stages of a project where I’ll probably be doing some heavy lifting in Python and serving up the output through PHP. Obviously this will entail transmitting data between Python and PHP and while I haven’t had a chance to do performance testing to see if it’s worth it to save [...]
PHP Bacon!
Unfortunately, Elizabeth Smith mentioned on twitter that PHP 5.3′s new garbage collector is based on a paper written by a man named Bacon (pdf here). We now have Bacon’s garbage collector… Announcing PHP 5.3: Now With More Bacon!! Spread the meme.
Outputting CSV as a Downloadable File in PHP
Nearly every application you could write in for the business sphere in PHP probably requires some sort of data export, most likely in the CSV format. The easiest way to provide a downloadable file is by altering the headers and echo’ing the file content. In our case: <?php header(“Content-type: text/csv”); header(“Cache-Control: no-store, no-cache”); header(‘Content-Disposition: attachment; [...]