I’m sharing my gist of ServiceHandler with the new post Android Marshmallow (API 21) HttpURLConnection
UbuntuGeek is giving away the “Linux Kernel Module Programming Guide” e-book for free! The book contains guides and tutorial on how to write loadable Linux kernel module and drivers.
According to its official description:
“An excellent guide for anyone wishing to get started on kernel module programming. The author takes a hands-on approach starting with writing a small “hello, world” program, and quickly moves from there. Far from a boring text on programming, Linux Kernel Module Programming Guide has a lively style that entertains while it educates”
Download now: Linux Kernel Module Programming Guide (PDF)
Embedding web browser or a screen for parsing HTML is easy in PyGTK. You only need to import the pymozembed, and add a few lines of code in your pygtk library, and you are set to go.
Here’s a sample PyGTK application that embeds a web-browser as well as a “Back” button for demonstration purpose :
PyGTK + browser Screenshot
# demo by mypapit (email@example.com) – Sept 2009
self.moz = gtkmozembed.MozEmbed()
#create a Vertical Box Container to whole the browser
#and the “Back Button”
box = gtk.VBox(False,0)
#create a basic GTK+ window
win = gtk.Window()
#create and connect “Back” button, to add functionality
self.button = gtk.Button(“Back”)
#include both back button and the browser in the vertical box
#and the GTK+ window
#load the URL
#set the window title
#show all the stuffs on screen
#connect the delete_event and destroy event to make sure
#the app quits when the window is closed
if __name__ == “__main__”:
Download demo source code : pymoz.py
I’m just informing you, my readers, that I’ve been busted back to application development work from a relatively administrative one. Rest assured, this is entirely my decision as I’m not currently under employment of any entity beside myself.
Now where’s my cup of coffee?
Finally I’ve gotten the time and budget to get myself a new bookshelf. Previously I’ve been squeezing my books on the premium space left on my old bookshelf which is filled with books from my school days.
Now I can arrange my technology books neatly on the new bookshelf.
This was brought to my attention when I’m working on a python code to parse xml documents. I found out that in Ubuntu Hardy, the python-xml package has moved xml.dom.ext.* package to /usr/lib/python2.5/site-packages/oldxml thus breaking python code which depended on python-xml.
One way to work around this bug is to append :
sys.path.append('/usr/lib/python%s/site-packages/oldxml' % sys.version[:3])
just before you import stuff from xml.dom.ext.*. Hope that would help you.