Archive for the ‘Idle Curiosities’ Category

What is an Al-Ghirayri or Al-Girta

Wednesday, July 11th, 2007

This strange article “Giant badgers terrorise Iraqi port city” says that these giant man-eating badgers are known as Al-Ghirayri and locally as Al-Girta. I did a search for that name and turned up nothing. Shame, I really wanted to see a picture of man-eating badger.

Al-Ghirayri or Al-Girta maybe
(just a regular badger I guess)

Here’s some progress towards an answer. The folks in the comments on the Digg article of this suggest that this is a video of one of the beasts. And here is a the Wikipedia entry on your standard Honey badger (maybe the same thing?).

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

What are Preprinted Inserts?

Tuesday, June 13th, 2006

I was reading this article: Why Consumers Love Getting Preprinted Inserts and I got to wondering what it was talking about! Searches didn’t turn up anything but newspaper prices, so I went ahead and made the leap of understanding that preprinted inserts are those things that come inserted into the newspaper with colorful ads.

I now figure the internet needs a page that tells what these things are so here’s my attempt at that. If you, dear reader, have a better definition, by all means please tell us.

My search terms:

  1. Preprinted Inserts
  2. What are Preprinted Inserts
  3. What are “Preprinted Inserts”

[tags]Advertising, Direct Marketing, Preprinted Inserts, Data Mining, ads, newspapers[/tags]

How to Type the ñ (enye or N with tilde)

Wednesday, April 5th, 2006

On Windows:
Just hold down ALT and type 0241 on your numeric keypad and you will get a nice ñ printed for you.

Again, that’s:
ALT + 0241 = ñ

And capital Ñ is:
Alt + 0209 = Ñ

Found this info on this page here with all the characters you could want.

On Ubuntu (Linux):
Go to System -> Preferences -> Keyboard and change the Compose key to something you don’t use like your right windows key.
Here is a screenshot of doing the setup.

Then you can type:
Compose key n ~ to get ñ
Compose key e ‘ to get é
etc…


Thanks to everyone on this forum post for the help!

[tags]ñ, Ñ, tilde, accents, keyboard shortcuts, ubuntu, compose, enye[/tags]

How to Tell if a Binary Number is Divisible by Three

Monday, April 3rd, 2006

Answer:
If the number of even bits minus the number of odd bits is a multiple of 3 (e.g. -3,0,3,6, etc) then the number is divisible by three.
(more…)