(file) Return to index.html CVS log (file) (dir) Up to [RizwankCVS] / geekymedia_web / archives / 2004 / 04

   1 rizwank 1.1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   2             
   3             <html xmlns="http://www.w3.org/1999/xhtml">
   4             <head>
   5             <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
   6             
   7             <title>Rizwan Kassim's Public Log: April 2004 Archives</title>
   8             
   9             <link rel="stylesheet" href="../../styles-site.css" type="text/css" />
  10             <link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.geekymedia.com/index.rdf" />
  11             <link rel="start" href="http://www.geekymedia.com/" title="Home" />
  12             <link rel="prev" href="http://www.geekymedia.com/archives/2004/03/index.html" title="March 2004" />
  13             
  14             <link rel="next" href="http://www.geekymedia.com/archives/2004/05/index.html" title="May 2004" />
  15             
  16             
  17             <script language="javascript" type="text/javascript">
  18             function OpenComments (c) {
  19                 window.open(c,
  20                                 'comments',
  21                                 'width=480,height=480,scrollbars=yes,status=yes');
  22 rizwank 1.1 }
  23             
  24             function OpenTrackback (c) {
  25                 window.open(c,
  26                                 'trackback',
  27                                 'width=480,height=480,scrollbars=yes,status=yes');
  28             }
  29             </script>
  30             
  31             <script type="text/javascript" language="JavaScript" src="http://www.geekymedia.com/magic/card.js">
  32             <!--
  33             <rdf:RDF xmlns="http://web.resource.org/cc/"
  34                      xmlns:dc="http://purl.org/dc/elements/1.1/"
  35                      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  36             <Work rdf:about="http://www.geekymedia.com/">
  37             <dc:title>Rizwan Kassim&apos;s Public Log</dc:title>
  38             <dc:description>While I swore that I would NEVER make a blog due ot the live journal voyuer craziness, when I found out I could update a MT blog via my Treo, I had to set one up, if only to avoid torturing HeatherW with constant SMSs anytime I had a thought of any magnitude.</dc:description>
  39             <license rdf:resource="http://creativecommons.org/licenses/by-nd-nc/1.0/" />
  40             </Work>
  41             <License rdf:about="http://creativecommons.org/licenses/by-nd-nc/1.0/">
  42             <requires rdf:resource="http://web.resource.org/cc/Attribution" />
  43 rizwank 1.1 <requires rdf:resource="http://web.resource.org/cc/Notice" />
  44             <permits rdf:resource="http://web.resource.org/cc/Reproduction" />
  45             <permits rdf:resource="http://web.resource.org/cc/Distribution" />
  46             <prohibits rdf:resource="http://web.resource.org/cc/CommercialUse" />
  47             </License>
  48             </rdf:RDF>
  49             -->
  50             
  51             
  52             
  53             <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
  54             <script language="JavaScript" src="http://www.geekymedia.com/overlib.js"><!-- overLIB (c) Erik Bosrup --></script> 
  55             
  56             <script type="text/javascript" src="http://www.geekymedia.com/nicetitle.js"></script>
  57             
  58             
  59             
  60             
  61             
  62             
  63             
  64 rizwank 1.1 
  65             
  66             
  67             
  68             
  69             
  70             
  71             
  72             
  73             
  74             
  75             
  76             
  77             
  78             
  79             
  80             
  81             
  82              
  83             
  84             
  85 rizwank 1.1 </head>
  86             
  87             <body>	
  88             
  89             <div id="banner">
  90             <h1><a href="http://www.geekymedia.com/" accesskey="1">Rizwan Kassim's Public Log</a></h1>
  91             <span class="description">While I swore that I would NEVER make a blog due ot the live journal voyuer craziness, when I found out I could update a MT blog via my Treo, I had to set one up, if only to avoid torturing HeatherW with constant SMSs anytime I had a thought of any magnitude.</span>
  92             </div>
  93             
  94             <div id="container">
  95             
  96             <div class="blog">
  97             
  98             <div id="menu">
  99             <a href="http://www.geekymedia.com/archives/2004/03/index.html">&laquo; March 2004</a> |
 100             
 101             <a href="http://www.geekymedia.com/">Main</a>
 102             | <a href="http://www.geekymedia.com/archives/2004/05/index.html">May 2004 &raquo;</a>
 103             
 104             </div>
 105             
 106 rizwank 1.1 </div>
 107             
 108             <div class="blog">
 109             
 110             <!--
 111             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 112                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
 113                      xmlns:dc="http://purl.org/dc/elements/1.1/">
 114             <rdf:Description
 115                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000348"
 116                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/341"
 117                 dc:title="How do you know?"
 118                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000348"
 119                 dc:subject=""
 120                 dc:description="This entry WAS going to be about; well&amp;#8230; how do you know when you&amp;#8217;re falling in love&amp;#8230; what tells you that that person is special and not just run of the mill&amp;#8230; When is it too soon to feel those..."
 121                 dc:creator="Rizwank"
 122                 dc:date="2004-04-28T00:16:02-08:00" />
 123             </rdf:RDF>
 124             -->
 125             
 126             
 127 rizwank 1.1 <h2 class="date">April 28, 2004</h2>
 128             
 129             
 130             <div class="blogbody">
 131             <a name="000348"></a>
 132             <?php
 133             
 134             // record the referer
 135             if ($my_ip !== $remote_ip) {
 136                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (348, '$referer', '', $time)" );
 137             }
 138             
 139             // get the no. of times this entry has been read
 140             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=348' );
 141             $row = mysql_fetch_row( $rs );
 142             $hits = $row[0];
 143             
 144             ?>
 145             <h3 class="title">How do you know?</h3>
 146              
 147             <p>  <table align="left"><tr valign="bottom"><td>
 148 rizwank 1.1    <p style="font-size:16pt"><b>
 149                 T</b>
 150                </p>
 151               </td></tr></table>
 152              his entry <span class="caps">WAS</span> going to be about; well&#8230; how do you know when you&#8217;re falling in love&#8230; what tells you that that person is special and not just run of the mill&#8230; When is it too soon to feel those and how do you seperate sheer happiness with love&#8230; and sex. and all that.</p>
 153             
 154             <p>But it won&#8217;t be. It will be instead my insane ranting about the <a href="http://www.cs.ucla.edu/classes/spring04/cs131/hw/hw2.html" title="nasty scheme language">nasty scheme language</a> and the headaches its giving me. </p>
 155             
 156             <p>Actually it wont be that either. Just coding in brand new langauges that dont have <span class="caps">ANY</span> of the data structs that you understand can give you a headache. I&#8217;m insanely mad at this point, the project is already 3 days late (most people havent finished it yet), I havent even <span class="caps">GOTTEN</span> to the second half, the TA&#8217;s, while helpful, also speak in tounges&#8230; its about &#8216;hints&#8217; but if you don&#8217;t get the underlying reasons, all the hints in the world make no sense unless you randomly combine commands to see what ends up working&#8230; which is what I&#8217;ve been doing.</p>
 157             
 158             <p>My Networking project is pretty <span class="caps">QED</span> and I&#8217;ve gotten more than half of it done; I shipped it to my partner with a comprehensive psuedocode on what needs to be done next and how to do it&#8230; and of course; I haven&#8217;t heard from him. I could just finish it on my own (which was my plan for today), but I&#8217;m not really flooded with time. I&#8217;m just feeling things take over me, and while I&#8217;m far from behind, I want to get some of this crap <span class="caps">DONE</span>! (My langauges prof, the one with the insane projects (incl the Scheme one) has assigned another <a href="http://www.cs.ucla.edu/classes/spring04/cs131/hw/pr1.html" title="doozy ">doozy </a>&#8230; He teaches well but you can&#8217;t expect people trained in C++ their entire lives to take to alternative languages like a fish in water!</p>
 159             
 160             <p>I&#8217;d feel bad complaining publically, except that I usually don&#8217;t complain about my coding assignments; and I normally get them done before others. <span class="caps">EVERYONE</span> is having a massively difficult time with it, and the time commitment is &#8230; phenominal. When it finally clicks, it&#8217;ll be eas(ier) but, this one has clicked partially and im still stuck at stupid syntaxical errors &#8230; and since its a language that people don&#8217;t use that much, the regular resources aren&#8217;t available&#8230; plus we&#8217;ve got stupid corner cases that we ran into, with a function adding in an extra pair of () that have to be parsed (thats where I&#8217;m currently stuck), with no obvious reasons <span class="caps">WHY</span> it should work that way&#8230; (just like corner cases in C++ where you learn, with experience, &#8220;it just works that way&#8221;).</p>
 161             
 162             <p>::forces himself to breathe::</p>
 163             
 164             <p>Anyhow, things are good with Sarah. I guess I&#8217;ve been saying that a lot. We just like sitting and holding each other and staring into each other eyes and tickling and listening to each other&#8230; When we disagree, we do it politely and when one person is bothering the other, we can explain it without going batshit weird&#8230; Shes smart &#8230; dating her is making me a better student (because I want to set a good example) &#8230; I get to be a figure of maturity and offer advice instead of always asking for it&#8230; </p>
 165             
 166             <p>I don&#8217;t recall if I felt this way early on with Serena,  (ex-gf2)  or  (ex-gf1)  . I know I worry a <em>lot</em> less about whether I&#8217;m in it just for the sex, or just because someone likes me, or just because I&#8217;m lonely. This is a strange place to be. Each of those was special in their own way&#8230;</p>
 167             
 168             <p>I just finished a &#8220;JUMBO&#8221; Snickers bar&#8230; yeah I&#8217;m gonna have nightmares. </p>
 169 rizwank 1.1 
 170             <p>&#8212;- back to school.</p>
 171             
 172             <p>So I&#8217;m going frantic; and I know that I&#8217;m not going to tackle part 2 of this project; its a homework only and I simply can&#8217;t afford the delay (Grading Policy, # of days late -1 = <span class="caps">N, 2</span>^N pct off) and the vast amount of time I&#8217;d need to figure out part B (even harder than A) would quickly turn into a losing proposition. </p>
 173             
 174             <p>One random annoying thing, this class has four homeworks and two projects.<br />
 175             Effectively, each homework is 5% of total grade, each project is 10%.</p>
 176             
 177             <p>The two projects were supposed to be in python. I was happy for that. Its not totally similar to C++ but they are, at least, in the same Genus of languages, versus the vast strangeness that is Prolog, Scheme (lisp) and <span class="caps">ML &#8230; </span>Plus, we had to buy about $60 worth of books on Python, and Python is probably the most used of the above, after C++, so it&#8217;s useful in the long term too.</p>
 178             
 179             <p>Prof : So I realized that homework 3 was too hard, so its now Project 1.<br />
 180             (Why not just make it easier?)<br />
 181             Me : I thought both the projects were to be in python&#8230;<br />
 182             Prof : Yeah, they were. I changed it. </p>
 183             
 184             <p>Yes its his right and all. Its just a bummer.</p>
 185             
 186             <p>If I get too down I think of Dixie and her work load and I feel a bit better. Each to their own ability and stage in life though, High School <i>was</i> difficult then. Now, of course, it&#8217;d be pie. </p>
 187             
 188             <p>===</p>
 189             
 190 rizwank 1.1 <p>Edit, minor continued rant:</p>
 191             
 192             <p>Well first I went to wash my face and lost my glasses. Ten minutes burned finding them.</p>
 193             
 194             <p>TA emailed back my macro question&#8230; (with the project there have been many minor issues linked to one major one; half the time was spent finding out that they were linked, and the other half was trying either to fix the major issue or fix the sub-issues independently) &#8230; (I.e. over thinking it).</p>
 195             
 196             <blockquote>This is <em>very</em> close.
 197             &#8212;- A code snippet of mine
 198             
 199             <p>Looks at this example again:</p>
 200             
 201             <p>&gt; (apply somefunction 1 2 &#8216;(3 4 5))<br />
 202              is equivalent to<br />
 203             &gt; (somefuntcion 1 2 3 4 5)</p>
 204             
 205             I can&#8217;t say any more or I&#8217;ll give it away.</blockquote>
 206             
 207             <p>At this point, when you&#8217;ve seen evidence of <span class="caps">MANY</span> hours worth of work, would it be so wrong to just say, &#8216;heres what you have to do&#8217;&#8230; Especially with having gotten so close. I do have to say though, these TA&#8217;s rock, they answer emails at 1am in the morning (well sometimes) and hold plenty of extra office hours.</p>
 208             
 209             <p><hr></p>
 210             
 211 rizwank 1.1 <p>I just had a sudden vision of Marvin complaining about the diodes in his left arm. Gosh, I hope I don&#8217;t sound like that.</p>
 212             
 213             
 214             	
 215             
 216             
 217             
 218             <div class="posted">
 219             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000348" title="Permanent Link to this Post.">12:16 AM</a><?php
 220             if ($hits) { 
 221                print " | Read ";
 222                echo "$hits";
 223                print " time";
 224                if($hits != 1) echo 's';
 225             }
 226             ?>
 227             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=348" onclick="OpenComments(this.href); return false">Comments (0)</a>
 228             	
 229             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=348" onclick="OpenTrackback(this.href); return false">TrackBack</a>
 230             	
 231             </div>
 232 rizwank 1.1 
 233             </div>
 234             <?php
 235             
 236             // display the list of referers
 237             echo '<div class="sidetitle">Referrers</div>', "\n";
 238             echo '<div class="side">', "\n";
 239             
 240             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=348 GROUP BY referer ORDER BY count DESC, title';
 241             
 242             $rs = mysql_query( $sql );
 243             $n = 0;
 244             
 245             while( $row = mysql_fetch_assoc( $rs ) ) {
 246               $referer1 = $row['referer'];
 247               $title = $row['title'];
 248               $count = $row['count'];
 249               $search = $row['search'];
 250             
 251               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
 252                 $n++;
 253 rizwank 1.1     echo '<a href="', $referer1, '" target="_blank">';
 254                 echo $title . "</a> [" . $count . "]<br />\n";
 255               }
 256             }
 257             
 258             if (!($n)) {
 259                echo "No referrals yet<br />";
 260             }
 261             else {
 262             echo "<br />\n";
 263             echo 'referrers [referrals]<br />';
 264             }
 265             echo '</div>';
 266             
 267             echo "<div class='sidetitle'>Search Terms</div>\n";
 268             echo "<div class='side'>";
 269             
 270             $rs = mysql_query( $sql );
 271             $n = 0;
 272             
 273             while( $row = mysql_fetch_assoc( $rs ) ) {
 274 rizwank 1.1   $query = '';
 275             
 276               $referer1 = $row['referer'];
 277               $title = $row['title'];
 278               $count = $row['count'];
 279               $search = $row['search'];
 280             
 281               if ($search == 1) {
 282                 $n++;
 283                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
 284                 echo $query . ' [' . $count . ']' . "<br />\n";
 285               }
 286             }
 287             
 288             if (!($n)) { echo "No search terms yet<br />"; }
 289             else { echo "<br />search terms [hits]"; }
 290             echo "</div>";
 291             ?>
 292             
 293             
 294             
 295 rizwank 1.1 <!--
 296             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 297                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
 298                      xmlns:dc="http://purl.org/dc/elements/1.1/">
 299             <rdf:Description
 300                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000347"
 301                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/340"
 302                 dc:title="Not the greatest day"
 303                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000347"
 304                 dc:subject=""
 305                 dc:description="The evolution of a good day into a bad day. 1. Woke up on time, amazingly, for the recently announced 10am Office Hours with the TA. 2. Made it AT 10:00am sharp as defined in his email 3. Got a..."
 306                 dc:creator="Rizwank"
 307                 dc:date="2004-04-27T17:27:49-08:00" />
 308             </rdf:RDF>
 309             -->
 310             
 311             
 312             <h2 class="date">April 27, 2004</h2>
 313             
 314             
 315             <div class="blogbody">
 316 rizwank 1.1 <a name="000347"></a>
 317             <?php
 318             
 319             // record the referer
 320             if ($my_ip !== $remote_ip) {
 321                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (347, '$referer', '', $time)" );
 322             }
 323             
 324             // get the no. of times this entry has been read
 325             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=347' );
 326             $row = mysql_fetch_row( $rs );
 327             $hits = $row[0];
 328             
 329             ?>
 330             <h3 class="title">Not the greatest day</h3>
 331              
 332             <p>  <table align="left"><tr valign="bottom"><td>
 333                <p style="font-size:16pt"><b>
 334                 T</b>
 335                </p>
 336               </td></tr></table>
 337 rizwank 1.1  he evolution of a good day into a bad day.</p>
 338             
 339             <p>1. Woke up on time, amazingly, for the recently announced 10am Office Hours with the <span class="caps">TA.</span><br />
 340             2. Made it <span class="caps">AT 10</span>:00am sharp as defined in his email<br />
 341             3. Got a lot of insight into the confusing and already due project.<br />
 342             4. Did some work on it.<br />
 343             4a. Found a 200gig hard drive online for only $99.<br />
 344             5. Visited Sarah on campus and shared lemonade.<br />
 345             6. Walked to Best Buy, while chatting idly with my mom and helping her with her new remote office setup.</p>
 346             
 347             <p>And then it started.</p>
 348             
 349             <p>7. Evil Best Buy tech&#8217;s refused to price match Comp <span class="caps">USA</span> because I didnt have a printed ad, and they didn&#8217;t have replacement headphones for my poor damaged pair in stock.<br />
 350             8. Got home, the room was beyond hot and just lousy feeling<br />
 351             9. Stripped into my underwear and plugged in my iPod to find out that it had crashed and was stuck in an infinite boot cycle.<br />
 352             10. Spent an hour trying to fix pod without formatting it.<br />
 353             11. Mom called with issues on her computer, tack on another hour.<br />
 354             12. Sarah calls during, her shoes self-destructed on campus; and with the super hot day, she asked where on campus she could get shoes. I volunteered to get her (in two hours, post her classes).<br />
 355             13. Finished work with Mom, went back to the self-testing iPod which feels like its going to over-heat.<br />
 356             14. Start to take a nap to calm down when my roommate shows up, breaking my near rest cycle (and forcing me to put on some more clothing)<br />
 357             15. Pick up Sarah after ten minutes of hunting for her on campus and almost running down plenty of people.<br />
 358 rizwank 1.1 16. Bring Sarah to her dorm and try to plan a fun day for Wednesday (since I&#8217;m going to have to cancel our plans today, homework!) and find out that she&#8217;s busy all day.<br />
 359             17. Park illegally to drop her off and come in so I can get some free dorm food.<br />
 360             18. Show up in her room with her roommate, who&#8217;s never really seemed to like me. Offer to help her unjam her printer in an act of good will and instead make things worse (she neglected to show me the <i>other</i> part that was jammed.<br />
 361             19. While Sarah washes her feet, I attempt to apologize to roommate with a total lack of success; I&#8217;m permanently in her shit list now.<br />
 362             20. Feel bad about making printer jamming worse.<br />
 363             21. After posting first draft, realizing that blog posting is now broken. Damn.</p>
 364             
 365             <p>Yeah, things could be a <span class="caps">LOT</span> worse; I know. I&#8217;ve just got a massive headache, work to do; movies that I planned to watch cancelled and an apartment thats hot as hell. </p>
 366             
 367             <p>On the upside, I&#8217;ve been finding myself a lot more focused towards school, and instead of rationalizing why I should have still watched &#8220;Fish called Wanda&#8221; and the Polish movie in Melnitz today; I reasoned that I <b>have</b> work to do and work &gt; movies. </p>
 368             
 369             <p>Have I updated recently? I guess not&#8230; things are good. Sarah and me are splendid and this feels great. School is doing well and parents seem alright. They met girl, they liked.</p>
 370             
 371             <p>More later.</p>
 372             
 373             
 374             	
 375             
 376             
 377             
 378             <div class="posted">
 379 rizwank 1.1 	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000347" title="Permanent Link to this Post.">05:27 PM</a><?php
 380             if ($hits) { 
 381                print " | Read ";
 382                echo "$hits";
 383                print " time";
 384                if($hits != 1) echo 's';
 385             }
 386             ?>
 387             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=347" onclick="OpenComments(this.href); return false">Comments (0)</a>
 388             	
 389             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=347" onclick="OpenTrackback(this.href); return false">TrackBack</a>
 390             	
 391             </div>
 392             
 393             </div>
 394             <?php
 395             
 396             // display the list of referers
 397             echo '<div class="sidetitle">Referrers</div>', "\n";
 398             echo '<div class="side">', "\n";
 399             
 400 rizwank 1.1 $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=347 GROUP BY referer ORDER BY count DESC, title';
 401             
 402             $rs = mysql_query( $sql );
 403             $n = 0;
 404             
 405             while( $row = mysql_fetch_assoc( $rs ) ) {
 406               $referer1 = $row['referer'];
 407               $title = $row['title'];
 408               $count = $row['count'];
 409               $search = $row['search'];
 410             
 411               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
 412                 $n++;
 413                 echo '<a href="', $referer1, '" target="_blank">';
 414                 echo $title . "</a> [" . $count . "]<br />\n";
 415               }
 416             }
 417             
 418             if (!($n)) {
 419                echo "No referrals yet<br />";
 420             }
 421 rizwank 1.1 else {
 422             echo "<br />\n";
 423             echo 'referrers [referrals]<br />';
 424             }
 425             echo '</div>';
 426             
 427             echo "<div class='sidetitle'>Search Terms</div>\n";
 428             echo "<div class='side'>";
 429             
 430             $rs = mysql_query( $sql );
 431             $n = 0;
 432             
 433             while( $row = mysql_fetch_assoc( $rs ) ) {
 434               $query = '';
 435             
 436               $referer1 = $row['referer'];
 437               $title = $row['title'];
 438               $count = $row['count'];
 439               $search = $row['search'];
 440             
 441               if ($search == 1) {
 442 rizwank 1.1     $n++;
 443                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
 444                 echo $query . ' [' . $count . ']' . "<br />\n";
 445               }
 446             }
 447             
 448             if (!($n)) { echo "No search terms yet<br />"; }
 449             else { echo "<br />search terms [hits]"; }
 450             echo "</div>";
 451             ?>
 452             
 453             
 454             
 455             <!--
 456             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 457                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
 458                      xmlns:dc="http://purl.org/dc/elements/1.1/">
 459             <rdf:Description
 460                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000346"
 461                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/339"
 462                 dc:title="More Linkage"
 463 rizwank 1.1     dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000346"
 464                 dc:subject="Home"
 465                 dc:description="wiki.theory.org - BASH script to run bittorrent as a daemon What I&amp;#8217;m using on UCLA and Lifegonewrong&amp;#8217;s servers to download some fun :) Hollywood&apos;s new lesson for campus file swappers&quot;&gt;Hollywood&amp;#8217;s new lesson for campus file swappers Hollywood is poised to..."
 466                 dc:creator="Rizwank"
 467                 dc:date="2004-04-23T21:55:27-08:00" />
 468             </rdf:RDF>
 469             -->
 470             
 471             
 472             <h2 class="date">April 23, 2004</h2>
 473             
 474             
 475             <div class="blogbody">
 476             <a name="000346"></a>
 477             <?php
 478             
 479             // record the referer
 480             if ($my_ip !== $remote_ip) {
 481                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (346, '$referer', '', $time)" );
 482             }
 483             
 484 rizwank 1.1 // get the no. of times this entry has been read
 485             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=346' );
 486             $row = mysql_fetch_row( $rs );
 487             $hits = $row[0];
 488             
 489             ?>
 490             <h3 class="title">More Linkage</h3>
 491              
 492             <p><a title="wiki.theory.org - BASH script to run bittorrent as a daemon" href="http://wiki.theory.org/index.php/BASH%20script%20to%20run%20bittorrent%20as%20a%20daemon?PHPSESSID=a09334c7086086fc67eed37469d5bca3">  <table align="left"><tr valign="bottom"><td>
 493                <p style="font-size:16pt"><b>
 494                 w</b>
 495                </p>
 496               </td></tr></table>
 497              iki.theory.org - <span class="caps">BASH</span> script to run bittorrent as a daemon</a></p>
 498             
 499             <p>What I&#8217;m using on <span class="caps">UCLA</span> and Lifegonewrong&#8217;s servers to download some fun :)</p>
 500             
 501             <p><a href="http://news.com.com/2100-1027_3-5194341.html" title="<b>Hollywood's new lesson for campus file swappers</b>"><b>Hollywood&#8217;s new lesson for campus file swappers</b></a></p>
 502             
 503             <p>Hollywood is poised to up the ante in its war against file swappers, with new technology that could make it easier to remove suspected pirates from campus networks, <span class="caps">CNET </span>News.com has learned. </p>
 504             
 505 rizwank 1.1 <p>Anti piracy about to be installed on <span class="caps">UCLA</span> resnet.</p>
 506             
 507             <p><a href="http://cygwin.com/cygwin-ug-net/setup-net.html" title="Cygwin ">Cygwin </a>&#8212;- setup a unix enviroment on your pc!</p>
 508             
 509             
 510             	
 511             
 512             
 513             
 514             <div class="posted">
 515             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000346" title="Permanent Link to this Post.">09:55 PM</a><?php
 516             if ($hits) { 
 517                print " | Read ";
 518                echo "$hits";
 519                print " time";
 520                if($hits != 1) echo 's';
 521             }
 522             ?>
 523             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=346" onclick="OpenComments(this.href); return false">Comments (0)</a>
 524             	
 525             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=346" onclick="OpenTrackback(this.href); return false">TrackBack</a>
 526 rizwank 1.1 	
 527             </div>
 528             
 529             </div>
 530             <?php
 531             
 532             // display the list of referers
 533             echo '<div class="sidetitle">Referrers</div>', "\n";
 534             echo '<div class="side">', "\n";
 535             
 536             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=346 GROUP BY referer ORDER BY count DESC, title';
 537             
 538             $rs = mysql_query( $sql );
 539             $n = 0;
 540             
 541             while( $row = mysql_fetch_assoc( $rs ) ) {
 542               $referer1 = $row['referer'];
 543               $title = $row['title'];
 544               $count = $row['count'];
 545               $search = $row['search'];
 546             
 547 rizwank 1.1   if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
 548                 $n++;
 549                 echo '<a href="', $referer1, '" target="_blank">';
 550                 echo $title . "</a> [" . $count . "]<br />\n";
 551               }
 552             }
 553             
 554             if (!($n)) {
 555                echo "No referrals yet<br />";
 556             }
 557             else {
 558             echo "<br />\n";
 559             echo 'referrers [referrals]<br />';
 560             }
 561             echo '</div>';
 562             
 563             echo "<div class='sidetitle'>Search Terms</div>\n";
 564             echo "<div class='side'>";
 565             
 566             $rs = mysql_query( $sql );
 567             $n = 0;
 568 rizwank 1.1 
 569             while( $row = mysql_fetch_assoc( $rs ) ) {
 570               $query = '';
 571             
 572               $referer1 = $row['referer'];
 573               $title = $row['title'];
 574               $count = $row['count'];
 575               $search = $row['search'];
 576             
 577               if ($search == 1) {
 578                 $n++;
 579                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
 580                 echo $query . ' [' . $count . ']' . "<br />\n";
 581               }
 582             }
 583             
 584             if (!($n)) { echo "No search terms yet<br />"; }
 585             else { echo "<br />search terms [hits]"; }
 586             echo "</div>";
 587             ?>
 588             
 589 rizwank 1.1 
 590             
 591             <!--
 592             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 593                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
 594                      xmlns:dc="http://purl.org/dc/elements/1.1/">
 595             <rdf:Description
 596                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000345"
 597                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/338"
 598                 dc:title="Discussion"
 599                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000345"
 600                 dc:subject=""
 601                 dc:description="UCLA has discussions for its classes&amp;#8230; 4 hour classes (2&amp;times;2 hr classes) have a 2hr discussion, 3 hr classes (3&amp;times;1hr) have a 1 hr discussion; I&amp;#8217;ve normally abstained. Its a way to interact with the TAs, which, often enough, is..."
 602                 dc:creator="Rizwank"
 603                 dc:date="2004-04-23T17:35:00-08:00" />
 604             </rdf:RDF>
 605             -->
 606             
 607             
 608             
 609             
 610 rizwank 1.1 <div class="blogbody">
 611             <a name="000345"></a>
 612             <?php
 613             
 614             // record the referer
 615             if ($my_ip !== $remote_ip) {
 616                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (345, '$referer', '', $time)" );
 617             }
 618             
 619             // get the no. of times this entry has been read
 620             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=345' );
 621             $row = mysql_fetch_row( $rs );
 622             $hits = $row[0];
 623             
 624             ?>
 625             <h3 class="title">Discussion</h3>
 626              
 627             <p><span class="caps">  <table align="left"><tr valign="bottom"><td>
 628                <p style="font-size:16pt"><b>
 629                 U</b>
 630                </p>
 631 rizwank 1.1   </td></tr></table>
 632              CLA</span> has discussions for its classes&#8230; 4 hour classes (2&times;2 hr classes) have a 2hr discussion, 3 hr classes (3&times;1hr) have a 1 hr discussion; I&#8217;ve normally abstained. </p>
 633             
 634             <p>Its a way to interact with the TAs, which, often enough, is an utter waste of time. They don&#8217;t speak English, they&#8217;ve got better things to do, they haven&#8217;t prepared, etc. (Now knowing a grad student well, I sympathize a lot more) &#8212;- Sometimes they&#8217;d be quizzes or attendance, but rarely in upper-div engineering courses; only math and english classes waste time with that. </p>
 635             
 636             <p>Today was a good day. I went to discussion. Yeah, I played games on my Treo for most of it. But the TA&#8217;s for these classes spoke (decent) English, and handed out hints and tricks for the projects as if they were candy! Don&#8217;t get me wrong, I wanted to learn socket programming on my own, but being given a headstart saved me at least 10 hrs (versus the 2hrs invested in attending the discussion.) Normally I&#8217;d expect that they&#8217;d post the handouts on the websites, but experience has shown that that usually doesn&#8217;t happen&#8230;</p>
 637             
 638             <p>Anyhow, I have the socket programming guide in front of me :)</p>
 639             
 640             
 641             	
 642             
 643             
 644             
 645             <div class="posted">
 646             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000345" title="Permanent Link to this Post.">05:35 PM</a><?php
 647             if ($hits) { 
 648                print " | Read ";
 649                echo "$hits";
 650                print " time";
 651                if($hits != 1) echo 's';
 652 rizwank 1.1 }
 653             ?>
 654             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=345" onclick="OpenComments(this.href); return false">Comments (0)</a>
 655             	
 656             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=345" onclick="OpenTrackback(this.href); return false">TrackBack</a>
 657             	
 658             </div>
 659             
 660             </div>
 661             <?php
 662             
 663             // display the list of referers
 664             echo '<div class="sidetitle">Referrers</div>', "\n";
 665             echo '<div class="side">', "\n";
 666             
 667             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=345 GROUP BY referer ORDER BY count DESC, title';
 668             
 669             $rs = mysql_query( $sql );
 670             $n = 0;
 671             
 672             while( $row = mysql_fetch_assoc( $rs ) ) {
 673 rizwank 1.1   $referer1 = $row['referer'];
 674               $title = $row['title'];
 675               $count = $row['count'];
 676               $search = $row['search'];
 677             
 678               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
 679                 $n++;
 680                 echo '<a href="', $referer1, '" target="_blank">';
 681                 echo $title . "</a> [" . $count . "]<br />\n";
 682               }
 683             }
 684             
 685             if (!($n)) {
 686                echo "No referrals yet<br />";
 687             }
 688             else {
 689             echo "<br />\n";
 690             echo 'referrers [referrals]<br />';
 691             }
 692             echo '</div>';
 693             
 694 rizwank 1.1 echo "<div class='sidetitle'>Search Terms</div>\n";
 695             echo "<div class='side'>";
 696             
 697             $rs = mysql_query( $sql );
 698             $n = 0;
 699             
 700             while( $row = mysql_fetch_assoc( $rs ) ) {
 701               $query = '';
 702             
 703               $referer1 = $row['referer'];
 704               $title = $row['title'];
 705               $count = $row['count'];
 706               $search = $row['search'];
 707             
 708               if ($search == 1) {
 709                 $n++;
 710                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
 711                 echo $query . ' [' . $count . ']' . "<br />\n";
 712               }
 713             }
 714             
 715 rizwank 1.1 if (!($n)) { echo "No search terms yet<br />"; }
 716             else { echo "<br />search terms [hits]"; }
 717             echo "</div>";
 718             ?>
 719             
 720             
 721             
 722             <!--
 723             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 724                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
 725                      xmlns:dc="http://purl.org/dc/elements/1.1/">
 726             <rdf:Description
 727                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000344"
 728                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/337"
 729                 dc:title="catchup"
 730                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000344"
 731                 dc:subject=""
 732                 dc:description="Quick catchup, I&amp;#8217;m back in contact with Lora, which is nice&amp;#8230; Shes alive and seemingly doing well. I was feeling sick on Thursday until Sarah dragged me out to the outdoor-ness that is Farmers market&amp;#8230; sat outside for hours with..."
 733                 dc:creator="Rizwank"
 734                 dc:date="2004-04-23T14:49:13-08:00" />
 735             </rdf:RDF>
 736 rizwank 1.1 -->
 737             
 738             
 739             
 740             
 741             <div class="blogbody">
 742             <a name="000344"></a>
 743             <?php
 744             
 745             // record the referer
 746             if ($my_ip !== $remote_ip) {
 747                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (344, '$referer', '', $time)" );
 748             }
 749             
 750             // get the no. of times this entry has been read
 751             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=344' );
 752             $row = mysql_fetch_row( $rs );
 753             $hits = $row[0];
 754             
 755             ?>
 756             <h3 class="title">catchup</h3>
 757 rizwank 1.1  
 758             <p>  <table align="left"><tr valign="bottom"><td>
 759                <p style="font-size:16pt"><b>
 760                 Q</b>
 761                </p>
 762               </td></tr></table>
 763              uick catchup, I&#8217;m back in contact with Lora, which is nice&#8230; Shes alive and seemingly doing well.</p>
 764             
 765             <p>I was feeling sick on Thursday until Sarah dragged me out to the outdoor-ness that is Farmers market&#8230; sat outside for hours with an LA times and felt significantly better &#8230; home (alone, Sung is out) and finished my <span class="caps">CS 143</span> project; then finally realized that I wasn&#8217;t going to get anymore work done (I had spent two hours customizing my <span class="caps">BASH</span> shell on the ugrad.seas.ucla.edu server and funnelling Bittorrent files through it)&#8230; lots of fun btw&#8230; I&#8217;m going to run bash at home more with cygwin &#8230; point being I had west wings and scrubs to catch up with, so I did.</p>
 766             
 767             <p>Today I slept past my first discussion (no surprise, I haven&#8217;t attended one yet this quarter), but managed to make it to the second one&#8230; TA helped me massively with the project and that, plus some really well made to do lists, taking my stimulant meds again after a two day drug holiday and a sense of accomplishment led to me having a very good day today. So thats where I&#8217;m at.</p>
 768             
 769             <p>I&#8217;d like to head over to <a href="http://www.kingscomicsandcards.com/tournaments" title="king's comics ">king&#8217;s comics </a>and play some magic.. my cars making weird sounds though, I&#8217;m not hip to the latest changes in the metagame&#8230; I&#8217;m not sure if I&#8217;m going to play at regionals or not.. It&#8217;d b e fun, but I could use the cash from working it, plus, everyones going to be playing Ravager! </p>
 770             
 771             <p>I understand Dixie taking a block off of magic now, with limited time, the time that used to be spent reading brainburst, buying cards, sorting cards, planning decks for FNMs, etc seems kinda wasted. If I wasn&#8217;t dating someone, it might be different&#8230; the lack of good stores within close reach has a <span class="caps">LOT</span> to do with it actually.</p>
 772             
 773             <p>Maybe tomorrow I&#8217;ll head out for a game&#8230; we&#8217;ll see. I&#8217;ve got lots of work to do&#8230; If I stopped watching repeat scrubs and crap like that I&#8217;d have SO much more time for fun things + school :)</p>
 774             
 775             <p>so yeah, for once, school isn&#8217;t totally decomposing on me&#8230; I have had some shoddy homeworks turned in, but nothing like past problems.<br />
 776             I love my apartment building , I&#8217;ll do just about anyhting to stay here until I&#8217;m done with school.<br />
 777             rk</p>
 778 rizwank 1.1 
 779             
 780             	
 781             
 782             
 783             
 784             <div class="posted">
 785             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000344" title="Permanent Link to this Post.">02:49 PM</a><?php
 786             if ($hits) { 
 787                print " | Read ";
 788                echo "$hits";
 789                print " time";
 790                if($hits != 1) echo 's';
 791             }
 792             ?>
 793             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=344" onclick="OpenComments(this.href); return false">Comments (0)</a>
 794             	
 795             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=344" onclick="OpenTrackback(this.href); return false">TrackBack</a>
 796             	
 797             </div>
 798             
 799 rizwank 1.1 </div>
 800             <?php
 801             
 802             // display the list of referers
 803             echo '<div class="sidetitle">Referrers</div>', "\n";
 804             echo '<div class="side">', "\n";
 805             
 806             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=344 GROUP BY referer ORDER BY count DESC, title';
 807             
 808             $rs = mysql_query( $sql );
 809             $n = 0;
 810             
 811             while( $row = mysql_fetch_assoc( $rs ) ) {
 812               $referer1 = $row['referer'];
 813               $title = $row['title'];
 814               $count = $row['count'];
 815               $search = $row['search'];
 816             
 817               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
 818                 $n++;
 819                 echo '<a href="', $referer1, '" target="_blank">';
 820 rizwank 1.1     echo $title . "</a> [" . $count . "]<br />\n";
 821               }
 822             }
 823             
 824             if (!($n)) {
 825                echo "No referrals yet<br />";
 826             }
 827             else {
 828             echo "<br />\n";
 829             echo 'referrers [referrals]<br />';
 830             }
 831             echo '</div>';
 832             
 833             echo "<div class='sidetitle'>Search Terms</div>\n";
 834             echo "<div class='side'>";
 835             
 836             $rs = mysql_query( $sql );
 837             $n = 0;
 838             
 839             while( $row = mysql_fetch_assoc( $rs ) ) {
 840               $query = '';
 841 rizwank 1.1 
 842               $referer1 = $row['referer'];
 843               $title = $row['title'];
 844               $count = $row['count'];
 845               $search = $row['search'];
 846             
 847               if ($search == 1) {
 848                 $n++;
 849                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
 850                 echo $query . ' [' . $count . ']' . "<br />\n";
 851               }
 852             }
 853             
 854             if (!($n)) { echo "No search terms yet<br />"; }
 855             else { echo "<br />search terms [hits]"; }
 856             echo "</div>";
 857             ?>
 858             
 859             
 860             
 861             <!--
 862 rizwank 1.1 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 863                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
 864                      xmlns:dc="http://purl.org/dc/elements/1.1/">
 865             <rdf:Description
 866                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000343"
 867                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/336"
 868                 dc:title="The Curse of Good Television"
 869                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000343"
 870                 dc:subject="Home"
 871                 dc:description="Only the Good Die Young - Was Freaks and Geeks too real for network television? By Alex&amp;nbsp;Abramovich..."
 872                 dc:creator="Rizwank"
 873                 dc:date="2004-04-20T13:59:57-08:00" />
 874             </rdf:RDF>
 875             -->
 876             
 877             
 878             <h2 class="date">April 20, 2004</h2>
 879             
 880             
 881             <div class="blogbody">
 882             <a name="000343"></a>
 883 rizwank 1.1 <?php
 884             
 885             // record the referer
 886             if ($my_ip !== $remote_ip) {
 887                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (343, '$referer', '', $time)" );
 888             }
 889             
 890             // get the no. of times this entry has been read
 891             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=343' );
 892             $row = mysql_fetch_row( $rs );
 893             $hits = $row[0];
 894             
 895             ?>
 896             <h3 class="title">The Curse of Good Television</h3>
 897              
 898             <p><a title="Only the Good Die Young - Was Freaks and Geeks too real for network television? By Alex Abramovich" href="http://slate.msn.com/id/2099078/">  <table align="left"><tr valign="bottom"><td>
 899                <p style="font-size:16pt"><b>
 900                 O</b>
 901                </p>
 902               </td></tr></table>
 903              nly the Good Die Young - Was Freaks and Geeks too real for network television? By Alex&nbsp;Abramovich</a></p>
 904 rizwank 1.1 
 905             
 906             	
 907             
 908             
 909             
 910             <div class="posted">
 911             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000343" title="Permanent Link to this Post.">01:59 PM</a><?php
 912             if ($hits) { 
 913                print " | Read ";
 914                echo "$hits";
 915                print " time";
 916                if($hits != 1) echo 's';
 917             }
 918             ?>
 919             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=343" onclick="OpenComments(this.href); return false">Comments (0)</a>
 920             	
 921             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=343" onclick="OpenTrackback(this.href); return false">TrackBack</a>
 922             	
 923             </div>
 924             
 925 rizwank 1.1 </div>
 926             <?php
 927             
 928             // display the list of referers
 929             echo '<div class="sidetitle">Referrers</div>', "\n";
 930             echo '<div class="side">', "\n";
 931             
 932             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=343 GROUP BY referer ORDER BY count DESC, title';
 933             
 934             $rs = mysql_query( $sql );
 935             $n = 0;
 936             
 937             while( $row = mysql_fetch_assoc( $rs ) ) {
 938               $referer1 = $row['referer'];
 939               $title = $row['title'];
 940               $count = $row['count'];
 941               $search = $row['search'];
 942             
 943               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
 944                 $n++;
 945                 echo '<a href="', $referer1, '" target="_blank">';
 946 rizwank 1.1     echo $title . "</a> [" . $count . "]<br />\n";
 947               }
 948             }
 949             
 950             if (!($n)) {
 951                echo "No referrals yet<br />";
 952             }
 953             else {
 954             echo "<br />\n";
 955             echo 'referrers [referrals]<br />';
 956             }
 957             echo '</div>';
 958             
 959             echo "<div class='sidetitle'>Search Terms</div>\n";
 960             echo "<div class='side'>";
 961             
 962             $rs = mysql_query( $sql );
 963             $n = 0;
 964             
 965             while( $row = mysql_fetch_assoc( $rs ) ) {
 966               $query = '';
 967 rizwank 1.1 
 968               $referer1 = $row['referer'];
 969               $title = $row['title'];
 970               $count = $row['count'];
 971               $search = $row['search'];
 972             
 973               if ($search == 1) {
 974                 $n++;
 975                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
 976                 echo $query . ' [' . $count . ']' . "<br />\n";
 977               }
 978             }
 979             
 980             if (!($n)) { echo "No search terms yet<br />"; }
 981             else { echo "<br />search terms [hits]"; }
 982             echo "</div>";
 983             ?>
 984             
 985             
 986             
 987             
 988 rizwank 1.1 
 989             
 990             
 991             <div class="blogbody">
 992             <a name="000342"></a>
 993             <?php
 994             
 995             // record the referer
 996             if ($my_ip !== $remote_ip) {
 997                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (342, '$referer', '', $time)" );
 998             }
 999             
