<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Hacking Twitter on JetBlue</title>
	<atom:link href="http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/</link>
	<description>Random thoughts on tech, books, programming, etc.</description>
	<lastBuildDate>Sat, 21 Jan 2012 10:19:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: fluidinfo &#187; Blog Archive &#187; How many users does Twitter have?</title>
		<link>http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/comment-page-1/#comment-680</link>
		<dc:creator>fluidinfo &#187; Blog Archive &#187; How many users does Twitter have?</dc:creator>
		<pubDate>Sun, 12 Oct 2008 22:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/#comment-680</guid>
		<description>[...] at Twitter user id numbers via the API and trying to estimate how many users there are. I did play with that at one point at least with tweet ids, but although they increase there are large holes in the tweet id space. [...]</description>
		<content:encoded><![CDATA[<p>[...] at Twitter user id numbers via the API and trying to estimate how many users there are. I did play with that at one point at least with tweet ids, but although they increase there are large holes in the tweet id space. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: terry</title>
		<link>http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/comment-page-1/#comment-51</link>
		<dc:creator>terry</dc:creator>
		<pubDate>Sun, 25 Nov 2007 21:13:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/#comment-51</guid>
		<description>BTW Esteve, did you know that &lt;tt&gt;[&lt;/tt&gt; used to (only) be an executable in &lt;tt&gt;/bin&lt;/tt&gt;?

It&#039;s still there, probably for compatibility with old shells and scripts that explicitly use &lt;tt&gt;/bin/[&lt;/tt&gt; for some reason. But years ago &lt;tt&gt;[&lt;/tt&gt; got built in to the shell for speed reasons. It&#039;s the same as &lt;tt&gt;test&lt;/tt&gt;, which it is typically a symlink to, except if you call it as &lt;tt&gt;[&lt;/tt&gt; you need to pass a final syntactic-sugar &lt;tt&gt;]&lt;/tt&gt; argument too. Wacky.

Old-timer shell programmers grew up being taught to use &lt;tt&gt;case&lt;/tt&gt; where possible because it was built into the shell and didn&#039;t need an extra process to be forked.</description>
		<content:encoded><![CDATA[<p>BTW Esteve, did you know that <tt>[</tt> used to (only) be an executable in <tt>/bin</tt>?</p>
<p>It's still there, probably for compatibility with old shells and scripts that explicitly use <tt>/bin/[</tt> for some reason. But years ago <tt>[</tt> got built in to the shell for speed reasons. It's the same as <tt>test</tt>, which it is typically a symlink to, except if you call it as <tt>[</tt> you need to pass a final syntactic-sugar <tt>]</tt> argument too. Wacky.</p>
<p>Old-timer shell programmers grew up being taught to use <tt>case</tt> where possible because it was built into the shell and didn&#8217;t need an extra process to be forked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: terry</title>
		<link>http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/comment-page-1/#comment-1756</link>
		<dc:creator>terry</dc:creator>
		<pubDate>Sun, 25 Nov 2007 21:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/#comment-1756</guid>
		<description>BTW Esteve, did you know that [ used to (only) be an executable in /bin?

It&#039;s still there, probably for compatibility with old shells and scripts that explicitly use /bin/[ for some reason. But years ago [ got built in to the shell for speed reasons. It&#039;s the same as test, which it is typically a symlink to, except if you call it as [ you need to pass a final syntactic-sugar ] argument too. Wacky.

Old-timer shell programmers grew up being taught to use case where possible because it was built into the shell and didn&#039;t need an extra process to be forked.</description>
		<content:encoded><![CDATA[<p>BTW Esteve, did you know that [ used to (only) be an executable in /bin?</p>
<p>It's still there, probably for compatibility with old shells and scripts that explicitly use /bin/[ for some reason. But years ago [ got built in to the shell for speed reasons. It's the same as test, which it is typically a symlink to, except if you call it as [ you need to pass a final syntactic-sugar ] argument too. Wacky.</p>
<p>Old-timer shell programmers grew up being taught to use case where possible because it was built into the shell and didn&#8217;t need an extra process to be forked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: terry</title>
		<link>http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/comment-page-1/#comment-50</link>
		<dc:creator>terry</dc:creator>
		<pubDate>Sun, 25 Nov 2007 17:57:24 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/#comment-50</guid>
		<description>You&#039;re right, of course. I guess I&#039;m just old :-)

At least in example code I tend to avoid special things like seq (and there used to be another useful tool like seq called jot). There&#039;s also arithmetic built into some shells, so in bash I could have used

&lt;pre&gt;
for ((i = 5000; i &lt; 200000; i += 5000))
&lt;/pre&gt;

or

&lt;pre&gt;
while [ $((i++) -lt 200000 ]
&lt;/pre&gt;


Anyway, thanks. I did in fact use expr. I always meant to make myself use arithmetic in bash, given that bash is pretty much ubiquitous now.

BTW, I still sometimes use expr for regexp matching. That&#039;s even more ugly and prehistoric :-)</description>
		<content:encoded><![CDATA[<p>You&#8217;re right, of course. I guess I&#8217;m just old :-)</p>
<p>At least in example code I tend to avoid special things like seq (and there used to be another useful tool like seq called jot). There&#8217;s also arithmetic built into some shells, so in bash I could have used</p>
<pre>
for ((i = 5000; i < 200000; i += 5000))
</pre>
<p>or</p>
</pre>
<pre>
while [ $((i++) -lt 200000 ]
</pre>
<p>Anyway, thanks. I did in fact use expr. I always meant to make myself use arithmetic in bash, given that bash is pretty much ubiquitous now.</p>
<p>BTW, I still sometimes use expr for regexp matching. That's even more ugly and prehistoric :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: terry</title>
		<link>http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/comment-page-1/#comment-1755</link>
		<dc:creator>terry</dc:creator>
		<pubDate>Sun, 25 Nov 2007 17:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/#comment-1755</guid>
		<description>You&#039;re right, of course. I guess I&#039;m just old :-)

At least in example code I tend to avoid special things like seq (and there used to be another useful tool like seq called jot). There&#039;s also arithmetic built into some shells, so in bash I could have used


for ((i = 5000; i &lt; 200000; i += 5000))


or


while [ $((i++) -lt 200000 ]



Anyway, thanks. I did in fact use expr. I always meant to make myself use arithmetic in bash, given that bash is pretty much ubiquitous now.

BTW, I still sometimes use expr for regexp matching. That&#039;s even more ugly and prehistoric :-)</description>
		<content:encoded><![CDATA[<p>You&#8217;re right, of course. I guess I&#8217;m just old :-)</p>
<p>At least in example code I tend to avoid special things like seq (and there used to be another useful tool like seq called jot). There&#8217;s also arithmetic built into some shells, so in bash I could have used</p>
<p>for ((i = 5000; i &lt; 200000; i += 5000))</p>
<p>or</p>
<p>while [ $((i++) -lt 200000 ]</p>
<p>Anyway, thanks. I did in fact use expr. I always meant to make myself use arithmetic in bash, given that bash is pretty much ubiquitous now.</p>
<p>BTW, I still sometimes use expr for regexp matching. That&#8217;s even more ugly and prehistoric :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: esteve</title>
		<link>http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/comment-page-1/#comment-49</link>
		<dc:creator>esteve</dc:creator>
		<pubDate>Sun, 25 Nov 2007 12:53:10 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/#comment-49</guid>
		<description>&lt;i&gt;i=5000

while [ $i -lt 200000 ]
do
  wget --http-user terrycojones --http-passwd xxx \
    http://www.twitter.com/statuses/show/$i.xml
  i=`expr $i + 5000`
  sleep 1
done&lt;/i&gt;

spawning a process inside a loop for just incrementing a variable is a big NO :-) It&#039;s better to do something like this if &quot;seq&quot; is available on your machine:

for i in `seq 5000 200000`
do
  wget --http-user terrycojones --http-passwd xxx \
    http://www.twitter.com/statuses/show/$i.xml
  sleep 1
done</description>
		<content:encoded><![CDATA[<p><i>i=5000</p>
<p>while [ $i -lt 200000 ]<br />
do<br />
  wget &#8211;http-user terrycojones &#8211;http-passwd xxx \<br />
    <a href="http://www.twitter.com/statuses/show/$i.xml" rel="nofollow">http://www.twitter.com/statuses/show/$i.xml</a><br />
  i=`expr $i + 5000`<br />
  sleep 1<br />
done</i></p>
<p>spawning a process inside a loop for just incrementing a variable is a big NO :-) It&#8217;s better to do something like this if &#8220;seq&#8221; is available on your machine:</p>
<p>for i in `seq 5000 200000`<br />
do<br />
  wget &#8211;http-user terrycojones &#8211;http-passwd xxx \<br />
    <a href="http://www.twitter.com/statuses/show/$i.xml" rel="nofollow">http://www.twitter.com/statuses/show/$i.xml</a><br />
  sleep 1<br />
done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: esteve</title>
		<link>http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/comment-page-1/#comment-1754</link>
		<dc:creator>esteve</dc:creator>
		<pubDate>Sun, 25 Nov 2007 12:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.fluidinfo.com/terry/2007/11/24/hacking-twitter-on-jetblue/#comment-1754</guid>
		<description>&lt;i&gt;i=5000

while [ $i -lt 200000 ]
do
  wget --http-user terrycojones --http-passwd xxx 
    http://www.twitter.com/statuses/show/$i.xml
  i=`expr $i + 5000`
  sleep 1
done&lt;/i&gt;

spawning a process inside a loop for just incrementing a variable is a big NO :-) It&#039;s better to do something like this if &quot;seq&quot; is available on your machine:

for i in `seq 5000 200000`
do
  wget --http-user terrycojones --http-passwd xxx 
    http://www.twitter.com/statuses/show/$i.xml
  sleep 1
done</description>
		<content:encoded><![CDATA[<p><i>i=5000</p>
<p>while [ $i -lt 200000 ]<br />
do<br />
  wget &#8211;http-user terrycojones &#8211;http-passwd xxx<br />
    <a href="http://www.twitter.com/statuses/show/$i.xml" rel="nofollow">http://www.twitter.com/statuses/show/$i.xml</a><br />
  i=`expr $i + 5000`<br />
  sleep 1<br />
done</i></p>
<p>spawning a process inside a loop for just incrementing a variable is a big NO :-) It&#8217;s better to do something like this if &#8220;seq&#8221; is available on your machine:</p>
<p>for i in `seq 5000 200000`<br />
do<br />
  wget &#8211;http-user terrycojones &#8211;http-passwd xxx<br />
    <a href="http://www.twitter.com/statuses/show/$i.xml" rel="nofollow">http://www.twitter.com/statuses/show/$i.xml</a><br />
  sleep 1<br />
done</p>
]]></content:encoded>
	</item>
</channel>
</rss>

