Bits, Bytes and WTFs…

Written on 2012-06-18.

I think its important to understand the little things. An understanding of the small parts of the whole give a greater understanding of the entirety. I’m quite surprised at just how difficult it was to find the information and how poorly it is presented. So… for my future self and whoever else wishes to read. Here is all the information I have gathered and put together in a way that like-minded people can grasp. Continue reading “Bits, Bytes and WTFs…”

Bits, Bytes and WTFs…

Story Time!

All my life I’ve never been into reading books, hated it. Boring slow and inefficient method of data transfer… this is probably because I was crap at reading, really slow. I mean, r,e,a,l,l,y  s,l,o,w. Just comes with the territory I suppose.

Even though I never really considered it “reading”, I was always researching online, planning out new things, learning new stuff. The only reason I could stand this, was because most of the information was short form and to the point so it didn’t matter if I was painfully slow at reading it. It didn’t feel like I was wasting my time with a made up story…

Over the last couple of years, I found an appreciation for storybooks. Mainly because it’s one of the only things that can actually put me to sleep at night, and there are so many things to learn from a well crafted story, you just need to find the right ones, and then the time to actually read them. Continue reading “Story Time!”

Story Time!

Just keep swimming, just keep swimming…

I’ve always been obsessed with acquiring more knowledge, teaching myself everything and anything that might be relevant.

In the early days, this meant maths, programming and sales. Nowadays it’s self-improvement, people management, business optimization and finances. All of this content is normally online, however recently I’ve been getting into physical story books as well.

Although this seems all well and good, when you read all day for a living, it can be a strain to spend the personal time have reading articles and documentation to improve and then finishing the day reading the next couple chapters of a fictional escape…

That’s way too much reading for a healthy lifestyle! So I’ll tell you guys a few tricks I use to keep up with it all.

P.S. This and the next few articles were written by the new found dictation feature on my MacBook pro (double tap fn [function])! 😀

Just keep swimming, just keep swimming…

Read more, without reading…

Most of my online reading content comes from forums, stack exchange, code documentation, Q&A sites and of course blogs, such as life hacker. Most of this kind of information is not time critical, but in my experience trying to bookmark the links and read it later never works… and different website layouts, adverts etc can be a pain.

Boom, Instapaper!

It’s an online service that doesn’t just collect the websites you want to read later but also intelligently strips out the content from the crazy websites for easy reading. They have an iPhone app, web interface, API etc. Really easy to use, saves your location, social buttons, reading time estimation, with auto scrolling see you can even catch up with one hand while riding the London Tube. Continue reading “Read more, without reading…”

Read more, without reading…

Stream movies to iPad…

All my movies are stored on my telly-computer, in the front room, and sometimes I just want to watch them in bed on the iPad, or even download them to the iPad for watching while out and about. The proper way to do this is to convert all the movies to a format supported by the iPad such as MP4 and then use iTunes to download them onto the iPad, but that’s not the fun way.

Tada! We now have VLC for iPad! 😀

VLC has been an amazing media player for years, It’ll play nearly any video/music format and it’s now available for iPad (and iPhone) for FREE!

Since the new VLC app lets you download or stream a movie from a web-link, all we need is a web-server running on the computer with the movies, in my case Stevie the TV. That’s normally a hassle but as we don’t need anything fancy we can use a tiny web-server like Boa. Simple and easy.

I’ve got all my movies saved in “/home/user/Videos/Movies” (well technically “~/Videos” is a symbolic link to a mounted 3TiB HDD, but that’s a story for another day) and once we have the Boa web-server up-and-running we can point our VLC app at the video(s) we want to stream or download over the local network.

I’ve made a quick and easy Boa config file to get the job done, but first we need to install Boa. On Linux, in terminal execute:

sudo apt-get install boa

Continue reading “Stream movies to iPad…”

Stream movies to iPad…

Netflix on Ubuntu or XBMCbuntu…

