Archive for August, 2007

How to dismantle a castle – brick by brick

August 30, 2007

Yesterday Earl Moore writes that he's ditching MS-Office for the Mac in favour of Neo-Office (a GPL'd Mac-tuned version of OpenOffice), then today it's announced that HP will join Dell and Lenovo in selling desktop PC's running pre-installed Linux.

I know that I don't run in the 'Redmond is great' circles, but there does seem to be a relative dearth of positivity coming via Redmond these days. Vista has no killer app or edge, Apple is going great guns, Linux is slowly eating into the mainstream and "non-proprietary", "open-ness" and "freedom" seem to be the popular themes in the tech world lately.

Perhaps the castle *is* coming down – even if it is a brick at a time.

Perspective Reflections – Inkscape Screencast

August 30, 2007


I’ve uploaded my latest Inkscape screencast (Episode 35). This one describes a neat method of creating reflections using a simple black to white mask. I discovered this neat trick at Nicu’s great blog.

While I’ve made reflections using Inkscape in the past, I’ve always had two problems. First, if the group of objects to be reflected consisted of multiple colours, using a simple opacity gradient was quite a pain. Second, creating a realistic looking reflection for an object in perspective (particularly photos) was very difficult. The one that we use on the screencaster LCD monitor thumbnail (at the top of this post) is really faked with a white opacity gradient. The problem being that if I changed the background to anything but white, you’d suddenly see the retardedness of it all. 😉

So the mask method eliminates these two problems and makes creating reflections of more complex objects (including perspectives) much easier and more elegant.

Hope you enjoy it.

For those who care about the mechanics of screencasting, this was actually the first one that I created solely with recordmydesktop, mencoder, and Audacity – although I did use an ffmpeg one-liner to extract a screenshot for the thumbnail (anybody know how to do that with mencoder/mplayer?). I think the quality is better and the workflow is definitely easier and more logical. Big thanks to Heathenx for helping me out with this stuff.

But it wasn’t completely without problem. You will notice some weird artifacting that occurs about 2 or 3 seconds into my sped-up intro. This wasn’t in the original ogg capture, but occurred somewhere during the post-processing. I thought it might disappear by the end – but no such luck. 😉 I’ve decided to leave it there for the time being and will correct it and replace the files when I can.. ie. not tonight. 😉

One other thing is that I haven’t yet put this one up on YouTube. It’s about 12min long, so I’m gonna have to split it up like I did with Episode 26. I’d like to do it with mencoder as well this time, so in the next couple of days I expect to have the two-parts finished and up on YouTube as well.

So post titles do matter…

August 29, 2007

Did you know that over the past month, precisely 12 people have arrived at this blog via a google search on the term 'peeing'.

The awesomely well thought out title on this post a while back is the reason.

Anyways, welcome to the site pee-ple. 😉

Slicing and Dicing mp3 files

August 28, 2007

As I’ve likely mentioned before, one of the things I like about my new
car is the USB port right in the front panel of the stereo. I bought a
wee little Lexar Jumpdrive Firefly recently which I keep filled with various
folders of music and podcast mp3 files. I just stick it into the
stereo and it works. It’s a nice, simple, and open system – no
proprietary hardware or software interface, any usb stick and plain
mp3 file will do. Heck, it doesn’t even wanna play wma files which is
a good thing too! 🙂

But if there is one nagging thing I don’t like about it, it’s that the
ffwd and rewind functions are designed for music and not podcasts. So
if I’m 45 minutes into an episode of TLLTS, and my daughter wants to listen
to the Irish Rovers, I know I’ll have to ffwd through 45min of TLLTS
to get back to where I was later on. That means holding the ffwd
button for about 5 minutes – not ideal.

So naturally, what I do is make a mental note of the time elapsed
before switching to a different track and then (if I remember) I bring
the track into Audacity and cut off the first 45min of it (or whatever
the elapsed time was). Still kludgy at best.

