<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Ziki - Contenu r&#233;cemment publi&#233; par Nicolas Delsaux</title>
    <link>http://www.ziki.com/fr/riduidel+13611</link>
    <pubDate>Thu, 22 Jul 2010 09:00:00 +0200</pubDate>
    <ttl>120</ttl>
    <description>Mon contenu chez Ziki.com</description>
    <item>
      <title>Comic for July 22, 2010</title>
      <link>http://feedproxy.google.com/%7Er/DilbertDailyStrip/%7E3/SJkbjFeNhc8/</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><img src="http://dilbert.com/dyn/str_strip/000000000/00000000/0000000/000000/90000/5000/100/95111/95111.strip.print.gif" />
<p>
  
</p><img src="http://feeds.feedburner.com/~r/DilbertDailyStrip/~4/SJkbjFeNhc8" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Thu, 22 Jul 2010 09:00:00 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12685140</guid>
    </item>
    <item>
      <title>svn copy trunk to new branch</title>
      <link>http://feeds.dzone.com/%7Er/dzone/snippets/%7E3/sR4IjNMtrsw/11917</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><br />
<code><br />
svn co https://lbdistro.svn.sourceforge.net/svnroot/lbdistro<br />
<br />
cd lbditro<br />
<br />
#Copia o desenvolvimento atual para o branch desejado:<br />
svn copy trunk branches/LBdistro-old<br />
<br />
#Veifica se está ok:<br />
svn status<br />
#output: A + branches/LBdistro-old<br />
#O sinal de + indica que a cópia foi criada<br />
<br />
<br />
#Agora é só dar o commit:<br />
svn commit -m "Creating a branch of old LBdistro."<br /></code> <img src="http://feeds.feedburner.com/~r/dzone/snippets/~4/sR4IjNMtrsw" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Wed, 21 Jul 2010 23:31:45 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12681828</guid>
    </item>
    <item>
      <title>Outlier check</title>
      <link>http://feeds.dzone.com/%7Er/dzone/snippets/%7E3/yeGfy2PNu40/11915</link>
      <description>
        <![CDATA[<div class="post_content wiki_text">// description of your code here<br />
<br />
<code><br />
#use IQR, Quantile functions<br />
IQR(wt,na.rm=T)<br />
#quantiles<br />
quantile(wt,.25,na.rm=T)<br /></code> <img src="http://feeds.feedburner.com/~r/dzone/snippets/~4/yeGfy2PNu40" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Wed, 21 Jul 2010 21:59:33 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12681829</guid>
    </item>
    <item>
      <title>Cut allows break up for continous data</title>
      <link>http://feeds.dzone.com/%7Er/dzone/snippets/%7E3/gurLukVcV7g/11913</link>
      <description>
        <![CDATA[<div class="post_content wiki_text">In order to break apart continuous data such as a series of body weights into categories us cut.<br />
<br />
Usage:<br />
#simple<br />
<code><br />
cut(data, breaks = 4) # break the data up into four groups<br /></code><br />
<br />
#slightly more sophisticated<br />
<code><br />
#Get range<br />
range(data)<br />
#define breaks<br />
breaks = seq(min, max, by=n) #n = the interval size<br />
#perform the cut and store in var<br />
wt.cut = cut(wt, breaks)<br />
#view in table<br />
table(wt.cut)<br />
#can easily graph<br />
barplot(table(wt.cut)<br /></code><br />
<img src="http://feeds.feedburner.com/~r/dzone/snippets/~4/gurLukVcV7g" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Wed, 21 Jul 2010 19:45:27 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12681830</guid>
    </item>
    <item>
      <title>pie in R</title>
      <link>http://feeds.dzone.com/%7Er/dzone/snippets/%7E3/GmeGskXTSmQ/11911</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><code><br />
pie(data)<br />
<code><img src="http://feeds.feedburner.com/~r/dzone/snippets/~4/GmeGskXTSmQ" height="1" width="1" /></code></code>
</div>]]>
      </description>
      <pubDate>Wed, 21 Jul 2010 18:32:21 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12681831</guid>
    </item>
    <item>
      <title>Barplot in R</title>
      <link>http://feeds.dzone.com/%7Er/dzone/snippets/%7E3/FSUzD-7XIKw/11909</link>
      <description>
        <![CDATA[<div class="post_content wiki_text">// Use command to generate barplot<br />
<br />
<code><br />
table(cars$Brand)/nrow(cars) # get rel freq<br />
barplot(table(cars$Brand)/nrow(cars)) #barplot re freq<br /></code> <img src="http://feeds.feedburner.com/~r/dzone/snippets/~4/FSUzD-7XIKw" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Wed, 21 Jul 2010 18:25:07 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12681832</guid>
    </item>
    <item>
      <title>propos&#233; par Marc</title>
      <link>http://www.bonjourmadame.fr/post/839943976</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><img src="http://26.media.tumblr.com/tumblr_l4to7mFmDm1qzy9ouo1_500.jpg" /><br />
<br />
<p>
  proposé par Marc
</p>
</div>]]>
      </description>
      <pubDate>Wed, 21 Jul 2010 10:00:00 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12685141</guid>
    </item>
    <item>
      <title>Comic for July 21, 2010</title>
      <link>http://feedproxy.google.com/%7Er/DilbertDailyStrip/%7E3/TUtW7bvkgkg/</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><img src="http://dilbert.com/dyn/str_strip/000000000/00000000/0000000/000000/90000/5000/100/95110/95110.strip.print.gif" />
<p>
  
</p><img src="http://feeds.feedburner.com/~r/DilbertDailyStrip/~4/TUtW7bvkgkg" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Wed, 21 Jul 2010 09:00:00 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12685142</guid>
    </item>
    <item>
      <title>Find Zone from Postcode</title>
      <link>http://feeds.dzone.com/%7Er/dzone/snippets/%7E3/SxYuS7OnLBk/11905</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><code><br />
if($prefix == 'VC'){<br />
$zones = array(<br />
3 =&gt; array(<br />
array(3391, 3398), array(3414, 3426), array(3475, 3514), array(3517, 3520), array(3525, 3538),<br />
array(3540, 3549), array(3561, 3569), array(3571, 3606), array(3618, 3622), array(3629, 3657),<br />
array(3685, 3687), array(3725, 3731),<br />
),<br />
4 =&gt; array(<br />
array(3000, 3390), array(3399, 3413), array(3427, 3474), array(3515, 3516), array(3521, 3524),<br />
array(3539, 3539), array(3550, 3560), array(3570, 3570), array(3607, 3617), array(3623, 3628),<br />
array(3658, 3684), array(3688, 3724), array(3732, 3999),<br />
),<br />
);<br />
$findcode = intval($postcode);<br />
foreach($zones as $zoneName =&gt; $zone){<br />
foreach($zone as $range){<br />
$min = $range[0];<br />
$max = $range[1];<br />
if($findcode &gt;= $min &amp;&amp; $findcode &lt;= $max){<br />
$filename = ${'email_attachment_vic'.$zoneName};<br />
break 2;<br />
}<br />
}<br />
}<br />
}<br /></code> <img src="http://feeds.feedburner.com/~r/dzone/snippets/~4/SxYuS7OnLBk" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Wed, 21 Jul 2010 02:43:54 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12681833</guid>
    </item>
    <item>
      <title>Javascript Inheritance</title>
      <link>http://feeds.dzone.com/%7Er/dzone/snippets/%7E3/dunJ63PbPe8/11903</link>
      <description>
        <![CDATA[<div class="post_content wiki_text">Basic sample of hacking inheritance into Javascript as well as demonstrating the usage of getters and setters<br />
<br />
<code><br />
Function.prototype.inherits = function(fnParent) {<br />
this.prototype.super = fnParent;<br />
for (var s in fnParent.prototype) {<br />
this.prototype[s] = fnParent.prototype[s];<br />
}<br />
return this;<br />
}<br />
<br />
parentClass = function (args) {<br />
this._name = '';<br />
<br />
this.__defineGetter__("name", function(){<br />
return this._name;<br />
});<br />
<br />
this.__defineSetter__("name", function(val){<br />
this._name = val.replace('t','p');<br />
return;<br />
});<br />
}<br />
<br />
childClass = function (args) {<br />
this.super(args); //constructor for super<br />
}.inherits( parentClass );<br />
<br />
var test = new childClass( );<br />
<br />
test.name = 'test';<br />
alert( test.name ); //returns pest<br /></code> <img src="http://feeds.feedburner.com/~r/dzone/snippets/~4/dunJ63PbPe8" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Wed, 21 Jul 2010 02:35:16 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12681834</guid>
    </item>
    <item>
      <title>340 - Note</title>
      <link>http://feedproxy.google.com/%7Er/labandepasdessinee/%7E3/a0lBRGXnFzw/340-note</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><p style="text-align: center;">
  <img src="http://www.labandepasdessinee.com/bpd/wp-content/uploads/340-note.png" alt="340-note.png" />
</p>Partager cet épisode : <a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.labandepasdessinee.com%2Fbpd%2F340-note&amp;t=340%20-%20Note" title="Facebook"><img title="Facebook" src="http://www.labandepasdessinee.com/bpd/wp-content/plugins/sociable/images/facebook.png" alt="Facebook" /></a> <a href="http://twitter.com/home?status=http%3A%2F%2Fwww.labandepasdessinee.com%2Fbpd%2F340-note" title="TwitThis"><img title="TwitThis" src="http://www.labandepasdessinee.com/bpd/wp-content/plugins/sociable/images/twitter.gif" alt="TwitThis" /></a> <a href="mailto:?subject=340+-+Note&amp;body=http://www.labandepasdessinee.com/bpd/340-note" title="E-mail this story to a friend!"><img title="E-mail this story to a friend!" src="http://www.labandepasdessinee.com/bpd/wp-content/plugins/sociable/images/email_link.png" alt="E-mail this story to a friend!" /></a> <a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.labandepasdessinee.com%2Fbpd%2F340-note&amp;title=340%20-%20Note" title="del.icio.us"><img title="del.icio.us" src="http://www.labandepasdessinee.com/bpd/wp-content/plugins/sociable/images/delicious.png" alt="del.icio.us" /></a> <a href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.labandepasdessinee.com%2Fbpd%2F340-note&amp;title=340%20-%20Note" title="Google"><img title="Google" src="http://www.labandepasdessinee.com/bpd/wp-content/plugins/sociable/images/googlebookmark.png" alt="Google" /></a> <a href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.labandepasdessinee.com%2Fbpd%2F340-note&amp;t=340%20-%20Note" title="MySpace"><img title="MySpace" src="http://www.labandepasdessinee.com/bpd/wp-content/plugins/sociable/images/myspace.png" alt="MySpace" /></a> <a href="http://www.netvibes.com/share?title=340%20-%20Note&amp;url=http%3A%2F%2Fwww.labandepasdessinee.com%2Fbpd%2F340-note" title="Netvibes"><img title="Netvibes" src="http://www.labandepasdessinee.com/bpd/wp-content/plugins/sociable/images/netvibes.png" alt="Netvibes" /></a> <a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.labandepasdessinee.com%2Fbpd%2F340-note&amp;title=340%20-%20Note" title="StumbleUpon"><img title="StumbleUpon" src="http://www.labandepasdessinee.com/bpd/wp-content/plugins/sociable/images/stumbleupon.png" alt="StumbleUpon" /></a><br />
<br />
<img src="http://feeds.feedburner.com/~r/labandepasdessinee/~4/a0lBRGXnFzw" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Wed, 21 Jul 2010 00:01:25 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12685143</guid>
    </item>
    <item>
      <title>Groundhog Day, or, the Problem with A/B Testing</title>
      <link>http://www.codinghorror.com/blog/2010/07/groundhog-day-or-the-problem-with-ab-testing.html</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><blockquote>
  Shared by Riduidel<br />
  Un jour sans fin comme explication des tests d'interface web, c'est un peu le paroxysme du geek.
</blockquote>
<p>
  On a recent airplane flight, I happened to catch the movie <a href="http://www.imdb.com/title/tt0107048/">Groundhog Day</a>. Again.
</p>
<p>
  <img title="Groundhog-day-movie-bill-murray" src="http://www.codinghorror.com/.a/6a0120a85dcdae970b0133f269b445970b-800wi" alt="Groundhog-day-movie-bill-murray" />
</p>
<p>
  If you aren't familiar with this classic film, the premise is simple: Bill Murray, somehow, gets stuck reliving the same day over and over.
</p>
<p>
  It's been at least 5 years since I've seen Groundhog Day. I don't know if it's my advanced age, or what, but it really struck me on this particular viewing: this is no comedy. There's a veneer of broad comedy, yes, but <strong>lurking just under that veneer is a deep, dark existential conundrum.</strong>
</p>
<p>
  It might be amusing to relive the same day a few times, maybe even a few dozen times. But an entire year of the same day -- an entire <em>decade</em> of the same day -- everything happening in precisely, exactly the same way? My back of the envelope calculation easily ran to a decade. But I was wrong. The director, Harold Ramis <a href="http://www.wolfgnards.com/index.php/2009/08/18/harold-ramis-responds-to-the-wolf-gnards">thinks it was actually 30 or 40 years</a>.
</p>
<blockquote>
  I think the 10-year estimate is too short. It takes at least 10 years to get good at anything, and alloting for the down time and misguided years [Phil] spent, it had to be more like 30 or 40 years [spent reliving the same day].
</blockquote>
<p>
  We only see bits and pieces of the full experience in the movie, but this time my mind began filling in the gaps. Repeating the same day for <em>decades</em> plays to our secret collective fear that our lives are irrelevant and ultimately pointless. None of our actions -- even suicide, in endless grisly permutations -- ever change anything. What's the point? Why bother? How many of us are trapped in here, and how can we escape?
</p>
<p>
  This is some dark, scary stuff when you really think about it.
</p>
<blockquote>
  You want a prediction about the weather, you're asking the wrong Phil.
  <p>
    I'll give you a winter prediction.<br />
    It's gonna be cold,<br />
    it's gonna be gray,<br />
    and it's gonna last you for the rest of your life.
  </p>
</blockquote>
<p>
  Comedy, my ass. I wanted to cry.
</p>
<p>
  But there is a way out: redemption through repetition. If you have to watch Groundhog Day a few times to appreciate it, you're not alone. Indeed, that seems to be the whole point. Just <a href="http://rogerebert.suntimes.com/apps/pbcs.dll/article?AID=/20050130/REVIEWS08/501300301/1023">ask Roger Ebert</a>:
</p>
<blockquote>
  "Groundhog Day" is a film that finds its note and purpose so precisely that its genius may not be immediately noticeable. It unfolds so inevitably, is so entertaining, so apparently effortless, that you have to stand back and slap yourself before you see how good it really is.
  <p>
    Certainly I underrated it in my original review; I enjoyed it so easily that I was seduced into cheerful moderation. But there are a few films, and this is one of them, that burrow into our memories and become reference points. When you find yourself needing the phrase This is like "Groundhog Day" to explain how you feel, a movie has accomplished something.
  </p>
</blockquote>
<p>
  There's something delightfully <a href="http://en.wikipedia.org/wiki/Ouroboros">Ouroboros</a> about the epiphanies and layered revelations in repeated viewings of a movie <em>that is itself about (nearly) endless repetition</em>.
</p>
<p>
  Which, naturally, <strong>brings me to <a href="http://en.wikipedia.org/wiki/A/B_testing">A/B testing.</a></strong> That's what Phil spends most of those thirty years doing. He spends it pursuing a woman, technically, but it's <em>how</em> he does it that is interesting:
</p>
<blockquote>
  Rita: This whole day has just been one long setup.
  <p>
    Phil: It hasn't.
  </p>
  <p>
    Rita: And I hate fudge!
  </p>
  <p>
    Phil: [making a mental list] No white chocolate. No fudge.
  </p>
  <p>
    Rita: What are you doing? Are you making some kind of list? Did you call my friends and ask what I like and what I don't like? Is this what love is for you?
  </p>
  <p>
    Phil: This is real. This is love.
  </p>
  <p>
    Rita: Stop saying that! You must be crazy.
  </p>
</blockquote>
<p>
  Phil doesn't just go on one date with Rita, he goes on <em>thousands</em> of dates. During each date, he makes note of what she likes and responds to, and drops everything she doesn't. At the end he arrives at -- quite literally -- the perfect date. Everything that happens is the most ideal, most desirable version of all possible outcomes on that date on that particular day. Such are the luxuries afforded to a man repeating the same day forever.
</p>
<p>
  <img title="Groundhog-day-phil-rita" src="http://www.codinghorror.com/.a/6a0120a85dcdae970b0134858f4563970c-800wi" alt="Groundhog-day-phil-rita" />
</p>
<p>
  <strong>This is the purest form of A/B testing imaginable.</strong> Given two choices, pick the one that "wins", and keep repeating this ad infinitum until you arrive at the ultimate, most scientifically desirable choice. Your <a href="http://www.codinghorror.com/blog/2009/09/9-ways-marketing-weasels-will-try-to-manipulate-you.html">marketing weasels</a> would probably collapse in an ecstatic, religious fervor if they could achieve anything even remotely close to the level of perfect A/B testing depicted in Groundhog Day.
</p>
<p>
  But at the end of this perfect date, something impossible happens: <strong>Rita rejects Phil</strong>.
</p>
<p>
  Phil wasn't making these choices because he honestly believed in them. He was making these choices because he wanted a specific outcome -- winning over Rita -- and the experimental data told him which path he should take. Although the date was technically perfect, it didn't ring true to Rita, and that made all the difference.
</p>
<p>
  That's the problem with A/B testing. It's empty. It has no feeling, no empathy, and at worst, <a href="http://learningischange.com/2010/01/22/question-22-of-365-farmville-practices-ghetto-testing-why-arent-we/">it's dishonest</a>. As my friend Nathan Bowers <a href="http://twitter.com/NathanBowers/status/16801715177">said</a>:
</p>
<blockquote>
  A/B testing is like sandpaper. You can use it to smooth out details, but you can't actually create anything with it.
</blockquote>
<p>
  The next time you reach for A/B testing tools, remember what happened to Phil. You can achieve a shallow local maximum with A/B testing -- but you'll never win hearts and minds. If you, or anyone on your team, is still having trouble figuring that out, well, the solution is simple.
</p>
<p>
  <strong>Just watch Groundhog Day again</strong>.
</p>

  
    
      
        [advertisement] <a href="http://www.atlassian.com/hosted/studio/?utm_source=Coding%2BHorror&amp;utm_medium=Text%2BAd&amp;utm_content=A&amp;utm_campaign=Studio%2B2.1">JIRA Studio</a> - Hosted software development suite. Build better software. Faster. <a href="http://www.atlassian.com/hosted/studio/?utm_source=Coding%2BHorror&amp;utm_medium=Text%2BAd&amp;utm_content=A&amp;utm_campaign=Studio%2B2.1">Free trial »</a>
      
    
  

</div>]]>
      </description>
      <pubDate>Tue, 20 Jul 2010 13:59:50 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12685144</guid>
    </item>
    <item>
      <title>Investigation of top secret America</title>
      <link>http://flowingdata.com/2010/07/20/investigation-of-top-secret-america/</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><p>
  <a href="http://flowingdata.com/2010/07/20/investigation-of-top-secret-america/"><img title="Top Secret America network infographic" src="http://flowingdata.com/wp-content/uploads/2010/07/Top-Secret-America-network-infographic-550x290.png" height="290" alt="" width="550" /></a>
</p>
<p>
  In response to the the 9/11 attacks, the United States government created a highly secretive set of organizations with zero transparency and very little oversight. How much money do these secret programs cost? How many people do they employ? The Washington Post reports on <a href="http://projects.washingtonpost.com/top-secret-america/">Top Secret America</a>:
</p>
<blockquote>
  <p>
    These are some of the findings of a two-year investigation by The Washington Post that discovered what amounts to an alternative geography of the United States, a Top Secret America hidden from public view and lacking in thorough oversight. After nine years of unprecedented spending and growth, the result is that the system put in place to keep the United States safe is so massive that its effectiveness is impossible to determine.
  </p>
</blockquote>
<p>
  The series of articles, video, and graphics, allow readers to explore the information themselves.
</p>
<p>
  Of main interest: a <a href="http://projects.washingtonpost.com/top-secret-america/network/">network diagram</a> shows organizations and their top secret activities and a map shows the <a href="http://projects.washingtonpost.com/top-secret-america/map/">geographic distribution</a> of government organizations and companies within Top Secret America.
</p>
<p>
  Click on a specific organization for within group breakdowns. At this point it gets a little confusing with drill-down pie charts, especially if you're just browsing, and a spiral view is also offerred which feels extraneous. The overall story and heavy research, however, makes it worth clicking through the clunky at times set of interactives.
</p>
<p>
  [Thanks, Erika]
</p>
<p>
  <br />
  <a href="http://api.tweetmeme.com/share?url=http://flowingdata.com/2010/07/20/investigation-of-top-secret-america/&amp;alias=http://datafl.ws/yf"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://flowingdata.com/2010/07/20/investigation-of-top-secret-america/" height="61" width="51" /></a>
</p><img src="http://feeds.feedburner.com/~r/FlowingData/~4/hOTi37QycNQ" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Tue, 20 Jul 2010 09:42:23 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12685145</guid>
    </item>
    <item>
      <title>Reduce Fractions Function Python</title>
      <link>http://feeds.dzone.com/%7Er/dzone/snippets/%7E3/Rvs6h0pD2AY/11901</link>
      <description>
        <![CDATA[<div class="post_content wiki_text">A function that reduces/simplifies fractions using the Euclidean Algorithm, in Python.<br />
<br />
<code><br />
def reducefract(n, d):<br />
'''Reduces fractions. n is the numerator and d the denominator.'''<br />
def gcd(n, d):<br />
while d != 0:<br />
t = d<br />
d = n%d<br />
n = t<br />
return n<br />
assert d!=0, "integer division by zero"<br />
assert isinstance(d, int), "must be int"<br />
assert isinstance(n, int), "must be int"<br />
greatest=gcd(n,d)<br />
n/=greatest<br />
d/=greatest<br />
return n, d<br /></code> <img src="http://feeds.feedburner.com/~r/dzone/snippets/~4/Rvs6h0pD2AY" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Tue, 20 Jul 2010 00:50:04 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12681835</guid>
    </item>
    <item>
      <title>Put Your Cognitive Surplus to Good Use [Productivity]</title>
      <link>http://lifehacker.com/5590940/put-your-cognitive-surplus-to-good-use</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><p>
  <a href="http://cache.gawkerassets.com/assets/images/17/2010/07/goggle-boxes.jpg"><img title="Put Your Cognitive Surplus to Good Use" src="http://cache.gawkerassets.com/assets/images/17/2010/07/500x_goggle-boxes.jpg" alt="goggle-boxes.jpg" width="500" /></a>Internet expert and author Clay Shirky's new book, <a href="http://www.amazon.com/exec/obidos/ASIN/1594202532/?ref=nosim&amp;tag=gmgamzn-20"><em>Cognitive Surplus: Creativity and Generosity in a Connected Age</em></a>, discusses how the internet enables us to use slivers of time our culture has historically spent watching television making truly incredible things—like Wikipedia.
</p>
<p>
  The image above, from web site <a href="http://www.informationisbeautiful.net/2010/cognitive-surplus-visualized/">Information is Beautiful</a>, provides a nice visualization of this idea, putting into perspective how powerful redirecting even a small portion of our collective cognitive surplus can be. Friend of Lifehacker Matt Haughey <a href="http://a.wholelottanothing.org/2010/07/cognitive-surplus.html">discusses the new book</a>:
</p>
<blockquote>
  <p>
    The gist of the story Clay weaves is how we've spent the previous 50 years staring at televisions but the internet enables us to finally talk back, and even tiny slices of the time wasted watching TV when applied towards some collective output can result in massive repositories of information like Wikipedia. He shows many contemporary examples of online collaboration beyond Wikipedia.org and breaks down the motivations for contributors that cites plenty of sociology, psychology, and economics research to back his points up.
  </p>
</blockquote>
<p>
  This one's officially on my to-read list, but whether you're interested in the book or not, it's a nice, hopeful idea, and something you may want to consider if you're looking for something to do with your free time beyond flipping on the TV set—even every now and then.
</p>
<div>
  <a href="http://www.informationisbeautiful.net/2010/cognitive-surplus-visualized/">Cognitive Surplus visualized</a> [Information is Beautiful]<br />
  <a href="http://a.wholelottanothing.org/2010/07/cognitive-surplus.html">Clay Shirky's Cognitive Surplus</a> [A Whole Lotta Nothing]
</div>
<div>
  <a href="http://feeds.gawker.com/~ff/lifehacker/vip?a=BfsYbyhy6io:IyxRQAvpJLE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/lifehacker/vip?d=yIl2AUoC8zA" /></a> <a href="http://feeds.gawker.com/~ff/lifehacker/vip?a=BfsYbyhy6io:IyxRQAvpJLE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/lifehacker/vip?i=BfsYbyhy6io:IyxRQAvpJLE:D7DqB2pKExk" /></a> <a href="http://feeds.gawker.com/~ff/lifehacker/vip?a=BfsYbyhy6io:IyxRQAvpJLE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/lifehacker/vip?d=qj6IDK7rITs" /></a> <a href="http://feeds.gawker.com/~ff/lifehacker/vip?a=BfsYbyhy6io:IyxRQAvpJLE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/lifehacker/vip?i=BfsYbyhy6io:IyxRQAvpJLE:V_sGLiPBpWU" /></a>
</div>
</div>]]>
      </description>
      <pubDate>Mon, 19 Jul 2010 21:30:00 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12685146</guid>
    </item>
    <item>
      <title>Narcissus and Medea are lonely.</title>
      <link>http://thisisindexed.com/2010/07/narcissus-and-medea-are-lonely/</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><p>
  <a href="http://thisisindexed.com/wp-content/uploads/2010/07/card2628.jpg"><img title="card2628" src="http://thisisindexed.com/wp-content/uploads/2010/07/card2628-374x231.jpg" height="231" alt="" width="374" /></a>
</p>
</div>]]>
      </description>
      <pubDate>Mon, 19 Jul 2010 17:38:26 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12685147</guid>
    </item>
    <item>
      <title>A new dimension of RPG</title>
      <link>http://feedproxy.google.com/%7Er/TheBrothersBrick/%7E3/dmxngHiSlA0/</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><p>
  Bo King Wang (<a href="http://www.flickr.com/photos/26441406@N03/">CREATION K.O Creation</a>) thinks outside the 8-bit box and creates a 3D RPG battle depicting a band of heroes taking down an evil sorceress and her monster. The back panels feature two additional scenes that are also worth checking out. See them all in the <a href="http://www.flickr.com/photos/26441406@N03/sets/72157624411117119">gallery</a> on Flickr.
</p><a href="http://www.flickr.com/photos/26441406@N03/4808192111/"><img src="http://farm5.static.flickr.com/4118/4808192111_5aa884a7fc_z.jpg" width="420" /></a><br />
<img src="http://feeds.feedburner.com/~r/TheBrothersBrick/~4/dmxngHiSlA0" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Mon, 19 Jul 2010 16:14:51 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12685148</guid>
    </item>
    <item>
      <title>install git ubuntu</title>
      <link>http://feeds.dzone.com/%7Er/dzone/snippets/%7E3/_c2VbUAiBgk/11899</link>
      <description>
        <![CDATA[<div class="post_content wiki_text">// description of your code here<br />
<br />
<code><br />
apt-get -y install git-core gitosis<br /></code> <img src="http://feeds.feedburner.com/~r/dzone/snippets/~4/_c2VbUAiBgk" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Mon, 19 Jul 2010 15:14:38 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12679710</guid>
    </item>
    <item>
      <title>Common Descent</title>
      <link>http://abstrusegoose.com/286</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><p>
  <img title="Communing with nature is like a family reunion of sorts." src="http://abstrusegoose.com/strips/good_night_till_it_be_morrow.PNG" height="2039" alt="good_night_till_it_be_morrow" width="744" />
</p>
<p>
  By request, a new poster is <a href="http://www.cafepress.com/abstrusegoose.459819477"><strong>available in the store</strong></a>.<br />
  (Based on <a href="http://abstrusegoose.com/275"><strong>this one</strong></a>.)
</p>
<p>
  <a href="http://digg.com/submit?url=abstrusegoose.com%2F286&amp;title=Common%20Descent" title="Digg"><img src="http://abstrusegoose.com/images/digg-guy-icon.gif" hspace="3" /></a><a href="http://reddit.com/submit?url=http%3A%2F%2Fabstrusegoose.com%2F286&amp;title=Common%20Descent" title="reddit"><img src="http://abstrusegoose.com/images/spreddit1.gif" /></a> <a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fabstrusegoose.com%2F286&amp;title=Common%20Descent"><img src="http://cdn.stumble-upon.com/images/16x16_su_3d.gif" alt="Stumble this!" /></a><a href="http://www.facebook.com/share.php?u=http://abstrusegoose.com/286"><img src="http://b.static.ak.fbcdn.net/rsrc.php/zAB5S/hash/4273uaqa.gif" alt="" /></a>
</p>
</div>]]>
      </description>
      <pubDate>Mon, 19 Jul 2010 11:27:29 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12685149</guid>
    </item>
    <item>
      <title>Graffiti for Android</title>
      <link>http://feedproxy.google.com/%7Er/taoofmac/full/%7E3/0CCUwNMieTM/</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><blockquote>
  Shared by Riduidel<br />
  La seule chose qui pouvait me pousser à acheter un téléphone Android (moi et tous les anciens possesseurs de Palm).
</blockquote>

  
    
      
        <div>
          <a href="http://the.taoofmac.com/media/links/2010/07/16/1931/large.jpg" title=""><img src="http://the.taoofmac.com/media/links/2010/07/16/1931/thumbnail.jpg" alt="Click on the image to zoom in" /></a>
        </div>
      
      
        Man, this takes me back. I used to write in Graffiti two to three times faster than in longhand, and despite my proficiency with soft keyboards, I think it would rival that. Gotta get my hands on an <a href="http://the.taoofmac.com/space/com/Google/Android" title="com/Google/Android was updated 3 weeks, 2 days ago">Android</a> phone to try this…
      
    
  
<br />
<small><a href="http://the.taoofmac.com/space/links/2010/07/16/1931#graffiti-for-android" title="link to http://the.taoofmac.com/space/links/2010/07/16/1931#graffiti-for-android">☯</a></small>
<p>
  
</p><img src="http://feeds.feedburner.com/~r/taoofmac/full/~4/0CCUwNMieTM" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Mon, 19 Jul 2010 09:55:06 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12685150</guid>
    </item>
    <item>
      <title>The Destruction of Neo Tokyo</title>
      <link>http://www.sci-fi-o-rama.com/2010/07/18/the-destruction-of-neo-tokyo/</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><blockquote>
  Shared by Riduidel<br />
  Effectivement, Akira, ça déchire, je m'étonne même rétrospectivement de ne pas avoir le manga ...
</blockquote>
<p>
  <img title="Katsuhiro Otomo - Neo Tokyo" src="http://www.sci-fi-o-rama.com/wp-content/uploads/2010/07/destruction_of_neo_tokyo_01.png" height="641" alt="Katsuhiro Otomo - Neo Tokyo" width="736" />
</p>
<p>
  <img title="The Destruction of Neo Tokyo" src="http://www.sci-fi-o-rama.com/wp-content/uploads/2010/07/destruction_of_neo_tokyo_02.png" height="644" alt="The Destruction of Neo Tokyo" width="736" />
</p>
<p>
  <img title="The Destruction of Neo Tokyo" src="http://www.sci-fi-o-rama.com/wp-content/uploads/2010/07/destruction_of_neo_tokyo_03.png" height="700" alt="The Destruction of Neo Tokyo" width="476" />
</p>
<p>
  <img title="The Destruction of Neo Tokyo" src="http://www.sci-fi-o-rama.com/wp-content/uploads/2010/07/destruction_of_neo_tokyo_04.png" height="302" alt="The Destruction of Neo Tokyo" width="736" />
</p>
<p>
  <img title="The Destruction of Neo Tokyo" src="http://www.sci-fi-o-rama.com/wp-content/uploads/2010/07/destruction_of_neo_tokyo_05.png" height="424" alt="The Destruction of Neo Tokyo" width="436" />
</p>
<p>
  More extraordinarily complex draughtsmanship from Katushiro Otomo’s 2182-page manga&nbsp; masterpiece “Akira”.
</p>
<p>
  **Possible Spoilers**
</p>
<p>
  The above images are taken from the end of Akira book 3&nbsp; published by Dark Horse comics, I used to have the colourised version published by Epic Comics but alas, it’s long since vanished! For those of you perhaps familiar with the 1988 animated movie but not the Manga, I’d thoroughly recommend checking it out, the story is massively more complex,&nbsp; intertwining a multitude of characters and many recurring, explicitly described locations…
</p>
<p>
  The reason I chose to feature this set was I remember vividly how much of an effect first seeing these illustration had on me as an aspiring artist/designer, the detail is beyond phenomenal. Of particular interest is not just the superb architectural designs but the way the building are crowned with differing mix of communication arrays, air conditioning systems, water towers etc….
</p>
<p>
  Akira volume 01 is available over on Amazon <a href="http://is.gd/dxk1Q">http://is.gd/dxk1Q</a> and all good bookshops!
</p>
<p>
  More on Katsuhiro Otomo here: <a href="http://en.wikipedia.org/wiki/Katsuhiro_Otomo">http://en.wikipedia.org/wiki/Katsuhiro_Otomo</a>
</p>
</div>]]>
      </description>
      <pubDate>Mon, 19 Jul 2010 09:44:56 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12685151</guid>
    </item>
    <item>
      <title>40% de gr&#226;ce</title>
      <link>http://feedproxy.google.com/%7Er/sexeactu/%7E3/posOAjpP9-A/</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><p>
  “<em>Ce qui s’est passé avec la sexualisation du Black, du Latino, de l’Arabe, du Pakistanais et de l’Asiatique, c’est toujours 60% de racisme et 40% d’attraction sincère.</em>” Dixit <a href="http://www.minorites.org/index.php/2-la-revue/824-le-sexe-gay-israelien.html">Didier Lestrade</a>.
