Alternative 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, 2009

We 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.

  1.  
  2. <input type="file" name="file[]" value=""/>
  3. <a href="" id="addMoreUploads">add more</a>
  4.  

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, 2009

I 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, 2009

I 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 »

Dealing with different configuration for development and production box

December 12th, 2008

All right, this isn’t exactly a rocket science, it’s just something I use and find very handy.

We all develop (and test) on one computer and deploy to a different computer to make the changes live. Having to run the application in two different environments brings a challenge of using different configuration based on where the application runs.
Read the rest of this entry »