06Jan Killing a thread in Python

I have been searching for quite a while for information on how to kill a thread in Python and I finally found a great solution. I was just about to implement my own way of doing it but it is not as clean as this way (although killing threads is not clean in the first [...]

31Dec Interesting Python Static Attributes

So I was playing around with some code in Python today and was  curious about static members of a class (I guess that is what you would call it). I wanted to know if I set an attribute at the class level and change it, would all the instances see that change or if each [...]

15Dec Find the number of files in a directory

So I needed to find the number of files in a directory recursively. I found a great way to figure that out on Linux that has helped me a couple times now. I definitely need to remember it…anyway here is is:
find /my/directory -type f |wc -l
If you need to find the number of directories recursively [...]

03Dec Twitter Me This

So, I just started using twitter and it is pretty cool. One of the best things I think on facebook is seeing people’s status change…it can show what they are going through or doing right now. Twitter is a little microblogging tool that you basically just state your status like you would on facebook and [...]

03Dec Numpad not working in Ubuntu

For the last several months on my Ubuntu machine at work the numpad has not been working. It has been so frustrating. I would turn the numlock on and off and nothing would seem to get it to work.
I thought it was something wrong with the keyboard or possibly after a kernel update one of [...]

08Nov SSH Filesystem

Holy cow, this about blew my mind. I was working on a simple little website that had no FTP access so I was just planning on copying all the files down to check out the site and see how things were working. Obviously it is not fun to do that. Well I did have SSH [...]

06Nov Gnome Default Programs

I had installed Adobe Reader to replace the default eVince document viewer. The problem was that PDFs I opened in Nautilus still opened with eVince. I wanted to know how to fix it so it would always open with Adobe Reader.
In order to do that you need to navigate to the file you want to [...]