Skip to content
The beaver is a proud and noble animal

The beaver is a proud and noble animal

Notes from a bemused canuck

  • Home
  • About
  • Bookmarks
  • Pictures
  • Resume
  • Wine
  • Random Recipe
  • Toggle search form

Tag: geek

Euromillions follow-up

Posted on September 22, 2009 By admin

As a follow-up to this post, I found out why the same numbers were always coming up. It has to do with the sorting of the numbers and the distribution it produces.


(right-click and save image to view it at full resolution)

In a nutshell, if you simulate 1,000,000 lottery tickets and plot the frequency of the sorted numbers at each position, you get the graph as above. Increasing the number of simulated draws just improves the normality of the distribution at each position.

Not rocket science, but still a pretty picture :)

uncategorized

Any number theorists out there?

Posted on September 14, 2009 By admin

Based on Derren Brown’s magical formula to win on the lottery, I hacked together a little bit of code to try and win the upcoming EuroMillion draw (yes, I know I’m sad).

The code generates random tickets with 5 unique numbers between 1 and 50 and 2 potentially non-unique numbers between 1 and 9. For example:

Ticket{numbers=[1, 14, 17, 21, 28], stars=[5, 2]}
Ticket{numbers=[2, 6, 8, 25, 43], stars=[1, 2]}
Ticket{numbers=[12, 23, 30, 36, 41], stars=[5, 4]}
Ticket{numbers=[8, 19, 28, 37, 41], stars=[5, 9]}
Ticket{numbers=[6, 20, 22, 28, 30], stars=[5, 6]}
Ticket{numbers=[2, 3, 33, 36, 40], stars=[9, 2]}
Ticket{numbers=[20, 26, 30, 39, 50], stars=[6, 5]}
Ticket{numbers=[11, 13, 22, 30, 38], stars=[3, 6]}
Ticket{numbers=[10, 14, 17, 45, 47], stars=[8, 7]}

You’ll notice that the numbers are sorted in increasing order, except for the stars. If you then take the average of the numbers at each position, you’ll get the “winning” number, or so the magic goes.

The interesting bit though, which I’m curious about, is that if you generate more than 100 or so tickets in one go, the average is always the same. Why is this, and does it make sense?

uncategorized

Yomigaeru Aiyan Sheffu!

Posted on July 29, 2009July 30, 2009 By admin 3 Comments on Yomigaeru Aiyan Sheffu!

Watashi no kioku ga tashika naraba†…Iron Chef was a television program produced by Fuji TV in Japan from 1993 to 1999. The format of the show showcased an eccentric gourmet named Chairman Kaga and his team of Iron Chefs.

The Iron Chefs, handpicked by Chairman Kaga himself, were prominent and much respected chefs within their particular cuisines (French, Japanese, Chinese, and Italian). In each episode they were pitted against a challenger from Japan or abroad and for one hour each contender was expected to cook a multicourse meal using a theme ingredient chosen by the Chairman.

The battles tended to be very intense with the chefs scrambling to complete as many dishes within a one hour timeframe. Following the one hour contest, the prepared dishes were then served to a panel of tasters. These tasters comprised of Chairman Kaga with his invited guests (typically famous personalities and food critics). Upon completion of the food tasting, the tasters would then judge the food against certain criteria and then Chairman Kaga would announce the winner.

Of the 300 episodes of Iron Chef that aired in Japan, roughly 180 of those episodes were dubbed into English when the Food Network picked up the program to air in North America. It’s one of the shows that I really miss from Canada. However, the internet being my friend, I’m currently bit-torrenting an archive of 156 shows, which I will shortly inflict on Katy :D

†If my memory serves me correctly…

uncategorized

back online!

Posted on May 19, 2009 By admin

going to bed now. it took two hours to get the wi-fi up and running. this is much more time than it should have required. must give props to a really helpful scottish lass on tech support who was actually a) knowledgeable b) helpful and c) a pleasure to deal with. i told her all of this. kudos must be given when warranted.

uncategorized

Warning: serious geekery ahead

Posted on February 9, 2009February 9, 2009 By admin

On Friday, the 13th of February 2009 at exactly 23:31:30 GMT, unix system time will be 1234567890.

That is all.

PS: to find out when it will happen locally, run: perl -e ‘print scalar localtime(1234567890),”\n”;’

uncategorized

This is a test

Posted on January 21, 2009 By admin 1 Comment on This is a test

If you can see this, LJ-crossposting works again. Also, if you can see this, there are a bunch of entries that you’ve probably missed on my new blog. Go read them.

uncategorized

I can stop any time I want, I just don’t want to.

Posted on June 19, 2008 By admin

Internet addiction is a ‘clinical disorder’

Obsessive internet use is a public health problem which is so serious it should be officially recognised as a clinical disorder, according to a leading psychiatrist. Sufferers spend unhealthy amounts of time playing online games, viewing pornography or emailing.

They suffer four symptoms: They forget to eat and sleep; they need more advanced technology or more hours online as they develop ‘resistance’ to the pleasure given by their current system; if they are deprived of their computer, they experience genuine withdrawal symptoms; And in common with other addictions, the victims also begin to have more arguments, to suffer fatigue, to get lower marks in tests and to feel isolated from society.

Early research into the subject found highly educated, socially awkward men were the most likely sufferers but more recent work suggests it is now more of a problem for middle-aged women who are spending hours at home on their computers. Psychiatrist Dr Jerald Block said some sufferers were so addicted to the internet that they required medication or even hospital treatment to curb the time they spent on the web.

