<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>LuisRei.com</title>
	<atom:link href="http://luisrei.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://luisrei.com</link>
	<description>A blog apart</description>
	<pubDate>Thu, 15 May 2008 17:33:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>UbuntuWebServer Virtual Appliance V1.4</title>
		<link>http://luisrei.com/2008/05/15/ubuntuwebserver-virtual-appliance-v14/</link>
		<comments>http://luisrei.com/2008/05/15/ubuntuwebserver-virtual-appliance-v14/#comments</comments>
		<pubDate>Thu, 15 May 2008 17:33:43 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[Chefax]]></category>

		<guid isPermaLink="false">http://lrei.wordpress.com/2008/05/15/ubuntuwebserver-virtual-appliance-v14/</guid>
		<description><![CDATA[This is probably the last version of my ubuntu web server VM that will use Ubuntu 7.10.
UbuntuWebServer

Direct Download Link
REVISION LOG:
1.4 - added phppgadmin and some php stuff
1.3 - added FTP Server
1.2 - added JDK+Tomcat5.5 and PostegreSQL
1.1 - added OpenSSL and demo apache configuration (commented)
1.0 - initial release
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is probably the last version of my ubuntu web server VM that will use Ubuntu 7.10.</p>
<p><a href="http://chefax.fe.up.pt/vm/uws.html">UbuntuWebServer</a><br />
<a href="ftp://chefax.fe.up.pt/pub/vm/uws14/UbuntuWebServer.zip"><br />
Direct Download Link</a></p>
<p><strong>REVISION LOG:</strong></p>
<p>1.4 - added phppgadmin and some php stuff<br />
1.3 - added FTP Server<br />
1.2 - added JDK+Tomcat5.5 and PostegreSQL<br />
1.1 - added OpenSSL and demo apache configuration (commented)<br />
1.0 - initial release</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/409/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/409/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/409/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=409&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/05/15/ubuntuwebserver-virtual-appliance-v14/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>
	</item>
		<item>
		<title>friendsnippets.com</title>
		<link>http://luisrei.com/2008/05/11/friendsnippetscom/</link>
		<comments>http://luisrei.com/2008/05/11/friendsnippetscom/#comments</comments>
		<pubDate>Sun, 11 May 2008 13:06:21 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[Internet]]></category>

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

		<guid isPermaLink="false">http://lrei.wordpress.com/2008/05/11/friendsnippetscom/</guid>
		<description><![CDATA[friendsnippets.com is for code what del.icio.us is for bookmarks. Just found it and fell in love with it.
link to my account.
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.friendsnippets.com">friendsnippets.com</a> is for code what del.icio.us is for bookmarks. Just found it and fell in love with it.</p>
<p><a href="http://www.friendsnippets.com/user/lrei/">link to my account</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/408/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/408/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/408/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=408&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/05/11/friendsnippetscom/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>
	</item>
		<item>
		<title>reihttpd - a basic web server in C</title>
		<link>http://luisrei.com/2008/05/11/reihttpd-a-basic-web-server-in-c/</link>
		<comments>http://luisrei.com/2008/05/11/reihttpd-a-basic-web-server-in-c/#comments</comments>
		<pubDate>Sun, 11 May 2008 13:01:05 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[FEUP]]></category>

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

		<guid isPermaLink="false">http://lrei.wordpress.com/?p=407</guid>
		<description><![CDATA[My &#8220;Computer Networks&#8221; (Redes de Computadores) assignment is writing an HTTP server that implements GET and conditional (if-modified-since) GET with persistent connections.
Here&#8217;s the code - Obviously, no guarantees.
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>My &#8220;Computer Networks&#8221; (Redes de Computadores) assignment is writing an HTTP server that implements GET and conditional (if-modified-since) GET with persistent connections.</p>
<p><a href="http://www.friendsnippets.com/snippet/304/">Here&#8217;s the code</a> - Obviously, no guarantees.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/407/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/407/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/407/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=407&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/05/11/reihttpd-a-basic-web-server-in-c/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>
	</item>
		<item>
		<title>MNUM - SimpsonCsv</title>
		<link>http://luisrei.com/2008/05/10/mnum-simpsoncsv/</link>
		<comments>http://luisrei.com/2008/05/10/mnum-simpsoncsv/#comments</comments>
		<pubDate>Sat, 10 May 2008 15:45:34 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[FEUP]]></category>

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

		<guid isPermaLink="false">http://lrei.wordpress.com/2008/05/10/mnum-simpsoncsv/</guid>
		<description><![CDATA[This one instead reads the values from a CSV file containing experimental data.
Link to my previous implementation of Simspson&#8217;s rule.


import csv

class simpsonCsv:
    def __init__(self, filename):
        reader = csv.reader(open(filename, &#34;rb&#34;))

        xlist = []
        ylist = []
       
        for row in reader:
            try:
               x = float(row[0])
               y = float(row[1])
            except TypeError:
                continue
            except ValueError:
                continue
            xlist.append(float(x))
            ylist.append(float(y))
       
        self.len [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This one instead reads the values from a CSV file containing experimental data.<br />
Link to <a href="http://luisrei.com/2008/04/11/mnum-simpsons-rule-in-python/">my previous implementation of Simspson&#8217;s rule</a>.</p>
<pre name="code" class="python">

import csv

class simpsonCsv:
    def __init__(self, filename):
        reader = csv.reader(open(filename, &quot;rb&quot;))

        xlist = []
        ylist = []
       
        for row in reader:
            try:
               x = float(row[0])
               y = float(row[1])
            except TypeError:
                continue
            except ValueError:
                continue
            xlist.append(float(x))
            ylist.append(float(y))
       
        self.len = len(xlist) - 1
        self.xstart = xlist[0]
        self.xend = xlist[self.len]
        self.interval = self.xend / self.len
       
        self.data = map(None, xlist, ylist)
   
    def f(self, x):
        for (u,v) in self.data:
            if u == x:
                return v
               
        print &quot;Bad x value (probably bad n): %s&quot; % (x)
        return None
       
       
   
    def simpson(self, n):
        &quot;Approximate the definite integral of f from a to b by Simpson&#039;s rule.&quot;

        if self.len % n != 0:
            print &quot;Error: %d mod %d is not zero but should be.&quot; % (self.len, n)
            return -1
       
       
        h  = float(self.xend - self.xstart)/n
       
   
        si = 0.0
        sp = 0.0
        xk = 0.0
   
        for i in range(1, n, 2):
            xk = self.xstart + i*h
            si += self.f(xk)
   
        for i in range(2, n, 2):
            xk = self.xstart + i*h
            sp += self.f(xk)
       
       
        s = 2*sp + 4*si + self.f(self.xstart) + self.f(self.xend)

        return (h/3)*s
    

filename = &quot;integral_tabela_CO2_csv.csv&quot;
s = simpsonCsv(filename)

print s.simpson(20)
print s.simpson(40)
print s.simpson(60)
print s.simpson(100)
print s.simpson(300)
print s.simpson(600)
print s.simpson(900)
print s.simpson(1800)
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/406/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/406/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/406/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=406&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/05/10/mnum-simpsoncsv/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>
	</item>
		<item>
		<title>WordPress Related Content</title>
		<link>http://luisrei.com/2008/04/28/wordpress-related-content/</link>
		<comments>http://luisrei.com/2008/04/28/wordpress-related-content/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 17:26:26 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[Internet]]></category>

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

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

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

		<guid isPermaLink="false">http://lrei.wordpress.com/?p=403</guid>
		<description><![CDATA[WordPress.com (where this blog is hosted) recently started appending
Possibly related posts: (automatically generated)
To every blog post. These are links to other blogs hosted on wordpress.com that are (possibly) related to it. This feature can be disabled but personally I like it  
You can try it by clicking for example on one of my &#8220;not [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a title="wordpress.com" href="http://wordpress.com">WordPress.com</a> (where this blog is hosted) recently started appending</p>
<p><strong>Possibly related posts: (automatically generated)</strong></p>
<p>To every blog post. These are links to other blogs hosted on <a title="wordpress.com" href="http://wordpress.com">wordpress.com</a> that are (possibly) related to it. This feature can be disabled but personally I like it <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>You can try it by clicking for example on one of my &#8220;not so new&#8221; posts (like <a href="http://luisrei.com/2008/03/31/google-web-services-for-free/">this one</a>) and scrolling to the bottom.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/403/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/403/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/403/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=403&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/04/28/wordpress-related-content/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>
	</item>
		<item>
		<title>The History of Bungie</title>
		<link>http://luisrei.com/2008/04/28/the-history-of-bungie/</link>
		<comments>http://luisrei.com/2008/04/28/the-history-of-bungie/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 17:18:22 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[Entertainment]]></category>

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

		<guid isPermaLink="false">http://lrei.wordpress.com/2008/04/28/the-history-of-bungie/</guid>
		<description><![CDATA[The History of Bungie is the history of a small (2 person) independent gaming software company that became a landmark in gaming with the Halo series.
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.bungie.net/Inside/history.aspx">The History of Bungie</a> is the history of a small (2 person) independent gaming software company that became a landmark in gaming with the <a href="http://en.wikipedia.org/wiki/Halo_%28series%29">Halo</a> series.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/404/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/404/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/404/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/404/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/404/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/404/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/404/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/404/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/404/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/404/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/404/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/404/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=404&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/04/28/the-history-of-bungie/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>
	</item>
		<item>
		<title>Fate/stay night</title>
		<link>http://luisrei.com/2008/04/14/fatestay-night/</link>
		<comments>http://luisrei.com/2008/04/14/fatestay-night/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 17:25:44 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[Entertainment]]></category>

		<guid isPermaLink="false">http://luisrei.com/2008/04/14/fatestay-night/</guid>
		<description><![CDATA[
From anidb:
Emiya Shirou is a highschool boy who lives in Fuyuki City. His parents died in a fire when he was young, after that he was adopted by an old man who refer himself as a sorcerer, but he died too. 
What Shirou doesn&#8217;t know, is that the underground of Fuyuki City is the place [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img style="display:block;text-align:center;margin:0 auto 10px;" src="http://lrei.files.wordpress.com/2008/03/5048.jpg" alt="" /><br />
<a href="http://anidb.net/perl-bin/animedb.pl?show=anime&amp;aid=3348">From anidb</a>:</p>
<div style="margin-left:40px;"><span style="font-style:italic;">Emiya Shirou is a highschool boy who lives in Fuyuki City. His parents died in a fire when he was young, after that he was adopted by an old man who refer himself as a sorcerer, but he died too. </span><br />
<span style="font-style:italic;">What Shirou doesn&#8217;t know, is that the underground of Fuyuki City is the place of a great war. </span><br />
<span style="font-style:italic;">When the time is right, sorcerers from near and far gather with their Servants - the summoned spirits of heroes so mighty they exist outside of time - and fight a war for possession of the Holy Grail, a relic said to grant its owner a wish. The true names of the Servants reveal their weaknesses, and so they are usually referred to by a classification of type instead; Saber, Archer, Rider, Berserker, Lancer, Caster, and Assassin. </span></p>
<p><span style="font-style:italic;">One day, Shirou saw a fight between two servants, Archer and Lancer. </span><br />
<span style="font-style:italic;">To preserve the secrecy of the war, Lancer mortally wounds him; but a girl who up until now seemed a normal classmate of his, Tohsaka Rin, saves his life using a magical pendant. </span><br />
<span style="font-style:italic;">On his way home, Lancer attacked him again. Just before he&#8217;s about to die for good, the servant Saber appears before him, greeting him with the words &#8220;Are you my master?&#8221;</span></p>
</div>
<p><span style="font-weight:bold;">Fate/stay night is my favorite anime</span>. The summary above doesn&#8217;t do it justice. I remember reading it and thinking &#8220;this sounds lame&#8221;. It came so highly recommended that I decided to watch it anyway. I didn&#8217;t use to watch anime until I started watching FSN.</p>
<p><span style="font-size:medium;">The Story</span><br />
The game had the game in which the anime is based had three different scenarios that came together to explain the enitre story. The FSN anime storyline is basically the FATE scenario from the game with some extras (mostly from the Unlimited Blade Works scenario). Because of this, to understand the story, one has to pay great attention to otherwise small details. <span style="font-weight:bold;">The relationship between characters and other essential bits can only be understood from interpreting short flashbacks or &#8220;clue scenes&#8221;.</span> It was easy for me to understand almost the whole thing the first time I watched the show but I was still finding small details the third time. Yes, <span style="font-weight:bold;">I&#8217;ve watched this anime 3 times!</span> That&#8217;s how much I enjoyed it. A friend of mine who also watched it completely missed some crucial bits such as the identity of Archer which in spite of being semi-obvious from the first few episodes, is only shown by an object at the end of episode 14 (another clue is given in a later episode by another object or rather two). Without knowing who Archer is, you miss out on one of the main topics of the show - ideals suck (and disillusion which is the name of <a href="http://www.youtube.com/watch?v=BUCwZkQHmVg">the first opening</a> btw).</p>
<p>I also found interesting that the current Holy Grail War was shown as largely a consequence of the previous war. Many of those participating in the war had their lives completely changed by the previous war.</p>
<p>Emya Shiro, the show&#8217;s main character is the stereotypical dropout loser that you see in many anime with the particularity that he has some lofty ideals of  saving the world.</p>
<p>Tosaka Rin, the &#8220;friendly&#8221; sorcerer that is sort of Shiro&#8217;s teacher in the ways of the force&#8230; herm&#8230; magic, is also sort of stereotypical (even if bisexual) It&#8217;s sort of interesting to see that she lives her life to fulfill  what she believes were her father&#8217;s expectations for her - a top of the class student and a dedicated sorceress,</p>
<p>I don&#8217;t want to talk about the other important characters so as not to spoil the anime for anyone. It&#8217;s a 24 ep show that was subbed by the excellent <a href="http://eclipse.no-sekai.de/">Eclipse productions</a>.</p>
<p>The soundtrack is by <a href="http://en.wikipedia.org/wiki/Kenji_Kawai">Kaway Kenji</a> (<a href="http://luisrei.com/2008/02/04/gundam-00/">Gundam 00</a>, <a href="http://en.wikipedia.org/wiki/Higurashi_no_Naku_Koro_ni">Higurashi</a>, &#8230;) and even though it&#8217;s a bit too &#8220;synth&#8221; I still like it a lot.</p>
<p>In Summary: <span style="font-weight:bold;">WATCH IT!</span> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://en.wikipedia.org/wiki/Fate/stay_night_scenarios">Wikipedia Link</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/401/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/401/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/401/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=401&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/04/14/fatestay-night/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>

		<media:content url="http://lrei.files.wordpress.com/2008/03/5048.jpg" medium="image" />
	</item>
		<item>
		<title>MNUM - Simpson&#8217;s Rule in Python</title>
		<link>http://luisrei.com/2008/04/11/mnum-simpsons-rule-in-python/</link>
		<comments>http://luisrei.com/2008/04/11/mnum-simpsons-rule-in-python/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 18:01:51 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[FEUP]]></category>

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

		<guid isPermaLink="false">http://lrei.wordpress.com/?p=399</guid>
		<description><![CDATA[

def simpson(f, a, b, n):
    &#34;Approximate the definite integral of f from a to b by Simpson&#039;s rule.&#34;

    if n % 2 != 0:
        print &#34;Ups: n must be even!&#34;
        return -1
        
    h  = (float(b) - a)/n
    
    si = 0.0
    sp = 0.0
    
    for i in range(1, n, 2):
        xk = a [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><pre name="code" class="python">

def simpson(f, a, b, n):
    &quot;Approximate the definite integral of f from a to b by Simpson&#039;s rule.&quot;

    if n % 2 != 0:
        print &quot;Ups: n must be even!&quot;
        return -1
        
    h  = (float(b) - a)/n
    
    si = 0.0
    sp = 0.0
    
    for i in range(1, n, 2):
        xk = a + i*h
        si += f(xk)
    
    for i in range(2, n, 2):
        xk = a + i*h
        sp += f(xk)
        
        
    s = 2*sp + 4*si + f(a) + f(b)

    return (h/3)*s

def f(x):
    return x**4

ni = 50
nf = 1000000
n = ni
a = -20
b = 0
s = []
qc = []
ec = []
t = 0.0
div = 0.0
i = 0.0

while n &lt; nf:
    t = simpson(f, a, b, n)
    s.append(t)
    n = n * 2

for i in range(0, len(s)-2):
    div = (s[i+2] - s[i+1])
    if div == 0:
        break
    
    t = (s[i+1] - s[i]) / div
    qc.append(t)
    t = div / 15
    ec.append(t)

for i in range(0, len(qc)):
    print &quot;%.12f, %.12f, %.12f =&gt; qc=%.12f, e=%.12f&quot; % (s[i], s[i+1], s[i+2], qc[i], ec[i])
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/399/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/399/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/399/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=399&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/04/11/mnum-simpsons-rule-in-python/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>
	</item>
		<item>
		<title>Advanced Linux Administration Course - Porto</title>
		<link>http://luisrei.com/2008/04/04/advanced-linux-administration-course-portugal/</link>
		<comments>http://luisrei.com/2008/04/04/advanced-linux-administration-course-portugal/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 12:12:16 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://lrei.wordpress.com/?p=397</guid>
		<description><![CDATA[
My friend José Gaspar will be teaching an Advanced Administration Course (Curso Administração Avançada de Servidores Linux)
Some highlights/keywords:

Servers: WWW, FTP, DNS, DHCP, LDAP, E-Mail
Samba (with quotas)
Security
XEN

Location: Rua da Boavista, Porto Portugal (link)
Date: From April 22 to June 3.
Schedule: Tuesday and Thursday, 19h-23h (4h)
Duration: 72h
Price: 300 euros
More information (in portuguese):
http://moodle.libhertz.com
http://www.solutionsout.com/cursos.htm
       [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img src="http://lrei.files.wordpress.com/2008/04/img_cursos.jpg" alt="cursos" /></p>
<p>My friend <a href="http://www.jgaspar.com/blog/">José Gaspar</a> will be teaching an Advanced Administration Course (Curso Administração Avançada de Servidores Linux)</p>
<p>Some highlights/keywords:</p>
<ul>
<li><b>Servers: WWW, FTP, DNS, DHCP, LDAP, E-Mail</b></li>
<li><b>Samba (with quotas)</b></li>
<li><b>Security</b></li>
<li><b>XEN</b></li>
</ul>
<p>Location: Rua da Boavista, Porto Portugal (<a href="http://www.solutionsout.com/localizacao.htm">link</a>)<br />
Date: From April 22 to June 3.<br />
Schedule: Tuesday and Thursday, 19h-23h (4h)<br />
Duration: 72h<br />
Price: 300 euros</p>
<p>More information (in portuguese):<br />
<a href="http://moodle.libhertz.com">http://moodle.libhertz.com</a><br />
<a href="http://www.solutionsout.com/cursos.htm">http://www.solutionsout.com/cursos.htm</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/397/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/397/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/397/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/397/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/397/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=397&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/04/04/advanced-linux-administration-course-portugal/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>

		<media:content url="http://lrei.files.wordpress.com/2008/04/img_cursos.jpg" medium="image">
			<media:title type="html">cursos</media:title>
		</media:content>
	</item>
		<item>
		<title>MNUM - Gauss</title>
		<link>http://luisrei.com/2008/04/04/mnum-gauss/</link>
		<comments>http://luisrei.com/2008/04/04/mnum-gauss/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 10:58:28 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[FEUP]]></category>

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

		<guid isPermaLink="false">http://luisrei.com/?p=396</guid>
		<description><![CDATA[

# this requires numpy get it from http://numpy.sf.net

from copy import deepcopy
from numpy import *

# this function, swapRows, was adapted from
# Numerical Methods Engineering with Python, Jean Kiusalaas
def swapRows(v,i,j):
    &#34;&#34;&#34;Swaps rows i and j of vector or matrix [v].&#34;&#34;&#34;
    if len(v) == 1:
        v[i],v[j] = v[j],v[i]
    else:
        temp = v[i].copy()
        v[i] = v[j]
   [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><pre name="code" class="python">

# this requires numpy get it from http://numpy.sf.net

from copy import deepcopy
from numpy import *

# this function, swapRows, was adapted from
# Numerical Methods Engineering with Python, Jean Kiusalaas
def swapRows(v,i,j):
    &quot;&quot;&quot;Swaps rows i and j of vector or matrix [v].&quot;&quot;&quot;
    if len(v) == 1:
        v[i],v[j] = v[j],v[i]
    else:
        temp = v[i].copy()
        v[i] = v[j]
        v[j] = temp

def pivoting(a, b):
    &quot;&quot;&quot;changes matrix A by pivoting&quot;&quot;&quot;

    n = len(b)

    for k in range(0, n-1):
        p = int(argmax(abs(a[k:n, k]))) + k
        if (p != k):
            swapRows(b, k, p)
            swapRows(a,k,p)

def gauss(a, b, t=1.0e-9, verbose=False):
    &quot;&quot;&quot; Solves [a|b] by gauss elimination&quot;&quot;&quot;

    n = len(b)

    # make copies of a and b so as not to change the values in the arguments
    tempa = deepcopy(a)
    tempb = deepcopy(b)

    # check if matrix is singular
    if abs(linalg.det(tempa)) &lt; t:
        return -1

    pivoting(tempa, tempb)

    for k in range(0,n-1):    
        for i in range(k+1, n):
            if tempa[i,k] != 0.0:
                m = tempa[i,k]/tempa[k,k]
                if verbose:
                    print &quot;m =&quot;, m
                tempa[i,k+1:n] = tempa[i,k+1:n] - m * tempa[k,k+1:n]
                tempb[i] = tempb[i] - m * tempb[k]

    # Back substitution
    for k in range(n-1,-1,-1):
        tempb[k] = (tempb[k] - dot(tempa[k,k+1:n], tempb[k+1:n]))/tempa[k,k]

    return tempb

def residue(a, b, c):
    &quot;&quot;&quot;Calculates the residue of a system solved by gauss elimination&quot;&quot;&quot;
    n = len(b)

    t = a * c # t is the A with the values of x replaced (an [n x n] matrix) 

    s = []
    for i in range(0, n):
        s.append(sum(t[i])) # s is the solution

    res = b - s # res is the residue

    return res

#a = array([[1.0, 2.0, 0.0],[-1.0, 2.0, 3.0],[1.0, 4.0, 1.0]])
#b = array([3.0, -1.0, 4.0])
#a = array([[-1.414214, 2, 0],[1, -1.414214, 1], [0, 2, -1.414214]])
#b = array([1.0,1.0,1.0])
#a = array([[2.0, 2.0, 2.0],[1.0, 1.0, 5.0], [2.0, 5.0, 1.0]])
#b = array([6.0, 7.0, 8.0])
a = array([[1.001, 2.001, 3.001],[0.999, 2.0, 2.999], [1.002, 1.999, 2.999]])
b = array([4.003, 4.001, 3.999])

x = gauss(a, b)
print &quot;Solution = &quot;, x

#sol = linalg.solve(a, b)
#print &quot;linalg Solution = &quot;, sol

y = residue(a, b, x)
print &quot;Residue = &quot;, y

u = gauss(a, y)
print &quot;Residue destribution = &quot;, u

z = gauss(a, b+y)
print &quot;New Solution (with added residue) = &quot;, z

y2 = residue(a, b+y, z)
print &quot;Residule of new solution = &quot;, y2

if linalg.norm(y2) &lt; linalg.norm(y):
    print &quot;New solution has a smaller residue.&quot;
else:
    print &quot;Original solution has a smaller residue.&quot;
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/396/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/396/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/396/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=396&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/04/04/mnum-gauss/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Web Services for Free</title>
		<link>http://luisrei.com/2008/03/31/google-web-services-for-free/</link>
		<comments>http://luisrei.com/2008/03/31/google-web-services-for-free/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 17:04:13 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[Internet]]></category>

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

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

		<guid isPermaLink="false">http://lrei.wordpress.com/?p=395</guid>
		<description><![CDATA[Dave Winer recently broke the news that Google will soon introduce a &#8220;Google Web Services&#8221;,  a competitor to Amazon Web Services. This isn&#8217;t much of a shock to anyone. The extra bit that is somewhat of a surprise  is the price: free. He then explains that the reason it will be free is that they [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.scripting.com">Dave Winer</a> recently broke the news that Google <a href="http://www.scripting.com/stories/2008/03/29/pigs.html">will soon introduce a &#8220;Google Web Services&#8221;</a>,  a competitor to <a href="http://www.amazon.com/gp/browse.html?node=3435361">Amazon Web Services</a>. This isn&#8217;t much of a shock to anyone. The extra bit that is somewhat of a surprise  is the price: free. He then <a href="http://www.scripting.com/stories/2008/03/30/whyWouldGoogleWebServicesC.html">explains</a> that the reason it will be free is that they can pay for it in the reduced cost of integrating new acquisitions into their infrastructures which would become, effectively zero.</p>
<p>I don&#8217;t agree with that. At least I don&#8217;t think that is the main reason. I think it&#8217;s just <b>the same old business model - basic service is free, premium is paid</b>. The same model you see in <a href="http://www.google.com/a/help/intl/en/index.html">Google Apps</a> and a lot of other business on the web.</p>
<p>The basic service will be limited, in terms of traffic and/or storage (file and DB) etc. This will be the most widely used by startups. The premium service will just be the same pricing model amazon - pay as you go, the only different is that you don&#8217;t start paying at zero usage but rather at a higher threshold. <b>When a startup becomes successful its needs will grow exponentially. They will be using more than the maximum allowed for free, and they&#8217;ll need to pay.</b> But that&#8217;s alright because now that they are successful they can afford it. And <b>the 1% or so that will be successful will have subsidized everyone that didn&#8217;t make it and still give Google a nice profit.</b> Let&#8217;s not forget that Google&#8217;s infrastructure is already here and even tens of thousands of failed ventures won&#8217;t make a dent in it. Successful ventures will generate enough cash to upgrade that same infrastructure. Specially as the cost of hardware continues to drop.</p>
<p>Off course I&#8217;m sure people at Google also thought of the acquisition factor. Past acquisitions have taken a lot of time to be integrated. I think it took something like a year for <a href="http://en.wikipedia.org/wiki/Writely#History">writely</a> to become &#8220;<a href="http://docs.google.com">Google Docs</a>&#8220;. That&#8217;s a very long time on the web.</p>
<p>Combine the free GWS with the powerful web development frameworks like <a href="http://www.rubyonrails.org/">Ruby on Rails</a> that allow single individuals to create useful applications quickly and the new marketting oppurtunities that the web2.0 has created and <b>the cost of trying won&#8217;t be measured in millions, thousands or even hundreds of dollars. It will be measured in terms of hours</b> - the hours you &#8220;wasted&#8221; trying. And that, in many cases, won&#8217;t even be &#8220;time wasted&#8221; but rather &#8220;experience gained&#8221;.</p>
<p>It&#8217;s a brave new world indeed.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/395/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/395/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/395/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/395/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/395/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=395&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/03/31/google-web-services-for-free/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>
	</item>
		<item>
		<title>JabberLogBot</title>
		<link>http://luisrei.com/2008/03/31/jabberlogbot/</link>
		<comments>http://luisrei.com/2008/03/31/jabberlogbot/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 02:15:25 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://lrei.wordpress.com/?p=393</guid>
		<description><![CDATA[JabberLogBot is a jabber bot that records messages sent to it in a database.
The idea came from Nuno Dantas who wanted a jabber bot to record quick notes. He talked about it at a Prt.Sc dinner last Wennesday.
There&#8217;s also a simple PHP file in there that displays the data. That file is currently just for [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://code.google.com/p/jabberlogbot/">JabberLogBot</a> is a jabber bot that records messages sent to it in a database.</p>
<p>The idea came from <a href="http://nunodantas.com/blog/">Nuno Dantas</a> who wanted a jabber bot to record quick notes. He talked about it at a <a href="http://www.prt.sc/">Prt.Sc</a> dinner last Wennesday.</p>
<p>There&#8217;s also a simple PHP file in there that displays the data. That file is currently just for show as it is rather &#8220;plain&#8221;.</p>
<p><a href="http://lrei.files.wordpress.com/2008/03/picture-1.png" title="JLB Web Interface"><img src="http://lrei.files.wordpress.com/2008/03/picture-1.thumbnail.png" alt="JLB Web Interface" /></a></p>
<p>UPDATED: added a screenshot of the web viewer.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/393/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/393/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/393/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=393&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/03/31/jabberlogbot/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>

		<media:content url="http://lrei.files.wordpress.com/2008/03/picture-1.thumbnail.png" medium="image">
			<media:title type="html">JLB Web Interface</media:title>
		</media:content>
	</item>
		<item>
		<title>iPhone SDK now includes Interface Builder</title>
		<link>http://luisrei.com/2008/03/28/iphone-sdk-now-includes-interface-builder/</link>
		<comments>http://luisrei.com/2008/03/28/iphone-sdk-now-includes-interface-builder/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 10:50:08 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[Hardware]]></category>

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

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

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

		<guid isPermaLink="false">http://lrei.wordpress.com/?p=389</guid>
		<description><![CDATA[ The second beta version of the iPhone SDK is now available and includes Interface Builder, a powerful tool that allows you to visually build your interface and makes creating a UI as simple as drag and drop.
Screenshots:
 
Download at iPhone Dev Center 
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img src="http://lrei.files.wordpress.com/2008/03/icon_interfacebuilder.jpg" alt="icon_interfacebuilder.jpg" /><i> The second beta version of the iPhone SDK is now available and includes Interface Builder, a powerful tool that allows you to visually build your interface and makes creating a UI as simple as drag and drop.</i></p>
<p>Screenshots:</p>
<p><a href="http://lrei.files.wordpress.com/2008/03/picture-2.png" title="ib_cocoa_touch.png"><img src="http://lrei.files.wordpress.com/2008/03/picture-2.thumbnail.png" alt="ib_cocoa_touch.png" /></a> <a href="http://lrei.files.wordpress.com/2008/03/picture-3.png" title="ib_iphone"><img src="http://lrei.files.wordpress.com/2008/03/picture-3.thumbnail.png" alt="ib_iphone" /></a><br />
Download at <a href="http://developer.apple.com/iphone/">iPhone Dev Center </a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/389/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/389/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/389/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/389/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/389/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=389&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/03/28/iphone-sdk-now-includes-interface-builder/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>

		<media:content url="http://lrei.files.wordpress.com/2008/03/icon_interfacebuilder.jpg" medium="image">
			<media:title type="html">icon_interfacebuilder.jpg</media:title>
		</media:content>

		<media:content url="http://lrei.files.wordpress.com/2008/03/picture-2.thumbnail.png" medium="image">
			<media:title type="html">ib_cocoa_touch.png</media:title>
		</media:content>

		<media:content url="http://lrei.files.wordpress.com/2008/03/picture-3.thumbnail.png" medium="image">
			<media:title type="html">ib_iphone</media:title>
		</media:content>
	</item>
		<item>
		<title>iHuman iForgot</title>
		<link>http://luisrei.com/2008/03/28/ihuman-iforgot/</link>
		<comments>http://luisrei.com/2008/03/28/ihuman-iforgot/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 10:37:19 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[Entertainment]]></category>

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

		<guid isPermaLink="false">http://luisrei.com/?p=386</guid>
		<description><![CDATA[
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://lrei.files.wordpress.com/2008/03/iforgot.png" title="iForgot"><img src="http://lrei.files.wordpress.com/2008/03/iforgot.png?w=303&h=161" alt="iForgot" height="161" width="303" /></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/386/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/386/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/386/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=386&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/03/28/ihuman-iforgot/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>

		<media:content url="http://lrei.files.wordpress.com/2008/03/iforgot.png" medium="image">
			<media:title type="html">iForgot</media:title>
		</media:content>
	</item>
		<item>
		<title>Evernote Invites</title>
		<link>http://luisrei.com/2008/03/27/evernote-invites/</link>
		<comments>http://luisrei.com/2008/03/27/evernote-invites/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 22:46:45 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[Software]]></category>

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

		<guid isPermaLink="false">http://lrei.wordpress.com/?p=383</guid>
		<description><![CDATA[
I have 6 evernote (previously mentioned here) invites up for grabs. If you&#8217;re interested, drop a comment with your email.
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://lrei.files.wordpress.com/2008/03/enlogo-beta.gif" title="enlogo-beta.gif"><img src="http://lrei.files.wordpress.com/2008/03/enlogo-beta.gif" alt="enlogo-beta.gif" /></a></p>
<p>I have 6 <a href="http://preview.evernote.com">evernote</a> (previously<a href="http://luisrei.com/2008/03/24/out-of-wordpresscom-and-into-evernotecom/"> mentioned here</a>) invites up for grabs. If you&#8217;re interested, drop a comment with your email.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/383/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/383/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/383/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=383&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/03/27/evernote-invites/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>

		<media:content url="http://lrei.files.wordpress.com/2008/03/enlogo-beta.gif" medium="image">
			<media:title type="html">enlogo-beta.gif</media:title>
		</media:content>
	</item>
		<item>
		<title>Kickboxing Cup - K1 Rules - Coliseu do Porto</title>
		<link>http://luisrei.com/2008/03/27/kickboxing-cup-k1-rules-coliseu-do-porto/</link>
		<comments>http://luisrei.com/2008/03/27/kickboxing-cup-k1-rules-coliseu-do-porto/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 18:45:14 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[Entertainment]]></category>

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

		<guid isPermaLink="false">http://lrei.wordpress.com/?p=381</guid>
		<description><![CDATA[ 
21h00, Saturday, March 29
Duration: 2h30min
Prices:
Plateia  - 30,00€
Tribuna - 25,00€
Camarotes 1a - 25,00€
Frisas  - 22,50€
Galeria/Geral  - 15,0
More Info @ Coliseu do Porto
www.kickboxingcup.com.pt
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p> <a href="http://lrei.files.wordpress.com/2008/03/1410_115.jpg" title="Kickboxing Cup - K1 Rules"><img src="http://lrei.files.wordpress.com/2008/03/1410_115.jpg" alt="Kickboxing Cup - K1 Rules" /></a></p>
<p>21h00, Saturday, March 29</p>
<p>Duration: 2h30min<br />
Prices:<br />
Plateia  - 30,00€<br />
Tribuna - 25,00€<br />
Camarotes 1a - 25,00€<br />
Frisas  - 22,50€<br />
Galeria/Geral  - 15,0</p>
<p><a href="http://www.coliseudoporto.pt/net/desenvEvento.aspx?c=481&amp;a=1410">More Info</a> @ Coliseu do Porto<br />
<a href="http://www.kickboxingcup.com.pt">www.kickboxingcup.com.pt</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/381/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/381/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/381/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/381/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/381/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=381&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/03/27/kickboxing-cup-k1-rules-coliseu-do-porto/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>

		<media:content url="http://lrei.files.wordpress.com/2008/03/1410_115.jpg" medium="image">
			<media:title type="html">Kickboxing Cup - K1 Rules</media:title>
		</media:content>
	</item>
		<item>
		<title>Numerical Methods and Python</title>
		<link>http://luisrei.com/2008/03/27/numerical-methods-and-python/</link>
		<comments>http://luisrei.com/2008/03/27/numerical-methods-and-python/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 01:32:03 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[FEUP]]></category>

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

		<guid isPermaLink="false">http://luisrei.com/?p=379</guid>
		<description><![CDATA[I finally decided to take the Numerical Methods (MNUM) course. It turns out it&#8217;s a lot more fun than I thought. There is programming involved but you can chose to use whatever language you want. This is yet another nice excuse for me to use Python instead of C++ or Java. Last semester I was [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I finally decided to take the Numerical Methods (MNUM) course. It turns out it&#8217;s a lot more fun than I thought. There is programming involved but you can chose to use whatever language you want. This is yet another nice excuse for me to use Python instead of C++ or Java. Last semester I was able to use Python to implement the game logic for Software Application Laboratory (LAS), which is mostly an OpenGL course with IPC via sockets thrown into the mix, and to write <a href="http://luisrei.com/2008/02/20/a-look-at-dynamic-languages/">an article on dynamic languages</a> (focusing mostly on Python) for Software Engineering (ESOF).</p>
<p>But back to this semester, 3 classes into the semester and the teacher is already said something like &#8220;I&#8217;m going to learn python now. I didn&#8217;t believe when I heard someone saying it was the best language in the world, but now I see there might be some truth to that claim&#8221;. That and I suspect his next laptop might be a macbook but that&#8217;s another story.</p>
<p>There are a few things that make Python great for Numerical Methods. In my opinion, Python&#8217;s clear, easy to understand, syntax is the most important one.It makes algorithms easier to implement. The syntax ends up being very close to language neutral pseudocode available in numerical methods books. Also Python&#8217;s datatypes as well as those provided by other libraries can be very useful.</p>
<p>The following code implements the stuff in chapter 2 (determining zeros) of the course. The methods implemented are Bisection, Rope and Newton. The function returns both the solution and the number of iterations necessary to get to that solution.</p>
<p>UPDATE: forgot the book -<b><span> <a href="http://www.amazon.com/Numerical-Methods-Engineering-Python-Kiusalaas/dp/0521852870">Numerical Methods in Engineering with Python</a></span></b></p>
<p>Appendix A - mnum2.py</p>
<pre name="code" class="python">

from math import log

def bisect(f, a, b, e):
	&quot;&quot;&quot; Determines zero between a and b using Bisection. &quot;&quot;&quot;
	n = 0
	fa = f(a)
	if fa == 0.0: return (a, n)
	fb = f(b)
	if fb == 0.0: return (b, n)

	while (abs(a-b) &gt; e):
		c = 0.5*(a+b)
		fc = f(c)

		if fc == 0.0: return (c, n)
		n = n + 1
		if fb*fc &lt; 0.0:
			a = c
			fa = fc

		else:
			b = c
			fb = fc

	if fa &lt; fb:
		return (a, n)
	else:
		return (b, n)

def rope(f, a, b, e):
	&quot;&quot;&quot; Determines zero between a and b using the Rope methode. &quot;&quot;&quot;
	n = 0
	fa = f(a)
	if fa == 0.0: return (a, n)
	fb = f(b)
	if fb == 0.0: return (b, n)

	while (abs(a-b) &gt; e):
		c = (a*fb - b*fa) / (fb - fa)
		fc = f(c)
		if fc == 0.0: return (c, n)
		n = n + 1
		if fb*fc &lt; 0:
			a = c
			fa = fc

		else:
			b = c
			fb = fc

	if fa &lt; fb:
		return (a, n)
	else:
		return (b, n)

# Note: must verify that for the function f and guess c
#		the method will _converge_.
def newton(f, df, c, t):
	&quot;&quot;&quot; Determines zero between a and b using Newton &quot;&quot;&quot;
	n = 0
	fc = f(c)
	if fc == 0.0: return (c, n)

	while (True):
		fc = f(c)
		dfc = df(c)
		if dfc == 0:
			print &quot;dfc is 0&quot;
			return (0, -1)

		dc = -fc/dfc

		c = c + dc
		n = n + 1
		if abs(dc) &lt; t: return (c, n)

##Tests
#def f(x): return -log(x)+4.0
#def df(x): return -1.0/x
#x= bisect(f, 1, 70, 0.00000001)
#print x
#x = rope(f, 1, 70, 0.00000001)
#print x
#x = newton(f, df, 0.1, 0.0001)
#print x
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/379/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/379/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/379/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=379&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/03/27/numerical-methods-and-python/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>
	</item>
		<item>
		<title>Mathemagic featuring Arthur Benjamin</title>
		<link>http://luisrei.com/2008/03/26/mathemagic-featuring-arthur-benjamin/</link>
		<comments>http://luisrei.com/2008/03/26/mathemagic-featuring-arthur-benjamin/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 09:23:27 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[Entertainment]]></category>

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

		<guid isPermaLink="false">http://lrei.wordpress.com/?p=378</guid>
		<description><![CDATA[TED: Arthur Benjamin: Lightning calculation and other &#8220;Mathemagic&#8221;
Also see Youtube Mathemagic.
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.ted.com/talks/view/id/199">TED: Arthur Benjamin: Lightning calculation and other &#8220;Mathemagic&#8221;</a></p>
<p>Also see <a href="http://www.youtube.com/results?search_type=search_videos&amp;search_query=Mathemagic&amp;search_sort=relevance&amp;search_category=0&amp;page=">Youtube Mathemagic</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/378/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/378/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/378/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=378&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/03/26/mathemagic-featuring-arthur-benjamin/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>
	</item>
		<item>
		<title>Min and Max - An explanation</title>
		<link>http://luisrei.com/2008/03/26/min-and-max-an-explanation/</link>
		<comments>http://luisrei.com/2008/03/26/min-and-max-an-explanation/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 09:05:31 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://lrei.wordpress.com/?p=377</guid>
		<description><![CDATA[Ok, from the comments on the previous post it seems people are NOT &#8220;getting it&#8221;. This is NOT a &#8220;problem&#8221;, this is funny.
So I guess people don&#8217;t know what the functions min() and max() do or are just confusing them
max([...]) - this function usually takes a list of numbers and returns the highest number in [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Ok, from <a href="http://luisrei.com/2008/03/25/feup-maximizing-student-grades-for-a-change/">the comments on the previous post</a> it seems people are NOT &#8220;getting it&#8221;. This is NOT a &#8220;problem&#8221;, this is funny.</p>
<p>So I guess people don&#8217;t know what the functions min() and max() do or are just confusing them</p>
<p><b>max([...]) </b>- this function usually takes a list of numbers and returns the <b>highest</b> number in the list.</p>
<p>e.g.</p>
<p>if x belongs to [0,20] then y = <b>max</b>(x, 1 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> =&gt; y belongs to [18-20]</p>
<p>max(20,1 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> = 20<br />
max(19, 1 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> = 19<br />
max(10, 1 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> = 18</p>
<p><b>min([...]) </b>- this function usually takes a list of numbers and returns the <b>lowest</b> number in the list.</p>
<p>e.g.</p>
<p>if x belongs to [0,20] then y = <b>min</b>(x, 1 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> =&gt; y belongs to [0-18]</p>
<p>min(20,1 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> = 18       [&lt;- fixed thanks <a href="http://www.mindboosternoori.blogspot.com/">Mind Booster Noori</a>]<br />
min(19, 1 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> = 18<br />
min(10, 1 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> = 10</p>
<p>This means that according to the function the function displayed <a href="http://luisrei.com/2008/03/25/feup-maximizing-student-grades-for-a-change/">in my previous post</a>, according to that function, ALL students grades will be between 18 and 20. That means if you have a freaking 0 in the exam and a 0 in the Assignment you&#8217;ll get an 18/20 (which is an excellent grade). i.e. THE MINIMUM grade is 18. It&#8217;s a simple mistake in the equation. What the page should say to be correct is</p>
<p>Nota Final = <b>min</b>(Nota do exame final+Nota do trabalho, 18)&lt;- this would be the correct equation</p>
<p>And hell this was posted under &#8220;Entertainment&#8221;.</p>
<p>So the previous post wasn&#8217;t supposed to be about something &#8220;unfair&#8221; it was supposed to be about making fun of a simple mistake that under the circumstances really is funny.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/377/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/377/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/377/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=377&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/03/26/min-and-max-an-explanation/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>
	</item>
		<item>
		<title>FEUP Maximizing Student Grades For A Change</title>
		<link>http://luisrei.com/2008/03/25/feup-maximizing-student-grades-for-a-change/</link>
		<comments>http://luisrei.com/2008/03/25/feup-maximizing-student-grades-for-a-change/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 23:11:43 +0000</pubDate>
		<dc:creator>lrei</dc:creator>
		
		<category><![CDATA[Entertainment]]></category>

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

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

		<guid isPermaLink="false">http://lrei.wordpress.com/?p=374</guid>
		<description><![CDATA[Or not. Someone got min() and max() confused:

Nota Final = max(Nota do exame final+Nota do trabalho, 1  
translation: Final Grade = max(Exam Grade + Assignment Grade, 1 
[Note: it&#8217;s 18/20 - 20 is the maximum grade possible)
Than again, maybe it&#8217;s not  a mistake. Perhaps the teacher really enjoys giving high grades in the 18-20 [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Or not. Someone got min() and max() confused:</p>
<p><a href="http://lrei.files.wordpress.com/2008/03/feup-maxmin2.jpg" title="Maxing Student Grades"><img src="http://lrei.files.wordpress.com/2008/03/feup-maxmin2.jpg?w=415&h=287" alt="Maxing Student Grades" height="287" width="415" /></a></p>
<p>Nota Final = max(Nota do exame final+Nota do trabalho, 1 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> </p>
<p>translation: Final Grade = max(Exam Grade + Assignment Grade, 1 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /><br />
[Note: it&#8217;s 18/20 - 20 is the maximum grade possible)</p>
<p>Than again, maybe it&#8217;s not  a mistake. Perhaps the teacher really enjoys giving high grades in the 18-20 range. Now wouldn&#8217;t that be different&#8230;</p>
<p><a href="https://www.fe.up.pt/si/disciplinas_geral.FormView?P_CAD_CODIGO=EEC0101&amp;p_ano_lectivo=2007/2008&amp;p_periodo=1S"> Link to the page </a></p>
<p>UPDATE: Read <a href="http://luisrei.com/2008/03/26/min-and-max-an-explanation/">my next post for an explanation</a> of why this is funny.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lrei.wordpress.com/374/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lrei.wordpress.com/374/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lrei.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lrei.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lrei.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lrei.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lrei.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lrei.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lrei.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lrei.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lrei.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lrei.wordpress.com/374/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=luisrei.com&blog=1216345&post=374&subd=lrei&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://luisrei.com/2008/03/25/feup-maximizing-student-grades-for-a-change/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/lrei-128.jpg" medium="image">
			<media:title type="html">lrei</media:title>
		</media:content>

		<media:content url="http://lrei.files.wordpress.com/2008/03/feup-maxmin2.jpg" medium="image">
			<media:title type="html">Maxing Student Grades</media:title>
		</media:content>
	</item>
	</channel>
</rss>