gems from linux.conf.au, after the pub

* MacPlusG3 wonders wtf is happennning with is imaps connection
<bernard_> MacPlusG3: 21:59 < cef> yup.. dropping my mtu to 1478 fixed it
<bernard_> ?
<bernard_> though I'm on burgmann wireless here and pulling mail over imaps just fine.
< -- womble has quit ("ZZZzzz...")
<MacPlusG3> THAT IS FUCKED

stillhq.com – Stat on the command line

stillhq.com – Stat on the command line

So Michael pointed out there is one…. in recent versions of coreutils at least.

(umm… yeah… that’s a good excuse. no really)

I should retitle previous entry to something like:
ever wanted /usr/bin/stat on an older system?

The copyright for /usr/bin/stat is 2004 – so i guess my perl is still good for pre 2004 distros (*cough* a debian release *cough*)

~/bin/stat

What have you always wanted on the command line?

stat? i: hear; you cry! (insert more [silly] {punctuation} around ‘ere!)

I present, to you, my ~/bin/stat

#!/usr/bin/perl
use POSIX qw(strftime);

my $FORMAT="%H:%M %a, %e %b %y";

foreach(@ARGV)
{
  my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
      $atime,$mtime,$ctime,$blksize,$blocks)
      = stat($_);
  print $_."\n";
  print "Dev:   $dev\n";
  print "inode: $ino\n";
  print "mode:  $mode\n";
  print "nlink: $nlink\n";
  print "uid:   $uid\n";
  print "gid:   $gid\n";
  print "rdev:  $rdev\n";
  print "size:  $size\n";
  print "atime: ".strftime($FORMAT,localtime($atime))."\n";
  print "mtime: ".strftime($FORMAT,localtime($mtime))."\n";
  print "ctime: ".strftime($FORMAT,localtime($ctime))."\n";
  print "blksz: $blksize\n";
  print "blks:  $blocks\n\n";
}

it’ll make it to junkcode sometime soon.

Yahoo Mail sucks

What Yahoo Mail does to the In-Reply-To header appears to be random. Whatever it is, it’s random and broken.

Occationally it seems to do the right thing. No bloody sense to it though.

Usually it seems to put in some random integer.

Fun.

This is why some people’s mail goes missing.

Yahoo, you should know better. Shame.

Theraputic Beer

Totally not the topic of the blog entry, but anyway: Over at stillhq.com – Blogging methods there is a mention of Theraputic Beer. I totally agree. Where the oath is mine? It’s in the fridge. Why isn’t it here? wait…it’s now in the freezer. WHEN OH WHEN ARE THEY GOING TO MAKE INSTANT-COOL BEER?

Some magic substance that means when you open the beer, it’s nice and cool. even if it was sitting *next* to the fridge because someone thought that ‘food’ was more important than BEER.

argh.

maybe i’ll get lots of therapy then.

revision control

Brian Aker has blogged about BitKeeper versus CVS

no doubt this has stemmed from somebody’s rant on the BK license. Now, this is a valid rant, but, really – it’s getting[1] old.

Personally, I quite like the GNU Arch Revision control system. Unfortunately, the UI is sort of sucky and takes a bit of getting used to. Bazaar is one to watch for improvements on this front (although I haven’t made the switch, mainly due to there not being enough hours in the day).

One thing that Arch does really well is cherry picking changesets. A simple ‘tla reply’ will do the equivilent of ‘patch -p1 < foobar’, but preserving where it came from. BRILLIANT. I wish bk did this. I once looked at branching in CVS and quickly ran away.

A smaller player, Darcs is one to take a close look at too. The UI is really sweet. I’ve only used it to test/submit fixes upstream on a small project (namely xseq – a project that is way cooler than the name suggests[2].)

In the future, bazaar-ng (back online soon) will probably be the way to go. Now is the time to bombard it with ideas though :)

At least we’re not stuck with Visual Source Safe. Full on MS people bag that pile of poo.

