The PHP documentation for fgetcsv() states that A blank line in a CSV file will be returned as an array comprising a single null field, and will not be treated as an error. Here's a quick demonstration of this behavior.
By Rowan Rodrik, 7 years ago, on September 05, 2009, at 10:09 |
When you have tables with a large amounts of columns, it can be easy to show the columns vertically, as opposed to horizontally. In Postgresql, you can toggle this with \x. In MySQL it's a little bit different.
By halfgaar, 8 years ago, on August 23, 2009, at 12:08 |
Cell phone providers in the Netherlands always try to screw you as hard as they can. The way it was, they were able to automatically extend your contract for another year. The way they screwed you here, is because when you sign up for a new contract, you often get discount. I for instance, was able to get a service worth € 17,50 per month for € 12,50 (240 minutes), the entire year. But, when the contract period would end, my contract would be extended automatically and I would pay € 17,50 per month for a year. You had to remember to call KPN before the contract would end and manually extend the contract to receive another discount.
By halfgaar, 8 years ago, on August 21, 2009, at 11:08 |
Mozilla products, firefox and thunderbird, seem to have the strange behaviour of overriding the paper size set by the operating system; it scales the page to letter and then prints it to A4.
By halfgaar, 8 years ago, on August 17, 2009, at 13:08 |
I'm having a EM interference problem with the APC CS-500 UPS on two different locations. Those two locations are near each other and there seems to be something wrong the power grid in that area. Both UPS's momentarily switch over to battery several times a day. Some of these times, the apcupsd daemon sends a message saying that the communication with the UPS has been restored (and therefore it had been lost at some point).
By halfgaar, 8 years ago, on August 09, 2009, at 12:08 |
Vendor branches are the proper™ way of merging upstream changes in your web application installations. In Subversion, managing vendor branches isn't so easy as it is in Git. Still, vendor branches make it much easier to track upstream.
By Rowan Rodrik, 8 years ago, on July 20, 2009, at 14:07 |
If you liked Last.fm, you'll love TheSixtyOne. Discovering music is turned into a reputation game. Much like Last.fm, you can explore similar artists, genres, tags, moods and users. But, by doing so and hearting songs, you can earn reputation points and extra hearts. As your points increase, you level up, which gives you more authority. There's an endless amount of quests to earn points faster and to make you discover all the facets of the application.
By Rowan Rodrik, 8 years ago, on July 20, 2009, at 11:07 |
What can you do when you want to backup your entire machine to a remote location but only have non-root shell access? You use rsyncd.
By halfgaar, 8 years ago, on July 15, 2009, at 16:07 |
Wikipedia has a number of tips for people who like to edit Wikipedia articles with VIM.
By Rowan Rodrik, 8 years ago, on July 10, 2009, at 10:07 |
I have all these little scripts in my $HOME/bin directory to ease the execution of Windows programs. For instance, I don't like to type the full path to Excel Viewer every time when I need to view an Excel sheet in Linux:
By Rowan Rodrik, 8 years ago, on June 28, 2009, at 17:06 |