He said: “The relationship is with the computer. It becomes a significant other to them. They exhaust emotions that they could experience in the real world on the computer through any number of mechanisms: emailing, gaming, porn.”

He added: “It’s much more acceptable for kids to talk about game use, whereas adults keep it a secret. Rather than having sex, or arguing with their wife or husband, or feeding their children, these adults are playing games.”

Dr Block, of the Oregon Health and Science University in Portland, in the USA, first made the claims in an editorial for the American Journal of Psychiatry. British psychiatrists have previously reported that between five and 10 per cent of online users are internet addicts.

Source: The Telegraph

uncategorized

gmail-notifier woes on x86_64

Posted on March 15, 2008 By admin

One of the things I miss in linux was the windows Gmail notifier. There is a linux version, written in Python, but it wasn't working in a 64 bit distribution. If you tried to run it out of the box, you would get the dreaded “wrong ELF class: ELFCLASS32” exception, because the distributed shared object to create a tray icon was compiled in 32 bits. If you tried to grab another version compiled in 64 bits, you now got the “undefined symbol: Py_InitModule4” error, which was caused because some file headers were redefined and renamed to avoid conflicts (sic!) in 64 bits. I was going nuts at this point, because I am most certainly not a Python programmer. But I still managed to find a fix, before everybody else on the net, woohoo!

A simple cure in 3 easy steps

1. get package python-gnome2-extras
2. change a few lines in notify.py as described below:

#comment out the pytrayicon import and import egg and egg.trayicon
#import pytrayicon
import egg
import egg.trayicon

#change the way the tray object is built
#create the tray icon object
#self.tray = pytrayicon.TrayIcon(self.lang.get_string(21));
self.tray = egg.trayicon.TrayIcon(self.lang.get_string(21));

3. enjoy!

Works like a charm :D

This makes me go squeeeeeeeeeeeeeeeee!

uncategorized

Sometimes, I love being a geek :)

Posted on March 15, 2008 By admin

We recently bought a new laptop. The old one was starting to show signs of age and it was time to put it out to pasture. The new shininess is a Dell Inspiron 1525. It came with Vista but since I refuse to have anything to do with that devil-spawned OS, I decided to go to the next level of geekdom and install linux.

It's been an experience.

First challenge is that this laptop is dual-core, so I decided to install the 64 bit distribution of SuSE. I have to say that, overall, I'm impressed. Linux still has a bit of work to do though because I don't see Joe User recompiling parts of the kernel to get network card drivers to work. But I did it. And I loved it :D

The shininess is now up and running and is almost as I want it. I still need to install a few more apps on it, but once that's done, I'll be in nerd heaven.

uncategorized

Geek pick-up lines

Posted on November 30, 2007 By admin 1 Comment on Geek pick-up lines
  • You’re like an exothermic reaction, you spread your hotness everywhere!
  • I wish I was your derivative so I could lie tangent to your curves.
  • You’re like a dictionary, you add meaning to my life!
  • If I was an enzyme, I’d be helicase so I could unzip your genes.
  • I’m attracted to you so strongly, scientists will have to develop a fifth fundamental force.
  • Be my queen and mate me with your knight moves.
  • You make my floppy disk turn into a hard drive
  • Do you think we can make it a step more serious and disable network sharing?
  • I don’t have a library card, but do you mind if I check you out?
  • I’ll treat you like my homework — I’ll slam you on the table and do you all night long
  • I wish I were your second derivative so I could fill your concavities.
  • Did you just combust?? Because you’re HOT!
  • What do you say we go back to my room and do some math: Add a bed, subtract our clothes, divide your legs, and multiply
  • Every time I see you, my cardiovascular system gets all worked up
  • I wish I were adenine because then I could get paired with U.
  • What’s your sine? It must be pi/2 because you’re the 1
  • If my right leg was Christmas and my left was Easter, would you like to spend some time between the holidays?
  • Want to meet up so I can excite your natural frequency?
  • You know.. it’s not the length of the vector that counts… it’s how you apply the force
  • If I move my lips half the distance to yours… and then half again… and again… etc…. would they ever meet? no? Well in this specific case I am going to disprove your assumption.
  • If I was an endoplasmic reticulum, how would you want me: smooth or rough?
  • Our love is like dividing by zero…. you cannot define it
  • Let me be your integral so I can be the area under your curves
  • Let’s discover our coefficient of friction
  • You’re so gneiss I’ll never take you for granite.
  • I less than three you….. (i < 3 you)
uncategorized

Posts pagination

Previous 1 … 29 30 31 … 34 Next

Power to the beaver!

Show me the beaver!
June 2026
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  
« May    

Quote of the day

- "Sodomy non sapiens," said Albert under his breath.
- "What does that mean?"
- "Means I'm buggered if I know."
--Mort and Albert are facing a problem (Terry Pratchett, Mort)

Random Posts

  • Ho hum
  • He&apos;s the best looking corpse in the bar…
  • The stick of compliance
  • I wish I was a Pavel…
  • Michael Gove is an incompetent plonker 
reading leopard

Tags

bobble the little blue owl boobies brought to you by the fda cats chonk christmas comics computers are evil covid-19 dealing with idiots dilbert dog ducks galleries geek god bless the land of the free holidays house I am Canadian land of cheese and chocolate linked news lolcat london news from the stupid not my dog nsfw pets pictures potd2014 qotd random shit re-member recipes relationship shrill slice of life stress Tao the british way The Peanut things i miss travel video wine work

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2026 The beaver is a proud and noble animal.

Powered by PressBook Premium theme