Archive for May, 2007

Mini Searches with Answers

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.

WikipediaFS, view and edit Wikipedia articles as if they were real files
This might be an interesting way to manage a personal MediaWiki installation.

How to get VMWare to work under Ubuntu Feisty Fawn | Yet another Tech Blog
Maybe these instructions will finally get VMWARE working on my Ubuntu install! I’ve always failed at this task todate.

Set Gmail as Default Mail Client in Ubuntu :: the How-To Geek
Now you can set Gmail as the default client in Ubuntu without any extra software

Search within Textarea Extension with regex
Have 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: , , , , , , , , , , , ,

The MySQL Equivalant of SQL Server’s ISNULL Function

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:

  1. mysql null into blank
  2. mysql null into blank function

How Long Can Python Variable Names Be? – I Crash My Computer to Find Out

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:

  1. python max size for variable name

Mini Searches with Answers

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.

Maintaining a Log of Database Changes – How To
A good writeup on some approaches to implementing logging/auditing for your database.

Canoe or Kayak Sock Cover
Is this a good way to store a kayak outdoors and keep bugs from getting in it?

Kayak Cockpit Covers cover kayaks buy online on-line internet shopping
Another option for Kayak storage, just cover the cockpit. It’s the same price as the full cover so I’m thinking I should get the other one.

A Bookmarklet to Check / UnCheck All CheckBoxes
This bookmarklet is really handy for those websites with a giant list of checkboxes but no option to select all. Go get it!

Tags: , , , , , , , ,

Mini Searches with Answers

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.

iconfinder – Search more than 5000 icons
Looks like an excellent way to locate icons for your app that you can freely use.

ASPN : Python Cookbook : Simple maps and lists from XML
Looks like an easy way to get XML into a Python dictionary.

OpenOffice – How to start page numbering with a number greater than 1
Perhaps this page will help you with the task. I’ll admint though, I’m still confused.

Why Open Source Software / Free Software (OSS/FS, FOSS, or FLOSS)? Look at the Numbers!
Ever wondered how many people use open source software (and needed references)? This page lists a whole lot of useful research done.

Create your MySQL DB, export it, paste it in this site, and get your simple web app!
Have you ever needed to create a webapp that’s just a few database tables, and some pages to create,retrieve,update, and delete records in those tables? Well this will do just that. Neat!

Tags: , , , , , , , , , , , , , , , , , , ,