I guess I haven’t mastered the model relationships enough in order to appreciate them – and use correctly. On one hand they seem to be really cool and provide an easy access to linked database records while on the other hand, they just seem to stand in the way too often.
Getting rid of JOINs in updateAll() query
September 13th, 2009Alternative icon for Eclipse IDE
July 8th, 2009
Each year we have the pleasure of switching to a new version of Eclipse. And by pleasure I mean both shades of the word. Cool new features and boring migration. I usually fight my laziness for quite some time and migrate my projects gradually. Thanks folks for keeping Eclipse isolated so that I can run both versions simultaneously. I’m getting to my point now: I needed a new icon that would distinct the new version from the old one.
Read the rest of this entry »
Duplicating sets of radio buttons with jQuery
July 6th, 2009We all love the “add more” links for adding more form items to forms. More pictures to upload, more categories to add. You just name them with empty square brackets and then clone them.
-
-
<input type="file" name="file[]" value=""/>
-
<a href="" id="addMoreUploads">add more</a>
-
But what if you need to clone sets of radio buttons? You end up with a single group of radio buttons – not with a group of radio button groups.
Read the rest of this entry »
MySQL comparison catch: ‘abc’ = 00
May 25th, 2009I was shocked to find a weakness in my authentication library today. It was possible to get around the password check if you knew the username. All you had to do was to enter 00 as the password. Or you just entered 00 as the username too and you got authenticated as the first user.
Read the rest of this entry »
Switching layout using a url parameter
February 8th, 2009I needed to open a static page in a pop-up window. For static pages we have a handy controller Pages but I wanted to use a different layout for each page and do it in a flexible way.
Read the rest of this entry »

