Python Crontab 1.0

Mission Accomplished! As a programmer, if you want to write crontabs, system and user tabs and want to access them in a less hairy way; then this is the module for you!

This 1.0 release includes lots of new unit tests, fixes for SunOS and other things and clean up of examples. You can get your source code from PyPi here: Awesome Source Code Link

And here’s a taste of a script using python-crontab:


from crontab import CronTab

system_cron = CronTab()
user_cron = CronTab(user='username')
fake_cron = CronTab(fake_tab='')

Creating a new job:

job = cron.new(command='/usr/bin/echo')

job.minute.during(5,50).every(5)
job.hour.every(4)

New job for reboot:

job2 = cron.new(command='/foo/bar',comment='SomeID')
job2.every_reboot()

Finding jobs with certain commands:

list = cron.find_command('bar')

Iterating over all cronjobs:

for job5 in cron:
print job5

Launchpad project page, GPLv3

What Fonts are you Using?

So you’ve just downloaded an awesome poster from Spread Ubuntu and now you’re trying to edit the svg so you can provide a localised version or mash it up for your own needs.

But there’s a problem… svg files don’t store the fonts used so you’re stuck looking at an ugly ill-fitting set of font defaults in inkscape and the dozy submitter didn’t specify what fonts he used. Good news! there is a command that can get for you a list of fonts used in any svg file:

`perl -lne “foreach(/font-family:(.+);/){print $1}” < foss+creative-commons3.svg | sort | uniq` Using foss+creative-commons3.svg you can see an output like this:

10.15 Saturday Night BRK
Automatica BRK
Bitstream Vera Sans
DejaVu Sans
Fatboy Slim BLTC 2 BRK
impact
Loma
Ubuntu

Not all of these fonts have been used, since it’s easy to save a file in inkscape without using the Vacuum Defs process to clear away cruft. But you do get a nice list of all the fonts you should have to see the poster the way it was intended.

Thoughts?