<?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>Tiago Reis Blog</title>
	<atom:link href="http://reistiago.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://reistiago.wordpress.com</link>
	<description>Happy developer, addicted snowboarder</description>
	<lastBuildDate>Thu, 19 Jan 2012 00:16:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='reistiago.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tiago Reis Blog</title>
		<link>http://reistiago.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://reistiago.wordpress.com/osd.xml" title="Tiago Reis Blog" />
	<atom:link rel='hub' href='http://reistiago.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Add torrents to Transmission from anywhere</title>
		<link>http://reistiago.wordpress.com/2012/01/08/add-torrents-to-transmission-from-anywhere/</link>
		<comments>http://reistiago.wordpress.com/2012/01/08/add-torrents-to-transmission-from-anywhere/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 18:55:00 +0000</pubDate>
		<dc:creator>reistiago</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Torrents]]></category>

		<guid isPermaLink="false">http://reistiago.wordpress.com/?p=77</guid>
		<description><![CDATA[Requirements: Transmission - http://www.transmissionbt.com/ Dropbox Account &#8211; Referral Link, if you use it, we both get 250MB extra Dropbox App &#8211;  http://www.dropbox.com/downloading Configuring Transmission to automagically start downloading: Open Transmission preferences; Check &#8220;Start transfers when added&#8221;; Uncheck &#8220;Display a window when opening a torrent file&#8221;; Check &#8220;Watch for torrent files in : {a folder on your dropbox}&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=reistiago.wordpress.com&amp;blog=14776564&amp;post=77&amp;subd=reistiago&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Requirements:</p>
<ul>
<li>Transmission - <a href="http://www.transmissionbt.com/">http://www.transmissionbt.com/</a></li>
<li>Dropbox Account &#8211; <a href="http://db.tt/uI0PjsLS" target="_blank">Referral Link</a>, if you use it, we both get 250MB extra <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Dropbox App &#8211;  <a title="Download" href="http://www.dropbox.com/downloading" target="_blank">http://www.dropbox.com/downloading</a></li>
</ul>
<div>Configuring Transmission to <em>automagically</em> start downloading:</div>
<div>
<ol>
<li>Open Transmission preferences;</li>
<li>Check &#8220;Start transfers when added&#8221;;</li>
<li>Uncheck &#8220;Display a window when opening a torrent file&#8221;;</li>
<li>Check &#8220;Watch for torrent files in : {a folder on your dropbox}&#8221;</li>
</ol>
<div>Now if you add a torrent to that folder while you are away from the computer, Transmission will start downloading automatically.</div>
</div>
<div>&lt;3 Dropbox</div>
<div><em>*Tested on Mac OSX Lion</em></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/reistiago.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/reistiago.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/reistiago.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/reistiago.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/reistiago.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/reistiago.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/reistiago.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/reistiago.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/reistiago.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/reistiago.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/reistiago.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/reistiago.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/reistiago.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/reistiago.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=reistiago.wordpress.com&amp;blog=14776564&amp;post=77&amp;subd=reistiago&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://reistiago.wordpress.com/2012/01/08/add-torrents-to-transmission-from-anywhere/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bcac9693fe7bf9cbc7fea1b543774a11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">reistiago</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing Redis on Mac OS X</title>
		<link>http://reistiago.wordpress.com/2011/07/23/installing-on-redis-mac-os-x/</link>
		<comments>http://reistiago.wordpress.com/2011/07/23/installing-on-redis-mac-os-x/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 10:05:38 +0000</pubDate>
		<dc:creator>reistiago</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Redis]]></category>

		<guid isPermaLink="false">http://reistiago.wordpress.com/?p=58</guid>
		<description><![CDATA[Get source and install $ wget http://redis.googlecode.com/files/redis-2.2.12.tar.gz  $ tar xzf redis-2.2.12.tar.gz  $ cd redis-2.2.12  $ make $ make install  And it should be up and running on: /usr/local/bin/redis-server For Redis server to start on boot $ sudo nano /Library/LaunchDaemons/org.redis.redis-server.plist Copy the  following to the the file you just created. Create the log dir if it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=reistiago.wordpress.com&amp;blog=14776564&amp;post=58&amp;subd=reistiago&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Get source and install</p>
<pre><code>$ wget http://redis.googlecode.com/files/redis-2.2.12.tar.gz </code>
<code>$ tar xzf redis-2.2.12.tar.gz </code>
<code>$ cd redis-2.2.12 </code>
<code>$ make</code>
<code>$ make install </code></pre>
<p>And it should be up and running on:</p>
<pre>/usr/local/bin/redis-server</pre>
<p>For Redis server to start on boot</p>
<pre>$ sudo nano /Library/LaunchDaemons/org.redis.redis-server.plist</pre>
<p>Copy the  <a title="Redis Deamon" href="http://pastebin.com/C0r7L5U0">following</a> to the the file you just created.</p>
<p>Create the log dir if it doesn&#8217;t exists yet</p>
<pre>sudo mkdir /var/log/redis</pre>
<p>Load and launch the Daemon:</p>
<pre>sudo launchctl load /Library/LaunchDaemons/org.redis.redis-server.plist
sudo launchctl start org.redis.redis-server</pre>
<p>Hope it helps <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/reistiago.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/reistiago.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/reistiago.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/reistiago.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/reistiago.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/reistiago.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/reistiago.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/reistiago.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/reistiago.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/reistiago.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/reistiago.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/reistiago.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/reistiago.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/reistiago.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=reistiago.wordpress.com&amp;blog=14776564&amp;post=58&amp;subd=reistiago&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://reistiago.wordpress.com/2011/07/23/installing-on-redis-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bcac9693fe7bf9cbc7fea1b543774a11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">reistiago</media:title>
		</media:content>
	</item>
		<item>
		<title>Capturing touch events</title>
		<link>http://reistiago.wordpress.com/2010/07/20/capturing-touch-events/</link>
		<comments>http://reistiago.wordpress.com/2010/07/20/capturing-touch-events/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 23:14:44 +0000</pubDate>
		<dc:creator>reistiago</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[MonoTouch]]></category>

		<guid isPermaLink="false">http://reistiago.wordpress.com/?p=5</guid>
		<description><![CDATA[While developing an iPhone application I needed to detect all touch events. I found some tips on how to do it in objective-c but I&#8217;m mostly using MonoTouch. Here is my solution: Since I&#8217;m doing a Window based application, I thought that I could probably get the touch events by overriding the standard UIWindow with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=reistiago.wordpress.com&amp;blog=14776564&amp;post=5&amp;subd=reistiago&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While developing an iPhone application I needed to detect all touch events. I found some tips on how to do it in objective-c but I&#8217;m mostly using MonoTouch.</p>
<p>Here is my solution:</p>
<p>Since I&#8217;m doing a Window based application, I thought that I could probably get the touch events by overriding the standard UIWindow with my own version.</p>
<p>Taking a look to the default generated code (MainWindow.xib) we can see that the application is based on a UIWindow:</p>
<p><pre class="brush: csharp;">
// Base type probably should be MonoTouch.Foundation.NSObject or subclass
[MonoTouch.Foundation.Register(&quot;AppDelegate&quot;)]
public partial class AppDelegate {

	private UIWindow __mt_window;

	#pragma warning disable 0169
	[MonoTouch.Foundation.Connect(&quot;window&quot;)]
	private UIWindow window {
		get {
			this.__mt_window = ((UIWindow)(this.GetNativeField(&quot;window&quot;)));
			return this.__mt_window;
		}
		set {
			this.__mt_window = value;
			this.SetNativeField(&quot;window&quot;, value);
		}
	}
}
</pre></p>
<p>To create our custom windows class we can double-click the MainWindows.xib file and do it on InterfaceBuilder.</p>
<p><a href="http://reistiago.wordpress.com/2010/07/20/capturing-touch-events/screen-shot-2010-07-20-at-10-48-08-pm-2/" rel="attachment wp-att-43"><img class="alignnone size-full wp-image-43" title="Interface Builder EventUIImage" src="http://reistiago.files.wordpress.com/2010/07/screen-shot-2010-07-20-at-10-48-08-pm1.png?w=600" alt=""   /></a></p>
<p>Step by step what to do on Interface Builder:</p>
<ol>
<li>Click on the Window and change the class to &#8220;EventUIWindow&#8221;;</li>
<li>In the &#8220;Library&#8221; select &#8220;EventUIWindow&#8221;</li>
<li>Set the inheritance super class to UIWindow</li>
<li>Save and close Interface Builder</li>
</ol>
<p>Now if we look at the generated code we have this:</p>
<p><pre class="brush: csharp;">

// Base type probably should be MonoTouch.Foundation.NSObject or subclass
[MonoTouch.Foundation.Register(&quot;EventUIWindow&quot;)]
public partial class EventUIWindow { }

[MonoTouch.Foundation.Register(&quot;AppDelegate&quot;)]
public partial class AppDelegate {

	private EventUIWindow __mt_window;

	#pragma warning disable 0169
	[MonoTouch.Foundation.Connect(&quot;window&quot;)]
	private UIWindow window {
		get {
			this.__mt_window = ((EventUIWindow)(this.GetNativeField(&quot;window&quot;)));
			return this.__mt_window;
		}
		set {
			this.__mt_window = value;
			this.SetNativeField(&quot;window&quot;, value);
		}
	}
}
</pre></p>
<p>Now the only thing we need to do is to implement the EventUIWindow. We can do this since it is a partial class. On the implementation we need to override the SendEvent method.</p>
<p>Some sample code:</p>
<p><pre class="brush: csharp;">
public partial class EventUIWindow : UIWindow
	{
		public EventUIWindow () : base() {}

		public EventUIWindow (IntPtr handle) : base(handle) {}

		public override void SendEvent (UIEvent evt)
		{
			// Send the event to its original destination
			base.SendEvent (evt);
			// Get touchs from the event
			var touchs = evt.AllTouches;
			// Count will be one most of the time (single touch) but multitouch will appear here. E.g. Pinch touchs.Count = 2
			if (touchs.Count &gt; 0)
			{
				// Get one touch event from the array
				UITouch touch = touchs.AnyObject as UITouch;
				if (touch != null)
				{
					// You can get the touch phase
					// UITouchPhase.Began || UITouchPhase.Cancelled || UITouchPhase.Ended || UITouchPhase.Moved || UITouchPhase.Stationary
					// touch.Phase;

					// How many taps the click had
					// touch.TapCount

					// Target view
					// touch.View

					// Target Window
					// touch.Window

					// Touch event timestamp
					// touch.Timestamp

					// And a few more things
				}
			}
		}
	}
</pre></p>
<p>You can find the full source code for this sample at <a href="http://github.com/reistiago/monotouch-samples/">http://github.com/reistiago/monotouch-samples/</a></p>
<p>Hope it helps</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/reistiago.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/reistiago.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/reistiago.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/reistiago.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/reistiago.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/reistiago.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/reistiago.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/reistiago.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/reistiago.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/reistiago.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/reistiago.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/reistiago.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/reistiago.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/reistiago.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=reistiago.wordpress.com&amp;blog=14776564&amp;post=5&amp;subd=reistiago&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://reistiago.wordpress.com/2010/07/20/capturing-touch-events/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bcac9693fe7bf9cbc7fea1b543774a11?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">reistiago</media:title>
		</media:content>

		<media:content url="http://reistiago.files.wordpress.com/2010/07/screen-shot-2010-07-20-at-10-48-08-pm1.png" medium="image">
			<media:title type="html">Interface Builder EventUIImage</media:title>
		</media:content>
	</item>
	</channel>
</rss>
