Category: Uncategorized

Quick link to google map locations

I came up against an interesting challenge today. How do you create a hyperlink that takes you to a google map page centered on your desired location?

Poking around in Google maps was proving to be frustrating as it has a preference to focus on ‘places’ that it knows about.

The simplest solution was to create a url in the form

maps.google.com/?q=[your location here]

You just replace [your location here] with your search or location string. For example:

This allows you to very quickly create individual links for many locations on a page based purely on the address they supplied.

Extremely useful if you want to link to maps of many businesses or organisations in a long list. Quick and easy!

Frustrating password policies

Complex password policies are stupid.

This is just my view on things, and I suspect I’m not the only one that thinks this way, but I should be free to choose whatever strength password I want. I am constantly frustrated by sites that force me to have a password of a given complexity. The example I came across this afternoon that fired me up enough to blog about it was the Australian Government’s GovDex (https://www.govdex.gov.au).

Your pasword on their site:

  • Must not be the same as your current password
  • Minimum length of 7 characters
  • Contain at least one uppercase character
  • Contain at least one numeric character

Now I would be ok if they made this as a suggestion. I may have also been OK with this is only one of them were required. But they are all required, and that makes it really annoying for me to pick a password. Shouldn’t I be the one to decide how secure I want my account to be? If I choose a simple password, surely that’s my perogative based on my interpretation of how importantly I need to protect my account?

Stepping back from the personal hardship here, doesn’t a restrictive list of criteria like this actually make a hackers job easier?

By taking these three required criteria:

  • Minimum length of 7 characters
  • Contain at least one uppercase character
  • Contain at least one numeric character

My password bot now has a set of rules that will make it more efficient at finding a valid password by brute force. I can skip all alphanumeric combinations 6 characters or less and I can set rules to always include at least one uppercase and one numeric character.

I may be completely wrong about the hacking thing though – I’m definitely not a hacker and have never made a bot more complex than an auto-reply for IRC.

However, on the real-side of password seurity, because I have to think up such an obscure password, I’m probably not going to remember it which means I’ll just end up either writing it down somewhere, or my preferred option – just resetting my password every time I need to access a site. ;)

Regardless of how I end up managing these sites, one thing would make them better – let me decide on my password policy. It’s my stuff, my information and my reputation on the line if someone hacks my account. Let me choose my own destiny.

Chrome/Safari adds background white and space around tags

I just came across a ‘feature’ of Chrome and Safari and possibly other browsers that I had never come across before. I was setting up a data table and was using caption tags to provide the table headings.

This was looking fine until I tried to apply a background colour to the whole table. Applying normal CSS logic, I should be able to apply a class to the table and have everything in it inherit the background colour:

table {background-color: #9f3;}

But this did not work how I had expected it to at all. In Firefox, Chrome and Safari, only the table rows had the background colour applied and the caption text sat above it all in it’s own white box.

Applying a background color to the caption tag should fix the problem, right?

caption {background-color: #9f3;}

Nope. It added the background colour to the caption tag alright, and looked OK in Firefox, but Chrome and Safari have added a gap between the caption and the table rows. Inspecting the element yielded few clues as to where it was coming from because margin-bottom was 0, and there was no margin on the table rows.

Then I found it:
User agent stylesheet
caption {
display: table-caption;
text-align: webkit center;
}

display: table-caption? wtf? Why does this exist and why is it secretly applying so many visual styles on my content?

The Fix

The fix however was simple. Just make it display like a common html element:
caption{display: block;}

And all my problems were gone! Hope this helps someone else!

Capture a single frame of video in Windows Media Player

Turning off hardware acceleration will let you take stills of video

Turning off hardware acceleration will let you take stills of video


Just a quick one today, but a very useful one. Ever needed to grab a still out of a video to use as a placeholder graphic or something? Playing the video in Windows Media player and pressing print screen then pressing or paste in your favourite image editing application, will only get you the Windows Media Player frame with a big black void in the middle of it.
The solution is to turn off video acceleration as in the image above.
Simply go to Tools -> Options, then under the performance tab, slide the arrow all the way to none.
Now when you play your video and hit print screen, your resulting screen cap will actually have a still of the video.

Testing multiple versions of Internet Explorer

We all know how completely un-awesome Internet Explorer 6 is and how un-wonderfully it complies to all those standards and stuff. As website designers, the world would be a much happier place if everyone was using Firefox or at least IE7, but unfortunately the world is a miserable place with millions of people still trolling around the internets with the now very outdated Internet Explorer 6.

Unfortunately for us, each verison of Internet Explorer uses the same resources to get the job done which means installing multiple versions is impossible. Or so I thought.

Standalone browsers

These look to be fantastic as they don’t overwrite any of the system files that your main browser uses. What this means is that you are effectively testing a fresh copy of IE6 (or earlier if you really feel the need) on the same system as IE7 or IE8.

You can grab the standalone installers from here -> http://browsers.evolt.org/?ie/32bit/standalone

A note on Vista

After fishing around for a very long time, it apppears that the only way to test in IE6 on a Windows Vista machine is to run a Virtual System. Microsoft has a full set of instructions on how to set this up.

Still hoping for a June release for 3G iPhone

Adding to my previous post which speculated that we may be seeing a 3G iPhone before th end of the financial year, Engadget has once again posted speculations that include a June release date. The exact quote from the article reads:

Apparently, a record label executive “familiar with the discussions” states that the Cupertino gang is hoping for a “big launch in June” which includes OTA music downloads, ringtone sales, and ringback tones

Australian Apple website MacTalk is also throwing in it’s own speculations on a June release adding many details about contracts, availability and ideas for who you might be able to buy one from (which I read to indicate it will be anyone with an Apple Reseller sticker in their window which may include big players like Domayne, Harvey Norman and Myer as well as the telcos). The main selling feature of the credibility of the MacTalk article however is its quoted source – Apple itself!

Resellers were informed over the past few days by Apple – the Australian Apple reseller community is like a little mothers club, so word travels fast

Now once again these are just rumours, but when so many rumours keep suggesting the same timelines who knows, maybe we will see the fabled 3G iPhone released next month.