But I’ve found a quicker if not less-kludgy way of doing it. If you
need to chop off the beginning, the end or some portion of a given
mpeg file (mpeg2, mp3, mpeg4), then mpgtx is your tool of choice.
Available for linux or windows, this nifty command line tool sounds
like a nice tool for quick mpeg slicing and dicing. In particular to
do what I wanted, I simply used:

mpgtx -s tllts_206.mp3 [45:00-] -b cut_tllts_206

This splits (-s) the input file (tllts_206.mp3) taking the portion
starting at 45min to the end of the file, and outputs it to
cut_tllts_206.mp3. The -b flag is for the basename.. haven’t figured
out that one, but you need it there for it to work.

So in a matter of 2 or 3 seconds it chops the first 45min off of the
file and gives me a new mp3. Nice!

Doing this same thing in Audacity was a chore. It would take a minute
or so for Audacity to import the mp3, I’d chop off the front 45 min
and then have to export it back out which took another minute or so.
Then, depending on the default export bitrate, I might get a bigger
mp3 file than the original (!). So in one fell swoop I cut the process
from 3 minutes to 3 seconds. Not bad.

Incidentally, what I likely *should* do, is split up longish podcast
files into 10 minute mp3 files. So if I need to find my place I can
just click through 10minutes at a time. I figured out how to do this
back in the comments of this post. Sheesh.. if only I was half as organized and prepared as I’d like to be. 🙂

The Vacation Return Quick Post

August 26, 2007

Today we arrived back from a week’s vacation up in Fort Irwin, Ontario. We rented a 4-bedroom cottage on a nice quiet lake and recharged the proverbial batteries.

We had family up for a few days to join the three of us, which added a little hullabaloo, but all in all it was a nice relaxing week off.

A little fishing, a lot of eating (too much as usual) and some early nights – fresh air will do that to you – felt quite good actually. And while we had satellite internet connectivity, I never really felt like browsing. Just a little email checking and the odd wistful cottage real-estate searching was all it amounted to.

And it was surprisingly easy to just delete the hundreds of unread feeds in my reader tonight. Not to worry for the chosen few (actually it’s in the tens) in my close-knit feed group.. those got scanned, starred and read tonight.

A few things learned this week:

1. My daughter can cast a fishing rod! – and has no fear of slimy, squirming worms!

2. Even though neither my 5 year old daughter nor her 14 month old cousin need glasses, they both love to wear them!

3. Satellite internet and it’s associated lag times pretty much sucks compared to full-on DSL.

4. My wife had never been to a county dump/landfill before. I think she was expecting some semblance of cleanliness. The big pile of rotting garbage bags and it’s associated seagull party-place environment came unexpected to her.;)

5. A chipmunk can squeeze 10 unshelled peanuts into it’s cheeks without so much as a sideways glance. Now if only I could do that with pizza…

6. The call of loons on the lake in the morning is indeed one of life’s greatest sounds.

The relative quiet and inactivity did give me some time to both unload the claptrap I call my mind, and do a little more photography than usual. I think the biggest pressure I feel at the moment is to sort through the 250 odd photos, pick out the better ones and update my Flickr gallery. But that will sit for another few days. In the meantime, I thought I’d upload a few of them directly here:




Morning Commute Hack – Advanced Green Light Anyone?

August 17, 2007

Here's my contribution for the 'lifehacking' culture out there. And it's a little bit selfish:

It's typically heavy morning traffic and you have to make a left turn at a set of traffic lights, as you approach the intersection the lights are red for you. If you're the only one in the left hand turn lane, chances are good that little old you is NOT going to get the advanced (flashing/arrow) green light to let you go first when the light changes.

So don't pull all the way up to the intersection and wait. Instead, hang back a full car-length from the light. At many intersections, if you hang back a car length it can fool the sensors buried in the road and makes them think there is more than one car waiting to make the left. The result? It gives you the advanced green light.

I'm not going to say it works for me every time at every intersection, but it has worked on this one turn I make each workday morning for the last 4 years.

Tips:

