Planet Linux Australia

Syndicate content
Planet Linux Australia - http://planet.linux.org.au
Updated: 1 hour 26 min ago

Ben Leslie: Hoary Hedgehog

Mon, 2014-08-25 01:26
Today I decided to join the droves trying out hoary. I would love to say it was simple seamless experience, but it wasn't.



Not that it was particularly painful find you, just a couple of little annoyances.



Firstly SATA didn't quite work for me. My BIOS has somethign called "combination mode", which seems to make the SATA disks appear like normal ATA disks as well as SATA disks. Which confused the hell out of the kernel. By setting it to "Normal" mode in the BIOS this problem went away.



The other problem was buggy media. The CD seemed a bit scratchy but after retrying about 5 times it finally worked.



Anyway seemed to work and let me get at a terminal. I haven't got rid of the GNOME stuff and installed ratpoison yet, but this will mainly be a remote

login box anyway, so I don't care too much about the GUI.

Ben Leslie: Switching ALSA audio outputs

Mon, 2014-08-25 01:26
While its all well and good mixing audio output, so you can hear both the CD you are listening too, and

the audio stream from a VLC stream, it can get kind of confusing listening to two things at once.



So I to write a simple shell script which would mute the currently active output

stream, and unmute the other, which I could then easily bind this to a key in ratpoison.



I thought it would be easy, which it was, but the result is fairly gross. Surely someone can show me a better way

to do this:



#!/bin/sh if [ `amixer cget iface=MIXER,name="PCM Playback Switch" | tail -1 | cut -d\, -f2` "==" off ]; then amixer cset iface=MIXER,name="PCM Playback Switch" 1 > /dev/null; amixer cset iface=MIXER,name="CD Playback Switch" 0 > /dev/null; else amixer cset iface=MIXER,name="PCM Playback Switch" 0 > /dev/null; amixer cset iface=MIXER,name="CD Playback Switch" 1 > /dev/null; fi

Ben Leslie

Mon, 2014-08-25 01:26
Yay, I got my paper into LCA 2005. Hooray!



In other news I picked up my big day out tickets today. Hooray!



Finally, I leave you with a great (very nerdy) quote from Ted Ts:



The way the kernel will deal with C++ language being a complete disaster (where something as simple as "a = b + c + d +e" could involve a dozen or more memory allocations, implicit type conversions, and overloaded operators) is to not use it. Think about the words of wisdom from the movie Wargames: "The only way to win is not to play the game".

Ben Leslie

Mon, 2014-08-25 01:26
So instead of going to SLUG last night, Jamie and I went and played pool at the Clare Hotel. Anyway, long story short, it turns out we aren't the only

ones who play the penis game in Sydney.

Ben Leslie: FTA is bad mmmkay

Mon, 2014-08-25 01:26
This is just depressing.

Ben Leslie: Rage -- ZZ Top

Mon, 2014-08-25 01:26
JJJ should simulcast rage again.

Ben Leslie: have cable!

Mon, 2014-08-25 01:26
of course i dont have a computer yet. i have a nice new powerbook on order which should show up soon.



so anyway this post is coming courtesy of my palm pilot connecting to cable via new dlink 624+ wireless router.

Ben Leslie

Mon, 2014-08-25 01:26
This is a cool (though for very nerdy reasons), piece of art.

Ben Leslie: Meme meme wonderful meme

Mon, 2014-08-25 01:26
So I was explaining to Suzy exactly what a meme was the other day, but now I have a more thorough example to show. It seems that the "23rd post, 5th line" meme, is a mutation, of another "grab nearest book, 23rd page, 5th line" (or more likely the mutation went the other way around.) The point of the story is look at how that meme managed to adapt to the livejournal environment to ensure its continued replication. (Or so the meme freaks would have you believe ;)



Anyway, the meme lives on and I will give it to you in book format, from the "PCI System Architecture; 4th Ed." (yes, I am that lame...)



"and the return of the bus to the idle state. It defined how a device must respond"



So there you go, benchmark still hasn't finished and Angel still isn't on TV yet.

Ben Leslie: Screwing over business

Mon, 2014-08-25 01:26
So I am waiting for benchmarks to run, so I will actually update

this thing.



These latest wage rises are really quite silly for two main reasons:



1/ It really doesn't help the low income worked by much (which

