John Hunt's web log | Open source, Linux, Developer tips, Beer, Whatever

Archive for June 2005

Jun/05

29

Linux / emacs stuff

M-/
Completes the token (in emacs) or the directory in bash.
less whatever.tar.gz
This actually lists the files in the compressed archive!

And here’s some useful keystrokes for emacs

No tags

Jun/05

28

Cool streams

James and I have recently been chilling out in our computer room to the likes of Club 977 – 80’s radio, it’s great (ish). Doesn’t only play the 80’s you hear on Ocean FM all the time.

No tags

Jun/05

28

Gallery

The gallery is back (kind of) until Nick (who’s now in charge of the gallery) fixes it up good and proper. Enjoy. Pics of the latest Cube/Academy nights will be on there soonish, Nick has those at the moment too!

No tags

Jun/05

27

Bloc party

I’m well into bloc party – Silent Alarm at the moment, some kind of mad indie rock stuff, resonably accessible to all!

It sounds pretty cool, the lead singers voice may annoy you though. Sounds a lot like Damon or whatever his name is from Blur. More musical reviews here soon.

7/10 at the moment, but it’s probably going to move up to 8/10.

No tags

Jun/05

27

Gallery

Where’s the gallery I hear you scream?
It’s gone for a while. The pics are still around somewhere though.

No tags

Jun/05

27

Rescuing lost mysql root password

Run this:
mysqld_safe --skip-grant-tables --user=root &
Then:

UPDATE mysql.user SET Password=PASSWORD('newpwd') WHERE User='root';
FLUSH PRIVILEGES;

Unfortunately, the info on the mysql site seems to be a bit wrong!

No tags

Jun/05

26

Useful netstat

List connections in a useful manner:
netstat -a -tcp

No tags

Jun/05

26

Evaluating variables in bash

echo ${!file_list} will echo $$file_list, so say $something = john and $cat = ’something’, echo ${!cat} would be something, gettit?

No tags

Specify the display before the application:
DISPLAY=:0 btdownloadgui.py

No tags

Jun/05

26

New weblog

Hi, welcome to the new site. It’s a work in progress at the moment. It’s also what’s known as a blog, which means web log. I hope you find the site a bit better than the old one, although no doubt you’ll all moan. Remember, I pay £20 a month to have this crap :p

No tags

Find it!

Theme Design by devolux.nh2.me