<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Twigleaf's Crossed Wires</title>
	<atom:link href="http://twigleaf.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://twigleaf.wordpress.com</link>
	<description>technology programming</description>
	<lastBuildDate>Fri, 13 Nov 2009 12:33:44 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='twigleaf.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/0b3acef385bef556587ce93c7f98dbdf?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Twigleaf's Crossed Wires</title>
		<link>http://twigleaf.wordpress.com</link>
	</image>
			<item>
		<title>Open Source Project</title>
		<link>http://twigleaf.wordpress.com/2009/11/12/open-source-project/</link>
		<comments>http://twigleaf.wordpress.com/2009/11/12/open-source-project/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 14:49:15 +0000</pubDate>
		<dc:creator>twigleaf</dc:creator>
				<category><![CDATA[/roll]]></category>

		<guid isPermaLink="false">http://twigleaf.wordpress.com/?p=194</guid>
		<description><![CDATA[So the project itself is a rather simple little thing. It&#8217;s a framework for making websites with complete separation of view and data, which I&#8217;m already using for e.g. http://saikosoft.inaspro.nl/ (not that you can notice anything)
Since I figured it might be of value to someone else, I wanted to make it Open Source and let [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=194&subd=twigleaf&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So the project itself is a rather simple little thing. It&#8217;s a framework for making websites with complete separation of view and data, which I&#8217;m already using for e.g. <a href="http://saikosoft.inaspro.nl/" target="_blank">http://saikosoft.inaspro.nl/</a> (not that you can notice anything)</p>
<p>Since I figured it might be of value to someone else, I wanted to make it Open Source and let it grow over time into something better, perhaps with help of others.</p>
<p>There is however a slight hitch in my plan, for I dislike the concept of Mailinglists that has been generally accepted to be a Open Source Thing. To me it seems a cumbersome thing that takes up way too much time to go through and pick up the patches, but I don&#8217;t want to just give anyone commit access to the repository.</p>
<p>So I had this image in my head where there was a website where people could just upload their patches, put a few comments under it explaining what it does and why, and other people can comment on the same thing, perhaps attach a revision of the patch, and give the thumbs up for specific patches. Once enough thumbs up have been given, the committers can check the list of patches and commit those that have been generally accepted as a good patch (<em>given the committer likes it too of course</em>). (<em>which might be another open source project I might send out if this works</em>)</p>
<p>But images in your head never translate to actual computer graphics in the real world when I&#8217;m trying to do the website. Sure I can handle code, but design?</p>
<p>Perhaps more updates and links over here soon&#8230;</p>
<p>&nbsp;</p>
<p>ASCII Preview: <a href="http://ospatchdev.inaspro.nl/" target="_blank">http://ospatchdev.inaspro.nl/</a></p>
<p>&nbsp;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twigleaf.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twigleaf.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twigleaf.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twigleaf.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twigleaf.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twigleaf.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twigleaf.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twigleaf.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twigleaf.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twigleaf.wordpress.com/194/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=194&subd=twigleaf&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://twigleaf.wordpress.com/2009/11/12/open-source-project/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d04a5483c87df7c84084cc153d7f251?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">twigleaf</media:title>
		</media:content>
	</item>
		<item>
		<title>IP Lookup tool</title>
		<link>http://twigleaf.wordpress.com/2009/09/13/ip-lookup-tool/</link>
		<comments>http://twigleaf.wordpress.com/2009/09/13/ip-lookup-tool/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 20:00:11 +0000</pubDate>
		<dc:creator>twigleaf</dc:creator>
				<category><![CDATA[/roll]]></category>

		<guid isPermaLink="false">http://twigleaf.wordpress.com/?p=188</guid>
		<description><![CDATA[This tool is to retreive ip addresses for a given hostname. This isn&#8217;t very new, but I noticed that if you need to refresh ip without wanting or able to call ipconfig /flushdns, you can still refresh the ip&#8217;s for the given hostname.
It also has an option to return the ip address that is used [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=188&subd=twigleaf&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This tool is to retreive ip addresses for a given hostname. This isn&#8217;t very new, but I noticed that if you need to refresh ip without wanting or able to call ipconfig /flushdns, you can still refresh the ip&#8217;s for the given hostname.</p>
<p>It also has an option to return the ip address that is used to indicate a hostname is either invalid or could not be found.</p>
<p><a href="http://www.inaspro.nl/chalkncode_attachments/getip/getip.exe" target="_blank">getip.exe</a></p>
<p><em>(free, freeware, no spyware, use for whatever you want, unlicensed, win32 console exe optimized for i586)</em></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twigleaf.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twigleaf.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twigleaf.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twigleaf.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twigleaf.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twigleaf.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twigleaf.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twigleaf.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twigleaf.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twigleaf.wordpress.com/188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=188&subd=twigleaf&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://twigleaf.wordpress.com/2009/09/13/ip-lookup-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d04a5483c87df7c84084cc153d7f251?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">twigleaf</media:title>
		</media:content>
	</item>
		<item>
		<title>hobby multi-isp serving routing scheme revisited</title>
		<link>http://twigleaf.wordpress.com/2009/09/08/hobby-multi-isp-serving-routing-scheme-revisited/</link>
		<comments>http://twigleaf.wordpress.com/2009/09/08/hobby-multi-isp-serving-routing-scheme-revisited/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 21:45:50 +0000</pubDate>
		<dc:creator>twigleaf</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[cisco]]></category>

		<guid isPermaLink="false">http://twigleaf.wordpress.com/?p=180</guid>
		<description><![CDATA[After my last two posts about multi-isp serving over 2 routers, some time has went by and one of my isp&#8217;s dsl-modem slash router changed and went ballistic with fixed settings. They decided that nobody ever wants a different subnet from 192.168.2.0/24, and therefor dump everything else to the outside interface. This didn&#8217;t only make [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=180&subd=twigleaf&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After my last two posts about multi-isp serving over 2 routers, some time has went by and one of my isp&#8217;s dsl-modem slash router changed and went ballistic with fixed settings. They decided that nobody ever wants a different subnet from 192.168.2.0/24, and therefor dump everything else to the outside interface. This didn&#8217;t only make a router inbetween very much needed (since I didn&#8217;t want to change my local network besides a /16 mask), it also made my network a lot more complicated.</p>
<p>Since the router would ditch everything going to 192.168.0.0, I decided to connect the secondary network interfaces (that happened to be configured to 192.168.2.0 as well) to the network as the serving interface. However, as usual this doesn&#8217;t matter when it comes to outgoing traffic. Anything it considers outside its network is send to the default interface instead, eventhough the incoming packets came from the other interface.</p>
<p>At some moment of clarity, I found that I could split up 192.168.2.0 into 2 networks as well, namely in this case (since the isp&#8217;s dsl-router has its local ip set fixed to 192.168.2.254) into networks 192.168.2.128/25 and 192.168.2.0/25. This allowed everything beneath 192.168.2.128 to be sent to the internal network, and everything above, including the dsl-router, to belong to the other side.</p>
<p>Basically like this:</p>
<p><img class="alignnone size-medium wp-image-182" title="multiisproutes" src="http://twigleaf.files.wordpress.com/2009/09/multiisproutes.png?w=300&#038;h=207" alt="multiisproutes" width="300" height="207" /></p>
<p><strong>The trivial stuff</strong></p>
<pre>interface FastEthernet0/0
 ip address 192.168.2.130 255.255.255.128
 ip access-group defaultallin in
 ip mask-reply
 ip nat inside
 ip route-cache flow
 duplex auto
 speed auto
 no cdp enable
!
interface FastEthernet0/1
 ip address 192.168.2.101 255.255.255.128
 ip access-group defaultallout out
 ip mask-reply
 no ip redirects
 ip nat outside
 ip route-cache flow
 duplex auto
 speed auto
!
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0 192.168.2.254
ip route 192.168.0.0 255.255.255.0 FastEthernet0/1
ip route 192.168.2.0 255.255.255.128 FastEthernet0/1
!
ip access-list extended defaultallin
 permit ip any any
ip access-list extended defaultallout
 permit ip any any</pre>
<p><em>Note: default interface setting &#8220;no ip proxy-arp&#8221; is negated and thus on.</em></p>
<p><strong>The headache stuff, yet in the end not that hard</strong></p>
<p>The normal way of NAT is to e.g. &#8220;ip nat inside source list 1 interface FastEthernet0/0 overload&#8221;, to replace the <strong>source </strong>ip, with the ip of <strong>interface fa0/0</strong>, if the packet is permitted by <strong>list 1</strong>.<br />
Where list 1 is often casually defined as &#8220;access-list 1 permit any&#8221;, allowing everything to be translated.</p>
<p>A line like &#8220;ip nat inside source static tcp 192.168.0.10 80 interface FastEthernet0/0 80&#8243; is often used to change the <strong>destination </strong>ip/port to 192.168.0.10 if a packet arrives at the external interface fa0/0 on port 80.</p>
<p>In this particular case, we still want a &#8220;normal&#8221; NAT source ip translation from the inside to the outside (because we need to force our server to not send traffic to the default gateway), but not All traffic, since we still want to use the other ISP for regular Internet traffic when we fancy such a thing. Unfortunately a standard access-list doesn&#8217;t allow us to be very specific unless we want to define the source. Since the source ip could be anything (because the traffic is coming from the Internet), we can&#8217;t use a standard ACL.</p>
<p>We can however use a Extended ACL, which allows to be specific about the Destination IP and portnumber, which goes as followed:</p>
<pre>ip nat inside source list ourspecialnat interface FastEthernet0/0 overload
!
ip access-list extended ourspecialnat
 permit tcp any host 192.168.2.2 eq www</pre>
<p>And there you have it. A specific permission for destination 192.168.2.2 port=80, to be translated. Now all we need to do is to set a portforward from our ISP&#8217;s dsl-router from port 80 to 192.168.2.2. It routes traffic inside because the ip matches its 192.168.2.0/24 network, and our special nat router makes sure the packets are sent and received via  the same route due to obscuring the source ip.</p>
<p>PS. Perhaps it should be noted that this is just a funny exploit in search of better solutions. Most of the time you will want to know the actual IP address a visitor of your website is using, and not get a local IP instead. Chances are however that setting up either your server or your network to remember which route they should be going (with an IPv4 NAT-ted network) is considerably more difficult. When no traffic is translated in the first place (like for example when you have a large number of IPv4 addresses or a couple of IPv6 addresses), there wouldn&#8217;t be an issue of rejecting source/destination mismatches, because they would always be the same.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twigleaf.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twigleaf.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twigleaf.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twigleaf.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twigleaf.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twigleaf.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twigleaf.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twigleaf.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twigleaf.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twigleaf.wordpress.com/180/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=180&subd=twigleaf&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://twigleaf.wordpress.com/2009/09/08/hobby-multi-isp-serving-routing-scheme-revisited/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d04a5483c87df7c84084cc153d7f251?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">twigleaf</media:title>
		</media:content>

		<media:content url="http://twigleaf.files.wordpress.com/2009/09/multiisproutes.png?w=300" medium="image">
			<media:title type="html">multiisproutes</media:title>
		</media:content>
	</item>
		<item>
		<title>db component chain</title>
		<link>http://twigleaf.wordpress.com/2009/07/19/d20072009-dbx-component-chain/</link>
		<comments>http://twigleaf.wordpress.com/2009/07/19/d20072009-dbx-component-chain/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 16:25:13 +0000</pubDate>
		<dc:creator>twigleaf</dc:creator>
				<category><![CDATA[/roll]]></category>

		<guid isPermaLink="false">http://twigleaf.wordpress.com/?p=171</guid>
		<description><![CDATA[If you want to connect visual components like grids or editboxes to a dataset, you&#8217;d expect things to be a bit straightforward, like for example:
DBGrid -&#62; DataSource -&#62; SQLQuery -&#62; DBConnection
Unfortunately, when it comes to db components, this chain will result in a &#8220;Operation not allowed on a unidirectional dataset&#8221; error. Which would make a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=171&subd=twigleaf&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you want to connect visual components like grids or editboxes to a dataset, you&#8217;d expect things to be a bit straightforward, like for example:</p>
<p>DBGrid -&gt; DataSource -&gt; SQLQuery -&gt; DBConnection</p>
<p>Unfortunately, when it comes to db components, this chain will result in a &#8220;Operation not allowed on a unidirectional dataset&#8221; error. Which would make a tiny bit of sense if you want to make the Grid editable, but even when you switch off every possible property off to edit the grid, the error will still come up.</p>
<p>If you&#8217;re like me, you&#8217;d probably just put a StringGrid on your form and loop over the SQLQuery to show all the data. That does however take a lot more writing code for something that <em>should</em> be quite easy to do.</p>
<p>Aparantly, this is the way to do chain the components to be able to link your things together:</p>
<p><img class="alignnone size-full wp-image-172" title="dbX component chain" src="http://twigleaf.files.wordpress.com/2009/07/datasets_d2009.png?w=455&#038;h=79" alt="dbX component chain" width="455" height="79" /></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twigleaf.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twigleaf.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twigleaf.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twigleaf.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twigleaf.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twigleaf.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twigleaf.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twigleaf.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twigleaf.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twigleaf.wordpress.com/171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=171&subd=twigleaf&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://twigleaf.wordpress.com/2009/07/19/d20072009-dbx-component-chain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d04a5483c87df7c84084cc153d7f251?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">twigleaf</media:title>
		</media:content>

		<media:content url="http://twigleaf.files.wordpress.com/2009/07/datasets_d2009.png" medium="image">
			<media:title type="html">dbX component chain</media:title>
		</media:content>
	</item>
		<item>
		<title>Short: Happy undocumented quirks</title>
		<link>http://twigleaf.wordpress.com/2009/07/05/short-happy-undocumented-quirks/</link>
		<comments>http://twigleaf.wordpress.com/2009/07/05/short-happy-undocumented-quirks/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 12:31:09 +0000</pubDate>
		<dc:creator>twigleaf</dc:creator>
				<category><![CDATA[/roll]]></category>

		<guid isPermaLink="false">http://twigleaf.wordpress.com/?p=167</guid>
		<description><![CDATA[Description of AdjustWindowRectEx() on MSDN:
The AdjustWindowRect function calculates the required size of the window rectangle, based on the desired client-rectangle size. The window rectangle can then be passed to the CreateWindow function to create a window whose client area is the desired size.
Description of GetWindowRect() on MSDN:
The GetClientRect function retrieves the coordinates of a window&#8217;s client area. The client [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=167&subd=twigleaf&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Description of <a href="http://msdn.microsoft.com/en-us/library/ms632665(VS.85).aspx" target="_blank">AdjustWindowRectEx()</a> on MSDN:</p>
<blockquote><p>The <strong>AdjustWindowRect</strong> function calculates the required size of the window rectangle, based on the desired client-rectangle size. The window rectangle can then be passed to the <a id="ctl00_MTContentSelector1_mainContentContainer_ctl01" style="text-decoration:none;color:#800080;" href="http://msdn.microsoft.com/en-us/library/ms632679(VS.85).aspx">CreateWindow</a> function to create a window whose client area is the desired size.</p></blockquote>
<p>Description of <a href="http://msdn.microsoft.com/en-us/library/ms633503(VS.85).aspx" target="_blank">GetWindowRect()</a> on MSDN:</p>
<blockquote><p>The <strong>GetClientRect</strong> function retrieves the coordinates of a window&#8217;s client area. The client coordinates specify the upper-left and lower-right corners of the client area. Because client coordinates are relative to the upper-left corner of a window&#8217;s client area, the coordinates of the upper-left corner are (0,0).</p></blockquote>
<p>You would think that these functions are eachothers counterpart, you give a clientrectangle to AdjustWindowRectEx(), say (200&#215;200) and you&#8217;ll get something like 214&#215;234 if you have the Vista look active on your window. When you set your window to those dimensions with for example <a href="http://msdn.microsoft.com/en-us/library/ms633545(VS.85).aspx" target="_blank">SetWindowPos()</a>, and afterwards you check the size with GetClientRect(), you&#8217;ll get 212&#215;232. This works the same with other themes, and if you copy-paste a screenshot into MS Paint, you&#8217;ll be able to measure the same 212&#215;232 while the outside of the window is the exact given 214&#215;234 &#8211; properly set by SetWindowPos().</p>
<p>The dirty ugly solution of course is to add 2 pixels to whatever you get back from AdjustWindowRectEx() &#8211; but surely someone at Microsoft is supposed to Test these functions?</p>
<p><code> </code></p>
<p><code> </code></p>
<p><code></p>
<pre>RECT size;
size.left	= myWindowObj-&gt;x;
size.top	= myWindowObj-&gt;y;
size.right	= size.left + myWindowObj-&gt;w;
size.bottom	= size.top + myWindowObj-&gt;h;

AdjustWindowRectEx( &amp;size, GetWindowLong(hWND, GWL_STYLE), FALSE, GetWindowLong(hWND, GWL_EXSTYLE) );
SetWindowPos( hWND, NULL, myWindowObj-&gt;x, myWindowObj-&gt;y, size.right - size.left + 2, size.bottom - size.top + 2, SWP_NOZORDER | SWP_NOACTIVATE );</pre>
<p></code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twigleaf.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twigleaf.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twigleaf.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twigleaf.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twigleaf.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twigleaf.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twigleaf.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twigleaf.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twigleaf.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twigleaf.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=167&subd=twigleaf&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://twigleaf.wordpress.com/2009/07/05/short-happy-undocumented-quirks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d04a5483c87df7c84084cc153d7f251?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">twigleaf</media:title>
		</media:content>
	</item>
		<item>
		<title>Probability</title>
		<link>http://twigleaf.wordpress.com/2009/05/26/probability/</link>
		<comments>http://twigleaf.wordpress.com/2009/05/26/probability/#comments</comments>
		<pubDate>Tue, 26 May 2009 00:07:31 +0000</pubDate>
		<dc:creator>twigleaf</dc:creator>
				<category><![CDATA[/roll]]></category>

		<guid isPermaLink="false">http://twigleaf.wordpress.com/?p=159</guid>
		<description><![CDATA[*** I&#8217;m not a mathematician, the explanation here is probably crap, so have a look on the internet on factorials and sets.
A friend of mine asked me today if I had a script lying around to produce anagrams. After saying no and secretly checking what the heck an anagram was again, I started thinking about what [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=159&subd=twigleaf&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><em>*** I&#8217;m not a mathematician, the explanation here is probably crap, so have a look on the internet on </em><a href="http://en.wikipedia.org/wiki/Factorial" target="_blank"><em>factorials</em></a><em> and </em><a href="http://en.wikipedia.org/wiki/Set_(mathematics)" target="_blank"><em>sets</em></a><em>.</em></p>
<p>A friend of mine asked me today if I had a script lying around to produce anagrams. After saying no and secretly checking what the heck an anagram was again, I started thinking about what it reminded me of.</p>
<p>My thoughts diverged on the symbol &#8220;!&#8221;, which is used in probability to calculate what your chance might be when you eliminate your previous results from the equation. So for example if you have a set of [1,2,3,4,5,6] &#8211; after rolling 3 with a dice, the set will become [1,2,4,5,6] so you can&#8217;t roll 3 again.</p>
<p>Anagrams are a combination of a set of predefined characters, and then mixed around. And while you might think you&#8217;ll have 6^6 possibilities, you actually have less, because you can&#8217;t use more of the same characters that are available.</p>
<p>Say for example you have a word of &#8220;abc&#8221;, you can make &#8220;acb&#8221;, but you can&#8217;t make &#8220;aab&#8221;, because you only have 1 &#8220;a&#8221;. Thus in the example of [1,2,3,4,5,6] you actually have 6! possibilities. We can write 6! as 6*5*4*3*2*1 = 720 possibilities.</p>
<p>And the rewrite of 6! is exactly what made me think of this simple algorithm:</p>
<pre><code>procedure factorWord( const sBeginning: string; const sWord: string; const lstPermutations: TStrings );
var
  i, c: integer;
begin
  c := Length( sWord );

  if c = 0 then
  begin
    lstPermutations.Add( sBeginning );
  end;

  for i := 1 to c do
  begin
    factorWord( sBeginning + sWord[i], Copy( sWord, 1, i - 1 ) + Copy( sWord, i + 1 ), lstPermutations );
  end;
end;</code></pre>
<p> </p>
<p>You&#8217;ll initially call it for example with <em>factorWord( &#8221;, Edit1.Text, Memo1.Lines );</em> and you&#8217;ll end up with all the possible anagrams. The function works recursively on 2 sets, one that defines the entire set (Edit1.Text), and one thats starts out empty. With every recursion the possibilities of new characters to add gets smaller, while the anagram is filled with the same amount of characters in a different order, and is added to the stringlist when the recursionpath ends up with 0 remaining characters.</p>
<p>The biggest problem however of making anagrams is that there are simply too much possibilities when you go over about 6 characters. The worst of it, and this is after some code rewrites to append the words to a file occasionally to avoid an out-of-memory error, is that a word with 14 characters will make your textfile about the size of 2.4GB until a file streaming error occurs&#8230;</p>
<p>14! = 87178291200 lines, multiplied by &#8220;14 byte anagrams plus 2 bytes for the crlf&#8221;, you&#8217;ll end up with 1394852659200 bytes which amounts to 1299GB of data.</p>
<p>Have fun storing that on your desktop pc&#8230;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twigleaf.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twigleaf.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twigleaf.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twigleaf.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twigleaf.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twigleaf.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twigleaf.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twigleaf.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twigleaf.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twigleaf.wordpress.com/159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=159&subd=twigleaf&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://twigleaf.wordpress.com/2009/05/26/probability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d04a5483c87df7c84084cc153d7f251?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">twigleaf</media:title>
		</media:content>
	</item>
		<item>
		<title>Search cmp to 0</title>
		<link>http://twigleaf.wordpress.com/2009/05/07/search-cmp-to-0/</link>
		<comments>http://twigleaf.wordpress.com/2009/05/07/search-cmp-to-0/#comments</comments>
		<pubDate>Thu, 07 May 2009 09:40:19 +0000</pubDate>
		<dc:creator>twigleaf</dc:creator>
				<category><![CDATA[/roll]]></category>
		<category><![CDATA[optimization]]></category>

		<guid isPermaLink="false">http://twigleaf.wordpress.com/?p=155</guid>
		<description><![CDATA[Search: optimization &#8220;cmp eax,0&#8243;
You don&#8217;t have to compare EAX to 0 to know it&#8217;s 0, just make sure the item in EAX is edited last, with any opcode that you see in your cpu manual with the appendage that it modifies the ZF. That&#8217;s a fancy flag that says a value you just put in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=155&subd=twigleaf&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Search: optimization &#8220;cmp eax,0&#8243;</p>
<p>You don&#8217;t have to compare EAX to 0 to know it&#8217;s 0, just make sure the item in EAX is edited last, with any opcode that you see in your cpu manual with the appendage that it modifies the ZF. That&#8217;s a fancy flag that says a value you just put in a register is zero.</p>
<p>Any mathematical, bitwise or just plain MOV into a register, modifies the Zero flag. Skip the CMP and just use either JZ (jump if zero) or JNZ (jump if not zero) to see if the zero flag is set and jump somewhere accordingly.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twigleaf.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twigleaf.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twigleaf.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twigleaf.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twigleaf.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twigleaf.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twigleaf.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twigleaf.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twigleaf.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twigleaf.wordpress.com/155/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=155&subd=twigleaf&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://twigleaf.wordpress.com/2009/05/07/search-cmp-to-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d04a5483c87df7c84084cc153d7f251?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">twigleaf</media:title>
		</media:content>
	</item>
		<item>
		<title>Search query #92385295</title>
		<link>http://twigleaf.wordpress.com/2009/04/14/search-query-92385295/</link>
		<comments>http://twigleaf.wordpress.com/2009/04/14/search-query-92385295/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 17:16:09 +0000</pubDate>
		<dc:creator>twigleaf</dc:creator>
				<category><![CDATA[optimization]]></category>

		<guid isPermaLink="false">http://twigleaf.wordpress.com/?p=152</guid>
		<description><![CDATA[It was nice to read someone around the Internet is googling for &#8220;optimize code int a = b * 4&#8243;.
Of course, most people would think that it shouldn&#8217;t be optimized at all, and you&#8217;re sort of right, most compilers will optimize this simple piece of code.
But should you want to do it by yourself, there [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=152&subd=twigleaf&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>It was nice to read someone around the Internet is googling for &#8220;optimize code int a = b * 4&#8243;.</p>
<p>Of course, most people would think that it shouldn&#8217;t be optimized at all, and you&#8217;re sort of right, most compilers will optimize this simple piece of code.</p>
<p>But should you want to do it by yourself, there are two nice ways of doing this.</p>
<p>Before I start, I truly hope no compiler will translate this to a MUL opcode, it will eat your cpu-time like pacman when you have the code inside a loop.</p>
<p>The number 4 is awesome, why? Because it&#8217;s a multiple of 2. The extra options you instantly get for both division and multiplication when using a multiple of 2 are the opcodes SHR and SHL. Those commands just simply shift all the bits inside a register to the left or to the right. This effectively means that with a simple and fast opcode you can divide by using SHR (<em>div 2 per bit</em>) and multiply by using SHL (<em>mul 2 per bit</em>).</p>
<p>The problem of SHL and SHR is that not every programming language supports direct translation to these opcodes. In C/C++ however you can use &#8220;a = b &lt;&lt; 2;&#8221; for the equivalent of  &#8221;a = b * 4;&#8221;, and in Delphi you can use &#8220;a := b shl 2;&#8221; (<em>I think</em>).</p>
<p>Some other languages do have a bitwise shift function, but they use the rotation shift opcodes (<em>ROL and ROR</em>), which prepends or appends any bits that might&#8217;ve fallen off of the other side of your limits. These aren&#8217;t the functions you&#8217;ll be looking for when multiplying (<em>and dare I say they rarely have any use in the real world</em>).</p>
<p>A slight hickup about SHL and SHL is that some very very old CPU&#8217;s didn&#8217;t support shifting by more than 1 bit. But you&#8217;ll have trouble finding them old pre-486 cpu&#8217;s that didn&#8217;t.</p>
<p>So yeah, multiplying by 4 is fun. On the other hand, if you have to use odd numbers like 3 and 5, the only option you could consider is using addition instead of multiplication. I doubt however that you&#8217;ll get much speed out of that nowadays, unless you&#8217;re recursively/iteratively multiplying previous results like in <a href="http://twigleaf.wordpress.com/2008/06/03/manual-optimization-part-1/" target="_blank">this post</a>.</p>
<p>So there it is, needing to multiple or divide by 2 &#8211; use bitwise opcodes.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twigleaf.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twigleaf.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twigleaf.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twigleaf.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twigleaf.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twigleaf.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twigleaf.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twigleaf.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twigleaf.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twigleaf.wordpress.com/152/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=152&subd=twigleaf&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://twigleaf.wordpress.com/2009/04/14/search-query-92385295/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d04a5483c87df7c84084cc153d7f251?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">twigleaf</media:title>
		</media:content>
	</item>
		<item>
		<title>Yes, I was wrong</title>
		<link>http://twigleaf.wordpress.com/2009/03/21/yes-i-was-wrong/</link>
		<comments>http://twigleaf.wordpress.com/2009/03/21/yes-i-was-wrong/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 23:19:42 +0000</pubDate>
		<dc:creator>twigleaf</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[cisco]]></category>

		<guid isPermaLink="false">http://twigleaf.wordpress.com/?p=149</guid>
		<description><![CDATA[&#8230; you can&#8217;t make traffic go one way for one port, and another way for some other port.
Why? Because you&#8217;re most likely stuck with switched traffic that only sends traffic down one cable when it figures out a certain network-address is connected to that cable.
However, I did manage to subtract one router out of the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=149&subd=twigleaf&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&#8230; you can&#8217;t make traffic go one way for one port, and another way for some other port.</p>
<p>Why? Because you&#8217;re most likely stuck with switched traffic that only sends traffic down one cable when it figures out a certain network-address is connected to that cable.</p>
<p>However, I did manage to subtract one router out of the equation with the wondrous discovery of selective NAT. Aparantly you can change the default source 0.0.0.0 ACL to a specific per port list. The ip&#8217;s and ports that don&#8217;t match the ACL won&#8217;t be translated. Which is exactly what I was looking for.</p>
<p>This does require that with every port forward from your isp&#8217;s router to be added to the ACL of the 2nd router, but that won&#8217;t be that much of a problem.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twigleaf.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twigleaf.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twigleaf.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twigleaf.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twigleaf.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twigleaf.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twigleaf.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twigleaf.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twigleaf.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twigleaf.wordpress.com/149/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=149&subd=twigleaf&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://twigleaf.wordpress.com/2009/03/21/yes-i-was-wrong/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d04a5483c87df7c84084cc153d7f251?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">twigleaf</media:title>
		</media:content>
	</item>
		<item>
		<title>And when your internet breaks down&#8230;</title>
		<link>http://twigleaf.wordpress.com/2009/03/14/and-when-your-internet-breaks-down/</link>
		<comments>http://twigleaf.wordpress.com/2009/03/14/and-when-your-internet-breaks-down/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 21:15:14 +0000</pubDate>
		<dc:creator>twigleaf</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[cisco]]></category>

		<guid isPermaLink="false">http://twigleaf.wordpress.com/?p=137</guid>
		<description><![CDATA[&#8230; you start connecting that console link again and start typing to get that other internet connection to work.
In this post I explained I had made a network of 3 routers so that my web-/database-/whatnot-server was able to serve over
2 different external IP&#8217;s via 2 different ISP&#8217;s (one broadband, one dsl). It had a hickup [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=137&subd=twigleaf&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&#8230; you start connecting that console link again and start typing to get that other internet connection to work.</p>
<p>In this post I explained I had made a network of 3 routers so that my web-/database-/whatnot-server was able to serve over</p>
<p>2 different external IP&#8217;s via 2 different ISP&#8217;s (<em>one broadband, one dsl</em>). It had a hickup however in that the 2nd ISP couldn&#8217;t be used for normal Internet surfing etc. This was because it has a NAT configuration upside down to avoid the default-router issue.</p>
<p><img class="alignright size-medium wp-image-142" title="lannetwork1" src="http://twigleaf.files.wordpress.com/2009/03/lannetwork1.png?w=257&#038;h=300" alt="lannetwork1" width="257" height="300" /></p>
<p>So now I have connected a 4th router to do normal routing between the internal 192.168.0.0 network and the other network 192.168.2.0 to get to the router that connects to the dsl isp (<em>still following?</em>)</p>
<p>It proved to be quite simple (<em>feel a bit silly to use the router for such easy work</em>). It just routes to and from both network interfaces, with the</p>
<p>exception that it blocks all traffic to and from the server (<em>because that one should use the other router with the upside down NAT configuration</em>).</p>
<p>And then it just works. (<em>well, you need to manually set the gateway of your client ofc.</em>) I could probably make the server be able to connect to the other isp as well as long as I make sure the proper ports are blocked&#8230; But that&#8217;s stuff for at a later time.</p>
<p style="text-align:center;"><img class="aligncenter" title="3 of 4 routers" src="http://lh4.ggpht.com/_R2Xg2V9D054/Sbwi_XNax1I/AAAAAAAAAKY/6g4Hy-CiVRQ/s288/IMAGE_143.jpg" alt="" width="288" height="216" /></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/twigleaf.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/twigleaf.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/twigleaf.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/twigleaf.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/twigleaf.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/twigleaf.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/twigleaf.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/twigleaf.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/twigleaf.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/twigleaf.wordpress.com/137/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=twigleaf.wordpress.com&blog=3120608&post=137&subd=twigleaf&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://twigleaf.wordpress.com/2009/03/14/and-when-your-internet-breaks-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d04a5483c87df7c84084cc153d7f251?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">twigleaf</media:title>
		</media:content>

		<media:content url="http://twigleaf.files.wordpress.com/2009/03/lannetwork1.png?w=257" medium="image">
			<media:title type="html">lannetwork1</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/_R2Xg2V9D054/Sbwi_XNax1I/AAAAAAAAAKY/6g4Hy-CiVRQ/s288/IMAGE_143.jpg" medium="image">
			<media:title type="html">3 of 4 routers</media:title>
		</media:content>
	</item>
	</channel>
</rss>