Christian Heilmann

Author Archive

Geekdinner aftermath

Friday, November 25th, 2005

Yesterday was Molly’s geek dinner in the hog’s head in Bond Street, and it was quite a good social gathering.

Check the flickr photos to see what was going on.

My findings:

  • geekdinner is a rubbish tag, as you can see at number on non-related pictures (including the pita goatse )
  • if you ever want to give a speech in a place where nobody will be able to hear you, choose the hog’s head – poor Ian, Molly and Andy tried their best though
  • All the christmas lights in the West End are normal christmas lights again – last year everything was branded with “The Incredibles”
  • Too many pints make me stop writing things at night

Working on another CSS Toolshed entry

Thursday, November 24th, 2005

Arthur Two Sheds Jackson As there is to date only one additional working submission for the CSS Toolshed (in comparison to over 400 downloads, so there is hope), I started another design of my own, with apologies to Zeldman and Happy Cog.

Take a peek at what is there to come

I will write a step by step commentary, if I get the time.

Pin entry fields, keylogging, security and a DOM solution

Wednesday, November 23rd, 2005

I looked over the wireframes of a new project today and discovered a weird one for the use case of entering a PIN number: The client defined a keypad like you would see on a cash machine, and requested that the user should enter the PIN thus – via the mouse.

The accessibility militia member in me started to frown upon this, considering that a password field is a lot easier to use and wondered if that is a marketing
gimmick.

However, upon reading further into the requirements, I realised that it is a security measure to prevent keylogging software to store the pins users enter in the application.

However, I don’t think that there is a truly accessible solution for that problem, as you will need JavaScript to change a field’s value when clicking other buttons – unless you want to reload on every button click.

I came up with a DOMscripting solution for the problem, check the test page for DOMpinpad here and wondered if there are more options to improve this.

Currently the pad

  • only applies itself when DOM is supported and JavaScript is available
  • renders the PIN field readonly and greyed out only when the pad can be used
  • can be used with a keyboard and tabbing and with the mouse (is there a safety hazard in the tabbing ability? Wouldn’t that be trackable, too?)
  • is self contained, as in plays well with other scripts
  • is styleable via CSS

I tested it on MSIE 6,Firefox and Opera on PC and Safari on Mac, please report any problems you may encounter.

If this one is considered a worthy solution, I will wrap it up and release the code at a later stage.

The things I install on my Thinkpad

Thursday, November 17th, 2005

Installing the .NET 2 framework to run CSS Vista corrupted my registry and the laptop went straight into BSOD when booting. Therefore I had to parallel install Windows (as the repair explanations on MSDN didn’t work) and got the chance to clean up the mess that accumulated over the last 3 years. It was a great feeling simply deleting folders to get rid of Software, much like a Mac…

Anyways, here is the Software I consider really necessary for me to work efficiently, maybe you can find some things you hadn’t used or known yet, and I am happy to get more tips in the comments. (more…)

A free christmas / advent calendar in PHP

Wednesday, November 16th, 2005

A friend of mine wanted a christmas / advent calendar with 50ies pin-ups, and I couldn’t find one, so I scanned some and made an online calendar for her. As those are copyrighted, I will not reveal the pinups here, but instead offer you the script oft the calendar to use with your own pictures.

What does it do?

The script shows all the links of the different days pointing to a “not yet” image on days that are in the future, and points to the real image on days that are in the past or the current one. Clicking the image gets you back to the calendar.

How to alter the display?

Simply replace the images 1.jpg to 24.jpg in the “ups” folder with your images. 25.jpg is the “not yet available” image.
The page whole look+feel is defined in styles.css. The calendar is an unordered list with the ID “calendar”, the image is a DIV with the ID “pic” containing a link around an image.
The different day links are positioned via the ID l1 to l24 settings in the CSS.
You can change all these settings in the variables section of the xmascalendar.php file:


$pictureFolder='ups';
$month=12;
$clickableClass='done';
$calendarID='calendar';
$pictureID='pic';

Why in PHP and not in JavaScript?

This functionality could of course also be done in JavaScript, but that would make it easy to cheat by changing the computer’s date. You can of course cheat now by looking in the folder for the images themselves, but there are ways to prevent that server-side.

Yes, you could do that in AJAX with the PHP just doing the date checking, but frankly, I am too lazy right now :-)

Enjoy.