Shared Items - 21/04/2010

Twittering pub hanging Questions to Ask if You’re Thinking of Getting Involved in Open Source Backing Up With rsync And Managing Previous Versions/History How To Write Your First Google Android Application How to Build your Wardrobe – Part 1 TeamViewer Remote Desktop Tool Available for Linux [Updates]

April 21, 2010 · Andrew Bolster

Listing just dot-files

Its a problem that I’ve come across, and I’m not the only one, so heres what works for me to find those pesky files that start with a . ls -a | egrep -i "^\." This only works in the current working directory, which is the normal usage. FYI the reason that this is problematic is that the ‘.’ symbol is a single character wildcard; most people are familiar with the asterisk ‘*’ indicating ‘anything, however long’, whereas the ‘.’ means ‘any single character’. ...

April 9, 2010 · Andrew Bolster

The DE Bill, or, How I Learned to Stop Worrying and Love Tor

Folks, we’re basically screwed; The Digital Economy Bill recieved Royal Accent on April 9th and is officially now Law. So after barely three days of parliamentary ‘debate’ where only 20-ish MP’s actually spoke on the subject (but somehow 189 MP’s decided it was a good idea anyway), our civil rights have been sacrificed infront of the alter of copyright. Many sites have a much more indepth tretise on the subject than I could do so I’ll keep this short. ...

April 9, 2010 · Andrew Bolster

Mod_Rewrite in Apache2

Just incase you forget how to fix this the easy way: Enable mod_rewrite for URL voodoo; (Or any module replacing the rewrite ) $sudo a2enmod rewrite $sudo service apache2 restart Remember to fiddle with /etc/apache2/sites-available.*< \pre> and change "AllowOverride none" to "all" in any places that you're having trouble with rewritten URL's

April 1, 2010 · Andrew Bolster

What to do when Ubuntu Device-mapper seems to be invincible!

I’ve been trying a dozen different configurations of my 2x500GB SATA drives over the past few days involving switching between ACHI/IDE/RAID in my bios (This was after trying different things to solve my problems with Ubuntu Lucid Lynx) ; After each attempt I’ve reset the bios option, booted into a live CD, deleting partitions and rewriting partition tables left on the drives. Now, however, I’ve been sitting with a /dev/mapper/nvidia_XXXXXXX1 that seems to be impossible to kill! ...

March 26, 2010 · Andrew Bolster

My Experience with Ubuntu 10.04, Lucid Lynx

**Updates(26/3/10): **Thought I’d give the liveCD another go (this time using the dailyx64 image and using unetbootin), thinking it must be something simple; so during boot i just kept pressing escape, before the splash screen came up. This got me around the splash screen issue and it seems as if everything is fine. Also, I found a matching bug report on launchpad, but no resolution as of yet. Guess we’ll have to wait and see. ...

March 24, 2010 · Andrew Bolster

Chmod on lots of files

My lil-NAS has plenty of space but is maddeningly underpowered. I came across a permissions issue where, depending on how the files in question got there, they would not be accessible to my windows boxes because they were owned by root (I have no doubt that its my fault!) So, first attempt was nice and easy. $chown -R smbusr:smbusr * But this was taking a horrific amount of time, so I thought “There must be a better way”. ...

March 23, 2010 · Andrew Bolster

Installing and Configuring NS-3 on a Ubuntu System

** NS-3 Appears to have a staggeringly steep learning curve so I hope these posts help out someone else (or me, when i forget all this in a month). Running off a virtualised Ubuntu 9.10 system, the prerequisites I installed were all the ones listed here. (And i removed some out of date packages) sudo apt-get install bison bzr dia doxygen flex g++ gcc gdb graphviz imagemagick libgoocanvas-dev libgtk2.0-0 libgtk2.0-dev libsqlite3-dev libxml2 libxml2-dev mercurial python python-dev python-kiwi python-pygoocanvas python-pygraphviz sqlite sqlite3 tcpdump texi2html texinfo texlive texlive-extra-utils valgrind ...

March 14, 2010 · Andrew Bolster

Mercurial Quick Start Cheatsheet

I hadn’t used Mercurial before so I thought it might be a good idea to leave a reminder for me and anyone else who comes across it… For tidyness, I do all of my dev-stuff (Subversion, Mercurial, CVS, Git etc) under ~/src and only take root privileges when its needed; any good makefile should relocate the necessary files for you at the ‘make install’ or equivalent point. **Update:**This article was picked up by the guys at DevCheatSheet.com and I’m really honoured to be included in a site that I’ve been dipping into over the years, so if you need any kind of cheat sheet or quick reference, I highly recommend checking them out. Anyway… ...

March 13, 2010 · Andrew Bolster

Line Parsing Reminder (Duplicate removal)

So, say you have a long list of instruction (like multiple apt-get install lines) and you want to eliminate common words? Easiest way to do it is (assuming you have all of the instrustions in “list.txt”) [FYI the ‘' character indicates a continuation of a single line ] cat list.txt\ | tr ’ ’ ‘\n’ \ #Expands all space characters to new lines | sort | uniq \ #sorts each line, and then eliminates duplicates ...

March 12, 2010 · Andrew Bolster