<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cosu</title>
	<atom:link href="http://cosu.ro/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://cosu.ro/blog</link>
	<description>"I'm even greater than I thought I was", Bender Bending Rodríguez , Futurama, S05E01</description>
	<lastBuildDate>Sat, 13 Feb 2010 12:16:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Parsing XML data using bash and standard Unix tools</title>
		<link>http://cosu.ro/blog/2010/02/13/parsing-xml-data-using-bash-and-standard-unix-tools/</link>
		<comments>http://cosu.ro/blog/2010/02/13/parsing-xml-data-using-bash-and-standard-unix-tools/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 23:53:24 +0000</pubDate>
		<dc:creator>Cosu</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://cosu.ro/blog/2010/02/13/parsing-xml-data-using-bash-and-standard-unix-tools/</guid>
		<description><![CDATA[Parsing XML can be a tedious and unpleasant job if you insist on using just standard Unix tools like sed, awk, cut, grep and so on. One might say that it&#8217;s better to use python/perl/ruby/other language that ships with a full blown XML parser and use the standard Unix utilites for what they were meant [...]]]></description>
			<content:encoded><![CDATA[<p>Parsing XML can be a tedious and unpleasant job if you insist on using just standard Unix tools like sed, awk, cut, grep and so on. One might say that it&#8217;s better to use python/perl/ruby/other language that ships with a full blown XML parser and use the standard Unix utilites for what they were meant for, plain old text files and not pesky XML. The problem with those nice programming languages is that they take away the one liners. You need to import stuff, have variables, flow control and so on.</p>
<p>A nice tool that makes one&#8217;s life easier when it comes to XML is XML2. It can convert a normal xml file to a more line oriented file format. The standard debian distribution has this neat tool in the repos so you are one apt-get away from using it.</p>
<p> </p>
<p>One simple example. Take this XML file:</p>
<p><code><br />
&lt;xml&gt;<br />
&lt;fruits&gt;<br />
        &lt;fruit name=&quot;apple&quot; type=&quot;royal gala&quot; quantity=&quot;2&quot; price=&quot;1&quot;/&gt;<br />
        &lt;fruit name=&quot;orange&quot; type=&quot;tasty&quot; quantity=&quot;4&quot; price=&quot;1.5&quot;/&gt;<br />
        &lt;fruit name=&quot;banana&quot; type=&quot;green&quot; quantity=&quot;3&quot; price=&quot;1&quot;/&gt;<br />
&lt;/fruits&gt;<br />
&lt;/xml&gt;<br />
</code></p>
<p>We run xml2 against it:<br /> <code><br /> cosu@roadwarrior:/tmp$ xml2 &lt; fruits.xml<br /> /xml/fruits/fruit/@name=apple<br /> /xml/fruits/fruit/@type=royal gala<br /> /xml/fruits/fruit/@quantity=2<br /> /xml/fruits/fruit/@price=1<br /> /xml/fruits/fruit<br /> /xml/fruits/fruit/@name=orange<br /> /xml/fruits/fruit/@type=tasty<br /> /xml/fruits/fruit/@quantity=4<br /> /xml/fruits/fruit/@price=1.5<br /> /xml/fruits/fruit<br /> /xml/fruits/fruit/@name=banana<br /> /xml/fruits/fruit/@type=green<br /> /xml/fruits/fruit/@quantity=3<br /> /xml/fruits/fruit/@price=1<br /> </code><br /> And now we extract all the fruit names:<br /> <code><br /> cosu@roadwarrior:/tmp$ xml2 &lt; fruits.xml |grep name |cut -d"=" -f2<br /> apple<br /> orange<br /> banana<br /> </code></p>
<p>There you go! A fruit salad! Of course for more complicated stuff use other tools <img src='http://cosu.ro/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://cosu.ro/blog/2010/02/13/parsing-xml-data-using-bash-and-standard-unix-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Exchange Points</title>
		<link>http://cosu.ro/blog/2010/02/10/ixps/</link>
		<comments>http://cosu.ro/blog/2010/02/10/ixps/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 01:48:59 +0000</pubDate>
		<dc:creator>Cosu</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[Politehnica]]></category>

		<guid isPermaLink="false">http://cosu.ro/blog/?p=956</guid>
		<description><![CDATA[
The largest Romanian IXP is Interlan . Funny enough, Interlan is a response of the smaller ISPs  to the other big Romanian IXP, Ronix. Because 3 years ago joining Ronix was a complicated affair, a few small companies decided to take matters into their own hands. Currently,  Interlan has 3 times more traffic than Ronix.
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/a5837LcDHfE&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/a5837LcDHfE&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>The largest Romanian IXP is <a href="http://interlan.ro/" target="_blank">Interlan</a> . Funny enough, Interlan is a response of the smaller ISPs  to the other big Romanian IXP, <a href="http://www.ronix.ro/" target="_blank">Ronix</a>. Because 3 years ago joining Ronix was a complicated affair, a few small companies decided to take matters into their own hands. Currently,  Interlan has 3 times more traffic than Ronix.</p>
]]></content:encoded>
			<wfw:commentRss>http://cosu.ro/blog/2010/02/10/ixps/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Joining pdf files</title>
		<link>http://cosu.ro/blog/2009/11/24/joining-pdf-files/</link>
		<comments>http://cosu.ro/blog/2009/11/24/joining-pdf-files/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 08:27:02 +0000</pubDate>
		<dc:creator>Cosu</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://cosu.ro/blog/2009/11/24/joining-pdf-files/</guid>
		<description><![CDATA[Combining multiple pdfs into a single file can be handy for putting together one big final report or for submitting a single print job instead of multiple smaller ones. Joining pdfs in a Debian based Linux distribution can be easily done by using the pdfjoin utility. It is provided by the pdfjam package. One only [...]]]></description>
			<content:encoded><![CDATA[<p>Combining multiple pdfs into a single file can be handy for putting together one big final report or for submitting a single print job instead of multiple smaller ones. Joining pdfs in a Debian based Linux distribution can be easily done by using the <strong>pdfjoin</strong> utility. It is provided by the <strong>pdfjam</strong> package. One only needs to</p>
<p><strong>sudo aptitude install pdfjam</strong></p>
<p>Then all that needs to be done is cd-ing into the folder containing the large number of pdfs and running:</p>
<p><strong>pdfjoin *.pdf &#8211;outfile out.pdf</strong></p>
<p>There you go, instant pdf!</p>
]]></content:encoded>
			<wfw:commentRss>http://cosu.ro/blog/2009/11/24/joining-pdf-files/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Choosing random entries from a group</title>
		<link>http://cosu.ro/blog/2009/11/23/choosing-random-entries-from-a-group/</link>
		<comments>http://cosu.ro/blog/2009/11/23/choosing-random-entries-from-a-group/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 21:31:11 +0000</pubDate>
		<dc:creator>Cosu</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[RGC]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://cosu.ro/blog/2009/11/23/choosing-random-entries-from-a-group/</guid>
		<description><![CDATA[In the past two weeks we had a lottery-type thing on RGC.ro (Romanian Guitarist Community). Proguitar, the official importer of Fender products in Romania, wanted to give-away a custom made Fender Stratocaster electric guitar. To register, the community users had to fill out a form and choose from a series of custom options for the [...]]]></description>
			<content:encoded><![CDATA[<p>In the past two weeks we had a lottery-type thing on <a href="http://www.rgc.ro">RGC.ro</a> (Romanian Guitarist Community). Proguitar, the official importer of Fender products in Romania, wanted to give-away a custom made Fender Stratocaster electric guitar. To register, the community users had to fill out a form and choose from a series of custom options for the guitar.</p>
<p>As organizers we had  to pick out the lucky winner of the raffle.  Usually this is done by someone who is impartial. Due to the fact that we had about 1600 entries and that we are geeks we wanted to do something that geeks would do. Therefore we ditched the &#8220;extract the name of the lucky winner from a bowl&#8221;. The geek version of this is described in<a href="http://www.ietf.org/rfc/rfc2777.txt"> RFC2777 &#8211;  Publicly Verifiable Nomcom Random Selection</a></p>
<p>In short RFC2777 describes a simple publicly verifiable algorithm to pick out a set of entries from a group as random as possible. The keywords here are public &#8211; anyone can see how the entries are picked &#8211; and as random as possible. To have random values a thing called <a href="http://en.wikipedia.org/wiki/Information_entropy">information entropy</a> is needed. To get that initial random value full of juicy entropy we used, as suggested in the RFC, the results from three international lotteries. This initial random value was slightly modified for each &#8220;extracted&#8221; entry and then transformed into a MD5 hash. Due to the nature of a hash when slightly modifying  the original the resulting hash differs heavily from the original hash.</p>
<p>Below you can find a naive python implementation that can be freely used for any purpose. Just make sure you fill in the entropySource with a good initial random value.</p>
<pre>
import md5                                                 

if __name__ == '__main__':

    entropySource = "9.24.30.32.36.40./18.25.35.43.46.47./1.3.4.8.23.31./"

    numberOfEntries = 1655
    numberOfWinners = 10  

    numbers = map( lambda x: x + 1, range( numberOfEntries ) )

    i = 0
    entries = numberOfEntries
    print "index \t hex value of MD5 \t div \t selected"
    while ( i < numberOfWinners ) :
        md5hash = md5.new()
        md5hash.update( chr( i ) + entropySource + chr( i ) )
        val = int( md5hash.hexdigest(), 16 )
        modulo = val % entries
        print str( i + 1 ) + "\t" + md5hash.hexdigest() + "\t" + str( entries ) + "\t" + str( numbers[modulo] )
        del numbers[modulo]
        i += 1
        entries -= 1
</pre>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://cosu.ro/blog/2009/11/23/choosing-random-entries-from-a-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SNE Update 1</title>
		<link>http://cosu.ro/blog/2009/10/29/sne-update-1/</link>
		<comments>http://cosu.ro/blog/2009/10/29/sne-update-1/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 00:26:56 +0000</pubDate>
		<dc:creator>Cosu</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://cosu.ro/blog/?p=941</guid>
		<description><![CDATA[So over two months have passed since my last update. I was either  busy or not in the mood to update my blog. I will try to make up for lost posts somehow&#8230;
I&#8217;m now enrolled to the System and Network Engineering Master at University of Amsterdam. How I got here?

It started in January last year [...]]]></description>
			<content:encoded><![CDATA[<p>So over two months have passed since my last update. I was either  busy or not in the mood to update my blog. I will try to make up for lost posts somehow&#8230;</p>
<p>I&#8217;m now enrolled to the System and Network Engineering Master at University of Amsterdam. How I got here?</p>
<p><span id="more-941"></span></p>
<p>It started in January last year when my lovely girlfriend showed me the the http://www.os3.nl web page. I have a strong background in networking and system administration and I was very excited after I read the master presentation. I decided that I should apply for the master!</p>
<p>To apply, a number of difficult steps had to be made. The first one was taking the TOEFL test. TOEFL (test of English as a foreign language) is a simple assessment of your English language knowledge. It does not test grammar or advanced vocabulary. The test has 4 sections : reading, listening, speaking and writing. Preparation materials can be found in certain sources and more than a few days of &#8220;training&#8221; are more than enough. The difficult part is the very long duration: 4 hours! When I left the testing I barely knew what my name was and where I should go next. After about 3 hours I almost lost motivation. My only wish was to get it finished because I was bored and pissed off.  The results are posted on the TOEFL web site after about 3 or 4 weeks. They need to be sent to the University in a timely manner separate from the application documents. Sending the results the first time is free. Additional submissions are not. The cost of the TOEFL course was about 170$. Besides the actual test, extra care must be taken when registering for the test. The number of seats is limited and reservation must be made in advance. I was very lucky to book in February and take the test at the beginning of March. Booking should be made with a few months in advance to be sure to get a seat.</p>
<p>Now that I was done with TOEFL, I sent my actual application form. There is a pre application form on the UvA website which must be filled in with personal data, unofficial transcripts and a letter of motivation. I believe that the preform is a method of screening the applicants. If you pass this phase, in a few weeks an official form is sent to you by email. This one must be printed and filled in. I had to obtain official transcripts from my University (PITA), two letters of recommendation ( I got them from two of my professors: Nicolae Tapus and Razvan Rughinis), a CV and another letter of motivation. I sent them and began to wait for the answer. It should have arrived at the end of May but it didn&#8217;t. After some more waiting I was informed that I had to take an intake test (see the OS3 web page &#8211; admission). The intake test consisted of 6 sections: TCP/ Networking, Discrete math(logic, set theory, graph theory),Unix, English writing (I had to make a brief on the TELNET RFC), English comprehension (some questions about the content of the RFC) and bash scripting. The first three were &#8220;pick the answer&#8221; kind of tests while the 4th and 5th involved typing text. The last one required creating working bash scripts. Nothing too fancy : use of the standard Unix tools (cut, grep,tr, sed, awk) and some knowledge on bash scripting (ifs, loops, etc). I took the test at the beginning of  August, after 2 months of waiting. The result came after about two weeks: I was accepted!</p>
<p>During the admission process, the communication with the SNE staff and the International Officer at UvA was excellent. I was very pleasantly surprised. My previous contact with University officials from Romania was not that positive &#8230;</p>
<p>I can&#8217;t give information on any scholarships as I applied too late. Application for a scholarship has to be made sooner. Check with the  International office!</p>
<p>A bit about the SNE OS3 master. There are only two masters programmes in Europe that have a system and network engineering track. SNE at UvA is one of them. The second one is in Oslo, Finland. This aspect makes this education to stand out from all the rest. The setting in which it takes place is also special. It lasts for one full academic year. There is an option to follow the master in two years as a part time student. More on that later. Back to the setting. In most universities students have to follow a mandatory &#8220;core&#8221; course pack which is directly connected to the master track. Additional courses can be picked form a very large pool depending on the student&#8217;s interest in various fields. This means that certain courses may overlap or some blocks/semesters can be busier than others. At SNE, there is no option in choosing the subjects. The list of subjects is decided beforehand for a very good reason: the SNE courses are available only to SNE students. Any other students are not allowed to participate. Also the schedule is very strict: 10-16 everyday (with a 30min &#8211; one hour lunch break ). During the morning, a lecture is given and in the afternoon students work on assignments related to the before given lecture.</p>
<p>The Dutch educational system organizes the academic year into blocks. A block has 8 or 4 weeks. At SNE, during one 8 week block, 2 courses are given, twice a week. The lectures take place during the first 7 weeks while exams are taken in the 8th. So two exams in October and two exams in December. In Romania I had 5  or 6 courses over a period of 14 weeks with 3 weeks of exams. The learning process is accelerated while the focus is kept on only two subjects. I still don&#8217;t know which approach is better.</p>
<p>The master thesis is split into two Research Projects. One is in January and another one in June. The projects take place at different companies and they can involve a number of subjects (security, large scale systems, networking, etc).</p>
<p>The SNE lab is open only to SNE students. The lab has two rooms, a lecture room and a server room. The lecture room has dual screen eco-friendly workstations for each student while the server room houses racks with experimentation servers for the students. Each student has his own 1U server and his own /27 public IP space. Lectures are given by the SNE staff but on several ocasions guest lectures from people with more expertise in a particular field are given.</p>
<p>The mix of students is still primarily Dutch with only 4 international students. I have another colleague from Romania (he studied in Timisoara at UPT), a pole and a chinese guy. The low number for internationals is because this was the first year when admission was open to foreigners.</p>
<p>The master can be finished in two years, as a part-time student. The part-time is a bit tricky as part-time means that you still have to be 3 full days at school. You get one course per block and also you can choose when to make the reaserch projects.</p>
<p>Untill now I had two courses: Essential Skills for Administrators(ESA) and Classical Internet Applications(CIA).</p>
<p>The ESA course was a crash course into stuff that normally should have been known from a previous education. It&#8217;s role is to set a common set of knowledge in regards of using an Unix environment, for all the students. The subjects treated are: versioning systems(cvs,svn,git), LaTeX (to create fancy documents), regex&#8217;s ,sed &amp; awk (to process text files), xhtml/css/xml/xslt and three programming languages that can also be verywell used for scripting : Python, Perl and Ruby. The programming languages are presented from a basic OO level keeping language specifics to a minimum. The exam consists of a number of non-trivial questions and a practical part where the student must make use of LaTeX and xhtml.</p>
<p>The CIA course is more theoretical. It focuses on Unix and Internet history. The &#8220;classical&#8221; means that the course tackles protocols and standards that are at the core of the internet. It first starts with partitioning  by presenting various partitioning schemes (from DOS to GPT , Disklabels, Apple  ), CHS and LBA etc, goes to booting (ARP, RARP, BOOTP, DHCP), DNS , email, HTTP and lastly Directories. Without a doubt the most interesting part of this course was the DNSSEC chapter. DNSSEC is a very hot topic and therefore we spent 2 lectures on it of which one was a guest lecture from a SurfNET representative (Surfnet the equivalent of Roedu, the national education and research network).The exam consists of questions from the lectures.</p>
<p>The  teaching is of very high quality, yet the class atmosphere is not rigid. Dutch people have a way of making you comfortable while still being distant and polite. Working in such an exclusive environment means that contact with the other colleagues is more intense than in a normal master setting.</p>
<p>Certain aspects resemble my previous education at UPB but I feel that overall more effort is made by the professors.</p>
<p>For each course certain assignments are given. These assignments must be completed in order to be able to pass the course. They do not count to the grade in any way but not doing them in a sufficient manner means that you will fail the course. Evaluation of the assignments is made in a very straight forward way: RED/YELLOW/GREEN. If you get red you still have time to change/add stuff until the end of the block. Also there are no deadlines in completing the job except for the end of the block. The assignments involve a lot of hours of work as things have to work and they also need to be documented. Each student has to keep a log of his work. The log gets &#8220;graded&#8221; so doing a sloppy job in documenting even though everything works might still get you a red. A frustrating aspect is that there is no clear marking on how  red , yellow or green are given. On some assignments I spent a lot of time which translated in a &#8220;nice&#8221; or &#8220;excellent&#8221; comment but for getting just green with no comments only half of the effort was necessary. I lack good time management skills so I had to finish  some assignments in the exam week. This might get stressful and it also might affect the actual exams. Relaxed deadlines are a two edge sword&#8230;</p>
<p>My logs are publicly available here: https://www.os3.nl/2009-2010/students/cosmin_dumitru/start</p>
<p>It&#8217;s hard to give a strong opinion after two months. Right now things are getting more interesting as the following courses are far from basic. UvA has a partnership with Vrije University and so one of my mandatory courses is at Vrije. It&#8217;s called Distributed Systems and the lecturer is Marteen van Steen one of the authors of &#8220;Distributed Systems : Principles and Paradigms&#8221;. The second course I&#8217;m having this block is called Security of Systems and Networks. We will have about 10 guest lectures from various people on security and security related stuff.</p>
<p>The SNE functions like a group so the teachers seem more dedicated to the students. One example of this fact is the trip we&#8217;re going to have in December. All the students and professors will travel to Geneve to visit the LHC at CERN. Almost everything is payed by the SNE. On a normal master you wouldn&#8217;t have such an activity and even if that would be the case financial support is out of the question for such a large group. Group activities are organized from time to time: beer meetings, movie nights, special events, etc. The atmosphere in the group is very friendly and very open. There are some small quircks as computer people normally have social skills isuess but it&#8217;s nothing I&#8217;m not used to or that it can&#8217;t be overcome.</p>
<p>I think SNE is a very good opportunity as the education is not disconnected from the real world yet it doesn&#8217;t rely on proprietary technologies.It&#8217;s very good to have knowledge of the inner workings of Microsoft or Cisco but after some point the knowledge can&#8217;t be reused or easily adapted to some other context.</p>
<p>I will post some non-school related stuff at some point.</p>
<p>Sorry for the 2000 words posts!</p>
]]></content:encoded>
			<wfw:commentRss>http://cosu.ro/blog/2009/10/29/sne-update-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great success!</title>
		<link>http://cosu.ro/blog/2009/08/11/great-success/</link>
		<comments>http://cosu.ro/blog/2009/08/11/great-success/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 17:19:15 +0000</pubDate>
		<dc:creator>Cosu</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[Politehnica]]></category>

		<guid isPermaLink="false">http://cosu.ro/blog/2009/08/11/great-success/</guid>
		<description><![CDATA[(that’s what Borat would say)
Today I’ve received wonderful news! I have been accepted to the System And Network Engineering Master at the University of Amsterdam! Starting from the end of August I’ll be relocating to Amsterdam for one year of full geek experience (hopefully!). I can not thank enough my girlfriend on being such a [...]]]></description>
			<content:encoded><![CDATA[<p>(that’s what Borat would say)</p>
<p>Today I’ve received wonderful news! I have been accepted to the <a href="http://www.os3.nl">System And Network Engineering Master</a> at the University of Amsterdam! Starting from the end of August I’ll be relocating to Amsterdam for one year of full geek experience (hopefully!). I can not thank enough my girlfriend on being such a great support and motivator.Without her nothing could have happened.  Also my teachers (esp prof. Rughinis and prof. Tapus) at the Faculty of Automatic Control and Computer Science at University POLITEHNICA of Bucharest have been great mentors and supporters of my admission.</p>
<p>This could be a good time to add this blog to your RSS reader as starting from September I’ll be posting regularly on both geek related stuff and the lifestyle of an international student in the Netherlands.</p>
]]></content:encoded>
			<wfw:commentRss>http://cosu.ro/blog/2009/08/11/great-success/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Get your personal email account</title>
		<link>http://cosu.ro/blog/2009/08/06/get-your-personal-email-account/</link>
		<comments>http://cosu.ro/blog/2009/08/06/get-your-personal-email-account/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 22:39:27 +0000</pubDate>
		<dc:creator>Cosu</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Politehnica]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://cosu.ro/blog/2009/08/06/get-your-personal-email-account/</guid>
		<description><![CDATA[Most people use free email services like yahoo, gmail or live. Unfortunately all the nice sounding email addresses are taken by now so new users have to come up with strange combinations like johndoe19__smth_smth@yahoo.com. That’s very hard to remember and it sounds very unprofessional. 
Having an online presence is no longer such a big deal. [...]]]></description>
			<content:encoded><![CDATA[<p>Most people use free email services like yahoo, gmail or live. Unfortunately all the nice sounding email addresses are taken by now so new users have to come up with strange combinations like <a href="mailto:johndoe19__smth_smth@yahoo.com">johndoe19__smth_smth@yahoo.com</a>. That’s very hard to remember and it sounds very unprofessional. </p>
<p>Having an online presence is no longer such a big deal. With a few dollars a year you can get your own .com (or other top-level-domain) and another few dollars a month get you a hosting plan which provides you a couple megabytes for website storage and a number of email accounts. So with a small investment you can have a decent email like <a href="mailto:name.sourname@somedomain.com">name.sourname@somedomain.com</a> . That’s something that you could put on your personal business card. Few know that you can skip the email service offered by your webhost&#160; and instead use a more reliable service. </p>
<p>Both Microsoft and Google offer domain email hosting as a free service. Microsoft calls this Windows Live Custom Domains ( <a title="https://domains.live.com/" href="https://domains.live.com/">https://domains.live.com/</a> ) while Google calls it’s service Google Apps ( <a title="http://www.google.com/apps/intl/en/group/index.html" href="http://www.google.com/apps/intl/en/group/index.html">http://www.google.com/apps/intl/en/group/index.html</a> ) </p>
<p>Using these services is quite simple. You just have to prove that you are indeed the owner of the domain and make some DNS modifications so that emails will be handled by Google or Microsoft. Modifying the DNS records is a process that can be made using the web interface set up by your hosting provider (the one that hosts your DNS records) or by directly edition your DNS configuration in case you manage the DNS yourself. Either way both Microsoft and Google give you directions on how and what to modify.    <br />For the tech savvy readers there are 2 basic steps: add a CNAME record containing a random string to prove that you are the rightful owner and then modify the MX records with the one provided in the instructions. It’s not that complicated. </p>
<p>Why should you do this?    <br />Well both Microsoft and Google provide a better service than a normal hosting company when it comes to reliability. Sure, you don’t sign a contract that mentions any SLA but statistically speaking both offer a kick-ass service. You don’t have to worry about backups, downtime, spam and so on. It just works. For small operations, say personal email or small companies like startups , this kind of service is ideal as it cuts costs and/or gives less headaches.     <br />Using the administration page you can create, delete or reset any email account. If someone messes up his/hers password you can simply reset the account.&#160; <br />By using either the Microsoft based service or the Google one you get access to other related services like Office Online or Google Docs because the created email accounts serve as Live IDs or Google Accounts. This opens a new world of online collaboration. I know a few startups that use these kind of services. </p>
<p>What are the downsides?    <br />You don’t own your email (carefully read the EULA’s ) and some may not like this.     <br />You are limited to 50 or 100 email accounts and when you hit that limit you have to upgrade to a paid service. Individuals and small companies will just ignore this.     <br />The web mail interface will display ads just as gmail.com or live.com. Adblocker type software could make this a non-issue.     <br />You get little to no tech support. This can be neglected by individuals or small companies considering the advantages. </p>
<p>Access to the email account is made either by browser or by email client. Google Apps email can be accessed by POP3, IMAP and webmail. Unfortunately Windows Live Custom Domains does not offer access using the IMAP or POP3 protocols. To use Outlook you need to install a small piece of software called <a href="http://office.microsoft.com/en-gb/outlook/HA102225181033.aspx">Office Outlook connector</a>. The advantage of this approach is that besides email you can synchronize your address book and calendars. The IMAP and POP3 protocols don’t allow that. For Thunderbird + live you need a <a href="http://webmail.mozdev.org/">plugin</a> but you get only basic service : get/send emails, no calendar <img src='http://cosu.ro/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  . </p>
<p>With 9$ a year you could get a .com domain. You just need a public DNS server to host your records and that’s it, you can sign up for free email hosting. </p>
<p>Regarding DNS hosting, this is really not an issue. <a title="http://freedns.afraid.org/" href="http://freedns.afraid.org/">http://freedns.afraid.org/</a> is a very good option. If you don’t like it you could always ask your geek friend to help you out. </p>
<p>It’s hard to tell which service is best. Right now I’m using both Live Custom Domains and Google Apps and I’m quite happy with either one. It all depends on what you want to achieve. </p>
<p>After a year or more of using Goggle Apps I’m thinking of decommissioning all of my postfix installs (yes postfix is better than qmail) and switching to one of the above options. Having a full blown email server (even if it’s just a virtual machine with just enough resources serving many domains by means of sql and virtual domains) seems more and more a waste of time and resources for small operations. </p>
<p>I have a gut feeling that more and more companies will outsource the email service. I’ve seen this happening on a large scale in a few Universities in Romania.&#160; The Bucharest Academy of Economic Studies is using Google Apps to offer email accounts to all it’s students ( that’s more than 20.000 accounts!). Likewise there’s a small implementation of Live @EDU , a Microsoft programme that basically does the same thing, in the Faculty of Automatic Control and Computers at the POLITEHNICA University in Bucharest (that’s about 3000 accounts, give or take).&#160; </p>
]]></content:encoded>
			<wfw:commentRss>http://cosu.ro/blog/2009/08/06/get-your-personal-email-account/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Free PowerShell book</title>
		<link>http://cosu.ro/blog/2009/07/25/free-powershell-book/</link>
		<comments>http://cosu.ro/blog/2009/07/25/free-powershell-book/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 19:59:50 +0000</pubDate>
		<dc:creator>Cosu</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://cosu.ro/blog/?p=918</guid>
		<description><![CDATA[If you&#8217;re just learning PowerShell or you&#8217;re already a top scriptwizard &#8220;Mastering Powershell&#8221; might prove to be a useful resource. 
Besides the usual scripting basics like variables, functions, pipes and so on the later chapters show some usage of the scripting language for some more concrete problems like XML manipulation or user account management. Just [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re just learning PowerShell or you&#8217;re already a top scriptwizard &#8220;<a href="http://powershell.com/cs/blogs/ebook/">Mastering Powershell</a>&#8221; might prove to be a useful resource. </p>
<p>Besides the usual scripting basics like variables, functions, pipes and so on the later chapters show some usage of the scripting language for some more concrete problems like XML manipulation or user account management. Just give it a try, it&#8217;s free!</p>
]]></content:encoded>
			<wfw:commentRss>http://cosu.ro/blog/2009/07/25/free-powershell-book/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Color that manpage!</title>
		<link>http://cosu.ro/blog/2009/06/28/color-tha-manpage/</link>
		<comments>http://cosu.ro/blog/2009/06/28/color-tha-manpage/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 21:44:19 +0000</pubDate>
		<dc:creator>Cosu</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://cosu.ro/blog/?p=913</guid>
		<description><![CDATA[
Manpages are the last line of defence when it comes to unix troubleshooting. After you&#8217;ve tried everything you could have think of and it still doesn&#8217;t work you know  it&#8217;s time to read the manual.


By default linuxes use the less command to display the man page requested by the user.  The manpage is [...]]]></description>
			<content:encoded><![CDATA[<p>
Manpages are the last line of defence when it comes to unix troubleshooting. After you&#8217;ve tried everything you could have think of and it still doesn&#8217;t work you know  it&#8217;s time to read the manual.
</p>
<p>
By default linuxes use the less command to display the man page requested by the user.  The manpage is displayed as plain text and because of that it can be sometimes hard to find what you&#8217;re looking for. Keywords and special parameters are printed with a bold face to ease document navigation but sometimes this is not enough.
</p>
<p>
Navigation is done by using the up and down arrows , page up/ page down and the space key.<br />
Searching through  the  document is done by typing the / character followed by the word or phrase to search for.
</p>
<p>One useful hack is to color the manpage so that keywords parameters and so on are highlighted.  </p>
<p>
To do this you we have to set some environment variables:
</p>
<p><code></p>
<p>export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking<br />
export LESS_TERMCAP_md=$'\E[01;31m' # begin bold<br />
export LESS_TERMCAP_me=$'\E[0m' # end mode<br />
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode<br />
export LESS_TERMCAP_so=$'\E[01;44;33m' # begin standout-mode - info box<br />
export LESS_TERMCAP_ue=$'\E[0m' # end underline<br />
export LESS_TERMCAP_us=$'\E[01;32m' # begin underline<br />
</code></p>
<p>
The strange &#8216;\E0 strings stand for color codes used by the bash shell. You can check out some info about that on the <a href="http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html">bash-prompt-howto</a>
</p>
<p>
After you have customized your colors you can save the above commands in your <strong>.bashrc</strong> file (the one in your home folder) so that the variables are set every time  you logon.</p>
]]></content:encoded>
			<wfw:commentRss>http://cosu.ro/blog/2009/06/28/color-tha-manpage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quickie: Wrap to 80 columns</title>
		<link>http://cosu.ro/blog/2009/06/19/quickie-wrap-to-80-columns/</link>
		<comments>http://cosu.ro/blog/2009/06/19/quickie-wrap-to-80-columns/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 20:20:27 +0000</pubDate>
		<dc:creator>Cosu</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://cosu.ro/blog/?p=909</guid>
		<description><![CDATA[I got a complaint that my submitted text file is not wrapped to 80 columns. Rather than work my butt to mix and match the text lines until i get to the bastard&#8217;s requirement I used the neat little tool called fold 

cosu@cosu-desktop:~/Desktop$ cat file &#124; fold -s
my monitor resolution is soooooooooooooooooo small that more [...]]]></description>
			<content:encoded><![CDATA[<p>I got a complaint that my submitted text file is not wrapped to 80 columns. Rather than work my butt to mix and match the text lines until i get to the bastard&#8217;s requirement I used the neat little tool called <b>fold</b> </p>
<pre>
cosu@cosu-desktop:~/Desktop$ cat file | fold -s
my monitor resolution is soooooooooooooooooo small that more than 80 colums of
text give me a segfault.
</pre>
<p><b>-s </b> stands for break at spaces. man fold for more options.</p>
]]></content:encoded>
			<wfw:commentRss>http://cosu.ro/blog/2009/06/19/quickie-wrap-to-80-columns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
