My GMail module for Python

Click here to download:
mailcheck.py (2 KB)

Here's how you use it:

import mailcheck

mailcheck.set_credentials('yourusername', 'yourpassword')
mailcheck.check_mail(deleteOld=False)

for message in mailcheck.messages:
    print message[0].sender
    print message[0].body

Let me know if you have any suggestions for my code.  If not, I at least hope it's useful!

- Henson

Posted

My favotite picture of Lex

Lex_baby_057

Exploring his viking ancestory.

Posted

My favorite Ubuntu hotkeys

Grabbed these off of the official Gnome documentation:

[alt + print screen] Take a screenshot of the current window
[ctrl + alt + arrow key] Switches between virtual desktops
[ctrl + alt + shift + arrow key] Move application to virtual desktop
[ctrl + alt + d] Minimize everything and show the desktop
[alt + f4] Close the current window
[alt + f9] Minimize the current window
[ctrl + l] Open a location in file browser
[shift + f10] Open context menu (right-click) for current file

If there's any great ones you think I forgot, please add them in the
comments section below!

Posted

Baby Otter Sidney playing

I want a baby otter! Sort of reminds me of a ferret.

Posted

Disabling Services in Ubuntu

It's easy to disable startup items in Ubuntu (System -> Preferences ->
Startup Applications), but disabling services can be a tiny bit harder.
You'll first want to get a list of all services, which I accomplished by
opening a terminal and typing:

ls /etc/init.d

Once you've Google'd and found which one(s) you'd like to remove, use
the update-rc.d to disable the scripts across all run-levels. Here's
are the commands I issued to disable the few services I didn't need for
my laptop:

sudo update-rc.d speech-dispatcher disable
sudo update-rc.d pcmciautils disable
sudo update-rc.d cups disable
sudo update-rc.d bluetooth disable

Posted

Turning Off Aero Glass in Windows 7

This is one of my favorite performance hacks for Windows 7.

Right-click Computer, select Properties
  • Select Advanced system settings
  • Select the Settings tab under Performance
  • Uncheck Enable transparent glass
  • Posted

    You're not my real mom!

    Media_http9mediatumblrcomtumblrkuh1efwcvd1qzbcawo1500jpg_pevyqehjsgxttbb

    Another great post dug up by @t_f, which reminds me that my cat is probably somewhere she's not supposed to be right now.

    Posted

    A tree killed the truck

    There went my stepfather's truck.  He hasn't seen it yet, poor guy.

    (download)

    Posted

    My Chrome Extension: Slinky

    Google's official Chrome Extensions site has finally gone live, and there's a lot there.  While I've heard many people say that, "no browser will ever match Firefox in extensions!" I can honestly say that developing for Google's browser is a world easier.  Heck, I'd never even written a JavaScript program before and was able to put out my own extension in just under an hour.  If you haven't checked it out, it's called Slinky; and it's available here.

    Posted