<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>fritzone's blog</title>
	<atom:link href="http://fritzone.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://fritzone.wordpress.com</link>
	<description>Adventures in open source land</description>
	<lastBuildDate>Tue, 07 Feb 2012 09:15:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='fritzone.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>fritzone's blog</title>
		<link>http://fritzone.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://fritzone.wordpress.com/osd.xml" title="fritzone&#039;s blog" />
	<atom:link rel='hub' href='http://fritzone.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Got a Linux on my ASUS N75S</title>
		<link>http://fritzone.wordpress.com/2012/02/07/got-a-linux-on-my-asus-n75s/</link>
		<comments>http://fritzone.wordpress.com/2012/02/07/got-a-linux-on-my-asus-n75s/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 09:15:12 +0000</pubDate>
		<dc:creator>fritzone</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux distro]]></category>
		<category><![CDATA[linuxes]]></category>
		<category><![CDATA[proprietary drivers]]></category>

		<guid isPermaLink="false">http://fritzone.wordpress.com/?p=252</guid>
		<description><![CDATA[Finally I managed to get a Linux distro running on my ASUS N75S. It wasn&#8217;t easy, but after lots of tries and failures Ubuntu 12.04 alpha managed to install itself regardless of the pickiness of the nvidia Optimus. My basic problem was that I wanted to use all the 1920&#215;1080 pixels on the 17&#8243; screen, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=252&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Finally I managed to get a Linux distro running on my ASUS N75S. It wasn&#8217;t easy, but after lots of tries and failures Ubuntu 12.04 alpha managed to install itself regardless of the pickiness of the nvidia Optimus. My basic problem was that I wanted to use all the 1920&#215;1080 pixels on the 17&#8243; screen, but no Linux distro was able to use the nouveau nor the nvidia proprietary drivers due to the Optimus technology which incorporates two video cards and depending on the need uses this or that.</p>
<p>Ubuntu 12.04 alpha 2 didn&#8217;t go easily up either, since the installer crashes at the custom hard disk partitioning step, so I had to choose install along Windows 7, and lose the flexibility of a custom partitioning but for now this is only a test ride, ie. an alpha version, so hopefully this will be fixed in the final release coming in April, this year.</p>
<p>The installer did not finish the first run, it crashed somewhere at the end (and opened a bug for me, which it identified as a duplicate quickly), but after a restart I chose the Upgrade existing Linux distro, and finally this worked.</p>
<p>I have a full HD ubuntu, for now I forgive the un-user-friendliness of Unity, but looking forward to a final release of Ubuntu 12.04, hoepfully it will contain something else too.</p>
<p>And here is a list of Linuxes I have tried, together wit the result:</p>
<p>Ubuntu 11.10 &#8211; the boot disk crashes with the familiar nouveau driver error<br />
CentOS 6 &#8211; the installer reaches to the point where it is supposed to start the installation and the bails out due to some python error<br />
Fedora 13 &#8211; same as CentOS 6, but it does not tell me the error source<br />
Fedora 15 &#8211; same as above<br />
Fedora 16 &#8211; actually I have installed this in basic video mode, but bumblebee was not working regardless that I followed the steps found <a href="http://www.if-not-true-then-false.com/2011/fedora-16-nvidia-drivers-install-guide-disable-nouveau-driver/">here</a>.<br />
ArchLinux &#8211; did not find my network card (nor the wireless, nor the wired)<br />
Debian 6 &#8211; same as ArchLinux<br />
NetBSD &#8211; totally freaked out when it saw my hard secondary disk<br />
FreeBSD &#8211; totally freaked out when I installed X</p>
<p>That&#8217;s all folks.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fritzone.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fritzone.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fritzone.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fritzone.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fritzone.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fritzone.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fritzone.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fritzone.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fritzone.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fritzone.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fritzone.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fritzone.wordpress.com/252/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fritzone.wordpress.com/252/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fritzone.wordpress.com/252/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=252&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fritzone.wordpress.com/2012/02/07/got-a-linux-on-my-asus-n75s/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df61dcc6eec08cb7d62f1959b89ae843?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fritzone</media:title>
		</media:content>
	</item>
		<item>
		<title>Thing you should never do</title>
		<link>http://fritzone.wordpress.com/2012/02/07/thing-you-should-never-do/</link>
		<comments>http://fritzone.wordpress.com/2012/02/07/thing-you-should-never-do/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 09:01:28 +0000</pubDate>
		<dc:creator>fritzone</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://fritzone.wordpress.com/?p=236</guid>
		<description><![CDATA[As a programmer you inevitably get in a situation when you apply for a job, pass the interview, the occasional testings, pay a visit to the company site, get to know them, and decide that yes, I&#8217;d like to work for these guys. And then comes the almighty phrase: &#8220;We are really happy with your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=236&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As a programmer you inevitably get in a situation when you apply for a job, pass the interview, the occasional testings, pay a visit to the company site, get to know them, and decide that yes, I&#8217;d like to work for these guys. And then comes the almighty phrase: &#8220;We are really happy with your interview results, we think you would be a valuable member to our community, but before we make the next step, we would like to ask you for some references who can give recommendations regarding your work and experience&#8221;. And bang, here comes your big dilemma: whom should I give as a reference. Giving your current manager would be a kind of career suicide at your current company, if the new company is not accepting you (or you don&#8217;t accept their offer) in the end. Actually giving anyone from your current company will create a really awkward situation, so never do this. Why?</p>
<p>Let&#8217;s suppose you are an excellent programmer, and you give your colleague as a reference. You already convinced the other company that you are good at what you do. Now, your colleague is in the following strange situation: If he tells the other company, that you are a great programmer, he effectively paves your road into the new company. But your current company will not do any better without you, because they&#8217;ve just lost a great programmer, and in the end, he will also have to suffer the lack of you. Also, this makes him feel like a traitor, knowing that he is doing harm to the current company. So there&#8217;s a chance that he will tell the new company that you&#8217;re a lousy programmer, and they should not consider hiring you. With this he just told a big fat lie, and put you in a strange situations, since you&#8217;ve felt that you already have your foot inside the door at the new company.</p>
<p>Now, if you are a lousy programmer and give your colleague as a reference, he will be extraordinarily happy to tell the new company, that yes, he is a great guy, an excellent programmer, knowing that he can get rid of you and maybe get a new and better developer. It won&#8217;t hurt them. But now the people at the new company are confused&#8230; They might have already formed an opinion about you and they just wanted an assurance that their opinion is the right one. And then you get this excellent review from a reference.</p>
<p>So, as a basic rule, always try to give someone from a previous company as reference. It is much better for you, and for the people working at your current company.</p>
<p>Actually there is one exception to the rule. When they are closing down the offices, you are free to give any reference from your current company. Since all of you are in the same situation.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fritzone.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fritzone.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fritzone.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fritzone.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fritzone.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fritzone.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fritzone.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fritzone.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fritzone.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fritzone.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fritzone.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fritzone.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fritzone.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fritzone.wordpress.com/236/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=236&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fritzone.wordpress.com/2012/02/07/thing-you-should-never-do/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df61dcc6eec08cb7d62f1959b89ae843?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fritzone</media:title>
		</media:content>
	</item>
		<item>
		<title>Does Open Source experience Help in Today&#8217;s Job Market?</title>
		<link>http://fritzone.wordpress.com/2012/02/07/does-open-source-experience-help-in-todays-job-market/</link>
		<comments>http://fritzone.wordpress.com/2012/02/07/does-open-source-experience-help-in-todays-job-market/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 08:54:03 +0000</pubDate>
		<dc:creator>fritzone</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://fritzone.wordpress.com/?p=64</guid>
		<description><![CDATA[The title is taken from the linux-mag article (http://www.linux-mag.com/id/7250) but obviously I had to comment on this too &#8230; My experience is that depends on the company you are applying to. If you&#8217;re applying to one of those mega companies, who get the Windows license in bulks, packed together with Office and by default they [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=64&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The title is taken from the linux-mag article (<a href="http://www.linux-mag.com/id/7250#sg_wrapper">http://www.linux-mag.com/id/7250</a>) but obviously I had to comment on this too &#8230; My experience is that depends on the company you are applying to. If you&#8217;re applying to one of those mega companies, who get the Windows license in bulks, packed together with Office and by default they have an NTLM authentication enabled web server connecting you to the outside world, then the managers there simply don&#8217;t care if you have any experience in the Open Source world. For them Open source does not exist, and regardless that you&#8217;re trying to convince them, that there&#8217;s a world outside of windows, you&#8217;ll lack the success. They won&#8217;t hear.</p>
<p>To my biggest surprise, while working at a company like this for several years, the major key in small meetings and large meetings always was TCO reduction (yes, TCO means: Total cost of Ownership) for customers and even for inside the company. At almost every meeting someone (with an open mind &#8230; not me) suggested, what about trying out other alternatives, for example providing a Linux version of our application for smaller customers who did not had the need nor the money to pay several thousands of dollars for a genuine *x machine, or to simply uninstall a commercial version of one of the most used applications from a well known company and install the Open version of it. At all the meetings someone from high management suggested that due to strategic partnerships, this is out of question. Such a real example of closed mindedness always succeeded to make me question what on earth do they want to reduce, if not this and not that.</p>
<p>On the other end, at small companies you have a much bigger freedom of choosing what applications you want to use (of course, this also depends on the company profile, management, etc&#8230;) and<br />
But this thread has gone already too far from the original question <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So, back to the original scope. Does it really matter for an average secretary application if you know how to use OpenOffice and Thunderbird instead of the commercial variants? Maybe not. So, I&#8217;m sure it won&#8217;t help at all, since again, for not Tech jobs (NOT programmers, sys admins, etc&#8230;) there is not too much to choose from, so non-tech employees better stuck to the standard applications, since there is a much better chance that they&#8217;ll find a better job by knowing applications that you can find in (almost) every office.</p>
<p>With the tech-related areas, however the situation is different. Regardless that you&#8217;re a programmer, or a graphic designer it&#8217;s, sysadmin, etc&#8230; it can be useful that you know some &#8220;freeer&#8221; variants of commercial applications. But whether you&#8217;ll use these skills or not, depends a lot on the actual environment you will be working in.</p>
<p>As a programmer it is not mandatory to have programming experience in Linux and be an emacs guru or vi master, however it does not hurt, because the more you are experienced in the more opportunities you have to find a job you will like to stuck to for a longer time. In my experience companies which use open source software on a daily basis, regardless if they are developing for them, or just use, have a much more open and relaxed attitude towards their employees giving a much larger freedom and possibilities to choose from.</p>
<p>So, un-dust your old computer and go grab some Linux distro and up with it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fritzone.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fritzone.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fritzone.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fritzone.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fritzone.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fritzone.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fritzone.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fritzone.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fritzone.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fritzone.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fritzone.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fritzone.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fritzone.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fritzone.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=64&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fritzone.wordpress.com/2012/02/07/does-open-source-experience-help-in-todays-job-market/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df61dcc6eec08cb7d62f1959b89ae843?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fritzone</media:title>
		</media:content>
	</item>
		<item>
		<title>New programming languages</title>
		<link>http://fritzone.wordpress.com/2012/02/07/new-programming-languages/</link>
		<comments>http://fritzone.wordpress.com/2012/02/07/new-programming-languages/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 08:37:40 +0000</pubDate>
		<dc:creator>fritzone</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://fritzone.wordpress.com/?p=242</guid>
		<description><![CDATA[Some interesting new programming languages came out lately, I picked three of them and gave them a quick overview. Don&#8217;t expect something deep here, just a short presentation of the language itself. Go On of these new languages is &#8220;Go&#8221; (coming from Google). According to their web site &#8221; Go is expressive, concise, clean, and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=242&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some interesting new programming languages came out lately, I picked three of them and gave them a quick overview. Don&#8217;t expect something deep here, just a short presentation of the language itself.</p>
<h2>Go</h2>
<p>On of these new languages is &#8220;Go&#8221; (coming from Google). According to their <a href="http://golang.org/">web site</a> &#8221; Go is expressive, concise, clean, and efficient.&#8221; &#8230; A very short application down here written in the Go language shows not only the power of the language but also some interesting constructs that either can make your code more readable or a little bit confusing:</p>
<pre>package main
import "fmt"
var y, u, t = "A text", 12, false;
func main() {
    fmt.Println(y,u,t)
}</pre>
<p>with the output:</p>
<pre>A text 12 false</pre>
<p>I&#8217;ve said a little bit confusing, since at first look I&#8217;d be confused at how three variables of three different types are being initialized in one line, however you can consider this also a nice feature. It&#8217;s up to you. Applications written in the Go language can return more than one value. This comes especially handy in some cases, you can forget some ugly constructs where you had to define a new structure to hold your two variables you had to return from one function. I specially like this feature and also the syntax is very nice. See how it looks in reality:</p>
<pre>func swap(x, y string) (string, string) {
    return y, x
}</pre>
<p>In the Go language the for has lost the parentheses &#8230; that&#8217;s fine with me, so a simplified Go for looks like:</p>
<pre>sum := 0
for i := 0; i &lt; 10; i++ {
    sum += i
}</pre>
<p>However, not that the curly braces are mandatory. Yes, that makes sense, not only to enforce some basic readability but also to make the life of the parser easier <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Also, a very funny thing: there is no while keyword in Go. The while for Go is for:</p>
<pre>sum := 1
for sum &lt; 1000 {
    sum += sum
}</pre>
<p>&#8230; so the infinite loops look like: for{} that&#8217;s pretty short.</p>
<p>Shortly&#8230; the Go language looks like an interesting alternative for those who look to do some C style programming, without all the messy pointers and the overly complicated C++ class handling since Go has a funny way of dealing with classes&#8230; they are not there <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (however there are alternatives too, don&#8217;t get scared). Just go and read the doc.</p>
<h2>Rust</h2>
<p>Another promising language called <a href="http://www.rust-lang.org">Rust</a> is coming from Mozilla. Again, this is also a C like syntax with all the curly braces but not only. They took over some Pascal like syntax in the variable definition, just like:</p>
<pre>const repeat: uint = 5u;</pre>
<p>and the function definitions have a funny feeling. You define a function like:</p>
<pre>fn is_four(x: int) -&gt; bool { x == 4 }</pre>
<p>ie. this defines (with the keyword fn) a function called is_four, which takes an int and returns a bool. Now everyone decides for themselves if they like more this arrow like thing for return or the way that Go language handles the return syntax. Personally I prefer the Rust way&#8230; However I did not find a way to return more than one value from a function. So this is a big go, for the Go&#8230;</p>
<p>Rust has some feelings that the developers were influenced by Pascal, Basic, C, C++ &#8230; it is a nice mixture of those languages. I plan to spend some time with this language so maybe more posts will be here about it.</p>
<h2>Ceylon</h2>
<p>Beside of being a tea making small island <a href="http://ceylon-lang.org/">Ceylon </a>also is a new programming language backed up by RedHat. Ceylon has it roots in Java, clearly an object oriented language itself, with a few useful additions and a very java-ish syntax. Ceylon promises to get rid of the null value, with the following constructs:</p>
<pre>void hello(String? name) {
    if (exists name) {
        print("Hello, " name "!");
    }
    else {
        print("Hello, world!");
    }
}</pre>
<p>So, as you can see, the String type ends with a question mark, this means, this might be a null value, and in this case it is mandatory to check its existence wit ht exists keyword otherwise the compiler will yell on you. The <a href="http://ceylon-lang.org/documentation/introduction/">quick introduction</a> to Ceylon page gives a good overview of all the new features, it&#8217;s a good read for those interested in the future and coming direction of  the java programming language.</p>
<h2>Verdict</h2>
<p>There is no verdict. Go, take a look on them, decide which is best for thou.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fritzone.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fritzone.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fritzone.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fritzone.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fritzone.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fritzone.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fritzone.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fritzone.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fritzone.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fritzone.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fritzone.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fritzone.wordpress.com/242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fritzone.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fritzone.wordpress.com/242/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=242&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fritzone.wordpress.com/2012/02/07/new-programming-languages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df61dcc6eec08cb7d62f1959b89ae843?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fritzone</media:title>
		</media:content>
	</item>
		<item>
		<title>I&#8217;m really annoyed</title>
		<link>http://fritzone.wordpress.com/2011/12/06/im-really-annoyed/</link>
		<comments>http://fritzone.wordpress.com/2011/12/06/im-really-annoyed/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 08:19:51 +0000</pubDate>
		<dc:creator>fritzone</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://fritzone.wordpress.com/?p=240</guid>
		<description><![CDATA[I am trying to install Linux on my brand new ASUS N75S and all the major distros fail due to an error in the nouveau driver. This means, that the live CD doesn&#8217;t even start &#8230; No Ubuntu, No Fedora, No Mint&#8230; I think I&#8217;ll just go back to good old Arch &#8230; But now [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=240&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am trying to install Linux on my brand new <a href="http://www.komplett.no/k/ki.aspx?sku=647660">ASUS N75S</a> and all the major distros fail due to an error in the nouveau driver. This means, that the live CD doesn&#8217;t even start &#8230; No Ubuntu, No Fedora, No Mint&#8230; I think I&#8217;ll just go back to good old Arch &#8230; But now really, distro compilers, nouveau developers&#8230; that GeForce GT555 is out there for some time.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fritzone.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fritzone.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fritzone.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fritzone.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fritzone.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fritzone.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fritzone.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fritzone.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fritzone.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fritzone.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fritzone.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fritzone.wordpress.com/240/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fritzone.wordpress.com/240/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fritzone.wordpress.com/240/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=240&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fritzone.wordpress.com/2011/12/06/im-really-annoyed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df61dcc6eec08cb7d62f1959b89ae843?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fritzone</media:title>
		</media:content>
	</item>
		<item>
		<title>Libraries and librarians &#8211; 1.</title>
		<link>http://fritzone.wordpress.com/2011/03/23/libraries-and-librarians-1/</link>
		<comments>http://fritzone.wordpress.com/2011/03/23/libraries-and-librarians-1/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 09:54:41 +0000</pubDate>
		<dc:creator>fritzone</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://fritzone.wordpress.com/?p=231</guid>
		<description><![CDATA[It&#8217;s been some time that I really try to find what library to use for completing my plain daily C and C++ programming tasks, but to be honest, did not find any of them that 100% satisfies my needs. And for god&#8217;s sake, these tasks are not so complicated, just some simple string handling, some [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=231&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been some time that I really try to find what library to use for completing my plain daily C and C++ programming tasks, but to be honest, did not find any of them that 100% satisfies my needs. And for god&#8217;s sake, these tasks are not so complicated, just some simple string handling, some sockets, and threads, so as you can see, nothing extraordinarily complex. I thought, I&#8217;d give a shoot to</p>
<p><strong>boost</strong></p>
<p>since everyone is speaking very gladly about this pretty powerful library. It has indeed nice features, shared pointers and arrays, support for sockets, and a lot of other nice features, that all come handy. Obviously (because this is not an article praising boost) I have found things I don&#8217;t like about it. Firstly, I have an issue reading the code written with boost. The more advanced the feature you want to create, the more awkward the code becomes. Long template instantiations, then hidden objects, that are being created and silently destroyed, this is not for me. Secondly the compile times are massively increased after including a few boost header files, due to the heavy template utilisation in the libraries. Thirdly, if it compiles on your computer, does not mean, it will compile on the colleagues computer too, if there&#8217;s a different version of boost installed. But till now, still this is my favourite library till I find something else. I use boost combined with</p>
<p><strong>stl</strong></p>
<p>because it has already the string handling implemented, it&#8217;s C++ and thanks god, it&#8217;s standard. The lacks of stl (no threading, no sockets, others&#8230;) are being nicely complemented with the features offered by boost, and using these two together you can come up with a very powerful C++ solution, which will take humongous time to compile. Also, the combination of these two offers a solution, which can be ported with more or less effort very easily to a different platform and operating system. Now, I was just curious about some other alternatives, that have facilities I need. One of them was</p>
<p><strong>Qt</strong></p>
<p>which is open sourced by Nokia, and has almost everything an application developer needs. And, it&#8217;s also multi-platform. The only issue with Qt is that once you want to deploy your solution, you will need to ship the entire Qt fleet with it, the libraries having support for everything from string handling to network protocols and xml dealing, but also you can choose to statically link your application with Qt libraries, resulting in a pretty big executable. Qt is good, but do not try to mix applications written in Qt with some other C++ libraries unless you really really have to. Qt has a very authoritarian build system and you might end up getting results you are not expecting. Also, the extension to C++ (slots, signals, etc&#8230;) might drive off developers who seek a more standard way of solving things.  The next step from this was obviously</p>
<p><strong>MFC</strong></p>
<p>which is available for Windows. It&#8217;s really C++, and has all the required functionality I want &#8230; but it also comes with some strange AFX things &#8230; and since it&#8217;s defaulted to Windows, I had to drop it, since I develop a multi-platform application.</p>
<p>In the next chapter I&#8217;ll explore more libraries.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fritzone.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fritzone.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fritzone.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fritzone.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fritzone.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fritzone.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fritzone.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fritzone.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fritzone.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fritzone.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fritzone.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fritzone.wordpress.com/231/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fritzone.wordpress.com/231/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fritzone.wordpress.com/231/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=231&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fritzone.wordpress.com/2011/03/23/libraries-and-librarians-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df61dcc6eec08cb7d62f1959b89ae843?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fritzone</media:title>
		</media:content>
	</item>
		<item>
		<title>Perils of strdup</title>
		<link>http://fritzone.wordpress.com/2011/02/10/perils-of-strdup/</link>
		<comments>http://fritzone.wordpress.com/2011/02/10/perils-of-strdup/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 15:11:32 +0000</pubDate>
		<dc:creator>fritzone</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://fritzone.wordpress.com/?p=225</guid>
		<description><![CDATA[Let&#8217;s take two nice RPM based distros: Fedora12 and CentOS5.5. And the following piece of code: char *s = strdup(something); This works on Fedora. All the time. This works on CentOS too &#8230; most of the time. So, pale C programmer, be aware that using strdup on CentOS is evil, evil, evil. Instead do this: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=225&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s take two nice RPM based distros: Fedora12 and CentOS5.5. And the following piece of code:</p>
<pre>char *s = strdup(something);</pre>
<p>This works on Fedora. All the time. This works on CentOS too &#8230; most of the time. So, pale C programmer, be aware that using strdup on CentOS is evil, evil, evil. Instead do this:</p>
<pre>int l = strlen(something);
char *s = (char*)calloc(l + 1, sizeof(char));
if(!s) return;
memcpy(s, something, l);</pre>
<p>This works all the time&#8230; Some people say, that strdup is not standard C. Fine with me. But it still should work once it compiles.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fritzone.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fritzone.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fritzone.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fritzone.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fritzone.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fritzone.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fritzone.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fritzone.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fritzone.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fritzone.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fritzone.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fritzone.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fritzone.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fritzone.wordpress.com/225/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=225&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fritzone.wordpress.com/2011/02/10/perils-of-strdup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df61dcc6eec08cb7d62f1959b89ae843?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fritzone</media:title>
		</media:content>
	</item>
		<item>
		<title>Pitfalls of Apache mod programming</title>
		<link>http://fritzone.wordpress.com/2011/02/08/pitfalls-of-apache-mod-programming/</link>
		<comments>http://fritzone.wordpress.com/2011/02/08/pitfalls-of-apache-mod-programming/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 15:36:20 +0000</pubDate>
		<dc:creator>fritzone</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://fritzone.wordpress.com/?p=220</guid>
		<description><![CDATA[I think apache needs no introduction to anyone having some knowledge in Linux, web servers, internet or other digital-era inventions &#8230; Also, if you&#8217;re a little bit more tech-savvy, you might know, that you can write apache modules, which can do various other things beside of the standard &#8220;give me the file&#8221; feature already existing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=220&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I think apache needs no introduction to anyone having some knowledge in Linux, web servers, internet or other digital-era inventions &#8230; Also, if you&#8217;re a little bit more tech-savvy, you might know, that you can write apache modules, which can do various other things beside of the standard &#8220;give me the file&#8221; feature already existing in apache. A very good tutorial can be found at: http://threebit.net/tutorials/apache2_modules/tut1/tutorial1.html this will introduce you to the basics of how to write an apache module, starting from almost zero, and if you are more interested you also can read some of the chapters from the great book of Doug MacEachern and Lincoln Stein: &#8220;Writing Apache modules with Perl and C&#8221;.</p>
<p>On the other end writing apache modules is a pretty cumbersome task, so there are not too many resources available. I will try to share a few of my &#8220;Lessons Learned&#8221; throughout this blog with you, in case it will help someone.</p>
<p><strong>Lesson 1. &#8211; Creating a web server inside an apache mod.</strong></p>
<p>Let&#8217;s suppose you have the weird situation, that you need a module which needs to act as a server (yes, don&#8217;t forget, you are already integrating in an existing solution) so that clients can connect to it, and exchange information. This might freak out a security expert, but let&#8217;s hope there&#8217;s not even one around to see this requirement. The first thing you need to take into consideration, is that apache doesno&#8217;t really like the standard BSD socket functions. They work, but in my experience they are totally unreliable, since their resources might not be manageable by the apache runtime&#8230; (yes, apache is managing its resources in so called pools, meaning, you don&#8217;t need to take care of memory management if you decide to use these&#8230; and I highly recommend using these apache pools. They&#8217;ll save you a lot of time). To get your hand on the apache portable runtime&#8217;s socket management functions please consult the following link: http://dev.ariel-networks.com/apr/apr-tutorial/html/apr-tutorial-13.html</p>
<p>This is the best that is out there right now, so just read it and understand it. But your problems are far from being over. Remember the following: by default, apache is allocating a process to a request, because on the posix flavored world of X-es, spawning a process was much easier than spawning a thread. So, apache gets the request from the remote browser, spawns your process, your process loads the requested modules, your process gets the request, does some work on it and the result is sent back to the client, the process dies. Let&#8217;s see what is happening for your module: when apache spawns the new process there are some callbacks executed, usually these register some so called hooks, that are executed in various phases of the request processing. More details can be found out at: http://httpd.apache.org/docs/2.0/developer/modules.html</p>
<p>Usually you would like to create the web server in the initialization phase of the module and would like to keep it there till the apache is up and running. But with the default configuration, a web server is created for each of the processes, and with some network programming background you easily spot the bug: there can be only one web server on one port. Period. The solution is that you configure apache to run in a multi threaded, one process setup, this way you can create a shared web server between the various apache threads as a global, static variable.</p>
<p>Now you&#8217;re happy. You deploy your code, works flawlessly&#8230; for 3 or 4 hours. Then suddenly crashes. Lots of debugging don&#8217;t bring you closer to the solution. You read, and read through the code. Put in lots of debug messages&#8230; re-deploy. Great, works for 7-8 hours, then it crashes again. Yup&#8230; multi threading, sharing a global object is usually a bad idea. You deploy some cleverly placed mutexes. Finally, your code works as it&#8217;s supposed to. Don&#8217;t forget to use apache&#8217;s own mutex locking mechanism <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fritzone.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fritzone.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fritzone.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fritzone.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fritzone.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fritzone.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fritzone.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fritzone.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fritzone.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fritzone.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fritzone.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fritzone.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fritzone.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fritzone.wordpress.com/220/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=220&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fritzone.wordpress.com/2011/02/08/pitfalls-of-apache-mod-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df61dcc6eec08cb7d62f1959b89ae843?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fritzone</media:title>
		</media:content>
	</item>
		<item>
		<title>How to write C++ applications under Windows &#8211; Chapter 1</title>
		<link>http://fritzone.wordpress.com/2010/11/03/how-to-write-c-applications-under-windows-chapter-1/</link>
		<comments>http://fritzone.wordpress.com/2010/11/03/how-to-write-c-applications-under-windows-chapter-1/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 11:38:10 +0000</pubDate>
		<dc:creator>fritzone</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://fritzone.wordpress.com/?p=207</guid>
		<description><![CDATA[How to compile C++ applications under Windows A friend of mine has asked me how to compile C applications under Windows. He just started walking the pathways of C programming, so obviously some questions might come up during the rocky road of C development. To help him I&#8217;ve compiled this short list. I want to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=207&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1>How to compile C++ applications under Windows</h1>
<p>A friend of mine has asked me how to compile C applications under Windows. He just started walking the pathways of C programming, so obviously some questions might come up during the rocky road of C development. To help him I&#8217;ve compiled this short list. I want to stuck to sources which are freely available on the internet, and are easy to start up with.</p>
<p>Here is the first application I want to compile</p>
<p><code><br />
#include<br />
int main(int argc, char** argv)<br />
{<br />
printf("%s was called with %d arguments\n", argv[0], argc);<br />
}<br />
</code></p>
<p>So, here are my methods of compiling a C program under windows.</p>
<h2><strong>Visual Studio Express 2010</strong></h2>
<p>The fastest way to start C development under Windows is to download the freely available Microsoft Visual Studio Express: http://www.microsoft.com/express/Downloads/#2010-Visual-CPP . After the download has finished, run it, it will download more stuff, but after the mandatory restart you will end up with a fully functional IDE, which will be pretty easy to use.</p>
<p>When it&#8217;s set up just start it, and go to File -&gt; New -&gt; Project (or just press Ctrl + Shift + N) and select Win32 Console application, down below fill in the required fields and press Ok. The screenshot looks like:</p>
<p><a href="http://fritzone.files.wordpress.com/2010/11/vs2010_new_project.png"><img class="alignnone size-full wp-image-209" title="vs2010_new_project" src="http://fritzone.files.wordpress.com/2010/11/vs2010_new_project.png?w=500&#038;h=345" alt="" width="500" height="345" /></a></p>
<p>Now, on the next screen do the following: Click on the Application settings, and check the empty project.</p>
<p>Screenshot:</p>
<p><a href="http://fritzone.files.wordpress.com/2010/11/vs2010_new_project_app_settings.png"><img class="alignnone size-full wp-image-210" title="vs2010_new_project_app_settings" src="http://fritzone.files.wordpress.com/2010/11/vs2010_new_project_app_settings.png?w=500&#038;h=424" alt="" width="500" height="424" /></a></p>
<p>Press Finish.</p>
<p>Now you have an empty project. I personally prefer creating empty projects, since you have a much better control over file creation.</p>
<p>The next step is to create a C++ source file and add it to the project, so: right click the project icon select Add -&gt; New Item&#8230;</p>
<p>Screenshot:</p>
<p><a href="http://fritzone.files.wordpress.com/2010/11/vs2010_new_file.png"></a><a href="http://fritzone.files.wordpress.com/2010/11/vs2010_new_file1.png"><img class="alignnone size-full wp-image-212" title="vs2010_new_file" src="http://fritzone.files.wordpress.com/2010/11/vs2010_new_file1.png?w=500&#038;h=393" alt="" width="500" height="393" /></a></p>
<p>in the new dialog box select select C++ file.</p>
<p>Screenshot:</p>
<p><a href="http://fritzone.files.wordpress.com/2010/11/vs2010_new_file2.png"><img class="alignnone size-full wp-image-213" title="vs2010_new_file" src="http://fritzone.files.wordpress.com/2010/11/vs2010_new_file2.png?w=500&#038;h=345" alt="" width="500" height="345" /></a></p>
<p>And click Add&#8230;</p>
<p>type in the program above, Save and press Ctrl + F5 to run it. The result should look like.</p>
<p><a href="http://fritzone.files.wordpress.com/2010/11/result.png"><img class="alignnone size-full wp-image-214" title="result" src="http://fritzone.files.wordpress.com/2010/11/result.png?w=500&#038;h=254" alt="" width="500" height="254" /></a></p>
<p>Now, this should do it.</p>
<p>The advantages of the Visual Studio approach are that you will get a very good IDE, and you will have the chance to familiarize yourself with it, later it might come handy. This is an industry standard application, if you will get a job later in the Windows application development area, the chances that you will use Visual Studio are almost 100% otherwise do not work for that company.</p>
<p>The disadvantages Visual Studio are, that you will get used to it &#8230; and later when you will not have the chance to work with it you will really miss all its great features. Beside of this, no disadvantage was identified.</p>
<p>The next chapter will present how to write applications using different IDE&#8217;s</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fritzone.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fritzone.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fritzone.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fritzone.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fritzone.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fritzone.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fritzone.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fritzone.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fritzone.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fritzone.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fritzone.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fritzone.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fritzone.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fritzone.wordpress.com/207/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=207&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fritzone.wordpress.com/2010/11/03/how-to-write-c-applications-under-windows-chapter-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df61dcc6eec08cb7d62f1959b89ae843?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fritzone</media:title>
		</media:content>

		<media:content url="http://fritzone.files.wordpress.com/2010/11/vs2010_new_project.png" medium="image">
			<media:title type="html">vs2010_new_project</media:title>
		</media:content>

		<media:content url="http://fritzone.files.wordpress.com/2010/11/vs2010_new_project_app_settings.png" medium="image">
			<media:title type="html">vs2010_new_project_app_settings</media:title>
		</media:content>

		<media:content url="http://fritzone.files.wordpress.com/2010/11/vs2010_new_file1.png" medium="image">
			<media:title type="html">vs2010_new_file</media:title>
		</media:content>

		<media:content url="http://fritzone.files.wordpress.com/2010/11/vs2010_new_file2.png" medium="image">
			<media:title type="html">vs2010_new_file</media:title>
		</media:content>

		<media:content url="http://fritzone.files.wordpress.com/2010/11/result.png" medium="image">
			<media:title type="html">result</media:title>
		</media:content>
	</item>
		<item>
		<title>blackmagic in linux</title>
		<link>http://fritzone.wordpress.com/2010/06/17/blackmagic-in-linux/</link>
		<comments>http://fritzone.wordpress.com/2010/06/17/blackmagic-in-linux/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 09:30:17 +0000</pubDate>
		<dc:creator>fritzone</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://fritzone.wordpress.com/?p=204</guid>
		<description><![CDATA[So, I have this wonderful blackmagic SDI card, insert the card in its PCI-E slot, compile the drivers, insmod and then my machine freezes&#8230; Restart, insmod, freeze. Restart, install official driver from their site. Restart. Not even starting, kernel panic in the first screen&#8230; some googling, and then back to the provider site. They tell [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=204&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So, I have this wonderful blackmagic SDI card, insert the card in its PCI-E slot, compile the drivers, insmod and then my machine freezes&#8230; Restart, insmod, freeze. Restart, install official driver from their site. Restart. Not even starting, kernel panic in the first screen&#8230; some googling, and then back to the provider site. They tell me is I want to use pcie_aspm=off in the bootloader. Good&#8230; card remove, edit /boot/grub/menu.lst append stuff at the end, card back, start machine and it works. Wonderful&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/fritzone.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/fritzone.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/fritzone.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/fritzone.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/fritzone.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/fritzone.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/fritzone.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/fritzone.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/fritzone.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/fritzone.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/fritzone.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/fritzone.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/fritzone.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/fritzone.wordpress.com/204/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=fritzone.wordpress.com&amp;blog=4122647&amp;post=204&amp;subd=fritzone&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://fritzone.wordpress.com/2010/06/17/blackmagic-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/df61dcc6eec08cb7d62f1959b89ae843?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">fritzone</media:title>
		</media:content>
	</item>
	</channel>
</rss>