1000             // get the no. of times this entry has been read
1001             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=342' );
1002             $row = mysql_fetch_row( $rs );
1003             $hits = $row[0];
1004             
1005             ?>
1006             <h3 class="title">Paranoia LARP</h3>
1007              
1008             <p><img src="http://www.geekymedia.com/blogcgi/../archives/TreoCam006_19Apr04.jpg"><br>  <table align="left"><tr valign="bottom"><td>
1009 rizwank 1.1    <p style="font-size:16pt"><b>
1010                 S</b>
1011                </p>
1012               </td></tr></table>
1013              o just left Enigmas LARP (Live Action Roleplaying) game Paranoia... Its hard to descbribe with blogging from my palm but it was fun- but poorly concieved. Its similar to the Mafia or Wolfgame game types in which you have to unmask moles in the game- but in this case, everyone can accuse anyone and there are no real moles - winning consists of stupid circular arguments and arguing the loudest.</p>
1014             
1015             <p>Anyhow it was interesting but disappointing. Dixie suggested I relax - Id like to try it again with a better concieved game.</p>
1016             
1017             
1018             	
1019             
1020             
1021             
1022             <div class="posted">
1023             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000342" title="Permanent Link to this Post.">01:09 AM</a><?php
1024             if ($hits) { 
1025                print " | Read ";
1026                echo "$hits";
1027                print " time";
1028                if($hits != 1) echo 's';
1029             }
1030 rizwank 1.1 ?>
1031             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=342" onclick="OpenComments(this.href); return false">Comments (1)</a>
1032             	
1033             	
1034             </div>
1035             
1036             </div>
1037             <?php
1038             
1039             // display the list of referers
1040             echo '<div class="sidetitle">Referrers</div>', "\n";
1041             echo '<div class="side">', "\n";
1042             
1043             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=342 GROUP BY referer ORDER BY count DESC, title';
1044             
1045             $rs = mysql_query( $sql );
1046             $n = 0;
1047             
1048             while( $row = mysql_fetch_assoc( $rs ) ) {
1049               $referer1 = $row['referer'];
1050               $title = $row['title'];
1051 rizwank 1.1   $count = $row['count'];
1052               $search = $row['search'];
1053             
1054               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
1055                 $n++;
1056                 echo '<a href="', $referer1, '" target="_blank">';
1057                 echo $title . "</a> [" . $count . "]<br />\n";
1058               }
1059             }
1060             
1061             if (!($n)) {
1062                echo "No referrals yet<br />";
1063             }
1064             else {
1065             echo "<br />\n";
1066             echo 'referrers [referrals]<br />';
1067             }
1068             echo '</div>';
1069             
1070             echo "<div class='sidetitle'>Search Terms</div>\n";
1071             echo "<div class='side'>";
1072 rizwank 1.1 
1073             $rs = mysql_query( $sql );
1074             $n = 0;
1075             
1076             while( $row = mysql_fetch_assoc( $rs ) ) {
1077               $query = '';
1078             
1079               $referer1 = $row['referer'];
1080               $title = $row['title'];
1081               $count = $row['count'];
1082               $search = $row['search'];
1083             
1084               if ($search == 1) {
1085                 $n++;
1086                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
1087                 echo $query . ' [' . $count . ']' . "<br />\n";
1088               }
1089             }
1090             
1091             if (!($n)) { echo "No search terms yet<br />"; }
1092             else { echo "<br />search terms [hits]"; }
1093 rizwank 1.1 echo "</div>";
1094             ?>
1095             
1096             
1097             
1098             
1099             
1100             
1101             
1102             <div class="blogbody">
1103             <a name="000341"></a>
1104             <?php
1105             
1106             // record the referer
1107             if ($my_ip !== $remote_ip) {
1108                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (341, '$referer', '', $time)" );
1109             }
1110             
1111             // get the no. of times this entry has been read
1112             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=341' );
1113             $row = mysql_fetch_row( $rs );
1114 rizwank 1.1 $hits = $row[0];
1115             
1116             ?>
1117             <h3 class="title">Poker baby</h3>
1118              
1119             <p><img src="http://www.geekymedia.com/blogcgi/../archives/TreoCam007_20Apr04.jpg"><br>  <table align="left"><tr valign="bottom"><td>
1120                <p style="font-size:16pt"><b>
1121                 I</b>
1122                </p>
1123               </td></tr></table>
1124              'm incredibly happy today- I went to Hedrick to visit gal and while walking through her study hall I came across a poker game... Amazing karma - probably since I visited to help her with her homework- I got some insane draws. Pair kings- flush draws ... I was very happy. With a buy in of $10 I left with $36 ... I was insanely lucky against much better players. I told then that they get their money back next time- I was hoping that I could get in with Dixies friends at Caltech but he's not responding to emails. anyhow- im happy.</p>
1125             
1126             
1127             	
1128             
1129             
1130             
1131             <div class="posted">
1132             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000341" title="Permanent Link to this Post.">12:59 AM</a><?php
1133             if ($hits) { 
1134                print " | Read ";
1135 rizwank 1.1    echo "$hits";
1136                print " time";
1137                if($hits != 1) echo 's';
1138             }
1139             ?>
1140             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=341" onclick="OpenComments(this.href); return false">Comments (0)</a>
1141             	
1142             	
1143             </div>
1144             
1145             </div>
1146             <?php
1147             
1148             // display the list of referers
1149             echo '<div class="sidetitle">Referrers</div>', "\n";
1150             echo '<div class="side">', "\n";
1151             
1152             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=341 GROUP BY referer ORDER BY count DESC, title';
1153             
1154             $rs = mysql_query( $sql );
1155             $n = 0;
1156 rizwank 1.1 
1157             while( $row = mysql_fetch_assoc( $rs ) ) {
1158               $referer1 = $row['referer'];
1159               $title = $row['title'];
1160               $count = $row['count'];
1161               $search = $row['search'];
1162             
1163               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
1164                 $n++;
1165                 echo '<a href="', $referer1, '" target="_blank">';
1166                 echo $title . "</a> [" . $count . "]<br />\n";
1167               }
1168             }
1169             
1170             if (!($n)) {
1171                echo "No referrals yet<br />";
1172             }
1173             else {
1174             echo "<br />\n";
1175             echo 'referrers [referrals]<br />';
1176             }
1177 rizwank 1.1 echo '</div>';
1178             
1179             echo "<div class='sidetitle'>Search Terms</div>\n";
1180             echo "<div class='side'>";
1181             
1182             $rs = mysql_query( $sql );
1183             $n = 0;
1184             
1185             while( $row = mysql_fetch_assoc( $rs ) ) {
1186               $query = '';
1187             
1188               $referer1 = $row['referer'];
1189               $title = $row['title'];
1190               $count = $row['count'];
1191               $search = $row['search'];
1192             
1193               if ($search == 1) {
1194                 $n++;
1195                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
1196                 echo $query . ' [' . $count . ']' . "<br />\n";
1197               }
1198 rizwank 1.1 }
1199             
1200             if (!($n)) { echo "No search terms yet<br />"; }
1201             else { echo "<br />search terms [hits]"; }
1202             echo "</div>";
1203             ?>
1204             
1205             
1206             
1207             <!--
1208             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
1209                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
1210                      xmlns:dc="http://purl.org/dc/elements/1.1/">
1211             <rdf:Description
1212                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000340"
1213                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/335"
1214                 dc:title="God of Scheduling"
1215                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000340"
1216                 dc:subject=""
1217                 dc:description="Great, I just realized Pro Tour San Diego starts Thursday May 13. If I go to San Diego, I won&amp;#8217;t be able to be here to go to it with Lora. (No word yet if they accepted my credentials). I&amp;#8217;ve..."
1218                 dc:creator="Rizwank"
1219 rizwank 1.1     dc:date="2004-04-15T01:24:09-08:00" />
1220             </rdf:RDF>
1221             -->
1222             
1223             
1224             <h2 class="date">April 15, 2004</h2>
1225             
1226             
1227             <div class="blogbody">
1228             <a name="000340"></a>
1229             <?php
1230             
1231             // record the referer
1232             if ($my_ip !== $remote_ip) {
1233                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (340, '$referer', '', $time)" );
1234             }
1235             
1236             // get the no. of times this entry has been read
1237             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=340' );
1238             $row = mysql_fetch_row( $rs );
1239             $hits = $row[0];
1240 rizwank 1.1 
1241             ?>
1242             <h3 class="title">God of Scheduling</h3>
1243              
1244             <p>  <table align="left"><tr valign="bottom"><td>
1245                <p style="font-size:16pt"><b>
1246                 G</b>
1247                </p>
1248               </td></tr></table>
1249              reat, I just realized Pro Tour San Diego starts Thursday May 13. <br />
1250             If I go to San Diego, I won&#8217;t be able to be here to go to it with Lora. (No word yet if they accepted my credentials). I&#8217;ve already committed to work Friday onwards (day or night depending upon midterm schedules), but&#8230; yeah its weird.</p>
1251             
1252             <p>sigh, damn the gods of scheduling.</p>
1253             
1254             
1255             	
1256             
1257             
1258             
1259             <div class="posted">
1260             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000340" title="Permanent Link to this Post.">01:24 AM</a><?php
1261 rizwank 1.1 if ($hits) { 
1262                print " | Read ";
1263                echo "$hits";
1264                print " time";
1265                if($hits != 1) echo 's';
1266             }
1267             ?>
1268             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=340" onclick="OpenComments(this.href); return false">Comments (0)</a>
1269             	
1270             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=340" onclick="OpenTrackback(this.href); return false">TrackBack</a>
1271             	
1272             </div>
1273             
1274             </div>
1275             <?php
1276             
1277             // display the list of referers
1278             echo '<div class="sidetitle">Referrers</div>', "\n";
1279             echo '<div class="side">', "\n";
1280             
1281             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=340 GROUP BY referer ORDER BY count DESC, title';
1282 rizwank 1.1 
1283             $rs = mysql_query( $sql );
1284             $n = 0;
1285             
1286             while( $row = mysql_fetch_assoc( $rs ) ) {
1287               $referer1 = $row['referer'];
1288               $title = $row['title'];
1289               $count = $row['count'];
1290               $search = $row['search'];
1291             
1292               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
1293                 $n++;
1294                 echo '<a href="', $referer1, '" target="_blank">';
1295                 echo $title . "</a> [" . $count . "]<br />\n";
1296               }
1297             }
1298             
1299             if (!($n)) {
1300                echo "No referrals yet<br />";
1301             }
1302             else {
1303 rizwank 1.1 echo "<br />\n";
1304             echo 'referrers [referrals]<br />';
1305             }
1306             echo '</div>';
1307             
1308             echo "<div class='sidetitle'>Search Terms</div>\n";
1309             echo "<div class='side'>";
1310             
1311             $rs = mysql_query( $sql );
1312             $n = 0;
1313             
1314             while( $row = mysql_fetch_assoc( $rs ) ) {
1315               $query = '';
1316             
1317               $referer1 = $row['referer'];
1318               $title = $row['title'];
1319               $count = $row['count'];
1320               $search = $row['search'];
1321             
1322               if ($search == 1) {
1323                 $n++;
1324 rizwank 1.1     $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
1325                 echo $query . ' [' . $count . ']' . "<br />\n";
1326               }
1327             }
1328             
1329             if (!($n)) { echo "No search terms yet<br />"; }
1330             else { echo "<br />search terms [hits]"; }
1331             echo "</div>";
1332             ?>
1333             
1334             
1335             
1336             <!--
1337             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
1338                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
1339                      xmlns:dc="http://purl.org/dc/elements/1.1/">
1340             <rdf:Description
1341                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000339"
1342                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/334"
1343                 dc:title="Googling for Egomaniacs"
1344                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000339"
1345 rizwank 1.1     dc:subject=""
1346                 dc:description="So, things are going well with gal. I&amp;#8217;ll dish details later, but I&amp;#8217;m exhausted right now from classes. For some reason I hit the student lab and felt like googling Kelly , my first gf. Shes gradded by now, did..."
1347                 dc:creator="Rizwank"
1348                 dc:date="2004-04-14T18:34:59-08:00" />
1349             </rdf:RDF>
1350             -->
1351             
1352             
1353             <h2 class="date">April 14, 2004</h2>
1354             
1355             
1356             <div class="blogbody">
1357             <a name="000339"></a>
1358             <?php
1359             
1360             // record the referer
1361             if ($my_ip !== $remote_ip) {
1362                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (339, '$referer', '', $time)" );
1363             }
1364             
1365             // get the no. of times this entry has been read
1366 rizwank 1.1 $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=339' );
1367             $row = mysql_fetch_row( $rs );
1368             $hits = $row[0];
1369             
1370             ?>
1371             <h3 class="title">Googling for Egomaniacs</h3>
1372              
1373             <p>  <table align="left"><tr valign="bottom"><td>
1374                <p style="font-size:16pt"><b>
1375                 S</b>
1376                </p>
1377               </td></tr></table>
1378              o, things are going well with gal. I&#8217;ll dish details later, but I&#8217;m exhausted right now from classes.</p>
1379             
1380             <p>For some reason I hit the student lab and felt like googling  (ex-gf1)  , my first gf. </p>
1381             
1382             <p>Shes gradded by now, did well, really got into the photography aspect (worked at Bruinlike and Bruinwalk) and did some stuff with the <span class="caps">UCLA </span>Linux group. I thought about emailing her, but I realized that, to her, Im a transatory guy, who shes dated for just 5 weeks, dumped, and didn&#8217;t even sleep with. That part is kind of annoying. I don&#8217;t know why it occured to me to google her though. Oh, part of is was a mention of <span class="caps">JPL&#8230;</span> she used to kinda work there. Cool, no?</p>
1383             
1384             <p>Then I <a href=""rizwan kassim"" title="googled ">googled</a> myself. For the first time in a while, I beat out the Mike and Ben show stuff that isn&#8217;t at all positive, so thats nice. Lots of newsgroup postings etc, links to and from my blog. Apparently if you search on blogsearch.com for pretty girls, you get my site.</p>
1385             
1386             <p><a href="http://www.blogpulse.com/" title="BlogPulse">BlogPulse</a> is an interesting site showing the most referenced topics on blogs all around!</p>
1387 rizwank 1.1 
1388             <p>Ran into Helen at the Enigma events&#8230; She totally ignored me and I learned to ignore her. Shes decided to go the more feminine route, so longer hair and frilly tops instead of her previous engineer-girl state. She also got hammered as hell. I don&#8217;t there beign somone that doesn&#8217;t like me and can&#8217;t stand me, but I&#8217;ll have to grow up and deal, and <span class="caps">NOT</span> to try to talk to her and confront/resolve it.. its not going to do any good!</p>
1389             
1390             <p>I&#8217;d like to find a Friday night magic nearby&#8230; I&#8217;m going to see They Might Be Giants with a bunch of folks as well&#8230; Saturday is also a Mensa test&#8230; finally I&#8217;m getting around to take it; and I know its not going to be anywhere near the score I got as a young&#8217;n and thats going to depress me.</p>
1391             
1392             <p>My room situ is working out, I have no idea what to do for summer, nor do I have energy to start looking ;p I need to decide what, if anything, I&#8217;m taking&#8230;</p>
1393             
1394             <p><hr></p>
1395             
1396             <p>So my gals doing well and we are totally freaking out, its so good. I&#8217;m waiting for the other foot to drop, but its good so far. I worry, at times, that the first few weeks I feel close and whatnot, without <i>ever</i> suspecting underlying problems, I&#8217;m thinking of  (ex-gf1)  and Serena now&#8230; I think(?) I felt just as happy with them and just as unolbivous as to possible issues or incompatabilities&#8230; Other thing that worries me is that my meds interfere with certain processes and its just embarssing at times.. and thats a subsection of a section of my life that totally scares me&#8230; :sigh:</p>
1397             
1398             <p>Oh, I have to post how we met later. I wrote it to sis in a letter.. Shes doing fine, by the way.</p>
1399             
1400             <p>I&#8217;m looking forward to seeing Lora for <span class="caps">E3,</span> and I have no idea how thats going to evolve. We have potential to be good friends, and she seems like it ?might? be getting serious with Steve. </p>
1401             
1402             <p>Ok, so much for a mini blog entry. I&#8217;m going to go eat Panda and groove to Electric Light Orchestra.</p>
1403             
1404             
1405             	
1406             
1407             
1408 rizwank 1.1 
1409             <div class="posted">
1410             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000339" title="Permanent Link to this Post.">06:34 PM</a><?php
1411             if ($hits) { 
1412                print " | Read ";
1413                echo "$hits";
1414                print " time";
1415                if($hits != 1) echo 's';
1416             }
1417             ?>
1418             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=339" onclick="OpenComments(this.href); return false">Comments (0)</a>
1419             	
1420             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=339" onclick="OpenTrackback(this.href); return false">TrackBack</a>
1421             	
1422             </div>
1423             
1424             </div>
1425             <?php
1426             
1427             // display the list of referers
1428             echo '<div class="sidetitle">Referrers</div>', "\n";
1429 rizwank 1.1 echo '<div class="side">', "\n";
1430             
1431             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=339 GROUP BY referer ORDER BY count DESC, title';
1432             
1433             $rs = mysql_query( $sql );
1434             $n = 0;
1435             
1436             while( $row = mysql_fetch_assoc( $rs ) ) {
1437               $referer1 = $row['referer'];
1438               $title = $row['title'];
1439               $count = $row['count'];
1440               $search = $row['search'];
1441             
1442               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
1443                 $n++;
1444                 echo '<a href="', $referer1, '" target="_blank">';
1445                 echo $title . "</a> [" . $count . "]<br />\n";
1446               }
1447             }
1448             
1449             if (!($n)) {
1450 rizwank 1.1    echo "No referrals yet<br />";
1451             }
1452             else {
1453             echo "<br />\n";
1454             echo 'referrers [referrals]<br />';
1455             }
1456             echo '</div>';
1457             
1458             echo "<div class='sidetitle'>Search Terms</div>\n";
1459             echo "<div class='side'>";
1460             
1461             $rs = mysql_query( $sql );
1462             $n = 0;
1463             
1464             while( $row = mysql_fetch_assoc( $rs ) ) {
1465               $query = '';
1466             
1467               $referer1 = $row['referer'];
1468               $title = $row['title'];
1469               $count = $row['count'];
1470               $search = $row['search'];
1471 rizwank 1.1 
1472               if ($search == 1) {
1473                 $n++;
1474                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
1475                 echo $query . ' [' . $count . ']' . "<br />\n";
1476               }
1477             }
1478             
1479             if (!($n)) { echo "No search terms yet<br />"; }
1480             else { echo "<br />search terms [hits]"; }
1481             echo "</div>";
1482             ?>
1483             
1484             
1485             
1486             <!--
1487             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
1488                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
1489                      xmlns:dc="http://purl.org/dc/elements/1.1/">
1490             <rdf:Description
1491                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000338"
1492 rizwank 1.1     trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/333"
1493                 dc:title="What a difference a day makes!"
1494                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000338"
1495                 dc:subject=""
1496                 dc:description="So I think I&amp;#8217;ve met my analog. Seriously, someone exactly like me, from the paranoia, to the lame ass witty remarks to the totally playful nature. So yeah, I&amp;#8217;m dating someone. Who was dating someone else last night. And yes,..."
1497                 dc:creator="Rizwank"
1498                 dc:date="2004-04-11T18:00:34-08:00" />
1499             </rdf:RDF>
1500             -->
1501             
1502             
1503             <h2 class="date">April 11, 2004</h2>
1504             
1505             
1506             <div class="blogbody">
1507             <a name="000338"></a>
1508             <?php
1509             
1510             // record the referer
1511             if ($my_ip !== $remote_ip) {
1512                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (338, '$referer', '', $time)" );
1513 rizwank 1.1 }
1514             
1515             // get the no. of times this entry has been read
1516             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=338' );
1517             $row = mysql_fetch_row( $rs );
1518             $hits = $row[0];
1519             
1520             ?>
1521             <h3 class="title">What a difference a day makes!</h3>
1522              
1523             <p>  <table align="left"><tr valign="bottom"><td>
1524                <p style="font-size:16pt"><b>
1525                 S</b>
1526                </p>
1527               </td></tr></table>
1528              o I think I&#8217;ve met my analog. Seriously, someone <i>exactly</i> like me, from the paranoia, to the lame ass witty remarks to the totally playful nature. So yeah, I&#8217;m dating someone. Who was dating someone else last night. And yes, I am mildly concerned about that. </p>
1529             
1530             <p>On a weird note, I&#8217;ve started talking with some really cool people on Friendster.. two in particular. </p>
1531             
1532             <p>I think too much.</p>
1533             
1534 rizwank 1.1 <p>Lora doesn&#8217;t sound like things are going to well for her :( Shes been on my mind recently, but I can&#8217;t get a hold of her. I&#8217;m worried that the above might make her unhappy&#8230; I know I was jealous of Steve. I think it&#8217;ll have to be one of those wait and see things. </p>
1535             
1536             <p>I&#8217;m worried about timing with having someone to see down here and school and my own distractions. I just hid the <span class="caps">UT2004</span> cd. Again. </p>
1537             
1538             <p>Girls got opposite schedule of me, so the only co-incidental non-weekend free time is pretty restricted, so that good, I guess. Its important to me to not suddenly give up all social obligations, so I&#8217;m forcing myself to go to the Enigma party (which she was invited to by another method) even though I&#8217;m a bit worried about studying, but I&#8217;m arriving late and leaving early&#8230; but I&#8217;m here for another year, I need to rebuild a social network, and its too easy to get comfortable with the, like, three people I&#8217;ve added and forget to go further.</p>
1539             
1540             <p><span class="caps">OH MY GOD,</span> the Ira Glass/Chris Ware thing rocked. Meeting Ira rocked even more. I have a very poor picture of the two of us I&#8217;ll upload later. (uploads it)</p>
1541             
1542             <p>Please ignore the posterizing, in order for it to even be decipherable, I had to pshop it.</p>
1543             
1544             <p><img src="http://www.geekymedia.com/archives/ira.jpg" alt="Rizwan Kassim and Ira Glass"></p>
1545             
1546             <p><hr>
1547             <span class="caps">EDIT</span>:</p>
1548             
1549             <p>Theres something for me to sit and think about. I&#8217;m feeling more and more physically ill when I&#8217;m worried recently, and I&#8217;m sure its psycho-somatic. I&#8217;m not saying, Oh, I&#8217;ve got another problem, I&#8217;m just saying its a weird trend. I haven&#8217;t been out on a date for the last seven weeks without getting v. bad stomach pains, for instance.</p>
1550             
1551             
1552             	
1553             
1554             
1555 rizwank 1.1 
1556             <div class="posted">
1557             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000338" title="Permanent Link to this Post.">06:00 PM</a><?php
1558             if ($hits) { 
1559                print " | Read ";
1560                echo "$hits";
1561                print " time";
1562                if($hits != 1) echo 's';
1563             }
1564             ?>
1565             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=338" onclick="OpenComments(this.href); return false">Comments (1)</a>
1566             	
1567             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=338" onclick="OpenTrackback(this.href); return false">TrackBack</a>
1568             	
1569             </div>
1570             
1571             </div>
1572             <?php
1573             
1574             // display the list of referers
1575             echo '<div class="sidetitle">Referrers</div>', "\n";
1576 rizwank 1.1 echo '<div class="side">', "\n";
1577             
1578             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=338 GROUP BY referer ORDER BY count DESC, title';
1579             
1580             $rs = mysql_query( $sql );
1581             $n = 0;
1582             
1583             while( $row = mysql_fetch_assoc( $rs ) ) {
1584               $referer1 = $row['referer'];
1585               $title = $row['title'];
1586               $count = $row['count'];
1587               $search = $row['search'];
1588             
1589               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
1590                 $n++;
1591                 echo '<a href="', $referer1, '" target="_blank">';
1592                 echo $title . "</a> [" . $count . "]<br />\n";
1593               }
1594             }
1595             
1596             if (!($n)) {
1597 rizwank 1.1    echo "No referrals yet<br />";
1598             }
1599             else {
1600             echo "<br />\n";
1601             echo 'referrers [referrals]<br />';
1602             }
1603             echo '</div>';
1604             
1605             echo "<div class='sidetitle'>Search Terms</div>\n";
1606             echo "<div class='side'>";
1607             
1608             $rs = mysql_query( $sql );
1609             $n = 0;
1610             
1611             while( $row = mysql_fetch_assoc( $rs ) ) {
1612               $query = '';
1613             
1614               $referer1 = $row['referer'];
1615               $title = $row['title'];
1616               $count = $row['count'];
1617               $search = $row['search'];
1618 rizwank 1.1 
1619               if ($search == 1) {
1620                 $n++;
1621                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
1622                 echo $query . ' [' . $count . ']' . "<br />\n";
1623               }
1624             }
1625             
1626             if (!($n)) { echo "No search terms yet<br />"; }
1627             else { echo "<br />search terms [hits]"; }
1628             echo "</div>";
1629             ?>
1630             
1631             
1632             
1633             <!--
1634             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
1635                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
1636                      xmlns:dc="http://purl.org/dc/elements/1.1/">
1637             <rdf:Description
1638                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000337"
1639 rizwank 1.1     trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/332"
1640                 dc:title="Online Music"
1641                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000337"
1642                 dc:subject=""
1643                 dc:description="Downloading music gets more expensive &amp;#8220;All five of the major music companies are discussing ways to boost the price of single-song downloads on hot releases - to anywhere from $1.25 to as much as $2.49. It isn&amp;#8217;t clear how or..."
1644                 dc:creator="Rizwank"
1645                 dc:date="2004-04-10T19:35:14-08:00" />
1646             </rdf:RDF>
1647             -->
1648             
1649             
1650             <h2 class="date">April 10, 2004</h2>
1651             
1652             
1653             <div class="blogbody">
1654             <a name="000337"></a>
1655             <?php
1656             
1657             // record the referer
1658             if ($my_ip !== $remote_ip) {
1659                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (337, '$referer', '', $time)" );
1660 rizwank 1.1 }
1661             
1662             // get the no. of times this entry has been read
1663             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=337' );
1664             $row = mysql_fetch_row( $rs );
1665             $hits = $row[0];
1666             
1667             ?>
1668             <h3 class="title">Online Music</h3>
1669              
1670             <p><a title="Downloading music gets more expensive" href="http://www.azcentral.com/business/articles/0407downloading07-ON.html">  <table align="left"><tr valign="bottom"><td>
1671                <p style="font-size:16pt"><b>
1672                 D</b>
1673                </p>
1674               </td></tr></table>
1675              ownloading music gets more expensive</a></p>
1676             
1677             <p>&#8220;All five of the major music companies are discussing ways to boost the price of single-song downloads on hot releases - to anywhere from $1.25 to as much as $2.49. It isn&#8217;t clear how or when such a price hike would take place, and it could still be months away. Sales of such singles - prices have remained at 99 cents - still account for the majority of online music sales. </p>
1678             
1679             <p>The industry is also mulling other ways to charge more for online singles. One option under consideration is bundling hit songs with less-desirable tracks. Another possibility is charging more for a single track if it is available online before the broader release of the entire album from which it is taken. There is also talk of lowering the price on some individual tracks from older albums.&#8221;</p>
1680             
1681 rizwank 1.1 <p>:: sigh :: </p>
1682             
1683             <p>Can <span class="caps">ANYONE</span> come up with any rational reason why an online album should cost <b><span class="caps">MORE</span></b> than the actual CD in a store? I understand not selling an entire album for $9.99, instead charging $13.99&#8230; but $17? </p>
1684             
1685             <p>In other news, Walmart is rolling out an online music service&#8230; Well thats great&#8230; the market leader in music tools.. no wait.. Maybe the market leader in distribtuing music&#8230; no, thats not them either?</p>
1686             
1687             <p>Oh yeah, the market leader in CDs stolen via shoplifting has opened an online store. Its good that they entire the market and improve the quality of the competetion by market forces, God knows that Apple and Napster need to hire more technical talent to compete with &#8230; Walmart. </p>
1688             
1689             <p>Yeah, they charge $.88. The extra dime and penny wont do it for me.</p>
1690             
1691             
1692             	
1693             
1694             
1695             
1696             <div class="posted">
1697             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000337" title="Permanent Link to this Post.">07:35 PM</a><?php
1698             if ($hits) { 
1699                print " | Read ";
1700                echo "$hits";
1701                print " time";
1702 rizwank 1.1    if($hits != 1) echo 's';
1703             }
1704             ?>
1705             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=337" onclick="OpenComments(this.href); return false">Comments (0)</a>
1706             	
1707             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=337" onclick="OpenTrackback(this.href); return false">TrackBack</a>
1708             	
1709             </div>
1710             
1711             </div>
1712             <?php
1713             
1714             // display the list of referers
1715             echo '<div class="sidetitle">Referrers</div>', "\n";
1716             echo '<div class="side">', "\n";
1717             
1718             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=337 GROUP BY referer ORDER BY count DESC, title';
1719             
1720             $rs = mysql_query( $sql );
1721             $n = 0;
1722             
1723 rizwank 1.1 while( $row = mysql_fetch_assoc( $rs ) ) {
1724               $referer1 = $row['referer'];
1725               $title = $row['title'];
1726               $count = $row['count'];
1727               $search = $row['search'];
1728             
1729               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
1730                 $n++;
1731                 echo '<a href="', $referer1, '" target="_blank">';
1732                 echo $title . "</a> [" . $count . "]<br />\n";
1733               }
1734             }
1735             
1736             if (!($n)) {
1737                echo "No referrals yet<br />";
1738             }
1739             else {
1740             echo "<br />\n";
1741             echo 'referrers [referrals]<br />';
1742             }
1743             echo '</div>';
1744 rizwank 1.1 
1745             echo "<div class='sidetitle'>Search Terms</div>\n";
1746             echo "<div class='side'>";
1747             
1748             $rs = mysql_query( $sql );
1749             $n = 0;
1750             
1751             while( $row = mysql_fetch_assoc( $rs ) ) {
1752               $query = '';
1753             
1754               $referer1 = $row['referer'];
1755               $title = $row['title'];
1756               $count = $row['count'];
1757               $search = $row['search'];
1758             
1759               if ($search == 1) {
1760                 $n++;
1761                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
1762                 echo $query . ' [' . $count . ']' . "<br />\n";
1763               }
1764             }
1765 rizwank 1.1 
1766             if (!($n)) { echo "No search terms yet<br />"; }
1767             else { echo "<br />search terms [hits]"; }
1768             echo "</div>";
1769             ?>
1770             
1771             
1772             
1773             <!--
1774             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
1775                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
1776                      xmlns:dc="http://purl.org/dc/elements/1.1/">
1777             <rdf:Description
1778                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000336"
1779                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/331"
1780                 dc:title="When it rains, It pours"
1781                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000336"
1782                 dc:subject="Home"
1783                 dc:description="I really need to be less worried about being single. Its not that bad and theres a certain liberating aspect about it. Heres whats interesting &amp;#8230; Yesterday, while driving to a play, I was thinking how, for the first time..."
1784                 dc:creator="Rizwank"
1785                 dc:date="2004-04-10T13:01:35-08:00" />
1786 rizwank 1.1 </rdf:RDF>
1787             -->
1788             
1789             
1790             
1791             
1792             <div class="blogbody">
1793             <a name="000336"></a>
1794             <?php
1795             
1796             // record the referer
1797             if ($my_ip !== $remote_ip) {
1798                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (336, '$referer', '', $time)" );
1799             }
1800             
1801             // get the no. of times this entry has been read
1802             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=336' );
1803             $row = mysql_fetch_row( $rs );
1804             $hits = $row[0];
1805             
1806             ?>
1807 rizwank 1.1 <h3 class="title">When it rains, It pours</h3>
1808              
1809             <p>  <table align="left"><tr valign="bottom"><td>
1810                <p style="font-size:16pt"><b>
1811                 I</b>
1812                </p>
1813               </td></tr></table>
1814               really need to be less worried about being single. Its not <em>that</em> bad and theres a certain liberating aspect about it.</p>
1815             
1816             <p>Heres whats interesting &#8230; Yesterday, while driving to a play, I was thinking how, for the first time in a while, I wasn&#8217;t thinking, &#8216;Oh I hope theres a cute girl there&#8230;&#8217; &#8230; mostly because I&#8217;ve had a few good emails with someone on Friendster and that satisfied my &#8216;I&#8217;m doing something about it&#8217; part of me. Just like Robin, as long as theres <i>something</i> other than destitute alone-ness, I can rationalize the rest away. And I&#8217;m not being demeaning to anyone, or instituting false hope; I&#8217;m just saying that if theres any minor potential with someone nice, I&#8217;m happy.</p>
1817             
1818             <p>And of course, I met someone super cool at the play. I do mean supercool, by the way.</p>
1819             
1820             <p>Now, of course, neither interpersonal exchange is of any age, or in any particular direction, and etc. Excessively premature to say anything, and I have no particular hopes etc.</p>
1821             
1822             <p>But, wouldn&#8217;t you know. When it rains, it pours.</p>
1823             
1824             <p>Another thing I need to work on : I should finally learn to stop automatically putting girls that I like in the &#8216;potential for dating&#8217; bin instead of the &#8216;friends&#8217; bin, or at least &#8216;wait and see, stop rushing it!&#8217; bin.</p>
1825             
1826             <p>Dixie would be so proud of me.</p>
1827             
1828 rizwank 1.1 
1829             	
1830             
1831             
1832             
1833             <div class="posted">
1834             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000336" title="Permanent Link to this Post.">01:01 PM</a><?php
1835             if ($hits) { 
1836                print " | Read ";
1837                echo "$hits";
1838                print " time";
1839                if($hits != 1) echo 's';
1840             }
1841             ?>
1842             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=336" onclick="OpenComments(this.href); return false">Comments (0)</a>
1843             	
1844             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=336" onclick="OpenTrackback(this.href); return false">TrackBack</a>
1845             	
1846             </div>
1847             
1848             </div>
1849 rizwank 1.1 <?php
1850             
1851             // display the list of referers
1852             echo '<div class="sidetitle">Referrers</div>', "\n";
1853             echo '<div class="side">', "\n";
1854             
1855             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=336 GROUP BY referer ORDER BY count DESC, title';
1856             
1857             $rs = mysql_query( $sql );
1858             $n = 0;
1859             
1860             while( $row = mysql_fetch_assoc( $rs ) ) {
1861               $referer1 = $row['referer'];
1862               $title = $row['title'];
1863               $count = $row['count'];
1864               $search = $row['search'];
1865             
1866               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
1867                 $n++;
1868                 echo '<a href="', $referer1, '" target="_blank">';
1869                 echo $title . "</a> [" . $count . "]<br />\n";
1870 rizwank 1.1   }
1871             }
1872             
1873             if (!($n)) {
1874                echo "No referrals yet<br />";
1875             }
1876             else {
1877             echo "<br />\n";
1878             echo 'referrers [referrals]<br />';
1879             }
1880             echo '</div>';
1881             
1882             echo "<div class='sidetitle'>Search Terms</div>\n";
1883             echo "<div class='side'>";
1884             
1885             $rs = mysql_query( $sql );
1886             $n = 0;
1887             
1888             while( $row = mysql_fetch_assoc( $rs ) ) {
1889               $query = '';
1890             
1891 rizwank 1.1   $referer1 = $row['referer'];
1892               $title = $row['title'];
1893               $count = $row['count'];
1894               $search = $row['search'];
1895             
1896               if ($search == 1) {
1897                 $n++;
1898                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
1899                 echo $query . ' [' . $count . ']' . "<br />\n";
1900               }
1901             }
1902             
1903             if (!($n)) { echo "No search terms yet<br />"; }
1904             else { echo "<br />search terms [hits]"; }
1905             echo "</div>";
1906             ?>
1907             
1908             
1909             
1910             <!--
1911             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
1912 rizwank 1.1          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
1913                      xmlns:dc="http://purl.org/dc/elements/1.1/">
1914             <rdf:Description
1915                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000335"
1916                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/330"
1917                 dc:title="Great, even more palmpilot games."
1918                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000335"
1919                 dc:subject=""
1920                 dc:description="codejedi.com - Home of Shadow Plan for Palm OS CaSTaway/Palm for Palm OS CaSTaway/Palm is a port of my CaSTaway/GP32 work, which is in turn a port of CastCE for Pocket PC, which is in turn a port of CaSTaway..."
1921                 dc:creator="Rizwank"
1922                 dc:date="2004-04-08T23:23:45-08:00" />
1923             </rdf:RDF>
1924             -->
1925             
1926             
1927             <h2 class="date">April 08, 2004</h2>
1928             
1929             
1930             <div class="blogbody">
1931             <a name="000335"></a>
1932             <?php
1933 rizwank 1.1 
1934             // record the referer
1935             if ($my_ip !== $remote_ip) {
1936                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (335, '$referer', '', $time)" );
1937             }
1938             
1939             // get the no. of times this entry has been read
1940             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=335' );
1941             $row = mysql_fetch_row( $rs );
1942             $hits = $row[0];
1943             
1944             ?>
1945             <h3 class="title">Great, even more palmpilot games.</h3>
1946              
1947             <p><a title="codejedi.com - Home of Shadow Plan for Palm OS" href="http://www.codejedi.com/shadowplan/castaway.html">  <table align="left"><tr valign="bottom"><td>
1948                <p style="font-size:16pt"><b>
1949                 c</b>
1950                </p>
1951               </td></tr></table>
1952              odejedi.com - Home of Shadow Plan for Palm OS</a></p>
1953             
1954 rizwank 1.1 <p>CaSTaway/Palm for Palm OS<br />
1955             CaSTaway/Palm is a port of my CaSTaway/GP32 work, which is in turn a port of CastCE for Pocket <span class="caps">PC,</span> which is in turn a port of CaSTaway for <span class="caps">SDL</span>/Windows. Quite a lineage :) </p>
1956             
1957             <p><span class="caps">EDIT </span>: This is an Atari ST emulator :)</p>
1958             
1959             
1960             	
1961             
1962             
1963             
1964             <div class="posted">
1965             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000335" title="Permanent Link to this Post.">11:23 PM</a><?php
1966             if ($hits) { 
1967                print " | Read ";
1968                echo "$hits";
1969                print " time";
1970                if($hits != 1) echo 's';
1971             }
1972             ?>
1973             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=335" onclick="OpenComments(this.href); return false">Comments (0)</a>
1974             	
1975 rizwank 1.1 		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=335" onclick="OpenTrackback(this.href); return false">TrackBack</a>
1976             	
1977             </div>
1978             
1979             </div>
1980             <?php
1981             
1982             // display the list of referers
1983             echo '<div class="sidetitle">Referrers</div>', "\n";
1984             echo '<div class="side">', "\n";
1985             
1986             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=335 GROUP BY referer ORDER BY count DESC, title';
1987             
1988             $rs = mysql_query( $sql );
1989             $n = 0;
1990             
1991             while( $row = mysql_fetch_assoc( $rs ) ) {
1992               $referer1 = $row['referer'];
1993               $title = $row['title'];
1994               $count = $row['count'];
1995               $search = $row['search'];
1996 rizwank 1.1 
1997               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
1998                 $n++;
1999                 echo '<a href="', $referer1, '" target="_blank">';
2000                 echo $title . "</a> [" . $count . "]<br />\n";
2001               }
2002             }
2003             
2004             if (!($n)) {
2005                echo "No referrals yet<br />";
2006             }
2007             else {
2008             echo "<br />\n";
2009             echo 'referrers [referrals]<br />';
2010             }
2011             echo '</div>';
2012             
2013             echo "<div class='sidetitle'>Search Terms</div>\n";
2014             echo "<div class='side'>";
2015             
2016             $rs = mysql_query( $sql );
2017 rizwank 1.1 $n = 0;
2018             
2019             while( $row = mysql_fetch_assoc( $rs ) ) {
2020               $query = '';
2021             
2022               $referer1 = $row['referer'];
2023               $title = $row['title'];
2024               $count = $row['count'];
2025               $search = $row['search'];
2026             
2027               if ($search == 1) {
2028                 $n++;
2029                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
2030                 echo $query . ' [' . $count . ']' . "<br />\n";
2031               }
2032             }
2033             
2034             if (!($n)) { echo "No search terms yet<br />"; }
2035             else { echo "<br />search terms [hits]"; }
2036             echo "</div>";
2037             ?>
2038 rizwank 1.1 
2039             
2040             
2041             <!--
2042             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
2043                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
2044                      xmlns:dc="http://purl.org/dc/elements/1.1/">
2045             <rdf:Description
2046                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000334"
2047                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/329"
2048                 dc:title="Just damn good phrase."
2049                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000334"
2050                 dc:subject=""
2051                 dc:description="je ne sais quoi. A quality or attribute that is difficult to describe or express...."
2052                 dc:creator="Rizwank"
2053                 dc:date="2004-04-08T22:09:31-08:00" />
2054             </rdf:RDF>
2055             -->
2056             
2057             
2058             
2059 rizwank 1.1 
2060             <div class="blogbody">
2061             <a name="000334"></a>
2062             <?php
2063             
2064             // record the referer
2065             if ($my_ip !== $remote_ip) {
2066                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (334, '$referer', '', $time)" );
2067             }
2068             
2069             // get the no. of times this entry has been read
2070             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=334' );
2071             $row = mysql_fetch_row( $rs );
2072             $hits = $row[0];
2073             
2074             ?>
2075             <h3 class="title">Just damn good phrase.</h3>
2076              
2077             <p><a title="je ne sais quoi." href="http://www.bartleby.com/61/99/J0029900.html">  <table align="left"><tr valign="bottom"><td>
2078                <p style="font-size:16pt"><b>
2079                 j</b>
2080 rizwank 1.1    </p>
2081               </td></tr></table>
2082              e ne sais quoi.</a></p>
2083             
2084             <p>A quality or attribute that is difficult to describe or express.</p>
2085             
2086             
2087             	
2088             
2089             
2090             
2091             <div class="posted">
2092             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000334" title="Permanent Link to this Post.">10:09 PM</a><?php
2093             if ($hits) { 
2094                print " | Read ";
2095                echo "$hits";
2096                print " time";
2097                if($hits != 1) echo 's';
2098             }
2099             ?>
2100             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=334" onclick="OpenComments(this.href); return false">Comments (0)</a>
2101 rizwank 1.1 	
2102             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=334" onclick="OpenTrackback(this.href); return false">TrackBack</a>
2103             	
2104             </div>
2105             
2106             </div>
2107             <?php
2108             
2109             // display the list of referers
2110             echo '<div class="sidetitle">Referrers</div>', "\n";
2111             echo '<div class="side">', "\n";
2112             
2113             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=334 GROUP BY referer ORDER BY count DESC, title';
2114             
2115             $rs = mysql_query( $sql );
2116             $n = 0;
2117             
2118             while( $row = mysql_fetch_assoc( $rs ) ) {
2119               $referer1 = $row['referer'];
2120               $title = $row['title'];
2121               $count = $row['count'];
2122 rizwank 1.1   $search = $row['search'];
2123             
2124               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
2125                 $n++;
2126                 echo '<a href="', $referer1, '" target="_blank">';
2127                 echo $title . "</a> [" . $count . "]<br />\n";
2128               }
2129             }
2130             
2131             if (!($n)) {
2132                echo "No referrals yet<br />";
2133             }
2134             else {
2135             echo "<br />\n";
2136             echo 'referrers [referrals]<br />';
2137             }
2138             echo '</div>';
2139             
2140             echo "<div class='sidetitle'>Search Terms</div>\n";
2141             echo "<div class='side'>";
2142             
2143 rizwank 1.1 $rs = mysql_query( $sql );
2144             $n = 0;
2145             
2146             while( $row = mysql_fetch_assoc( $rs ) ) {
2147               $query = '';
2148             
2149               $referer1 = $row['referer'];
2150               $title = $row['title'];
2151               $count = $row['count'];
2152               $search = $row['search'];
2153             
2154               if ($search == 1) {
2155                 $n++;
2156                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
2157                 echo $query . ' [' . $count . ']' . "<br />\n";
2158               }
2159             }
2160             
2161             if (!($n)) { echo "No search terms yet<br />"; }
2162             else { echo "<br />search terms [hits]"; }
2163             echo "</div>";
2164 rizwank 1.1 ?>
2165             
2166             
2167             
2168             <!--
2169             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
2170                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
2171                      xmlns:dc="http://purl.org/dc/elements/1.1/">
2172             <rdf:Description
2173                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000333"
2174                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/328"
2175                 dc:title="Late Delivery"
2176                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000333"
2177                 dc:subject=""
2178                 dc:description="Two blog entries made in a new app on the Treo that didn&amp;#8217;t submit right. The life of a male So, I&amp;#8217;m going to go grab some coffee&amp;#8230; would you like some? Nah, I&amp;#8217;m just going to head home. I&amp;#8217;ve..."
2179                 dc:creator="Rizwank"
2180                 dc:date="2004-04-07T20:20:57-08:00" />
2181             </rdf:RDF>
2182             -->
2183             
2184             
2185 rizwank 1.1 <h2 class="date">April 07, 2004</h2>
2186             
2187             
2188             <div class="blogbody">
2189             <a name="000333"></a>
2190             <?php
2191             
2192             // record the referer
2193             if ($my_ip !== $remote_ip) {
2194                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (333, '$referer', '', $time)" );
2195             }
2196             
2197             // get the no. of times this entry has been read
2198             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=333' );
2199             $row = mysql_fetch_row( $rs );
2200             $hits = $row[0];
2201             
2202             ?>
2203             <h3 class="title">Late Delivery</h3>
2204              
2205             <p>  <table align="left"><tr valign="bottom"><td>
2206 rizwank 1.1    <p style="font-size:16pt"><b>
2207                 T</b>
2208                </p>
2209               </td></tr></table>
2210              wo blog entries made in a new app on the Treo that didn&#8217;t submit right.</p>
2211             
2212             <p><b>The life of a male</b><br />
2213             So, I&#8217;m going to go grab some coffee&#8230; would you like some?</p>
2214             
2215             <p>Nah, I&#8217;m just going to head home.</p>
2216             
2217             <p>I&#8217;ve gotten used to asking, gotten used to being told no, gotten used to beating myself up for asking too soon, gotten used to justifying that I can ask some other time.</p>
2218             
2219             <p>And it no longer bashes my self esteem, or my flirting skills&#8230;</p>
2220             
2221             <p>But it still hurts a bit.</p>
2222             
2223             <p>Now its: Dummy its 6pm and this is only the second class&#8230; you should have offered to study with her week 3 or so, she&#8217;s exhausted, as are you; but unlike you, most other people don&#8217;t drop every obligation when a social invitation comes up.</p>
2224             
2225             <p>It isn&#8217;t the rejection that bothers, its minor, not final, and easy to deal with. Its the self doubt.</p>
2226             
2227 rizwank 1.1 <p>::soon to be more here about &#8216;caring less&#8217; ::</p>
2228             
2229             <p>I already know I&#8217;m going to spend the majority of the night on HotOrNot and Makeoutclub.<br />
2230             <hr>
2231             <b>Alfred Nobel</b><br />
2232             A quick thought, as the database professor tells us about the Turing award&#8230; the &#8216;Nobel prize&#8217; of Computer Science.</p>
2233             
2234             <p>The man discovered <span class="caps">TNT,</span> helped usher in a new age of warfare&#8230; and the only knowledge that non-history buffs (or chemists) have of him is that he was a humanitarian, and that there is a world class award series with his name.</p>
2235             
2236             <p>Not that I disagree with his change of politics or his good deeds but&#8230; man, <i>thats some good PR work.</i></p>
2237             
2238             <p><span class="caps">EDIT</span>: Dixie points out, correctly, that Nobel meant to blast railroad tunnels, not people. </p>
2239             
2240             
2241             	
2242             
2243             
2244             
2245             <div class="posted">
2246             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000333" title="Permanent Link to this Post.">08:20 PM</a><?php
2247             if ($hits) { 
2248 rizwank 1.1    print " | Read ";
2249                echo "$hits";
2250                print " time";
2251                if($hits != 1) echo 's';
2252             }
2253             ?>
2254             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=333" onclick="OpenComments(this.href); return false">Comments (0)</a>
2255             	
2256             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=333" onclick="OpenTrackback(this.href); return false">TrackBack</a>
2257             	
2258             </div>
2259             
2260             </div>
2261             <?php
2262             
2263             // display the list of referers
2264             echo '<div class="sidetitle">Referrers</div>', "\n";
2265             echo '<div class="side">', "\n";
2266             
2267             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=333 GROUP BY referer ORDER BY count DESC, title';
2268             
2269 rizwank 1.1 $rs = mysql_query( $sql );
2270             $n = 0;
2271             
2272             while( $row = mysql_fetch_assoc( $rs ) ) {
2273               $referer1 = $row['referer'];
2274               $title = $row['title'];
2275               $count = $row['count'];
2276               $search = $row['search'];
2277             
2278               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
2279                 $n++;
2280                 echo '<a href="', $referer1, '" target="_blank">';
2281                 echo $title . "</a> [" . $count . "]<br />\n";
2282               }
2283             }
2284             
2285             if (!($n)) {
2286                echo "No referrals yet<br />";
2287             }
2288             else {
2289             echo "<br />\n";
2290 rizwank 1.1 echo 'referrers [referrals]<br />';
2291             }
2292             echo '</div>';
2293             
2294             echo "<div class='sidetitle'>Search Terms</div>\n";
2295             echo "<div class='side'>";
2296             
2297             $rs = mysql_query( $sql );
2298             $n = 0;
2299             
2300             while( $row = mysql_fetch_assoc( $rs ) ) {
2301               $query = '';
2302             
2303               $referer1 = $row['referer'];
2304               $title = $row['title'];
2305               $count = $row['count'];
2306               $search = $row['search'];
2307             
2308               if ($search == 1) {
2309                 $n++;
2310                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
2311 rizwank 1.1     echo $query . ' [' . $count . ']' . "<br />\n";
2312               }
2313             }
2314             
2315             if (!($n)) { echo "No search terms yet<br />"; }
2316             else { echo "<br />search terms [hits]"; }
2317             echo "</div>";
2318             ?>
2319             
2320             
2321             
2322             <!--
2323             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
2324                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
2325                      xmlns:dc="http://purl.org/dc/elements/1.1/">
2326             <rdf:Description
2327                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000330"
2328                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/325"
2329                 dc:title="Firefox"
2330                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000330"
2331                 dc:subject=""
2332 rizwank 1.1     dc:description="Mozilla has a browser similar to MyIE2, my favorite browser&amp;#8230; its called Firefox. One problem&amp;#8230; my site looks like shit in it :( The TAL header is too large and the dropcap is double sized&amp;#8230; and whats sad is that,..."
2333                 dc:creator="Rizwank"
2334                 dc:date="2004-04-07T16:07:10-08:00" />
2335             </rdf:RDF>
2336             -->
2337             
2338             
2339             
2340             
2341             <div class="blogbody">
2342             <a name="000330"></a>
2343             <?php
2344             
2345             // record the referer
2346             if ($my_ip !== $remote_ip) {
2347                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (330, '$referer', '', $time)" );
2348             }
2349             
2350             // get the no. of times this entry has been read
2351             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=330' );
2352             $row = mysql_fetch_row( $rs );
2353 rizwank 1.1 $hits = $row[0];
2354             
2355             ?>
2356             <h3 class="title">Firefox</h3>
2357              
2358             <p>  <table align="left"><tr valign="bottom"><td>
2359                <p style="font-size:16pt"><b>
2360                 M</b>
2361                </p>
2362               </td></tr></table>
2363              ozilla has a browser similar to <a href="http://www.myie2.com/html_en/home.htm" title="MyIE2">MyIE2</a>, my favorite browser&#8230; its called <a href="http://www.mozilla.org/products/firefox/" title="Firefox">Firefox</a>.</p>
2364             
2365             <p>One problem&#8230; my site looks like shit in it :( The <span class="caps">TAL</span> header is too large and the dropcap is double sized&#8230; and whats sad is that, knowing the companies invovled, its probably because the IE engine misinterprets the <span class="caps">HTML</span>/CSS involved.</p>
2366             
2367             <p>Oh, if you aren&#8217;t using one of the two, you should be. Seriously. Tabbed browsing rocks, even for an old fan of Alt-Tab like myself, plus keeping open pages persistant across sessions is a godsend, esp when your system crashes a lot.</p>
2368             
2369             <p>Some alternates and <a href="http://www.techspot.com/vb/showthread/t-11102.html" title="discussion">discussion</a> about some other browsers as well. <a href="http://www.techzonez.com/forums/showthread.php?t=9190" title="More">More</a>. <a href="http://extensionroom.mozdev.org/" title="Plugins">Plugins</a>. Even <a href="http://mimeryme.jablog.com/blog.php" title="more">more</a>!</p>
2370             
2371             <p>Did you know that Opera allows you to use mouse <a href="http://www.opera.com/features/mouse/" title="GESTURES"><span class="caps">GESTURES</span></a>?</p>
2372             
2373             
2374 rizwank 1.1 	
2375             
2376             
2377             
2378             <div class="posted">
2379             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000330" title="Permanent Link to this Post.">04:07 PM</a><?php
2380             if ($hits) { 
2381                print " | Read ";
2382                echo "$hits";
2383                print " time";
2384                if($hits != 1) echo 's';
2385             }
2386             ?>
2387             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=330" onclick="OpenComments(this.href); return false">Comments (0)</a>
2388             	
2389             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=330" onclick="OpenTrackback(this.href); return false">TrackBack</a>
2390             	
2391             </div>
2392             
2393             </div>
2394             <?php
2395 rizwank 1.1 
2396             // display the list of referers
2397             echo '<div class="sidetitle">Referrers</div>', "\n";
2398             echo '<div class="side">', "\n";
2399             
2400             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=330 GROUP BY referer ORDER BY count DESC, title';
2401             
2402             $rs = mysql_query( $sql );
2403             $n = 0;
2404             
2405             while( $row = mysql_fetch_assoc( $rs ) ) {
2406               $referer1 = $row['referer'];
2407               $title = $row['title'];
2408               $count = $row['count'];
2409               $search = $row['search'];
2410             
2411               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
2412                 $n++;
2413                 echo '<a href="', $referer1, '" target="_blank">';
2414                 echo $title . "</a> [" . $count . "]<br />\n";
2415               }
2416 rizwank 1.1 }
2417             
2418             if (!($n)) {
2419                echo "No referrals yet<br />";
2420             }
2421             else {
2422             echo "<br />\n";
2423             echo 'referrers [referrals]<br />';
2424             }
2425             echo '</div>';
2426             
2427             echo "<div class='sidetitle'>Search Terms</div>\n";
2428             echo "<div class='side'>";
2429             
2430             $rs = mysql_query( $sql );
2431             $n = 0;
2432             
2433             while( $row = mysql_fetch_assoc( $rs ) ) {
2434               $query = '';
2435             
2436               $referer1 = $row['referer'];
2437 rizwank 1.1   $title = $row['title'];
2438               $count = $row['count'];
2439               $search = $row['search'];
2440             
2441               if ($search == 1) {
2442                 $n++;
2443                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
2444                 echo $query . ' [' . $count . ']' . "<br />\n";
2445               }
2446             }
2447             
2448             if (!($n)) { echo "No search terms yet<br />"; }
2449             else { echo "<br />search terms [hits]"; }
2450             echo "</div>";
2451             ?>
2452             
2453             
2454             
2455             
2456             
2457             
2458 rizwank 1.1 
2459             <div class="blogbody">
2460             <a name="000329"></a>
2461             <?php
2462             
2463             // record the referer
2464             if ($my_ip !== $remote_ip) {
2465                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (329, '$referer', '', $time)" );
2466             }
2467             
2468             // get the no. of times this entry has been read
2469             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=329' );
2470             $row = mysql_fetch_row( $rs );
2471             $hits = $row[0];
2472             
2473             ?>
2474             <h3 class="title">The way education should be...</h3>
2475              
2476             <p><img src="http://www.geekymedia.com/blogcgi/../archives/Picture008_07Apr04.jpg"><br>  <table align="left"><tr valign="bottom"><td>
2477                <p style="font-size:16pt"><b>
2478                 I</b>
2479 rizwank 1.1    </p>
2480               </td></tr></table>
2481               wrote an entry during my network class complaining about accented professors, expansive classes and boring material, but Mobster ate it. Now, This is what I love... We are talking about language theory... Bending our minds coding in prolog... Just enough math to prove the point, but not so much as to belabor it...</p>
2482             
2483             <p>Prolog is pure logic with a splash of control instead of the standard reverse that we learn.</p>
2484             
2485             <p>Sadly, being fascinated by a class DOESNT gaurantee that ill attend it properly... Sociology of Mass Communication and Formal Languages being excellent examples.</p>
2486             
2487             <p>But its nice to have :)</p>
2488             
2489             <p>Its a reasonable point to consider, this professor was rated highly on uclaprofessors.com, the rest werent... Could it be the teaching has as much of a role as the material? or the more likely case that good teachers thrive with good material, but its hard to salvage boring stuff.</p>
2490             
2491             <p>Also worth noting, unfamiliar yet relevant material is most likely to fall in this category (for me)&#0;</p>
2492             
2493             
2494             	
2495             
2496             
2497             
2498             <div class="posted">
2499             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000329" title="Permanent Link to this Post.">03:15 PM</a><?php
2500 rizwank 1.1 if ($hits) { 
2501                print " | Read ";
2502                echo "$hits";
2503                print " time";
2504                if($hits != 1) echo 's';
2505             }
2506             ?>
2507             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=329" onclick="OpenComments(this.href); return false">Comments (0)</a>
2508             	
2509             	
2510             </div>
2511             
2512             </div>
2513             <?php
2514             
2515             // display the list of referers
2516             echo '<div class="sidetitle">Referrers</div>', "\n";
2517             echo '<div class="side">', "\n";
2518             
2519             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=329 GROUP BY referer ORDER BY count DESC, title';
2520             
2521 rizwank 1.1 $rs = mysql_query( $sql );
2522             $n = 0;
2523             
2524             while( $row = mysql_fetch_assoc( $rs ) ) {
2525               $referer1 = $row['referer'];
2526               $title = $row['title'];
2527               $count = $row['count'];
2528               $search = $row['search'];
2529             
2530               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
2531                 $n++;
2532                 echo '<a href="', $referer1, '" target="_blank">';
2533                 echo $title . "</a> [" . $count . "]<br />\n";
2534               }
2535             }
2536             
2537             if (!($n)) {
2538                echo "No referrals yet<br />";
2539             }
2540             else {
2541             echo "<br />\n";
2542 rizwank 1.1 echo 'referrers [referrals]<br />';
2543             }
2544             echo '</div>';
2545             
2546             echo "<div class='sidetitle'>Search Terms</div>\n";
2547             echo "<div class='side'>";
2548             
2549             $rs = mysql_query( $sql );
2550             $n = 0;
2551             
2552             while( $row = mysql_fetch_assoc( $rs ) ) {
2553               $query = '';
2554             
2555               $referer1 = $row['referer'];
2556               $title = $row['title'];
2557               $count = $row['count'];
2558               $search = $row['search'];
2559             
2560               if ($search == 1) {
2561                 $n++;
2562                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
2563 rizwank 1.1     echo $query . ' [' . $count . ']' . "<br />\n";
2564               }
2565             }
2566             
2567             if (!($n)) { echo "No search terms yet<br />"; }
2568             else { echo "<br />search terms [hits]"; }
2569             echo "</div>";
2570             ?>
2571             
2572             
2573             
2574             
2575             
2576             
2577             
2578             <div class="blogbody">
2579             <a name="000326"></a>
2580             <?php
2581             
2582             // record the referer
2583             if ($my_ip !== $remote_ip) {
2584 rizwank 1.1    mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (326, '$referer', '', $time)" );
2585             }
2586             
2587             // get the no. of times this entry has been read
2588             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=326' );
2589             $row = mysql_fetch_row( $rs );
2590             $hits = $row[0];
2591             
2592             ?>
2593             <h3 class="title">Staying Awake</h3>
2594              
2595             <p><img src="http://www.geekymedia.com/blogcgi/../archives/Picture006_07Apr04.jpg"><br>  <table align="left"><tr valign="bottom"><td>
2596                <p style="font-size:16pt"><b>
2597                 I</b>
2598                </p>
2599               </td></tr></table>
2600              ts a shame that an upper division class still has to be THIS big - Its also a shame that the profs accent requires a double take... Constantly. No wonder I feel sleepy...&#0;</p>
2601             
2602             
2603             	
2604             
2605 rizwank 1.1 
2606             
2607             <div class="posted">
2608             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000326" title="Permanent Link to this Post.">01:10 PM</a><?php
2609             if ($hits) { 
2610                print " | Read ";
2611                echo "$hits";
2612                print " time";
2613                if($hits != 1) echo 's';
2614             }
2615             ?>
2616             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=326" onclick="OpenComments(this.href); return false">Comments (0)</a>
2617             	
2618             	
2619             </div>
2620             
2621             </div>
2622             <?php
2623             
2624             // display the list of referers
2625             echo '<div class="sidetitle">Referrers</div>', "\n";
2626 rizwank 1.1 echo '<div class="side">', "\n";
2627             
2628             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=326 GROUP BY referer ORDER BY count DESC, title';
2629             
2630             $rs = mysql_query( $sql );
2631             $n = 0;
2632             
2633             while( $row = mysql_fetch_assoc( $rs ) ) {
2634               $referer1 = $row['referer'];
2635               $title = $row['title'];
2636               $count = $row['count'];
2637               $search = $row['search'];
2638             
2639               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
2640                 $n++;
2641                 echo '<a href="', $referer1, '" target="_blank">';
2642                 echo $title . "</a> [" . $count . "]<br />\n";
2643               }
2644             }
2645             
2646             if (!($n)) {
2647 rizwank 1.1    echo "No referrals yet<br />";
2648             }
2649             else {
2650             echo "<br />\n";
2651             echo 'referrers [referrals]<br />';
2652             }
2653             echo '</div>';
2654             
2655             echo "<div class='sidetitle'>Search Terms</div>\n";
2656             echo "<div class='side'>";
2657             
2658             $rs = mysql_query( $sql );
2659             $n = 0;
2660             
2661             while( $row = mysql_fetch_assoc( $rs ) ) {
2662               $query = '';
2663             
2664               $referer1 = $row['referer'];
2665               $title = $row['title'];
2666               $count = $row['count'];
2667               $search = $row['search'];
2668 rizwank 1.1 
2669               if ($search == 1) {
2670                 $n++;
2671                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
2672                 echo $query . ' [' . $count . ']' . "<br />\n";
2673               }
2674             }
2675             
2676             if (!($n)) { echo "No search terms yet<br />"; }
2677             else { echo "<br />search terms [hits]"; }
2678             echo "</div>";
2679             ?>
2680             
2681             
2682             
2683             <!--
2684             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
2685                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
2686                      xmlns:dc="http://purl.org/dc/elements/1.1/">
2687             <rdf:Description
2688                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000325"
2689 rizwank 1.1     trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/324"
2690                 dc:title="Few Randoms"
2691                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000325"
2692                 dc:subject=""
2693                 dc:description="School today. Meeting with Counselors went well, signed another Academic Agreement, and talked to Lila about transferring my classes back into UCLA. Class one stats&amp;#8230; I&amp;#8217;m not &amp;#8216;in&amp;#8217; yet, so I have to get a PTE # &amp;#8230; Reasonably boring,..."
2694                 dc:creator="Rizwank"
2695                 dc:date="2004-04-05T19:08:56-08:00" />
2696             </rdf:RDF>
2697             -->
2698             
2699             
2700             <h2 class="date">April 05, 2004</h2>
2701             
2702             
2703             <div class="blogbody">
2704             <a name="000325"></a>
2705             <?php
2706             
2707             // record the referer
2708             if ($my_ip !== $remote_ip) {
2709                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (325, '$referer', '', $time)" );
2710 rizwank 1.1 }
2711             
2712             // get the no. of times this entry has been read
2713             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=325' );
2714             $row = mysql_fetch_row( $rs );
2715             $hits = $row[0];
2716             
2717             ?>
2718             <h3 class="title">Few Randoms</h3>
2719              
2720             <p>  <table align="left"><tr valign="bottom"><td>
2721                <p style="font-size:16pt"><b>
2722                 S</b>
2723                </p>
2724               </td></tr></table>
2725              chool today.</p>
2726             
2727             <p>Meeting with Counselors went well, signed another Academic Agreement, and talked to Lila about transferring my classes back into <span class="caps">UCLA.</span></p>
2728             
2729             <p>Class one stats&#8230; I&#8217;m not &#8216;in&#8217; yet, so I have to get a <span class="caps">PTE </span># &#8230; Reasonably boring, had to leave early to get They Might Be Giants tickets for some friends (last day and I have solid classes till 6)&#8230;</p>
2730             
2731 rizwank 1.1 <p>Class two, Network programming. Whats scary is that I couldn&#8217;t find the building or the classroom&#8230; I actually <span class="caps">FORGOT</span> where Knudsen was, this class in which I had slept through SO many physics classes. It went ok, boring as hell, I really don&#8217;t think the professor should have to explain that the &#8216;Internet is growing&#8217;. I get it. Rest was expl. of different communication systems, packet relaying, etc&#8230; until he got into some strange probability statistics that didn&#8217;t make much sense to any of us, it seems. I doubt hes going to test it. Professors should avoid following long complicated steps to prove something that doesn&#8217;t need to be proved, and that you don&#8217;t expect your students to prove, (or even fully understand the proof) &#8230; a lot of Math and Physics professors do that.</p>
2732             
2733             <p>Class three, Programming Languages. Def. the shining star of the quarter. As we walk in Prof asks us to code the following&#8230;</p>
2734             
2735             <blockquote><span class="caps">INPUT </span>: A text file with sentances.
2736             <span class="caps">OUTPUT </span>: A sorted list (decreasing numerically) of word frequencies.<br />
2737             <span class="caps">DEFINITIONS </span>: Word = [A-Za-z]+ and case is significant.</blockquote>
2738             
2739             <p>I knew as soon as he handed it that he would provide us with a one line answer after we spent ten minutes scrambling to write code.</p>
2740             
2741             <p>I designed mine as such (psuedo code, and I didnt finish in time (no one did) anyhow, but I feel like sharing)</p>
2742             
2743             <blockquote>struct key { string word; int index; };
2744             class container {<br />
2745             public :<br />
2746               void init();<br />
2747               void add(string);<br />
2748               void print();<br />
2749             private:<br />
2750               key db<sup class="footnote"><a href="http://www.geekymedia.com/archives/2004/04/index.html#fn1024">1024</a></sup>;<br />
2751               int next = 0;<br />
2752 rizwank 1.1 }</blockquote>
2753             
2754             <p>Init set all the key values to 0.<br />
2755             Add did a for loop through the db until a matching string was found, if not, add it in key &#8216;next&#8217; and incr next.</p>
2756             
2757             <p>I got that far in 8 minutes before my hand started to cramp&#8230; what was missed was the print algo (not too hard, find the highest value for index, do a for from index_high to 1 and then for inside the entire loop. The loaders pretty easy, get_line with delimiter of space (doesn&#8217;t deal with &#8216;.&#8217; sadly) and put it in with add(string).</p>
2758             
2759             <p>Now let me mention that we were told Quick and Dirty. If I cared at all about &#8230; well given more time, I&#8217;d have used a hash table&#8230;</p>
2760             
2761             <p>Anyhow, of course, he had the miracle solution.<br />
2762             Turns out its an old story of two leading CS folks in the 60&#8217;s (one of which went on to write some amazing book&#8230; the details are in my notes, but I don&#8217;t feel like transcribing)&#8230; the student wrote a very elegant solution using hash tries &#8230; no, not trees. Yeah, no one in class had heard of a &#8216;trie&#8217; either. The person who asked the question (worked at Bell Labs) gave this (theres some syntax missing but whatever)</p>
2763             
2764             <blockquote>tr -c-s &#8216;A-Za-z&#8217; &#8216;\012&#8217; | sort | uniq -c | sort -nr</blockquote>
2765             
2766             <p>Now, a very good argument can be made for the students case, because this solution uses <span class="caps">UNIX</span> libraries and commands and can&#8217;t really be considered coding&#8230; that being said, his way of approaching it is what was amazing&#8230;. Actually, I feel like writing more in detail about what I learned about notations/langauges&#8230; more on this later.</p>
2767             
2768             <p>Oh wow, I still haven&#8217;t blogged my Columbus trip, crap.</p>
2769             
2770             <p>Last class&#8230; yeah I was late for it. I came into a computer lab and vegged for a while, I had a migrane coming on. Bad habit I know&#8230; I arrived to a boring class on Databasing systems that might have potential, but at the moment was a snorefest&#8230; took him half an hour to get through half of the syllabus ;p Sat next to a cute girl named Yasmin which was nice&#8230; we chatted slightly. </p>
2771             
2772             <p>People get really uncomfortable when I talk to them&#8230; :sigh:</p>
2773 rizwank 1.1 
2774             <p>So yeah, thats my day&#8230;</p>
2775             
2776             <p>Some interesting stuff&#8230;</p>
2777             
2778             <p><a href="http://www.macnn.com/news/24091" title="New utility strips DRM from iTunes Music Store tracks ">New utility strips <span class="caps">DRM</span> from iTunes Music Store tracks </a><br />
2779             So what will playfair do for you? The playfair program is quite simple. It takes one of the iTMS Protected <span class="caps">AAC </span>Audio Files, decodes it using a key obtained from your iPod or Microsoft Windows system and then writes the new, decoded version to disk as a regular <span class="caps">AAC </span>Audio File. It then optionally copies the metadata tags that describe the song, including the cover art, to the new file.</p>
2780             
2781             <p>Thats really bad for the iTunes store&#8230; by the way <span class="caps">I FINALLY</span> won a free song! ;p<br />
2782             Turns out you could <a href="http://www.techfreaks.org/articles/faq.shtml" title="do it">do it</a> in Windows for months ;p</p>
2783             
2784             <p>I&#8217;m almost against such a project&#8230; I love free media and all, don&#8217;t get me wrong, and I&#8217;m quoted in Newsweek for saying that no consumer encryption schema will ever pass muster, but &#8230; this is a paradigm shift folks&#8230; this is the change in the music industry, give them some time to stabilize!</p>
2785             
2786             <p>According to C|Net News, Ingvar Kamprad, founder of <span class="caps">IKEA,</span> is now the richest man with an estimated worth of about $53 billion. Poor Billy, he&#8217;s only worth $47 billion</p>
2787             
2788             <p>The latest version of <span class="caps">PC </span>Gamer indicates that EverQuest II will have actual speech from <span class="caps">NPC</span> characters. So far no <span class="caps">MMORPG</span> has done this; it has all been text you have to read in on your screen. It is expecting there will be over 130 hours of talking dialogue from <span class="caps">NPC</span>&#8217;s.</p>
2789             
2790             <p>According to this <a href="http://games.slashdot.org/article.pl?sid=04/03/31/0216258" title="Slashdot ">Slashdot </a>article, Homestarr Runner the <span class="caps">RPG</span> for the Atari console is near completion. Check out the demo here and the official website here. (Wow, thats &#8230; cool&#8230; or scary).. no wait, its for the Atari console alright&#8230; the 2600! Yes, thats <b>def.</b> cool.</p>
2791             
2792             <p>It drives me nuts how long I can surf the web and still find interesting stuff to read.</p>
2793             
2794 rizwank 1.1 <p>A <a href="http://www.mcvuk.com/html/news/story.jsp?newsId=1926940" title="MCV "><span class="caps">MCV </span></a>study shows that 60% of hardcore Xbox gamers have chipped (or modded) consoles. They also say most go a step further and download games and emulators off the internet. </p>
2795             
2796             <p>Electric Light Orchestra rocks, I&#8217;ve been listening to them constantly&#8230;</p>
2797             
2798             <p><a href="http://google.weblogsinc.com/" title="the unoffical google weblog.">the unoffical google weblog.</a></p>
2799             
2800             <p>From <a href="http://www.dandelionwine.org/archives/000393.php" title="Dandelion Wine">Dandelion Wine</a> :<br />
2801             I&#8217;m a sucker for a story with a happy ending, and both of these stories have happy endings.</p>
2802             
2803             <p><a href="http://www.engadget.com/entry/4968643653231631/" title="To catch a cell phone thief">To catch a cell phone thief</a><br />
2804             <i>So some high school student in Ohio had her phone stolen, but rather than just give up, she decided to call the phone and see who answered, and in the process managed to help bust up a ring of thieves who had been breaking into cars all over that part of the state.</i></p>
2805             
2806             <p><a href="http://www.linux.ie/pipermail/ilug/2004-April/013049.html" title="I fought the scammer ... and I won">I fought the scammer &#8230; and I won</a><i>He asks them what the problem is and is told to step away from the computer. He doesn&#8217;t seem too happy about this, but does so. He&#8217;s asked his name and is told that he might like to come down for a chat in the local station. He says his wallet and ID are in the booth, so he walks in, rips a <span class="caps">USB</span> memory stick from the side of his laptop, tries to swallow it and makes a run for it.</i></p>
2807             
2808             <p>Probably one of my favorite posts from <a href="http://www.upsaid.com/timiat/index.php?action=viewcom&amp;id=204" title="Dixie">Dixie</a>:<br />
2809             <a href="http://blog.zmag.org/ttt/" title="Noam Chomsky">Noam Chomsky</a> has started blogging. Now, whenever I read something offensive from someone on the other side of the political spectrum, I can just link over to Noam and remember why it is some people become so militantly conservative.</p>
2810             
2811             <p>She says I do something that a lot of others do, I don&#8217;t blog a lot for a while then I super blog for a while. I need to become more consistent :)</p>
2812             
2813             <p><hr></p>
2814             
2815 rizwank 1.1 <p>I need a fellow coder:</p>
2816             
2817             <p><span class="caps">UCLA IEEE</span> is going to have the <a href="http://www.ee.ucla.edu/~ieee/activities/eweek/program.htm" title="IEEE Programming Contest "><span class="caps">IEEE </span>Programming Contest </a>on Tuesday, April 13th. We welcome you all to participate in the competition and walk away with our great prizes, which include Gamecubes, <span class="caps">MP3</span> players and etc. All you need is to use some basic programming skills that you learn in your freshman year and solve a given program within a limited time. A two-person team is strongly recommended. </p>
2818             
2819             <p>That&#8217;d be <span class="caps">AWESOME</span>!</p>
2820             
2821             <p>One random <span class="caps">UCLA</span> class I just stumbled on &#8216;P2P Computing Fundamentals&#8217;&#8230;</p>
2822             
2823             <p>They&#8217;ve changed their summer offerings&#8230; it looks like they&#8217;ll have plenty of courses I can take for the summer, so I can&#8217;t really justify to myself any desire to go to New York or Nor cal and work at a radio station when I could be getting closer to graduating&#8230;.</p>
2824             
2825             
2826             	
2827             
2828             
2829             
2830             <div class="posted">
2831             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000325" title="Permanent Link to this Post.">07:08 PM</a><?php
2832             if ($hits) { 
2833                print " | Read ";
2834                echo "$hits";
2835                print " time";
2836 rizwank 1.1    if($hits != 1) echo 's';
2837             }
2838             ?>
2839             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=325" onclick="OpenComments(this.href); return false">Comments (1)</a>
2840             	
2841             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=325" onclick="OpenTrackback(this.href); return false">TrackBack</a>
2842             	
2843             </div>
2844             
2845             </div>
2846             <?php
2847             
2848             // display the list of referers
2849             echo '<div class="sidetitle">Referrers</div>', "\n";
2850             echo '<div class="side">', "\n";
2851             
2852             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=325 GROUP BY referer ORDER BY count DESC, title';
2853             
2854             $rs = mysql_query( $sql );
2855             $n = 0;
2856             
2857 rizwank 1.1 while( $row = mysql_fetch_assoc( $rs ) ) {
2858               $referer1 = $row['referer'];
2859               $title = $row['title'];
2860               $count = $row['count'];
2861               $search = $row['search'];
2862             
2863               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
2864                 $n++;
2865                 echo '<a href="', $referer1, '" target="_blank">';
2866                 echo $title . "</a> [" . $count . "]<br />\n";
2867               }
2868             }
2869             
2870             if (!($n)) {
2871                echo "No referrals yet<br />";
2872             }
2873             else {
2874             echo "<br />\n";
2875             echo 'referrers [referrals]<br />';
2876             }
2877             echo '</div>';
2878 rizwank 1.1 
2879             echo "<div class='sidetitle'>Search Terms</div>\n";
2880             echo "<div class='side'>";
2881             
2882             $rs = mysql_query( $sql );
2883             $n = 0;
2884             
2885             while( $row = mysql_fetch_assoc( $rs ) ) {
2886               $query = '';
2887             
2888               $referer1 = $row['referer'];
2889               $title = $row['title'];
2890               $count = $row['count'];
2891               $search = $row['search'];
2892             
2893               if ($search == 1) {
2894                 $n++;
2895                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
2896                 echo $query . ' [' . $count . ']' . "<br />\n";
2897               }
2898             }
2899 rizwank 1.1 
2900             if (!($n)) { echo "No search terms yet<br />"; }
2901             else { echo "<br />search terms [hits]"; }
2902             echo "</div>";
2903             ?>
2904             
2905             
2906             
2907             <!--
2908             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
2909                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
2910                      xmlns:dc="http://purl.org/dc/elements/1.1/">
2911             <rdf:Description
2912                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000324"
2913                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/323"
2914                 dc:title="Moving Day!"
2915                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000324"
2916                 dc:subject=""
2917                 dc:description="Situ with Lora is weird. She&amp;#8217;s aware of the difficulty of LDRs (Long Distance Relationships) and effectively said no. We are still whatever, but shes going to continue dating others and (grr) get close with this Steve guy. (Dixie says..."
2918                 dc:creator="Rizwank"
2919                 dc:date="2004-04-03T09:04:05-08:00" />
2920 rizwank 1.1 </rdf:RDF>
2921             -->
2922             
2923             
2924             <h2 class="date">April 03, 2004</h2>
2925             
2926             
2927             <div class="blogbody">
2928             <a name="000324"></a>
2929             <?php
2930             
2931             // record the referer
2932             if ($my_ip !== $remote_ip) {
2933                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (324, '$referer', '', $time)" );
2934             }
2935             
2936             // get the no. of times this entry has been read
2937             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=324' );
2938             $row = mysql_fetch_row( $rs );
2939             $hits = $row[0];
2940             
2941 rizwank 1.1 ?>
2942             <h3 class="title">Moving Day!</h3>
2943              
2944             <p>  <table align="left"><tr valign="bottom"><td>
2945                <p style="font-size:16pt"><b>
2946                 S</b>
2947                </p>
2948               </td></tr></table>
2949              itu with Lora is weird. She&#8217;s aware of the difficulty of LDRs (Long Distance Relationships) and effectively said no. We are still whatever, but shes going to continue dating others and (grr) get close with this Steve guy. (Dixie says Hurrah, LDRs suck.)</p>
2950             
2951             <p>I had soem issues, but I&#8217;m past those now, and I&#8217;ll deal. That being said, there is a time in <span class="caps">EVERY</span> relationship of mine (sans one) that this sentiment is <a href="http://www.livejournal.com/users/ozreiuosn/29491.html" title="expressed">expressed</a>:</p>
2952             
2953             <blockquote>im tired of thinkin of others.
2954             
2955             <p>this time its for me! im gonna be selfish. im gonna think about what i want for once.</p>
2956             
2957             sorry if youre gonna get hurt, this time its for me. im gonna do what i want.</blockquote>
2958             
2959             <p>One thing I really liked about Lora, and something we discussed, is the fact that she wasn&#8217;t selfish to me. I try to open myself fully and give myself fully to the person I&#8217;m dating (sadly, again, with one exception); and I&#8217;ve always hated the &#8216;I&#8217;m going to be selfish&#8217; sentiment, and Lora knew that too. And agreed with it.</p>
2960             
2961             <p>What do I do now? Nothing&#8230; I&#8217;ll deal. I&#8217;m be happy with a phone friend and someone who comes to visit me on occasion&#8230; We&#8217;ve both said how much we wish we lived near each other and how we could take advantage of the potential of our chemistry, and who knows for the future&#8230; but for now, c&#8217;est la vie. One (sad?) thing about growing up is that I give up ( stopping the  constant pining) on people a lot easier&#8230; makes splitting up harder, but what about when the &#8216;One&#8217; comes?<br />
2962 rizwank 1.1 <hr>
2963             Dad committed a major Faux Pas yesterday, saying one of the things that NO parent should ever say to their child&#8230; and its even harder in the context that my parents aren&#8217;t doing well at all. I was going to dish and freak out and berate him, but he actually apologized just now, a record (18 hours!); so I think I&#8217;ll give him some slack.<br />
2964             <hr>
2965             <span class="caps">MOVING DAY</span>! Thanks to some incompetence by the old tenant, I have no key, so its time to rely on the grace of the Landlord to let me in. Back to <span class="caps">UCLA,</span> its scary. Brian and Nichole were genuinely sad to see me go, its touching how close we&#8217;ve gotten and I&#8217;m really going to try to keep it up. Two guys at <span class="caps">FNM, </span>Josue (pronouced, stunningly, as Josh) and Tony; I&#8217;ve gotten reasonably clsoe to them too.. they are about my age and realize how much <span class="caps">FNM</span> was about blowing off steam and acting like a child, as much as it was about kicking some Magic ass.</p>
2966             
2967             <p>Target time, for last minute supplies.</p>
2968             
2969             
2970             	
2971             
2972             
2973             
2974             <div class="posted">
2975             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000324" title="Permanent Link to this Post.">09:04 AM</a><?php
2976             if ($hits) { 
2977                print " | Read ";
2978                echo "$hits";
2979                print " time";
2980                if($hits != 1) echo 's';
2981             }
2982             ?>
2983 rizwank 1.1 		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=324" onclick="OpenComments(this.href); return false">Comments (0)</a>
2984             	
2985             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=324" onclick="OpenTrackback(this.href); return false">TrackBack</a>
2986             	
2987             </div>
2988             
2989             </div>
2990             <?php
2991             
2992             // display the list of referers
2993             echo '<div class="sidetitle">Referrers</div>', "\n";
2994             echo '<div class="side">', "\n";
2995             
2996             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=324 GROUP BY referer ORDER BY count DESC, title';
2997             
2998             $rs = mysql_query( $sql );
2999             $n = 0;
3000             
3001             while( $row = mysql_fetch_assoc( $rs ) ) {
3002               $referer1 = $row['referer'];
3003               $title = $row['title'];
3004 rizwank 1.1   $count = $row['count'];
3005               $search = $row['search'];
3006             
3007               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
3008                 $n++;
3009                 echo '<a href="', $referer1, '" target="_blank">';
3010                 echo $title . "</a> [" . $count . "]<br />\n";
3011               }
3012             }
3013             
3014             if (!($n)) {
3015                echo "No referrals yet<br />";
3016             }
3017             else {
3018             echo "<br />\n";
3019             echo 'referrers [referrals]<br />';
3020             }
3021             echo '</div>';
3022             
3023             echo "<div class='sidetitle'>Search Terms</div>\n";
3024             echo "<div class='side'>";
3025 rizwank 1.1 
3026             $rs = mysql_query( $sql );
3027             $n = 0;
3028             
3029             while( $row = mysql_fetch_assoc( $rs ) ) {
3030               $query = '';
3031             
3032               $referer1 = $row['referer'];
3033               $title = $row['title'];
3034               $count = $row['count'];
3035               $search = $row['search'];
3036             
3037               if ($search == 1) {
3038                 $n++;
3039                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
3040                 echo $query . ' [' . $count . ']' . "<br />\n";
3041               }
3042             }
3043             
3044             if (!($n)) { echo "No search terms yet<br />"; }
3045             else { echo "<br />search terms [hits]"; }
3046 rizwank 1.1 echo "</div>";
3047             ?>
3048             
3049             
3050             
3051             <!--
3052             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
3053                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
3054                      xmlns:dc="http://purl.org/dc/elements/1.1/">
3055             <rdf:Description
3056                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000323"
3057                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/322"
3058                 dc:title="Damned April Fools"
3059                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000323"
3060                 dc:subject="Home"
3061                 dc:description="Slow day, plenty of &amp;#8216;West Wing,&amp;#8217; followed by some CnC Generals&amp;#8230; finally started packing. Got some boxes &amp;#8230; Freaked out when I saw that suprnova went Japanese, until I found the IRC channel and realized it was April Fools day...."
3062                 dc:creator="Rizwank"
3063                 dc:date="2004-04-01T23:40:16-08:00" />
3064             </rdf:RDF>
3065             -->
3066             
3067 rizwank 1.1 
3068             <h2 class="date">April 01, 2004</h2>
3069             
3070             
3071             <div class="blogbody">
3072             <a name="000323"></a>
3073             <?php
3074             
3075             // record the referer
3076             if ($my_ip !== $remote_ip) {
3077                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (323, '$referer', '', $time)" );
3078             }
3079             
3080             // get the no. of times this entry has been read
3081             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=323' );
3082             $row = mysql_fetch_row( $rs );
3083             $hits = $row[0];
3084             
3085             ?>
3086             <h3 class="title">Damned April Fools</h3>
3087              
3088 rizwank 1.1 <p>  <table align="left"><tr valign="bottom"><td>
3089                <p style="font-size:16pt"><b>
3090                 S</b>
3091                </p>
3092               </td></tr></table>
3093              low day, plenty of &#8216;West Wing,&#8217; followed by some CnC Generals&#8230; finally started packing. Got some boxes &#8230; Freaked out when I saw that <a href="http://www.suprnova.org" title="suprnova">suprnova</a> went Japanese, until I found the <span class="caps">IRC</span> channel and realized it was April Fools day.</p>
3094             
3095             <p>Lora and I talked on occasion during the day, one long conversation with her at the park was interuppted with my mom calling, annoyed that my dad doesnt&#8217; want to take her to the airport. Here&#8217;s the thing&#8230; shes going on about something that is, in the overall state, a small thing. I don&#8217;t know why she lets it bug her so much&#8230; any how, Lora hung up after being on hold for a while, and later on, she mentioned that &#8216;she&#8217;d never have a long distance relationship&#8217;&#8230;. One of her other boys is coming back to the country and she said &#8216;I haven&#8217;t told him about Steve (someone whos pursuing her in RL) yet&#8230;&#8217; I&#8217;m like, what about me? &#8230; She never stated that she wasn&#8217;t willing to try it, she said that she didnt like it, but that <span class="caps">OAK</span> to <span class="caps">LAX</span> wasn&#8217;t so far as to make it untenable&#8230; we part as I need to think&#8230; when I get back up, she starts telling me how shes been weird and out of sorts for the past few weeks&#8230;</p>
3096             
3097             <p>She tells me to read her blog and I do. She&#8217;s pregnant. Not with my baby, and she doesn&#8217;t know who the father is. I&#8217;m freaking out. What is she doing, why didnt she tell me, how does she not know the father&#8230; Then she reminds me its April 1. What a mean ass joke, esp when I was hurting as I was. In retrospect, it was funny as hell, but the timing was poor&#8230;. I contacted Dixie immediately and was like &#8216;OMG, what do I do?&#8217; and it turns out to be a funny. We part for a while as I de fume&#8230; after a few scattered conversations, we establish that we&#8217;d both really like if we lived near each other, but it isn&#8217;t to be so&#8230; so we are&#8230; whatever we are. We&#8217;ll still talk and hang out and do whatever&#8230; it just wont go anywhere, and that makes me sad, but it makes sense. anyhow, that&#8217;ll play out, but things will work out, so whatever.</p>
3098             
3099             <p>Serena&#8217;s seeing someone, as confirmed in comments&#8230; its bugging me slightly and I have NO idea why, but I hope she&#8217;s happy.</p>
3100             
3101             <p>By the way, why do we freak out at gas prices at $2.10? Its much more expensive elsewhere&#8230; and we rarely get told <span class="caps">WHY</span> they are going up&#8230; Turns out that Bush is considering giving Calif a waiver from the Clean Air Act&#8230; thats <span class="caps">BAD.</span></p>
3102             
3103             <p>I really respect McCain, reading about his recent pushes towards enviromentalisim&#8230; also Jerry Springer&#8230; listen to details about his history as a politiction before the show&#8230; A wonderful <a href="http://www.thisamericanlife.org/ra/258.ram" title="This American Life ">This American Life </a>episode. Ira Glass is speaking at <span class="caps">UCLA </span>:) I should look into interning there for this summer, or find some other radio job&#8230; call my friends at StarFM or ClearChannel&#8230;</p>
3104             
3105             <p>Dixie has a <a href="http://www.blogcoven.com/mt-archives/000177.html" title="treatise">treatise</a> on blog rules &#8230; its quite good. That being said, she didn&#8217;t follow them before&#8230; but she def does now. She just doesn&#8217;t post comments :annoy:</p>
3106             
3107             <p>Have I mentioned how much I apprecaite her? I think I undervalue her&#8230; she calls me on my shit, and is one of the people on the planet that I think is just massively smarter than I am &#8230; and you all know how hard that is for me to say. </p>
3108             
3109 rizwank 1.1 <p>Family sat down and talked about plans for school&#8230; early sleep for more packing tomorrow.. the computers all packed up so no random fun :( <span class="caps">FNM</span> tomorrow though :) Maybe a draft with Brian and Nichole too&#8230;</p>
3110             
3111             <p>There are plans to encircle the Capitol building with a fence for security reasons, restricting access to security checked people, but would give even more access now than there was before. That being said, it would cost <b><span class="caps">FIFTY MILLION DOLLARS</span></b> &#8230; why does every public project in this nation cost so much?</p>
3112             
3113             <p>One random thing, whenever I was at CSUpomona going up the elevator, when I reach for the &#8216;close door button&#8217; and I remember a Douglas Adams thing from one of his books where he theorized of a disease that would strike only Class-A&#8217;s &#8230; and the only transmission vectors would be the close door button. </p>
3114             
3115             <p>I don&#8217;t know if prision guard unions have too much <a href="http://www.nbc4.tv/news/2968940/detail.html" title="power">power</a>&#8230; I hate unions that block any reform&#8230; i.e. all of them. Or large corps either. </p>
3116             
3117             <p>One thing I&#8217;m thinking about politics&#8230; kinda inspired by a West Wing episode where two Supreme court justices were nominated, a far right and a far left judge, and everyone (granted, this was manufactured) was happy about it&#8230; I&#8217;ve noticed, I get really into people that are &#8230; well enthused. The crowds behind Dean should say something&#8230; we want invested statesmen, not middle of the line, compromising politions&#8230; Anyhow, bed time.</p>
3118             
3119             
3120             	
3121             
3122             
3123             
3124             <div class="posted">
3125             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000323" title="Permanent Link to this Post.">11:40 PM</a><?php
3126             if ($hits) { 
3127                print " | Read ";
3128                echo "$hits";
3129                print " time";
3130 rizwank 1.1    if($hits != 1) echo 's';
3131             }
3132             ?>
3133             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=323" onclick="OpenComments(this.href); return false">Comments (1)</a>
3134             	
3135             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=323" onclick="OpenTrackback(this.href); return false">TrackBack</a>
3136             	
3137             </div>
3138             
3139             </div>
3140             <?php
3141             
3142             // display the list of referers
3143             echo '<div class="sidetitle">Referrers</div>', "\n";
3144             echo '<div class="side">', "\n";
3145             
3146             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=323 GROUP BY referer ORDER BY count DESC, title';
3147             
3148             $rs = mysql_query( $sql );
3149             $n = 0;
3150             
3151 rizwank 1.1 while( $row = mysql_fetch_assoc( $rs ) ) {
3152               $referer1 = $row['referer'];
3153               $title = $row['title'];
3154               $count = $row['count'];
3155               $search = $row['search'];
3156             
3157               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
3158                 $n++;
3159                 echo '<a href="', $referer1, '" target="_blank">';
3160                 echo $title . "</a> [" . $count . "]<br />\n";
3161               }
3162             }
3163             
3164             if (!($n)) {
3165                echo "No referrals yet<br />";
3166             }
3167             else {
3168             echo "<br />\n";
3169             echo 'referrers [referrals]<br />';
3170             }
3171             echo '</div>';
3172 rizwank 1.1 
3173             echo "<div class='sidetitle'>Search Terms</div>\n";
3174             echo "<div class='side'>";
3175             
3176             $rs = mysql_query( $sql );
3177             $n = 0;
3178             
3179             while( $row = mysql_fetch_assoc( $rs ) ) {
3180               $query = '';
3181             
3182               $referer1 = $row['referer'];
3183               $title = $row['title'];
3184               $count = $row['count'];
3185               $search = $row['search'];
3186             
3187               if ($search == 1) {
3188                 $n++;
3189                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
3190                 echo $query . ' [' . $count . ']' . "<br />\n";
3191               }
3192             }
3193 rizwank 1.1 
3194             if (!($n)) { echo "No search terms yet<br />"; }
3195             else { echo "<br />search terms [hits]"; }
3196             echo "</div>";
3197             ?>
3198             
3199             
3200             
3201             <!--
3202             <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
3203                      xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
3204                      xmlns:dc="http://purl.org/dc/elements/1.1/">
3205             <rdf:Description
3206                 rdf:about="http://www.geekymedia.com/archives/2004/04/index.html#000322"
3207                 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/321"
3208                 dc:title="Head Shrinking"
3209                 dc:identifier="http://www.geekymedia.com/archives/2004/04/index.html#000322"
3210                 dc:subject=""
3211                 dc:description="Just saw Jersey Girl with HeatherW&amp;#8230; Day was a &amp;#8230; regular one. My appts with my academic counselor got cancelled yesterday :grr: so I just had my two shrink appts. On my way to my first one, I hit microsleep..."
3212                 dc:creator="Rizwank"
3213                 dc:date="2004-04-01T02:22:23-08:00" />
3214 rizwank 1.1 </rdf:RDF>
3215             -->
3216             
3217             
3218             
3219             
3220             <div class="blogbody">
3221             <a name="000322"></a>
3222             <?php
3223             
3224             // record the referer
3225             if ($my_ip !== $remote_ip) {
3226                mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (322, '$referer', '', $time)" );
3227             }
3228             
3229             // get the no. of times this entry has been read
3230             $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=322' );
3231             $row = mysql_fetch_row( $rs );
3232             $hits = $row[0];
3233             
3234             ?>
3235 rizwank 1.1 <h3 class="title">Head Shrinking</h3>
3236              
3237             <p>  <table align="left"><tr valign="bottom"><td>
3238                <p style="font-size:16pt"><b>
3239                 J</b>
3240                </p>
3241               </td></tr></table>
3242              ust saw Jersey Girl with HeatherW&#8230; </p>
3243             
3244             <p>Day was a &#8230; regular one. My appts with my academic counselor got cancelled yesterday :grr: so I just had my two shrink appts. On my way to my first one, I hit microsleep and side-ended a brand new 2004 <span class="caps">PT </span>Cruiser&#8230; :sigh: &#8230; Everyone was fine, minor scratches, but my first accident in a long while &#8230; made it to my first appt and discussed meds&#8230; we are trying out Stratera, a new non-stim <span class="caps">ADHD</span> drug, as well as moving some stimulants around the day to see if we can even out my energy a bit more (i.e. those sleep periods)&#8230; drove by my new apartment on Tiverton, then went to Bel Air camera to drop off some film&#8230;. 6 rolls, 4 slides. Asked them if they had any job openings (which I later did at the new <span class="caps">EB </span>Games) and signed up for a &#8216;Art of the Pin up&#8217; tutorial. Got some Spikes&#8217; Teriyaki (yum), and thought a bit about Helen and how much I screwed that up, and how a friend would be nice down here&#8230; also a bit about her stubbornness. Went to Sprint, hee-hawed and after a manager that was overworked ignored me and other customers to serve his friends, they gave me the past promoised discount (the manager that offered it to me had since left). Made it to Klaskin&#8217;s late due to the stupid drivers on Wilshire, the lame setup of the intersection light at Wilshire and Santa Monica and the slowness of the Sprint Manager&#8230; talked about traffic, Lora, moving back down, but the big thing&#8230; my &#8216;rents.</p>
3245             
3246             <p>Things are getting worse, and I&#8217;m really unaware of what to do&#8230; I&#8217;m glad I&#8217;m out of the house in many ways, and hopefully it will inspire them to fix/talk about whats going on (not likely).</p>
3247             
3248             <p>After that, long delayed drive to Pasadena, where Jersey Girl was watched and Ice-cream had. We talked for a while and then hung out in her flat, which was a blast&#8230; HeatherW is <b>the</b> I cannot accurately predict at all, ever. Its weird how much she knows and how much she thinks I need to learn and &#8230; well shes annoying as hell and I love her for it. </p>
3249             
3250             <p>I&#8217;m thinking about hitting up <span class="caps">VVHS,</span> my old high school tomorrow to visit some teachers as I move back. Would be fun&#8230; Of course I really <b>DO</b> need to pack. CnC Generals, Zero Hour isn&#8217;t helping that&#8230; Setting up my new Treo 600 wont help either, maybe I&#8217;ll just install the base apps needed.</p>
3251             
3252             <p>Turns out Serena is seeing someone; or something. HeatherW gave me the skinny on her blog and updates, I found it incredilby odd that she was updating me on my ex&#8217;s situ. </p>
3253             
3254             <p>:looks at the list of stuff to blog:</p>
3255             
3256 rizwank 1.1 <p>I&#8217;ll do it, I swear ;p</p>
3257             
3258             
3259             	
3260             
3261             
3262             
3263             <div class="posted">
3264             	<div class="posted">Penned by <!-- Rizwank --><script type="text/javascript" src="http://www.geekymedia.com/email.js"></script>  at <a href="http://www.geekymedia.com/archives/2004/04/index.html#000322" title="Permanent Link to this Post.">02:22 AM</a><?php
3265             if ($hits) { 
3266                print " | Read ";
3267                echo "$hits";
3268                print " time";
3269                if($hits != 1) echo 's';
3270             }
3271             ?>
3272             		| <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=322" onclick="OpenComments(this.href); return false">Comments (1)</a>
3273             	
3274             		| <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&amp;entry_id=322" onclick="OpenTrackback(this.href); return false">TrackBack</a>
3275             	
3276             </div>
3277 rizwank 1.1 
3278             </div>
3279             <?php
3280             
3281             // display the list of referers
3282             echo '<div class="sidetitle">Referrers</div>', "\n";
3283             echo '<div class="side">', "\n";
3284             
3285             $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=322 GROUP BY referer ORDER BY count DESC, title';
3286             
3287             $rs = mysql_query( $sql );
3288             $n = 0;
3289             
3290             while( $row = mysql_fetch_assoc( $rs ) ) {
3291               $referer1 = $row['referer'];
3292               $title = $row['title'];
3293               $count = $row['count'];
3294               $search = $row['search'];
3295             
3296               if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
3297                 $n++;
3298 rizwank 1.1     echo '<a href="', $referer1, '" target="_blank">';
3299                 echo $title . "</a> [" . $count . "]<br />\n";
3300               }
3301             }
3302             
3303             if (!($n)) {
3304                echo "No referrals yet<br />";
3305             }
3306             else {
3307             echo "<br />\n";
3308             echo 'referrers [referrals]<br />';
3309             }
3310             echo '</div>';
3311             
3312             echo "<div class='sidetitle'>Search Terms</div>\n";
3313             echo "<div class='side'>";
3314             
3315             $rs = mysql_query( $sql );
3316             $n = 0;
3317             
3318             while( $row = mysql_fetch_assoc( $rs ) ) {
3319 rizwank 1.1   $query = '';
3320             
3321               $referer1 = $row['referer'];
3322               $title = $row['title'];
3323               $count = $row['count'];
3324               $search = $row['search'];
3325             
3326               if ($search == 1) {
3327                 $n++;
3328                 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
3329                 echo $query . ' [' . $count . ']' . "<br />\n";
3330               }
3331             }
3332             
3333             if (!($n)) { echo "No search terms yet<br />"; }
3334             else { echo "<br />search terms [hits]"; }
3335             echo "</div>";
3336             ?>
3337             
3338             
3339             
3340 rizwank 1.1 </div>
3341             </div>
3342             <?php
3343             //Change the following to your email address
3344             $email = "rizwank@geekymedia.com";
3345             
3346             if(eregi("googlebot",$_SERVER['HTTP_USER_AGENT'])) 
3347             { 
3348             mail($email, "Googlebot detected",
3349             "Google has crawled : ".$_SERVER['REQUEST_URI']); 
3350             }
3351             ?>
3352             <br>
3353             <php
3354             $rs = mysql_query( "SELECT * FROM mt_entryhits" );
3355             $deletetime = time() - (60 * 60 * 24);
3356             mysql_query( "DELETE FROM mt_entryhits WHERE time < $deletetime and entry_id = 0" );
3357             
3358             while ($row = mysql_fetch_assoc($rs)) {
3359                if ($referer == $row['referer']) {
3360                   $title = $row['title'];
3361 rizwank 1.1    }
3362             }
3363             
3364             if (($title == '') || (strpos($title,'ttp://')) && ($referer !== '')) {
3365                if ($title1 = getquery($referer)) {
3366                   $title = addslashes($title1);
3367                   $search = 1;
3368                }
3369                else { $search = 0; }
3370                if (!($search)) { $title = addslashes(URLHelper::getTitle($referer)); }
3371                if (strpos($referer,'encquery')) {
3372                   $title = addslashes(substr($title,26,-2));
3373                   $search = 1;
3374                }
3375                if (strpos($referer,'info.dogpl')) {
3376                   $title = substr($title,21);
3377                   $search = 1;
3378                }
3379                if ((trim($title) == '-') || (trim($title) === '')) { $title = $referer; }
3380                if (!($search) && (strlen(trim($title)) > 45)) {$title = substr($title,0,42) . "..."; }
3381                else if (trim(strlen($title)) > 52) { $title = substr($title,0,49) . "..."; }
3382 rizwank 1.1 }
3383             
3384             mysql_query( "UPDATE mt_entryhits SET title='$title', search=$search WHERE referer='$referer'" );
3385             
3386             function getquery($ref){
3387                 $queries = array("search=", "epq=", "p=", "qkw=", "q=", "query=", "va=", "qry=", "userQuery=", "searchfor=", "question=", "sb=");
3388             
3389                 while(list($key,$val)=each($queries)){
3390                     $pos = 0;//initialize
3391                     $pos = strpos($ref, $val);
3392                     if (strpos($ref,'encquery')) { $pos = 0; }
3393                     #$ret .= "($pos $val)";
3394                     if($pos > 0){
3395                         $endpos = strpos ($ref, "&", $pos);
3396                         if(trim($endpos) == ""){
3397                             $search = substr($ref, ($pos+strlen($val)), strlen($ref)-$pos);
3398                         }else{
3399                             $search = substr ($ref, ($pos+strlen($val)), ($endpos-$pos)-2);
3400                         }
3401                         $endpos = strpos ($search, "&");
3402                         if(trim($endpos)) {
3403 rizwank 1.1                 $search = substr ($search, 0, $endpos);
3404                         }
3405                         $searched = trim($search);
3406                         $searched = str_replace("+", " ", $search);
3407                         $searched = str_replace("%2E", ".", $searched);
3408                         $searched = str_replace("%2B", "+", $searched);
3409                         $searched = str_replace("%2b", "+", $searched);
3410                         $searched = str_replace("%22", '"', $searched);
3411                         $searched = str_replace("%22", '"', $searched);
3412                         $searched = str_replace("%20", " ", $searched);
3413                         $searched = str_replace("%3F", "?", $searched);
3414                         $searched = str_replace("%28", "(", $searched);
3415                         $searched = str_replace("%27", "'", $searched);
3416                         $searched = str_replace("%3A", ":", $searched);
3417                         $searched = str_replace("%2C", ",", $searched);
3418                         $searched = str_replace("%24", "$", $searched);
3419                         $searched = str_replace("%21", "!", $searched);
3420                         $searched = str_replace("%5C", "\\", $searched);
3421                         $searched = str_replace("%2F", "/", $searched);
3422                         if(trim($searched) == ""){
3423                             $searched = substr($ref, $pos, strlen($ref)-$pos)."($endpos)";
3424 rizwank 1.1             }
3425                     }
3426                 }
3427                 if(trim($searched) !== "") {
3428                     return "$searched";
3429                 }else{
3430                     return false;
3431                 }
3432             }// end function
3433             
3434             ?>
3435             
3436             
3437             </body>
3438             </html>

Rizwan Kassim
Powered by
ViewCVS 0.9.2