– Check for the asphalt cutlines indicating the sensors buried in the road. You can sometimes spot where the sensor is and stop on top of it to better your chances.
– Sometimes you will spot two sensors (one close to the line and one further back) – stop on the one further back.
– If you spot a car approaching behind you, move ahead when it gets there. I hate it when people ahead of me don't pull up. Don't be annoying in the name of self-promotion.

Caveats:

– No idea if this contravenes any traffic laws.
– No idea if this works in countries other than Canada.
– Of course there are probably countless different traffic signaling systems – this works for me, you mileage (hehe) may vary.
– Don't kid yourself. You *are* being selfish. I try to convince myself that I deserve some 'reasonably small reward' for being such a courteous driver (I'm not given to fits of road rage, don't cut people off, flip people the bird, talk on the phone etc..). But alas, I'm being selfish. Maybe spreading the word about it will make me feel less guilty. 😉

One thing that Windows does better than Gnome… Heresy??

August 17, 2007

Here's my heretical post for the week:

There is one bit of functionality that I use and value while working in Windows that I miss when I'm using Gnome:

In XP, the standard File->Open or File->Save dialog box opens and I can rename, delete, copy or paste files that appear in the dialog. So for instance, if I'm saving a file and I want to rename one of the other files in that folder before I do the save, I can do it with a simple right-click to bring up the context menu.

As far as I'm aware, the standard GTK file open dialog doesn't let me do this. Of course I'm very very good at being wrong, so please let me know if I am.

Do the standard KDE open/save dialogs provide this functionality?

And is there any way to achieve similar functionality in Gnome or KDE if indeed it's not there?

The Feasibility Lingo of Engineers

August 16, 2007

Via this Usable Help blog post, comes a great article lucidly describing how to understand Engineers when it comes to feasibility.

If you want a clear and simple discussion of the terms impossible, trivial, unfeasible, non-trivial, hard, and very hard from an engineer’s perspective, then you should definitely check it out.

One misunderstanding by some non-engineers is how the word ‘trivial’ is used. In our discussions, trivial just means that we know the solution to a specific problem. It doesn’t mean that the implementation of that solution is necessarily easy. So for example, the design of a specific portion of a structure might be trivial but actually building it might be a nightmare.

It’s definitely an interesting read for anyone involved with solving problems – isn’t that all of us? 😉

What is it with light-duty office suites? Does anyone use them?

August 15, 2007

Earl Moore writes that the Appleworks suite has reached 'End of Life' status, and it got me to thinking. I've never owned or used a Mac or Appleworks. I wonder if it's anything like Microsoft's eternally retarded and resoundingly ignored MS-Works application suite.

MS-Works  had most if not all of the functionality that I needed in an office suite, but I always found it to be significantly incompatible with their proper 'MS-Office' suite. Now, I'm talking about when it came with my Win95 equipped system back in the day. I have neither heard nor seen mention of it to this day – although it seems via Wikipedia that it's alive and still breathing at version 9.0.

I never used it simply because I always wanted the 'pro' apps and not the crippled ones. And if you were working in MS-Office at work, then you wanted full and unmistakable compatibility at home. I always wondered who actually used it.

Mind you, I've always been against feature bloat, and everyone knows that 95% of people use 10% of the features in Word and Excel. I'm sure MS-Works would have been perfectly satisfactory for my use. I always scratched my head at why they didn't just make proper 'lite' versions of Word and Excel. I'm sure they would have sold many copies at $39.99 a pop. Instead, people pirated the entire Office Suite.

The Mac world is largely alien to me. Did (and do) Mac users actually use the Appleworks suite? Or did they flock to high-priced 'pro-level' apps instead?

Build ’em up and Knock ’em down

August 15, 2007

One sure sign that you're successful is when people are eager to start tearing you down. Witness the comments on this digg thread about some unpatched, unsecured, locally hosted – but Canonical sponsored servers that were taken off line today.  While I'm not a sysadmin, I would think that *any* operating system that is unsecured and unpatched is an incident waiting to happen.

But it's a testament to the popularity that so many people are so eager to see Ubuntu fail in any way possible. While not unexpected from Windows and Mac fanboys, it's disappointing when you see it coming from other linux users. A rising tide floats all boats does it not?