RSS

Archive for the ‘Notes’ Category

November 27th, 2009 - 2:14 pm § in Notes

Case of the missing/hidden IE8 Developer Tools window

Whilst working on a current project I was trying to get cross-browser compatability working nicely. However when I came to load up IE’s Developer Tools I found it was loading up the window but nothing was there! I’m running Windows 7 and this seems to be the only [...]

October 20th, 2009 - 5:59 pm § in Notes

[PHP] Get current time in milliseconds

I recently needed to get the current time in milliseconds, of course this can easily be retrieved using microtime() however I needed the entire number in digits, not in decimals with seconds seperately etc. Heres how: ?View Code PHP1 2 3 $timeparts = explode(" ",microtime()[...]

October 12th, 2009 - 3:42 pm § in Notes

Bash, Bad Interpreter

I recently came across: /bin/bash^M: bad interpreter: No such file or directory When trying to run a bash script that someone else had edited. This most commonly happens on UNIX systems if the file has been edited on MS-DOS or Mac. The cure for this is to run a simple perl script: ?View Code BASH#![...]