Sat, 22nd Nov 2008 07:32:04
Never fear, this site is here
Page: 1 2 3 4 5 6 >

#irssi, figlet, greatness

Author: ben
Fri, 21st Nov 2008 10:53:43
Filed under: Coding.
/alias figlet /exec - -o echo $0-| figlet -w 60 | awk -F% 'function randint(n){return int(33+n * rand())} {printf("\\x03%s%s\\n",randint(12),\$1)}'


Combining the joys of shell scripting, figlet, irssi colour escape codes and two different kind of escape sequences, you can achieve the following...

Read more

There are no comments on this post. Make one

Stumble Upon REDDIT Digg! del.icio.us


#Save the plastic trees

Author: ben
Mon, 29th Sep 2008 12:48:13
Filed under: Articles, Media, Rant.
There was a post on Lifehacker entitled "Five Best Sites to Stream TV". Useful. I'm always looking for a "legal" alternative to torrenting TV shows. DVD's are okay, but considering you can fit thousands of episodes on a harddrive about the size of a single DVD, it seems like there should be a better solution, one that doesn't involve quite so many slices of plastic sitting on a shelve..

Oh. Importantly, I live in a country that isn't America (currently Australia).. Lets see how "best" these are for us damned Foreigners..

Hulu.

Read more

Stumble Upon REDDIT Digg! del.icio.us


#You, sir, have crossed the line.

Author: ben
Fri, 12th Sep 2008 12:37:38
Filed under: Rant.
I didn't really mind when The Escapist added the adverts at the end of the Zero Punctuation videos. It was pretty unobtrusive, and advertised their own content. Fine.

Then "Yahtzee" changed the intro away from using appropriate, fair-use, copyrighted music, to a flashy-random-ZP-graphic title sequence.
That annoyed me because I really liked the intro/outro songs (I can't think of Bioshock without thinking of The Beatles - Octopuses Garden..), and the new music/graphics are completely unfitting, and kind of boring..

Then there was adverts *for Zero Punctuation* at the end of Zero Punctuation. That was just stupid.

Read more

Stumble Upon REDDIT Digg! del.icio.us


#MySQL fun

Author: ben
Mon, 25th Aug 2008 13:25:32
Filed under: How-to, Random.
SELECT count(DISTINCT postkey) as post_count, membername FROM members, posts where members.memberid = posts.postauthorid GROUP BY membername ORDER BY post_count DESC


Posting that query is mostly for archival purposes. Basically this.. fun little query counts the number of unique posts by each user, from a MySQL database.

The posts table has postkey (the unique identifier) and postauthorid, the members table has a membersid column (relates to postauthorid) and membersname (the human-readable member's name).

Read more

Stumble Upon REDDIT Digg! del.icio.us


#Installing Python 2.6/3.0 without breaking stuff

Author: ben
Sat, 23rd Aug 2008 11:16:53
Filed under: Linux, Mac OS X, Python.
Pretty simple to do, but regardless here is a copy-and-paste'able set of commands that should work on OS X/Linux (if you have the Apple Developer Tools installed, or the build-essential package on Ubuntu):

cd /tmp/
curl -O http://www.python.org/ftp/python/2.6/Python-2.6b3.tgz
gunzip Python-2.6b3.tgz 
tar -xf Python-2.6b3.tar 
cd Python-2.6b3/
./configure --prefix=/usr/local/python2.6
# lots of lines ending in "... yes" hopefully
make
# will take a while, no errors
sudo make install
# enter your password, as it requires root access to put files in /usr/local/
# lots of stuff flies by..
sudo ln -s /usr/local/python2.6/bin/python2.6 /usr/local/bin/python2.6
sudo ln -s /usr/local/python2.6/bin/2to3 /usr/local/bin/2to3
# this puts python2.6 into your $PATH


That will install python2.6 into /usr/local/python2.6/ and symlink the commands "python2.6" and "2to3" into /usr/local/bin/

Read more

Stumble Upon REDDIT Digg! del.icio.us


Page:1 2 3 4 5 6 >
Powered by Debian, Jack Daniels, Guinness, and excessive quantities of caffeine and sugar.