« August 2009 | Main | October 2009 »

September 30, 2009

Endless alternatives


There's plenty of good software out there -- it's just a question of finding it. AlternativeTo bills itself as a new to doing just that ...

Tell us what application you want to replace and we give you suggestions on great alternatives! Instead of listing thousands of more or less crappy applications in a category, we make each application into a category. Think of it like forever evolving blog posts about good alternatives to the software that you're not satisfied with. And the "blog posts" are generated by you through suggestions, comments and votes.

It covers desktop applications (for Windows, Mac, Linux and online services) as well as mobile applications (for iPhone, WinMobile, Android, Blackberry and S60). You can even add AlternativeTo searches to your browser.

So dump that crappy app and find something better!


September 23, 2009

Hidden Linux: Say after me ...


Festival is a Text-to-Speech (TTS) converter developed by the Centre for Speech Technology Research at the University of Edinburgh. It’s shipped with most Linux distributions and released under a license that allows unrestricted commercial and non-commercial use.

To install it, simply search on "festival" in your usual Linux package installer. And to run it, open a terminal and type something like:

echo "Hello PC World" | festival --tts

to hear your computer’s very first words.

Alternatively, you can have it read from a file with the command:

cat myfile.txt | festival -tts

or more simply:

festival --tts myfile.txt

(Note that Festival can only read formatted text files. Attempting to read from non-text formats such as .pdfs won’t work.)

In this mode, any input gets read out loud. So a command such as

date '+%A, %B %e, %Y' | festival -tts

will tell you today’s date. That means you can incorporate it into batch files. Add it to our MP3 ripper script for example, and your computer will say what it’s up to and when it’s done. Or what about downloading a book from Project Gutenburg and have Festival read it to you?


Command Mode
Festival’s default mode however is command mode, which you’ll slip into if you just type ”festival„ on its own. Here you’re greeted with a command prompt:

festival>

The usual command mode features are available here such as TAB-completion and history, and to exit just hit Ctrl+D. Type ”help„ for help.

To say a phrase in command mode you need to prefix it with ”SayText„ and surround the whole thing with parentheses:

festival> (SayText "This is a little more complicated.")

To read from a file you enter:

festival> (tts "myfile.txt" nil)

Why bother with command mode? Because there’s a lot more you can do with Festival. The manual gives plenty of details along with some fun examples - such as singing! Try this;

