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())[...]
Archive for October, 2009
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 BASH1 [[...]
New Project: vBulletin-Bridge
Whilst working on FetchMP3 I wanted to create a bridge between the forum membership system and that of the main site’s. So a lot of writing later the vbulletin bridge was born. It has many of the features any membership system would need such as:[...]
Under Construction!
Its been a long time coming but I’m finally re-developing my site, I’ve been pre-occupied recently with the latest project I worked on, FetchMP3, but I’m now finally getting my act together and adding content etc. Most of the portfolio has been updated now but the main content is s[...]
About Me
Hi. I’m Sam Cleaver, a first year student at Coventry University in Electrical Systems Engineering. I’m also a web developer with almost 7 years experience in programming. I can code in HTML, CSS, Javascript, AJAX (jQuery), Perl, PHP, MySQL in addition to server system administration. I [...]
My Skills
Programming since I was 12 (2002) I have had a lot of experience working with information technology. Originally starting coding very basic, messy, HTML I have now had almost 7 years of working with the language, now of course using tidy XHTML and CSS stylesheets.[...]
Twerq
I worked on Twerq roughly three years ago now and it has been one of the biggest projects I’ve undertaken to date. At its core Twerq enables users to very easily search and find multiple items all in one go. It was one of the first services to “mashup” content, pulling together vid[...]
FetchMP3.com
My latest and greatest project is a culmination of many many hours of both research and programming. Originally launched at the beginning of December, 2008, it has recently reached version 3. It includes the use of ajax, caching, php, mysql and intergration with external scripts such as ffmpeg and c[...]