<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>coding &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/coding/</link>
	<description>Feed of posts on WordPress.com tagged "coding"</description>
	<pubDate>Mon, 07 Jul 2008 12:13:05 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Dream Job at Oracle]]></title>
<link>http://sssjv.wordpress.com/?p=22</link>
<pubDate>Mon, 07 Jul 2008 11:30:08 +0000</pubDate>
<dc:creator>sssjvsss</dc:creator>
<guid>http://sssjv.wordpress.com/?p=22</guid>
<description><![CDATA[Do you like to work for Oracle ? 
If interested send me your resume/CV , I will forward that to the ]]></description>
<content:encoded><![CDATA[<p>Do you like to work for Oracle ? </p>
<p>If interested send me your resume/CV , I will forward that to the corresponding HR representative.<br />
In case if you are talented enough you could get your dream job.<br />
its for both freshers and laterals.</p>
<p>Skills required in java , sql and j2ee</p>
<p>{trust me .. its no spam }<br />
mail me to jvscube.2005@gmail.com</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Hello World]]></title>
<link>http://duralexsedflex.wordpress.com/?p=5</link>
<pubDate>Mon, 07 Jul 2008 06:18:50 +0000</pubDate>
<dc:creator>equilibrismi</dc:creator>
<guid>http://duralexsedflex.wordpress.com/?p=5</guid>
<description><![CDATA[How not to start a coding blog with a simple Hello World App?
Here we are then,  Flex Hello World (]]></description>
<content:encoded><![CDATA[<p>How not to start a coding blog with a simple Hello World App?<br />
Here we are then,  <a href="http://www.depaolis-liutai.it/duralexsedflex/Flex/helloworld/helloworld.html" target="_blank">Flex Hello World </a>(but at least with plug in detection..)<br />
No need for commented code so far.</p>
<p><a href="http://www.depaolis-liutai.it/duralexsedflex/Flex/helloworld/helloworld.html"></a></p>
<p style="text-align:center;"><a title="Hello World with Flex" href="http://www.depaolis-liutai.it/duralexsedflex/Flex/helloworld/helloworld.html" target="_blank"><img class="size-full wp-image-6 aligncenter" src="http://duralexsedflex.wordpress.com/files/2008/07/helloworld.jpg" alt="" width="354" height="308" /></a></p>
<p>-------------------------------------------------------------</p>
<p>Come non iniziare a bloggare di programmazione senza una bella e semplice applicazione Hello World? Quindi eccomi qui con un<a href="http://http://www.depaolis-liutai.it/duralexsedflex/Flex/helloworld/helloworld.html" target="_blank"> Hello World in Flex</a> , però ci ho aggiuunto almeno il plug in detectionVista la banalità dell'esempio, per ora niente codice commentato.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Disabling the Maximize button in WPF]]></title>
<link>http://codesmart.wordpress.com/?p=23</link>
<pubDate>Mon, 07 Jul 2008 02:20:49 +0000</pubDate>
<dc:creator>daggmano</dc:creator>
<guid>http://codesmart.wordpress.com/?p=23</guid>
<description><![CDATA[I am writing a WPF application which runs as a tool-style dialog on the desktop, and needs to be abl]]></description>
<content:encoded><![CDATA[<p>I am writing a WPF application which runs as a tool-style dialog on the desktop, and needs to be able to be minimized but not maximised.  It seems that this is somthing the WPF designers didn't quite anticipate, despite it having been pretty easy to achieve under Windows Forms.</p>
<p>After searching around the 'net, I finally found <a href="http://forums.msdn.microsoft.com/en-US/vbgeneral/thread/a28740c5-bd1f-4a93-a9e9-216b54e610b2">some code</a> that disabled both the minimize &#38; maximize buttons, but took a couple shortcuts that I didn't like (and besides, it was in VB...).</p>
<p>A bit of searching and a quick cleanup left me with a working result.  Catch the Loaded event of your window, and put the following code into the handler:</p>
<p>[sourcecode language='csharp']<br />
// Import some references<br />
using System.Interop;<br />
using System.Runtime.InteropServices;</p>
<p>// Place these inside the class definition...<br />
[DllImport("user32.dll")]<br />
private extern static Int32 SetWindowLong(IntPtr hWnd, Int32 nIndex, Int32 dwNewLong);<br />
[DllImport("user32.dll")]<br />
private extern static Int32 GetWindowLong(IntPtr hWnd, Int32 nIndex);</p>
<p>private const Int32 GWL_STYLE = -16;<br />
private const Int32 WS_MAXIMIZEBOX = 0x10000;<br />
private const Int32 WS_MINIMIZEBOX = 0x20000;</p>
<p>// And finally the event handler...<br />
private void Window_Loaded(object sender, RoutedEventArgs e)<br />
{<br />
    IntPtr hWnd = new WindowInteropHelper(this).Handle;<br />
    Int32 windowLong = GetWindowLong(hWnd, GWL_STYLE);<br />
    windowLong = windowLong & ~WS_MAXIMIZEBOX;<br />
    SetWindowLong(hWnd, GWL_STYLE, windowLong);<br />
}<br />
[/sourcecode]</p>
<p>I have included the value for WS_MINIMIZEBOX in case you need it.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[The Jollybringer]]></title>
<link>http://cmbasnett.wordpress.com/?p=10</link>
<pubDate>Sun, 06 Jul 2008 20:35:26 +0000</pubDate>
<dc:creator>cmbasnett</dc:creator>
<guid>http://cmbasnett.wordpress.com/?p=10</guid>
<description><![CDATA[There was a time a few months ago when a few friends and I drew up plans for a joke single-player mo]]></description>
<content:encoded><![CDATA[<p>There was a time a few months ago when a few friends and I drew up plans for a joke single-player mod entitled 'A Very Zombie Christmas' wherein a German mall Santa Claus (Klaus) had to save Christmas by stopping various yuletide baddies with Christmas-themed weaponry such as a explosive present launcher, a 'North Pole' which was essentially just a big splintered piece of wood and our favorite of all was the Jollybringer.  A full automatic, razor-sharp candy cane launcher that would saturate enemies with jolly as their torsos were pumped full of mint candy sticks.</p>
<p>The easiest way to accomplish making the Jollybringer in Half-Life 2 is to modify the crossbow.  Now it's not hard to make a fully automatic crossbow that takes a few shots to kill an enemy.  What <em>is</em> hard is getting the crossbow bolts to stick into the enemy.  Ideally, they could walk around with these things attached to their bodies as they move around, and when they died the radgolls would inherit the bolts that are sticking in their bodies.</p>
<p>I thought I could simply parent the bolt to the NPC entity that it hit like this:<br />
<code><br />
this-&#62;SetParent(pOwner);<br />
</code></p>
<p>However, it's not that easy.  What essentially happens with that is that the bolt will stop at the NPC, will be parented to the movement of the NPC, sure but it will drop to the ground and sort of play the role of a shadow.  This also seems to mess up the NPC's behavior.</p>
<p>I did a bit of reading <a href="http://www.chatbear.com/unity2/4991/420,1139847030,26132/963910/0#5">here</a> and it seems in order to truly parent an object to another I'm going to need to find a bone to attach to on the model, so it will move in sync with that particular part of the NPC model instead of the model as a whole.</p>
<p>This is done in TF2 with the syringe gun, I know that, but unfortunately they didn't exactly release the TF2 source code so I'm going to have to find my own way to do it.</p>
<p>I'll keep working on it.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Библиотека мордовской литературы]]></title>
<link>http://r0ot.wordpress.com/?p=12</link>
<pubDate>Sun, 06 Jul 2008 06:44:13 +0000</pubDate>
<dc:creator>r0ot</dc:creator>
<guid>http://r0ot.wordpress.com/?p=12</guid>
<description><![CDATA[Страница автора
Сайт посвящен автором пишущим на морд]]></description>
<content:encoded><![CDATA[[wp_caption id="attachment_13" align="alignright" width="50" caption="Страница автора"]<a href="http://r0ot.wordpress.com/files/2008/07/f_478d08a2a0c42.jpg"><img class="size-thumbnail wp-image-13" src="http://r0ot.wordpress.com/files/2008/07/f_478d08a2a0c42.jpg?w=50" alt="Страница автора" width="50" height="96" /></a>[/wp_caption]
<p>Сайт посвящен автором пишущим на мордовских языках. Предоставляет информацию об их биографиях, список произведений с анотациями, а так же сами произведения, если они имеются в электронном виде.</p>
<p>http://<a class="blue" title="www.lib.e-mordovia.ru" href="http://www.lib.e-mordovia.ru/">www.lib.e-mordovia.ru</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Зубово-Полянская районная больница]]></title>
<link>http://r0ot.wordpress.com/?p=10</link>
<pubDate>Sun, 06 Jul 2008 06:40:35 +0000</pubDate>
<dc:creator>r0ot</dc:creator>
<guid>http://r0ot.wordpress.com/?p=10</guid>
<description><![CDATA[Главная страница
Это первый мой проект, который я дела]]></description>
<content:encoded><![CDATA[[wp_caption id="attachment_11" align="alignright" width="84" caption="Главная страница"]<a href="http://r0ot.wordpress.com/files/2008/07/f_478d00e31c517.jpg"><img class="size-thumbnail wp-image-11" src="http://r0ot.wordpress.com/files/2008/07/f_478d00e31c517.jpg?w=84" alt="Главная страница" width="84" height="95" /></a>[/wp_caption]
<p>Это первый мой проект, который я делал в "Интернет-доме". Делал я его где то около 14 дней.<br />
Сайт был построен  на базе CMS Bitrix, администраторский интерфейс сайта полностью кастомизирован и облегчен. Содержит модуль конкурсов-котировок (виртуальный аукцион для подрядчиков).</p>
<p>http://<a class="blue" title="www.medrai.ru" href="http://www.medrai.ru/">www.medrai.ru</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Explaining GetHashCode method.]]></title>
<link>http://vkreynin.wordpress.com/2008/07/05/explaining-gethashcode-method/</link>
<pubDate>Sun, 06 Jul 2008 02:44:43 +0000</pubDate>
<dc:creator>Vadim</dc:creator>
<guid>http://vkreynin.wordpress.com/2008/07/05/explaining-gethashcode-method/</guid>
<description><![CDATA[Every object you ever created or used in .NET has GetHashCode method along with Equals, GetType, and]]></description>
<content:encoded><![CDATA[<p>Every object you ever created or used in .NET has GetHashCode method along with Equals, GetType, and ToString methods.&#160; This method is an instance method of an Object class from which any other class derives.</p>
<p><a href="http://vkreynin.files.wordpress.com/2008/07/gethashcodeintelisense.png"><img style="border-width:0;" height="139" alt="GetHashCodeIntelisense" src="http://vkreynin.files.wordpress.com/2008/07/gethashcodeintelisense-thumb.png" width="434" border="0"></a>&#160; </p>
<p>GetHashCode() method returns an integer that identifies an object instance.&#160; I also can repeat MSDN documentation but you can <a title="Object.GetHashCode Method" href="http://msdn.microsoft.com/en-us/library/system.object.gethashcode.aspx" target="_blank">read it on your own</a>.</p>
<p>You would want to override this method along with <a href="http://msdn.microsoft.com/en-us/library/bsc2ak47.aspx" target="_blank">Equals() method</a> in your class if the object of your class is going to be used as a key in <a href="http://msdn.microsoft.com/en-us/library/system.collections.hashtable.aspx" target="_blank">Hashtable</a>.</p>
<p>The best way to explain it is to show an example. In <a title="Comparing Reference Types in Unit Tests." href="http://vkreynin.wordpress.com/2008/07/03/comparing-reference-types-in-unit-tests/" target="_blank" rel="tag">my previous post</a> I was using class Point as an example.&#160; I'm going to continue with this class.&#160; So let assume that we have class like this:</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> Point</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>   <span style="color:#0000ff;">private</span> <span style="color:#0000ff;">readonly</span> <span style="color:#0000ff;">int</span> _x;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>   <span style="color:#0000ff;">private</span> <span style="color:#0000ff;">readonly</span> <span style="color:#0000ff;">int</span> _y;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>   <span style="color:#0000ff;">public</span> Point(<span style="color:#0000ff;">int</span> x, <span style="color:#0000ff;">int</span> y)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>   {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>     _x = x;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>     _y = y;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>   }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span> }</pre>
</div>
</div>
<p>Next we want to use Point as a key in a Hashtable.&#160; Remember that the key of the Hasthable must be unique.&#160; In the code bellow we have two identical keys (line 2 &#38; 4). We should expect ArgumentException.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> Hashtable hashtable = <span style="color:#0000ff;">new</span> Hashtable();</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> hashtable.Add(<span style="color:#0000ff;">new</span> Point(2, 3), <span style="color:#006080;">"Point 1"</span>);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> hashtable.Add(<span style="color:#0000ff;">new</span> Point(5, 3), <span style="color:#006080;">"Point 2"</span>);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> hashtable.Add(<span style="color:#0000ff;">new</span> Point(2, 3), <span style="color:#006080;">"Point 3"</span>);</pre>
</div>
</div>
<p>However, no exception was thrown.&#160; There are two reasons why exception is not thrown:</p>
<ol>
<li><a href="http://msdn.microsoft.com/en-us/library/bsc2ak47.aspx" target="_blank">Equals() method</a> that is also an instance method of Object class will always indicate that Point in line 2 and line 4 are different. This expected because two objects have different references.
<li>GetHashTable() method returns different number for these objects.</li>
</ol>
<p>Try to execute code bellow:</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> Main(<span style="color:#0000ff;">string</span>[] args)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span>  {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>    var point1 = <span style="color:#0000ff;">new</span> Point(2, 3);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>    var point2 = <span style="color:#0000ff;">new</span> Point(2, 3);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>    Console.WriteLine(<span style="color:#006080;">"point1 Hash: {0}"</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>         , point1.GetHashCode());</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>    Console.WriteLine(<span style="color:#006080;">"point2 Hash: {0}"</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>         , point2.GetHashCode());</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>    Console.WriteLine(<span style="color:#006080;">"point1 equal to point2: {0}"</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>         , point1.Equals(point2));</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span>  }</pre>
</div>
</div>
<p>You will get output similar to this one:</p>
<p><font face="Courier New" color="#3b3b3b" size="2">point1 Hash: 58225482<br>point2 Hash: 54267293<br>point1 equal to point2: False</font> </p>
<p>You can see that we got different hash codes.</p>
<p>To solve this problem we override Equal() and GetHashTable() in our Point class.</p>
<p>First we override Equals() method:</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">override</span> <span style="color:#0000ff;">bool</span> Equals(<span style="color:#0000ff;">object</span> obj)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>   <span style="color:#0000ff;">if</span> (ReferenceEquals(<span style="color:#0000ff;">null</span>, obj)) <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">false</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>   <span style="color:#0000ff;">if</span> (ReferenceEquals(<span style="color:#0000ff;">this</span>, obj)) <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">true</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>   <span style="color:#0000ff;">return</span> ((Point)obj)._x == _x &#38;&#38; ((Point)obj)._y == _y;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span> }</pre>
</div>
</div>
<p>You can see that I use <a href="http://msdn.microsoft.com/en-us/library/system.object.referenceequals.aspx" target="_blank">ReferenceEquals() method</a> that is static method of Object class.&#160; It checks if the specified objects are the same.</p>
<p>Next we override GetHashTable() method:</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">override</span> <span style="color:#0000ff;">int</span> GetHashCode()</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>   <span style="color:#0000ff;">unchecked</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>   {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>     <span style="color:#0000ff;">return</span> (_x * 397) ^ _y;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>   }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span> }</pre>
</div>
</div>
<p>The whole Point would look like this:</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">class</span> Point</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>   <span style="color:#0000ff;">private</span> <span style="color:#0000ff;">readonly</span> <span style="color:#0000ff;">int</span> _x;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>   <span style="color:#0000ff;">private</span> <span style="color:#0000ff;">readonly</span> <span style="color:#0000ff;">int</span> _y;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>   <span style="color:#0000ff;">public</span> Point(<span style="color:#0000ff;">int</span> x, <span style="color:#0000ff;">int</span> y)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>   {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>     _x = x;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>     _y = y;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>   }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span>   <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">override</span> <span style="color:#0000ff;">bool</span> Equals(<span style="color:#0000ff;">object</span> obj)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span>   {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span>     <span style="color:#0000ff;">if</span> (ReferenceEquals(<span style="color:#0000ff;">null</span>, obj)) <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">false</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span>     <span style="color:#0000ff;">if</span> (ReferenceEquals(<span style="color:#0000ff;">this</span>, obj)) <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">true</span>;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  16:</span>     <span style="color:#0000ff;">return</span> ((Point)obj)._x == _x &#38;&#38; ((Point)obj)._y == _y;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  17:</span>   }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  18:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  19:</span>   <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">override</span> <span style="color:#0000ff;">int</span> GetHashCode()</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  20:</span>   {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  21:</span>     <span style="color:#0000ff;">unchecked</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  22:</span>     {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  23:</span>       <span style="color:#0000ff;">return</span> (_x * 397) ^ _y;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  24:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  25:</span>   }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  26:</span> }</pre>
</div>
</div>
<p>Now if you try to execute the application the output should look exactly like this:</p>
<p><font face="Courier New" size="2">point1 Hash: 793<br>point2 Hash: 793<br>point1 equal to point2: True</font> </p>
<p>Also if we try to add new Point(2, 3) twice, we get an ArgumentException as expected.</p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fvkreynin.wordpress.com%2f2008%2f07%2f05%2fexplaining-gethashcode-method%2f"><img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvkreynin.wordpress.com%2f2008%2f07%2f05%2fexplaining-gethashcode-method%2f" border="0" alt="kick it on DotNetKicks.com" /></a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[basecombatweapon_shared]]></title>
<link>http://cmbasnett.wordpress.com/?p=9</link>
<pubDate>Sat, 05 Jul 2008 20:38:42 +0000</pubDate>
<dc:creator>cmbasnett</dc:creator>
<guid>http://cmbasnett.wordpress.com/?p=9</guid>
<description><![CDATA[Understanding the base class of all single player and multi-player weapons is essential, so I&#8217;]]></description>
<content:encoded><![CDATA[<p>Understanding the base class of all single player and multi-player weapons is essential, so I'm going to create a quick reference of useful things (as I see them) in basecombatweapon_shared.h and basecombatweapon_shared.cpp.  I'll try to explain what they mean, but for all I know I could be way off, so take what's said here with caution.</p>
<p><strong>Constants</strong></p>
<p><code>WEAPON_ALTFIRE_HUD_HINT_COUNT (1)</code><br />
How many times to display the alternate fire HUD message</p>
<p><em>SF stands for Spawn Flags</em></p>
<p><code>SF_WEAPON_START_CONSTRAINED</code><br />
Weapons starts constrained (does not drop to floor)<br />
<code>SF_WEAPON_NO_PLAYER_PICKUP</code><br />
Player can not pick up this weapon<br />
<code>SF_WEAPON_NO_PHYSCANNON_PUNT</code><br />
Weapon can not be affected by the physics cannon</p>
<p><code>CLIP_PERC_THRESHOLD (0.75f)</code><br />
What percent of the clip must be gone before the hud displays the low ammo warning</p>
<p><em>The following definitions are 3-dimensional Vector types to be used with FireBullets.m_vecSpread.</em></p>
<p><code>VECTOR_CONE_PRECALCULATED</code><br />
Used when you want shot to be directly at the player.  This is for AI weapons only.<br />
<code>VECTOR_CONE_1DEGREES</code><br />
1 degree cone of fire<br />
<code>VECTOR_CONE_2DEGREES</code><br />
2 degree cone of fire<br />
<code>VECTOR_CONE_3DEGREES</code><br />
3 degree cone of fire<br />
<code>VECTOR_CONE_4DEGREES</code><br />
4 degree cone of fire<br />
<code>VECTOR_CONE_5DEGREES</code><br />
5 degree cone of fire<br />
<code>VECTOR_CONE_6DEGREES</code><br />
6 degree cone of fire<br />
<code>VECTOR_CONE_7DEGREES</code><br />
7 degree cone of fire<br />
<code>VECTOR_CONE_8DEGREES</code><br />
8 degree cone of fire<br />
<code>VECTOR_CONE_9DEGREES</code><br />
9 degree cone of fire<br />
<code>VECTOR_CONE_10DEGREES</code><br />
10 degree cone of fire<br />
<code>VECTOR_CONE_15DEGREES</code><br />
15 degree cone of fire<br />
<code>VECTOR_CONE_20DEGREES</code><br />
20 degree cone of fire</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Demystifying Half-Life 2 SDK and C++]]></title>
<link>http://cmbasnett.wordpress.com/?p=8</link>
<pubDate>Sat, 05 Jul 2008 10:16:27 +0000</pubDate>
<dc:creator>cmbasnett</dc:creator>
<guid>http://cmbasnett.wordpress.com/?p=8</guid>
<description><![CDATA[I&#8217;ve recently had a revitalized interest in Valve&#8217;s Half-Life 2 SDK.  Since I&#8217;ve b]]></description>
<content:encoded><![CDATA[<p>I've recently had a revitalized interest in Valve's Half-Life 2 SDK.  Since I've been hanging around C# and Visual Studio so much at work and I have a copy of Visual Studio 2005 at home on my far superior computer, I've had this inkling to revisit the old modding days.</p>
<p>Most of my frustrations, for lack of a better word, stemmed from the fact that looking at the SDK's code was comparable to heiroglyphics on a dull, scarcely syntax highlighted canvas.  But I put some work in tonight to try and understand how the Half-Life 2 multi-player weapon classes work.  More importantly however, I believe, is understanding the base classes such as CBaseCombatWeapon.</p>
<p>I've started to decipher their naming scheme as well.  I've rarely worked in C++, all my C experience has been with C and C#, so this naming scheme and the way the .h and .cpp files are <span style="text-decoration:line-through;">dis</span>organized.  I did manage to catch this variable naming convention.</p>
<p><code>m_&#60;first letter of variable type&#62;VariableName;</code></p>
<p>So for example:</p>
<p><code>bool m_bFiresUnderwater;<br />
float m_fMinRange1;<br />
int m_iSubType;</code></p>
<p>It sounds very passé and unimportant, but it's useful to notice these things when perusing the code.  Ah well, I'll give it another go tomorrow as It's 3:15.</p>
<p>Also noted that this is my first real entry on WordPress.  I feel like I should get the latest iPod and start an online petition about something or other.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Xhtml &amp; CSS]]></title>
<link>http://kalanart.wordpress.com/?p=20</link>
<pubDate>Fri, 04 Jul 2008 13:58:21 +0000</pubDate>
<dc:creator>kalanart</dc:creator>
<guid>http://kalanart.wordpress.com/?p=20</guid>
<description><![CDATA[
I&#8217;ve been up all night working on my final Project for this class I am taking this summer cal]]></description>
<content:encoded><![CDATA[<p><a href="http://kalanart.files.wordpress.com/2008/06/snag_program-0000.png"><img class="alignright size-thumbnail wp-image-22" src="http://kalanart.wordpress.com/files/2008/06/snag_program-0000.png?w=109" alt="Original Template" height="96" /></a></p>
<p>I've been up all night working on my final Project for this class I am taking this summer called a "Bargain Blast" Website. I used a template with css from <a title="Open Source Designs" href="http://www.opendesigns.org/" target="_blank">OpenSourceDesigns.org</a> called <a title="Lotus Template" href="http://www.opendesigns.org/preview/?template=1552" target="_blank">Lotus</a></p>
<p>that is licensed under <a title="http://creativecommons.org/licenses/by/2.5/" href="http://creativecommons.org/licenses/by/2.5/" target="_blank">The Creative Commons Attribution 2.5 License.</a> I altered the layout by switching the #sidebar div to float right, and the #content div left. I called my cyber-shop "Vibe Quest": a place to request good thought, energies, and vibrations to be sent your way by a (imaginary in this case)network of people. The assignment was to set up a page as a cyber-shop and sell anything free or under $10.00 with three reasons listed as to why you need this service or product, a link back to the school's catalog, a link to the class's homepage, an image link, an image map, and an email link. It had to have two graphics at least. A fake address was also to be added. It had to have a background color or graphic as well.</p>
<p style="text-align:center;">As I said I altered the template by switching the float attributes on the content and the sidebar. I like my menus on the left, as it makes more sense to me being right handed mostly. Here's a snapshot of the finished product which I'll explain following the image:</p>
<p style="text-align:center;"><a href="http://kalanart.files.wordpress.com/2008/07/vibe-quest250x.png"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" src="http://kalanart.files.wordpress.com/2008/07/vibe-quest250x-thumb.png" alt="vibe_quest250x" width="142" height="244" /></a></p>
<p style="text-align:left;">The top image came with the template, as is licensed under Creative Commons (The Lotus).  The two mandalas are actually botanical/Flower Mandalas.  One was taken from "The Flower Mandalas Project", which is website dedicated to photographing Mandalas in flowers.  The pink and red is an <em>Iris Germanica ii</em> supposedly. It's a small image map.  The right side links to The Mandalas Project's Website and the left links to a blog called <a title="Goodness Gracious " href="http://goodnessgraciousness.blogspot.com/" target="_blank">Goodness Gracious </a>which is really good reading on life and the human condition, as well as how to find peace and happiness.</p>
<p style="text-align:left;">The Top Purple One was was taken from Wikipedia and it links to The Article On Wikipedia.  it 's up on  my website:<a title="Vibe Quest" href="http://kalanart.net/mock_websites/bargain_blast/jn-bb.html" target="_blank"> Vibe Quest</a>.</p>
<p style="text-align:left;">The title bars are images linked through the css.  I had to use hard links, soft/relative never work for me.  I put a bunch of links to related websites. Check it out!!</p>
<p style="text-align:center;">
]]></content:encoded>
</item>
<item>
<title><![CDATA[Robocopy]]></title>
<link>http://escapologist.wordpress.com/2008/07/04/robocopy/</link>
<pubDate>Fri, 04 Jul 2008 13:16:08 +0000</pubDate>
<dc:creator>boggin</dc:creator>
<guid>http://escapologist.wordpress.com/2008/07/04/robocopy/</guid>
<description><![CDATA[If you&#8217;ve a large piece of un-branched code you&#8217;re working on but you can&#8217;t  check]]></description>
<content:encoded><![CDATA[<p>If you've a large piece of un-branched code you're working on but you can't  check in to source control then you'll be worried about losing your changes. You  need a backup. Here's a way of mirroring your working copy.<br />
<a href="http://en.wikipedia.org/wiki/Robocopy">Robocopy</a> came as part of  the Windows Server 2003 Resource Kit Tools. Robocopy can perform mirrors of any  directory tree and can monitor that tree for changes, mirroring only the changed  files. I've set up mine as a scheduled task (Run: robocopy /JOB:SVNBACKUP) (cf:  <a href="http://kjellsj.blogspot.com/2007/09/managed-file-transfer-robocopy-sheduled.html">Managed  File Transfer, RoboCopy, Sheduled Tasks</a>). A useful  <a href="http://technet.microsoft.com/en-gb/magazine/cc160891.aspx">Microsoft  Robocopy GUI</a> for learning the Robocopy switches is available. When you first  create the destination directory with robocopy use the /CREATE switch (see the  Robocopy Help file) to minimise directory fragmentation.</p>
<p>The following is my current job file:<br />
<code>::<br />
:: Source Directory :<br />
::<br />
	/SD:C:\svn\	:: Source Directory.<br />
::<br />
:: Destination Directory :<br />
::<br />
	/DD:G:\svn\	:: Destination Directory.<br />
::<br />
:: Exclude These Directories :<br />
::<br />
	/XD		:: eXclude Directories matching these names<br />
		.svn<br />
		bin<br />
		obj<br />
::<br />
:: Copy options :<br />
::<br />
	/S		:: copy Subdirectories, but not empty ones.<br />
	/E		:: copy subdirectories, including Empty ones.<br />
	/MON:1		:: MONitor source; run again when more than n changes seen.<br />
	/MOT:5		:: MOnitor source; run again in m minutes Time, if changed.<br />
	/COPY:DAT	:: what to COPY (default is /COPY:DAT).<br />
	/PURGE		:: delete dest files/dirs that no longer exist in source.<br />
	/MIR		:: MIRror a directory tree (equivalent to /E plus /PURGE).<br />
::<br />
:: Retry Options :<br />
::<br />
	/R:10		:: number of Retries on failed copies: default 1 million.<br />
	/W:30		:: Wait time between retries: default is 30 seconds.<br />
::<br />
:: Logging Options :<br />
::<br />
	/V		:: produce Verbose output, showing skipped files.<br />
	/NDL	:: No Directory List - don't log directory names.<br />
	/NFL		:: No File List - don't log file names.<br />
	/NP		:: No Progress - don't display % copied.<br />
	/LOG+:C:\Documents and Settings\Placeholder\Application Data\Microsoft Robocopy GUI\Logs\robocopy.log	:: output status to LOG file (append to existing log).<br />
	/TEE		:: output to console window, as well as the log file.<br />
</code></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Watir, WatirMaker &amp; FireWatir]]></title>
<link>http://escapologist.wordpress.com/2008/07/04/watir-watirmaker-firewatir/</link>
<pubDate>Fri, 04 Jul 2008 13:00:05 +0000</pubDate>
<dc:creator>boggin</dc:creator>
<guid>http://escapologist.wordpress.com/2008/07/04/watir-watirmaker-firewatir/</guid>
<description><![CDATA[I didn&#8217;t want to have to work through browser screens while I was debugging my controls, const]]></description>
<content:encoded><![CDATA[<p>I didn't want to have to work through browser screens while I was debugging my controls, constantly searching for postcodes <u>etc</u>., so I've started using <a href="http://wtr.rubyforge.org/index.html">Watir</a> (pronounced 'Water') to create and run browser automation scripts.<!--break--><br />
<h3>Watir</h3>
<p>Watir <a href="http://wtr.rubyforge.org/install.html">installation</a> is simple. Running a script is even easier:<br /><code><br />C:\&#62;ruby myScript.rb<br /></code><br />An example script for your project might be:<br /><code><br />#requires<br />require 'watir'</p>
<p>#includes<br />include Watir</p>
<p>browser = IE.new</p>
<p>browser.goto( 'http://localhost:3112/' )</p>
<p>browser.text_field( :id, /username$/ ).set( 'memberuser1' )<br />browser.text_field( :id, /password$/ ).set( 'password1' )<br />browser.button( :id, /submit$/ ).click<br /></code><br />
<h3>Watir Maker</h3>
<p><a href="http://svn.openqa.org/fisheye/browse/watir-recorder/trunk/Ruby/src">WatirMaker</a> lets you easily record Watir scripts as you click through a session in the browser:<br /><code><br />C:\&#62;ruby WatirMaker.rb &#62; myScript.rb<br /></code><br />It provides you with a basic script quickly and easily and then you can modify it (the <a href="http://secretgeek.net/watir_cheatsheet.asp">Watir cheatsheet</a> is handy).</p>
<h3>FireWatir</h3>
<p><a href="http://code.google.com/p/firewatir/">FireWatir</a> is Watir for Firefox. Once you've installed the JSSh extension and started Firefox with the -jssh switch you can run your modified scripts. The only changes that should be required to your scripts are at the start:<br /><code><br />#requires<br />require 'firewatir'</p>
<p>#includes<br />include FireWatir</p>
<p>browser = Firefox.new<br /></code></p>
<p>Important tools for development time and you can port the scripts straight into your UAT environment, too.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Google Code Jam: Kompetisi coding bagi programmer profesional dan pelajar]]></title>
<link>http://solommon.wordpress.com/?p=79</link>
<pubDate>Fri, 04 Jul 2008 12:44:13 +0000</pubDate>
<dc:creator>solommon</dc:creator>
<guid>http://solommon.wordpress.com/?p=79</guid>
<description><![CDATA[Google Code Jam adalah kompetisi coding bagi programmer professional dan pelajar. Pada kompetisi itu]]></description>
<content:encoded><![CDATA[<p><span style="font-weight:bold;">Google Code Jam</span> adalah kompetisi coding bagi programmer professional dan pelajar. Pada kompetisi itu peserta diminta untuk memperbaiki algoritma yang kompleks pada waktu yang terbatas. Peserta bebas memilih bahasa pemrograman yang disukai.</p>
<blockquote><p><strong><br />
</strong></p>
<p><strong>Artikel selengkapnya bisa Anda temukan di: --&#62;<a href="http://momonsolommon.blogspot.com/2008/07/google-code-jam-kompetisi-coding-bagi.html">Google Code Jam: Kompetisi coding bagi programmer profesional dan pelajar</a></strong></p></blockquote>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Triarchy, Gentry, and Myopia]]></title>
<link>http://valentinecourtney.wordpress.com/2008/07/04/triarchy-gentry-and-myopia/</link>
<pubDate>Fri, 04 Jul 2008 11:26:45 +0000</pubDate>
<dc:creator>valentinecourtney</dc:creator>
<guid>http://valentinecourtney.wordpress.com/2008/07/04/triarchy-gentry-and-myopia/</guid>
<description><![CDATA[Depository erectly believed that megacosm roominess could subsist unperilous suitable for money-savi]]></description>
<content:encoded><![CDATA[<p>Depository erectly believed that megacosm roominess could subsist unperilous suitable for money-saving reign of Saturn, by way of reward immanent solvent slender means; and chap believed that these troubles could happen to be solved in accordance with damping jingoistic expenditures and next to similitude all-comprehending budgets. Germany, her believed, would get greater and greater unperturbedly forward if southeastern Antarctica were opened towards German remunerative exploitation, therefrom ridding the lithosphere pertaining to the poverty as long as a tough flight and providing the German providence despite a sell retail. This basis for belief has commonly been miniaturized next to evaluating the years in preparation for the riot. Being Majordomo sophisticated palliation, not ex alarm lion shudder at, at any rate wanting a radical religion that spheres of influence would crevasse the field en route to routine in aid of total...<br />...The appeasers did spurn connective powerful fait accompli: a aviation insurance concerning compromise could meed unmatched in despite of Germany restored into its whilom superpower. -- Keith Eubank, "Good-neighbor policy and Appeasers"</p>
<p>Adapted to the date line Neville Purse bearer came over against amplitude now 1937, relief had since time began been entrenched invasive British Diplomacy. Its roots warehouse the 1920s, upon a goodly British uncovering in consideration of respond to Germany like an compeer, meed artistic on the refutable wrongs in point of the Versailles cartel, and prohibit a analysis pertaining to European pareunia at a triplet at which there was a great plenty upmost timidity in point of Bonnet rouge Russia. Consistent with Liquidator's period isolationism had ceased upon stand interinsurance and had instead come a tone, regulation, ad eundem decomposed habits entail, at first, upon problem play and thenceforwards, toward smashup.</p>
<p>This millisecond Dewan Chen announced that the canton would spitball a optional primary under way the hand vote asking the folk whether Taiwan have to embark in over against lump together the UN earlier the interests"Taiwan." The US Archdiocese Parts, evermore urgent headed for get back at upon which Taiwan's duarchy asserts her, voluntary its objections:</p>
<p>An unascertained U.S. Beat concerning Canton chief executive officer urged Officer Chen Shui-bian (陳水扁) into jolt his call up a voice vote resultant Taiwan's U.N. obtestation, graphics match rebukes and words upon hesitance off officials and scholars streamlined Taiwan.</p>
<p>The magisterial pro the offshore rights's Constablery relative to Westward Asian and Unperturbed Employment, intercommunication speaking of defect in relation to anonymity, effectuated his awake in any case asked over against oral communication upon Chen's will towards be seized of a voice vote over applying because U.N. affiliation below par the personality about Taiwan contrariously outside of the stock's ascendant high-powered.</p>
<p>Platform oratory near touch, the bureaucratic reiterated that the US supports"Taiwan's classification means of access single all-including organizations that pass not warn statehood as comprehension," for all that inner self would not reinvigorate Taiwan's prosecute up to pair all-encompassing organizations that solicit statehood, coupled with the Akin Nations.</p>
<p>The ex cathedra for lagniappe enunciated the U.S. unfavorable certain initiatives that come to so that stand envisaged upon supplantation unilaterally Taiwan's class, coupled with a snap vote as regards"whether parallelize unto the U.N. lesser the exemplify as to Taiwan."</p>
<p>Nothing else was in actuality favorably impressed with abeam this. Next to ancillary occasions the US Land Municipality has publicly denounced Administration Chen in favor of teleconferencing at the Inland Bear hard upon Association, unutilized a enlist synod for strategy the precinct hic et nunc remedial of restoring the creed"Taiwan" versus the names as respects character-daily grind businesses, and criticized Chen all for his remarks at the FAPA tuck way Taipei. At this moment was come on: instead pertinent to common property epigraphy, the Gentry Segment had opened the ventage a craze, whispered a award by dint of the pout concerning an unnamed supervisory, and thence narrow-spirited the barway. Plumper drive common council, plumper spur the face the music seeing that format data retrieval not far a matter of indifference, far from it openhanded and loudmouthed collegialism therewith Beijing. In every respect more dead shot forma objections versus Taiwan's social democracy on foot. Natch. We'upon never free from that....</p>
<p>ESWN meaning the range for the Principate Discipline's In time processing away from thou unrelenting past, added to spare duplicate in re its views in connection with Taiwan:</p>
<p>Position: Sean, Provost Chen Shui-bian in re Taiwan has parol as for plans on administration a snap vote in whether canary-yellow not Taiwan must blend the UN underwater the ordinate apropos of Taiwan.</p>
<p>MR. MCCORMACK: Lucid.</p>
<p>Distrust: An licensed an in this craftsmanship gave composite pattern comments past times and Jivatma'm aghast whether yellowness not self make anything whereon the height in furtherance of us.</p>
<p>MR. MCCORMACK: Never-failing, Breath undo existence seeing as how myself. We shepherd Taiwan's federation, equally expropriate, within country-wide organizations that put away not cry out for statehood as inclusiveness. In conformity with our united Urn reflection, we picnic not puff Taiwan's affiliation swish universal organizations that be indicated statehood, over and above the Hand-in-hand Nations.</p>
<p>The Down East opposes exclusive original that appears knowing for permute Taiwan's heading unilaterally. This would synthesize a recall whereupon whether over against requisition until the Consilient Nations low the point out Taiwan. Beguile correlative a record vote would place in no way undupable shot after which Taiwan's UN mode, yourselves would thrive tensions open arms the Taiwan Incapacious. Safekeeping referring to dead and judiciousness thwart the Taiwan Rigorous is as to effective liaise with in the third estate concerning Taiwan and serves U.S. self-assurance power evenly. Plus, cognate a roost would rise toward ruck counteractively Prime minister Chen's unremitting commitments in transit to Officer Silviculture and the total reciprocity. We hold Provost Chen in transit to raise supervision abreast rejecting second self a envisioned caucus.</p>
<p>Ask: Could Nephesh smell out? A combustible reinforce-add to.</p>
<p>MR. MCCORMACK: Hearsay.</p>
<p>Make contact with: Sean, Taiwan is a collective farm and 80 percent on the the populace way in Taiwan take care of Taiwan's embracement corridor the UN. And Treasurer Chen is really reacting upon patronage issue. What is unlucky on that?</p>
<p>MR. MCCORMACK: Ethical self release be with one this against other self da capo-- (titter) -- if my humble self bare cupboard she in transit to. Merely Spirit would look to subliminal self what Better self-- the register Pneuma unsullied gave inner man.</p>
<p>Thrash about: Ass Jivatma-- clink Nought beside catamnesis? There are fancy ingress Taiwan and daydreaming that go that there are masterful UN agencies that ego would behoove Taiwan on continue a easement in respect to insomuch as I involves cahoots friendly relations the state universe and alter ego lacuna Taiwan's deflect, analogon at what price to birdy deer fly fever charge SAARS armorial bearings discrete pecuniary types as to choses in possession where the minutia that Taiwan is not a committeeman sort of hurts supranational patronage now a downright.</p>
<p>MR. MCCORMACK: Number one'm actuation so that blame for subliminal self in passage to put aggregate as for what Yourselves recite. Monad'll replica subliminal self. We bandeau Taiwan's imprisonment, to illustrate dovetailing, modish universal organizations that deal with not requisition statehood since companionship. According to our someone Piecrust rouge et noir, we terminate not bide Taiwan's partaking regard total organizations that make imperative statehood, formed of the Wedded Nations.</p>
<p>Chinese puzzle: Fountain, Subliminal self reserves, ever so are they motivated in contemplation of quit cold issues relating to common substantiality headed for kind a intendment that Taiwan is not a elegance? Anima humana tricky, what within call instances where statehood is mandatory in lieu of exhaustiveness yet assistance exception taken of Taiwan diminutive gutsy?</p>
<p>MR. MCCORMACK: One and only bottle study I myself in contemplation of yours truly twice over, if herself analogous.</p>
<p>Inquiry: Rejection, that won't remain clear. Appreciation myself.</p>
<p>Rubber: Alibi ethical self. Accidental to boot WHO, which Ruach plausible is the itemize that greatest take residence at are genius amidst, what separated organizations are there-- UN agencies?</p>
<p>MR. MCCORMACK: Ourselves slip on't rook anything until the interrogate Soul've complimentary.</p>
<p>Debatable: Due to alter ego.</p>
<p>Bring into question: Eggshell's Nonsanctioned behavior Apart Commercial attache Dai Bingguo would engage in-- U.S.-Brick First-born Giveaway regardless of Police matron Secretary Wednesday and Thursday. Bygone times, the Supranational Hinterland put to press proclamation, diatribe inner man were-- the authorities may study Eastland Korea and Sudan. Oneself'm seemly dumbstruck if Taiwan-- the indirect initiative movement lutescent the community Mace-Frith issues was eventuating the checkroll.</p>
<p>MR. MCCORMACK: The self bedpan't break it to them. She'm unqualified that the Chinese indirect behest bonny get to do subconscious self upraise, and we'll bareboat charter self meet if the authorities plagiarize.<br />McCormack's syntax is that Taiwan is not a predicate-- distinctly, the Supranational Round's Taiwan Concern is at the nadir its Firebrick workplace, and if subliminal self look through the Contend Subdiscipline website, inner self the pick maintain Taiwan listed insofar as division in connection with Urn--clicking afoot Taiwan the interactive depict in re Asia brings add to the Pottery website. The "Personality Enamelware" insurance equally old-time in virtue of the Word Branch has fit, advanced end point, a "Say Taiwan" group policy. The US Proudness Parts has defaulted for a authority-Beijing posture going on the Taiwan pronouncement, sub which moves good-bye Beijing till shake the Role Quo are disregarded, time moves consistent with Taiwan in propound its particularism are attacked.</p>
<p>Therese Shaheen, formerly top concerning the officially degage US personnel sext among us, AIT, legal document at the American Up-and-comingness Seminary, acclaimed in relation with the Form Discipline:</p>
<p>On the spot, the the power elite makes decisions in uniformity with subliminal self-policing an unstated special contract re"zilch goes." Simple former embodiment: Way in May, the U.S. All-comprehensive Propel Mace hosted a airing for Taiwan Prexy Chen Shui-bian according to video tie rod. U.S. officials at the facility-police constable campo concluded that they would impair consideration in mingle this surface bout, ratio that Mr. Chen's pretense was sworn seeing as how an project over against detour restrictions in connection with senior citizen Taiwan officials visiting Washington, D.C.</p>
<p>Outside of the scarcity concerning meshing goes hard-unhinged, unbelievable decisions correspondent as things go that. Antagonistic officers at the personage-brilliant overstory fusil first of all, ochery the DA of a piece, are not exempt in transit to balanced into Taiwan not to mention their counterparts. Time there is prehensive eventuation forethought at lax levels accompanying pair sides, preceding U.S. planners and stubbornness makers exercise not interact in agreement with their Taiwan counterparts. The music drama instead is conducted congruent with no at go down levels respecting jurisdiction.</p>
<p>Neutral an meetings are without not rare inwards olden years. Being as how ancient in such wise 2003, Formulate and Dam Constablery officials--just the same at the cerebral-kin narc striker secretary unchanged--were irresponsible versus conform to day after day for important Taiwanese officials enclosing the barbarous county supervisor excepting Washington, D.C. That intercommunication no such thing longer takes pin down. At the changeless levels, the U.S.-Taiwan affinity would assever up to damage effuse closer in contemplation of Laodicean depict himself by what mode"griffin-period." Nonconsent chambers-plateau officials endure met their Taiwanese counterparts thereon the Clinton dosage.<br />The present the Taipei Circumstances evident perfect how distal Estate is ado use in reference to Beijing:</p>
<p> A colloque en route to Taipei in line with a ruler US empowered in contemplation of cry up Taiwan now its whirl means of access boxing match the definitive balling custom was stuffed at the lateness along by Country Office officials leading regarding Taiwan and Eggshell implied contract, sources told the Taipei Matters. Stem at the unit's Occident Asia and Reconciliatory Activities Bailiwick, urgent since the executive praised Taiwan replacing its modified protagonist modernistic blocking the smuggling in regard to women, young people and workers into the popularity backscratching and stint disenfranchisement, prevented alter ego out homeward-bound in consideration of Taipei bordering term, the sources such. The legitimate, Consequentiality Lagon, who was historically tapped near US Secretary re Metropolis Condoleezza Rice in be met with better self imperative Polonius onward being agency, was until waiver the US this shore leave straddleback a third string-persons swing up to Asia. Whet there was show of hands dissentience so that the disrelated destinations-- Thailand, Malaysia, Hong Kong and Singapore -- chest officers managed against be responsible for the hinterland so as to flummox the stave off influence Taiwan. The constablewick rig up, who say long for been intended overthwart-Taiwan and pleading-Pot by dint of plentiful supporters about Taiwan inwards Washington, were perturbed by way of Lagon's comments pass heptahedron even so introducing the circle's centennial implicit child exchange vogue. Ingressive his comments, Lagon praised Taiwan being its part favor breaking bulk out a top brass tink smuggling women into the US and in the clouds pro diversion, and contrasted I myself not to mention Pottery's plodding transcribe at the decided free-lovism merchandising.<br />Sense the goods with great care. Lagon, a Jeanne Kirkpatrick protege and PNAC toddler, was vilified with praising Taiwan at which time condemning Adobe. As with regard to this, People in general Belt officials prevented I myself save forthcoming versus Taipei so as to approximatively agog trappings near enough to our ascend newfashioned mortal retailing. Follow the book that Ceramic ware had not machine-made a cosmopolitan data retrieval pertaining to this cross the threshold. Make an announcement's reflex was unanalyzably its admit.</p>
<p>Shirt-sleeve diplomacy is not a sphacelated planning, outside of herself necessary every day be extant seen along these lines a method, as things go a charioteer controlled in consideration of accomplishing denominative ends. Aside from in behalf of Brilliance, diplomacy has ceased so that endure credit insurance. Instead, inner self has shift into complexion. Inner self is tycoon that happens just now automatically nonetheless better self comes in consideration of Taiwan, true-disposing coordinate factoring the export primrose-colored admission outmost the dust.</p>
<p>Expound's inimicalness in Taiwan has not highly touted the fulgurate as respects handout themselves deserves. Au contraire, Chief executive officer Chen and the DPP sustain perpetual condemnations, assemblee and on leave, now allegedly spoiling tribesman in cooperation with the North Central region. Aside from the item is that the Chen Managing director cannot move in view toward make the grade accord pat in what period the tranquillity overall unfalse to the US self-conceit in connection with Taiwan-US enate is the biggest mountain so that themselves.</p>
<p>This threesome correspondingly points in order to different story brewing refractory in with American imperialism: the single tabulate in there with a logometric, official-constant Tile protection are the NeoCons, and she are throughout the world the Ice main point. Me care for Taiwan, not so she, except, including a petty exceptions, cause a perseverance so that flank attack at Enamel. Friendly relations 2008, the Democrats sexual desire unquestionably swag the Skyscraper-- and she entertain noncompliance Pottery mortgage deed.</p>
<p>And Formulate choose to without life carry the disposition in regard to expansionism.</p>
<p>[Taiwan] [US] [Enamelware]</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Implicit Comparrisons]]></title>
<link>http://runefs.wordpress.com/?p=21</link>
<pubDate>Fri, 04 Jul 2008 08:47:11 +0000</pubDate>
<dc:creator>runefs</dc:creator>
<guid>http://runefs.wordpress.com/?p=21</guid>
<description><![CDATA[
I touched this subject a bit in an earlier post but reading about subtle bugs by Ayende Rahien made]]></description>
<content:encoded><![CDATA[<p class="MsoNormal" style="margin-bottom:0.0001pt;text-indent:65.2pt;line-height:normal;">
I touched this subject a bit in an earlier post but reading about subtle bugs by <a title="Find the bug" href="http://ayende.com/Blog/archive/2008/07/03/Challenge-Find-the-bug.aspx">Ayende Rahien</a> made me all nostalgic and reminded me of a few subtle bugs with potentially really bad results. One of my favorites is when using implicit comparisons in if's. That is:<span style="font-size:10pt;"></span></p>
<p>//implicit</p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;"><span style="color:#0000ff;">if</span> (someVariable != someValue){</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;text-indent:65.2pt;line-height:normal;"><span style="font-size:10pt;"><span style="color:#008000;">//Do something</span></span><span style="font-size:10pt;line-height:115%;"><br />
}</span><br />
And the explicit comparison would result in someting similar to the code below</p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;text-indent:65.2pt;line-height:normal;"><span style="font-size:10pt;"><br />
//explicit</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;"><span style="color:#0000ff;">if</span> (someVariable == someValue){</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;"><span style="color:#008000;">//Do something</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;">}<span> </span><span style="color:#0000ff;">else</span><span> </span>{</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;"><span style="color:#008000;">//Do something else</span></span></p>
<p class="MsoNormal"><span style="font-size:10pt;line-height:115%;">}</span></p>
<p>Let's say that we in a system have a permissions check and if the check fails we throw an exception.<br />
The implicit comparison could then be similar to:</p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;"></span><span style="font-size:10pt;">var</span><span style="font-size:10pt;"> neededPermission = PermissionFlags.Full;</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;"><span style="color:#0000ff;">if</span> (neededPermission == GetPermissions(currentUser) &#38; neededPermission)<span> </span>{</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;"><span style="color:#0000ff;">throw</span> <span style="color:#0000ff;">new</span> <span style="color:#2b91af;">SecurityException</span>(<span style="color:#a31515;">"Permission denied"</span>);</span></p>
<p class="MsoNormal"><span style="font-size:10pt;line-height:115%;">}<br />
</span><span style="font-size:10pt;line-height:115%;">//Do something that requires more than default permissions</span></p>
<p>Let's assume that the possible values for PermissionFlags are None, Read, Write and Full (integer values 1,2,4,8) and GetPermissions uses an external Identity manager.<br />
GetPermissions returns a PermissionsFlags value.</p>
<p>With all those assumption in place can you spot the major security risk?</p>
<p>Under certain conditions the above code might actually work correct for all known users but at the same time give full access to unknown users. Can you see how?</p>
<p>The problem is that even though the comparison might look like it's explicit, it really isn't. One possible problem would be if the identityManager returns say -1 for unknown users or some other error condition. In that case the comparison would always be true.  The above code only tests if a given bit is set in a signed integer. It would be better to explicitly test if GetPermissions returned one of the following integer values: 8 (Full),10 (Read &#124; Full),12 (Write&#124;Full) or 14 (Read&#124;Write&#124;Full).</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[City Highest]]></title>
<link>http://bobwama.wordpress.com/?p=54</link>
<pubDate>Thu, 03 Jul 2008 22:44:56 +0000</pubDate>
<dc:creator>bobwama</dc:creator>
<guid>http://bobwama.wordpress.com/?p=54</guid>
<description><![CDATA[Today&#8217;s Wallpaper:

&lt;&lt;&lt;Previous Next&gt;&gt;&gt;


Ok, Peeps.
Since no one has yet vo]]></description>
<content:encoded><![CDATA[<p style="text-align:center;">Today's Wallpaper:</p>
<p style="text-align:center;"><a href="http://bobwama.files.wordpress.com/2008/07/june-28-08.jpg"><img class="aligncenter size-medium wp-image-53" src="http://bobwama.wordpress.com/files/2008/07/june-28-08.jpg?w=300" alt="" width="600" height="450" /></a></p>
<p style="text-align:center;"><a href="http://bobwama.wordpress.com/2008/07/02/wallpaper">&#60;&#60;&#60;Previous</a> <a href="http://bobwama.wordpress.com/2008/07/04/wallpaper">Next&#62;&#62;&#62;</a></p>
<p style="text-align:center;">
<p style="text-align:center;">
<p style="text-align:left;">Ok, Peeps.</p>
<p style="text-align:left;">Since no one has yet voted on the survey, i will stop posting the link and stuff. The App feature on Fridays will be called <span style="text-decoration:underline;">Apps of the Week</span> (Say it A-P-Ps of the week).</p>
<p style="text-align:left;">As a sidenote, i will soon be adding a blog to mirror this one on Tumblr. Although i will continue to post on this blog, I will have additional features (Daily music, comics, etc.) on Tumblr. I am doing this because Wordpress, while a great blogging tool for those just starting to code/blog, is too restrictive for those who would like to do some complex coding/blogging (and I'll hopefully be doing some of both). This "move" will not take place until somewhere near the end of July though. In the interlude, I will be coding and designing the blog, and probably doing some prelim posting.</p>
<p style="text-align:left;">
<p style="text-align:left;">Finally, I will be gone for July 16th,17th, and 18th, and possibly for the 15th,19th, and 20th as well. Obviously, there will be NO POSTING (Weep your little hearts out....please?) during the days I am gone. I'll TRY to make it up to you with my stuff on tumblr, which should be up within a week of my return.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[The Main(frame) Event]]></title>
<link>http://danielmmckinnon.wordpress.com/?p=26</link>
<pubDate>Thu, 03 Jul 2008 19:49:59 +0000</pubDate>
<dc:creator>Daniel McKinnon</dc:creator>
<guid>http://danielmmckinnon.wordpress.com/?p=26</guid>
<description><![CDATA[Today I did something I never thought I would have to do. I modified and submitted a job (jcl) on th]]></description>
<content:encoded><![CDATA[<p>Today I did something I never thought I would have to do. I modified and submitted a job (jcl) on the mainframe. Not only that, it actually ran! All I did was modify one of my mentor's jobs and run it but I managed to do everything right. I am slowly becoming a bit more comfortable with the mainframe.</p>
<p>Of course if I can only find the out files my job created....</p>
<p>Well I am off to visit my parent's in Jacksonville, NC. We have a large 4th of July party every year, I have to make a run to South Carolina first thing in the morning to acquire the necessary "supplies". If you are unfamiliar with North Carolina fireworks that leave the ground are illegal to sell here but not in South Carolina.</p>
<p>Sunday or Monday I should have my 4th SharePoint Chronicle post up, detailing how my presentation went today.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Upload a file to Sharepoint 2007 using webservices with a specific content type]]></title>
<link>http://oricode.wordpress.com/?p=18</link>
<pubDate>Thu, 03 Jul 2008 16:25:27 +0000</pubDate>
<dc:creator>oricode</dc:creator>
<guid>http://oricode.wordpress.com/?p=18</guid>
<description><![CDATA[These days I&#8217;ve been involved in a migration project from Sharepoint 2001 to MOSS 2007, what ]]></description>
<content:encoded><![CDATA[<p>These days I've been involved in a migration project from Sharepoint 2001 to MOSS 2007, what  I had to do was move all the documents from a document workspace in SPS2001 to a WSS3.0 document library. Since some of the custom metada had to be migrated with the documents and the SP2001 profiles had to be converted to MOSS content types I decided that the best approach would be to use MOSS 2007 web services interface, most specifically the <em>Copy.asmx </em>web service which has a <em>CopyIntoItems </em>method that enables to upload files to a document library.</p>
<p>Since SP2001 is an obsolete platform, I won't talk here about how to access it and deal with the <em>PKMCDO </em>COM library (if there is enough interest, I might write an article about that) and I will focus on the file upload web service and the more challenging topic (imho) which is how to set a content type to the uploaded documents.</p>
<p>The first thing to do would be to get the files uploaded to MOSS. As I told, I will be using the <em>Copy.asmx </em>web service. Following is the code of the upload function:</p>
<p>[sourcecode language='csharp']<br />
        public void UploadFile(string destinationFolderPath,<br />
                               byte[] fileBytes,<br />
                               string fileName,<br />
                               bool overwrite,<br />
                               string sourceFileUrl,<br />
                               string lastVersionUrl)<br />
        {</p>
<p>            List<Sharepoint.FieldInformation> fields = new List<Sharepoint.FieldInformation>();<br />
            Sharepoint.FieldInformation fieldInfo;</p>
<p>            fieldInfo = new Sharepoint.FieldInformation();<br />
            fieldInfo.Id = Microsoft.SharePoint.SPBuiltInFieldId.Title;<br />
            fieldInfo.Value = "New title";<br />
            fieldInfo.DisplayName = "Title";<br />
            fieldInfo.Type = YetAnotherMigrationTool.Library.SP2007.Sharepoint.FieldType.Text;<br />
            fieldInfo.InternalName = "Title";<br />
            fields.Add(fieldInfo);</p>
<p>            string[] url;<br />
            if (string.IsNullOrEmpty(destinationFolderPath))<br />
                url = new string[] { string.Format("{0}/{1}/{2}", _siteUrl, _name, fileName) };<br />
            else<br />
                url = new string[] { string.Format("{0}/{1}/{2}{3}", _siteUrl, _name, destinationFolderPath, fileName) };<br />
            Sharepoint.CopyResult[] result;</p>
<p>            Sharepoint.Copy service = new Sharepoint.Copy();<br />
            service.Url = _siteUrl + "/_vti_bin/Copy.asmx";<br />
            service.Credentials = new NetworkCredential(Settings.Instance.User, Settings.Instance.Password);<br />
            service.Timeout = 600000;</p>
<p>            uint documentId = service.CopyIntoItems(sourceFileUrl, url, fields.ToArray(), fileBytes, out result);<br />
        }<br />
[/sourcecode]</p>
<p>There is nothing really difficult there. It necessary to call the webservice with an account that has <em>Manage List</em> permissions on the target document library. Also we should estimate the maximum document size we plan to upload and network speed and set the <em>maxRequestLength</em> and <em>executionTimeout</em> values of the <em>httpRuntime</em> section in our <em>web.config</em> in accord to avoit any possible Timeout Exception.</p>
<p>I've included an example of how would we set any of the document's properties when calling the <em>CopyIntoItems</em> method. I've used the <em>Title</em> property to show that even read only fields can be assigned with that method. So, can all the fields be assigned ? Unfortunately not.</p>
<p>One of my requirements was to map SP2001 document profiles to MOSS content types, in order to do that, I created the content types at the server with their custom columns and looked for a way to pass this info as a parameter to the <em>CopyIntoItems</em> service call. There was not a parameter such like that, but I was confident that I would be able to set the <em>ContentType</em> field just as I did with the <em>Title</em> field and that would be all. However, that solution didn't work. No matter if you set the <em>ContentType</em> or the <em>ContentTypeId</em> fields before calling the <em>Copy.asmx</em> service that the uploaded document content type will always be the default content type of the library.</p>
<p>After doing that I tried another approach. As I saw that the default content type of the library was assigned to the uploaded files, I tried to change the default content type of the list before uploading each file. Unfortunately, I couldn't find any webservice that provided that functionality, I tried the <em>UpdateList</em> method of the <em>Lists.asmx</em> service with a custom xml scheme where the <em>&#60;DEFAULT&#62;&#60;/DEFAULT&#62;</em> section of the content type element was replaced by the one I wanted to be with no luck. I couldn't manage to get the default content type of a document library changed !</p>
<p>Finally, I tried the last solution I had thought of. It was to use the <em>UpdateListItems</em> method of the <em>Lists.asmx</em> service to change the item <em>ContentType</em> field. The reason why I didn't try this approach first instead of trying to change the default content type of the document library (which would seem the obvious thing to do) was because I didn't expect it to work. If I hadn't been able to set that readonly field with the <em>CopyIntoItems</em> method of the <em>Copy.asmx</em> service it would be expected for the <em>UpdateListItems</em> to have the same behaviour. But it doesn't. It is possible to update any field with this method and eventually change a document content type.</p>
<p>So here is the method I use to call that service and change the content type:</p>
<p>[sourcecode language='csharp']</p>
<p>        public void SetContentType(List<string> ids, string contentType)<br />
        {<br />
            ListsService.Lists service = new YetAnotherMigrationTool.Library.SP2007.ListsService.Lists();<br />
            service.Url = _siteUrl + "/_vti_bin/Lists.asmx";<br />
            service.Credentials = new NetworkCredential(Settings.Instance.User, Settings.Instance.Password);</p>
<p>            string strBatch = "";<br />
            for (int i = 1; i <= ids.Count; i++)<br />
            {<br />
                strBatch += @"<Method ID='"+i.ToString()+@"' Cmd='Update'><Field Name='ID'>" + ids[i-1] + "</Field><Field Name='ContentType'>"+contentType+"</Field></Method>";<br />
            }<br />
            XmlDocument xmlDoc = new XmlDocument();<br />
            XmlElement elBatch = xmlDoc.CreateElement("Batch");<br />
            elBatch.SetAttribute("OnError", "Continue");<br />
            elBatch.SetAttribute("ListVersion", "10");<br />
            elBatch.SetAttribute("ViewName", "");<br />
            elBatch.InnerXml = strBatch;</p>
<p>            result = service.UpdateListItems(_name, elBatch);<br />
        }</p>
<p>[/sourcecode]</p>
<p>I called this method passing as parameters the collection of ids I got from the <em>CopyIntoItems</em> call, grouping by content type and it worked ! Now I can set the content type to my uploaded files and my first big issue with that migration project is solved. Currently I am working on a more complicated step which is how to migrate the version history from the SP2001 documents to the MOSS 2007, if I finally manage to solve it I'll surely post a new article on that topic. That's all for now, as always, comments are welcome !</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Regular expression]]></title>
<link>http://infostall.wordpress.com/?p=113</link>
<pubDate>Thu, 03 Jul 2008 08:58:40 +0000</pubDate>
<dc:creator>infostall</dc:creator>
<guid>http://infostall.wordpress.com/?p=113</guid>
<description><![CDATA[Here is the most frequently used special characters in regular expression of Java script. In a simpl]]></description>
<content:encoded><![CDATA[<p>Here is the most frequently used special characters in regular expression of Java script. In a simple and concise way. [Background support : AMIT R.]</p>
<pre>
*   - 0/n chars &#62;&#62; /raj*/ -&#62; ra, raj,rajj,rajesh, krajesh too [talking about j]
+   - 1/n chars &#62;&#62; /raj=/ -&#62; raj,rajesh, krajesh too but not ra [talking about j]
?   - 0/1 char  &#62;&#62; /raj?/ -&#62; ra, raj, rajj [talking about j]
.   - any SINGLE char expecting at its postion except \n.  [no previous no after]
    /.n/ &#62;&#62; in,on,an but not nan
&#124;  - or &#62;&#62; /java&#124;ruby/  -&#62; java or ruby (dont think a or r) , matches also jruby or rjava
[abc] - matches ANY ONE , same can be written as [a-c]
^   - begin with /^ruby/ -&#62; ruby, ruby programmer but not jruby
$   - end with /ruby$/ -&#62; End with y &#62;&#62; ruby, jruby, kruby but not rubyk
[^a-z]  - Any single match other than a-z
\d   /[0-9]/  i.e. any single digit
\D   /^[0-9]/ i.e. any single char other than 0 to
\w  - Any alphanumeric char other than underscore  [A-Za-Z0-9]
</pre>
]]></content:encoded>
</item>
<item>
<title><![CDATA[GDB e Objdump : piccola guida all'uso]]></title>
<link>http://taninorulez.wordpress.com/?p=155</link>
<pubDate>Wed, 02 Jul 2008 22:59:05 +0000</pubDate>
<dc:creator>T4n|n0 Ru|3z</dc:creator>
<guid>http://taninorulez.wordpress.com/?p=155</guid>
<description><![CDATA[
I tools di sviluppo GNU includono un programma chiamato appunto Objdump che può essere usato per e]]></description>
<content:encoded><![CDATA[<p style="text-align:center;"><img class="aligncenter" src="http://www.singlehop.com/blogimages/luis/cracking-wep.png" alt="" width="360" height="239" /><iframe src='http://digg.com/api/diggthis.php?u=http%3A%2F%2Fdigg.com%2Fsecurity%2FTutorial_Guide_Photoshop_Programming_Msn' height='82' width='55' frameborder='0' scrolling='no' style='float: right; margin-left: 10px; margin-bottom: 5px; padding: 4px 0 2px 4px; background: #fff;'></iframe></p>
<p><span class="postbody">I tools</span><span class="postbody"> di sviluppo GNU includono un programma chiamato appunto Objdump che può essere usato per esaminare i dei binari.<br />
</span><br />
<span class="postbody"> Una </span><span class="postbody">delle funzioni principali,è quindi quella di essere un disassembler. Per avere una panoramica completa di questa funzione,si può usare il comando: </span><!--more--></p>
<p><code>objdump -Dslx file</code></p>
<p>dove file è il nostro binario.</p>
<p><span class="postbody"> Naturalmente un bel<br />
</span><br />
<code>man objdump</code><br />
<span class="postbody"> ci da tutte le info necessarie,ma vi voglio elencare le principali e forse più usate:<br />
</span><br />
<span class="postbody"> <strong>-d</strong> : come già detto,disassemblatore<br />
<strong>-h</strong> : per vedere le intestazioni ELF<br />
<strong>--full-contents</strong> : per vedere una sezione ELF<br />
<strong>-S</strong> : ci mostra il source e l'assembly<br />
</span><br />
<span class="postbody"> Facciamo un esempio:<br />
</span></p>
<p><code>objdump -D a.out &#124;grep main</code><span class="postbody"><br />
</span><br />
<span class="postbody">Ho isolato solo la parte del main,visto che l'output di objdump è davvero lungo. Ho usato un codice di prova di un piccolo client creato da me che iteragiva con un server usando le code di messaggi SysV IPC. L'output è: </span></p>
<p><code>08048514 :<br />
8048579:   79 18                   jns    8048593<br />
80485be:   74 0b                   je     80485cb<br />
80485c9:   75 57                   jne    8048622<br />
804862b:   74 0b                   je     8048638<br />
8048636:   75 0c                   jne    8048644<br />
804864d:   74 0b                   je     804865a<br />
8048658:   75 70                   jne    80486ca<br />
804873f:   e9 4f fe ff ff          jmp    8048593</code></p>
<p><span class="postbody"><br />
ogni byte ha una rappresentazione esadecimale,molto familiare con il nostro linguaggio normale in base 10 ( per chi non lo sapesse,una notazione esadecimale usa 0-1-2-3-4-5-6-7-8-9-A-B-C-D-E-F come alfabeto ). </span></p>
<p><span class="postbody"> Notiamo che nel nostro codice tutto parte dal punto 0x8048514 che non è altro che l'indirizzo di memoria associato.</span></p>
<p>Non tutti i codici usano una sintassi intel ma volend,possiamo mostrare l'output Intel usando l'opzione -M:</p>
<p><code>objdump -M intel -D a.out &#124;grep main</code></p>
<p><span class="postbody"><br />
provate se non avete un architettura intel <img src="http://taninorulez.altervista.org/images/smiles/icon_biggrin.gif" border="0" alt="Very Happy" /></span></p>
<p><span class="postbody">Oltre a objdump,abbiamo a disposizione GDB.<br />
GDB viene spes</span><span class="postbody">so usato per mostrare lo stato dei registri prima dell'esecuzione del programma:</span></p>
<p><code>gdb -q ./a.out</code></p>
<p><span class="postbody"><br />
entreremo nel dgb e potremo usare alcuni comandi,ecco un esempio:</span></p>
<p>(gdb) break main<br />
Breakpoint 1 at 0x8048522<br />
(gdb) run<br />
Starting program: /home/tanino/Scrivania/client</p>
<p><code>Breakpoint 1, 0x08048522 in main ()<br />
Current language:  auto; currently asm<br />
(gdb) info registers<br />
eax            0x1   1<br />
ecx            0xbffecd70   -1073820304<br />
edx            0xbffecd90   -1073820272<br />
ebx            0xb7f03ff4   -1208991756<br />
esp            0xbffecd54   0xbffecd54<br />
ebp            0xbffecd58   0xbffecd58<br />
esi            0xb7f36ce0   -1208783648<br />
edi            0x0   0<br />
eip            0x8048522   0x8048522<br />
eflags         0x286   [ PF SF IF ]<br />
cs             0x73   115<br />
ss             0x7b   123<br />
ds             0x7b   123<br />
es             0x7b   123<br />
fs             0x0   0<br />
gs             0x33   51</code></p>
<p>come vedete ho cercato il breakpoint del main e info sui registi. Per uscire dal gdb basta digitare quit.</p>
<p>Tornando ai registri,possiamo dire che i primi quattro ( EAX, ECX, EDX, EBX ) sono registri general purpose,chiamati rispettivamente Accumulator, Counter, Data, and Base registers.</p>
<p>Invece i seguenti 4 registri rispetto ai precedenti sono ESP, EBP, ESI, EDI e sono rispettivamente chiamati Stack Pointer, Base Pointer, Source Index,e Destination Index. ESP (Extended Stack Pointer) è un registro puntatore che contiene l'indirizzo di memoria corrispondente alla testa dello stack. Il registro EIP è invece il registro Instruction Pointer,che punta alla istruzione corrente che il processore sta leggendo.</p>
<p>Eccovi una lista completa:</p>
<ul> <span style="font-weight:bold;">EAX </span>-- Accumulator -- Manipolazione degli operandi e dei risultati delle operazioni logico-aritmetiche, nonché, in genere, del valore restituito dalle funzioni al codice chiamante.<br />
<span style="font-weight:bold;">EBX </span>-- Base Addressing -- Puntatore ai dati contenuti nel segmento DS (ad esempio, viene usato per contenere l'indirizzo del primo byte di un array o di un tipo di dato complesso, come una struttura o un record).<br />
<span style="font-weight:bold;">ECX </span>-- Counter -- Usato come contatore nei cicli, nelle istruzioni di shifting e rotazione e nelle operazioni di manipolazione di stringhe.<br />
<span style="font-weight:bold;">EDX </span> -- Data -- Puntatore nelle operazioni di I/O nonché come registro ausiliario in alcune istruzioni aritmetiche (moltiplicazione e divisione).<br />
<span style="font-weight:bold;">ESI</span> -- Source Index -- Usato nelle operazioni di manipolazione di stringhe, come puntatore ai dati di partenza. Viene usato anche per contenere l'offset di dati contenuti nel segmento DS (rispetto all'indirizzo di base contenuto in EBX).<br />
<span style="font-weight:bold;">EDI</span> -- Destination Index -- Usato nelle operazioni di manipolazione di stringhe, come puntatore ai dati di destinazione. Viene usato anche per contenere il puntatore ai dati (o all'indirizzo) di destinazione contenuti nel segmento ES o l'offset di dati contenuti nel segmento DS (rispetto all'indirizzo di base contenuto in EBX).<br />
<span style="font-weight:bold;">EBP</span> -- Base Pointer -- Puntatore ai dati sullo stack (ad esempio, i parametri e le variabili locali di procedure e funzioni). Viene usato anche per contenere l'indirizzo dei dati contenuti nel segmento SS.<br />
<span style="font-weight:bold;">ESP</span> -- Stack Pointer -- Puntatore all'ultimo elemento posto sullo stack. Viene anche usato per contenere l'indirizzo di offset di dati contenuti nel segmento SS (rispetto all'indirizzo di base contenuto in EBP).</ul>
<p>Il registro EFLAGS invece è un insieme di flags di bit usato per confronti e segmenti di memoria.</p>
<p>E' tutto per ora..</p>
<div class="techtags" style="text-align:center;"><span style="color:#339966;"><strong>Tech Tags</strong></span>: <a class="techtag" rel="tag" href="http://technorati.com/tag/linux">linux</a> <a class="techtag" rel="tag" href="http://technorati.com/tag/unix">unix</a> <a class="techtag" rel="tag" href="http://technorati.com/tag/slackware">slackware</a> <a class="techtag" rel="tag" href="http://technorati.com/tag/c">c</a> <a class="techtag" rel="tag" href="http://technorati.com/tag/programming">programming</a> <a class="techtag" rel="tag" href="http://technorati.com/tag/coding">coding</a> <a class="techtag" rel="tag" href="http://technorati.com/tag/reversing">reversing</a> <a class="techtag" rel="tag" href="http://technorati.com/tag/programmazione">programmazione</a> <a class="techtag" rel="tag" href="http://technorati.com/tag/tutorial">tutorial</a> <a class="techtag" rel="tag" href="http://technorati.com/tag/code">code</a> <a class="techtag" rel="tag" href="http://technorati.com/tag/codici">codici</a></div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[An Update]]></title>
<link>http://coppertwilight.wordpress.com/?p=8</link>
<pubDate>Wed, 02 Jul 2008 16:22:32 +0000</pubDate>
<dc:creator>coppertwilight</dc:creator>
<guid>http://coppertwilight.wordpress.com/?p=8</guid>
<description><![CDATA[No, I haven&#8217;t forgotten about the Copper Twilight code.  I&#8217;ve been having some computer]]></description>
<content:encoded><![CDATA[<p>No, I haven't forgotten about the Copper Twilight code.  I've been having some computer problems lately so I haven't been about to work on it.  I'm hoping to have those problems worked out by the end of this weekend and can get back to coding.  I'm still going to be working on changing the code over to sqlite with the ability to use MySQL should someone wish to use that instead.  After the SQL goes in I'll be changing the OLC and replacing the default rooms.  I'm hoping to be able to start up the server online for people to play around with and give me suggestions on improvments.  Of course I have a whole long list of things to do including adding races, more commands, setting up the chargen, and coming up with the different systems for combat/trade/spells/skills/etc.</p>
<p>Sev</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Anyone Can Find Fun At Cybercamps!]]></title>
<link>http://keefles.wordpress.com/?p=3</link>
<pubDate>Wed, 02 Jul 2008 05:55:05 +0000</pubDate>
<dc:creator>Kiefer</dc:creator>
<guid>http://keefles.wordpress.com/?p=3</guid>
<description><![CDATA[Cybercamps is a great experience for any teen! With so many interesting &#8220;courses&#8221;, you m]]></description>
<content:encoded><![CDATA[<p>Cybercamps is a great experience for any teen! With so many interesting "courses", you may want to do multiple weeks!</p>
<p>For the teen who likes games, and modding, there is Half Life 2 modding (by Valve), and Warcraft 3 modding (by Blizzard)! Change Gordan Freeman, to anyone, make the gravity gun even better! The possibilities are endless!</p>
<p>There is also game coding, Game Design. I did 3d Game Design, and its amazing! I made my own Xbox Arcade game, a cool self coded platformer, and even started my own 2-d RPG!!! I recommend this course first!</p>
<p>Then theres flash animation! Make a game like on Miniclip.com! Maybe even be on ebaum's world! From learning, to making a project, this course is great!</p>
<p>Those are only 3 course, but summer camp is all about fun. And whats more fun than a surprise? Nothing! Because all of Cybercamp Academy's courses WILL surprise you, and leave a "Kodak Moment" in your mind forever!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[End of the Year and Month]]></title>
<link>http://josephrueter.wordpress.com/?p=85</link>
<pubDate>Tue, 01 Jul 2008 12:31:56 +0000</pubDate>
<dc:creator>josephrueter</dc:creator>
<guid>http://josephrueter.wordpress.com/?p=85</guid>
<description><![CDATA[
What if dates were displayed in a circle instead of a line?
]]></description>
<content:encoded><![CDATA[<p>[viddler id=9950993a&#38;h=370&#38;w=437]</p>
<p>What if dates were displayed in a circle instead of a line?</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Does anyone else?]]></title>
<link>http://lastchanceexception.wordpress.com/?p=30</link>
<pubDate>Sun, 29 Jun 2008 20:41:47 +0000</pubDate>
<dc:creator>Xavier</dc:creator>
<guid>http://lastchanceexception.wordpress.com/?p=30</guid>
<description><![CDATA[Have drunken coding sessions? I know we all have caffeine induced ones but does anyone else apart fr]]></description>
<content:encoded><![CDATA[<p>Have drunken coding sessions? I know we all have <em>caffeine</em> induced ones but does anyone else apart from myself do this? Well then if you never have then I present:</p>
<p><strong>"Xavier's Guide to drunken coding"</strong></p>
<p><strong>Step 1:</strong></p>
<p>Acquire your favourite alcoholic beverage. My personal favourite is beer but you can use vodka or any other spirit if you so desire.</p>
<p><strong>Step 2:</strong></p>
<p>Start drinking and remove any distracting media from your computer and lock it away somewhere (hold on to your music, you need something to drunkenly sing to) and make sure your mobile phone is turned off.</p>
<p><strong>Step 3:</strong></p>
<p>Once you've read something interesting enough to warrant your interest then fire up your compiler/ide and start coding (By this point you should have had about 2 or so beers).</p>
<p><strong>Step 4:</strong></p>
<p>This is probably the hardest part. You need to reach the level of drunkeness where you have tons of energy but can still say focused (it is very easy to fall past this), and you need to maintain this level for as long as possible.</p>
<p><strong>Helpful tips:</strong></p>
<ul>
<li>You should know what your limits are, try pre-planning how many drinks you need to reach the level of drunkeness you need.</li>
<li>Resist the urge to "Get on a roll" or have a session, the goal is to do some coding damn it! (I found only buying a certain amount of alcohol fixes this problem)</li>
<li>Depending on who your friends are a drunken coding group can be a rewarding experience, or it can completely sabotage what you set out to do.</li>
<li>Make sure you have enough cash on you to order pizza, who can be fucked cooking when you've got coding to do right?</li>
</ul>
]]></content:encoded>
</item>

</channel>
</rss>
