<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://python.sys-con.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>From the Blogosphere</title>
 <link>http://python.sys-con.com/</link>
 <description>Latest articles from From the Blogosphere</description>
 <language>en</language>
 <copyright>Copyright 2009 Ulitzer.com</copyright>
 <generator>Ulitzer.com</generator>
 <lastBuildDate>Thu, 10 Dec 2009 17:53:02 EST</lastBuildDate>
 <docs>http://backend.userland.com/rss</docs>
 <ttl>10</ttl>
<item>
 <title>What Could You Do With Your Code in 20 Lines or Less?</title>
 <link>http://python.sys-con.com/node/1166979</link>
 <description>&lt;p&gt;&lt;em&gt;What could you do with your code in 20 Lines or Less?&lt;/em&gt; That&#039;s the question I ask (almost) every week for the &lt;a href=&quot;http://devcentral.f5.com&quot;&gt;devcentral&lt;/a&gt; community, and every week I go looking to find cool new examples that show just how flexible and powerful iRules can be without getting in over your head.&lt;/p&gt;
&lt;p&gt;Well we made it to 30 editions of the 20LoL.  Soon we’ll break 100 iRule examples that are under 21 lines of code each.  Pretty neat stuff, if you ask me.  This week is the hoolio show, it seems.  The guy is just a monster in the forums, what can I say?  I sure am glad he’s on our side.  I’ve got three examples that I randomly pulled from the forums because I thought they were cool.  Only later did I realize that he had penned them all.  So big thanks yet again to Aaron and all his hard work to better the community.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Pre-loaded searches based on host name&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://devcentral.f5.com/Default.aspx?tabid=53&amp;amp;forumid=5&amp;amp;postid=86016&amp;amp;view=topic&quot;&gt;http://devcentral.f5.com/Default.aspx?tabid=53&amp;amp;forumid=5&amp;amp;postid=86016&amp;amp;view=topic&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This cool little example is a neat spin on a simple HTTP redirect.  The basic idea is to redirect to a given search site and set the search parameter to be the original host name of the request.  So I could request bobschickenshack.com and be redirected to a search for bobschickenshack on the search page of my choosing.  Very cool idea, and darn easy to implement.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;blockquote&gt;
&lt;pre&gt; &lt;br /&gt; when HTTP_REQUEST { &lt;br /&gt;&lt;br /&gt;    # Rewrite the host header to &lt;a href=&quot;http://www.yahoo.com&quot; title=&quot;www.yahoo.com&quot;&gt;www.yahoo.com&lt;/a&gt; and the&lt;br /&gt;    # uri to /search?q=$host where $host is the originally requested hostname &lt;br /&gt;    HTTP::header replace &quot;www.yahoo.com&quot; &lt;br /&gt;    HTTP::uri &quot;/search?q=[HTTP::host]&quot; &lt;br /&gt; } &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;More fun with nested switch&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://devcentral.f5.com/Default.aspx?tabid=53&amp;amp;forumid=5&amp;amp;postid=85807&amp;amp;view=topic&quot;&gt;http://devcentral.f5.com/Default.aspx?tabid=53&amp;amp;forumid=5&amp;amp;postid=85807&amp;amp;view=topic&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I know we’ve covered switch before, but this is yet another good use of it and I really like the idea of selecting snatpools based on which server the request is going to end up going to.  I trimmed this one down a little but only by removing a few of the possible snatpool options, all logic is the same, even though it’s just an excerpt of the overall solution provided.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;blockquote&gt;
&lt;pre&gt; when LB_SELECTED { &lt;br /&gt;    switch [LB::server addr] { &lt;br /&gt;       222.35.42.126 { &lt;br /&gt;          switch [IP::client_addr] { &lt;br /&gt;             192.168.3.11 { snatpool snat_crt_test2 } &lt;br /&gt;             default { snatpool snat_crt_pool } &lt;br /&gt;          } &lt;br /&gt;       } &lt;br /&gt;       221.218.248.155 { &lt;br /&gt;          switch [IP::client_addr] { &lt;br /&gt;             192.168.3.11 { snatpool snat_uni_test2 } &lt;br /&gt;             default { snatpool snat_uni_pool } &lt;br /&gt;          } &lt;br /&gt;       } &lt;br /&gt;       default { snat automap } &lt;br /&gt;    } &lt;br /&gt; } &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;strong&gt;Updating referrers&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://devcentral.f5.com/Default.aspx?tabid=53&amp;amp;forumid=5&amp;amp;postid=85807&amp;amp;view=topic&quot;&gt;http://devcentral.f5.com/Default.aspx?tabid=53&amp;amp;forumid=5&amp;amp;postid=85807&amp;amp;view=topic&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hoolio does a good job of not only pointing out the inherent problem with trying to replace referrer headers with hostnames from requests, but giving an option that works as desired even if it’s a little bit different direction than the OP was headed.  This is a good example of in-line string replacement with string map, too, which is an often under used command that’s worth a look.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;blockquote&gt;
&lt;pre&gt; &lt;br /&gt; when HTTP_REQUEST { &lt;br /&gt;&lt;br /&gt;    log local0. &quot;[IP::client_addr]:[TCP::client_port]: New [HTTP::method] request to [HTTP::host][HTTP::uri]\ &lt;br /&gt;       with Referer [HTTP::header Referer]&quot; &lt;br /&gt;&lt;br /&gt;    if {[HTTP::header exists &quot;MyHeader&quot;]} {  &lt;br /&gt;       log local0. &quot;[IP::client_addr]:[TCP::client_port]: Updating Referer to\ &lt;br /&gt;          [string map -nocase {http:// https://} [HTTP::header Referer]&quot; &lt;br /&gt;       HTTP::header replace Referer &quot;[string map -nocase {http:// https://} [HTTP::header Referer]&quot; &lt;br /&gt;    } &lt;br /&gt; } &lt;br /&gt; when HTTP_REQUEST priority 501 { &lt;br /&gt;    log local0. &quot;[IP::client_addr]:[TCP::client_port] (501): Current Referer [HTTP::header Referer]&quot; &lt;br /&gt; } &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;pre&gt; &lt;/pre&gt;
&lt;p&gt;There you have it, 3 more iRules to show off just how much you can do in only 20 lines of code. Next time we’ll break past the 100 examples mark.  See ya then.&lt;/p&gt;
&lt;div style=&quot;margin: 0px; padding: 0px; display: inline; float: none;&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:9eac6b1f-0753-4ca5-b5dc-876e1e121d0a&quot; class=&quot;wlWriterEditableSmartContent&quot;&gt;Technorati Tags: &lt;a rel=&quot;tag&quot; href=&quot;http://technorati.com/tags/20+lines+or+less&quot;&gt;20 lines or less&lt;/a&gt;,&lt;a rel=&quot;tag&quot; href=&quot;http://technorati.com/tags/20LoL&quot;&gt;20LoL&lt;/a&gt;,&lt;a rel=&quot;tag&quot; href=&quot;http://technorati.com/tags/DevCentral&quot;&gt;DevCentral&lt;/a&gt;,&lt;a rel=&quot;tag&quot; href=&quot;http://technorati.com/tags/F5&quot;&gt;F5&lt;/a&gt;,&lt;a rel=&quot;tag&quot; href=&quot;http://technorati.com/tags/iRules&quot;&gt;iRules&lt;/a&gt;,&lt;a rel=&quot;tag&quot; href=&quot;http://technorati.com/tags/Colin+Walker&quot;&gt;Colin Walker&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;#Colin&lt;/p&gt;&lt;img src=&quot;http://devcentral.f5.com/weblogs/cwalker/aggbug/6172.aspx&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;&lt;div class=&quot;feedflare&quot;&gt;
&lt;a href=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?a=3p908W8ging:y8ithiDpIiY:yIl2AUoC8zA&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?d=yIl2AUoC8zA&quot; border=&quot;0&quot;&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?a=3p908W8ging:y8ithiDpIiY:dnMXMwOfBR0&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?d=dnMXMwOfBR0&quot; border=&quot;0&quot;&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?a=3p908W8ging:y8ithiDpIiY:7Q72WNTAKBA&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?d=7Q72WNTAKBA&quot; border=&quot;0&quot;&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?a=3p908W8ging:y8ithiDpIiY:V_sGLiPBpWU&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?i=3p908W8ging:y8ithiDpIiY:V_sGLiPBpWU&quot; border=&quot;0&quot;&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?a=3p908W8ging:y8ithiDpIiY:qj6IDK7rITs&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?d=qj6IDK7rITs&quot; border=&quot;0&quot;&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?a=3p908W8ging:y8ithiDpIiY:KwTdNBX3Jqk&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?i=3p908W8ging:y8ithiDpIiY:KwTdNBX3Jqk&quot; border=&quot;0&quot;&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?a=3p908W8ging:y8ithiDpIiY:l6gmwiTKsz0&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?d=l6gmwiTKsz0&quot; border=&quot;0&quot;&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?a=3p908W8ging:y8ithiDpIiY:gIN9vFwOqvQ&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?i=3p908W8ging:y8ithiDpIiY:gIN9vFwOqvQ&quot; border=&quot;0&quot;&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?a=3p908W8ging:y8ithiDpIiY:TzevzKxY174&quot;&gt;&lt;img src=&quot;http://feeds.feedburner.com/~ff/f5/cwalker?d=TzevzKxY174&quot; border=&quot;0&quot;&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src=&quot;http://feeds.feedburner.com/~r/f5/cwalker/~4/3p908W8ging&quot; height=&quot;1&quot; width=&quot;1&quot;/&gt;&lt;p&gt;&lt;a href=&quot;http://python.sys-con.com/node/1166979&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Fri, 30 Oct 2009 13:12:00 EDT</pubDate>
 <guid isPermaLink="true">http://python.sys-con.com/node/1166979</guid>
</item>
<item>
 <title>David Eaves Talks About Vancouver’s Open Data Initiative</title>
 <link>http://python.sys-con.com/node/1056768</link>
 <description>As more and more data become available as a matter of course, the examples set by organisations such as MySociety become increasingly attainable for us all. Other than ensuring that it is ‘open,’ do we need to be asking for more from those making data available? And once it’s there, will its use and scrutiny move beyond the enthusiasts and activists to encompass the population at large?

David shares his views on these and other questions during our conversation.


Back in May, ReadWriteWeb reported on a Motion put before legislators in the Canadian city of Vancouver. Duly passed, the Motion commits the city to three closely related &amp;#8216;open&amp;#8217; agendas;

the City of Vancouver will move as quickly as possible to adopt prevailing open standards for data, documents, maps, and other formats of media;
the [...]&lt;p&gt;&lt;a href=&quot;http://python.sys-con.com/node/1056768&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Sun, 02 Aug 2009 16:34:00 EDT</pubDate>
 <guid isPermaLink="true">http://python.sys-con.com/node/1056768</guid>
</item>
<item>
 <title>Java for Managers -- What Should They Know?</title>
 <link>http://python.sys-con.com/node/869826</link>
 <description>Last month, JavaBlackBelt completed a survey where developers said their teams would be 25% more productive if their management committed to skills management... which led me to consider: Which Java technologies do developers think that managers should understand better in order to make great decisions about skills management?
&lt;p&gt;&lt;a href=&quot;http://python.sys-con.com/node/869826&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Mon, 09 Mar 2009 22:00:00 EDT</pubDate>
 <guid isPermaLink="true">http://python.sys-con.com/node/869826</guid>
</item>
<item>
 <title>Red Hat Named &quot;Platinum Sponsor&quot; of Virtualization Conference &amp; Expo</title>
 <link>http://python.sys-con.com/node/519763</link>
 <description>Red Hat is a  trusted open source provider.  Red Hat offers enterprise customers a long-term plan for building infrastructures on the quality and innovation of open source. Combining open source operating system platform, Red Hat Enterprise Linux, together with applications, management, and Services Oriented Architecture (SOA) solutions, including the JBoss Enterprise Middleware Suite.&lt;p&gt;&lt;a href=&quot;http://python.sys-con.com/node/519763&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Thu, 29 May 2008 14:30:00 EDT</pubDate>
 <guid isPermaLink="true">http://python.sys-con.com/node/519763</guid>
</item>
<item>
 <title>Ubuntu 1, Windows 0</title>
 <link>http://python.sys-con.com/node/458943</link>
 <description>I installed Ubuntu on the Toshiba laptop. Ubuntu installed in 15 minutes - 49 for Windows XP and 125 for Windows Vista. Ubuntu&#039;s desktop came right up. I opened the pre-installed Firefox browser and found I could browse the Web immediately. Ubuntu installed a network adaptor for the Toshiba laptop. I shake my head at this Windows foolishness!&lt;p&gt;&lt;a href=&quot;http://python.sys-con.com/node/458943&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Sun, 11 Nov 2007 11:00:00 EST</pubDate>
 <guid isPermaLink="true">http://python.sys-con.com/node/458943</guid>
</item>
</channel>
</rss>
