LowEndBox - Cheap VPS, Hosting and Dedicated Server Deals

Commifying Numbers in Linux: Not as Easy as it Looks

Today I had a need to process large numbers of PostgreSQL database tables and report how many rows were in each.  Once I had that information, I needed to do some additional math on this data and then print it out in a nice formatted manner.  And for reasons I won't go into, I had to use shell. But it was all very trivial...until I got to that last part.  It involves commification. Is that even a word?  My browser's spell...

Read More
Commifying Numbers in Linux: Not as Easy as it Looks

Command-Line Argument Processing for the Lazy: Python's argparse Module

Like many of you, I write a lot of throwaway scripts to do a task.  These are quick undocumented 20-line blobs of code that do janitorial or maintenance tasks and they're deleted almost as soon as the...

Read More
Command-Line Argument Processing for the Lazy: Python's argparse Module

Latest LowEndTalk Hosting Offers

View More