rpmerizor – create an RPM package from installed files

I’ve needed something very similar at work, so this was a neat find.
via freshcode.

rpmerizor 2.8

rpmerizor is a script that allows you to create an RPM package from installed files. You simply have to specify files on the command line and answering a few interactive questions to fill rpm meta-dat… – Changes: change shebang to use /usr/bin/env

Why the literati love Muhammad Ali

In a book that was decades in the construction, the journalist Christopher Booker argued that all stories in all literature conform to at least one of Seven Basic Plots. Ali’s life conforms to them all: Overcoming the Monster (Liston, Foreman), Rags to Riches, the Quest, Voyage and Return (Zaire and then Manila, where he fought Frazier), Comedy (“I hospitalised a brick/I’m so mean I make medicine sick”), Tragedy (the withdrawal of his boxing licence during his peak years for resisting the Vietnam draft, his imprisonment by Parkinson’s) and Rebirth (his defeat of Foreman at the age of 32).

Python square root algorithm

I’m learning Sedgewick’s Algorithms and the examples are all in Java. So I’m converting them to Python for my own understanding.
Here’s the first example I came across in the first chapter, for finding a square root:
def sqrt(i):
    if i<=0:
        return None
    x = i
    e=1e-15
    while (x-i/x) > (e):
        x=(i/x+x)/2.0
    return x
In [30]: sqrt(4)
Out[30]: 2.0
In [31]: sqrt(9)
Out[31]: 3.0
In [32]: sqrt(142857)
Out[32]: 377.96428402694346
I ought to raise an Exception instead of returning None in the beginning. My maths skills have turned painfully rusty — it took me a good 5-10 minutes of reading the example in the book before I understood that it worked, after which I wrote this version without too much trouble.

Hopefully I’ll stick with this project through to the end.

Email is still King

In 2012 I wrote this post, describing my rss2email setup. Since then, I’ve moved on to a host of other rss readers. Notable ones among them are:
  • Newsblur
  • Digg Reader
  • Feedly
Having tried so many of them, I had a clear idea of what was most important for my needs. Newsblur was feature rich, but moving from one post to the next took just that little bit longer than I liked. Digg Reader was lightning fast in that aspect, and is what I’d recommend if someone wants a simple, fast, hosted solution.

But along the way I also ended up owning a couple of non-android phones. The sparse collection in Microsoft’s app store made me realize how important it was not to depend on apps that were tied to a single product.

So I’ve now come full circle, back to rss2email. Fastmail is my email host of choice. I still have more than 70 feeds, some of which are pretty high traffic. So I’ve setup three folders: ‘alerts’, ‘hightraffic’ and ‘toread’.

Once I had some rules set up to redirect most mails to ‘alerts’, and the noisy ones to ‘hightraffic’, my workflow was ready:

During my daily commute, I use the incredible K-9 Mail app on my android phone to skim through the feeds. Any feed that deserves a deeper look gets moved to the ‘toread’ folder. The hightraffic ones are read only when I have time to spare. When I have access to my laptop or desktop, I use the fastmail web interface, which supports vim-like keybindings for quick navigation.

I’ve also moved my self-hosted wordpress blog (again!) back to blogger, which has an option to send a post by email. So I’m typing this as en email that will be sent to blogger shortly.

To recap, I have a solution that is fast, self-hosted, and flexible enough to allow convenient workflows tuned to my free time and connectivity.

However hard a service tries to ‘kill’ email, it’s a testament to how conveniently flexible it is in allowing setups like this.