I found this recently and was suitably amused, both by the the phrase "brogrammer" and by the method she used to prevent people annoying her.
While not being in the mood to write a diatribe on the subject at the ...
Posted March 28, 2012 at 2:01 p.m.
I recently wasted a bunch of time on this error so am putting it here to try and prevent it happening to anyone else.
When Launching Tomcat from eclipse I kept getting:
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
Turns ...
Posted Jan. 6, 2012 at 2:42 p.m.
Snippet of python code to script a site that uses login cookies. Contains a couple of common helpers
import cookielib
import urllib2
from lxml.html import parse
from urllib import urlencode
import cookielib
import urllib2
import urlparse
txheaders = {'User-agent': 'Pony ...
Posted Nov. 29, 2010 at 10:45 a.m.
Handy more often than one might think.
from itertools import chain
import os
list(chain(*[map(lambda y: os.path.join(x[0], y), x[2]) for x in os.walk("tmp")])))
Posted Sept. 13, 2010 at 9:24 a.m.
This is the most common boilerplate for python-tk guis that I wind up writing. Posted here for ease of copy-paste because typing this out again was irritating me
from Tkinter import *
import threading, Queue, sys, os
from optparse import OptionParser ...
Posted June 1, 2010 at 12:49 p.m.