Sunday, December 2. 2007

I've heard blah blah blah about phone number portability, but here's what actually happened in Israel.

Today the Israeli law requiring all phone service providers to allow for number portability has come into force. Since I understand that most countries in the world don't have this luxury yet, and that there's an argument about it, perhaps a beaten horse by now, and in particular whether it's a worthless idea that's driving the consumer costs up, or a genuinely good thing for the consumer and for the companies. And on the day one, results are here.
Continue reading "I've heard blah blah blah about phone number portability, but here's what actually happened in Israel."

Posted by at 11:03 | Comments (0) | Trackbacks (0)

Friday, November 16. 2007

Setting up tests for your Agavi application - a short primer

Hey folks,

In this post, I'd like to show you how I set up a testing environment in an Agavi applications. Since Agavi doesn't come with its own testing tools, we will be using the framework's features to help us set this up. I'll be using PHPUnit for the tests themselves.


Continue reading "Setting up tests for your Agavi application - a short primer"

Posted by in PHPat 00:44 | Comment (1) | Trackbacks (0)

Friday, September 21. 2007

Wednesday, September 19. 2007

Uploading files in PHP yet again: heavy duty.

I appreciate this guy's comments to my previous post about secure file uploads in PHP. Unfortunately, Wordpress is crappy and its ajax comments are broken, for whichever reason, so my trackback comments didn't seem to get posted. I will reproduce my response here.


Continue reading "Uploading files in PHP yet again: heavy duty."

Posted by in PHPat 12:47 | Comment (1) | Trackback (1)

Sunday, September 2. 2007

ActiveRecord sucks, but Kore Nordmann is wrong

Kore Nordmann has a writeup titled "Why Active Record Sucks". While his commentary deserves applause, it also touches a more general problem which the author overlooks, resulting in a wrong conclusion: "You either destroy your business objects or your DB model."

First of all, let's blame Rails.
Continue reading "ActiveRecord sucks, but Kore Nordmann is wrong"

Posted by in Rageat 04:02 | Comments (14) | Trackbacks (0)

Friday, August 31. 2007

Ignore the strange template

I haven't edited it yet.
Posted by at 06:17 | Comments (2) | Trackbacks (0)

Friday, August 24. 2007

How not to get hacked: uploaded files in PHP

Newbie developers are often unaware of problems associated with uploading files in PHP. These problems result in security holes, which spammers and crackers do not hesitate to explore and abuse. PHP security is a big problem, though it is not an issue with PHP itself but rather with people using PHP's facilities without understanding the implications.

UPDATE: further discussion on the topic is here and here.

Continue reading "How not to get hacked: uploaded files in PHP"

Posted by in PHPat 06:03 | Comment (1) | Trackbacks (2)

Thursday, August 23. 2007

For the 2,295,485th time: DO NOT PARSE HTML WITH REGULAR EXPRESSIONS

I am getting sick of repeating this, so please concentrate or I will have to send my spider monkey minions after you and all your offspring.

Regular expressions are great and you should master them. However, do not use regular expressions to parse HTML or XML. Resist your animal urges. They are wrong. lf you do not resist them, the government will take away your reproductive rights.

UPDATE: Kore Nordmann says this better than I ever could, but he doesn't have the minions.

Continue reading "For the 2,295,485th time: DO NOT PARSE HTML WITH REGULAR EXPRESSIONS"

Posted by in PHP, Rageat 15:17 | Comments (6) | Trackbacks (0)