[1] Many would, in fact, believe i should be leaving out the word ‘getting’.
[2] I’m sure Andrew would be appreciative of funky names as well.

Update: why, oh why does this edit post thing think it must fight against the will of the correct closing tags?

Update 2: it seems that wordpress doesn’t want to save an update if you’re only fixing your markup. you have to add text. the suck.

Bugzilla bug 51149

Bugzilla bug 51149

For those of you migrating from MacOS X to Linux, this is something that should be good for you. Get Evolution to import your vCard’s from the MacOS X Addressbook without my little perl script.

I’m full time on Linux these days, but it would be awesome for people to check that this is, in fact, working now.

Dear Senator Dumbfuck…

Frist

This made me laugh – largely at what is just a stupid situation I’ve had trouble putting into words.

All these people protesting could actually do something constructive like not putting up with government corruption.

Where are these people insisting on universal healthcare? Education on academic merit rather than ability to pay?

hrrm…

it’s somebody who’s been brain dead for 15 (yes fifteen) years that gets them out onto the streets.

pass the head reading machine, these people need it.

what you don’t want to see from gdb

/build/buildd/gdb-6.3/gdb/linux-nat.c:1208: internal-error: wait_lwp: Assertion `pid == GET_LWP (lp->ptid)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) 
/build/buildd/gdb-6.3/gdb/linux-nat.c:1208: internal-error: wait_lwp: Assertion `pid == GET_LWP (lp->ptid)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) 

Bblog: Westpac: standards avoidance

Bblog: Westpac: standards avoidance

Hrrm… I really hope that everything works fine in mozilla derived browsers.

Personally, I use epiphany. It was ready and working before firefox was (although I used it exclusively for a hell of a long time on IRIX last year). So, if it doesn’t work, and they’re not going to fix it – I’ll have to seriously consider switching banks.

This is an extra annoyance as Mark Tearle has gone through a fair bit of re-organising moving LA’s bank accounts over to Westpac (largely because their internet banking stuff made a lot more sense for us).

The old site was great. I only ever had one problem with it – mozilla based stuff rendered the page slightly wider than the screen. But, I’ve happily put up with that. Everything worked .No bloody java stuff required (this is due to the problems of getting a working java plugin on linux-ppc – i don’t want binary only stuff).

I could view things, bpay, export statements out into a format suitable for import into GNUcash.

So Westpac – will you loose a customer? I guess we’ll soon find out.

Airshow 2005

Was at the airshow yesterday – with all the benefits of knowing people in the business :)

Mad people doing airobatics, mad guy hanging upside-down off the wing of a plane while it then barrell-rolled so he was standing up. Pretty cool to watch.

Of course, then there was the fighter jets. fast, loud, and i swear the F16 can do a u-turn in less space than half the cars on the road.

Then, of course, there’s the air force supply planes that do crazy landings, take offs and can fly a few feet above the ground while dropping supplies/releif out the back.

When the US air force guy was saying what missions some of their fighters had flown in, notably absent was Gulf War II. Hrrmm… maybe a touchy subject? Who knows.

An F111 doing a dump and burn is always pretty to see.

Install Day (Semester 1, 2005) – Monash IT Society (Clayton)

Install Day (Semester 1, 2005) – Monash IT Society (Clayton)

So, back at uni (you know, that place you’re at when you’re a student), and back with the old computer science club (but under a different name… well… ah…urrr…because… who the fuck knows why) they’re having a linux install day next week.

i’ll probably go along for a couple of hours and hand out lots of ubuntu cds that i’ve got lying around and probably get asked a lot of mysql questions.

maybe it’d be cool to have a “MySQL CD” with all mysql stuff for all platforms on it (with lots of autorun stuff). esp if we could make them cheaply enough to give away at a bunch of events (like install days).

Maybe i’ll burn a couple of CDs to take along (windows, mac, linux binaries)