Post thumbnail of Printing variables in python with placeholders
6 May 2011
Continue reading Printing variables in python with placeholders

Printing variables in python with placeholders

Even if you’ve only dabbled with python for a minute or two, you’ve probably already figured out that you can print variables using placeholders. You might have tried concatenation too. However, did you know you can print using %s but with the variable names directly?

Post thumbnail of Bottle: Python Web Framework Made Simple
17 January 2011
Continue reading Bottle: Python Web Framework Made Simple

Bottle: Python Web Framework Made Simple

It doesn’t get much easier than this. However, you must add routes for static files such as style sheets and images. These are things that you may take for granted if you’re used to relying on standalone web servers.

Post thumbnail of The simplest NTP configuration for a home network
1 October 2009
Continue reading The simplest NTP configuration for a home network

The simplest NTP configuration for a home network

I was curious about using NTP to keep a few stand-alone machines synchronized. None of them have access to the outside world, or access to another host that has access to the outside world - they’re completely cut off. So how do you run a NTP server with no upstream time source? Easy!

Post thumbnail of Setup GRUB boot loader in 3 steps
14 April 2009
Continue reading Setup GRUB boot loader in 3 steps

Setup GRUB boot loader in 3 steps

GNU GRUB is easy to set up, it’s just got it’s own funky syntax that you don’t really see anywhere else.
GRUB stands for GRand Unified Bootloader
GNU GRUB is a multiboot boot loader derived from the original GRUB. It is the first software program that runs when a computer starts. …

Post thumbnail of Dual booting Windows so easy your grandma can do it
26 March 2009
Continue reading Dual booting Windows so easy your grandma can do it

Dual booting Windows so easy your grandma can do it

Run Wubi, give it a password, and click “install”. The installation process from is fully automatic from here. The rest of the installation files will be downloaded and confirmed, after which you’ll get the standard windows wants to reboot. Do so and select Ubuntu at the boot screen. The installation will continue for another few minutes depending on how old your machine is and will reboot once again. Choose Ubuntu at the boot screen again and enjoy.

Post thumbnail of Convert PDF’s to JPG image files
15 February 2009
Continue reading Convert PDF’s to JPG image files

Convert PDF’s to JPG image files

I hate PDFs! I hate opening the viewer and sitting there, waiting for it to load, then dealing with the pop up asking me to update my software. I wish they were like regular text files or images, and not some twisted mutant hybrid of both with all the shortcomings from each side! So… now I just convert PDF’s to JPEG images!!! I love ImageMagick. It’s just so freaking useful… and free.

Here’s a very simple script to convert PDF’s to JPG’s:

Post thumbnail of Trimming down an Apache server, blindfolded
22 January 2009
Continue reading Trimming down an Apache server, blindfolded

Trimming down an Apache server, blindfolded

Here’s my notes from trimming a little off the top of an apache server. This was just a quick chop at the default install. I haven’t looked at how the webapps are used or how many connections or the length of time per connection or anything… I’ll go back later and tweak how many threads and processes are started and used.

Powered by Wordpress   |   Lunated designed by ZenVerse