</p>
<p>
  Réflexion à poursuivre sur <a href="http://gaadjou.joueb.com/news/des-colonies-aux-banlieues-un-continuum-pornographique">Post-O-Porno</a> :
</p>
<blockquote>
  <p>
    En France, ce type de pornographie met en scène ses propres références raciales, reflétant la réalité sociologique de la société française. La jeunesse «&nbsp;visible&nbsp;»&nbsp;des quartiers populaires des grandes villes françaises et de leur agglomération, celle dite «&nbsp;issue de l’immigration&nbsp;» (originaire des anciennes colonies françaises d’Afrique), est ainsi placée sur la sellette pornographique. «&nbsp;<em>Le fantasme de l’Arabe est une réalité du monde homosexuel français, et c’est tout à fait notable dans un univers du gay porn à prédominance blanche</em> ». On trouve ainsi des identités porno «&nbsp;ethniques&nbsp;», comme les «&nbsp;beurettes&nbsp;» et les «&nbsp;beurs&nbsp;», les «&nbsp;filles arabes voilées&nbsp;», les «&nbsp;racailles de cité&nbsp;», les «&nbsp;blackos&nbsp;». Ces représentations enferment dans une identité sexuelle caricaturale toute une partie de la société, et elles enferment ces mêmes personnes et leur sexualité dans la «&nbsp;cité&nbsp;», dans les caves des immeubles, dans le terrain vague.
  </p>
  <p>
    La vidéo porno gay «&nbsp;<em>Matos de blackos</em> », sous-production de la société Citébeur,&nbsp;est exemplaire quant au procédé d’assignation d’une identité sexuelle basée sur le genre et la race. Le film présente une succession de scènes dans des décors de «&nbsp;cité&nbsp;» dont les principaux protagonistes sont donc des «&nbsp;<em>blackos</em> », soit des jeunes hommes noirs, et où le spectateur va avoir confirmation de ses «&nbsp;<em>idées reçues sur leur réputation</em> ». Et cette réputation, clairement annoncée comme un «&nbsp;<em>cliché</em> » réel, repose principalement sur «&nbsp;<em>la légende du sexe surdimensionné des noirs</em> ».&nbsp;Car c’est connu, et la vidéo entend bien le démontrer&nbsp;: les noirs en ont une grosse. Ils n’ont pas un pénis aux dimensions «&nbsp;normales&nbsp;», mais un «&nbsp;<em>baobab&nbsp;géant</em> », un «&nbsp;<em>gros bâton</em> », une «&nbsp;<em>bite XXL</em> ». L’homme noir est résumé par son sexe prétendument hypertrophié, réduit à un pénis inhumain, animal. Le porno hétéro ou gay choisi TOUJOURS des hardeurs noirs avec pour&nbsp;seul critère de sélection, la taille de leur sexe&nbsp;; jamais un homme noir au pénis de taille plus modeste n’est choisi. De même, l’homme noir pornographique est «&nbsp;exotique&nbsp;», il «&nbsp;<em>a le</em> <em>rythme dans la peau</em> », il est chaud «&nbsp;<em>comme le soleil d’Afrique</em> », il est présenté comme possédé par sa libido exubérante. Il est une brute animale, il est hyperactif, son corps est totalement sexualisé, fétichisé, contrairement à l’homme blanc. Bref, il est l’héritier de ses aïeuls des colonies. Dans le porno, on trouve une démonstration par le sexe de la différence raciale. L’homme noir est enfermé dans une identité raciale essentialisée&nbsp;: par «&nbsp;nature&nbsp;», il est différent&nbsp;de l’homme blanc. Tout comme les femmes, il est réduit à un corps/sexe. Disqualifiés de la sorte, les hommes noirs sont placés en bas de la hiérarchie de genre, ils ne sont pas des «&nbsp;hommes&nbsp;», mais avant tout des noirs,&nbsp;des «&nbsp;blackos&nbsp;». Vu sous cet angle, le porno est, non seulement une construction <em>hétérosexiste</em>, mais plus encore ce qu’on pourrait qualifier d’&nbsp;«&nbsp;hétéroracisme&nbsp;».
  </p>