Currently (2013-02) Netflix cannot run on Linux. Due to its reliance on Micro$haft Silverlight and DRM (digital rights management a.k.a the chains restricting human development). Silverlight is just Microsoft’s version of Adobe Flash.

Linux does have its own version of Silverlight called Moonlight, however it doesn’t have the DRM Netflix requires, but praise to the up-stream, someone hacked it!

Using WINE (Windows Is Not Emulated), a sort of Windows emulator and some modded FF (Firefox)/Silverlight files, Netflix will run beautifully!

Head over to, for detailed instructions.

If your following along from my Perfect Home Media Server post or using XBMCbuntu you may come across an Xorg compositing issue, as I did. Solution for that is here, and more info here,

Netflix on Ubuntu or XBMCbuntu…

Xubuntu: Not enough free disk space on /boot

Today I ran into a problem when trying to install some updates for my Xubuntu 12.10… I got a message saying:

Xubuntu 20.10 /boot full

Its suggestion of ‘sudo apt-get clean’ didn’t do anything, nor did ‘sudo apt-get autoclean’, ‘sudo apt-get autoremove’, etc. After some Googling (DDGing), I found a solution…

The ‘/boot’ partition is normally rather small (243.0 MiB in my case) and contains Linux Kernel files, these are the files that get your computer going as it should. Think of them as the skeleton of your OS, but for some reason when your skeleton gets upgraded, it leaves the old one behind, which can quickly fill-up your ‘/boot’ partition.

Only one Kernel (skeleton) is used when booting your computer but it’s always good practice to leave one spare laying around just in case, you don’t really need any more than the current one and an old spare one.

Open up terminal and execute this:

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/(.*)-([^0-9]+)/1/")"'/d;s/^[^ ]* [^ ]* ([^ ]*).*/1/;/[0-9]/!d'

Continue reading “Xubuntu: Not enough free disk space on /boot”

Xubuntu: Not enough free disk space on /boot

Linux Playing DVD over Network…

The problem! I’ve got an extraordinary TV/Media Server set-up using XBMCbuntu (more to come on that soon) with a DVD drive, however my main computer in the office (amazing as it is) does not have a disc drive. So watching DVD’s while working (Stargate Atlantis Season 3) is a bit of a pain…

After much research and trial/error using SSHFS to mount the DVD locally, I reverted to VLC, after all its called Video LAN Project for a reason.

After screwing about with the GUI trying to use VLC’s streaming capability. I opted for the terminal approach.

Either on the DVD Server itself or via SSH, run the following command:

vlc -vvv dvdsimple:///dev/sr0 --sout '#standard{access=http,mux=ts,vcodec=x264,dst=:8181}'

and replace “/dev/sr0” with the location of your DVD device, “/dev/sr0” is mine and could work for you as well. Continue reading “Linux Playing DVD over Network…”

Linux Playing DVD over Network…

PHP Next in an Associative Array…

This might me useful for some people…

If you want to echo the value of the next ‘key->value pair’ in an associative array. You can use:

$keys = array_keys($arr);
echo $arr[$keys[(array_search($key, $keys)+1)]];

Where $arr is the associative array, $keys is the $arr keys as values with numerical keys and $key is the $arr key of the key->value pair prior to the one you want to output.


$arr = array(
'12' => 'a',
'14' => 'b',
'20' => 'c',
'23' => 'd'

And you want to output the next value after ’14’=>’b’, which would be ‘c’. All you need to do is define $key = 14;

If you want to output the previous to ’14’=>’b’, just change the “+” to a “-“.

PHP Next in an Associative Array…

Sublime Text 2 Word Wrap Problem…

Recently I’ve been using ST2 on my new all-Linux setup, with the SFTP plugin of course…

However, I did come across some issues with certain file types not conforming to the predefined settings for no word wrapping.

Simply changing the ‘line break column number’ (have forgotten the actual variable name and I’m not at a computer ATM) to something large such as “9999”, seems to be an affective work around for now.

Sublime Text 2 Word Wrap Problem…