<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>NullReference</title>
	<atom:link href="http://nullreference.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nullreference.wordpress.com</link>
	<description>A blog about nothing and everything</description>
	<lastBuildDate>Wed, 11 Feb 2009 17:22:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nullreference.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>NullReference</title>
		<link>http://nullreference.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nullreference.wordpress.com/osd.xml" title="NullReference" />
	<atom:link rel='hub' href='http://nullreference.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Don&#8217;t make unsubscribing from a newsletter too easy!</title>
		<link>http://nullreference.wordpress.com/2009/02/11/dont-make-unsubscribing-from-a-newsletter-too-easy/</link>
		<comments>http://nullreference.wordpress.com/2009/02/11/dont-make-unsubscribing-from-a-newsletter-too-easy/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 17:20:15 +0000</pubDate>
		<dc:creator>Vincent Claeys</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[captcha]]></category>
		<category><![CDATA[commentary]]></category>
		<category><![CDATA[newsletter]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[unsubscribe]]></category>

		<guid isPermaLink="false">http://nullreference.wordpress.com/?p=32</guid>
		<description><![CDATA[It&#8217;s probably a commercial trick to make the process of unsubscribing from a newsletter (*cough* spam *cough*) a bit harder than subscribing to it, but this time I must say I stumbled accross an extreme case! 1. The very easy subscribing part: About 10 minutes ago I got an e-mail on an e-mail account I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nullreference.wordpress.com&amp;blog=5871053&amp;post=32&amp;subd=nullreference&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s probably a commercial trick to make the process of unsubscribing from a newsletter (*cough* spam *cough*) a bit harder than subscribing to it, but this time I must say I stumbled accross an extreme case!</p>
<p>1. The very easy subscribing part:</p>
<p>About 10 minutes ago I got an e-mail on an e-mail account I haven&#8217;t used in the last 2 years. I even forgot about the existence of it (the reason I still received this e-mail is because I set it up to forward mails to my real e-mail account) and before that I may have used it 4 or 5 times at most. I&#8217;m sure about this since I made it with a special reason.<br />
Although I can&#8217;t remember doing so, it seems I somehow magically managed to subscribe to a newsletter with it and they have now e-mailed me.</p>
<p>2. The extremely difficult unsubscribing part.</p>
<p>I was very happy to see a little message at the end of the e-mail that said &#8220;click here to unsubscribe&#8221;.  So I clicked on it and then I landed on this <a title="Spam Unsubscribe Link" href="http://www.smets.cx/newsletter/" target="_blank">page</a> (in case the website goes down, I included a screenshot at the end of my post). Ironic captcha, isn&#8217;t it?<br />
Being very competitive I decided to give it a few tries, but I gave up after all and decided to blog about it. Now that I&#8217;ve done so, I think it&#8217;s time to do some DNS and whois lookups <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><img class="alignnone size-full wp-image-33" title="Unsubscribe From Spam" src="http://nullreference.files.wordpress.com/2009/02/spamunsubscribe.jpg?w=500&#038;h=234" alt="Unsubscribe From Spam" width="500" height="234" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nullreference.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nullreference.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nullreference.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nullreference.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nullreference.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nullreference.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nullreference.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nullreference.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nullreference.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nullreference.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nullreference.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nullreference.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nullreference.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nullreference.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nullreference.wordpress.com&amp;blog=5871053&amp;post=32&amp;subd=nullreference&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nullreference.wordpress.com/2009/02/11/dont-make-unsubscribing-from-a-newsletter-too-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70ddf02498993d0cd943ddff7a2cb681?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nullreference</media:title>
		</media:content>

		<media:content url="http://nullreference.files.wordpress.com/2009/02/spamunsubscribe.jpg" medium="image">
			<media:title type="html">Unsubscribe From Spam</media:title>
		</media:content>
	</item>
		<item>
		<title>Word Challenge on Facebook + Java Native Access</title>
		<link>http://nullreference.wordpress.com/2009/01/25/word-challenge-on-facebook-java-native-access/</link>
		<comments>http://nullreference.wordpress.com/2009/01/25/word-challenge-on-facebook-java-native-access/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 16:26:49 +0000</pubDate>
		<dc:creator>Vincent Claeys</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Bot]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Java Natice Access]]></category>
		<category><![CDATA[JNA]]></category>
		<category><![CDATA[Windows API]]></category>
		<category><![CDATA[Word Challenge]]></category>

		<guid isPermaLink="false">http://nullreference.wordpress.com/?p=23</guid>
		<description><![CDATA[I was curious how hard it is to access Windows Native Libraries (.dll files) with Java, so I made some time for a small and fun project this week: I made a bot for a Facebook application called Word Challenge. The Word Challenge Bot (I named it NRBot for now &#8211; haven&#8217;t made up my mind on a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nullreference.wordpress.com&amp;blog=5871053&amp;post=23&amp;subd=nullreference&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was curious how hard it is to access Windows Native Libraries (.dll files) with Java, so I made some time for a small and fun project this week: I made a bot for a Facebook application called <a title="Word Challenge Game" href="http://www.facebook.com/applications/Word_Challenge/10726707410" target="_blank">Word Challenge</a>. The Word Challenge Bot (I named it NRBot for now &#8211; haven&#8217;t made up my mind on a final name) isn&#8217;t done yet, but the basics are. It already allows you to score a lot of points in a small amount of time without doing a lot <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>So what&#8217;s still to be done then? Well here are some points I was thinking about, but I&#8217;m not sure when or if I will ever complete them, because I need to finish some other projects first:<br />
- improve UI (now it&#8217;s just an ugly console app)<br />
- improve code to find the correct window (now I&#8217;m just calling User32.FindWindowA with a hardcoded name in it &#8211; this will only work with Mozilla Firefox and if the game window was the last window that was opened)<br />
- use OCR (Optical Character Recognition) to auto detect the letters provided by the application &#8211; this way the bot would become totally automatic!</p>
<p>Here&#8217;s some information on how the bot works:<br />
It will only work on Windows. I&#8217;m using <a title="Java Native Access" href="https://jna.dev.java.net/" target="_blank">JNA (Java Native Access)</a> to directly access native shared libraries (.dll files). You might say I should&#8217;ve used Java AWT (Abstract Windowing Toolkit), more specifically the Robot class, or that I should code such tools in C or C++, but as I mentioned before I made this decision on purpose because I wanted to know how hard it was to access Native Libraries from Java.<br />
When you start the program, it searches the World Challenge application window. Like I said above, I still have to improve this. After this, the bot asks to type in the 6 letters you get from Word Challenge and then starts bruteforcing every possible combination with these letters. To do this, I used a <a title="Permutation Generator" href="http://www.merriampark.com/perm.htm" target="_blank">PermutationGenerator I found on the internet</a> (actually this only returns all 6 char possibilities so I used a bit of common sense to find the smaller unique combinations). Then the bot sends every possible combination to the application using SendMessageA(int hWnd, int msg, int wParam, int lParam); followed by a carriage return and a line feed.</p>
<p>I did some tests already, and the bot finds ALL possible words within a few seconds! Awesome, isn&#8217;t it? <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a title="Sourcecode and Jar file" href="http://users.telenet.be/bratax/tools/NRWords.zip" target="_blank">Here&#8217;s the sourcecode</a> (you will have to add the <a title="JNA Library" href="https://jna.dev.java.net/" target="_blank">JNA library</a> to your project to compile), and for those who just want to cheat but don&#8217;t care about Java a .jar file is included (run from CommandLine with &#8220;java -jar NRWords.jar&#8221;).<br />
Feel free to use and improve the source any way you want, but I would appreciate it if you let me know you did!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nullreference.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nullreference.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nullreference.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nullreference.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nullreference.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nullreference.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nullreference.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nullreference.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nullreference.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nullreference.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nullreference.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nullreference.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nullreference.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nullreference.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nullreference.wordpress.com&amp;blog=5871053&amp;post=23&amp;subd=nullreference&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nullreference.wordpress.com/2009/01/25/word-challenge-on-facebook-java-native-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70ddf02498993d0cd943ddff7a2cb681?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nullreference</media:title>
		</media:content>
	</item>
		<item>
		<title>Your mobile device has encountered an unexpected error (0xE8000001)</title>
		<link>http://nullreference.wordpress.com/2008/12/19/your-mobile-device-has-encountered-an-unexpected-error-0xe8000001/</link>
		<comments>http://nullreference.wordpress.com/2008/12/19/your-mobile-device-has-encountered-an-unexpected-error-0xe8000001/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 10:49:15 +0000</pubDate>
		<dc:creator>Vincent Claeys</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[0xE8000001]]></category>
		<category><![CDATA[deploy]]></category>
		<category><![CDATA[device]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[unexpected error]]></category>

		<guid isPermaLink="false">http://nullreference.wordpress.com/?p=15</guid>
		<description><![CDATA[Your mobile device has encountered an unexpected error (0xE8000001). That&#8217;s the error I got stuck on for the last 1.5 weeks when trying to deploy and test my iPhone application on my device instead of the simulator. I surfed tons of forums and discussion boards but didn&#8217;t find any solution, but since this is something [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nullreference.wordpress.com&amp;blog=5871053&amp;post=15&amp;subd=nullreference&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Your mobile device has encountered an unexpected error (0xE8000001). That&#8217;s the error I got stuck on for the last 1.5 weeks when trying to deploy and test my iPhone application on my device instead of the simulator.</p>
<p>I surfed tons of forums and discussion boards but didn&#8217;t find any solution, but since this is something I really had to get past, I didn&#8217;t give up and tried out everything I could think about&#8230; with success! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>The weird thing about this error is that it doesn&#8217;t occur the first time you deploy your application. Everything goes great until you try it a 2nd time (or sometimes it works a couple of times and then it just happens at random). I read rumors that if you restore your iPhone, you can deploy your app again 1 time (or a couple of times) and after that the error appears again.<br />
These facts made me suspect that there is something left or changed on the device after the first time you install your application, so here&#8217;s what I did:<br />
- I restored my iPhone and jailbroke it, installed SSH on it, connected to it from my laptop and started looking around. I made a full dump of the file system (list of files &amp; dirs, file properties, file sizes,&#8230;) and then deployed my application a couple of times until I got the error.<br />
- When I got the error I made a new dump of the file system and I wrote a little tool that compared the 2 lists from head to toe.<br />
- After having found all the differences I started changing them back one by one and tested if the change fixed my problem.<br />
- I quickly found out that the directory &#8220;/private/var/mobile/Media/PublicStaging&#8221; was holding a copy of my application and after deleting this copy, I could deploy again just fine.</p>
<p>I suppose this is a bug in the iPhone SDK, or maybe in v2.2 of the iPhone OS? I don&#8217;t know exactly, but if you encounter this error when deploying your app, here&#8217;s what to do:<br />
1. jailbreak your iPhone (unless there&#8217;s another way to do step 2, then you can skip this step)<br />
2. install SSH on it<br />
3. every time you get the error, SSH to your iPhone (default root password on v2.2 is &#8220;alpine&#8221;) and delete your application folder inside  &#8220;/private/var/mobile/Media/PublicStaging&#8221;<br />
4. you can now deploy again <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Oh and euhm&#8230; don&#8217;t forget to put SSH off again when you&#8217;re done, or change your default password, because you don&#8217;t want anyone to SSH into your iPhone when you&#8217;re on some public wifi, do you?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nullreference.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nullreference.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nullreference.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nullreference.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nullreference.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nullreference.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nullreference.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nullreference.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nullreference.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nullreference.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nullreference.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nullreference.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nullreference.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nullreference.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nullreference.wordpress.com&amp;blog=5871053&amp;post=15&amp;subd=nullreference&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nullreference.wordpress.com/2008/12/19/your-mobile-device-has-encountered-an-unexpected-error-0xe8000001/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70ddf02498993d0cd943ddff7a2cb681?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nullreference</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello!</title>
		<link>http://nullreference.wordpress.com/2008/12/16/hello-world/</link>
		<comments>http://nullreference.wordpress.com/2008/12/16/hello-world/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 16:59:23 +0000</pubDate>
		<dc:creator>Vincent Claeys</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to my blog. On this blog I will post about some of my experiences and ideas on all different sorts of IT stuff.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nullreference.wordpress.com&amp;blog=5871053&amp;post=1&amp;subd=nullreference&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to my blog. On this blog I will post about some of my experiences and ideas on all different sorts of IT stuff.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nullreference.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nullreference.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nullreference.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nullreference.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nullreference.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nullreference.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nullreference.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nullreference.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nullreference.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nullreference.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nullreference.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nullreference.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nullreference.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nullreference.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nullreference.wordpress.com&amp;blog=5871053&amp;post=1&amp;subd=nullreference&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nullreference.wordpress.com/2008/12/16/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/70ddf02498993d0cd943ddff7a2cb681?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nullreference</media:title>
		</media:content>
	</item>
	</channel>
</rss>