festival> (tts "/usr/share/doc/festival/examples/songs/daisy.xml" 'singing)

Priceless! (Especially if you're a 2001: A Space Odyssey fan.)


Other voices
Lots of work's been done by third-parties to create new and better voices for Festival. You can read about where to find them and how to install them here. You could even computerise your own voice. Check out FestVox, a project that ”aims to make the building of new synthetic voices more systemic and better documented, making it possible for anyone to build a new voice.„


<--Previous Hidden Linux      Next Hidden Linux -->


September 20, 2009

DIY handcuff keys

Sometimes the uses to which technology can be put just make me go "Wow!" ...

At the recent Hacking at Random conference in Holland, a German handcuff fanatic named Ray demonstrated his prowess by printing the official handcuff key of the Dutch police on a 3D printer

This site has more details, photographs and a link to the STL file if you fancy your own official Dutch police handcuff key. And yes, the printed key did work ...!

September 15, 2009

Silly billers

Computer billing systems can be immensely stupid without a little human oversight. A few months ago Telecom XT customers got just three days worth of calling out their prepaid cards, and in July a Wellington pensioner had to battle to get her money back after Genesis Energy direct debited her $3,600 for a months' power.

They can go the other way too.

Late last year I switched my landline from Telecom to TelstraClear. I already had an account with them for cable broadband, so when they opened a second account and billed me 19 cents I ignored it.  I expected someone would spot the mistake and amalgamate the two, especially as all subsequent charges went on my old account. But I soon went from, "How long till they fix this?" to "How long will they keep this up?"



Every month for the last ten months they've sent me a bill for the overdue sum of 19 cents.

The postage alone -- even at bulk rates -- must've cost more than 30 cents a pop. And each bill contained a postage-paid envelope to return my payment.

I've joked to friends about burly debt collectors tracking me down and demanding payment, but this month TelstraClear changed tactics to deal with wicked miscreants like me. From October, all overdue accounts will get slapped with a $15 surcharge.

Okay, they win.

This afternoon I wrote out a cheque for 19 cents and sent it off. But I get the last laugh -- even ignoring the postage-paid envelope I sent it in -- because to deposit my cheque will cost them 25 cents in clearance fees!


September 10, 2009

The return of eDay

Bring out your dead! Dead computers, that is.

If you can't use 'em for file servers, resurrect them as Linux boxes [link1, link2, link3] or turn 'em into MP3 jukeboxes, it's time to ditch 'em -- ecologically -- and eDay's the day to do it.

Last year more than 87,000 items ended up at eDay collection depots around the country. That's almost 1,000 tonnes of electronic waste -- most of which was subsequently recycled. eDay returns this Saturday, September 12 2009 so it's time to drag out your unused electronics.

(For details of your nearest drop-off point, click here.)


What can be disposed of:
  • computer hardware
  • monitors
  • networking equipment (e.g. modems, routers, hubs)
  • scanners
  • keyboards, mice, speakers
  • laptops
  • printers
  • game consoles
  • toner and ink jet cartridges
  • mobile phones
  • fax machines
  • digital cameras

What
can't be disposed of:
Basically anything not related to computers or mobile phones. Thss includes:
  • televisions
  • radios
  • stereos
  • DVD players, video recorders
  • other home appliances
  • furniture
  • software

What to do before eDay:
  • Wipe all data from your computer's hard drive and remove any removable media such as floppy disks or PC cards. (See here and here.)
  • Ensure that your mobile is disconnected by your service provider and that contacts and other stored information are erased from the phone's memory. Also remove your phone's SIM card if it has one.

September 4, 2009

Hidden Linux: Metapixel magic


Some people make them out of toast, some use newspaper clippings and some even use toothpicks but Linux users have it easy. When it comes to making mosaics, all you really is Metapixel.

Metapixel is a command-line tool that creates photomosaics -- pictures in which the original image is rebuilt using a series of much smaller images. The effect can be stunning ...



... when you look closely ...


(Check out this link to see the original in its full glory.)

You need two things to turn an picture into a mosaic; a source image -- obviously -- and a library of "tiles" from which to build the final picture. But first, the software ...


Installing Metapixel
Ubuntu and Debian users can simply open a console window and type:

sudo apt-get install metapixel

Other Linux users should check their repositories. Metapixel seems to be a standard addition, but if all else fails check out their homepage.


Creating a tile library
This single-stage process actually does two things; it scales images down to a manageable tile size and computes various factors that will be used to match pixels in the source image. The bigger the source library, the better, and in Linux we have an ideal one in /usr/share/icons.

First, create a new directory in which to store the tiles:

mkdir tile_library

Then tell metapixel to populate it:

metapixel-prepare -r /usr/share/icons tile_library --width=32 --height=32

The switches:
  • -r tells metapixel-prepare to recurse all sub-directories under /usr/share/icons.
  • tile_library is our newly created tile directory.
  • --width= and --height= set the width and height of the tiles. (I find the default, 128x128, a little too large!)
Notes that Metapixel only recognises JPG, PNG and GIF files, anything else generates an error message and is ignored. After several minutes processing, I found my library filled with more than 10,000 "tiles". Perfect!


Creating Mosaics
Now for the fun bit. Building a mosaic is as simple as typing ...

metapixel --library tile_library --metapixel original.jpg target.jpg

... but depending on the size of your original, the results may not be too spectacular. Allow me to demonstrate. Here's my original:





(It's the 128x128 pixel penguin.png icon given
a white background and renamed penguin.jpg.)



And here's the result :




When you think about it, it's not too surprising. We're mapping 32x32 pixel tiles onto a 128x128 pixel image. The most we're ever going to get is four tiles across and four down!

There are two solutions. The first is to use smaller tiles. We can force this be declaring their height and width:

metapixel --library tile_library --metapixel original.jpg target.jpg height=8 width=8

This produces a much more satisfactory result:



The other alternative is to use the "scale" parameter to resize the original before the tiles are applied.

metapixel --library tile_library --metapixel original.jpg target.jpg -s 20

will scale 20x, meaning Metapixel will work from a 2560x2560 image -- and generate one of that size! Here's the result, squeezed down to a mere 400x400 to fit on this page:


(To study it's full splendour, just click on the image.)

You can of course combine both scale and height/width parameters for even more detail.

There's one other option to be aware of. By default Metapixel produces "traditional" mosaics that use evenly spaced tiles, but add the --collage parameter and it will overlay them to get the best resolution. Here's a couple of examples to demonstrate the difference. Both are details of the penguin's eyes and upper beak ...



"Traditional" Metapixel





The same area using the --collage parameter.


Processing takes a little longer when using --collage but I reckon it's worth it.

Check out some of the examples here, here and here. (Click on the images to display them full-size.) Awesome!


<--Previous Hidden Linux      Next Hidden Linux -->


Subscribe
Newsletter & SubscriptionsPC World is New Zealand’s top selling computing and technology magazine.

It provides up-to-the-minute editorial, insight and buying advice for personal computing, cell phones, game consoles, digital entertainment and broadband.
SIGN UP
PCWorldUpdate
PC World's weekly round-up of tech news, gear and game reviews, software selections, and handy How Tos.

PC World Blogs