April2011
How to write simple netsnmp apps in Python
Here’s a couple of different ways you can use netsnmp in Python. I had a hard time finding documentation, and what I did find was old and outdated. I figured most of it out just by playing around with the library.
Boost lexical_cast throws bad_lexical_cast when converting types
Using boost to convert one type to another. Take int8_t integer for example. Will this even work? No, because int8_t is a char. You will get a bad_lexical_cast exception. You must static cast to an integer type first:
Persistent Naming of a Block Device in Linux
Persistent naming of devices is important for instances such as booting where a particular hardware device needs to get mapped to the same name each time. To get the UUID of a block device, use scsi_id. To get the UUID of a file system for something like grub.conf, try blkid.
Chinese Ghost Cities like Zhengzhou not so ghostly after all
Check out the people living in Zhengzhou, Henan, China as of March 2011. It’s easy to find report after report of places like Zhengzhou, devoid of people; a testament to government corruption in the public for everyone to see. There’s lots of satellite photos depicting public buildings, residential housing, roads, and parking lots all empty like something out of Survivor. If the reports of new urban projects – brand new cities meant to replace aging cities elsewhere – are true, and the government will relocate citizens, then what exactly is to happen to the residents of these old overcrowded metropolises that get left behind?
Parted Magic :: Gparted on Crack
Parted Magic is everything the gparted livecd tries to be times ten. Included in the barebones desktop are Partimage, TestDisk, Truecrypt, Clonezilla, G4L, SuperGrubDisk, ddrescue, and more.
Go Green at the Pump
With the average cost of gas in the U.S. skyrocketing, now is the perfect time to be just a little bit greener in order to save a little green. Here are ten methods you can use to reduce your overall fuel consumption.
Gnome 3 Fallback Desktop Better than Gnome 3 itself
What I don’t like about Gnome 3 desktop is how it hides everything from you under multiple layers of mouse clicks in order to try to simplify. But what it does is over categorize everything! This would work just fine on a tablet pc, but I’m on a desktop or full laptop and I consider myself a power user!