( My personal website has gone to dust, any links thereto will fail. This site will be home for a while. )

Friday, 25 July 2008

Email attachment limits

Why is this not a done deed?

How many of you out there know someone who simply wants to send pictures by email but has no clue about how big the darn things are? Attach, attach, clickety-click and then off goes a 10mb email... Man this is crazytown. Why is there no thought given to this for email clients like kmail and evolution?

This is a cry-out to the boffins to please (pretty, pretty please) create some kind of layer between the images attached and the email sent that will:
  1. Compress them in scale and size to a target size (see Phatch if you think this can't be done!)
  2. Limit the total Kb size of all the attachments so that it tells Aunt Sue, "Please remove a few pictures because this email is too big to send."
This kind of solution should involve both routes of the attachment-equation: Sending-to-email from a file browser, and attaching from a new mail message.

I have crafted two (horrible) solutions to the second route, one for kmail and another for evolution. I can't get my brain around how to do this from the first route -- the answer for evolution is some kind of plugin, but that's a step too far for me right now.

My solutions for kmail and evolution can be a subject for another blog if anyone is interested...


Otherwise Poetry

Me again,
I have delayed putting a link to my little book of poems (available on for many, many months now; feeling a little shy about such marketing, but today I felt a rush of optimism and I just did it.

So, this is a quick post to mention it. I hope someone out there enjoys a few of the poems in my book, but I have never had any feedback so I really don't know if they are any good. The hardcover is priced as low as I could go and the ebook is free.

There are a few new ones towards the end that came from my admiration of Prof. Dawkins' work and what I have learned from him and others (a nod to James Randi) about reality and how deluded we humans really are.

Well, there, it's all said now. Gulp!

Note: I created the entire book (printed version and ebook) using 100% free software on Kubuntu. I used Lyx to do the writing (and produce the PDF and the PS) and Inkscape & Scribus to hack the cover. Thank the FSM for such capable and fantastic software. Oh, I used Fonty Python to manage my fonts too ;) (But the quality of that software is up for debate.)


Notes from July

I have one more operation to go (I hope that's all) and I should be all repaired. Man I wish I was as simple as a motherboard and I could get opened-up with a screwdriver and have bits swapped-out.

Otherwise July has been good to me; we have moved into our house and I have a reliable Internet connection (the most important thing :D ) and I am starting to edge towards coding again.

  1. Learn Django!
  2. Finish my Python & Cairo animation app. This is very cool, but I need time to polish it.
  3. Get a web-server of my own (perhaps Linode) and muck about with some web apps.
  4. Polish Fonty Python some more (Nautilus & Konqueror integration for one).
So, lots to do with little time!

Ciao world,

Adding folders of fonts to a Pog

Hello world,
I was asked in an email the other day if I could add a function to gather all the fonts in a given folder into a Pog. While this is a cool idea for a future release, it's possible right now from the command-line. Lemme show you how.

Open a console/terminal (like konsole or gnome-terminal). I will use square brackets [ ] to surround the command you can type but don't type the brackets. I will use ~/somefonts as the example folder you want to use.

The idea is to build a pog, which is a plain text file containing full paths to each font file. Okay, let's start:
  1. Use [cd ~/.fontypython] to go where the pogs live.
  2. [echo "not installed" > newpog.pog] You can use any name you want. Just make *sure* you don't overwrite some other pog!
  3. [find ~/somefonts -iname "*.ttf" >> newpog.pog] That will go and find the ttfs (you can change that to say "*.otf" but Type1 fonts might be more tricky) and then it will append them to the 'newpog.pog' file you just started.
  4. If you want to add other fonts from other folders, just use the same find command, but change the path. Make sure you use 2 ">" symbols (>>) because that means append-to.
Right, that's it. Now open fonty and go look at newpog:
[fontypython newpog]

You can also install those fonts with:
[fontypython -i newpogs]

Have a look at [fontypython --help]

Simple, I hope ;)