<?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>Freya.no &#187; Dev</title>
	<atom:link href="http://wp.freya.no/tag/dev/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.freya.no</link>
	<description>Knowledge is power</description>
	<lastBuildDate>Wed, 28 Jul 2010 16:50:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Flex: force focus on parent change</title>
		<link>http://wp.freya.no/2010/07/flex-force-focus-on-parent-change/</link>
		<comments>http://wp.freya.no/2010/07/flex-force-focus-on-parent-change/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 08:36:05 +0000</pubDate>
		<dc:creator>Tatyana</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=743</guid>
		<description><![CDATA[I was trying to solve a problem of resetting a focus if the parent changes. I had different buttons that show the same .mxml-form but with different data. The problem was that I needed the focus to be on the first date-field whenever the form is shown so that the user can begin typing data [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to solve a problem of resetting a focus if the parent changes. I had different buttons that show the same .mxml-form but with different data. The problem was that I needed the focus to be on the first date-field whenever the form is shown so that the user can begin typing data right away.</p>
<pre class="brush: xml;">
&lt;mx:HBox&gt;
       &lt;mx:Button id=&quot;noData&quot; click=&quot;showPanelWithNoData()&quot; /&gt;
       &lt;mx:Button id=&quot;someData&quot; click=&quot;showPanelWithSomeData()&quot; /&gt;
       &lt;mx:Button id=&quot;withData&quot; click=&quot;showPanelWithData()&quot; /&gt;

       &lt;myCustomForm:DataForm width=&quot;100%&quot; /&gt;
&lt;/mx:HBox&gt;
</pre>
<p>So for each time one of the buttons is pushed I need the focus to be on myDate-field. To solve the problem I used &#8220;<strong>updateComplete</strong>&#8220;-property of the field.</p>
<p>DataForm.mxml</p>
<pre class="brush: xml;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;DataForm
    xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;&gt;
    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.managers.FocusManager;

            private function resetFocus():void {
                if (focusManager != null &amp;&amp; myDate.focusManager != null) {
                    focusManager.setFocus(myDate);
                }
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:FormItem&gt;
        &lt;mx:TextField id=&quot;myDate&quot;
            updateComplete=&quot;resetFocus()&quot;/&gt;
    &lt;/mx:FormItem&gt;

&lt;/DataForm&gt;
</pre>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=743" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/2010/07/flex-force-focus-on-parent-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recipe for a high-quality &#8220;equals&#8221; method</title>
		<link>http://wp.freya.no/java/recipe-for-a-high-quality-equals-method/</link>
		<comments>http://wp.freya.no/java/recipe-for-a-high-quality-equals-method/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 21:49:25 +0000</pubDate>
		<dc:creator>Tatyana</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Memorable]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[equals]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=675</guid>
		<description><![CDATA[1. Use the == to check if the argument is a reference to this object. 2. Use the instanceof operator to check if the argument has the correct type. 3. Cast the argument to the correct type. 4. For each &#8220;significant&#8221; field in the class, check if that field of the argument matches the corresponding [...]]]></description>
			<content:encoded><![CDATA[<p>1. Use the == to check if the argument is a reference to this object.</p>
<p>2. Use the <em>instanceof </em>operator to check if the argument has the correct type.</p>
<p>3. Cast the argument to the correct type.</p>
<p>4. For each &#8220;significant&#8221; field in the class, check if that field of the argument matches the corresponding field of this object.</p>
<p>5. Always override <em>hashCode </em>when you override <em>equals</em>.</p>
<p>6. Don&#8217;t substitute another type for Object in the equals declaration.</p>
<p>7. Write unit-test.</p>
<pre class="brush: java;">
@Override
public boolean equals(Object obj) {
   if(obj == this) {
      return true;
   }

   if(!(obj instanceof Person)) {
      return false;
   }

   Person p = (Person)obj;

   return p.name.equals(name) &amp;&amp;
            p.birthday.equals(birthday) &amp;&amp;
            p.personNumber == personNumber;
}
</pre>
<p><em><br />
Ref.&#8221;Effective Java&#8221; by Joshua Bloch</em></pre>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=675" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/java/recipe-for-a-high-quality-equals-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EJB 3.0 Roles</title>
		<link>http://wp.freya.no/2010/03/ejb-3-0-roles/</link>
		<comments>http://wp.freya.no/2010/03/ejb-3-0-roles/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 19:14:18 +0000</pubDate>
		<dc:creator>Tatyana</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[ejb]]></category>
		<category><![CDATA[ejb3]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=619</guid>
		<description><![CDATA[I had some difficult time understanding all the roles regarding EJB3. Here is an easy-to-remember description of these roles that I found here. Imagine a factory producing computers: Bean Provider: Chip manufacturer. On the chip, there will be a label with &#8220;Warranty void if removed&#8221; the chip has the logic and the label sets a [...]]]></description>
			<content:encoded><![CDATA[<p>I had some difficult time understanding all the roles regarding EJB3. Here is an easy-to-remember description of these roles that I found <a href="http://www.coderanch.com/t/485260/EJB-Certification-SCBCD/certification/EJB-roles">here</a>.</p>
<p>Imagine a factory producing computers:</p>
<p><strong>Bean Provider: </strong><br />
Chip manufacturer. On the chip, there will be a label with  &#8220;Warranty void if removed&#8221; the chip has the logic and the label sets a  Role. If you are not authorized to repair it, warranty voids. (i.e. you  cannot access the internal chip if you are not in the role of &#8220;Warranty  Repair Person&#8221;.)</p>
<p><strong>Application Assembler</strong><br />
Mainboard assembler. It takes various chips and puts them on the  mainboard. If any additional resistor or cable are required, it will put  everything togheter to have something that is some kind of working unit  but requires additional assembling.</p>
<p><strong>EJB Server Provider</strong><br />
The EJB Server provider is the Computer Case manufacturer providing  a case with a power supply. Is a container for the mainboard</p>
<p><strong>Deployer</strong><br />
As every computer case is different and power voltage vary country  by country, the Deployer makes sure to adapt the mainboard to the  working environment. In this case adjusts the Voltage on the power  supply, and connects the cables. At the same time he will define who are  the person allowed to repair it (i.e. provide a list of authorized  repair centers)</p>
<p><strong>Persistence Provider</strong><br />
the persistence provider could be the network card company that  provides the driver to connect to a network.</p>
<p><strong>System Administrator</strong><br />
Is the person in charge to install the operating system and do  necessary configuration changes to the OS to connect to the server, and  will make sure to monitor that everything is working fine.</p>
<p>More about Enterprise Java Beans 3.0 and Sun Certified Business Component Developer (SCBCD) certification <a href="http://tatyana.freya.no/scbcd/">here</a>.</p>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=619" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/2010/03/ejb-3-0-roles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clean code</title>
		<link>http://wp.freya.no/2010/02/clean-code/</link>
		<comments>http://wp.freya.no/2010/02/clean-code/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 20:13:49 +0000</pubDate>
		<dc:creator>Tatyana</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Memorable]]></category>
		<category><![CDATA[clean code]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=585</guid>
		<description><![CDATA[The book by Robert C. Martin &#8220;Clean Code&#8221; is a really very useful material for all programmers. You can disagree with him sometimes (as I do), but it still provides some useful notes that helped me to place my programmer experience and knowledge where they belong. Here I&#8217;ll provide some key notes that I did [...]]]></description>
			<content:encoded><![CDATA[<p>The book by Robert C. Martin &#8220;Clean Code&#8221; is a really very useful material for all programmers. You can disagree with him sometimes (as I do), but it still provides some useful notes that helped me to place my programmer experience and knowledge where they belong. Here I&#8217;ll provide some key notes that I did while reading the book and that I&#8217;d like to memorize.</p>
<p>What you as a programmer <strong>SHOULD DO</strong>:</p>
<p>1. Give everything meaningful, searchable and pronounceable names.<br />
2. Use names that other programmers can understand. Remember that the code is for programmers, not customers.<br />
3. Functions should be small and smaller than that.<br />
4. Functions should do one thing. They should do it well. They should do it only.<br />
5. The ideal number of arguments for a function is zero. Max 3.<br />
6. Prefer exceptions to returning error codes. Create informative error messages.<br />
7. Prefer meaningful names to comments.<br />
8. Write JavaDoc only for public API&#8217;s.<br />
9. Format your code. While working in a team use a single formatting style.<br />
10. Test your code with clean tests. Remember that test code is just as important as production code.<br />
11. Test just one concept per test.<br />
12. Test should follow the FIRST rule:</p>
<ul> <strong>Fast </strong>-  tests should be fast.<br />
<strong>Independent </strong>- tests should not depend on each other<br />
<strong>Repeatable </strong>- tests should be repeatable in any environment<br />
<strong>Self-validating</strong> &#8211; the test should have a boolean output<br />
<strong>Timely </strong>- write unit tests before the production code.</ul>
<p>What you as a programmer should <strong>AVOID</strong>:<br />
1. Avoid encoding<br />
2. Avoid duplicate code. Watch out not only duplicate functions but also duplicate functionality.<br />
3. Avoid noisy, redundant, uninformative comments. Remember that one of the more common motivations for writing comments is bad code.</p>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=585" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/2010/02/clean-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java conversions and 7 Golden rules of widening, boxing &amp; varargs</title>
		<link>http://wp.freya.no/java/java-conversions-and-golden-rules-of-widening-boxing-varargs/</link>
		<comments>http://wp.freya.no/java/java-conversions-and-golden-rules-of-widening-boxing-varargs/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 19:31:43 +0000</pubDate>
		<dc:creator>Tatyana</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[primitives]]></category>
		<category><![CDATA[scjp]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=510</guid>
		<description><![CDATA[Here is a very useful java conversion table that I&#8217;ve created while preparing for the Sun Certified Java Programmer exam. And here is a complete overview of the Golden rules of widening, boxing &#38; varargs: 1. Primitive Widening &#62; Boxing &#62; Varargs. 2. Widening and Boxing (WB) not allowed. 3. Boxing and Widening (BW) allowed. [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a very useful java conversion table that I&#8217;ve created while preparing for the Sun Certified Java Programmer exam.</p>
<div id="attachment_511" class="wp-caption alignnone" style="width: 900px"><a href="http://wp.freya.no/files/2010/02/conversions.jpg"><img class="size-full wp-image-511" title="Java conversions table" src="http://wp.freya.no/files/2010/02/conversions.jpg" alt="primitives conversion" width="890" height="242" /></a><p class="wp-caption-text">Java primitive conversions table</p></div>
<p>And here is a complete overview of the Golden rules of widening, boxing &amp; varargs:</p>
<p>1. Primitive Widening &gt; Boxing &gt; Varargs.<br />
2. Widening and Boxing (WB) not allowed.<br />
3. Boxing and Widening (BW) allowed.<br />
4. While overloading Widening + vararg and boxing + vararg are mutually exclusive of each other.<br />
5. Widening between wrapper classes not allowed<br />
6. Widening+varArgs &amp; Boxing+varargs are individually allowed (but not allowed in overloaded version of method)<br />
7. Boxing+Widening is preferred over Boxing+Varargs.</p>
<p>More explanation <a href="http://www.coderanch.com/t/417622/Programmer-Certification-SCJP/certification/Golden-Rules-widening-boxing-varargs#1918932">here</a>.</p>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=510" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/java/java-conversions-and-golden-rules-of-widening-boxing-varargs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Building opensource Qt on Windows</title>
		<link>http://wp.freya.no/2009/12/building-opensource-qt-on-windows/</link>
		<comments>http://wp.freya.no/2009/12/building-opensource-qt-on-windows/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 10:43:47 +0000</pubDate>
		<dc:creator>kent</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=263</guid>
		<description><![CDATA[Open Visual Studio command prompt. Go to the folder you installed the source files in. Execute configure with the wanted options. S:\Qt\2009.04\qt&#62;configure -debug-and-release -fast -no-webkit -opensource This is the Qt for Windows Open Source Edition. You are licensed to use this software under the terms of the GNU General Public License (GPL) version 3 or [...]]]></description>
			<content:encoded><![CDATA[<p>Open Visual Studio command prompt.</p>
<p>Go to the folder you installed the source files in.</p>
<p>Execute configure with the wanted options.</p>
<blockquote>
<pre>S:\Qt\2009.04\qt&gt;configure -debug-and-release -fast -no-webkit -opensource

This is the Qt for Windows Open Source Edition.

You are licensed to use this software under the terms of
the GNU General Public License (GPL) version 3
or the GNU Lesser General Public License (LGPL) version 2.1.

Type '3' to view the GNU General Public License version 3 (GPLv3).
Type 'L' to view the Lesser GNU General Public License version 2.1 (LGPLv2.1).
Type 'y' to accept this license offer.
Type 'n' to decline this license offer.

Do you accept the terms of the license?</pre>
</blockquote>
<p>Wait.</p>
<p>Then execute nmake and wait.</p>
<h2 id="toc-configure-command-line-options">&#8220;configure&#8221; command line options</h2>
<pre>Usage: configure [-buildkey &lt;key&gt;]
 [-release] [-debug] [-debug-and-release] [-shared] [-static]
 [-no-fast] [-fast] [-no-exceptions] [-exceptions]
 [-no-accessibility] [-accessibility] [-no-rtti] [-rtti]
 [-no-stl] [-stl] [-no-sql-&lt;driver&gt;] [-qt-sql-&lt;driver&gt;]
 [-plugin-sql-&lt;driver&gt;] [-system-sqlite] [-arch &lt;arch&gt;]
 [-D &lt;define&gt;] [-I &lt;includepath&gt;] [-L &lt;librarypath&gt;]
 [-help] [-no-dsp] [-dsp] [-no-vcproj] [-vcproj]
 [-no-qmake] [-qmake] [-dont-process] [-process]
 [-no-style-&lt;style&gt;] [-qt-style-&lt;style&gt;] [-redo]
 [-saveconfig &lt;config&gt;] [-loadconfig &lt;config&gt;]
 [-qt-zlib] [-system-zlib] [-no-gif] [-qt-gif] [-no-libpng]
 [-qt-libpng] [-system-libpng] [-no-libtiff] [-qt-libtiff]
 [-system-libtiff] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg]
 [-no-libmng] [-qt-libmng] [-system-libmng] [-no-qt3support] [-mmx]
 [-no-mmx] [-3dnow] [-no-3dnow] [-sse] [-no-sse] [-sse2] [-no-sse2]
 [-no-iwmmxt] [-iwmmxt] [-direct3d] [-openssl] [-openssl-linked]
 [-no-openssl] [-no-dbus] [-dbus] [-dbus-linked] [-platform &lt;spec&gt;]
 [-qtnamespace &lt;namespace&gt;] [-qtlibinfix &lt;infix&gt;] [-no-phonon]
 [-phonon] [-no-phonon-backend] [-phonon-backend]
 [-no-webkit] [-webkit]
 [-no-scripttools] [-scripttools]
 [-graphicssystem raster|opengl]

Installation options:

 You may use these options to turn on strict plugin loading:

 -buildkey &lt;key&gt; .... Build the Qt library and plugins using the specified
 &lt;key&gt;.  When the library loads plugins, it will only
 load those that have a matching &lt;key&gt;.

Configure options:

 The defaults (*) are usually acceptable. A plus (+) denotes a default value
 that needs to be evaluated. If the evaluation succeeds, the feature is
 included. Here is a short explanation of each option:

 -release ........... Compile and link Qt with debugging turned off.
 *  -debug ............. Compile and link Qt with debugging turned on.
 +  -debug-and-release . Compile and link two Qt libraries, with and without
 debugging turned on.

 -opensource ........ Compile and link the Open-Source Edition of Qt.
 -commercial ........ Compile and link the Commercial Edition of Qt.

 -developer-build ... Compile and link Qt with Qt developer options
 (including auto-tests exporting)

 *  -shared ............ Create and use shared Qt libraries.
 -static ............ Create and use static Qt libraries.

 -ltcg .............. Use Link Time Code Generation. (Release builds only)
 *  -no-ltcg ........... Do not use Link Time Code Generation.

 *  -no-fast ........... Configure Qt normally by generating Makefiles for all
 project files.
 -fast .............. Configure Qt quickly by generating Makefiles only for
 library and subdirectory targets.  All other Makefiles
 are created as wrappers which will in turn run qmake

 -no-exceptions ..... Disable exceptions on platforms that support it.
 *  -exceptions ........ Enable exceptions on platforms that support it.

 -no-accessibility .. Do not compile Windows Active Accessibility support.
 *  -accessibility ..... Compile Windows Active Accessibility support.

 -no-stl ............ Do not compile STL support.
 *  -stl ............... Compile STL support.

 -no-sql-&lt;driver&gt; ... Disable SQL &lt;driver&gt; entirely, by default none are
 turned on.
 -qt-sql-&lt;driver&gt; ... Enable a SQL &lt;driver&gt; in the Qt Library.
 -plugin-sql-&lt;driver&gt; Enable SQL &lt;driver&gt; as a plugin to be linked to at run
 time.
 Available values for &lt;driver&gt;:
 mysql
 psql
 oci
 odbc
 tds
 db2
 +                         sqlite
 sqlite2
 ibase
 (drivers marked with a '+' have been detected as
 available on this system)

 -system-sqlite ..... Use sqlite from the operating system.

 -no-qt3support ..... Disables the Qt 3 support functionality.

 -no-opengl ......... Disables OpenGL functionality

 -platform &lt;spec&gt; ... The operating system and compiler you are building on.
 (default %QMAKESPEC%)

 -xplatform &lt;spec&gt; .. The operating system and compiler you are cross
 compiling to.

 See the README file for a list of supported operating
 systems and compilers.

 -qtnamespace &lt;namespace&gt; Wraps all Qt library code in 'namespace name {...}
 -qtlibinfix &lt;infix&gt; Renames all Qt* libs to Qt*&lt;infix&gt;

 -D &lt;define&gt; ........ Add an explicit define to the preprocessor.
 -I &lt;includepath&gt; ... Add an explicit include path.
 -L &lt;librarypath&gt; ... Add an explicit library path.
 -l &lt;libraryname&gt; ... Add an explicit library name, residing in a
 librarypath.

 -graphicssystem &lt;sys&gt; Specify which graphicssystem should be used.
 Available values for &lt;sys&gt;:
 *                         raster - Software rasterizer
 opengl - Using OpenGL accelleration, experimental!
 -help, -h, -? ...... Display this information.

Third Party Libraries:

 -qt-zlib ........... Use the zlib bundled with Qt.
 +  -system-zlib ....... Use zlib from the operating system.
 See http://www.gzip.org/zlib

 -no-gif ............ Do not compile the plugin for GIF reading support.
 +  -qt-gif ............ Compile the plugin for GIF reading support.
 See also src/plugins/imageformats/gif/qgifhandler.h

 -no-libpng ......... Do not compile in PNG support.
 -qt-libpng ......... Use the libpng bundled with Qt.
 +  -system-libpng ..... Use libpng from the operating system.
 See http://www.libpng.org/pub/png

 -no-libmng ......... Do not compile in MNG support.
 -qt-libmng ......... Use the libmng bundled with Qt.
 +  -system-libmng ..... Use libmng from the operating system.
 See See http://www.libmng.com

 -no-libtiff ........ Do not compile the plugin for TIFF support.
 -qt-libtiff ........ Use the libtiff bundled with Qt.
 +  -system-libtiff .... Use libtiff from the operating system.
 See http://www.libtiff.org

 -no-libjpeg ........ Do not compile the plugin for JPEG support.
 -qt-libjpeg ........ Use the libjpeg bundled with Qt.
 +  -system-libjpeg .... Use libjpeg from the operating system.
 See http://www.ijg.org

Qt for Windows only:

 -no-dsp ............ Do not generate VC++ .dsp files.
 *  -dsp ............... Generate VC++ .dsp files, only if spec "win32-msvc".

 -no-vcproj ......... Do not generate VC++ .vcproj files.
 *  -vcproj ............ Generate VC++ .vcproj files, only if platform
 "win32-msvc.net".

 -no-incredibuild-xge Do not add IncrediBuild XGE distribution commands to
 custom build steps.
 +  -incredibuild-xge .. Add IncrediBuild XGE distribution commands to custom
 build steps. This will distribute MOC and UIC steps,
 and other custom buildsteps which are added to the
 INCREDIBUILD_XGE variable.
 (The IncrediBuild distribution commands are only added
 to Visual Studio projects)

 -no-plugin-manifests Do not embed manifests in plugins.
 *  -plugin-manifests .. Embed manifests in plugins.

 -no-qmake .......... Do not compile qmake.
 *  -qmake ............. Compile qmake.

 -dont-process ...... Do not generate Makefiles/Project files. This will
 override -no-fast if specified.
 *  -process ........... Generate Makefiles/Project files.

 -no-rtti ........... Do not compile runtime type information.
 *  -rtti .............. Compile runtime type information.

 -no-mmx ............ Do not compile with use of MMX instructions
 +  -mmx ............... Compile with use of MMX instructions
 -no-3dnow .......... Do not compile with use of 3DNOW instructions
 +  -3dnow ............. Compile with use of 3DNOW instructions
 -no-sse ............ Do not compile with use of SSE instructions
 +  -sse ............... Compile with use of SSE instructions
 -no-sse2 ........... Do not compile with use of SSE2 instructions
 +  -sse2 .............. Compile with use of SSE2 instructions
 +  -direct3d .......... Compile in Direct3D support (experimental - see
 INSTALL for more info)
 -no-openssl ........ Do not compile in OpenSSL support
 +  -openssl ........... Compile in run-time OpenSSL support
 -openssl-linked .... Compile in linked OpenSSL support
 -no-dbus ........... Do not compile in D-Bus support
 +  -dbus .............. Compile in D-Bus support and load libdbus-1 dynamicall
 y
 -dbus-linked ....... Compile in D-Bus support and link to libdbus-1
 -no-phonon ......... Do not compile in the Phonon module
 +  -phonon ............ Compile the Phonon module (Phonon is built if a decent
 C++ compiler is used.)
 -no-phonon-backend . Do not compile the platform-specific Phonon backend-pl
 ugin
 *  -phonon-backend .... Compile in the platform-specific Phonon backend-plugin
 -no-webkit ......... Do not compile in the WebKit module
 +  -webkit ............ Compile in the WebKit module (WebKit is built if a
 decent C++ compiler is used.)
 -no-scripttools .... Do not build the QtScriptTools module.
 *  -scripttools ....... Build the QtScriptTools module.
 -arch &lt;arch&gt; ....... Specify an architecture.
 Available values for &lt;arch&gt;:
 *                         windows
 windowsce
 boundschecker
 generic

 -no-style-&lt;style&gt; .. Disable &lt;style&gt; entirely.
 -qt-style-&lt;style&gt; .. Enable &lt;style&gt; in the Qt Library.
 Available styles:
 *                         windows
 +                         windowsxp
 +                         windowsvista
 *                         plastique
 *                         cleanlooks
 *                         motif
 *                         cde
 windowsce
 windowsmobile

 -loadconfig &lt;config&gt; Run configure with the parameters from file configure_
 &lt;config&gt;.cache.
 -saveconfig &lt;config&gt; Run configure and save the parameters in file
 configure_&lt;config&gt;.cache.
 -redo .............. Run configure with the same parameters as last time.

Qt for Windows CE only:

 -no-iwmmxt ......... Do not compile with use of IWMMXT instructions
 +  -iwmmxt ............ Do compile with use of IWMMXT instructions (Qt for
 Windows CE on Arm only)
 *  -no-crt ............ Do not add the C runtime to default deployment rules
 -qt-crt ............ Qt identifies C runtime during project generation
 -crt &lt;path&gt; ........ Specify path to C runtime used for project generation.
 -no-cetest ......... Do not compile Windows CE remote test application
 +  -cetest ............ Compile Windows CE remote test application
 -signature &lt;file&gt; .. Use file for signing the target project
 -opengl-es-cm ...... Enable support for OpenGL ES Common
 -opengl-es-cl ...... Enable support for OpenGL ES Common Lite
 -opengl-es-2 ....... Enable support for OpenGL ES 2.0
 *  -phonon-wince-ds9 .. Enable Phonon Direct Show 9 backend for Windows CE
</pre>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=263" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/2009/12/building-opensource-qt-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto: Kickstart an existing md array</title>
		<link>http://wp.freya.no/2009/06/howto-kickstart-an-existing-md-array/</link>
		<comments>http://wp.freya.no/2009/06/howto-kickstart-an-existing-md-array/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 20:34:01 +0000</pubDate>
		<dc:creator>kent</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=246</guid>
		<description><![CDATA[mdadm --assemble /dev/md0 /dev/sd[abcd]1]]></description>
			<content:encoded><![CDATA[<pre>mdadm --assemble /dev/md0 /dev/sd[abcd]1</pre>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=246" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/2009/06/howto-kickstart-an-existing-md-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to specify shared object path in Linux</title>
		<link>http://wp.freya.no/2009/02/how-to-specify-shared-object-path-in-linux/</link>
		<comments>http://wp.freya.no/2009/02/how-to-specify-shared-object-path-in-linux/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 21:00:27 +0000</pubDate>
		<dc:creator>kent</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=226</guid>
		<description><![CDATA[If you&#8217;re on a system as a user and with no means of installing custom libraries or updating libraries for your custom program, you can load your own libraries with this simple command. $ ./executable ./executable: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory Use ldd to [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re on a system as a user and with no means of installing custom libraries or updating libraries for your custom program, you can load your own libraries with this simple command.</p>
<pre>$ ./executable
./executable: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory</pre>
<p>Use ldd to find out what missing libraries you have:</p>
<pre>$ ldd executable
        linux-gate.so.1 =&gt;  (0xa942d000)
        libncursesw.so.5 =&gt; /lib/libncursesw.so.5 (0xa93e9000)
        <span style="color: #ff0000">libcurl.so.4 =&gt; not found</span>
        librt.so.1 =&gt; /lib/tls/i686/cmov/librt.so.1 (0xa93df000)
        libssl.so.0.9.8 =&gt; /usr/lib/i686/cmov/libssl.so.0.9.8 (0xa939d000)
        libdl.so.2 =&gt; /lib/tls/i686/cmov/libdl.so.2 (0xa9399000)
        libz.so.1 =&gt; /usr/lib/libz.so.1 (0xa9384000)
        libcrypto.so.0.9.8 =&gt; /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xa9241000)
        libsigc-2.0.so.0 =&gt; /usr/lib/libsigc-2.0.so.0 (0xa923b000)
        libstdc++.so.6 =&gt; /usr/lib/libstdc++.so.6 (0xa9148000)
        libm.so.6 =&gt; /lib/tls/i686/cmov/libm.so.6 (0xa9123000)
        libgcc_s.so.1 =&gt; /lib/libgcc_s.so.1 (0xa9118000)
        libc.so.6 =&gt; /lib/tls/i686/cmov/libc.so.6 (0xa8fc9000)
        libpthread.so.0 =&gt; /lib/tls/i686/cmov/libpthread.so.0 (0xa8fb0000)
        /lib/ld-linux.so.2 (0xa942e000)</pre>
<p>Copy over your libcurl.so.4 to the system and invoke your custom executable with:</p>
<pre>$ LD_PRELOAD=./libcurl.so.4:./libexecutable.so.11 ./executable</pre>
<p>Separate different libraries with a colon (:).</p>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=226" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/2009/02/how-to-specify-shared-object-path-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion + SVN::Notify + Apache 2.2.x + mod_auth</title>
		<link>http://wp.freya.no/subversion/subversion-svnnotify-apache-22x-mod_auth/</link>
		<comments>http://wp.freya.no/subversion/subversion-svnnotify-apache-22x-mod_auth/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 21:54:01 +0000</pubDate>
		<dc:creator>kent</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=220</guid>
		<description><![CDATA[This is a brief guide on how to set up Subversion with Trac on Apache with commit-mails sent with SVN::Notify Perl module. First of all, we need to install some software. # emerge -av subversion apache When everythin has installed fine, continue. Create a repository somewhere. # cd /var/svn/ # svnadmin create test # ll [...]]]></description>
			<content:encoded><![CDATA[<p>This is a brief guide on how to set up Subversion with Trac on Apache with commit-mails sent with SVN::Notify Perl module.</p>
<p>First of all, we need to install some software.</p>
<pre># emerge -av subversion apache</pre>
<p>When everythin has installed fine, continue.</p>
<p>Create a repository somewhere.</p>
<pre># cd /var/svn/
# svnadmin create test
# ll
drwxr-xr-x  6 root   root   4.0K 2009-01-30 12:56 test</pre>
<p>Change the permissions to apache:apache and rights 770:</p>
<pre># chown apache:apache test -R &amp;&amp; chmod 770 test -R
# ll
drwxrwx---  6 apache apache 4.0K 2009-01-30 12:56 test</pre>
<p>Our repository root is at /var/svn/test and our Subversion root is /var/svn.</p>
<p>Two more files are needed if you are doing HTTP Authentication, /var/svn/htpasswd and /var/svn/authz.</p>
<p>Create the htpasswd file with htpasswd2.</p>
<pre># htpasswd2 -c htpasswd username</pre>
<p>The authz file looks like this (with the defaults).</p>
<pre>[groups]
# harry_and_sally = harry,sally

[/]
username = rw
* =

# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r</pre>
<p>Our next step is to configure Apache to work with Subversion.</p>
<p>Open up/etc/conf.d/apache2 and make sure APACHE2_OPTS contains &#8220;-D SVN -D SVN_AUTHZ -D PHP5 -D DAV&#8221;.</p>
<p>If you&#8217;re doing a SVN repository with authentication, I&#8217;d advise you to use SVN over SSL (HTTPS).</p>
<p>If we want to use svn.example.com as our Subversion repository URL, our Apache config should look like:</p>
<pre>&lt;VirtualHost *:443&gt;
    ServerName svn.example.com
    #Include /etc/apache2/vhosts.d/default_vhost.include
    ErrorLog /var/log/apache2/ssl_error_log

    &lt;IfModule log_config_module&gt;
        TransferLog /var/log/apache2/ssl_access_log
    &lt;/IfModule&gt;

    &lt;Location /&gt;
        AuthType Basic
        AuthName "Subversion repository and Trac"
        AuthUserFile /var/svn/htpasswd
        Require valid-user
        SSLRequireSSL

        DAV svn
        SVNParentPath /var/svn/
        BrowserMatch "SVN" redirect-carefull
        AuthzSVNAccessFile  /var/svn/authz
        SVNListParentPath on
    &lt;/Location&gt;

    DocumentRoot "/var/www/localhost/htdocs"
&lt;/VirtualHost&gt;</pre>
<p>If everything is successful, you&#8217;ll be able to access your subversion repository at https://svn.example.com/test.</p>
<p>Final touch is the Perl module SVN::Notify. Fire up CPAN.</p>
<pre># cpan

cpan shell -- CPAN exploration and modules installation (v1.9301)
ReadLine support enabled

cpan[1]&gt; install SVN::Notify
cpan[2]&gt; install HTML::Entities</pre>
<p>Enter your SVN hooks directory.</p>
<pre># cd /var/svn/test/hooks</pre>
<p>And copy the post commit template to post commit.</p>
<pre># cp post-commit.tmpl post-commit
# vim post-commit</pre>
<p>Make sure the following lines are present:</p>
<pre>REPOS="$1"
REV="$2"

export LANG="nb_NO.UTF-8" # optional
/usr/bin/svnnotify --repos-path "/var/svn/test" --revision "$REV" --svnlook /usr/bin/svnlook --sendmail /usr/sbin/sendmail --to <span id="emob-znvy@rknzcyr.pbz-79">mail {at} example(.)com</span><script type="text/javascript">
    var mailNode = document.getElementById('emob-znvy@rknzcyr.pbz-79');
    var linkNode = document.createElement('a');
    linkNode.setAttribute('href', "mailto:%6D%61%69%6C%40%65%78%61%6D%70%6C%65%2E%63%6F%6D");
    tNode = document.createTextNode("mail {at} example(.)com");
    linkNode.appendChild(tNode);
    linkNode.setAttribute('id', "emob-znvy@rknzcyr.pbz-79");
    mailNode.parentNode.replaceChild(linkNode, mailNode);
</script> --from <span id="emob-fia@rknzcyr.pbz-52">svn {at} example(.)com</span><script type="text/javascript">
    var mailNode = document.getElementById('emob-fia@rknzcyr.pbz-52');
    var linkNode = document.createElement('a');
    linkNode.setAttribute('href', "mailto:%73%76%6E%40%65%78%61%6D%70%6C%65%2E%63%6F%6D");
    tNode = document.createTextNode("svn {at} example(.)com");
    linkNode.appendChild(tNode);
    linkNode.setAttribute('id', "emob-fia@rknzcyr.pbz-52");
    mailNode.parentNode.replaceChild(linkNode, mailNode);
</script> --with-diff --reply-to <span id="emob-ab-ercyl@rknzcyr.pbz-82">no-reply {at} example(.)com</span><script type="text/javascript">
    var mailNode = document.getElementById('emob-ab-ercyl@rknzcyr.pbz-82');
    var linkNode = document.createElement('a');
    linkNode.setAttribute('href', "mailto:%6E%6F%2D%72%65%70%6C%79%40%65%78%61%6D%70%6C%65%2E%63%6F%6D");
    tNode = document.createTextNode("no-reply {at} example(.)com");
    linkNode.appendChild(tNode);
    linkNode.setAttribute('id', "emob-ab-ercyl@rknzcyr.pbz-82");
    mailNode.parentNode.replaceChild(linkNode, mailNode);
</script> --linkize --handler HTML::ColorDiff --smtp localhost --svn-encoding "UTF-8"</pre>
<p>Whenever someone does a commit, a mail with the colored diff is sent out to the recipients.</p>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=220" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/subversion/subversion-svnnotify-apache-22x-mod_auth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.net Model View Controller MVC?</title>
		<link>http://wp.freya.no/2009/01/aspnet-model-view-controller-mvc/</link>
		<comments>http://wp.freya.no/2009/01/aspnet-model-view-controller-mvc/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 23:56:22 +0000</pubDate>
		<dc:creator>kent</dc:creator>
				<category><![CDATA[Ikke interessant]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[mvc]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=213</guid>
		<description><![CDATA[No shit, it&#8217;s real name is Magic Voodoo Controller. There&#8217;s so much stuff going on behind the scenes and no clear connection between the Model, View and Controller. But it works, somehow.]]></description>
			<content:encoded><![CDATA[<p>No shit, it&#8217;s real name is Magic Voodoo Controller.</p>
<p>There&#8217;s so much stuff going on behind the scenes and no clear connection between the Model, View and Controller. But it works, somehow.</p>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=213" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/2009/01/aspnet-model-view-controller-mvc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
