<?xml version="1.0" encoding="utf-8"?>
<!-- generator="wordpress/2.2.2" -->
<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/"
	>

<channel>
	<title>cat /proc/claus</title>
	<link>http://claus.castelodelego.org</link>
	<description>Claus' little corner on the net</description>
	<pubDate>Sun, 11 Jul 2010 18:19:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>
	<language>en</language>
			<item>
		<title>Pretty Epic RPG Session</title>
		<link>http://claus.castelodelego.org/archives/549</link>
		<comments>http://claus.castelodelego.org/archives/549#comments</comments>
		<pubDate>Sun, 11 Jul 2010 18:19:37 +0000</pubDate>
		<dc:creator>Claus</dc:creator>
		
		<category><![CDATA[4E]]></category>

		<category><![CDATA[Fun &amp; Games]]></category>

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

		<guid isPermaLink="false">http://claus.castelodelego.org/archives/549</guid>
		<description><![CDATA[This past Friday I ran an all nighter Role Playing Game session with my friends, and it was fun enough to deserve a game report here. We are playing Dungeons and Dragons 4th edition - previously we had played a game campaign that lasted for almost 2 years, but since half the players of that [...]]]></description>
			<content:encoded><![CDATA[<p>This past Friday I ran an all nighter Role Playing Game session with my friends, and it was fun enough to deserve a game report here. We are playing Dungeons and Dragons 4th edition - previously we had played a game campaign that lasted for almost 2 years, but since half the players of that group has left Japan, we decided to start a new game campaign.</p>
<p>As I&#8217;m leaving from Japan pretty soon as well, and I&#8217;m a bit burned by 4E, I&#8217;ve decided to create a short campaign, focused on a single scenario, using advanced characters for the players. Basically the campaign centers around the player&#8217;s mission to save Platonia, a city ran by a council of wizards in the mystical &#8220;Astral Plane&#8221; - the place which separate different realities and dimensions.</p>
<p>In the first two game sessions, the players had found out that a former mage of the city council (&#8221;O Leitor&#8221;) wanted revenge from his expulsion, and was assembling a large army to lay waste to Platonia. They saved a desertor from the army, which gave them information about their invasion plans. They ordered some defense preparations for the city, and decided to apply a decapitation strike by going against the leader of the army. On the way they were ambushed by assassins from the Leitor, and while they managed to survive the ambush, the last game ended with the group hurtling down the endless mists of the Astral Plane on a broken ship.</p>
<p>For this Friday&#8217;s game, I had spent the week preparing a strange &#8220;planet&#8221; the group would crash on and explore, which would turn out to be a living entity that they could try to recruit to the city&#8217;s defense. However, as players characters usually wont, once my group crashed into the mysterious cavern with he sinking ground, the strong psionic presence, and the tunnel emanating evil, they promptly decided to get the hell out of there in some flimsy magic items they had on themselves. Always count on players smashing your carefully laid plans.</p>
<p>So the group decided that they would head back to the place where they were ambushed, and from there continue on their initial mission. On the way, they found out about another assassin that was sent to make sure they had died in the ship crash. It was a Githyanki (a kind of astral humanoid) on a dragon, with a scort of two &#8220;Brains in a Jars&#8221; - magical constructs.</p>
<p>When the group detected the assassins, they started to flee in another direction, and the Githyanki with the dragon followed them, breaking away from the Brains, which were much slower. From past experience, the group knew that fighting in their magic flying items would result in their items being destroyed pretty quickly, so they decided to look for somewhere to land and fight. When they found such a place (a small crystal formation floating in space), the Githyanki knight decided to keep at a distance from them until the Brains caught up. </p>
<p>At this time, the players for some reason decided to forget their previous experience, and charged at the knight with their magical mounts - what followed was an exiting air combat, where the Minotaur paladin charged at the Githyanki knight and jumped on the dragon &#8212; just to have the dragon teleport away from his feet towards the fragile Eladrin crossbowwoman in the ground! Not to be undone, the minotaur grabbed the mount of his nearby elven friend, and free falled into the knight and the Dragon again, pushing the knight out of his mount &#8212; but the knight managed to use his magics to return to his dragon. </p>
<p>The Brains finally managed to reach the fighting area, and started to move towards the group - at that time, everyone tried to crowd the knight and his dragon, trying to put him down before reinforcements arrived. That mostly worked, excepted that it triggered a counter attack from the dragon, who belched fire and destroyed the flying mounts of everyone - who fell hard into the crystal structure. All but the Paladin Minotaur, who was still clinging to the Dragon. Seeing the entire group go to the ground, the minotaur decided to grab onto the knight and JUMP, trusting that the fall would hurt him less than it hurt the Githyanki, and that is what just happened.</p>
<p>Separated from his mount, the knight was not so powerful, and the Eladrin crosbowwoman put him out of his misery quickly. However now the group was without any means of flight, and being attacked by three flying enemies, who were quite content to pelt the players from a height. The brains had this nasty ability to try and turn the players against each other using psychic powers, but the group managed to resist that, and protect the Eladrin while she pelted them with more crossbow bolts. At one time, one of the brains got a bit too close and the Elven avenger (a kind of holy warrior), used his short range teleportation power to deal a crippling blow to that brain. Eventually the group dispatched their enemies and decided that stayin on the crystal island would be too dangerous, so they returned to the place where they were first ambushed, and tried to find some cover there to spend the night and recuperate.</p>
<p>The next day, the group decided to resume their mission to find and kill the Leitor, in order to make his army &#8220;headless&#8221;. They travelled into a region of the astral which looked like a giant, abandoned stone city. In the middle of the city they saw the large Githyanki ship approaching, and decided that the Leitor should be there, so they would spring an ambush of their own. They hid in one of the buildings, and as the ship approached, so did the large army fielded by the Leitor, composed of hundred of those mechanical brains and worse beasties; a second, smaller githyanki ship, two large dragons, and a committee of ogre-magi mounted on wyverns.</p>
<p>The group changed their plans, and decided to try and hijack the small ship and ram it against the big one - it was a brave, but completely insane plan (never mind the fact that they never confirmed if their target was REALLY in any of those ships). They waited until the small ship was just over them, and rushed into it, managing to land before the enemy had time to react. </p>
<p>But then all the hell broke loose. They fought against the small group of githyanki defending their ship, and while they weren&#8217;t able to defeat the players, they bought enough time that by the time the group took total control of the ship, the Dragons, Wyverns and some of the flying brains were already in combat range. The large ship had taken some distance and started firing fireballs at the smaller one. In the end the group decided to go with a retreat on the smaller, nimbler ship and, with a lot of luck and bravery, managed to flee from the army on the flaming ship, two large dragons hot on their tails&#8230; Nothing like a session which ends on a similar tone as it had began! </p>
<p>=====================</p>
<p>This was an interesting game, and not because it went in the complete opposite direction where I had planned to go. The two fights we had &#8212; the aerial fight over the crystal island and the pursuit on the airship against dragons and wyvern-mounting ogres, largely satisfied my quest for the &#8220;bizarre&#8221;, which was one of the two things that I was aiming at in this mini-campaign. To try and use 4E in what it is supposedly best: to create flashy and over powered combat scenes in super-fantastical scenarios.</p>
<p>The combats were pretty epic, with the Minotaur Palading doing his aerial charges, the Warlord keeping the group healed through waves and waves of area blasts, the Avenger and the Rogue dealing the brunt of the damage to the opponents, and while the Dwarf Battlemind didn&#8217;t fulfill any particular memorable scene during combat, since he was the only psionic character in a mostly psionic based session, he dominated the non-combat skills and challenges, and thus everyone had their role during the game.</p>
<p>The second combat - charge against the army, is one of those WTF moments where as a GM you can&#8217;t really understand what is going through your player&#8217;s collective heads. Even after I described in details just how many people there were in that army, the dragons, the super ship and the dozens of Brains that had put the players into so much trouble recently, they just seemed even more intent into trying it. At least I think I managed to convince them into trying a &#8220;stealth&#8221; approach instead of a simple head on attack.</p>
<p>I had all the intent of creating a TPK in this scene, limiting my self only by what I had listed beforehand as the available forces, but throwing all of them at the same time with no regards to encounter balance - the fact that they still managed to survive all that denounces the fact of how 4e characters are pretty much unkillable - and that I needed to sort out ship combat rules beforehand.</p>
<p>Now next session is the big showdown - the army will come to the doors of the city, and the players will see what their incursions and (few) preparations paid for. That is, if they don&#8217;t come up with some new weird idea <img src='http://claus.castelodelego.org/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> After that I&#8217;m probably shelving 4E for good - preparing games for this system is just not that fun anymore - I can barely start to wade through the magic items, and while imagining situations for set piece encounters is nice, the actuall act of going through dozen of monsters to pick the right ones with the right combination of powers/etc is kinda off-puting. Added to the fact that the best scenes of this game - the jumping through the air and the airship &#8220;mental fight&#8221; between the battlemind and the enemy crew members - were stuff not covered by 4E rules, I&#8217;m pretty confident that it is time to finish that megadungeon I started writing and put it to good gaming.</p>
]]></content:encoded>
			<wfw:commentRss>http://claus.castelodelego.org/archives/549/feed</wfw:commentRss>
		</item>
		<item>
		<title>Why &#8220;Intellectual Property&#8221; sucks - a recent case</title>
		<link>http://claus.castelodelego.org/archives/548</link>
		<comments>http://claus.castelodelego.org/archives/548#comments</comments>
		<pubDate>Fri, 09 Jul 2010 07:57:49 +0000</pubDate>
		<dc:creator>Claus</dc:creator>
		
		<category><![CDATA[People are dumb]]></category>

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

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

		<guid isPermaLink="false">http://claus.castelodelego.org/archives/548</guid>
		<description><![CDATA[Cory Doctorow from BoingBoing has recently discussed the case of Landmark Digital Services (Creators of &#8220;Shazam&#8221;, an audio fingerprinting tool) threatening a guy who was discussing how to implement an audio-fingerprinting algorithm. To make a long story short, Landmark Digital Services (&#8221;Shazam&#8221;), accused Roy van Rjin of infringing on their patents by discussing how audio-fingerprinting [...]]]></description>
			<content:encoded><![CDATA[<p>Cory Doctorow from BoingBoing has <a href="http://www.boingboing.net/2010/07/08/patent-holders-legal.html">recently discussed</a> the case of Landmark Digital Services (Creators of &#8220;Shazam&#8221;, an audio fingerprinting tool) threatening a guy who was discussing <a href="http://sites.google.com/site/redcodenl/creating-shazam-in-java-1">how to implement an audio-fingerprinting algorithm</a>. To make a long story short, Landmark Digital Services (&#8221;Shazam&#8221;), accused Roy van Rjin of infringing on their patents by discussing how audio-fingerprinting worked, and is trying to force him to put his blog post down. Go read the above links for more detail.</p>
<p>This is not only a jerk move from the part of Shazam, but it is also a very sad example of how companies use the murky idea of &#8220;IP&#8221; (Intellectual Property) to try and enforce rights that they DO NOT HAVE.</p>
<p>Recently &#8220;Intellectual Property&#8221; has been used to put together three very different kinds of laws, whose only thing in common is that they deal with ideas: Copyright Law, Patent Law and Trademark Law. Put very simply, Copyright law describes who has the right to <strong>copy a creative work</strong>; Patent law describes who has the right to <strong>implement and use a certain technical idea</strong>; and Trademark Law describes who has the right to use a<strong> Brand on a certain service or product</strong>.</p>
<p>Now, these laws give very different rights and duties, for very different situations. For example, patent law, which is described here, says that if you have a technical idea (like, how to make a machine), you can give the government a very detailed description of how your idea works, and the government will give you a monopoly of the use of your idea <strong>in exchange of</strong> explaining to everyone how your idea works. It makes sense, if the working of your patent is not public, how will someone know if they are infringing it or not?</p>
<p>Copyright is almost the opposite - you register your copyright work with the government, and you get a monopoly on copying/distributing your work, in exchange of letting everyone copy/distribute your work for free after a certain time has passed. (And big media companies are trying to cheat us and extend this time indefinitely, but that is another discussion).</p>
<p>Now, what happened in the case of Landmark Digital Services/Shazam is that they are trying to enforce &#8220;copyright&#8221; rights into their patents. &#8220;We have a patent on this idea, so you can&#8217;t discuss this idea, or show this idea to anyone!&#8221;. If they were alleging that copyright rights were infringed, they would have a case, but <strong>the whole point of patents is that everyone is supposed to know, discuss and understand how the given patent work</strong>. You can only infringe a patent if you are actually using the patented idea, not talking about it.</p>
<p>This is what happen when we put together all these laws under the same term. We start to think of them as the same. And unethical people will try to rob us of our rights by using this confusion.</p>
<p>* Some more discussion about why &#8220;Intellectual Property&#8221; should not be used can be seen <a href="http://www.gnu.org/philosophy/not-ipr.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://claus.castelodelego.org/archives/548/feed</wfw:commentRss>
		</item>
		<item>
		<title>Why you always need to go for the source</title>
		<link>http://claus.castelodelego.org/archives/546</link>
		<comments>http://claus.castelodelego.org/archives/546#comments</comments>
		<pubDate>Fri, 18 Jun 2010 07:52:40 +0000</pubDate>
		<dc:creator>Claus</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://claus.castelodelego.org/archives/546</guid>
		<description><![CDATA[Today I saw a very interesting story on Slashdot: &#8220;Study shows monkeys enjoy watching TV&#8221;. According to the article, some Japanese scientists measured the activity of a monkey&#8217;s brain, and the brainwaves in the &#8220;emotional&#8221; are of the brain lighted up when the monkey was watching movies of circus animals.
Cool, huh? Monkeys also like to [...]]]></description>
			<content:encoded><![CDATA[<p>Today I saw a very interesting story on Slashdot: <a href="http://science.slashdot.org/story/10/06/17/1517219/Study-Shows-Monkeys-Like-Watching-TV?art_pos=18">&#8220;Study shows monkeys enjoy watching TV&#8221;</a>. According to the article, some Japanese scientists measured the activity of a monkey&#8217;s brain, and the brainwaves in the &#8220;emotional&#8221; are of the brain lighted up when the monkey was watching movies of circus animals.</p>
<p>Cool, huh? Monkeys also like to watch other monkeys and stuff on TV.</p>
<p>Well, too bad that the study doesn&#8217;t actually say anything like that. I decided to hunt the article to read more details about the methodology used. The news articled linked from Slashdot mentions the Journal name, but not the authors name, or the name of the article! But I managed to <a href="http://frontiersin.org/neuroscience/behavioralneuroscience/paper/10.3389/fnbeh.2010.00031/">find it on the Journal&#8217;s webpage</a>, and since it was Open Access, I managed to even take a look at it myself :-). (By the way, I found it funny that the name of the reviewers were also listed in the article, is this common in the biosciences?)</p>
<p>Well, the article, while probably interesting to neuroscientists, doesn&#8217;t actually say anything about whether monkeys like TV or not. It seems that its main focus is to test a new instrument to measure brainwaves, and it lists the results obtained when using the device on a monkey tied to a chair in a dark room, being showed a video from time to time. The article itself says that the results exclude any period where the monkey was not looking at the video (apparently, it was 60% of the trials). If anything, what I can conclude from reading the article is that a monkey tied to a chair in a dark room is 60% more likely NOT to watch a video of animals being showed to him.</p>
<p>So much for Animal Planet <img src='http://claus.castelodelego.org/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://claus.castelodelego.org/archives/546/feed</wfw:commentRss>
		</item>
		<item>
		<title>Happy Draw Muhammad Day!</title>
		<link>http://claus.castelodelego.org/archives/544</link>
		<comments>http://claus.castelodelego.org/archives/544#comments</comments>
		<pubDate>Thu, 20 May 2010 16:59:39 +0000</pubDate>
		<dc:creator>Claus</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://claus.castelodelego.org/archives/544</guid>
		<description><![CDATA[I thought I would join as well  Love drawing cute doodles.

This is Muhammad, in the desert. I gave him a flying carpet, because I thought it was appropriate! At least he is not a zombie!
Show me yours doodle!
]]></description>
			<content:encoded><![CDATA[<p>I thought I would join as well <img src='http://claus.castelodelego.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> Love drawing cute doodles.</p>
<p><img src="muhammad.png" alt="Muhammad!" /></p>
<p>This is Muhammad, in the desert. I gave him a flying carpet, because I thought it was appropriate! At least he is not a zombie!</p>
<p>Show me yours doodle!</p>
]]></content:encoded>
			<wfw:commentRss>http://claus.castelodelego.org/archives/544/feed</wfw:commentRss>
		</item>
		<item>
		<title>Off to A2!</title>
		<link>http://claus.castelodelego.org/archives/543</link>
		<comments>http://claus.castelodelego.org/archives/543#comments</comments>
		<pubDate>Tue, 18 May 2010 08:15:39 +0000</pubDate>
		<dc:creator>Claus</dc:creator>
		
		<category><![CDATA[geocaching]]></category>

		<category><![CDATA[Thesis Progress]]></category>

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

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

		<guid isPermaLink="false">http://claus.castelodelego.org/archives/543</guid>
		<description><![CDATA[Tomorrow I&#8217;m taking the plane to Ann Arbor, Michigan, USA, to take part in the &#8220;Genetic Programming Theory and Practice&#8221; workshop. I&#8217;m pretty excited about the opportunity - there will be some of the bigger names in GP theory participating, and the structure of the workshop (few participants, lots of time for presentation and discussion) [...]]]></description>
			<content:encoded><![CDATA[<p>Tomorrow I&#8217;m taking the plane to Ann Arbor, Michigan, USA, to take part in the &#8220;Genetic Programming Theory and Practice&#8221; workshop. I&#8217;m pretty excited about the opportunity - there will be some of the bigger names in GP theory participating, and the structure of the workshop (few participants, lots of time for presentation and discussion) means that I may actually get the chance to pick their brains for a bit, instead of the normal &#8220;big conference&#8221; environment where when someone moderately famous makes a talk, everyone rushes to try and talk to them and you are lucky to get a question through. </p>
<p>With some luck, I might even manage to bring up the subject of Post-Doc positions *g* &#8212; BTW, I finally got my first serious proposals these days, but it is top secret, don&#8217;t bother asking :-).</p>
<p>Logistically, the trip is all set up. I&#8217;ll leave tomorrow and return on the 24th &#8212; not that it will make a big difference for the pacing of this blog. Recently I have been mostly posting personal stuff to Facebook, and news/research stuff to twitter. I&#8217;ll be staying at two couchsurfer&#8217;s place &#8212; hope the karma pays off :-), and I have printed a small list of Geocaches I want to find during the trip, time permitting. The only part which is a bit uncertain is how I will get from the airport to Ann Arbour &#8212; it seems that A2 does not have an international airport (or even a big local one), so I have to get off in Detroit and, this being the US, I can&#8217;t take a bus/train from the airport to the city - I need to book a shuttle in advance (which I couldn&#8217;t do, since most shuttles only take reservation by phone, none answered my e-mails), or pay 50 dollars for a cab - five times what I would pay for an express train Narita-Tokyo, which is about double the distance. So who said Japan is expensive again?</p>
<p>And don&#8217;t get me started on the medieval flight security in US airports&#8230; <img src='http://claus.castelodelego.org/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>As an aside, I have finally finished all the experiments and most of the analysis required for the &#8220;final&#8221; revision of my thesis. I kinda hesitate to use final (hence the &#8220;&#8221;), since there is a lot of stuff which I&#8217;m not satisfied with and would like more time to work on, but it should be enough data to satisfy the defense committee (based on their review of my first defense). So in the next 23 days until the deadline, all I gotta do is edit this data into new sections and improve some of the old ones.</p>
]]></content:encoded>
			<wfw:commentRss>http://claus.castelodelego.org/archives/543/feed</wfw:commentRss>
		</item>
		<item>
		<title>Happy Food</title>
		<link>http://claus.castelodelego.org/archives/542</link>
		<comments>http://claus.castelodelego.org/archives/542#comments</comments>
		<pubDate>Sat, 01 May 2010 10:55:26 +0000</pubDate>
		<dc:creator>Claus</dc:creator>
		
		<category><![CDATA[Filosofando]]></category>

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

		<guid isPermaLink="false">http://claus.castelodelego.org/archives/542</guid>
		<description><![CDATA[A few weeks ago, I got from a Couchsurfer a pack of Kangaroo meat as a present. In the package, there was an illustration of a herd of Kangaroos in the wild. That got me thinking about one of the things I find most surreal in our world.
Have you ever noticed how many packages for [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago, I got from a Couchsurfer a pack of Kangaroo meat as a present. In the package, there was an illustration of a herd of Kangaroos in the wild. That got me thinking about one of the things I find most surreal in our world.</p>
<p>Have you ever noticed how many packages for animal-based foods, or restaurants which specialize in a kind of animal, often sport images of such animal in a happy or cartoonish way? Like the pork restaurant with a cute pig with a chef hat in the billboard, or the fried squid tents in Japan with a happy squid preparing the fried squid balls. Now, while I don&#8217;t object in any way to eating meat, these kind of illustrations are just creepy to me. I mean, the animals probably wouldn&#8217;t be too happy about being eaten, and certainly would not be preparing the food themselves. Really, it is just WRONG.</p>
<p><img src="http://claus.castelodelego.org/tako.gif" alt="Creepy" /></p>
<p>When my RPG player blood is strong, I often enjoy imagining counterpart scenarios, like festivals made by trolls and orcs where images of cute little boys or smiling women illustrate the tent where they sell snacks made of unlucky adventurers&#8230; <img src='http://claus.castelodelego.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>By the way, the Kangaroo meat was not that good, if you were wondering.</p>
]]></content:encoded>
			<wfw:commentRss>http://claus.castelodelego.org/archives/542/feed</wfw:commentRss>
		</item>
		<item>
		<title>How a Japanese Kid thinks.</title>
		<link>http://claus.castelodelego.org/archives/541</link>
		<comments>http://claus.castelodelego.org/archives/541#comments</comments>
		<pubDate>Wed, 28 Apr 2010 15:39:29 +0000</pubDate>
		<dc:creator>Claus</dc:creator>
		
		<category><![CDATA[Life in Japan]]></category>

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

		<guid isPermaLink="false">http://claus.castelodelego.org/archives/541</guid>
		<description><![CDATA[I was talking to a friend these days about our childhoods, and I heard something that stuck to my mind.
There is a holiday in Japan for the birthday of the emperor. Currently, this day falls on December 23rd. However, during the previous emperor&#8217;s reign, of course, the holiday was in a different day. After that [...]]]></description>
			<content:encoded><![CDATA[<p>I was talking to a friend these days about our childhoods, and I heard something that stuck to my mind.</p>
<p>There is a holiday in Japan for the birthday of the emperor. Currently, this day falls on December 23rd. However, during the previous emperor&#8217;s reign, of course, the holiday was in a different day. After that emperor died, however, that date remained as a holiday, and it&#8217;s name was changed to &#8220;Green Day&#8221; or &#8220;Nature&#8217;s day&#8221; (and if you never knew where &#8220;midori no hi&#8221; came from, now you know).</p>
<p>Now, when she was a kid, this friend thought that, since the former emperor&#8217;s birthday was still a holiday, eventually, after a number of emperors had passed, most of the year would be made of holidays! So, in her kid mind, she wanted the emperors to die as quickly as possible, so she could have more days off school.</p>
<p>I found this pretty amusing <img src='http://claus.castelodelego.org/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://claus.castelodelego.org/archives/541/feed</wfw:commentRss>
		</item>
		<item>
		<title>Sleep Patterns</title>
		<link>http://claus.castelodelego.org/archives/540</link>
		<comments>http://claus.castelodelego.org/archives/540#comments</comments>
		<pubDate>Wed, 14 Apr 2010 00:34:02 +0000</pubDate>
		<dc:creator>Claus</dc:creator>
		
		<category><![CDATA[Filosofando]]></category>

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

		<guid isPermaLink="false">http://claus.castelodelego.org/archives/540</guid>
		<description><![CDATA[Today I woke up at 5:00AM because some Couchsurfers were leaving early to take a plane in Narita. Actually, I don&#8217;t mind it at all. I read some news on the net, put the trash out, and then after 1 hour went back to sleep.
When I went back to sleep, however, I actually started thinking [...]]]></description>
			<content:encoded><![CDATA[<p>Today I woke up at 5:00AM because some <a href="http://www.couchsurfing.com">Couchsurfers</a> were leaving early to take a plane in Narita. Actually, I don&#8217;t mind it at all. I read some news on the net, put the trash out, and then after 1 hour went back to sleep.</p>
<p>When I went back to sleep, however, I actually started thinking about Sleeping. Sleeping is a fascinating function of most higher animals that we still don&#8217;t understand fully - what exactly is its function, how much sleep do we need, how it works. The second question in particular was grabbing my mind at the time.</p>
<p>How much sleep do we need? The common answer is about 8 hours of sleep per night for an adult. Some people live on 6 hours sleep routines (I did for a while). Yesterday, I went to bed around 1 in the morning, and, having woken up at 5, that puts me at 4 hours. Since I had no reason to stay awake, I decided to &#8220;fill my quota&#8221;, by sleeping another 2 or 3 hours before waking up for good.</p>
<p>But is it okay if we sleep 4 hours, stay awake 2, and then sleep another four? What about 4 hours sleeping, 4 awake, 4 sleep? What about breaking it in small intervals? Or one big 6 hour interval and three 1 hour intervals? I was thinking about that. I remembered a story about a famous scientist (was it Newton? or DaVinci?) who was said to live in a &#8220;sleep one hour, stay 3 awake&#8221; schedule (<a href="http://xkcd.com/320/">XKCD has a different suggestion</a>). At these times I wish I had been a neurologist&#8230;</p>
<p>Eventually I went back to sleep, but now with the late spring sun rising early in the morning, I was up again by eight. Well, all the better for me to get to work, but now I must start taking care not to sleep too late if I want a full night of rest before the sun wakes me up <img src='http://claus.castelodelego.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://claus.castelodelego.org/archives/540/feed</wfw:commentRss>
		</item>
		<item>
		<title>Averaging text files with bash and awk</title>
		<link>http://claus.castelodelego.org/archives/539</link>
		<comments>http://claus.castelodelego.org/archives/539#comments</comments>
		<pubDate>Fri, 19 Mar 2010 14:28:22 +0000</pubDate>
		<dc:creator>Claus</dc:creator>
		
		<category><![CDATA[voodoo]]></category>

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

		<guid isPermaLink="false">http://claus.castelodelego.org/archives/539</guid>
		<description><![CDATA[Small script that might be useful for analysing data. The script takes multiple files (filemask is $1) which are composed of data columns, and produces the average of each data point across the files. Leaving around for future reference.
Usage: $ average.sh &#8220;filename.*&#8221; > filename.avg

sum=`ls -l $1 &#124; wc -l`
tf=`ls $1 &#124; tail -n 1`
fld=`tail -n [...]]]></description>
			<content:encoded><![CDATA[<p>Small script that might be useful for analysing data. The script takes multiple files (filemask is $1) which are composed of data columns, and produces the average of each data point across the files. Leaving around for future reference.</p>
<p>Usage: $ average.sh &#8220;filename.*&#8221; > filename.avg</p>
<blockquote><p>
sum=`ls -l $1 | wc -l`<br />
tf=`ls $1 | tail -n 1`<br />
fld=`tail -n 1 $tf | wc -w`</p>
<p>count=1<br />
while [ $count -lt $(($fld + 1)) ]; do<br />
paste -d&#8221; &#8221; $1 | nawk -v s=&#8221;$sum&#8221;\<br />
 -v fld=&#8221;$fld&#8221; -v f=&#8221;$count&#8221; &#8216;{<br />
   for(i=0;i< =s-1;i++)<br />
   {<br />
      ta=f + i*fld<br />
      tta=tta+$ta<br />
   }<br />
   print tta/s<br />
   tta=0<br />
}' >> tmp$count<br />
count=$(($count + 1))<br />
done<br />
paste -d&#8221; &#8221; tmp*<br />
rm tmp*
</p></blockquote>
<p>Bonus points for anyone who can make the above code simpler.</p>
<p>UPDATE: Thanks Pat for the bugfix. Whups.</p>
]]></content:encoded>
			<wfw:commentRss>http://claus.castelodelego.org/archives/539/feed</wfw:commentRss>
		</item>
		<item>
		<title>Evolutionary Music Composition and CrowdSourcing</title>
		<link>http://claus.castelodelego.org/archives/538</link>
		<comments>http://claus.castelodelego.org/archives/538#comments</comments>
		<pubDate>Fri, 05 Mar 2010 09:25:51 +0000</pubDate>
		<dc:creator>Claus</dc:creator>
		
		<category><![CDATA[ideas]]></category>

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

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

		<guid isPermaLink="false">http://claus.castelodelego.org/archives/538</guid>
		<description><![CDATA[Two days ago I went to this Nomikai (work-related drinking &#8220;parties&#8221;) with some industry contacts of my lab. While the nomikai itself was not very exciting (I don&#8217;t really like this kind of Japanese event, but that&#8217;s for another post), I had a nice little neat idea while chatting there.
One of the research topics addressed [...]]]></description>
			<content:encoded><![CDATA[<p>Two days ago I went to this <em>Nomikai</em> (work-related drinking &#8220;parties&#8221;) with some industry contacts of my lab. While the nomikai itself was not very exciting (I don&#8217;t really like this kind of Japanese event, but that&#8217;s for another post), I had a nice little neat idea while chatting there.</p>
<p>One of the research topics addressed in my laboratory is the use of Evolutionary Computation to assist in music composition. Basically, a EC algorithm generates multiple small pieces of music, which are evaluated by the human composer, and those evaluation scores are sent back to the computer, which try to generate a new generation of pieces similar to those which received a high score. This particular framework of evolutionary computation is called &#8220;Interactive Evolutionary Computation&#8221; (IEC) [1], because the fitness function is a human operator, and not a algorithmic function.</p>
<p>A big issue IEC is &#8220;user burden&#8221;. Evolutionary computation is based on scoring multiple candidate solutions, many times - when this evaluation is done by a human, instead of a computer program, the user may get tired after scoring too many individuals. To avoid that, it is important to either use the least amount of evaluations as possible, or make the evaluation as quick and painless to the user as possible - a lot of research has been done in both areas.</p>
<p>Now, the idea - how about using the concept of crowd sourcing to IEC? Instead of having one user evaluating the songs, we would have multiple users evaluating them in a asynchronous manner. The example we thought up would be a website where, say, mobile ring tones are generated by EC, with downloads and user evaluation being used as scores. Every few days(?), these values would be used to generate new tones, which would replace the old ones. This could not only generate more interesting tones, but also be able to &#8220;track&#8221; or &#8220;follow&#8221; fashions or memes of users.</p>
<p>A quick google search on the above keywords seemed to reveal that this is still a new idea (nothing relevant shows up on the first page for &#8220;crowd-sourcing IEC&#8221; and &#8220;crowd-sourcing composition&#8221; only show non-EC approaches [2]). Try it while it is fresh. Brainstorming in the comments is welcome <img src='http://claus.castelodelego.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Links<br />
[1] <a href="http://en.wikipedia.org/wiki/Interactive_evolutionary_computation">IEC on Wikipedia</a><br />
[2] <a href="http://www.absurdintellectual.com/2009/09/21/crowdsourcing-composition-in-b-flat/">Crowdsourcing Composition</a></p>
]]></content:encoded>
			<wfw:commentRss>http://claus.castelodelego.org/archives/538/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
