Posted in firefox, utility on Apr 26th, 2007 No Comments »
I’ve been getting intermittent slowdowns and occasional lockups of my firefox browser. I suspect it’s from JS heavy pages/applications leaking memory somewhere but I wasn’t sure which pages to blame, and didn’t want to spend alot of time investigating.
Typically I have 3 different browser windows open each with their own batch of tabs:
Personal browser including [...]
Read Full Post »
I wanted to let everyone know about a new website I’ve created called NoirSects.com
The site features noir style photographs of insects. The first 3 pictures up there are mine, but the site is open to all interested photographers. To get your photos shown on noirsects.com all you need to do is join the flickr [...]
Read Full Post »
Posted in Code, python, snippet on Apr 4th, 2007 2 Comments »
Here’s a nice little function I’ve written to report the number of duplicates in a python list.
from sets import Set
#
def countDuplicatesInList(dupedList):
uniqueSet = Set(item for item in dupedList)
return [(item, dupedList.count(item)) for item in uniqueSet]
#
lst = [’I1′,’I2′,’I1′,’I3′,’I4′,’I4′,’I7′,’I7′,’I7′,’I7′,’I7′]
print countDuplicatesInList(lst)
The Set datatype is an unordered set that doesn’t allow duplicates, so the first [...]
Read Full Post »
Posted in Code, javascript on Apr 1st, 2007 1 Comment »
“Transparent messages are the brainchild of Jef Raskin. It’s simply a large and translucent message that’s displayed over the contents of your screen” from monolog_boxes_and_transparent_messages.
Transparent Messages are a nice way to alert your users that something has happened. The alert is not ‘modal’ in the same sense that a standard message box is. The user [...]
Read Full Post »