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 [...]
Archive for the ‘Notes’ Category
[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()[...]
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#![...]