Archive for May, 2007
Friday, May 11th, 2007
These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but still super useful.
Search within Textarea Extension with regexHave you ever been editing a really big piece of text on the web, and wanted search for something within the text? Well now you can with one of these two options. There’s a bookmarklet and a Firefox extension. Update: Does Firefox 2.0 already have this?
Tags: Bookmarklet, Email, Extension, Firefox, Ftp, Gmail, Linux, Mediawiki, Search, Textarea, Ubuntu, Vmware, Wiki
Sunday, May 6th, 2007
It’s called IFNULL and it works like this:
IFNULL(expr1,expr2)
If expr1 is not NULL, IFNULL() returns expr1; otherwise it returns expr2. IFNULL() returns a numeric or string value, depending on the context in which it is used.
My search terms:
- mysql null into blank
- mysql null into blank function
Sunday, May 6th, 2007
I got to wondering if there was a maximum length for a Python variable name. I decided to take an empirical approach:
>>> for i in range(1,100000000):
... varname='a'*i
... exec('%s=1' % varname)
... if i % 10000 == 0:
... print i
It made it up to 50,000 before hitting a memory error. In the meantime my keyboard stopped working, and all of my windows stopped responding … I had to restart the whole computer!
So I guess the answer is your variable names can be as long as you have memory for. Does anyone have a different answer, or any critiques on my approach?
My search terms:
- python max size for variable name
Saturday, May 5th, 2007
These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but still super useful.
Tags: Bookmarklet, Cover, Database, Javascript, Kayak, Logging, Moving, Sql, Work
Tuesday, May 1st, 2007
These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but still super useful.
Tags: Crud, Free, Freesoftware, Generator, Gpl, Icon, Icons, Jhu, Mysql, Numbers, Openoffice, Opensource, Page, Php, Publicdomain, Python, Searchengine, Website, Work, Xml
|
|