Copy Paste Arrays

When I got to the point of creating a simple array with which to build a form dropdown for Canadian provinces for the umpteenth time, I decided to paste it here for future use. I suspect similarly oft-used arrays to soon follow. (U.S. states, Countries etc.)

testresponse

Oh, Fido

Located in:

This August I bought a snazzy Sony Ericsson Neo during my trip to Estonia. For my two weeks there (using my local, Estonian number) it was my portable Wi-Fi router and I could access my work computer half a world away while we were doing 100 km/h driving between Tallinn and Tartu. It was my first experience having a self-contained, 24/7, mobile internet workspace and it was pretty cool.

1995 Volvo 940 For Sale

Located in:

Update: The car has been purchased for its transmission. Obviously, it is no longer for sale.

I have a spare Volvo in my drive and I would like to get rid of it. Why, you ask? I got a good deal on a slightly younger Volvo and we don't need two cars. I would prefer an "as is" sale since I do not want to bother with running around to get the safety inspection done. I'm totally happy letting you take the car to your mechanic to get it checked out. The car is located in Toronto's Beaches neighbourhood.

Do you use Drupal's Schema API?

CCK fields saved in DB differently depending on # of content types using them

Located in:

I recently had the unfortunate experience of having to alter SELECT statements between my dev machine and testing machine since the database structure, which should be an exact match, had somehow changed between the two. Everything worked at good ole' localhost, but when I uploaded to the testing server, no query results were forthcoming.

That was Easy!

Located in:

Yesterday I sat down for 20 minutes with a friend who wants his website re-done. Until now he has had what I would call a proof-of-concept version that I threw together years ago as a starting point. (an online equivalent of a paper-based wireframe) I guess he was satisfied because we never subsequently sat down to develop any actual look/feel or functionality requirements. The site just stayed that way - even the bogus content I entered as placeholder text.

3531 is my car stereo's unlock code

Located in:

My 1995 Volvo has a stock radio/cassette player (yes, cassette player) that has a self-locking anti-theft feature. Specifically, if the radio is disconnected from its power source (for instance, if the car battery is disconnected) the radio asks for a code before it will play. I don't know how many radio thefts this feature has prevented, but I suspect it's not too many. A potential thief would have to recognise ahead of time that, if stolen, the radio will be useless without its special four-digit code.

View results into a dropdown

Located in:

A department at work organises and hosts events on a regular basis and they finally wanted to get their info up on the website. However, even before they had their first events listed, they wanted an archive of past events and wanted to have a dropdown on their page which listed monthly archives (ie. September 2010, August 2010 etc.). I decided to approach this using Views. Building the view to list past events was no problem, but loading this information into a dropdown was much more involved than I had expected.

Skype ruins my layout

Located in:

I recently noticed that the main menu of a site I work on had an approximately 5x5 px white box at the beginning of the main menu that shouldn't be there. Some pages had it while others didn't. I tried to right-click and "Inspect element", but my context menu was the kind you get when you right-click on a Flash object. Huh? I didn't have any Flash on that page.

Do you use Drupal's Schema API?:
How about that! I'm a Drupal association member.

Attention IE user!

It turns out you are using an outdated browser and my site might look a bit weird for you. (images are off colour, text gets cut off, layout is wacky) This is because your browser does not implement web standards. Please consider an upgrade.

Alternatively, you can try other browsers like Google Chrome, Mozilla Firefox, Opera or Apple's Safari. Every web developer on the planet will thank you! (and that's not really an exaggeration)

Hide this notice for the rest of your visit