PYGTK: New-Style Python Class Using Builder

I have searched Google and the web for a resource on creating Python new-style classes for windows and dialogs when using GTK’s Builder and Glade UI files. I haven’t found much, but have managed to piece together a workable model. The basics of the process is to create a new class that inherits from gtk.Window or gtk.Dialog. Override the __new__() method and retrieve the window object from builder, call a method to act like an __init__() method, and return the new window object. Continue reading

Super Tux: Linux’s Super Mario

I have recently spent some time reliving my son’s childhood. While I was already an adult when Nintendo came out with the Super Mario World, my son was just a little guy, and he spent hours playing Super Mario. I played with him, although I must admit, he was way better at it than I was. I’m not a big gamer, but I do enjoy simple games that are fun without being too complex. Continue reading

Google’s Knowledge Graph

With all the latest services from Google, Google +, Google Drive, etc., we sometimes forget that underneath it all Google is a search engine. Recently they have stepped up the game in web search with their new addition of the Google Knowledge Graph. The Knowledge Graph does more than just keyword searching. It actually keys in on people, places, and things, giving you more information on the subject you are searching. Continue reading

Calc: Highlight Even or Odd Rows Quickly

I often like to highlight even or odd rows in a spreadsheet in order to make it easier to read. This can become labor intensive when you have a lot of data. Today, I am going to show you how to do it quickly in LibreOffice’s Calc program. Continue reading

PHP Thumbnails on the Fly

In the MegaGallery project, we used the EXIF library in PHP to extract the thumbnails from the image itself. However, what do we do if we do not have EXIF installed or available through our web server provider? One possibility is to use the GD library. The GD library will allow us to create a thumbnail using the image itself. Continue reading