November 27, 2008

Diamond Ring Joke

Filed under: Fun — Jeff @ November 27, 2008 11:46 am

I thought this was amusing…

An older, white haired gentleman walked into a jewellery store one  Friday  evening with a beautiful young gal at his side.

He told the jeweller he was looking for a special ring for his girlfriend. The jeweller looked through his stock and brought out a $5,000 ring.

The old man said, ‘No, I’d like to see something more special.’

At that statement, the jeweller went to his special stock and brought another ring over. ‘Here’s a stunning ring at only $40,000′ the jeweller said. The young lady’s eyes sparkled and her whole body trembled with excitement.

The old man seeing this said, ‘We’ll take it.’

The jeweller asked how payment would be made and the old man stated, ‘by check. I know you need to make sure my check is good, so I’ll write it now and you can call the bank Monday to verify the funds and I’ll pick the ring up Monday afternoon,’ he said.

Monday morning, the jeweller phoned the old man. ‘There’s no money in that account.’

‘I know,’ said the old man, ‘but let me tell you about my weekend!

All Seniors Aren’t Senile!!!

November 25, 2008

PhotoRec: Digital Photo and File Recovery

Filed under: Software — Jeff @ November 25, 2008 9:00 am

image

The other day Anji accidentally deleted a movie from her digicam that she really wanted.  We immediately took the card out of the camera and flipped the little write-protect tab.

After a bunch of looking for a tool to recover the image, Kyle suggested Photorec which is one of the most awesome pieces of software ever.

The took runs on almost any OS (DOS, Win9x, 2000, XP, Vista, Linux, *BSD, Solaris, Mac OSX and even OS2!!!) and can restore a wide range of file types (images, PDFs, ZIPs, Office Docs, movies, …) from a wide range of file systems (FAT, NTFS, EXT2/EXT3 and HFS+).

We downloaded the Windows version here (1.4MB).  It’s text based but when you’ve lost important files… Who cares?

image

Anyways… After a few minutes of scanning the card it restored the 60MB video flawlessly.

November 10, 2008

Definitely my Soul-mate

Filed under: Fun — Jeff @ November 10, 2008 1:54 pm

After years of searching I finally found someone who actually likes the classic game Bomberman.  And it turns out to be my wife.  Awesome! 

November 4, 2008

Long Sessions for MediaWiki

Filed under: Software,Web Hosting — Jeff @ November 4, 2008 3:53 pm

We use MediaWiki for in-house documentation and it’s normal behaviour of killing your “session” when you close your browser is annoying. 

You can make the session have the same lifetime as the login cookies (we have ours cranked up to a year) by changing a couple lines in “/includes/User.php” in the Wiki directory.

Search for the SetupSession function. 

To the global’s declaration add “$wgCookieExpiration”.  Change from:

global $wgSessionsInMemcached, $wgCookiePath, $wgCookieDomain;

to:

global $wgSessionsInMemcached, $wgCookiePath, $wgCookieDomain, $wgCookieExpiration;

And then modify the call to session_set_cookie_params to specify a session lifetime (instead of 0).  So:

session_set_cookie_params( 0, $wgCookiePath, $wgCookieDomain );

changes to:

session_set_cookie_params( $wgCookieExpiration, $wgCookiePath,
 $wgCookieDomain );

And that’s it.  Close your browser, re-login, and voila.  Now you can restart your browser without having to login again.