<?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>René Samselnig&#039;s Weblog &#187; howto</title>
	<atom:link href="http://sdm-net.org/tag/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://sdm-net.org</link>
	<description>Personal Entertainment and Knowledge Management</description>
	<lastBuildDate>Fri, 18 May 2012 10:09:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Configuring JBoss with SSL</title>
		<link>http://sdm-net.org/2008/11/configuring-jboss-with-ssl/</link>
		<comments>http://sdm-net.org/2008/11/configuring-jboss-with-ssl/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 09:13:58 +0000</pubDate>
		<dc:creator>René Samselnig</dc:creator>
				<category><![CDATA[About]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[jboss]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://sdm-net.org/?p=225</guid>
		<description><![CDATA[<p>Sometimes you need a self signed certificate to use SSL with your JBoss installation. This is a small how-to that tells you the essential steps to do that. Creating the Keystore Creating a keystore to store certificates that JBoss can use. keytool -genkey -alias $MYDOMAIN -keyalg RSA ↵ -keystore my.keystore You will be asked for [...]</p>
]]></description>
			<content:encoded><![CDATA[<p>Sometimes you need a self signed certificate to use SSL with your JBoss installation. This is a small how-to that tells you the essential steps to do that.<span id="more-225"></span></p>

<h4>Creating the Keystore</h4>

<p>Creating a keystore to store certificates that JBoss can use.</p>

<pre><code>keytool -genkey -alias $MYDOMAIN -keyalg RSA ↵
-keystore my.keystore</code></pre>

<p>You will be asked for a password to this keystore, just set any password you like. Furthermore you will need to enter some more information, just enter whatever you like &#8211; you only need these values to be correct if you are going to sign the certificate at your Certificate Authority.</p>

<h4>Creating a Certificate Request</h4>

<p>Then we need to create a Certificate Request.</p>

<pre><code>keytool -certreq -keystore my.keystore ↵
-alias $MYDOMAIN -file myserver.csr</code></pre>

<p>Normally you would want to send this Certificate Request to your Certificate Authority to sign it. That way browsers would accept your certificate without complaining. But we only need this certificate for our local development machine, so don&#8217;t worry about a security exception. You need to accept this certificate within your browser, though.</p>

<h4>Configuring JBoss</h4>

<p>You need to change this file to enable SSL with our created certificate: <code>$JBOSS_HOME/server/default/deploy/jbossweb-tomcat50.sar/server.xml</code>. Look for the following lines and uncomment them:</p>

<pre><code>&lt;Connector port="8443" address="${jboss.bind.address}"
  maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
  emptySessionPath="true"
  scheme="https" secure="true" clientAuth="false" 
  keystoreFile="${jboss.server.home.dir}/conf/ssl/my.keystore"
  keystorePass="KEYSTORE_PASSWORD" sslProtocol = "TLS" /&gt;
</code></pre>

<p>At last we need to copy your keystore to the proper place:</p>

<pre><code>mkdir $JBOSS_HOME/server/default/conf/ssl
cp my.keystore $JBOSS_HOME/server/default/conf/ssl/
</code></pre>

<p>After a JBoss restart you can now use the https connection.</p>

<h4>See also</h4>

<p>This how-to is a short version of <a href="http://www.hackerwiki.org/index.php/SSL_mit_JBoss">SSL mit JBoss (german)</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sdm-net.org/2008/11/configuring-jboss-with-ssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to wrap a gift correctly</title>
		<link>http://sdm-net.org/2005/12/how-to-wrap-a-gift-correctly/</link>
		<comments>http://sdm-net.org/2005/12/how-to-wrap-a-gift-correctly/#comments</comments>
		<pubDate>Tue, 20 Dec 2005 21:14:43 +0000</pubDate>
		<dc:creator>René Samselnig</dc:creator>
				<category><![CDATA[About]]></category>
		<category><![CDATA[gift]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.sdm-net.org/2005/12/how-to-wrap-a-gift-correctly/</guid>
		<description><![CDATA[<p>Have you ever wonderend how people can make perfect presents that look really good? I&#8217;ve been practising my whole life but couldn&#8217;t become a master. Anyway, I&#8217;ve developed a tricky technique that makes presents look good. Not very good, but good is enough for me. Try it out yourself. I prepared a set to help [...]</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/resamsel/5285497150/" title="Correct gift wrapping 1" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5163/5285497150_f419a14229_m.jpg" alt="Correct gift wrapping 1" class="flickr-medium"  /></a>
Have you ever wonderend how people can make perfect presents that look really good? I&#8217;ve been practising my whole life but couldn&#8217;t become a master. Anyway, I&#8217;ve developed a tricky technique that makes presents look good. Not very good, but good is enough for me. Try it out yourself.
<span id="more-50"></span></p>

<p>I prepared a <a href="http://www.flickr.com/photos/resamsel/sets/72157625556325479/">set</a> to help me explain what I&#8217;m talking about. <em>Correct gift wrapping 1</em> shows the material needed:</p>

<ul>
<li>wrapping paper</li>
<li>scissors</li>
<li>sticky tape</li>
<li>the gift, respectively</li>
<li>patience (at least with my descriptions)</li>
</ul>

<p>I&#8217;m using a book here, but you could use anything else that&#8217;s not too abstract (like a statue or a teddy bear). In fact, this method works best with objects that are (close to) cuboids.</p>

<h6>Cutting the paper</h6>

<p><a href="http://www.flickr.com/photos/resamsel/5284899467/" title="Correct gift wrapping 2" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5009/5284899467_e18b981554_m.jpg" alt="Correct gift wrapping 2" class="flickr-medium"  /></a>
Put the book at the edge of the wrapping paper, leaving a three finger margin around the borders. Now cut through the longer side for about a bit more than two times the width of the book (see <em>Correct gift wrapping 2</em> if I haven&#8217;t made myself clear). Don&#8217;t worry if you&#8217;re not good at cutting &#8211; it will never be seen since we fold this part to the inside.</p>

<p><a href="http://www.flickr.com/photos/resamsel/5284899507/" title="Correct gift wrapping 3" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5210/5284899507_0be01298e2_m.jpg" alt="Correct gift wrapping 3" class="flickr-medium"  /></a>
Now put the book at the very edge of the paper (avoid rotating it). Memorise the position of the right border and move the book to the left until the left side is at this position. Add the thickness of the book two times plus three additional fingers in the same direction (see <em>Correct gift wrapping 3</em>). Now make a cut from the bottom to the top. This cut and the previous one should meet at one point (since this is almost never the case, do it as good as you can).</p>

<p>Congratulations! If you made it this far you can now put the scissors away and start folding (my favourite part).</p>

<h6>Folding the wrap</h6>

<p><a href="http://www.flickr.com/photos/resamsel/5285497260/" title="Correct gift wrapping 4" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5089/5285497260_fd5a4b98b8_m.jpg" alt="Correct gift wrapping 4" class="flickr-medium"  /></a>
Unless this piece of wrapping paper has never been used before there could be a slight chance that the left edge is not a straight line. This is not very nice since this edge is going to be visible from the outside. Don&#8217;t worry, there&#8217;s a solution to this. Make an inside (valley) fold the width about half a finger to the inside (see <em>Correct gift wrapping 4</em> for visualisation). That way we get a straight line at this edge. Now relax and enjoy for a while.</p>

<p><a href="http://www.flickr.com/photos/resamsel/5284899575/" title="Correct gift wrapping 5" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5042/5284899575_4bb2ae2a8d_m.jpg" alt="Correct gift wrapping 5" class="flickr-medium"  /></a>
OK, we&#8217;ve created a straight edge at the left side. Now wrap this edge around the book. Position the book so that this edge and the left edge of the book make a line (see <em>Correct gift wrapping 5</em>). The paper should lie flat on the book. Don&#8217;t move the book on the paper, the book should keep this position on the underlying paper. Relax the folded edge but make sure the book doesn&#8217;t move.</p>

<p><a href="http://www.flickr.com/photos/resamsel/5285497352/" title="Correct gift wrapping 6" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5006/5285497352_066b893d90_m.jpg" alt="Correct gift wrapping 6" class="flickr-medium"  /></a>
That the right edge of the paper and wrap it over the right side of the book. It should lie flat on the book like the left edge was lying flat before. If you like (and if the surface of the book allows it) you can put some sticky tape to fix this edge to the book. I couldn&#8217;t do it since the surface of this book didn&#8217;t allow it. In fact, the book would have been harmed if the tape is removed. Think about it.</p>

<p><a href="http://www.flickr.com/photos/resamsel/5284899637/" title="Correct gift wrapping 7" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5205/5284899637_b1b3a44e2b_m.jpg" alt="Correct gift wrapping 7" class="flickr-medium"  /></a>
Here comes another tricky part. Put the left edge, that we folded before, and wrap it around to the right side of the book (where the right edge should now cover part of the title page of the book). This edge and the right edge of the book should again make a line. If it does, put sticky tape across to fix this part (a width of about two fingers should be enough to do the job). Your half baked gift should now look like the one on <em>Correct gift wrapping 7</em>.</p>

<h6>Folding the top</h6>

<p><a href="http://www.flickr.com/photos/resamsel/5284899675/" title="Correct gift wrapping 8" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5246/5284899675_910b887cc0_m.jpg" alt="Correct gift wrapping 8" class="flickr-medium"  /></a>
Center the book in its paper wrapping. Rotate the upper side to you. Put the fingers of your left hand at the upper edge of the book and make sure the book doesn&#8217;t move (see <em>Correct gift wrapping 8</em>). You should try to make a crease in case the book accidently moves. This way you won&#8217;t lose the actual position of the book.</p>

<p><a href="http://www.flickr.com/photos/resamsel/5284899703/" title="Correct gift wrapping 9" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5007/5284899703_1442ba350c_m.jpg" alt="Correct gift wrapping 9" class="flickr-medium"  /></a>
Take the edge that is closer to you (like the one on Image 8) and move it to the center of the books upper edge. Look at <em>Correct gift wrapping 9</em> for what you should be doing. This is also a tricky part since the paper doesn&#8217;t always do what we want. You have to be careful, try not to move the book. Make a crease where horizontal and vertical parts of the paper meet (see <em>Correct gift wrapping 9</em>). Fold the edge of the new diagonal part flat on the table.</p>

<p><a href="http://www.flickr.com/photos/resamsel/5284899731/" title="Correct gift wrapping 10" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5010/5284899731_3fed8fdd71_m.jpg" alt="Correct gift wrapping 10" class="flickr-medium"  /></a>
If you could do the last two steps the next two shouldn&#8217;t be a problem. The same procedure as before, rotate the book clockwise so the other edge faces you (like <em>Correct gift wrapping 10</em> shows). You already know what to do, but I&#8217;ll guide you through it anyway. And I&#8217;m still smiling ;).</p>

<p><a href="http://www.flickr.com/photos/resamsel/5284899763/" title="Correct gift wrapping 11" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5204/5284899763_a721ba7329_m.jpg" alt="Correct gift wrapping 11" class="flickr-large"  /></a>
We use our thumb to fold the paper across the right downward edge that is facing us (see <em>Correct gift wrapping 11</em>, also see <em>Correct gift wrapping 8</em> for additional help). Fix the book so it doesn&#8217;t move (I can&#8217;t stop saying this since it happens all the time and is frustrating and demotivating).</p>

<p><a href="http://www.flickr.com/photos/resamsel/5285497592/" title="Correct gift wrapping 12" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5168/5285497592_cd3e433666_m.jpg" alt="Correct gift wrapping 12" class="flickr-medium"  /></a>
Fold the newly created diagonal flat on the table. Your wrapped book should now look like mine on <em>Correct gift wrapping 12</em>.</p>

<p>If the two diagonals and the upper edge of the book doesn&#8217;t describe a triangle but a trapezium &#8211; don&#8217;t worry. This happens either if your margin was less than three fingers or you are Kate Moss. The next steps will still work for you.</p>

<p>If you happened to take more than three fingers width as margin around the book then unfold the last few steps which created the diagonals. Then take the scissors again and cut away approximately the width of one finger from the upper edge. Fold in the edges and check again. Redo as often as needed.</p>

<p><a href="http://www.flickr.com/photos/resamsel/5284899857/" title="Correct gift wrapping 13" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5210/5284899857_51e7379954_m.jpg" alt="Correct gift wrapping 13" class="flickr-medium"  /></a>
Take the corner that was created by the two diagonals and fold it inside (valley fold) to the upper edge of the book (see <em>Correct gift wrapping 13</em>). In fact the corner shouldn&#8217;t touch the upper edge. It is easier for you to fold it upside when there is some buffer left.</p>

<p><a href="http://www.flickr.com/photos/resamsel/5284899893/" title="Correct gift wrapping 14" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5003/5284899893_af75a1a69e_m.jpg" alt="Correct gift wrapping 14" class="flickr-medium"  /></a>
Repeat the last step as often as needed. Stop if the width of the folded part is less than the thickness of the book. I had to do it a second time. If I used a smaller margin around the book at the beginning then it would have taken me less time to wrap up my gift. But who am I sporting here, dude?</p>

<p><a href="http://www.flickr.com/photos/resamsel/5284899921/" title="Correct gift wrapping 15" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5249/5284899921_3f201329e6_m.jpg" alt="Correct gift wrapping 15" class="flickr-medium"  /></a>
<em>Correct gift wrapping 15</em> shows how to fold this part to the upper edge of the book. Again, don&#8217;t move the book! Freeze it with one hand and use the other to fold the thing. Press the book from the open side to this fold to create some tension. This step is needed so your gift looks like wrapped up in wrapping paper and not in a paper bag.</p>

<p><a href="http://www.flickr.com/photos/resamsel/5285497734/" title="Correct gift wrapping 16" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5168/5285497734_d63c7b2308_m.jpg" alt="Correct gift wrapping 16" class="flickr-medium"  /></a>
Put sticky tape on the edge so you fix the part you folded. Don&#8217;t use too much tape, the gift might look like you only used tape to wrap it ;). Also, if the tape is carefully removed you can eventually reuse this piece of wrapping paper (to put a book in there the same size, but half the work).</p>

<h6>Folding the bottom</h6>

<p><a href="http://www.flickr.com/photos/resamsel/5284900013/" title="Correct gift wrapping 17" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5087/5284900013_07cb7c7521_m.jpg" alt="Correct gift wrapping 17" class="flickr-medium"  /></a>
The upper edge of the book is finished. As you no doubt already guessed &#8211; same procedure on the other side. Rotate the book so the bottom of the book now faces you. Take the left edge and&#8230; You know how to do it, don&#8217;t you? Use the next images to look how I did it.</p>

<p><a href="http://www.flickr.com/photos/resamsel/5285497812/" title="Correct gift wrapping 18" target="_blank" class="flickr-image alignnone" rel="flickr-mgr" ><img src="http://farm2.static.flickr.com/1435/5285497812_90bdb00a1c_m.jpg" alt="Correct gift wrapping 18" class="flickr-medium"  /></a>
<a href="http://www.flickr.com/photos/resamsel/5284900089/" title="Correct gift wrapping 19" target="_blank" class="flickr-image alignnone" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5043/5284900089_538a53a8d7_m.jpg" alt="Correct gift wrapping 19" class="flickr-medium"  /></a>
<a href="http://www.flickr.com/photos/resamsel/5285497886/" title="Correct gift wrapping 20" target="_blank" class="flickr-image alignnone" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5242/5285497886_c9029fb996_m.jpg" alt="Correct gift wrapping 20" class="flickr-medium"  /></a></p>

<h6>The finished gift</h6>

<p><a href="http://www.flickr.com/photos/resamsel/5285497912/" title="Correct gift wrapping 21" target="_blank" class="flickr-image alignleft" rel="flickr-mgr" ><img src="http://farm6.static.flickr.com/5169/5285497912_cbf196d0b6_m.jpg" alt="Correct gift wrapping 21" class="flickr-medium"  /></a>
This is how your gift should look like when you&#8217;re finished. If it isn&#8217;t as good as you wanted it to be then don&#8217;t worry &#8211; as long as it was made by yourself the receiver will respect your effort. And the next one will get better, trust me. All that is left to say now is: have fun wrapping!</p>

<p>If you have any suggestions on how to improve this how-to let me know. Also let me know about corrections on the article or on the images.</p>

<p>Note: I know what book it is since it was me who wrapped it up. But the person this gift is meant to doesn&#8217;t, so please don&#8217;t tell what the title of the book is nor who wrote it. At least until Christmas eve. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://sdm-net.org/2005/12/how-to-wrap-a-gift-correctly/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sudoku tutorial</title>
		<link>http://sdm-net.org/2005/09/sudoku-tutorial/</link>
		<comments>http://sdm-net.org/2005/09/sudoku-tutorial/#comments</comments>
		<pubDate>Wed, 21 Sep 2005 19:00:33 +0000</pubDate>
		<dc:creator>René Samselnig</dc:creator>
				<category><![CDATA[About]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[sudoku]]></category>

		<guid isPermaLink="false">http://www.sdm-net.org/?p=29</guid>
		<description><![CDATA[<p>What is Sudoku? Sudoku (or Su Doku) is a japanese puzzle based on the digits from 1 to 9. You have to find the correct positions for these digits in the field to complete the puzzle. The difficulty depends on the numbers given at the very beginning. Easy? No way if you do not have [...]</p>
]]></description>
			<content:encoded><![CDATA[<p>What is Sudoku? Sudoku (or Su Doku) is a japanese puzzle based on the digits from 1 to 9. You have to find the correct positions for these digits in the field to complete the puzzle. The difficulty depends on the numbers given at the very beginning. Easy? No way if you do not have an idea how to begin. And be aware that a good Sudoku puzzle has only one possible solution and can be solved without trying!
<span id="more-29"></span></p>

<h6>Why Sudoku?</h6>

<p>I like Sudoku. With Sudoku you have to turn your concentration completely off from anything else. Sudoku makes me use my brain, which I frankly don&#8217;t use a lot these times. It is a complex game with a few easy rules that in my opinion makes it the best puzzle these days.</p>

<h6>Rules</h6>

<p><fotoalbum><image id="791" /></fotoalbum>
Sudoku consists of a 9&#215;9 grid with nine 3&#215;3 boxes in it. Each column, row or 3&#215;3 box has to filled with the digits from 1 to 9. Every digit must exist exactly once in each column, row and 3&#215;3 box. You start with the numbers given.</p>

<h6>Tips</h6>

<p>If you begin solving Sudoku puzzles you may take a pencil and write down the possible digits for each field. This is very time consuming and may lead to confusion when there are a lot of choices left. Better try to think of this: if a digit already exists in a certain row then it can&#8217;t appear again in this row. Then find another row within this 3&#215;3 box the first row appears to be in and look for the same digit. If there exists such a second row, then the third row of this 3&#215;3 box has to hold this digit too. And this can only be in the 3&#215;3 box, where this digit doesn&#8217;t already exist. I&#8217;ll give you an example.</p>

<h6>Sudoku example</h6>

<p><fotoalbum><image id="793" /></fotoalbum>
This is the base grid. The grid consists of 9 columns, 9 rows and 9 3&#215;3 boxes. Each box has a number in it such that it can be referenced for further explanation. This sample grid is filled with 29 given digits. The amount of given digits does not neccessarily tell us the difficulty since a good combination of fewer number may or may not be easier to solve than a hard combination of more numbers.</p>

<p>I&#8217;ll use the colour red to highlight rows or columns that already have a certain digit in them. A highlighted blue row or column indicates a new digit will be placed in this zone. This digit itself is blue and has a blue marking around. Newly inserted digits will be coloured black in the next step to minimise confusion.</p>

<h6>Step 1</h6>

<p><fotoalbum><image id="794" /></fotoalbum>
Look at the image at step 1 (Image 3). As you can see there are two rows highlighted in red that indicate the two rows containing a digit (in our example it is the 3). The 3&#215;3 boxes that are of our interest are 7, 8 and 9. In box 9 the digit 3 is missing, and it may not be inserted in a highlighted field (since that row already has 3 in it). This way the only field left in box 9 is the one centered at the bottom.</p>

<h6>Step 2</h6>

<p><fotoalbum><image id="795" /></fotoalbum>
This step basically does the same as the first step (see Image 4). Instead of 3 the interesting digit will be 7. And this time we will use columns instead of rows (which of course doesn&#8217;t matter). The 3&#215;3 boxes 3, 6 and 9 are highlighted, but only the middle one (box 6) fails to have 7 in it. The only field in box 6 left obviously is the one at the top left.</p>

<h6>Step 3</h6>

<p><fotoalbum><image id="799" /></fotoalbum>
This is a tricky step. You see a lot of rows and columns selected. First look at box 7: it contains 7 at the very left, this columns is highlighted. Now take a look at box 6: the containing 7 lives at the top of this box, this row is highlighted. This leaves us the following choice in box 4: either put 7 at the very center field of this box or at the bottom center field. Either way, you do <em>not</em> write any digit in this box. The only thing you have to know is that this center column has a 7 in it (box 4) and the other boxes (1 and 7) must not have a 7 at the centered column. That is the reason this column is also highlighted. And because there&#8217;s a 7 in box 2 at the top row and a 7 in box 3 at the bottom row the only field left for 7 in box 1 is: You got it! The middle right field.</p>

<p>This way you can fill up a lot of empty places with digits. You might fill up everything with this technique, but you may as well get stuck at a point with too much choices to handle. Then I go back to the good old write-the-choices-in-a-space-and-go-on. Sometimes I discover something I haven&#8217;t seen before. Just do not use trial and error techniques.</p>

<h6>Where to next</h6>

<p>Sites that give you good Sudoku. Whenever I find a site with good Sudoku puzzles I&#8217;ll add it to this list.</p>

<ul>
<li><a href="http://derstandard.at/sudoku">derStandard.at</a></li>
<li><a href="http://www.timesonline.co.uk/section/0,,18209,00.html">The Times Online</a></li>
<li><a href="http://www.timesonline.co.uk/article/0,,7-1757275_1,00.html">Too good for Fiendish?</a></li>
<li><a href="http://www.sudoku.com">Sudoku.com</a> (has a tutorial too)</li>
</ul>

<h6>Acknowledgements</h6>

<p>The images where made by myself with <a href="http://www.gimp.org">The GIMP</a>. I used the given digits from a Sudoku puzzle from <a href="http://derstandard.at/?id=2175346">derStandard.at</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sdm-net.org/2005/09/sudoku-tutorial/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Vi Improved</title>
		<link>http://sdm-net.org/2004/09/vi-improved/</link>
		<comments>http://sdm-net.org/2004/09/vi-improved/#comments</comments>
		<pubDate>Tue, 14 Sep 2004 11:58:08 +0000</pubDate>
		<dc:creator>René Samselnig</dc:creator>
				<category><![CDATA[About]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.sdm-net.org/2005/09/vi-improved/</guid>
		<description><![CDATA[<p>It is the text editor of my choice. It&#8217;s designed to be much different than other editors since it uses different modes for editing (command and editing mode). This makes it more complex for beginners, but if you ship around the first hurdles, you&#8217;ll shurely like it! I&#8217;d like to provide a few tricks for [...]</p>
]]></description>
			<content:encoded><![CDATA[<p>It is the text editor of my choice. It&#8217;s designed to be much different than other editors since it uses different modes for editing (command and editing mode). This makes it more complex for beginners, but if you ship around the first hurdles, you&#8217;ll shurely like it!
<span id="more-21"></span></p>

<p>I&#8217;d like to provide a few tricks for VIM, mainly commands I find very useful to work with. All of the commands are to be typed when using command mode (press [esc] to ensure you are in command mode), except when I say otherwise.</p>

<h6>Most common commands</h6>

<p>i insert text to the left of cursor (change to insert mode) I insert text at beginning of line a append text to the right of cursor A append text at end of line [esc] switch to command mode (being in insert mode) w write to file q quit q! force quit (don&#8217;t save) cw change word dd delete line D delete until end of line r replace character R replace mode (like insert mode, but overwrites existing characters)</p>

<h6>Undo, Redo and Undo Undo</h6>

<p>u undo last action . redo last action [ctrl]+r undo undo action
Highlight, cut, copy and paste text
v select characters of text V select lines of text Y copy selected text p paste copied text after this character/line P paste copied text before this character/line</p>

<h6>Changing case</h6>

<p>gu{motion} make lowercase gU{motion} make uppercase guu make line lowercase gUU make line uppercase</p>

<h6>Substitute</h6>

<p><pattern> can be any regular expression
:s/pattern/string/ substitute first match of </pattern><pattern> with <string> within this line :s/pattern/string/g substitute all matches of <pattern> with <string> within this line :%s/pattern/string/g substitute all matches of <pattern> with <string> within this file v{motion}:s/pattern/string/g substitute all matches of <pattern> with <string> within highlighted selection</p>

<h6>Splitting vim</h6>

<p>:split path/to/file split window horizontal with path/to/file as second file :vsplit path/to/file split window vertical with path/to/file as second file [ctrl]+w w switch between viewports</p>

<h6>Special Inserts</h6>

<p>If you&#8217;d like to insert text column-wise, eg. to comment some things out, you could use this nifty trick:</p>

<ol>
<li>[ctrl]+v{motion}: select lines/area where you want to insert text</li>
<li>I: insert text to beginning of selection on each line; alternatively use A to append text to end of selection on each line</li>
</ol>

<h6>Special Substitutions</h6>

<p>%s/ ([a-z]<em>)=([^"][^> "}]</em>)/ 1=&#8221;2&#8243;/g creates &#8220;s around tag-attributes if non existing. makes <table height="100%"> from </table><table height=100%></table></string></pattern></string></pattern></string></pattern></string></pattern></p>
]]></content:encoded>
			<wfw:commentRss>http://sdm-net.org/2004/09/vi-improved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

