cogent's Journal
http://use.perl.org/~cogent/journal/
cogent's use Perl Journalen-ususe Perl; is Copyright 1998-2006, Chris Nandor. Stories, comments, journals, and other submissions posted on use Perl; are Copyright their respective owners.2012-01-25T02:15:19+00:00pudgepudge@perl.orgTechnologyhourly11970-01-01T00:00+00:00cogent's Journalhttp://use.perl.org/images/topics/useperl.gif
http://use.perl.org/~cogent/journal/
Gibson Recognition
http://use.perl.org/~cogent/journal/16621?from=rss
<p>
Whenever I read anything by William Gibson or Neal Stephenson, I feel somehow like the book was written for me to read at that precise moment in my life. Actually, that's been happening a lot lately, with many books I've been reading, like the <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0553560735/"> <i>Red Mars</i> </a>, <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0553572393/"> <i>Green Mars</i> </a>, <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0553573357/"> <i>Blue Mars</i> </a> trilogy by Kim Stanley Robinson, and slightly more recently both <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0060510862/"> <i>The Forever War</i> </a> and <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0441005667/"> <i>Forever Peace</i> </a> by Joe Haldeman. I suppose there's a pretty prosaic explanation for this.
</p><p>
I'm not sure exactly what the connection is, this time to <a href="http://www.amazon.com/exec/obidos/ASIN/0399149864/"> <i>Pattern Recognition</i> </a>, but I think that part of it is the illustration (which happens to be very useful at the moment) of a woman who is very, very interesting, but entirely unlike the woman who briefly, but quite utterly, replaced Stella in my heart.
</p>cogent2004-01-04T10:35:04+00:00journalEntr'acte
http://use.perl.org/~cogent/journal/14732?from=rss
<p>
It is entirely possible that, as of two minutes ago, I have seen Stella for the last time ever.
</p><p>
Schwern and I are on a plane to Vienna in seven hours.
</p>cogent2003-09-16T11:30:32+00:00journalProtests
http://use.perl.org/~cogent/journal/11142?from=rss
<blockquote><div><p>
At one intersection an Iranian man who expects to become a U.S. citizen soon
could hardly believe what he was seeing.
</p><p>
"What sickens me, you see these second, third, fourth-generation Americans
criticizing their own country that so many died trying to get to," said Josh
Bakhshi, 25.
</p><p>
"To see this kind of demonstration, and I disagree with this demonstration, the
fact that people are not getting shot is incredible.
</p><p>
"You do this in Pakistan, Iraq, Saudi Arabia, at best you would be shot, if not
your whole family," said Bakhshi, who said he had just passed his citizenship
test.
</p></div>
</blockquote><p> <cite>
<a href="http://www.bayarea.com/mld/cctimes/news/5442527.htm">Contra Costa Times:
SF cops arrest more than 1,000 in struggle for city's streets</a>
</cite> </p>cogent2003-03-21T02:51:45+00:00journalHeavy Water
http://use.perl.org/~cogent/journal/9449?from=rss
<p>
Yow! Am I <a href="http://www.sumeria.net/health/heavywtr.html">HEAVY</a> yet?
</p><p> Favorite quote: </p><blockquote><div><p>One of our associates, Bill Strauss of California
suggested the use of a homeopathic reagent derived from a radionic query process. We sent him the atomic frequency of Deuterium, taken from standard NMR charts
which he then had made up into a 2 dimensional geometric pattern designed to reverse the deuterium frequency
by 180 degrees.</p></div>
</blockquote><p>
My <a href="http://stellavision.net/">girlfriend</a>, who <b>calls</b> herself a chemist, says this is gibberish! What's wrong with taking the atomic frequency of Deuterium from NMR charts and making it into a two-dimensional geometric pattern? Huh?
</p>cogent2002-12-13T19:10:35+00:00journalutf8
http://use.perl.org/~cogent/journal/8633?from=rss
<p>
This is <code>make testdb</code> using <code> <b>Devel::DProf</b> </code> on <code> <b>JavaScript::Tokenizer</b> </code> to tokenize a largish bit of real-world JS code when regular expressions include such Unicodey things as <code>\p{Nd}</code> and <code>\x{000A}</code>:
</p><blockquote><div><p> <tt>01:20:18 [cogent@birthday] Parser>$ dprofpp<br>Total Elapsed Time = 167.9217 Seconds<br> User+System Time = 151.5851 Seconds<br>Exclusive Times<br>%Time ExclSec CumulS #Calls sec/call Csec/c Name<br> 88.6 134.3 263.93 32590 0.0041 0.0081 utf8::SWASHNEW<br> 7.75 11.74 150.49 22400 0.0005 0.0067 JavaScript::Token::try<br> 3.91 5.930 7.911 32590 0.0002 0.0002 utf8::SWASHGET<br> 3.01 4.562 155.29 1602 0.0028 0.0969 JavaScript::Tokenizer::pop<br> 0.40 0.609 0.235 32579 0.0000 0.0000 utf8::DESTROY<br> 0.31 0.469 0.231 20787 0.0000 0.0000 JavaScript::Token::__ANON__<br> 0.12 0.189 0.091 1600 0.0001 0.0001 JavaScript::Token::newlines<br> 0.11 0.170 0.114 4892 0.0000 0.0000 JavaScript::Token::length<br> 0.09 0.140 0.128 3258 0.0000 0.0000 JavaScript::Token::bool<br> 0.07 0.110 0.073 3200 0.0000 0.0000 JavaScript::Tokenizer::state<br> 0.07 0.110 0.072 3209 0.0000 0.0000 JavaScript::Token::BEGIN<br> 0.07 0.110 0.128 1600 0.0001 0.0001 JavaScript::Tokenizer::token_types<br> 0.07 0.100 0.062 3261 0.0000 0.0000 UNIVERSAL::isa<br> 0.05 0.080 0.025 4800 0.0000 0.0000 JavaScript::Token::lexeme<br> 0.05 0.080 0.062 1600 0.0000 0.0000 JavaScript::Token::line</tt></p></div> </blockquote><p>
And this is the same code, when the unicode is replaced with similar (though obviously not identical) entities such as <code>\d</code> and <code>\n</code>
</p><blockquote><div><p> <tt>02:14:27 [cogent@birthday] Parser>$ dprofpp<br>Total Elapsed Time = 3.985910 Seconds<br> User+System Time = 3.932676 Seconds<br>Exclusive Times<br>%Time ExclSec CumulS #Calls sec/call Csec/c Name<br> 111. 4.389 4.051 20230 0.0002 0.0002 JavaScript::Token::try<br> 31.5 1.239 5.505 1447 0.0009 0.0038 JavaScript::Tokenizer::pop<br> 12.1 0.479 0.198 21661 0.0000 0.0000 JavaScript::Token::__ANON__<br> 6.84 0.269 0.259 1445 0.0002 0.0002 JavaScript::Token::newlines<br> 4.55 0.179 0.136 1445 0.0001 0.0001 JavaScript::Tokenizer::token_types<br> 3.81 0.150 0.109 3181 0.0000 0.0000 UNIVERSAL::isa<br> 3.05 0.120 0.146 3178 0.0000 0.0000 JavaScript::Token::bool<br> 2.54 0.100 0.044 4335 0.0000 0.0000 JavaScript::Token::lexeme<br> 2.03 0.080 0.019 4658 0.0000 0.0000 JavaScript::Token::length<br> 1.53 0.060 0.041 1445 0.0000 0.0000 JavaScript::Tokenizer::line<br> 1.27 0.050 0.012 2890 0.0000 0.0000 JavaScript::Tokenizer::state<br> 1.27 0.050 0.031 1445 0.0000 0.0000 JavaScript::Token::line<br> 1.02 0.040 0.147 4 0.0100 0.0367 main::BEGIN<br> 0.76 0.030 -0.006 1445 0.0000 - JavaScript::Token::string<br> 0.76 0.030 0.029 8 0.0037 0.0037 JavaScript::Token::BEGIN</tt></p></div> </blockquote><p>
<a href="http://use.perl.org/~autrijus/">autrijus</a> says this is a well-known problem. <<i>sigh.</i>> Out comes Unicode support from <code> <b>JavaScript::Token::Regex</b> </code>.
</p>cogent2002-10-28T07:33:14+00:00journalMy first bug report.
http://use.perl.org/~cogent/journal/8401?from=rss
<p>
So, I posted my first <a href="http://rt.cpan.org/Ticket/Display.html?id=1675">bug report</a> to <a href="http://rt.cpan.org/">rt.cpan.org</a>. With a <a href="http://rt.cpan.org/Ticket/Attachment/3970/6574/yapp.patch">patch</a> and everything. Wow.
</p>cogent2002-10-16T09:20:59+00:00journalSouth Park cogent
http://use.perl.org/~cogent/journal/5569?from=rss
<p>
Oh, <a href="http://davidhand.com/images/cockmaster.png">why not</a>. <a href="http://use.perl.org/~chaoticset/journal/5564">Ev</a> <a href="http://use.perl.org/~cwest/journal/">ery</a> <a href="http://use.perl.org/~davorg/journal">body</a>'s doing <a href="http://southpark.gamesweb.com/flash/sp-studio.html">it</a>.
</p>cogent2002-06-11T04:45:39+00:00journalGD::SIRDS
http://use.perl.org/~cogent/journal/5218?from=rss
<p>
So, I just uploaded my <strong>very first</strong> Perl module: <a href="http://search.cpan.org/search?dist=GD-SIRDS">GD::SIRDS</a>
</p><p>
I'm pretty fuckin' jazzed.
</p><p>
So, like <a href="mailto:cogent@cpan.org">email me</a>! Tell me whether the module sucks, or rocks, or what. Even better: give me ideas for good source images and good source-image creation.
</p><p>
Or just play around with it and forget about it. Which is just fine with me, too.<nobr> <wbr></nobr>:-)
</p>cogent2002-05-25T22:54:32+00:00releasesp5p
http://use.perl.org/~cogent/journal/3891?from=rss
<p>
So, I was able to <tt>make test</tt> with bleadperl on Mac OS X with zero errors. This apparently surprised Jarkko, among others, since (I presume) nobody's been able to get DB_File to work. ('Twas super-easy. I installed the most recent version of <a href="http://www.sleepycat.com/">Berkeley DB</a>, and things Just Worked.)
</p><p>
Schwern told me to tell p5p, so I finally took the plunge and joined the mailing list. This has been the high point of my weekend.<nobr> <wbr></nobr>:-)
</p>cogent2002-04-01T06:56:15+00:00journalFun with Unix!
http://use.perl.org/~cogent/journal/3374?from=rss
<p>
<code>
host -l ru. | grep 'name server' | awk '{print $1}' | sort | uniq | wc -l
</code>
</p><p>
I'm gonna get arrested. The answer is <code>107164</code>, tho.
</p><p>
<code>
host -l gov. | grep -i 'sucks|porn'
</code>
</p><p>
Nothin'. Damn.
</p><p>
<code>
host -l mil.
</code>
</p><p>
Query refused. Damn again. And now I'm *really* gonna get arrested.
</p>cogent2002-03-08T06:15:03+00:00unix