</blockquote>
<p>
  Merci à <a href="http://coulmont.com/blog/">Baptiste Coulmont</a> pour ces liens, particulièrement bienvenus en ces temps de loi anti-burqa dont les débats ont largement écarté les aspects postcoloniaux.
</p>
<div>
  <a href="http://feeds.feedburner.com/~ff/sexeactu?a=posOAjpP9-A:S-5iKdgULEg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/sexeactu?d=yIl2AUoC8zA" /></a> <a href="http://feeds.feedburner.com/~ff/sexeactu?a=posOAjpP9-A:S-5iKdgULEg:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/sexeactu?i=posOAjpP9-A:S-5iKdgULEg:D7DqB2pKExk" /></a>
</div><img src="http://feeds.feedburner.com/~r/sexeactu/~4/posOAjpP9-A" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Mon, 19 Jul 2010 08:30:24 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12685152</guid>
    </item>
    <item>
      <title>funteim</title>
      <link>http://feeds.dzone.com/%7Er/dzone/snippets/%7E3/9PrLWg9d0U0/11897</link>
      <description>
        <![CDATA[<div class="post_content wiki_text">Coverts a few dates into utc format by reading the timezone from the registry as well as joining different tables depending on data<br />
<br />
<code><br />
DECLARE @UTCOffset INTEGER<br />
<br />
EXEC master..xp_regread<br />
'HKEY_LOCAL_MACHINE',<br />
'SYSTEM\CurrentControlSet\Control\TimeZoneInformation',<br />
'ActiveTimeBias',<br />
@UTCOffset OUTPUT<br />
<br />
SELECT ext.taskid, ext.uidl, ext.dateStart, ext.dateEnd, ext.subject, ext.detail, ext.reminder, ext.reminderDate, ext.dateModified<br />
<br />
/*convert datefields to utc*/<br />
,DATEADD(MINUTE, @UTCOffset, ext.datestart ) as UTCdatestart<br />
,DATEADD(MINUTE, @UTCOffset, ext.dateend ) as UTCdateend<br />
, CASE WHEN NOT ext.dateModified IS NULL THEN DATEADD(MINUTE, @UTCOffset, ext.datemodified )<br />
ELSE DATEADD(MINUTE, @UTCOffset, ext.datecreated )<br />
END AS UTCdatemodified<br />
,DATEADD(MINUTE, @UTCOffset, ext.reminderdate ) as UTCreminderdate<br />
,DATEADD(MINUTE, @UTCOffset, ext.recurrenceStartDate ) as UTCrecurrenceStartDate<br />
,DATEADD(MINUTE, @UTCOffset, ext.recurrenceEndDate ) as UTCrecurrenceEndDate<br />
<br />
FROM extask ext<br />
/*taskType 1 */<br />
LEFT OUTER JOIN jobSeeker_activity jsa ON jsa.act_id = ext.activityID AND ext.taskType = 1<br />
LEFT OUTER JOIN activity_entry_type aet ON aet.typeTitle = jsa.[type] AND aet.clientID = 621<br />
LEFT OUTER JOIN jobSeekerActivityReason jsr ON jsr.jobSeekerActivityReasonID = jsa.jobSeekerActivityReasonID AND jsr.clientID = 621<br />
<br />
/*tasktype 2*/<br />
LEFT OUTER JOIN companyActivities cac ON cac.ActivityID = ext.activityID AND ext.taskType = 2<br />
LEFT OUTER JOIN companyActivityType cat ON cat.activityTypeID = cac.typeID AND cat.clientID = 621<br />
LEFT OUTER JOIN companyActivityReason car ON car.companyActivityReasonID = cac.companyActivityReasonID AND car.clientID = 621<br />
<br />
WHERE taskType IN (1,2) --Only tasks with a activity<br />
AND (<br />
aet.isOutlookAppointment = 1<br />
OR jsr.isOutlookAppointment = 1<br />
OR cat.isOutlookAppointment = 1<br />
OR car.isOutlookAppointment = 1<br />
)<br />
AND ext.clientidfk = 621<br />
AND ( CASE<br />
WHEN NOT ext.dateModified IS NULL THEN DATEADD(MINUTE, @UTCOffset, ext.dateModified)<br />
ELSE DATEADD(MINUTE, @UTCOffset, ext.dateCreated)<br />
END) &gt;= 621<br /></code> <img src="http://feeds.feedburner.com/~r/dzone/snippets/~4/9PrLWg9d0U0" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Mon, 19 Jul 2010 07:24:37 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12679711</guid>
    </item>
    <item>
      <title>1996</title>
      <link>http://xkcd.com/768/</link>
      <description>
        <![CDATA[<div class="post_content wiki_text"><img title="College Board issues aside, I have fond memories of TI-BASIC, writing in it a 3D graphing engine and a stock market analyzer. With enough patience, I could make anything ... but friends. (Although with my chatterbot experiments, I certainly tried.)" src="http://imgs.xkcd.com/comics/1996.png" alt="College Board issues aside, I have fond memories of TI-BASIC, writing in it a 3D graphing engine and a stock market analyzer. With enough patience, I could make anything ... but friends. (Although with my chatterbot experiments, I certainly tried.)" />
</div>]]>
      </description>
      <pubDate>Mon, 19 Jul 2010 06:00:00 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12685153</guid>
    </item>
    <item>
      <title>Select count of new leads and opps</title>
      <link>http://feeds.dzone.com/%7Er/dzone/snippets/%7E3/rA9rasbCPII/11895</link>
      <description>
        <![CDATA[<div class="post_content wiki_text">Ouput:<br />
<code><br />
Type New South Wales Northern Territory Queensland South Australia Victoria Western Australia Total<br />
Opportunities 8 3 77 90<br />
Leads 70 109 5 184<br /></code><br />
<br />
SQL:<br />
<code><br />
SELECT 'Opportunities' as `Type`,<br />
(SELECT COUNT(*) FROM opportunities LEFT OUTER JOIN opportunities_cstm ON id = id_c WHERE oppor_prim_address_c LIKE '%, nsw %' AND date_entered &gt; DATE(SUBDATE(NOW(), INTERVAL 7 DAY))) as `New South Wales`,<br />
(SELECT COUNT(*) FROM opportunities LEFT OUTER JOIN opportunities_cstm ON id = id_c WHERE oppor_prim_address_c LIKE '%, nt %' AND date_entered &gt; DATE(SUBDATE(NOW(), INTERVAL 7 DAY))) as `Northern Territory`,<br />
(SELECT COUNT(*) FROM opportunities LEFT OUTER JOIN opportunities_cstm ON id = id_c WHERE oppor_prim_address_c LIKE '%, qld %' AND date_entered &gt; DATE(SUBDATE(NOW(), INTERVAL 7 DAY))) as `Queensland`,<br />
(SELECT COUNT(*) FROM opportunities LEFT OUTER JOIN opportunities_cstm ON id = id_c WHERE oppor_prim_address_c LIKE '%, sa %' AND date_entered &gt; DATE(SUBDATE(NOW(), INTERVAL 7 DAY))) as `South Australia`,<br />
(SELECT COUNT(*) FROM opportunities LEFT OUTER JOIN opportunities_cstm ON id = id_c WHERE oppor_prim_address_c LIKE '%, vic %' AND date_entered &gt; DATE(SUBDATE(NOW(), INTERVAL 7 DAY))) as `Victoria`,<br />
(SELECT COUNT(*) FROM opportunities LEFT OUTER JOIN opportunities_cstm ON id = id_c WHERE oppor_prim_address_c LIKE '%, wa %' AND date_entered &gt; DATE(SUBDATE(NOW(), INTERVAL 7 DAY))) as `Western Australia`,<br />
(SELECT COUNT(*) FROM opportunities LEFT OUTER JOIN opportunities_cstm ON id = id_c WHERE date_entered &gt; DATE(SUBDATE(NOW(), INTERVAL 7 DAY))) as `Total`<br />
UNION<br />
SELECT 'Leads' as `Type`,<br />
(SELECT COUNT(*) FROM leads WHERE primary_address_state = 'nsw' AND date_entered &gt; DATE(SUBDATE(NOW(), INTERVAL 7 DAY))) as `New South Wales`,<br />
(SELECT COUNT(*) FROM leads WHERE primary_address_state = 'nt' AND date_entered &gt; DATE(SUBDATE(NOW(), INTERVAL 7 DAY))) as `Northern Territory`,<br />
(SELECT COUNT(*) FROM leads WHERE primary_address_state = 'qld' AND date_entered &gt; DATE(SUBDATE(NOW(), INTERVAL 7 DAY))) as `Queensland`,<br />
(SELECT COUNT(*) FROM leads WHERE primary_address_state = 'sa' AND date_entered &gt; DATE(SUBDATE(NOW(), INTERVAL 7 DAY))) as `South Australia`,<br />
(SELECT COUNT(*) FROM leads WHERE primary_address_state = 'vic' AND date_entered &gt; DATE(SUBDATE(NOW(), INTERVAL 7 DAY))) as `Victoria`,<br />
(SELECT COUNT(*) FROM leads WHERE primary_address_state = 'wa' AND date_entered &gt; DATE(SUBDATE(NOW(), INTERVAL 7 DAY))) as `Western Australia`,<br />
(SELECT COUNT(*) FROM leads WHERE date_entered &gt; DATE(SUBDATE(NOW(), INTERVAL 7 DAY))) as `Total`<br /></code> <img src="http://feeds.feedburner.com/~r/dzone/snippets/~4/rA9rasbCPII" height="1" width="1" />
</div>]]>
      </description>
      <pubDate>Mon, 19 Jul 2010 03:05:34 +0200</pubDate>
      <guid isPermaLink="false">tag:ziki.com,2010:/article/12679712</guid>
    </item>
  </channel>
</rss>

