<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="0.92">
<channel>
	<title>MJlab.com</title>
	<link>http://blog.mjlab.com</link>
	<description>MJ's Lab</description>
	<lastBuildDate>Wed, 08 Jul 2009 11:26:18 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Spam Madlibs</title>
		<description>Got the following spam mail:



%SI_rnd10 the most %SI_rnd11 %SI_rnd12 of all men?

Does your %SI_rnd13 make it %SI_rnd14 for you to %SI_rnd15 yourself in %SI_rnd16?
%SI_rnd17 the %SI_rnd18 inside %SI_rnd19! Give your %SI_rnd20 the unlimited charge of %SI_rnd21 and desire!

You can %SI_rnd22 it simply by %SI_rnd23 one pilule %SI_rnd24! The perfect %SI_rnd25 ...</description>
		<link>http://blog.mjlab.com/2009/07/08/spam-madlibs/</link>
			</item>
	<item>
		<title>Simple Transcoding Script for Linux - dvd2mkv</title>
		<description>I wrote a simple bash script that would let me convert my anime DVDs to a digital file for ease of use. Now in the past I've used tools like nandub and gordian knot to create high quality xvids from DVDs on windows.  This time I wanted some better ...</description>
		<link>http://blog.mjlab.com/2008/11/04/simple-transcoding-script-for-linux-dvd2mkv/</link>
			</item>
	<item>
		<title>&#8220;the eclipse executable launcher was unable to locate its companion shared library&#8221; AKA Fixing eclipse for mac os x</title>
		<description>Recently I did an upgrade of eclipse within eclipse using the "software updates" feature as well as adding some packages like svn and coldfusion for eclipse.  When I restarted I ran into a small issue, it wouldn't start.

The error message I kept getting was

the eclipse executable launcher was unable ...</description>
		<link>http://blog.mjlab.com/2008/10/01/the-eclipse-executable-launcher-was-unable-to-locate-its-companion-shared-library-aka-fixing-eclipse-for-mac-os-x/</link>
			</item>
	<item>
		<title>Quick backup solution for mysql with daily and monthly rotated backups</title>
		<description>Using a combination of logrotate, cron and mysqldump one can easily create a backup solution that does daily and monthly backups. 

First I'd recommend setting up a mysql user that has mysqldump privileges only, in my case I created one called backup and it was only accessiable by localhost. I ...</description>
		<link>http://blog.mjlab.com/2008/06/13/quick-backup-solution-for-mysql-with-daily-and-monthly-rotated-backups/</link>
			</item>
	<item>
		<title>Loop through dates in perl</title>
		<description>A little code tidbit, how to loop through dates a day at a time, can easily be modifed for other time periods but this is all I needed:


#!/usr/bin/perl -w

use Date::Calc qw(Add_Delta_Days Delta_Days);

my @date = (2008, 1, 1);
my @enddate = (2009, 1, 1);

while (Delta_Days(@date, @enddate) >= 0)
{
  print "$date[0]-$date[1]-$date[2]\n";
  ...</description>
		<link>http://blog.mjlab.com/2008/05/19/loop-through-dates-in-perl/</link>
			</item>
	<item>
		<title>python amazon stock checker</title>
		<description>I just wrote my first python program. It checks a given ASIN to see if amazon has it in stock.


#!/usr/bin/python

import sys
import urllib

AWSAccessKeyId = "removed"
AmazonMerchantId = "A3P5ROKL5A1OLE"

def checkStock(asin):
  try:
    fh = urllib.urlopen("http://ecs.amazonaws.co.uk/onca/xml?Service=AWSECommerceService&AWSAccessKeyId="+AWSAccessKeyId+"&Operation=ItemLookup&ItemId="+asin+"&ResponseGroup=OfferFull&Version=2008-04-07")
  except:
    print "fail"
    return -1
  page = ...</description>
		<link>http://blog.mjlab.com/2008/05/12/python-amazon-stock-checker/</link>
			</item>
	<item>
		<title>Unknown truffles</title>
		<description>I just want to thank the nameless somebody who sent us some chocolate truffles. They were addressed to me but to another flat, but somehow (probably thanks to the building managers) it got put in my mailbox.

It was a small unassuming, no brands or labels, cardboad box. Kind of like ...</description>
		<link>http://blog.mjlab.com/2008/04/05/unknown-truffles/</link>
			</item>
	<item>
		<title>Adwords - The Book</title>
		<description>Alot of people have been asking me for tips on this adwords thing now that they are noticing I'm making £1000 a month recurring with no extra effort besides the initial start.

Well do you think I'll just give that info away for free seeing as I had to pay for ...</description>
		<link>http://blog.mjlab.com/2007/07/30/adwords-the-book/</link>
			</item>
	<item>
		<title>Why does odds which are statistically worse, normally called &#8220;better&#8221;?</title>
		<description>I recently got emailed this question:

If 1:1 odds are "even odds," it means that your horse has a 1-in-2 chance of
winning.  4:1 odds are the odds when your horse has a 1-in-5 chance of
winning.  In popular culture/common usage, this would be worse than even
odds.   Is the ...</description>
		<link>http://blog.mjlab.com/2007/06/04/why-does-odds-which-are-statistically-worse-normally-called-better/</link>
			</item>
	<item>
		<title>Free Bet This Saturday -  Liverpool v Chelsea - Arsenal v Man Utd</title>
		<description>With two massive Premiership clashes set to explode into life at the weekend, the big four will all be looking for victories which may well prove vital come the end of the season.

Chelsea will be looking to put all the recent off field speculation behind them and claw back ground ...</description>
		<link>http://blog.mjlab.com/2007/01/19/free-bet-this-saturday-liverpool-v-chelsea-arsenal-v-man-utd/</link>
			</item>
</channel>
</rss>
