<?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/"
	>

<channel>
	<title>Daily Bytes</title>
	<atom:link href="http://dailybytes.blog.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dailybytes.blog.com</link>
	<description>everyday bytes a little more</description>
	<pubDate>Thu, 09 Jul 2009 13:20:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Vancouver</title>
		<link>http://dailybytes.blog.com/2007/03/27/vancouver/</link>
		<comments>http://dailybytes.blog.com/2007/03/27/vancouver/#comments</comments>
		<pubDate>Tue, 27 Mar 2007 00:53:09 +0000</pubDate>
		<dc:creator>André Restivo</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[<div align="center"><img src="http://lh3.google.com/image/andre.restivo/RghYtJ66ypI/AAAAAAAAAw0/e_vt2vhssuQ/s288/IMG_0748.jpg" align="middle" /></div>

]]></description>
			<content:encoded><![CDATA[<div>
<div align="center"><img src="http://lh3.google.com/image/andre.restivo/RghYtJ66ypI/AAAAAAAAAw0/e_vt2vhssuQ/s288/IMG_0748.jpg" align="middle" /></div>
</div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://dailybytes.blog.com/2007/03/27/vancouver/feed/</wfw:commentRss>
		</item>
		<item>
		<title>One day without e-mails</title>
		<link>http://dailybytes.blog.com/2007/01/16/one-day-without-e-mails/</link>
		<comments>http://dailybytes.blog.com/2007/01/16/one-day-without-e-mails/#comments</comments>
		<pubDate>Tue, 16 Jan 2007 13:13:13 +0000</pubDate>
		<dc:creator>André Restivo</dc:creator>
		
		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>When I was about 8 years old, I remember having this thought about what would happen if nothing relevant happened all the day long and the newspapers didn't have nothing to write about. I now know that would never be possible because newspapers would just <i>create</i> something interesting to talk about.</p>
<p>But yesterday I tasted something similar. I didn't receive one single e-mail all day long. Besides the ones I kept sending myself (just to make sure my e-mail system was ok) and the always flowing current of spam, I didn't get one single e-mail. Not even from mailing lists. Weird ...</p>
<p>Apparently , today everything is back normal!</p>
<p><b>&#160;Update:</b> I just found an <a href="http://jeremy.zawodny.com/blog/archives/008378.html">explanation</a> to what happened. I had around 300 e-mails per day in my spam folder so it was not funny to dig for false positives. This spam issue is starting to get out of hand.</p>

]]></description>
			<content:encoded><![CDATA[<div>
<p>When I was about 8 years old, I remember having this thought about what would happen if nothing relevant happened all the day long and the newspapers didn&#8217;t have nothing to write about. I now know that would never be possible because newspapers would just <i>create</i> something interesting to talk about.</p>
<p>But yesterday I tasted something similar. I didn&#8217;t receive one single e-mail all day long. Besides the ones I kept sending myself (just to make sure my e-mail system was ok) and the always flowing current of spam, I didn&#8217;t get one single e-mail. Not even from mailing lists. Weird &#8230;</p>
<p>Apparently , today everything is back normal!</p>
<p><b>&#160;Update:</b> I just found an <a href="http://jeremy.zawodny.com/blog/archives/008378.html">explanation</a> to what happened. I had around 300 e-mails per day in my spam folder so it was not funny to dig for false positives. This spam issue is starting to get out of hand.</p>
</div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://dailybytes.blog.com/2007/01/16/one-day-without-e-mails/feed/</wfw:commentRss>
		</item>
		<item>
		<title>120 days</title>
		<link>http://dailybytes.blog.com/2006/11/29/120-days/</link>
		<comments>http://dailybytes.blog.com/2006/11/29/120-days/#comments</comments>
		<pubDate>Wed, 29 Nov 2006 17:31:56 +0000</pubDate>
		<dc:creator>André Restivo</dc:creator>
		
		<category><![CDATA[Me]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<div align="center"><img src="http://paginas.fe.up.pt/%7Earestivo/120/120.php" style="border: 2px solid black;" align="middle" /></div>

]]></description>
			<content:encoded><![CDATA[<div>
<div align="center"><img src="http://paginas.fe.up.pt/%7Earestivo/120/120.php" style="border: 2px solid black;" align="middle" /></div>
</div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://dailybytes.blog.com/2006/11/29/120-days/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hmm?</title>
		<link>http://dailybytes.blog.com/2006/11/25/hmm/</link>
		<comments>http://dailybytes.blog.com/2006/11/25/hmm/#comments</comments>
		<pubDate>Sat, 25 Nov 2006 19:49:28 +0000</pubDate>
		<dc:creator>André Restivo</dc:creator>
		
		<category><![CDATA[Comedy]]></category>

		<category><![CDATA[development]]></category>

		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>Sorry about the stupid post. To understand this one you have to <font style="text-decoration: line-through;">be</font> understand Portuguese, know SQL and watch <a href="http://youtube.com/watch?v=VKTlpgL0Bgw">a certain comedy sketch show</a>.</p>
<pre>
CONNECT aldeia;<br />
SELECT * FROM pessoa <br />
WHERE altura =ALL <br />
  (SELECT MAX(altura) FROM pessoa);
</pre>
<p>So much time without a single post and this was all I could come up with. Sad ...<br /></p>

]]></description>
			<content:encoded><![CDATA[<div>
<p>Sorry about the stupid post. To understand this one you have to <font style="text-decoration: line-through;">be</font> understand Portuguese, know SQL and watch <a href="http://youtube.com/watch?v=VKTlpgL0Bgw">a certain comedy sketch show</a>.</p>
<pre>
CONNECT aldeia;
SELECT * FROM pessoa 
WHERE altura =ALL 
  (SELECT MAX(altura) FROM pessoa);
</pre>
<p>So much time without a single post and this was all I could come up with. Sad &#8230;</p>
</div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://dailybytes.blog.com/2006/11/25/hmm/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ride the Lightning</title>
		<link>http://dailybytes.blog.com/2006/07/19/ride-the-lightning/</link>
		<comments>http://dailybytes.blog.com/2006/07/19/ride-the-lightning/#comments</comments>
		<pubDate>Wed, 19 Jul 2006 00:30:16 +0000</pubDate>
		<dc:creator>André Restivo</dc:creator>
		
		<category><![CDATA[Lightning]]></category>

		<category><![CDATA[Nature]]></category>

		<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>These two photos were taken minutes before me and <a href="http://k.blog.com/" title="K (Sergio's Blog)">Sérgio</a> had to flee from a bar near the beach because of a sandstorm. Not too bad considering they were taken with a mere <a href="http://www.sonyericsson.com/k750/" title="K750 official site">K750</a>.</p>
<div style="text-align: center;"><img src="http://amadeo.blog.com/repository/1/947234.jpg" style="border: 1px solid black;" /></div>
<br />
<div align="center"><img src="http://amadeo.blog.com/repository/1/947236.jpg" style="border: 1px solid black;" align="bottom" /></div>

]]></description>
			<content:encoded><![CDATA[<div>
<p>These two photos were taken minutes before me and <a href="http://k.blog.com/" title="K (Sergio's Blog)">Sérgio</a> had to flee from a bar near the beach because of a sandstorm. Not too bad considering they were taken with a mere <a href="http://www.sonyericsson.com/k750/" title="K750 official site">K750</a>.</p>
<div style="text-align: center;"><img src="http://amadeo.blog.com/repository/1/947234.jpg" style="border: 1px solid black;" /></div>
<p></p>
<div align="center"><img src="http://amadeo.blog.com/repository/1/947236.jpg" style="border: 1px solid black;" align="bottom" /></div>
</div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://dailybytes.blog.com/2006/07/19/ride-the-lightning/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Generic Observer Pattern with AspectJ</title>
		<link>http://dailybytes.blog.com/2006/06/23/generic-observer-pattern-with-aspectj/</link>
		<comments>http://dailybytes.blog.com/2006/06/23/generic-observer-pattern-with-aspectj/#comments</comments>
		<pubDate>Fri, 23 Jun 2006 01:54:02 +0000</pubDate>
		<dc:creator>André Restivo</dc:creator>
		
		<category><![CDATA[development]]></category>

		<category><![CDATA[PHD]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>Been playing around with <a href="http://www.eclipse.org/aspectj/">AspectJ</a> and just made my first, not so simple, AspectJ code and it works like a charm. There are still some things that I don't fully understand but it's late so maybe tomorrow I'll get it.</p>
<p>Follow the read more link to see the source code for my Generic ObserverPattern implementation.</p>
]]></description>
			<content:encoded><![CDATA[<div>
<p>Been playing around with <a href="http://www.eclipse.org/aspectj/">AspectJ</a> and just made my first, not so simple, AspectJ code and it works like a charm. There are still some things that I don&#8217;t fully understand but it&#8217;s late so maybe tomorrow I&#8217;ll get it.</p>
<p>Follow the read more link to see the source code for my Generic ObserverPattern implementation.</p>
</div>
<div>
<b>ObserverPattern.java</b></p>
<pre>
import java.util.Vector;
import java.util.Iterator;

public abstract aspect ObserverPattern perthis(subjectConstructed(Subject))
{
        public interface Observer { }
        public interface Subject { }

        Vector observers = new Vector();

        public void addObserver(Observer o)
        {
                observers.add(o);
        }

        protected pointcut subjectConstructed(Subject s) : 
                execution(Subject+.new(..)) &amp;&amp; this(s);

        abstract protected pointcut subjectChanged(Subject s);

        after(Subject s) : subjectChanged(s)
        {
                Iterator itr = observers.iterator();
                while (itr.hasNext())
                        updateObserver((Observer)itr.next(), s);
        }

        public abstract void updateObserver(Observer o, Subject s);
}
</pre>
<p><b>PointObserverPattern.java</b></p>
<pre>
public aspect PointObserverPattern extends ObserverPattern
{
        declare parents: Screen implements Observer;
        declare parents: Point implements Subject;

        protected pointcut subjectChanged(Subject s) :
                execution(void Point.set*(..)) &amp;&amp; this(s);

        public void updateObserver(Observer o, Subject s) 
        {
                ((Screen)o).updateDisplay();
        }
}
</pre>
<p><b>Point.java</b></p>
<pre>
public class Point
{
        private float x;
        private float y;

        Point (float x, float y) 
        {
                this.x = x;
                this.y = y;
        }

        public void setX(float x){
                this.x = x;
        }

        public void setY(float y){
                this.y = y;
        }
}
</pre>
<p><b>Screen.java</b></p>
<pre>
public class Screen
{
        public void updateDisplay(){
                System.out.println("Display has been updated");
        }
}
</pre>
<p><b>Application.java</b></p>
<pre>
public class Application
{
        public static void main(String[] args) {
                Point p = new Point(0,0);
                Screen s = new Screen();

                PointObserverPattern.aspectOf(p).addObserver(s);                

                p.setX(2);
                p.setY(2);

                System.exit(0);
        }
}
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://dailybytes.blog.com/2006/06/23/generic-observer-pattern-with-aspectj/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Finally done &#8230;</title>
		<link>http://dailybytes.blog.com/2006/06/20/finally-done/</link>
		<comments>http://dailybytes.blog.com/2006/06/20/finally-done/#comments</comments>
		<pubDate>Tue, 20 Jun 2006 19:48:35 +0000</pubDate>
		<dc:creator>André Restivo</dc:creator>
		
		<category><![CDATA[Me]]></category>

		<category><![CDATA[MSc]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<div align="center"><a href="http://amadeo.blog.com/repository/1/878919.jpg"><img src="http://amadeo.blog.com/repository/1/878919.jpg" align="middle" border="0" /></a></div>

]]></description>
			<content:encoded><![CDATA[<div>
<div align="center"><a href="http://amadeo.blog.com/repository/1/878919.jpg"><img src="http://amadeo.blog.com/repository/1/878919.jpg" align="middle" border="0" /></a></div>
</div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://dailybytes.blog.com/2006/06/20/finally-done/feed/</wfw:commentRss>
		</item>
		<item>
		<title>One happy rabbit &#8230;</title>
		<link>http://dailybytes.blog.com/2006/05/25/one-happy-rabbit/</link>
		<comments>http://dailybytes.blog.com/2006/05/25/one-happy-rabbit/#comments</comments>
		<pubDate>Thu, 25 May 2006 01:23:23 +0000</pubDate>
		<dc:creator>André Restivo</dc:creator>
		
		<category><![CDATA[animals]]></category>

		<category><![CDATA[bia]]></category>

		<category><![CDATA[Me]]></category>

		<category><![CDATA[rabbit]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<a href="http://amadeo.blog.com/repository/1/815626.jpg"></a>
<div style="text-align: center;"><img src="http://amadeo.blog.com/repository/1/815626.400.p.tn.jpg" width="400" /></div>
<div style="text-align: center;"></div>
<div style="text-align: center;">... in her new house.</div>

]]></description>
			<content:encoded><![CDATA[<div><a href="http://amadeo.blog.com/repository/1/815626.jpg"></a></p>
<div style="text-align: center;"><img src="http://amadeo.blog.com/repository/1/815626.400.p.tn.jpg" width="400" /></div>
<div style="text-align: center;"></div>
<div style="text-align: center;">&#8230; in her new house.</div>
</div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://dailybytes.blog.com/2006/05/25/one-happy-rabbit/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Just had to say &#8230;</title>
		<link>http://dailybytes.blog.com/2006/05/10/just-had-to-say/</link>
		<comments>http://dailybytes.blog.com/2006/05/10/just-had-to-say/#comments</comments>
		<pubDate>Wed, 10 May 2006 21:33:08 +0000</pubDate>
		<dc:creator>André Restivo</dc:creator>
		
		<category><![CDATA[Me]]></category>

		<category><![CDATA[MSc]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>... I'm done with writing it. Now I just need to proof read it.</p>
<p>&#160;</p>
<p>I know it has been a long time since my last post. I hope to have some more time from now on.</p>

]]></description>
			<content:encoded><![CDATA[<div>
<p>&#8230; I&#8217;m done with writing it. Now I just need to proof read it.</p>
<p>&#160;</p>
<p>I know it has been a long time since my last post. I hope to have some more time from now on.</p>
</div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://dailybytes.blog.com/2006/05/10/just-had-to-say/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Template</title>
		<link>http://dailybytes.blog.com/2006/02/20/template/</link>
		<comments>http://dailybytes.blog.com/2006/02/20/template/#comments</comments>
		<pubDate>Mon, 20 Feb 2006 16:12:52 +0000</pubDate>
		<dc:creator>André Restivo</dc:creator>
		
		<category><![CDATA[blog]]></category>

		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I was feeling bored so I did this template mockup:<br />
<br />
<a href="http://amadeo.blog.com/repository/1/577434.p.jpg"><img src="http://amadeo.blog.com/repository/1/577434.p.jpg" style="border: 0pt none ; width: 200px;" alt="" /></a> <a href="http://amadeo.blog.com/repository/1/577464.p.jpg"><img src="http://amadeo.blog.com/repository/1/577464.p.jpg" alt="" style="border: 0pt none ; width: 200px;" /></a><br />
<br />
Does it look alright or is it a bit to much CTT style? (private joke)
]]></description>
			<content:encoded><![CDATA[<div>I was feeling bored so I did this template mockup:</p>
<p><a href="http://amadeo.blog.com/repository/1/577434.p.jpg"><img src="http://amadeo.blog.com/repository/1/577434.p.jpg" style="border: 0pt none ; width: 200px;" alt="" /></a> <a href="http://amadeo.blog.com/repository/1/577464.p.jpg"><img src="http://amadeo.blog.com/repository/1/577464.p.jpg" alt="" style="border: 0pt none ; width: 200px;" /></a></p>
<p>Does it look alright or is it a bit to much CTT style? (private joke)
</p></div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://dailybytes.blog.com/2006/02/20/template/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
