Congratulations!

[Valid Atom 1.0] This is a valid Atom 1.0 feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://feeds.feedburner.com/sig9/atom

  1. <?xml version="1.0" encoding="UTF-8"?><feed
  2.  xmlns="http://www.w3.org/2005/Atom"
  3.  xmlns:thr="http://purl.org/syndication/thread/1.0"
  4.  xml:lang="en-US"
  5.  xml:base="http://blog.sig9.net/wp-atom.php"
  6.   >
  7. <title type="text">Nuno&#8217;s blog</title>
  8. <subtitle type="text">Snippets and Bits...</subtitle>
  9.  
  10. <updated>2009-10-17T23:05:11Z</updated>
  11.  
  12. <link rel="alternate" type="text/html" href="http://blog.sig9.net" />
  13. <id>http://blog.sig9.net/feed/atom/</id>
  14. <link rel="self" type="application/atom+xml" href="http://blog.sig9.net/feed/atom/" />
  15.  
  16. <generator uri="https://wordpress.org/" version="4.6.1">WordPress</generator>
  17. <entry>
  18. <author>
  19. <name>nuno</name>
  20. <uri>http://sig9.net</uri>
  21. </author>
  22. <title type="html"><![CDATA[PHP vs Perl?]]></title>
  23. <link rel="alternate" type="text/html" href="http://blog.sig9.net/2009/10/17/php-vs-perl/" />
  24. <id>http://blog.sig9.net/2009/10/17/php-vs-perl/</id>
  25. <updated>2009-10-17T23:05:11Z</updated>
  26. <published>2009-10-17T23:05:11Z</published>
  27. <category scheme="http://blog.sig9.net" term="English" /><category scheme="http://blog.sig9.net" term="Tech" /> <summary type="html"><![CDATA[Disclaimer / Motivation First of all, it is important to note that this isn&#8217;t supposed to be a benchmark. The results of this test are worth what they are, it only means that PHP performed better than perl for this particular program. For my thesis, I need to analyse large sets of data. The data [&#8230;]]]></summary>
  28. <content type="html" xml:base="http://blog.sig9.net/2009/10/17/php-vs-perl/"><![CDATA[<p>    <strong>Disclaimer / Motivation</strong></p>
  29. <p>        First of all, it is important to note that this isn&#8217;t supposed to be a benchmark. The results of this test are worth what they are, it only means that PHP performed better than perl for this particular program.</p>
  30. <p>        For my thesis, I need to analyse large sets of data. The data is stored in the DataSeries format, which is a format developed by HP Labs specially for these type of things. I need to do several things with the data, so I created a script to do some basic analysis. </p>
  31. <p>        I had several options: I could write a shell script, or choose php or perl or something else instead. I realized that writing a shell script for this would be very complex, so I pondered between PHP and Perl. My feeling is that PHP is more suitable for Web and Perl is more suitable for sysadmin tasks, parsing, etc. I should choose Perl then, but my knowledge of Perl is very very basic, so I would need to learn it first. Unfortunately I am running against time, so I ended up choosing PHP since it would be very easy for me to write the script.  </p>
  32. <p>    <strong>The test</strong></p>
  33. <p>        So I wrote a first version of the <a href="http://dev.sig9.net/PHPvsPerl/stats_basic_php.txt">PHP script</a>. The script is not optimized whatsoever, but works as expected. The problem with a large dataset is that its parsing takes ages, and my first run took ages. I started wondering if a Perl equivalent would be a lot faster than the script I wrote, so I asked a friend to write an equivalent script in Perl. He <a href="http://dev.sig9.net/PHPvsPerl/stats_basic_pl.txt">wrote it</a> and I ran both scripts at the same time on the same server. My friend noticed later that he had left an extra instruction in the main loop that doesn&#8217;t exist in the PHP version. Anyway, both scripts were already running so I didn&#8217;t abort the run. The results were quite surprising. The PHP version took <b>551m56.349s</b> and the Perl equivalente took <b>712m16.792s</b>.<br />
  34. <span id="more-138"></span></p>
  35. <ul>
  36. <li> PHP version is:  PHP 5.2.6-1+lenny3 with Suhosin-Patch 0.9.6.2 (cli) + APC</li>
  37. <li> Perl version is: perl, v5.10.0 built for x86_64-linux-gnu-thread-multi</li>
  38. </ul>
  39. <p>    <strong>The Run</strong></p>
  40. <p>        The way I ran the scripts and the respective output is followed:<br />
  41.        <code><br />
  42. $ time nfsdsanalysis -Z common archive/lindump_total.ds | ./stats_basic.php > stats_basic.txt<br />
  43. real    551m56.349s<br />
  44. user    605m38.263s<br />
  45. sys     28m44.936s<br />
  46.        </code><br />
  47.        <code><br />
  48.            $ time nfsdsanalysis -Z common archive/lindump_total.ds | perl stats_basic.pl > stats_basic1.txt<br />
  49.            real    712m16.792s<br />
  50.            user    677m48.698s<br />
  51.            sys     66m32.526s<br />
  52.        </code><br />
  53.        The file lindump_total.ds is a 80Gb file. The output of nfsdsanalysis (what is piped to the script) is something like <a href="test.txt">this</a>:<br />
  54.        <code><br />
  55.            # Extent, type='Trace::NFS::common'<br />
  56.            packet_at source source_port dest dest_port is_udp is_request nfs_version transaction_id op_id operation rpc_status payload_length record_id<br />
  57.            1253831523212739 3a163121 790 01c633c7 2049 TCP request V3 21ff6e38 3 lookup null 56 0<br />
  58.            1253831523212743 3a163121 790 01c633c7 2049 TCP request V3 21ff6e38 3 lookup null 56 1<br />
  59.            1253831523212746 3a163121 897 01c633c7 2049 TCP request V3 2eff9a5e 1 getattr null 36 2<br />
  60.            1253831523212748 3a163121 897 01c633c7 2049 TCP request V3 2eff9a5e 1 getattr null 36 3<br />
  61.            1253831523214877 2a2622c2 2049 1a264421 790 TCP response V3 2ffdae28 3 lookup 0 216 4<br />
  62.            1253831523214886 2a2622c2 2049 1a264421 897 TCP response V3 2ffca15e 1 getattr 0 88 5<br />
  63.        </code></p>
  64. <p>    <strong>Optimizations</strong></p>
  65. <p>        Some people asked me to run the scripts isolated, i.e., not in paralel like last time. I got optimized versions from several people, and I even got some versions in other languages like python and C. </p>
  66. <p>    Apparently, the Perl version was so slow due some serious performance bug with regards to list assignment. Thanks to Pedro Figueiredo for the <a href="http://twitter.com/pfig/status/4786372935">tip</a>.  Just by installing 5.10.1 I got a 37% performance improvement. Even though the improvements were significative, Perl still performed in last. </p>
  67. <p>    Below you can see the results of the runs of the several optimized scripts in different languages. The results are ordered by run time, being the first one the fastest one and the last one the slowest one: </p>
  68. <p>    C Version (By Jose Celestino):<br />
  69.         <code><br />
  70. $ time nfsdsanalysis -Z common archive/lindump_total.ds | ./<a href="http://dev.sig9.net/PHPvsPerl/stats_basic.c">stats_basic</a> > stats_basic4.txt<br />
  71. real    202m37.347s<br />
  72. user    265m46.817s<br />
  73. sys     9m39.888s<br />
  74.    </code></p>
  75. <p>    PHP Version (Optimized by <a href="http://twitter.com/mangaru"> Diogo Neves</a>, and modified by me since there were several bugs):<br />
  76.    <code><br />
  77. $ time nfsdsanalysis -Z common archive/lindump_total.ds | ./<a href="http://dev.sig9.net/PHPvsPerl/stats_basic_optimized_php.txt">stats_basic_optimized.php</a> >stats_basic5.txt<br />
  78. real    270m48.511s<br />
  79. user    444m43.480s<br />
  80. sys     8m56.562s<br />
  81.    </code></p>
  82. <p>    Python Version (by <a href="http://twitter.com/edevil/status/4757829127">Andre Cruz</a>):<br />
  83.    <code><br />
  84. $ time nfsdsanalysis -Z common archive/lindump_total.ds | python <a href="http://dev.sig9.net/PHPvsPerl/stats_basic_py.txt">stats_basic.py</a> > stats_basic3.txt<br />
  85. real    322m55.569s<br />
  86.    </code></p>
  87. <p>    Perl Version (Original by <a href="http://twitter.com/acmpires">Carlos Pires</a>, Optimized version by <a href="http://twitter.com/joaop/status/4759086839">Joao Pedro</a>):<br />
  88.    <code><br />
  89. $ time nfsdsanalysis -Z common archive/lindump_total.ds | perl <a href="http://dev.sig9.net/PHPvsPerl/stats_basic_optimized_pl.txt">stats_basic_optimized.pl</a> > stats_basic2.txt</p>
  90. <p>real    419m11.267s<br />
  91. user    508m26.699s<br />
  92. sys     16m20.717s<br />
  93.    </code></p>
  94. <p>    <strong>Some Conclusions</strong></p>
  95. <p>    Some already asked me why the user time is greater than the real time. Keep in mind that the server where I ran these scripts has 8 cores and that is the reason for it. <br />
  96.    It really surprised me that Perl performed the worst, I wasn&#8217;t really expecting it. I also ran PHP without APC and the results were similar.</p>
  97. ]]></content>
  98. <link rel="replies" type="text/html" href="http://blog.sig9.net/2009/10/17/php-vs-perl/#comments" thr:count="2"/>
  99. <link rel="replies" type="application/atom+xml" href="http://blog.sig9.net/2009/10/17/php-vs-perl/feed/atom/" thr:count="2"/>
  100. <thr:total>2</thr:total>
  101. </entry>
  102. <entry>
  103. <author>
  104. <name>nuno</name>
  105. <uri>http://sig9.net</uri>
  106. </author>
  107. <title type="html"><![CDATA[MSIT-IS 2nd Semester Retrospective]]></title>
  108. <link rel="alternate" type="text/html" href="http://blog.sig9.net/2009/06/29/msit-is-2nd-semester-retrospective/" />
  109. <id>http://blog.sig9.net/2009/06/29/msit-is-2nd-semester-retrospective/</id>
  110. <updated>2009-06-29T05:41:04Z</updated>
  111. <published>2009-06-29T05:41:04Z</published>
  112. <category scheme="http://blog.sig9.net" term="English" /><category scheme="http://blog.sig9.net" term="Tech" /> <summary type="html"><![CDATA[As promised in my 1st semester retrospective, here is a retrospective of the 2nd semester (Spring Semester). The second semester was consisted of three courses, two core courses and one free elective. I picked the following courses: Distributed Systems Network Security Secure Software Systems You can take a look at the syllabus for each course [&#8230;]]]></summary>
  113. <content type="html" xml:base="http://blog.sig9.net/2009/06/29/msit-is-2nd-semester-retrospective/"><![CDATA[<p>As promised in my <a href="http://blog.sig9.net/2009/01/11/msit-is-1st-semester-retrospective/">1st semester retrospective</a>, here is a retrospective of the 2nd semester (Spring Semester). </p>
  114. <p>The second semester was consisted of three courses, two core courses and one free elective. I picked the following courses:</p>
  115. <ul>
  116. <li>Distributed Systems</li>
  117. <li>Network Security</li>
  118. <li>Secure Software Systems</li>
  119. </ul>
  120. <p>You can take a look at the syllabus for each course <a href="http://www.ini.cmu.edu/degrees/lisbon_msit-is/courses.html">here</a>. I can&#8217;t tell for sure which semester was tougher, the 1st or this one. I guess this 2nd semester involved more work, but you are more used to it, so you can handle things better.</p>
  121. <p><span id="more-136"></span></p>
  122. <p><a href="http://sched.tcpulse.com/browse/courses/18842">Distributed Systems</a> is a free elective. We had the option to choose either Distributed Systems or Intrusion Tolerance. I picked Distributed Systems. This is a pure Distributed Systems course. We covered RPC, High Availability, Clock Synchronization, Replication, Mutual Exclusion and Groups, Transactions, Corba, J2EE, Distributed Filesystems, Distributed Shared Memory, Distributed Mutual Exclusion, Load Balancing, Security, Naming, Peer-to-Peer Systems and the Google File System. I have never had a distributed systems course before, the closest that I had was parallel computing during my undergrad. It was interesting to study these topics, specially because I work with distributed systems for over 10 years. For this course, we only had one big project for the duration of the semester. In the beginning of the semester you had to pick up a team and a project and throughout the semester build it. At the end, you had to present it to the class. My project was <a href="http://softwarelivre.sapo.pt/dumpfs">dumpFS</a>, a distributed storage solution written in Erlang. This class was a remote class, taught from Carnegie Mellon.</p>
  123. <p><a href="http://sparrow.ece.cmu.edu/group/731-s09/18-731.html">Network Security</a> was also a fun course. I had the pleasure to attend this class taught by <a href="http://www.ece.cmu.edu/~adrian/">one of the best professors</a> I have ever had in my entire life. In my opinion, it was the most difficult course of this semester, but professor Perrig really teaches you how to think in terms of Security. You can memorize the entire textbook and get an F on the exam. To get a good grade you need to analyze and think (very fast). We covered <a href="http://sparrow.ece.cmu.edu/group/731-s09/syllabus.html">a lot of recent topics</a>, such as the the <a href="http://blog.sig9.net/2009/02/07/tips-for-safer-ssling/">MD5-collision attack</a> from earlier this year, or the Pakistani Youtube BGP attack from last year. We had two mini-projects and one research project. The first miniproject was very fun, it consisted in writing  a blind TCP reset attack and a DNS poisoning attack (in C). The second miniproject was not so fun, it consisted in implementing an Ad Hoc Routing Attack (DSR &#038; Ariadne) using the simulator ns-2 (in C++). The problem is that we spent more time finding out the dark details of ns-2 than thinking about the attack itself. We complained about this in the course feedback and next year professor Perrig is going to skip this miniproject. See? feedback is useful sometimes. The research project was supposed to aim high, the best project would be submitted to a conference. Mine was about secure DNS and you can check it out by clicking <a href="http://dev.sig9.net/files/ResearchProject.pdf">here</a>. This class was a remote class, taught from Carnegie Mellon.</p>
  124. <p>Secure Software Systems was an interesting class. We covered a lot of fun things, such as Buffer Overflows,  Input validation (SGDB, Web race conditions), Randomness and determinism, Client side security, DoS, Auditing Tools, Buffer Overflow Defenses, Static Analysis, Attack Injection, Assurance &#038; Certification, Virtualization and Security. We had 3 projects. The first one consisted in finding Buffer Overflows in one SMTP server software and exploit one of its vulnerabilities, and to find and fix some SQL injections and XSS in a Web app. The second project involved Fuzzing and the third one involved using Static Analysis tools. This class was a local class, taught by a professor from <a href="http://www.fc.ul.pt/">FCUL</a>.</p>
  125. <p>Even though that I am now more used to the pace and I don&#8217;t stress out so easily, it is still not possible to have a social life. I guess I was more relaxed in the first half of the semester but the second half was crazy, specially the last couple of weeks.</p>
  126. <p>In my third semester, i.e. the Summer semester, I am supposed to write my Thesis. I am going to spend this semester in Pittsburgh since my Thesis Advisor is <a href="http://www.ece.cmu.edu/~ganger/">Greg Ganger</a>, the director of PDL. My Thesis is about Storage. When I return, I will write something about it.</p>
  127. <p>Enjoy the Summer!</p>
  128. ]]></content>
  129. </entry>
  130. <entry>
  131. <author>
  132. <name>nuno</name>
  133. <uri>http://sig9.net</uri>
  134. </author>
  135. <title type="html"><![CDATA[Pittsburgh]]></title>
  136. <link rel="alternate" type="text/html" href="http://blog.sig9.net/2009/06/28/pittsburgh/" />
  137. <id>http://blog.sig9.net/2009/06/28/pittsburgh/</id>
  138. <updated>2009-06-28T01:01:02Z</updated>
  139. <published>2009-06-28T01:01:02Z</published>
  140. <category scheme="http://blog.sig9.net" term="English" /><category scheme="http://blog.sig9.net" term="Misc" /> <summary type="html"><![CDATA[As most of my readers know, I am temporarily living in Pittsburgh, PA, to write my thesis. I created a blog where I will be posting my experience of living in Pittsburgh. You can read it at http://pittsburgh.sig9.net/.]]></summary>
  141. <content type="html" xml:base="http://blog.sig9.net/2009/06/28/pittsburgh/"><![CDATA[<p>As most of my readers know, I am temporarily living in Pittsburgh, PA, to write my thesis. I created a blog where I will be posting my experience of living in Pittsburgh. You can read it at <a href="http://pittsburgh.sig9.net/">http://pittsburgh.sig9.net/</a>.</p>
  142. ]]></content>
  143. </entry>
  144. <entry>
  145. <author>
  146. <name>nuno</name>
  147. <uri>http://sig9.net</uri>
  148. </author>
  149. <title type="html"><![CDATA[Quick curiosity&#8230;]]></title>
  150. <link rel="alternate" type="text/html" href="http://blog.sig9.net/2009/03/13/quick-curiosity-2/" />
  151. <id>http://blog.sig9.net/2009/03/13/quick-curiosity-2/</id>
  152. <updated>2009-03-13T02:16:13Z</updated>
  153. <published>2009-03-13T02:12:11Z</published>
  154. <category scheme="http://blog.sig9.net" term="English" /><category scheme="http://blog.sig9.net" term="Tech" /> <summary type="html"><![CDATA[In Erlang, single assignment is like algebra&#8230; When I went to school, my math teacher said, &#8220;If there&#8217;s an X in several different parts in the same equation, then all the Xs mean the same thing.&#8221; That&#8217;s how we can solve equations: if we know that X+Y=10 and X-Y=2, then X will be 6 and [&#8230;]]]></summary>
  155. <content type="html" xml:base="http://blog.sig9.net/2009/03/13/quick-curiosity-2/"><![CDATA[<p>In Erlang, single assignment is like algebra&#8230;</p>
  156. <blockquote><p>
  157. When I went to school, my math teacher said, &#8220;If there&#8217;s an X in several different parts in the same equation, then all the Xs mean the same thing.&#8221; That&#8217;s how we can solve equations: if we know that X+Y=10 and X-Y=2, then X will be 6 and Y will be 4 in both equations.</p>
  158. <p>But when I learned my first programming language, we were shown stuff like this:<br />
  159. X = X + 1 </p>
  160. <p>Everyone protested, saying &#8220;you can&#8217;t do that!&#8221;. But the teacher said we were wrong, and we had to unlearn what we learned in math class. X isn&#8217;t a math variable: it&#8217;s like a pigeon hole/little box&#8230;</p>
  161. <p>In Erlang, variables are just like they are in math. When you associate a value with a variable, you&#8217;re making an assertion &#8211; a statement of fact. This variable has that value. And that&#8217;s that.
  162. </p></blockquote>
  163. <p align="right">In  &#8220;<em>Armstrong, Joe; Programming Erlang; The Pragmatic Programmers; 2007</em>&#8220;</p>
  164. ]]></content>
  165. <link rel="replies" type="text/html" href="http://blog.sig9.net/2009/03/13/quick-curiosity-2/#comments" thr:count="3"/>
  166. <link rel="replies" type="application/atom+xml" href="http://blog.sig9.net/2009/03/13/quick-curiosity-2/feed/atom/" thr:count="3"/>
  167. <thr:total>3</thr:total>
  168. </entry>
  169. <entry>
  170. <author>
  171. <name>nuno</name>
  172. <uri>http://sig9.net</uri>
  173. </author>
  174. <title type="html"><![CDATA[Quick curiosity&#8230;]]></title>
  175. <link rel="alternate" type="text/html" href="http://blog.sig9.net/2009/02/10/quick-curiosity/" />
  176. <id>http://blog.sig9.net/2009/02/10/quick-curiosity/</id>
  177. <updated>2009-02-10T02:48:48Z</updated>
  178. <published>2009-02-10T02:48:48Z</published>
  179. <category scheme="http://blog.sig9.net" term="English" /><category scheme="http://blog.sig9.net" term="Tech" /> <summary type="html"><![CDATA[In regards to real time&#8230; By convention, this function increases at a rate equal to 9192631770 times the period of the radiation emitted by the transition between two hyperfine levels of the ground state atomic cesium 133, a time unit which people have agreed to call second, In &#8220;Veríssimo P, Rodrigues L.; Distributed Systems for [&#8230;]]]></summary>
  180. <content type="html" xml:base="http://blog.sig9.net/2009/02/10/quick-curiosity/"><![CDATA[<p>In regards to real time&#8230;</p>
  181. <blockquote><p>By convention, this function increases at a rate equal to 9192631770 times the period of the radiation emitted by the transition between two hyperfine levels of the ground state atomic cesium 133, a time unit which people have agreed to call second,</p></blockquote>
  182. <p align="right">In  &#8220;<em>Veríssimo P, Rodrigues L.; Distributed Systems for System Architects; KAP; 2001</em>&#8220;</p>
  183. ]]></content>
  184. </entry>
  185. <entry>
  186. <author>
  187. <name>nuno</name>
  188. <uri>http://sig9.net</uri>
  189. </author>
  190. <title type="html"><![CDATA[Tips for safer SSL&#8217;ing]]></title>
  191. <link rel="alternate" type="text/html" href="http://blog.sig9.net/2009/02/07/tips-for-safer-ssling/" />
  192. <id>http://blog.sig9.net/2009/02/07/tips-for-safer-ssling/</id>
  193. <updated>2009-02-07T06:05:31Z</updated>
  194. <published>2009-02-07T06:04:16Z</published>
  195. <category scheme="http://blog.sig9.net" term="English" /><category scheme="http://blog.sig9.net" term="Tech" /> <summary type="html"><![CDATA[Despite what some people (including RapidSSL) said about the recent MD5 collision attack on SSL, the truth is that just because RapidSSL stopped using MD5 for issuing certificates it doesn&#8217;t mean the world is safe again. The researchers were able to create a rogue Certification Authority certificate. That means they have a valid CA certificate, [&#8230;]]]></summary>
  196. <content type="html" xml:base="http://blog.sig9.net/2009/02/07/tips-for-safer-ssling/"><![CDATA[<p>Despite what <a href="https://blogs.verisign.com/ssl-blog/2008/12/on_md5_vulnerabilities_and_mit.php">some people</a> (<a href="https://knowledge.rapidssl.com/support/ssl-certificate-support/index?page=content&#038;id=AD125">including RapidSSL</a>) said about the recent <a href="http://www.win.tue.nl/hashclash/rogue-ca/">MD5 collision</a> attack on SSL, the truth is that just because RapidSSL stopped using MD5 for issuing certificates it doesn&#8217;t mean the world is safe again. </p>
  197. <p>The researchers were able to create a rogue Certification Authority certificate. That means they have a valid CA certificate, or that they can create any certificate they want for any site. No one tells me that a crime organization wasn&#8217;t able to do the same, and if they were, it doesn&#8217;t really matter that RapidSSL stopped using MD5 or not. In theory, RapidSSL would need to revoke its Root Certificate to make sure the problem was solved. The problem is that each certificate contains a URL so the browser can check if the certificate was revoked or not.  The researcher&#8217;s rogue CA certificate had very limited space and it was impossible to include such a URL, which means that by default both Internet Explorer and Firefox are unable to find a revocation server to check their certificate against. Basically it&#8217;s up to the Browser vendors to solve the problem permanently by stop accepting certificates that use MD5 for example.</p>
  198. <p>SSL is subject to many types of attacks, specially Man-in-the-Middle attacks. Users usually ignore SSL warnings so they&#8217;ll most likely not notice a Man-in-the-Middle attack. One way to be more protected is to install <a href="http://www.cs.cmu.edu/~perspectives/firefox.html">Perspectives</a>, a Firefox plugin, developed by a couple of grad students from Carnegie Mellon University, that monitors the certificates used in the sites you visit, and warns you if the certificate has changed.</p>
  199. <p>So let&#8217;s imagine you want to login on your Homebanking to make some wire transfers (or any other site that uses SSL). Here is a list that will make your SSL browsing safer:</p>
  200. <blockquote>
  201. <ol>
  202. <li> Make a bookmark of your Homebanking. Double check that the URL is correct.</li>
  203. <li> Install <a href="http://www.cs.cmu.edu/~perspectives/firefox.html">Perspectives</a> </li>
  204. <li> If your browser is running, please quit it and run it again (so it&#8217;s a fresh run).</li>
  205. <li> Go to your bookmarks and click on the Homebanking bookmark. DO NOT load any webpage before the Homebanking one. Make sure the Homebanking is the first page loaded.</li>
  206. <li> Make sure Perspectives says the Homebanking site is safe</li>
  207. <li> Now it is safer to use the Homebanking. You can do whatever you want to do there now.</li>
  208. </ol>
  209. </blockquote>
  210. ]]></content>
  211. </entry>
  212. <entry>
  213. <author>
  214. <name>nuno</name>
  215. <uri>http://sig9.net</uri>
  216. </author>
  217. <title type="html"><![CDATA[Portuguese Holidays iCal]]></title>
  218. <link rel="alternate" type="text/html" href="http://blog.sig9.net/2009/01/17/portuguese-holidays-ical/" />
  219. <id>http://blog.sig9.net/2009/01/17/portuguese-holidays-ical/</id>
  220. <updated>2009-01-23T22:05:07Z</updated>
  221. <published>2009-01-17T23:01:24Z</published>
  222. <category scheme="http://blog.sig9.net" term="English" /><category scheme="http://blog.sig9.net" term="Tech" /> <summary type="html"><![CDATA[If you want *all* the Portuguese holidays in your calendar, subscribe the following ics: http://cals.sig9.net/ptHolidays/ Here&#8217;s a list of optional parameters: ey = &#60;end year YYYY&#62; (defaults to &#60;current year&#62; + 3) sy = &#60;start year YYYY&#62; (defaults to &#60;current year&#62; &#8211; 2) ct = &#60;city&#62; ({lisboa, porto} are the only cities currently available) Example: [&#8230;]]]></summary>
  223. <content type="html" xml:base="http://blog.sig9.net/2009/01/17/portuguese-holidays-ical/"><![CDATA[<p>If you want *all* the Portuguese holidays in your calendar, subscribe the following ics:</p>
  224. <blockquote><p><a href="http://cals.sig9.net/ptHolidays/">http://cals.sig9.net/ptHolidays/</a></p></blockquote>
  225. <p>Here&#8217;s a list of optional parameters:</p>
  226. <ul>
  227. <li><strong>ey</strong> = &lt;end year YYYY&gt;  (<em>defaults to <strong>&lt;current year&gt; + 3</strong></em>)</li>
  228. <li><strong>sy</strong> = &lt;start year YYYY&gt; (<em>defaults to <strong>&lt;current year&gt; &#8211; 2</strong></em>) </li>
  229. <li><strong>ct</strong> = &lt;city&gt; (<em>{<strong>lisboa</strong>, <strong>porto</strong>} are the only cities currently available</em>) </li>
  230. </ul>
  231. <p>Example:</p>
  232. <ul>
  233. <li><a href="http://cals.sig9.net/ptHolidays/?ct=lisboa&#038;sy=2009&#038;ey=2015">http://cals.sig9.net/ptHolidays/?ct=lisboa&#038;sy=2009&#038;ey=2015</a></li>
  234. </ul>
  235. <p>If you want the local holiday for your city, please let me know and I&#8217;ll add it to the calendar.</p>
  236. <p><strong>Hint:</strong> In order to have your calendar always up-to-date you should not use the &#8220;ey&#8221; parameter, since its default is <current year + 3>. This way, your calendar will never be outdated. Most calendar clients do not have a &#8220;yearly refresh&#8221; option, which would be the best for this case, so just set the refresh rate to weekly or monthly. If you use iCal, you can click <a href="webcal://cals.sig9.net/ptHolidays/?ct=lisboa">here</a> to subscribe the calendar automatically.<br />
  237. </current></p>
  238. ]]></content>
  239. <link rel="replies" type="text/html" href="http://blog.sig9.net/2009/01/17/portuguese-holidays-ical/#comments" thr:count="5"/>
  240. <link rel="replies" type="application/atom+xml" href="http://blog.sig9.net/2009/01/17/portuguese-holidays-ical/feed/atom/" thr:count="5"/>
  241. <thr:total>5</thr:total>
  242. </entry>
  243. <entry>
  244. <author>
  245. <name>nuno</name>
  246. <uri>http://sig9.net</uri>
  247. </author>
  248. <title type="html"><![CDATA[Human power to break CAPTCHA]]></title>
  249. <link rel="alternate" type="text/html" href="http://blog.sig9.net/2009/01/16/human-power-to-break-captcha/" />
  250. <id>http://blog.sig9.net/2009/01/16/human-power-to-break-captcha/</id>
  251. <updated>2009-01-16T00:15:23Z</updated>
  252. <published>2009-01-16T00:15:23Z</published>
  253. <category scheme="http://blog.sig9.net" term="English" /><category scheme="http://blog.sig9.net" term="Tech" /> <summary type="html"><![CDATA[While there&#8217;s people out there working for 1 cent an hour, CAPTCHA will never be bullet proof&#8230; just because it&#8217;s not supposed to be Human proof. Check out http://www.anti-captcha.com/ or the google translation here since the original site is in Russian. Impressive that they even offer SLAs.]]></summary>
  254. <content type="html" xml:base="http://blog.sig9.net/2009/01/16/human-power-to-break-captcha/"><![CDATA[<p>While there&#8217;s people out there working for 1 cent an hour, CAPTCHA will never be bullet proof&#8230; just because it&#8217;s not supposed to be Human proof.</p>
  255. <p>Check out <a href="http://www.anti-captcha.com/">http://www.anti-captcha.com/</a> or the <a href="http://translate.google.com/translate?u=http%3A%2F%2Fwww.anti-captcha.com%2F&#038;sl=ru&#038;tl=en&#038;ie=UTF-8">google translation here</a> since the original site is in Russian. Impressive that they even offer SLAs.</p>
  256. ]]></content>
  257. </entry>
  258. <entry>
  259. <author>
  260. <name>nuno</name>
  261. <uri>http://sig9.net</uri>
  262. </author>
  263. <title type="html"><![CDATA[MSIT-IS 1st Semester Retrospective]]></title>
  264. <link rel="alternate" type="text/html" href="http://blog.sig9.net/2009/01/11/msit-is-1st-semester-retrospective/" />
  265. <id>http://blog.sig9.net/2009/01/11/msit-is-1st-semester-retrospective/</id>
  266. <updated>2009-02-08T01:21:52Z</updated>
  267. <published>2009-01-11T19:10:19Z</published>
  268. <category scheme="http://blog.sig9.net" term="English" /><category scheme="http://blog.sig9.net" term="Tech" /> <summary type="html"><![CDATA[A lot of people have been asking me for a retrospective of the Lisbon MSIT-IS (Masters in Information Technology &#8211; Information Security) program from Carnegie Mellon, so I decided to post here a review of the previous semester. First of all, this is a Dual Program (MSIT-IS from CMU and Mestrado em Segurança Informatica from [&#8230;]]]></summary>
  269. <content type="html" xml:base="http://blog.sig9.net/2009/01/11/msit-is-1st-semester-retrospective/"><![CDATA[<p>A lot of people have been asking me for a retrospective of the <a href="http://www.ini.cmu.edu/degrees/lisbon_msit-is/">Lisbon MSIT-IS</a> (Masters in Information Technology &#8211; Information Security) program from <a href="http://www.cmu.edu/">Carnegie Mellon</a>, so I decided to post here a review of the previous semester.</p>
  270. <p>First of all, this is a Dual Program (MSIT-IS from CMU and Mestrado em Segurança Informatica from FCUL). The entire program is held at FCUL in Lisbon, although a lot of the courses are lectured from Carnegie Mellon. You also have the option to go to Pittsburgh for the Summer Semester to write your Thesis.</p>
  271. <p><center><br />
  272. <a href='http://blog.sig9.net/wp-content/uploads/2009/01/img_9268.jpg' title='CMU Classroom'><img src='http://blog.sig9.net/wp-content/uploads/2009/01/img_9268.thumbnail.jpg' alt='CMU Classroom' /></a><a href='http://blog.sig9.net/wp-content/uploads/2009/01/img_9279.jpg' title='CMU Campus'><img src='http://blog.sig9.net/wp-content/uploads/2009/01/img_9279.thumbnail.jpg' alt='CMU Campus' /></a><a href='http://blog.sig9.net/wp-content/uploads/2009/01/img_9273.jpg' title='CMU Campus'><img src='http://blog.sig9.net/wp-content/uploads/2009/01/img_9273.thumbnail.jpg' alt='CMU Campus' /></a><br />
  273. </center></p>
  274. <p>The program started the last week of August &#8217;08. The portuguese students were invited to go to Pittsburgh for an orientation session and for the first week of classes. There, we got familiar with the campus, school procedures and we had a taste of what is to be a student at CMU. </p>
  275. <p>After that week we returned to Lisbon, where we attended classes in a <a href="http://www.ini.cmu.edu/news/features/dec.html">high-tech classroom</a> prepared for video-conferencing with Carnegie Mellon at FCUL. All remote classes were live and interactive. Students in Portugal could see students at CMU (and vice-versa), they could interrupt the class and ask questions, etc. The experience was quite pleasant and it&#8217;s pretty much like we were there.</p>
  276. <p><span id="more-125"></span></p>
  277. <p>In regards to the courses, the first semester was consisted of three core courses:</p>
  278. <ul>
  279. <li>Fundamental of Embedded Systems</li>
  280. <li>Packet Switching and Computer Networks</li>
  281. <li>Introduction to Computer Security</li>
  282. </ul>
  283. <p>You can take a look at the syllabus for each course <a href="http://www.ini.cmu.edu/degrees/lisbon_msit-is/courses.html">here</a>. All the three courses were a lot of fun, &#8230; and very intensive.</p>
  284. <p>In <a href="http://sched.tcpulse.com/browse/courses/18342">Fundamentals of Embedded Systems</a> we covered the ARM processor, which is the most popular 32-bit processor for embedded devices (being the iPhone one of examples). We started by learning Assembly for ARM processors, then we learned how to optimize code (both in Assembly and C). The lab projects were group projects and C/Assembly based. For the lab projects we used an X-Board powered by an X-Scale processor from Intel. From my understanding next year they&#8217;ll be using <a href="http://www.gumstix.com/">Gumstix</a> which will certainly make the lab projects even more interesting. Then we learned about Exception Handling and SWIs; Linking and Loading; Flash memory; Memory-mapped I/O, Polling and Timers; Serial Communication; Interrupts; Processes and Scheduling; Concurrency; Synchronization and Deadlocks; Real-time (RT) operating systems &#038; Scheduling algorithms; and Memory Protection and Virtual Memory. The last lab project was to implement parts of an Operating System, like the scheduler, semaphores and timer (both for non RT and RT). This class was a remote class, taught from Carnegie Mellon.</p>
  285. <p>In <a href="http://sched.tcpulse.com/browse/courses/18756">Packet Switching and Computer Networks</a> we were asked a question in the first lecture: Explain the Journey of a Packet. The goal of the course was to be able to answer that question. The covered topics were SONET; Transport Network Protection &#038; Restoration (SONET Rings); Switching Architecture; Nonblocking Switch Architecture; Point-to-Multipoint Switch; ATM Overview; Network Traffic Control; MPLS; RSVP &#038; RSVP-TE; and GMPLS. The lab projects were individual projects and Java based. Basically we needed to implement some networking protocols such as SONET setup and transport; Queueing/Scheduler algorithms; Label Switching; and  Constraint based routing. The last project was actually very interesting, where we needed to design the core network for an ISP, &#8220;buy&#8221; the equipment, etc. Unfortunately the timing for the last project was very bad (overlapped with the finals week), so most of the students didn&#8217;t finish the project. Besides the lab projects, we also had weekly paper reviews and problem sets. This class was also a remote class, taught from Carnegie Mellon.</p>
  286. <p>In Introduction to Computer Security we covered Fundamentals Security Concepts; Security Paradigms (like Cryptography Algorithms, Digital Cash, Authentication types, etc); Models of Distributed Secure Computing (like Classes of Attacks, Authorization, Secure Channels, TCBs, Authentication, Firewalls, etc); and Secure Systems and Platforms (like SSL, VPNs, PGP, IPSec, etc). We had 3 group projects and 3 individual projects. For the group projects we needed to implement things like hardening a Linux server, deploy a Firewall,  and deploy an Intrusion Detection System. The individual projects were reading assignments where we had to read a given chapter from a book and write a critical report about it. Besides the projects, we also had weekly problem sets. This class was a local class, taught by a professor from <a href="http://www.fc.ul.pt/">FCUL</a>. </p>
  287. <p>To conclude, I&#8217;m loving the program so far. I was told in the beginning that I needed to dedicate 60 hours per week for this program, but it&#8217;s almost impossible to get good results if you only dedicate 60 hours per week. Most of the students (including me) live for this program. Since we get up every day until we go to sleep we do nothing but work for the program and eat. Forget your social life for 16 months if you plan to get this Master. But I can assure you that it is a lot of fun and rewarding.</p>
  288. <p>For the next semester, which will start tomorrow, I&#8217;m enrolled in the courses Secure Software Systems (locally), Network Security (VC from CMU) and Distributed Systems (VC from CMU). I&#8217;ll write another review once this semester is over. <img src="https://s.w.org/images/core/emoji/2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
  289. ]]></content>
  290. <link rel="replies" type="text/html" href="http://blog.sig9.net/2009/01/11/msit-is-1st-semester-retrospective/#comments" thr:count="2"/>
  291. <link rel="replies" type="application/atom+xml" href="http://blog.sig9.net/2009/01/11/msit-is-1st-semester-retrospective/feed/atom/" thr:count="2"/>
  292. <thr:total>2</thr:total>
  293. </entry>
  294. <entry>
  295. <author>
  296. <name>nuno</name>
  297. <uri>http://sig9.net</uri>
  298. </author>
  299. <title type="html"><![CDATA[iTunes stopped recognizing iPhone]]></title>
  300. <link rel="alternate" type="text/html" href="http://blog.sig9.net/2008/11/02/itunes-stopped-recognizing-iphone/" />
  301. <id>http://blog.sig9.net/2008/11/02/itunes-stopped-recognizing-iphone/</id>
  302. <updated>2008-11-02T01:50:28Z</updated>
  303. <published>2008-11-02T01:39:54Z</published>
  304. <category scheme="http://blog.sig9.net" term="English" /><category scheme="http://blog.sig9.net" term="Tech" /> <summary type="html"><![CDATA[As some of you have noticed, I haven&#8217;t had much time to post on my blog lately because of this. But today I made an exception just because I spent the last couple of hours trying to figure out why the heck iTunes stopped recognizing my iPhone. While surfing through the internet I noticed that [&#8230;]]]></summary>
  305. <content type="html" xml:base="http://blog.sig9.net/2008/11/02/itunes-stopped-recognizing-iphone/"><![CDATA[<p>As some of you have noticed, I haven&#8217;t had much time to post on my blog lately  because of <a href="http://blog.sig9.net/2008/07/08/life/">this</a>. But today I made an exception just because I spent the last couple of hours trying to figure out why the heck iTunes stopped recognizing my iPhone. While surfing through the internet I noticed that there were a lot of people that experienced the same issue and were not able to find a solution. So here is what solved the problem for me.</p>
  306. <p>The fix ended up being this:</p>
  307. <blockquote><p>
  308. nuno@nuno-macbook:~/Library$ mv Lockdown Lockdown.orig
  309. </p></blockquote>
  310. <p>Hope it helps someone. Now I need to get back to work. See you before Xmas.</p>
  311. ]]></content>
  312. <link rel="replies" type="text/html" href="http://blog.sig9.net/2008/11/02/itunes-stopped-recognizing-iphone/#comments" thr:count="1"/>
  313. <link rel="replies" type="application/atom+xml" href="http://blog.sig9.net/2008/11/02/itunes-stopped-recognizing-iphone/feed/atom/" thr:count="1"/>
  314. <thr:total>1</thr:total>
  315. </entry>
  316. </feed>
  317.  

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid Atom 1.0" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=http%3A//feeds.feedburner.com/sig9/atom

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda