MAC OSX error: bad interpreter: No such file or directory
I have a few scripts that I use on the command line and as OSX is Unix these scripts can invoke theire resoective interpreters with a “Shebang” (#!). With some of these scripts I was getting an error ad others not.
/usr/bin/php^M: bad interpreter: No such file or directoryRead the rest of this entry »
Flash EU/UK Motorla Xoom Firmware to US GED and get OTA updates no Root Needed
After convincing myself a tablet is a must have, I recently bought an Ipad. I owned it for three daya and took it back to Apple. I was niave, I assumed if my iMac was amazing then an iPad should be as well. Well it was not, I hated it.
The other choice was Android, specifically Andriod 3 Honeycomb. The Playbook and HP’s Touchpad were not considered as these products could easily fail due to low market adoption.
I have had a handful of Android phones such as the G1, Dell Streak, HTC Desire, Sony Xperia X10i and Samsung Nexus S. The Nexus S is by far the best one due to being a Google Experience Device and receiving updates straight from Google. This is also the route I shall follow with a Android tablet. This filtered down the selection to just one device, the Motorola Xoom.
Read the rest of this entry »FFmpeg for Mac OSX
I have just recently bought my very first Mac, a very tasty 27inch iMac with Snow Leopard. Most of the software I use is fully cross platform, however this does not always mean its readily available for the different platforms.
For example I use a lot of FFmpeg for my video conversion scripts, on Ubuntu its as easy as Synaptic. On Windows the easiest way is Cygwin Ports. On a mac, erm …
Rather than compiling from source I found the ffmpeg binary in the package files of Miro Video Converter. It does not include support for libfaac but the built in aac codec actually performs quite well compared to the Ubuntu and Cygwin versions so It can produce reasonable acc audio. There was also the binary for ffmpeg2theora so I thought I would share this as well.
Download ffmpeg for OSX Snow Leopard
Download ffmpeg2theora for OSX Snow Leopoard
Read the rest of this entry »Fix Ugly Fonts in Ubuntu
After recently trying out Kubuntu by installing kubuntu-desktop package, after switching back to Ubuntu I found all the fonts to be very ugly and scrawny. Simply playing with the font settings in System > Preferences > Appearence made the desktop and application fonts appear much nicer but fonts in Firefox and Chromium still looked very nasty.
The fix is quite simple, in your home directory delete the folder “~/.fontconfig”. Log out to restart your session and your fonts should now appear smooth and fuller.
Read the rest of this entry »Converting Videos for Android using Command Line FFmpeg in MPEG4 or H264
This one has taken me a while. I found out quickly what FFmpeg paremeters to use to convert a video to MPEG4 that will play on an Android device but the H264 was tricky. H264 support on Android is loose at best and has a real pig to get working but I have finally managed this almost impossible feat. H264 is the ultimate codec we have at current for mobile devices as it uses far less disc space to achieve the same quality as other codecs, although the encoding time is far greater.
Do not Google any further, I found many examples on the web but none seemed to work, these definitely do. This has all be done on Ubuntu 10.10 (Maverick) and you will need to enable the medibuntu.org repository to get the non-free codecs for H264 to work.
Read the rest of this entry »