is what the ACTU has been saying).

2/ It screws over small and medium businesses, which will end

up putting people out of work because they can't afford the

wage rise.



This article in the Australian explains it better than I will, but the short version is, for the $19 wage rise businesses will end up paying more than $19 per employee due to on-costs. And of the $19 families will see less than $4 once you take out the tax and the loss of other benefits.



This is really dumb, basically everyone loses, well, except that is for us. By not having to pay as many benefits out, and by raking in extra payroll tax from business, the government will be able to afford to gice middle-income earners a tax break, and get themselves reelected, or am I being too cynical?

Ben Leslie: The Free Trade Agreement

Mon, 2014-08-25 01:26
I'm sure you all realise that one person's crusade is another person's "whatever", but can I urge you all to read of the problems with the FTA.



This bill was all about being able to sell wheat and stuff to the US, but in return we have to agree to the United State's draconian copyright and digital rights management laws. This will make it illegal for certain software to be developed in Australia, with the chance of programmers being branded criminals and through in gaol.



Of course with all the other problems in the world I'm sure

this will go largely unnoticed :(.

Ben Leslie

Mon, 2014-08-25 01:26
I don't know what is more annoying not being able to eat or not being able to shave.



On the not eating side of things, does anyone have any suggestiosn for liquid meals?

Ben Leslie

Mon, 2014-08-25 01:26
So to explain my last post, whilst playing rugby on the

weekend, one of the oppositions' elbows came into contact with the side of my head. Normally this is pretty by the by, elbow swings, jaw moves, keep playing. In this case however I was lying on the ground and hence jaw couldn't really move, and the force behind the elbow was the entire weight of the player assisted by gravity. So jaw has nowhere and breaks under the force.



Of course I don't actually remember any of this happening, I was knocked unconcious, hell I didn't even feel the pain in my jaw until hours later.



Luckily it is an undisplaced fracture, which basically means I have a crack, but the jaw didn't move anywhere, so I don't need to be wired up or anything. I wish I could scan in the xrays they are pretty cool.



So now I'm out of rugby for at least 6 weeks while the bone heals.



Also of note is how damn cool the OPG (no idea what it stands for) xray machine, you stand still and it zips around your head taking incremental xrays to give a flat project of your mouth, really classy.



I should also note how cool drugs are. Codeine and paracetomal really hit the spot. I'm not sure how good any of the code I write whilst on it will be but oh well.

Ben Leslie

Mon, 2014-08-25 01:26
Broken jaws are painful.

Ben Leslie: more metros than jaq

Mon, 2014-08-25 01:26




















Got at b3co.com!

Ben Leslie: Blog blog blog... over here

Mon, 2014-08-25 01:26
So I've jumped ship as it were and am now mostly blogging on my own site, so point your browser to http://benno.id.au/blog/ (or

your aggregator to http://benno.id.au/blog/feed/)

Ben Leslie: NSW geocoding

Mon, 2014-08-25 01:26
So my maps stuff now lets you look up addresses in NSW.

Ben Leslie: Posting from the air!

Mon, 2014-08-25 01:26
I'm currently flying somewhere over the black sea, en route to London. Singapore airlines is really cool and have the interweb on board. Rock!

Ben Leslie: GIMP and colour depth

Mon, 2014-08-25 01:26
So I'm playing with a new embedded board, which has a nice 16-bit 640x480 colour LCD. So to make

a nice splash-screen I fired up the GIMP did a nice gradient effect and some text. This looked

really nice on my 32-bit colour display, but once you move to a 16-bit display the gradient is

no longer nice and smooth.



So all I want to do is convert my 24-bit colour RGB image to a 16-bit colour RGB image, and get the

GIMP to do dithering. This is something that should be relatively straight forward. Alas I couldn't

find any way to do, and neither could anyone else in the lab.



I ended up using convert, which worked pretty well:



convert -treedepth 5 -colors 65535 -dither logo24.bmp logo.bmp



But it still amazes me that GIMP can't do this. If anyone knows how to do it please let me know!



Here is the image if you want to give it a try.

Ben Leslie: OMG! You would not believe the picture of a shark I saw today!

Mon, 2014-08-25 01:26




In fact this whole shark site is pretty hilarious. Don't even ask why I was googling for sharks.