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: June 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/05/index.html" title="May 2004" />
13
14 <link rel="next" href="http://www.geekymedia.com/archives/2004/09/index.html" title="September 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'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/05/index.html">« May 2004</a> |
100
101 <a href="http://www.geekymedia.com/">Main</a>
102 | <a href="http://www.geekymedia.com/archives/2004/09/index.html">September 2004 »</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/06/index.html#000359"
116 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/353"
117 dc:title="News of the recent weeks and bloggage"
118 dc:identifier="http://www.geekymedia.com/archives/2004/06/index.html#000359"
119 dc:subject="Linkage"
120 dc:description="Personal stuff soon, but interesting articles first: A speech given to MSFT research about the evils of DRM Senator Hatch (who used to understand stuff) has introduced the INDUCE Act, which will criminalize the act of inducing another to commit..."
121 dc:creator="Rizwank"
122 dc:date="2004-06-28T12:45:26-08:00" />
123 </rdf:RDF>
124 -->
125
126
127 rizwank 1.1 <h2 class="date">June 28, 2004</h2>
128
129
130 <div class="blogbody">
131 <a name="000359"></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 (359, '$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=359' );
141 $row = mysql_fetch_row( $rs );
142 $hits = $row[0];
143
144 ?>
145 <h3 class="title">News of the recent weeks and bloggage</h3>
146
147 <p> <table align="left"><tr valign="bottom"><td>
148 rizwank 1.1 <p style="font-size:16pt"><b>
149 P</b>
150 </p>
151 </td></tr></table>
152 ersonal stuff soon, but interesting articles first:</p>
153
154 <p><a href="http://craphound.com/msftdrm.txt">A speech given to <span class="caps">MSFT</span> research about the evils of <span class="caps">DRM</span></a></p>
155
156 <p>Senator Hatch (who used to understand stuff) has introduced the <span class="caps">INDUCE </span>Act, which will criminalize the act of inducing another to commit a copyright violation. This is a brand new theory of copyright liability, which, as this floor statement makes clear, is directed at overturning Sony with respect to p2p. </p>
157
158 <p>The proposal alone is troubling enough. But the outrageous part is that there is talk that this massive new layer of federal regulation of technology will happen without hearings — indeed, that it will be passed in the next weeks. <a href="http://www.lessig.org/blog/archives/001988.shtml">More…</a></p>
159
160 <p>Washington, <span class="caps">DC, </span>Jun. 24 (UPI) — After choosing his running mate, <span class="caps">U.S.</span> presidential candidate Ralph Nader urged likely Democratic nominee Sen. John Kerry to pick Sen. John Edwards as his own. <a href="http://washingtontimes.com/upi-breaking/20040624-042248-1914r.htm">More…</a></p>
161
162 <p>While browsing through <a href="http://www.lerdorf.com/tips.pdf">Rasmus’s Tips and Tricks </a>slides from his talk at <span class="caps">PHP</span>Con, I think I found my answer (on page 25 of the accursed <span class="caps">PDF</span> file), in what he calls “funky caching.” It works like this: you redirect 404 errors to a <span class="caps">PHP</span> script, which looks at the requested <span class="caps">URL,</span> decides whether it should actually exist, and if it should it builds the file from the database, saves it to the filesystem, and then returns the page to whoever requested it. Next time that <span class="caps">URL</span> is requested, the static file will be served. <br />
163 <a href="http://philringnalda.com/blog/2002/11/halfbaked_and_a_little_fried.php">More…</a></p>
164
165 <p><a href="http://weblogs.mozillazine.org/doron/">Notification in Mozilla when Gmail arrives</a></p>
166
167 <p>Some really good stuff currently at <a href="http://www.juancole.com/">informed consent</a>.</p>
168
169 rizwank 1.1 <p><a href="http://www.rabidsquirrel.net/G-Mailto/">G-Mailto</a> is a utility that automatically associates “mailto” email links on the web with GMail. So clicking a link like this: Email me! will open up the GMail compose window instead of opening up something like Outlook Express that doesn’t work with GMail (yet). <a href="http://www.dandelionwine.org/">More…</a></p>
170
171 <p><a href="http://www.microsoft.com/technet/prodtechnol/winxppro/sp2preview.mspx">Windows <span class="caps">XP </span>Service Pack 2 - RC</a></p>
172
173
174
175
176
177
178 <div class="posted">
179 <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/06/index.html#000359" title="Permanent Link to this Post.">12:45 PM</a><?php
180 if ($hits) {
181 print " | Read ";
182 echo "$hits";
183 print " time";
184 if($hits != 1) echo 's';
185 }
186 ?>
187 | <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=359" onclick="OpenComments(this.href); return false">Comments (0)</a>
188
189 | <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&entry_id=359" onclick="OpenTrackback(this.href); return false">TrackBack</a>
190 rizwank 1.1
191 </div>
192
193 </div>
194 <?php
195
196 // display the list of referers
197 echo '<div class="sidetitle">Referrers</div>', "\n";
198 echo '<div class="side">', "\n";
199
200 $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=359 GROUP BY referer ORDER BY count DESC, title';
201
202 $rs = mysql_query( $sql );
203 $n = 0;
204
205 while( $row = mysql_fetch_assoc( $rs ) ) {
206 $referer1 = $row['referer'];
207 $title = $row['title'];
208 $count = $row['count'];
209 $search = $row['search'];
210
211 rizwank 1.1 if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
212 $n++;
213 echo '<a href="', $referer1, '" target="_blank">';
214 echo $title . "</a> [" . $count . "]<br />\n";
215 }
216 }
217
218 if (!($n)) {
219 echo "No referrals yet<br />";
220 }
221 else {
222 echo "<br />\n";
223 echo 'referrers [referrals]<br />';
224 }
225 echo '</div>';
226
227 echo "<div class='sidetitle'>Search Terms</div>\n";
228 echo "<div class='side'>";
229
230 $rs = mysql_query( $sql );
231 $n = 0;
232 rizwank 1.1
233 while( $row = mysql_fetch_assoc( $rs ) ) {
234 $query = '';
235
236 $referer1 = $row['referer'];
237 $title = $row['title'];
238 $count = $row['count'];
239 $search = $row['search'];
240
241 if ($search == 1) {
242 $n++;
243 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
244 echo $query . ' [' . $count . ']' . "<br />\n";
245 }
246 }
247
248 if (!($n)) { echo "No search terms yet<br />"; }
249 else { echo "<br />search terms [hits]"; }
250 echo "</div>";
251 ?>
252
253 rizwank 1.1
254
255 <!--
256 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
257 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
258 xmlns:dc="http://purl.org/dc/elements/1.1/">
259 <rdf:Description
260 rdf:about="http://www.geekymedia.com/archives/2004/06/index.html#000358"
261 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/352"
262 dc:title="Sites back up"
263 dc:identifier="http://www.geekymedia.com/archives/2004/06/index.html#000358"
264 dc:subject=""
265 dc:description="Site is back up. I&#8217;m going to Santa Cruz to meet Sarah&#8217;s family. Fear, Anticipation, Excitement. Finals are nuts. Car is going to be towed back to Victorville. 7 hours till my last two finals; im hiding in the computer..."
266 dc:creator="Rizwank"
267 dc:date="2004-06-16T01:04:49-08:00" />
268 </rdf:RDF>
269 -->
270
271
272 <h2 class="date">June 16, 2004</h2>
273
274 rizwank 1.1
275 <div class="blogbody">
276 <a name="000358"></a>
277 <?php
278
279 // record the referer
280 if ($my_ip !== $remote_ip) {
281 mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (358, '$referer', '', $time)" );
282 }
283
284 // get the no. of times this entry has been read
285 $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=358' );
286 $row = mysql_fetch_row( $rs );
287 $hits = $row[0];
288
289 ?>
290 <h3 class="title">Sites back up</h3>
291
292 <p> <table align="left"><tr valign="bottom"><td>
293 <p style="font-size:16pt"><b>
294 S</b>
295 rizwank 1.1 </p>
296 </td></tr></table>
297 ite is back up.</p>
298
299 <p>I’m going to Santa Cruz to meet Sarah’s family. Fear, Anticipation, Excitement.</p>
300
301 <p>Finals are nuts. Car is going to be towed back to Victorville.</p>
302
303 <p>7 hours till my last two finals; im hiding in the computer lab on campus until the campus police stop searching the night library; I can’t find my bruincard and they’ll throw me out if i dont have it.</p>
304
305 <p>Resetup my email forwarding so it doesn’t die if Groupnetwork died (i mean when groupnetwork dies again)</p>
306
307 <p>Gmail is quite cool, email me if you want an invite. Props to Lora for getting me started.</p>
308
309 <p>Suddenly had an urge to find something that hilights code if posted on the site, of course thats more entertaining than studying.</p>
310
311 <p><a href="http://www.andre-simon.de/">Highlight converts source code to formatted text with syntax highlighting.</a><br />
312 problem: its not in real time.<br />
313 Others :<br />
314 http://www.elise.com/mt/archives/000235display_code_in_entries.php<br />
315 http://people.ssh.com/mtr/genscript/<br />
316 rizwank 1.1 http://rafb.net/paste/results/ (the backend!)<br />
317 http://colorer.sourceforge.net/</p>
318
319 Have I noted how my python rocks? Its quite cool, any language that lets you do<br />
320 <blockquote>for line in array:
321 line = blah</blockquote>
322
323 <p>I’m just saying, thats a nifty way to do fors.<br />
324 Regex rocks too.</p>
325
326 <p>I’m noticing more and more inefficiency in my code… using an O(n^2) solution when a O(nlogn) sol was available, my java code for a file parser being roughly three times the size of my TAs… practice I guess.</p>
327
328 <p>Amazingly, there is no Madonna on my ipod right now and I’m sad about that. Also I’m sad that I can’t find any of the Tolkien Ensemble (without, you know, actually buying the Cd’s from denmark)… </p>
329
330 <p><span class="caps">VH1</span> had a new program on today, the “Top 100 moments that rocked TV”… #1 being Clintion playing the sax on Aresenio Hall… I wish I watched that show when it was out… Anyhow, a good 5 hours went there, instead of , you know, studying.</p>
331
332
333
334
335
336
337 rizwank 1.1 <div class="posted">
338 <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/06/index.html#000358" title="Permanent Link to this Post.">01:04 AM</a><?php
339 if ($hits) {
340 print " | Read ";
341 echo "$hits";
342 print " time";
343 if($hits != 1) echo 's';
344 }
345 ?>
346 | <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=358" onclick="OpenComments(this.href); return false">Comments (0)</a>
347
348 | <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&entry_id=358" onclick="OpenTrackback(this.href); return false">TrackBack</a>
349
350 </div>
351
352 </div>
353 <?php
354
355 // display the list of referers
356 echo '<div class="sidetitle">Referrers</div>', "\n";
357 echo '<div class="side">', "\n";
358 rizwank 1.1
359 $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=358 GROUP BY referer ORDER BY count DESC, title';
360
361 $rs = mysql_query( $sql );
362 $n = 0;
363
364 while( $row = mysql_fetch_assoc( $rs ) ) {
365 $referer1 = $row['referer'];
366 $title = $row['title'];
367 $count = $row['count'];
368 $search = $row['search'];
369
370 if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
371 $n++;
372 echo '<a href="', $referer1, '" target="_blank">';
373 echo $title . "</a> [" . $count . "]<br />\n";
374 }
375 }
376
377 if (!($n)) {
378 echo "No referrals yet<br />";
379 rizwank 1.1 }
380 else {
381 echo "<br />\n";
382 echo 'referrers [referrals]<br />';
383 }
384 echo '</div>';
385
386 echo "<div class='sidetitle'>Search Terms</div>\n";
387 echo "<div class='side'>";
388
389 $rs = mysql_query( $sql );
390 $n = 0;
391
392 while( $row = mysql_fetch_assoc( $rs ) ) {
393 $query = '';
394
395 $referer1 = $row['referer'];
396 $title = $row['title'];
397 $count = $row['count'];
398 $search = $row['search'];
399
400 rizwank 1.1 if ($search == 1) {
401 $n++;
402 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
403 echo $query . ' [' . $count . ']' . "<br />\n";
404 }
405 }
406
407 if (!($n)) { echo "No search terms yet<br />"; }
408 else { echo "<br />search terms [hits]"; }
409 echo "</div>";
410 ?>
411
412
413
414 <!--
415 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
416 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
417 xmlns:dc="http://purl.org/dc/elements/1.1/">
418 <rdf:Description
419 rdf:about="http://www.geekymedia.com/archives/2004/06/index.html#000357"
420 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/351"
421 rizwank 1.1 dc:title="AP: McCain Rejects Kerry's VP Overture"
422 dc:identifier="http://www.geekymedia.com/archives/2004/06/index.html#000357"
423 dc:subject=""
424 dc:description="This just makes me sad&#8230; I would have loved that. AP: McCain Rejects Kerry&#8217;s VP Overture WASHINGTON (AP) - Republican Sen. John McCain has personally rejected John Kerry&#8217;s overtures to join the Democratic presidential ticket and forge a bipartisan alliance..."
425 dc:creator="Rizwank"
426 dc:date="2004-06-11T16:13:11-08:00" />
427 </rdf:RDF>
428 -->
429
430
431 <h2 class="date">June 11, 2004</h2>
432
433
434 <div class="blogbody">
435 <a name="000357"></a>
436 <?php
437
438 // record the referer
439 if ($my_ip !== $remote_ip) {
440 mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (357, '$referer', '', $time)" );
441 }
442 rizwank 1.1
443 // get the no. of times this entry has been read
444 $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=357' );
445 $row = mysql_fetch_row( $rs );
446 $hits = $row[0];
447
448 ?>
449 <h3 class="title">AP: McCain Rejects Kerry's VP Overture</h3>
450
451 <p> <table align="left"><tr valign="bottom"><td>
452 <p style="font-size:16pt"><b>
453 T</b>
454 </p>
455 </td></tr></table>
456 his just makes me sad… I would have loved that.</p>
457
458 <p><a href="http://cnn.aimtoday.cnn.com/news/story.jsp?oldflok=FF-APO-1131&idq=/ff/story/0001%2F20040611%2F1840506112.htm&sc=1131&flok=NW_5-L1">AP: McCain Rejects Kerry’s <span class="caps">VP </span>Overture</a><br />
459 <span class="caps">WASHINGTON </span>(AP) - Republican Sen. John McCain has personally rejected John Kerry’s overtures to join the Democratic presidential ticket and forge a bipartisan alliance against President Bush, The Associated Press has learned. </p>
460
461 <p>Kerry has asked McCain as recently as late last month to consider becoming his running mate, but the Arizona senator said he’s not interested, said a Democratic official who spoke on condition of anonymity because Kerry has insisted that his deliberations be kept private. A second official familiar with the conversations confirmed the account, and said the Arizona senator made it clear he won’t change his mind. </p>
462
463 rizwank 1.1
464
465
466
467
468 <div class="posted">
469 <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/06/index.html#000357" title="Permanent Link to this Post.">04:13 PM</a><?php
470 if ($hits) {
471 print " | Read ";
472 echo "$hits";
473 print " time";
474 if($hits != 1) echo 's';
475 }
476 ?>
477 | <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=357" onclick="OpenComments(this.href); return false">Comments (0)</a>
478
479 | <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&entry_id=357" onclick="OpenTrackback(this.href); return false">TrackBack</a>
480
481 </div>
482
483 </div>
484 rizwank 1.1 <?php
485
486 // display the list of referers
487 echo '<div class="sidetitle">Referrers</div>', "\n";
488 echo '<div class="side">', "\n";
489
490 $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=357 GROUP BY referer ORDER BY count DESC, title';
491
492 $rs = mysql_query( $sql );
493 $n = 0;
494
495 while( $row = mysql_fetch_assoc( $rs ) ) {
496 $referer1 = $row['referer'];
497 $title = $row['title'];
498 $count = $row['count'];
499 $search = $row['search'];
500
501 if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
502 $n++;
503 echo '<a href="', $referer1, '" target="_blank">';
504 echo $title . "</a> [" . $count . "]<br />\n";
505 rizwank 1.1 }
506 }
507
508 if (!($n)) {
509 echo "No referrals yet<br />";
510 }
511 else {
512 echo "<br />\n";
513 echo 'referrers [referrals]<br />';
514 }
515 echo '</div>';
516
517 echo "<div class='sidetitle'>Search Terms</div>\n";
518 echo "<div class='side'>";
519
520 $rs = mysql_query( $sql );
521 $n = 0;
522
523 while( $row = mysql_fetch_assoc( $rs ) ) {
524 $query = '';
525
526 rizwank 1.1 $referer1 = $row['referer'];
527 $title = $row['title'];
528 $count = $row['count'];
529 $search = $row['search'];
530
531 if ($search == 1) {
532 $n++;
533 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
534 echo $query . ' [' . $count . ']' . "<br />\n";
535 }
536 }
537
538 if (!($n)) { echo "No search terms yet<br />"; }
539 else { echo "<br />search terms [hits]"; }
540 echo "</div>";
541 ?>
542
543
544
545 <!--
546 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
547 rizwank 1.1 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
548 xmlns:dc="http://purl.org/dc/elements/1.1/">
549 <rdf:Description
550 rdf:about="http://www.geekymedia.com/archives/2004/06/index.html#000356"
551 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/350"
552 dc:title="So many things"
553 dc:identifier="http://www.geekymedia.com/archives/2004/06/index.html#000356"
554 dc:subject=""
555 dc:description="So many things&#8230; incompetent TA&#8217;s, things up and down with Sarah, remembering other gals that DID do a lot of cute things, finals and massive projects looming, car totally dead, but only one thing entertained me so much I HAD..."
556 dc:creator="Rizwank"
557 dc:date="2004-06-03T01:33:51-08:00" />
558 </rdf:RDF>
559 -->
560
561
562 <h2 class="date">June 03, 2004</h2>
563
564
565 <div class="blogbody">
566 <a name="000356"></a>
567 <?php
568 rizwank 1.1
569 // record the referer
570 if ($my_ip !== $remote_ip) {
571 mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (356, '$referer', '', $time)" );
572 }
573
574 // get the no. of times this entry has been read
575 $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=356' );
576 $row = mysql_fetch_row( $rs );
577 $hits = $row[0];
578
579 ?>
580 <h3 class="title">So many things</h3>
581
582 <p> <table align="left"><tr valign="bottom"><td>
583 <p style="font-size:16pt"><b>
584 S</b>
585 </p>
586 </td></tr></table>
587 o many things… incompetent TA’s, things up and down with Sarah, remembering other gals that <span class="caps">DID</span> do a lot of cute things, finals and massive projects looming, car totally dead, but only one thing entertained me so much <span class="caps">I HAD</span> to post.</p>
588
589 rizwank 1.1 <p><span class="caps">THE SENATE AIDE</span> who blogged her sex secrets has been named and fired. Jessica Cutler, 24, who has become better known in Washington circles as “Washingtonienne”, was fired last week from her job as an entry-level aide to Republican Senator Mike DeWine. <br />
590 Her blog, which she set up so she didn’t have to write so many emails to her friends, detailed her sex-ploits in the corridors of power.</p>
591
592 <p>http://washingtoniennejessicacutler.blogspot.com/<br />
593 http://www.theinquirer.net/?article=16158</p>
594
595 <p>Oh, and from the Enigma List<br />
596 - What if the Election Were today<br />
597 <a href="Election Projection 2004">http://www.electionprojection.com/elections2004.html?89,29</a></p>
598
599 <p>Oh, and <a href="http://www.allofmp3.com"><span class="caps">ALLOFMP3</span></a> still rocks.</p>
600
601
602
603
604
605
606 <div class="posted">
607 <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/06/index.html#000356" title="Permanent Link to this Post.">01:33 AM</a><?php
608 if ($hits) {
609 print " | Read ";
610 rizwank 1.1 echo "$hits";
611 print " time";
612 if($hits != 1) echo 's';
613 }
614 ?>
615 | <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=356" onclick="OpenComments(this.href); return false">Comments (0)</a>
616
617 | <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&entry_id=356" onclick="OpenTrackback(this.href); return false">TrackBack</a>
618
619 </div>
620
621 </div>
622 <?php
623
624 // display the list of referers
625 echo '<div class="sidetitle">Referrers</div>', "\n";
626 echo '<div class="side">', "\n";
627
628 $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=356 GROUP BY referer ORDER BY count DESC, title';
629
630 $rs = mysql_query( $sql );
631 rizwank 1.1 $n = 0;
632
633 while( $row = mysql_fetch_assoc( $rs ) ) {
634 $referer1 = $row['referer'];
635 $title = $row['title'];
636 $count = $row['count'];
637 $search = $row['search'];
638
639 if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
640 $n++;
641 echo '<a href="', $referer1, '" target="_blank">';
642 echo $title . "</a> [" . $count . "]<br />\n";
643 }
644 }
645
646 if (!($n)) {
647 echo "No referrals yet<br />";
648 }
649 else {
650 echo "<br />\n";
651 echo 'referrers [referrals]<br />';
652 rizwank 1.1 }
653 echo '</div>';
654
655 echo "<div class='sidetitle'>Search Terms</div>\n";
656 echo "<div class='side'>";
657
658 $rs = mysql_query( $sql );
659 $n = 0;
660
661 while( $row = mysql_fetch_assoc( $rs ) ) {
662 $query = '';
663
664 $referer1 = $row['referer'];
665 $title = $row['title'];
666 $count = $row['count'];
667 $search = $row['search'];
668
669 if ($search == 1) {
670 $n++;
671 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
672 echo $query . ' [' . $count . ']' . "<br />\n";
673 rizwank 1.1 }
674 }
675
676 if (!($n)) { echo "No search terms yet<br />"; }
677 else { echo "<br />search terms [hits]"; }
678 echo "</div>";
679 ?>
680
681
682
683 </div>
684 </div>
685 <?php
686 //Change the following to your email address
|
688 rizwank 1.1
689 if(eregi("googlebot",$_SERVER['HTTP_USER_AGENT']))
690 {
691 mail($email, "Googlebot detected",
692 "Google has crawled : ".$_SERVER['REQUEST_URI']);
693 }
694 ?>
695 <br>
696 <php
697 $rs = mysql_query( "SELECT * FROM mt_entryhits" );
698 $deletetime = time() - (60 * 60 * 24);
699 mysql_query( "DELETE FROM mt_entryhits WHERE time < $deletetime and entry_id = 0" );
700
701 while ($row = mysql_fetch_assoc($rs)) {
702 if ($referer == $row['referer']) {
703 $title = $row['title'];
704 }
705 }
706
707 if (($title == '') || (strpos($title,'ttp://')) && ($referer !== '')) {
708 if ($title1 = getquery($referer)) {
709 rizwank 1.1 $title = addslashes($title1);
710 $search = 1;
711 }
712 else { $search = 0; }
713 if (!($search)) { $title = addslashes(URLHelper::getTitle($referer)); }
714 if (strpos($referer,'encquery')) {
715 $title = addslashes(substr($title,26,-2));
716 $search = 1;
717 }
718 if (strpos($referer,'info.dogpl')) {
719 $title = substr($title,21);
720 $search = 1;
721 }
722 if ((trim($title) == '-') || (trim($title) === '')) { $title = $referer; }
723 if (!($search) && (strlen(trim($title)) > 45)) {$title = substr($title,0,42) . "..."; }
724 else if (trim(strlen($title)) > 52) { $title = substr($title,0,49) . "..."; }
725 }
726
727 mysql_query( "UPDATE mt_entryhits SET title='$title', search=$search WHERE referer='$referer'" );
728
729 function getquery($ref){
730 rizwank 1.1 $queries = array("search=", "epq=", "p=", "qkw=", "q=", "query=", "va=", "qry=", "userQuery=", "searchfor=", "question=", "sb=");
731
732 while(list($key,$val)=each($queries)){
733 $pos = 0;//initialize
734 $pos = strpos($ref, $val);
735 if (strpos($ref,'encquery')) { $pos = 0; }
736 #$ret .= "($pos $val)";
737 if($pos > 0){
738 $endpos = strpos ($ref, "&", $pos);
739 if(trim($endpos) == ""){
740 $search = substr($ref, ($pos+strlen($val)), strlen($ref)-$pos);
741 }else{
742 $search = substr ($ref, ($pos+strlen($val)), ($endpos-$pos)-2);
743 }
744 $endpos = strpos ($search, "&");
745 if(trim($endpos)) {
746 $search = substr ($search, 0, $endpos);
747 }
748 $searched = trim($search);
749 $searched = str_replace("+", " ", $search);
750 $searched = str_replace("%2E", ".", $searched);
751 rizwank 1.1 $searched = str_replace("%2B", "+", $searched);
752 $searched = str_replace("%2b", "+", $searched);
753 $searched = str_replace("%22", '"', $searched);
754 $searched = str_replace("%22", '"', $searched);
755 $searched = str_replace("%20", " ", $searched);
756 $searched = str_replace("%3F", "?", $searched);
757 $searched = str_replace("%28", "(", $searched);
758 $searched = str_replace("%27", "'", $searched);
759 $searched = str_replace("%3A", ":", $searched);
760 $searched = str_replace("%2C", ",", $searched);
761 $searched = str_replace("%24", "$", $searched);
762 $searched = str_replace("%21", "!", $searched);
763 $searched = str_replace("%5C", "\\", $searched);
764 $searched = str_replace("%2F", "/", $searched);
765 if(trim($searched) == ""){
766 $searched = substr($ref, $pos, strlen($ref)-$pos)."($endpos)";
767 }
768 }
769 }
770 if(trim($searched) !== "") {
771 return "$searched";
772 rizwank 1.1 }else{
773 return false;
774 }
775 }// end function
776
777 ?>
778
779
780 </body>
781 </html>
|