Blog Page

Linux USB Device Power Cycling form the Command Line

Barney Parker 0 Comments

I’ve been wasting an afternoon playing with my Raspberry Pi today, and having found an old webcam lying around I decided to see if I could make a couple of time-lapse films – No reason, just to see if I can!
Read More →

Cisco 857 Router Config

Barney Parker

I work from home most of the time, which means my ADSL really is a life line.  Without it i’d be making a 35 mile trek to the office every day.

The village i live in doesn’t have the greatest ADSL, but it’s not too bad either.  For most stuff it’s perfectly workable, however I have repeatedly had problems with home routers and their inability to work correctly for extended periods.  From a ton of reading i guess it’s down to memory leaks etc.  A simple power cycle fixes it, but that’s not a great help during a VoIP call when the line keeps breaking up.  Power cycles typically take 2-4 minutes to complete, which is often an issue, followed by a 1 min VPN reconnect….
Read More →

Raspberry Pi SD Card Corruption

Barney Parker

If you’ve played around with a Raspberry Pi (http://www.rapberrypi.org) much, then you may well have come across a small but quite annoying issue with your SD card becoming corrupt.

Now I can say why it happens, but the problem appears to only happen occasionally, and only with some card, but when it happens it can be really annoying!  I know we’re all supposed to back up after every keystroke, but one of the things about the RPi is that it’s a great hobby platform.  This means that quite often you;re just messing with things to get an idea working.  Often it’s hard to remember exactly what it was that you did to make it work, which makes a corrupt SD even more annoying!
Read More →

Git for Deployment

Barney Parker

Recently I have been using BitBucket to get to grips with Git. Git is a strange version control system, although maybe that’s because I am more used to SVN.

One thing I had read was that Git was great for remote deployment, because only the deltas are needed, making the whole update process far quicker. The added bonus is that you can always log in to the production server and change branch or revision quickly if you really do foul up!

BitBucket supports Git Hooks. These are essentially scripts which are run on certain events. In my particular case, what I wanted was for BitBucket to POST some data to a specific URL on my server on the event of a push.
Read More →

Organising Photos on Linux

Barney Parker

Over the years I’ve built up a huge collection of photos. Digital photo’s are great, you can take hundreds of pictures, and delete the ones you don’t like. The only problem seems to be that there isn’t a consistent naming scheme between devices! That’s a hassle, because one way or another you need to organise them to be able to find things later!
Read More →

Oh My God It’s Cake!

Barney Parker

Now i’m not a big cook, although i do really enjoy it.  I am however a big fan of Cake!

If you’re a fan of cake too, head over to www.sarahwilmott.com and download yourself a copy of her new Kindle book, Oh My God It’s Cake.

If you’re reading this in Early August, it’s currently free to download from the Amazon Kindle store.  The cakes are family favorites, and are really easy to make!

Now, I just need find a book on reducing the size of my belly!!!!! :)

World Simplest HTML5 WYSIWYG Inline Editor

Barney Parker

I am pretty new to web/JavaScript development, and often quickly reach for Google in order to find out how to do things.

Recently I needed to add the ability to do some pretty basic in-page editing of content. I didn’t want to use iFrame’s, i didn’t want a hugely featured editor, literally some pretty basic tools to be able to edit content, bold, italic, h1, h2 and so on.

After a fair bit of Googling, it seemed that there wasn’t a hope! all the plug in’s i found just seems unnecessarily complicated so, in a fit of self-importance, i decided i could do it myself. i’d end up with the editor i wanted, and code that i fully understood. Granted, it wasn’t likely to be an easy job, but hey, why would i code anything if there was an easier option?
Read More →