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: May 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/04/index.html" title="April 2004" />
13
14 <link rel="next" href="http://www.geekymedia.com/archives/2004/06/index.html" title="June 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/04/index.html">« April 2004</a> |
100
101 <a href="http://www.geekymedia.com/">Main</a>
102 | <a href="http://www.geekymedia.com/archives/2004/06/index.html">June 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/05/index.html#000355"
116 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/349"
117 dc:title="Even more links, whatever."
118 dc:identifier="http://www.geekymedia.com/archives/2004/05/index.html#000355"
119 dc:subject=""
120 dc:description="A Creative Interpretation of the Metroid Soundtrack Emulators for Palm PDAs: An Overview of the Best Video game fans dance off extra pounds Neat Image - best noise reduction for digital cameras and scanners Miscellaneous Overlaps between Sports Night &amp;..."
121 dc:creator="Rizwank"
122 dc:date="2004-05-30T11:41:41-08:00" />
123 </rdf:RDF>
124 -->
125
126
127 rizwank 1.1 <h2 class="date">May 30, 2004</h2>
128
129
130 <div class="blogbody">
131 <a name="000355"></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 (355, '$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=355' );
141 $row = mysql_fetch_row( $rs );
142 $hits = $row[0];
143
144 ?>
145 <h3 class="title">Even more links, whatever.</h3>
146
147 <p><a href="http://metroidmetal.com/"> <table align="left"><tr valign="bottom"><td>
148 rizwank 1.1 <p style="font-size:16pt"><b>
149 A</b>
150 </p>
151 </td></tr></table>
152 Creative Interpretation of the Metroid Soundtrack</a><br />
153 <a href="http://www.the-gadgeteer.com/palmos-emulators-review.html">Emulators for Palm PDAs: An Overview of the Best</a><br />
154 <a href="http://www.cnn.com/2004/TECH/fun.games/05/24/video.game.diet.ap/index.html">Video game fans dance off extra pounds</a><br />
155 <a href="http://www.neatimage.com/index.html">Neat Image - best noise reduction for digital cameras and scanners</a><br />
156 <a href="http://westwing.bewarne.com/overlaps/sports_misc2.html">Miscellaneous Overlaps between Sports Night & West Wing</a> <br />
157 <a href="http://www.gba-flash-card.tk/">Gameboy Flash Advance Cards (also 4 <span class="caps">GBA SP</span>)</a><br />
158 <a href="http://www.stargeek.com/">Stargeek <span class="caps">PHP </span>News</a><br />
159 <a href="http://www.defamer.com/topic/dvrs-secret-weapons-in-advertisers-web-of-evil-009837.php">DVRs: Secret Weapons In Advertisers’ Web Of Evil?</a><br />
160 <a href="http://www.erinartscentre.com/events/viola2003/saunders_wilfred.html">Harry’s Dad!</a><br />
161 <a href="http://biz.yahoo.com/fo/040520/5fc91d41b9368f5b73189313fb2b029c_1.html">Why the Rich Live Longer</a><br />
162 <a href="http://www.torrentstorm.com/">Another Good BT client - TorrentStorm</a><br />
163 <a href="http://ozreiuosn.yafro.com/">ozreiuosn’s Yafro Moblog</a></p>
164
165 <p><a href="http://www.wizards.com/dci/judge/main.asp?x=articles/jc19991112a">God and Gaming</a><br />
166 <a href="http://www.wizards.com/dci/judge/main.asp?x=articles/jc20020122c">Outsiders Looking In: Creating a Good Impression (Magic)</a><br />
167 <a href="http://www.wizards.com/default.asp?x=judge/article/20040518b">Public Speaking for Judges</a></p>
168
169 rizwank 1.1
170
171
172
173
174 <div class="posted">
175 <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/05/index.html#000355" title="Permanent Link to this Post.">11:41 AM</a><?php
176 if ($hits) {
177 print " | Read ";
178 echo "$hits";
179 print " time";
180 if($hits != 1) echo 's';
181 }
182 ?>
183 | <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=355" onclick="OpenComments(this.href); return false">Comments (0)</a>
184
185 | <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&entry_id=355" onclick="OpenTrackback(this.href); return false">TrackBack</a>
186
187 </div>
188
189 </div>
190 rizwank 1.1 <?php
191
192 // display the list of referers
193 echo '<div class="sidetitle">Referrers</div>', "\n";
194 echo '<div class="side">', "\n";
195
196 $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=355 GROUP BY referer ORDER BY count DESC, title';
197
198 $rs = mysql_query( $sql );
199 $n = 0;
200
201 while( $row = mysql_fetch_assoc( $rs ) ) {
202 $referer1 = $row['referer'];
203 $title = $row['title'];
204 $count = $row['count'];
205 $search = $row['search'];
206
207 if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
208 $n++;
209 echo '<a href="', $referer1, '" target="_blank">';
210 echo $title . "</a> [" . $count . "]<br />\n";
211 rizwank 1.1 }
212 }
213
214 if (!($n)) {
215 echo "No referrals yet<br />";
216 }
217 else {
218 echo "<br />\n";
219 echo 'referrers [referrals]<br />';
220 }
221 echo '</div>';
222
223 echo "<div class='sidetitle'>Search Terms</div>\n";
224 echo "<div class='side'>";
225
226 $rs = mysql_query( $sql );
227 $n = 0;
228
229 while( $row = mysql_fetch_assoc( $rs ) ) {
230 $query = '';
231
232 rizwank 1.1 $referer1 = $row['referer'];
233 $title = $row['title'];
234 $count = $row['count'];
235 $search = $row['search'];
236
237 if ($search == 1) {
238 $n++;
239 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
240 echo $query . ' [' . $count . ']' . "<br />\n";
241 }
242 }
243
244 if (!($n)) { echo "No search terms yet<br />"; }
245 else { echo "<br />search terms [hits]"; }
246 echo "</div>";
247 ?>
248
249
250
251 <!--
252 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
253 rizwank 1.1 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
254 xmlns:dc="http://purl.org/dc/elements/1.1/">
255 <rdf:Description
256 rdf:about="http://www.geekymedia.com/archives/2004/05/index.html#000354"
257 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/348"
258 dc:title="Is it fair?"
259 dc:identifier="http://www.geekymedia.com/archives/2004/05/index.html#000354"
260 dc:subject=""
261 dc:description="I haven&#8217;t blogged in a while, same excuses, school, life etc. Am I being unfair? I try to be good to the people I date. I didn&#8217;t treat Serena as well as I should of, and I regret that. The..."
262 dc:creator="Rizwank"
263 dc:date="2004-05-30T03:56:38-08:00" />
264 </rdf:RDF>
265 -->
266
267
268
269
270 <div class="blogbody">
271 <a name="000354"></a>
272 <?php
273
274 rizwank 1.1 // record the referer
275 if ($my_ip !== $remote_ip) {
276 mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (354, '$referer', '', $time)" );
277 }
278
279 // get the no. of times this entry has been read
280 $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=354' );
281 $row = mysql_fetch_row( $rs );
282 $hits = $row[0];
283
284 ?>
285 <h3 class="title">Is it fair?</h3>
286
287 <p> <table align="left"><tr valign="bottom"><td>
288 <p style="font-size:16pt"><b>
289 I</b>
290 </p>
291 </td></tr></table>
292 haven’t blogged in a while, same excuses, school, life etc. </p>
293
294 <p>Am I being unfair?</p>
295 rizwank 1.1
296 <p>I try to be good to the people I date. I didn’t treat Serena as well as I should of, and I regret that. The first two weeks of our relationship is how the rest should have gone too.</p>
297
298 <p>anyhow, I try to be good. Sarah was quite ill last weekend and after visiting her in the morning on my way to an event, I realized how horrible she felt…. and no one likes to be alone then. I skipped the event, which was financially and socially important to me so that I could take care of her. I felt terrible for welching on a commitment but I felt her need was stronger than theirs/mine. However much I’d like to feel as if I did something special, it was the only proper thing to do and I’d do it again.</p>
299
300 <p>Today, after a long day (of fun, mind you, gaming with fellow <a href="http://home.att.net/~popepat/maxicon4/">Enigmans</a>, as some disappointments, on my way home, I get a call from a friend, suggesting that we visit her (Sarah’s) post cast party. Sarah was drunk and mocked me a bit for telling her that I missed her. (I said so saying that she would have enjoyed the events.) Thats ok, shes drunk and apologized later. I’m feelin a bit left out, but I resolve that her best friend is in town and I’ll not act like a little boy, something I do too often. I’d already told her how I felt about things the previous day when I told her how much I hated the way she talked to me in front of her friends, snapping at me and yelling a few times. That was a big deal for me and she genuinely took it in.<br />
301 I drop her and her friends and my friend off, and just as I start to leave her dorm…</p>
302
303 <p>:CRACK:</p>
304
305 <p>The pedal for my clutch dies. Or the cable snaps… or something. My car won’t shift gears or event start up again. Lovely.</p>
306
307 <p>I kick a few things (need to work on my anger management, I get too emotional nowadays) and realize how thankful I should be that this didnt happen on the <span class="caps">I5. </span>Sarah comes back and I explain that my clutch died and that I can’t drive. She asks what the plan is, I deicde to call triple A. we go up to her apartment and her friend comes in… This person immediately offers to help push my car… something that neither Sarah or her friend offered. (In all fairness, I didn’t say “oh how will I get my car from A to B” … I said “my cars dead …. I’ll call <span class="caps">AAA</span>”).. I wasn’t expecting it from her friend, and it was quite nice of her to offer.</p>
308
309 <p>Sarah’s got a massive blister and her friends quite tired, so after they prep for bed, I just go to the floor study lounge to pass the time. </p>
310
311 <p>I offered, yes. It’d be childish to be mad at her for letting me go, and I’m not <em>that</em> childish. That being said, I would have liked her to have had <span class="caps">SOME</span> concern for me, in that I’m probably facing massive car repair bills at a time I can’t handle it and while her and I aren’t exactly smooth sailing anyhow. Her leaving her room to come and give me a big hug and comfort me. Her taking a pillow and coming to sleep on my lap until <span class="caps">AAA</span> comes. </p>
312
313 <p>But no, she slept. And a good part of me says “good, she needed the sleep.” The rest of it wonders what happened to her being there for me? I do do these things for her, I dont know if I’m wrong in wanting them back. I show genuine concern for her and do things I normally wouldn’t for her. (I’m wearing my shirts untucked for chirst’s sake!)</p>
314
315 <p>No one ever has ever shown nearly as much effort in making me happy as I have them. No ones ever sent me random love letters just for the hell of it, with occasion or reciprocity in mind. No ones ever seduced me with one fourth of the effort I do with them… Is it the role of a male to feel this way? Like I’m constantly chasing the carrot at the end of the stick? </p>
316 rizwank 1.1
317 <p>Am I asking too much? Or am I right in feeling this?</p>
318
319
320
321
322
323
324 <div class="posted">
325 <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/05/index.html#000354" title="Permanent Link to this Post.">03:56 AM</a><?php
326 if ($hits) {
327 print " | Read ";
328 echo "$hits";
329 print " time";
330 if($hits != 1) echo 's';
331 }
332 ?>
333 | <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=354" onclick="OpenComments(this.href); return false">Comments (2)</a>
334
335 | <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&entry_id=354" onclick="OpenTrackback(this.href); return false">TrackBack</a>
336
337 rizwank 1.1 </div>
338
339 </div>
340 <?php
341
342 // display the list of referers
343 echo '<div class="sidetitle">Referrers</div>', "\n";
344 echo '<div class="side">', "\n";
345
346 $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=354 GROUP BY referer ORDER BY count DESC, title';
347
348 $rs = mysql_query( $sql );
349 $n = 0;
350
351 while( $row = mysql_fetch_assoc( $rs ) ) {
352 $referer1 = $row['referer'];
353 $title = $row['title'];
354 $count = $row['count'];
355 $search = $row['search'];
356
357 if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
358 rizwank 1.1 $n++;
359 echo '<a href="', $referer1, '" target="_blank">';
360 echo $title . "</a> [" . $count . "]<br />\n";
361 }
362 }
363
364 if (!($n)) {
365 echo "No referrals yet<br />";
366 }
367 else {
368 echo "<br />\n";
369 echo 'referrers [referrals]<br />';
370 }
371 echo '</div>';
372
373 echo "<div class='sidetitle'>Search Terms</div>\n";
374 echo "<div class='side'>";
375
376 $rs = mysql_query( $sql );
377 $n = 0;
378
379 rizwank 1.1 while( $row = mysql_fetch_assoc( $rs ) ) {
380 $query = '';
381
382 $referer1 = $row['referer'];
383 $title = $row['title'];
384 $count = $row['count'];
385 $search = $row['search'];
386
387 if ($search == 1) {
388 $n++;
389 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
390 echo $query . ' [' . $count . ']' . "<br />\n";
391 }
392 }
393
394 if (!($n)) { echo "No search terms yet<br />"; }
395 else { echo "<br />search terms [hits]"; }
396 echo "</div>";
397 ?>
398
399
400 rizwank 1.1
401 <!--
402 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
403 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
404 xmlns:dc="http://purl.org/dc/elements/1.1/">
405 <rdf:Description
406 rdf:about="http://www.geekymedia.com/archives/2004/05/index.html#000353"
407 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/347"
408 dc:title="Clearing up myIE2 again!"
409 dc:identifier="http://www.geekymedia.com/archives/2004/05/index.html#000353"
410 dc:subject="Linkage"
411 dc:description="DVD+-R(W) Help - Video Encoding, Conversion, etc. http://www.videohelp.com/ http://www.cdfreaks.com/ http://www.afterdawn.com/ http://www.doom9.org/ Video Encoding for Palm MT Tags in Pull-Down Menus Drop down menus without Java Optimizing your MovableType blog for Google Internet2 Hub - Peer to Peer Blogger Idol :..."
412 dc:creator="Rizwank"
413 dc:date="2004-05-17T14:32:32-08:00" />
414 </rdf:RDF>
415 -->
416
417
418 <h2 class="date">May 17, 2004</h2>
419
420
421 rizwank 1.1 <div class="blogbody">
422 <a name="000353"></a>
423 <?php
424
425 // record the referer
426 if ($my_ip !== $remote_ip) {
427 mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (353, '$referer', '', $time)" );
428 }
429
430 // get the no. of times this entry has been read
431 $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=353' );
432 $row = mysql_fetch_row( $rs );
433 $hits = $row[0];
434
435 ?>
436 <h3 class="title">Clearing up myIE2 again!</h3>
437
438 <p><span class="caps"> <table align="left"><tr valign="bottom"><td>
439 <p style="font-size:16pt"><b>
440 D</b>
441 </p>
442 rizwank 1.1 </td></tr></table>
443 VD</span>+-R(W) Help - Video Encoding, Conversion, etc.<br />
444 <a href="http://www.videohelp.com/">http://www.videohelp.com/</a><br />
445 <a href="http://www.cdfreaks.com/">http://www.cdfreaks.com/</a><br />
446 <a href="http://www.afterdawn.com/">http://www.afterdawn.com/</a><br />
447 <a href="http://www.doom9.org/">http://www.doom9.org/</a><br />
448 <a href="http://discuss.treocentral.com/showthread.php?t=49889">Video Encoding for Palm</a><br />
449 <a href="http://www.antipixel.com/blog/archives/2003/05/03/mt_tags_in_pulldown_menus.html"><span class="caps">MT </span>Tags in Pull-Down Menus</a><br />
450 <a href="http://www.wrightthisway.com/Articles/000022.html">Drop down menus without Java</a><br />
451 <a href="http://www.nicholascarvan.com/blog/optimizing_your_movabletype_blog_for_google.html">Optimizing your MovableType blog for Google</a><br />
452 <a href="http://s90036968.onlinehome.us/">Internet2 Hub - Peer to Peer</a><br />
453 <a href="http://www.livingroom.org.au/blog/archives/blogger_idol_week_13_blog_tips.php#more">Blogger Idol : The Theme for Week 13 is ‘Blog Tips’</a><br />
454 Even more reasons to use <i><a href="http://www.mozilla.org/products/firefox/">Firefox</a></i> : <a href="http://www.cxliv.org/jayseae/2004/05/10/extending_mozilla.html">Extending Mozilla</a> <br />
455 <a href="http://bradchoate.com/weblog/2004/04/21/adsense">Serving Google Ads</a><br />
456 <a href="http://forums.winamp.com/showthread.php?s=706262e90c6a9719e4cb92c1b185f38a&threadid=176711&highlight=ffdshow">Winamp Forums - Must have programs (some good ideas here!)</a><br />
457 <a href="http://www.gearbits.com/archives/000241.html">Evil Secrets of Windows <span class="caps">XP </span>- Media Center Edition</a><br />
458 <a href="http://www.hfml.sci.kun.nl/froglev.html">The Frog That Learned to Fly (Molecular Magnetism and Levitation)</a><br />
459 <a href="http://abclocal.go.com/wpvi/news/04132004_bb_sapphire.html">Scientists Create “Water” That Isn’t Wet</a><br />
460 <a href="http://www.bloglines.com/">Bloglines</a></p>
461
462 <p><a href="http://discuss.treocentral.com/showthread.php?t=44813&highlight=games">Games on my Treo 600</a><br />
463 rizwank 1.1 <a href="http://www.gambitstudios.com/forum/viewforum.php?f=5">GambitStudios <span class="caps">ETA</span> on a PalmOS5 Liberty Emulator</a></p>
464
465 <p><a href="http://www.professor-oak.com/Web%20Reporter.htm"><span class="caps">DCI </span>Web Reporter</a></p>
466
467 <p>I still have <a href="http://geekymedia.com/textpattern/textpattern/">Textpattern</a> Installed as an alternative blog engine, but its not at all setup…</p>
468
469
470
471
472
473
474 <div class="posted">
475 <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/05/index.html#000353" title="Permanent Link to this Post.">02:32 PM</a><?php
476 if ($hits) {
477 print " | Read ";
478 echo "$hits";
479 print " time";
480 if($hits != 1) echo 's';
481 }
482 ?>
483 | <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=353" onclick="OpenComments(this.href); return false">Comments (0)</a>
484 rizwank 1.1
485 | <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&entry_id=353" onclick="OpenTrackback(this.href); return false">TrackBack</a>
486
487 </div>
488
489 </div>
490 <?php
491
492 // display the list of referers
493 echo '<div class="sidetitle">Referrers</div>', "\n";
494 echo '<div class="side">', "\n";
495
496 $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=353 GROUP BY referer ORDER BY count DESC, title';
497
498 $rs = mysql_query( $sql );
499 $n = 0;
500
501 while( $row = mysql_fetch_assoc( $rs ) ) {
502 $referer1 = $row['referer'];
503 $title = $row['title'];
504 $count = $row['count'];
505 rizwank 1.1 $search = $row['search'];
506
507 if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
508 $n++;
509 echo '<a href="', $referer1, '" target="_blank">';
510 echo $title . "</a> [" . $count . "]<br />\n";
511 }
512 }
513
514 if (!($n)) {
515 echo "No referrals yet<br />";
516 }
517 else {
518 echo "<br />\n";
519 echo 'referrers [referrals]<br />';
520 }
521 echo '</div>';
522
523 echo "<div class='sidetitle'>Search Terms</div>\n";
524 echo "<div class='side'>";
525
526 rizwank 1.1 $rs = mysql_query( $sql );
527 $n = 0;
528
529 while( $row = mysql_fetch_assoc( $rs ) ) {
530 $query = '';
531
532 $referer1 = $row['referer'];
533 $title = $row['title'];
534 $count = $row['count'];
535 $search = $row['search'];
536
537 if ($search == 1) {
538 $n++;
539 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
540 echo $query . ' [' . $count . ']' . "<br />\n";
541 }
542 }
543
544 if (!($n)) { echo "No search terms yet<br />"; }
545 else { echo "<br />search terms [hits]"; }
546 echo "</div>";
547 rizwank 1.1 ?>
548
549
550
551 <!--
552 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
553 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
554 xmlns:dc="http://purl.org/dc/elements/1.1/">
555 <rdf:Description
556 rdf:about="http://www.geekymedia.com/archives/2004/05/index.html#000352"
557 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/346"
558 dc:title="Moveable Type 3.0"
559 dc:identifier="http://www.geekymedia.com/archives/2004/05/index.html#000352"
560 dc:subject="Blog News"
561 dc:description="I bit the bullet after SixApart updated their Moveable Type licensing setup&#8230; Had to mod some plugins to get MT3 working right, but now seems like a good time as any to start categorizing etc, so thats on the todo..."
562 dc:creator="Rizwank"
563 dc:date="2004-05-17T14:27:30-08:00" />
564 </rdf:RDF>
565 -->
566
567
568 rizwank 1.1
569
570 <div class="blogbody">
571 <a name="000352"></a>
572 <?php
573
574 // record the referer
575 if ($my_ip !== $remote_ip) {
576 mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (352, '$referer', '', $time)" );
577 }
578
579 // get the no. of times this entry has been read
580 $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=352' );
581 $row = mysql_fetch_row( $rs );
582 $hits = $row[0];
583
584 ?>
585 <h3 class="title">Moveable Type 3.0</h3>
586
587 <p> <table align="left"><tr valign="bottom"><td>
588 <p style="font-size:16pt"><b>
589 rizwank 1.1 I</b>
590 </p>
591 </td></tr></table>
592 bit the bullet after <a href="http://www.sixapart.com">SixApart</a> updated their Moveable Type licensing setup… Had to mod some plugins to get <span class="caps">MT3</span> working right, but now seems like a good time as any to start categorizing etc, so thats on the todo (minor but todo) list… </p>
593
594 <p>Choate has something <a href="http://bradchoate.com/weblog/2004/04/15/content-dislocation">cool</a> on de-referencing the extensions from your webpage to make all content pages seem like paths instead of php files…</p>
595
596 <p>Now lets see if the rebuild works…?</p>
597
598 <p><span class="caps">EDIT</span>: Rebuild was fine. I’m inexplicably disappointed that somehow my main page didn’t look entirely different… no reason it should, but it would have been cool :)</p>
599
600
601
602
603
604
605 <div class="posted">
606 <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/05/index.html#000352" title="Permanent Link to this Post.">02:27 PM</a><?php
607 if ($hits) {
608 print " | Read ";
609 echo "$hits";
610 rizwank 1.1 print " time";
611 if($hits != 1) echo 's';
612 }
613 ?>
614 | <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=352" onclick="OpenComments(this.href); return false">Comments (0)</a>
615
616 | <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&entry_id=352" onclick="OpenTrackback(this.href); return false">TrackBack</a>
617
618 </div>
619
620 </div>
621 <?php
622
623 // display the list of referers
624 echo '<div class="sidetitle">Referrers</div>', "\n";
625 echo '<div class="side">', "\n";
626
627 $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=352 GROUP BY referer ORDER BY count DESC, title';
628
629 $rs = mysql_query( $sql );
630 $n = 0;
631 rizwank 1.1
632 while( $row = mysql_fetch_assoc( $rs ) ) {
633 $referer1 = $row['referer'];
634 $title = $row['title'];
635 $count = $row['count'];
636 $search = $row['search'];
637
638 if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
639 $n++;
640 echo '<a href="', $referer1, '" target="_blank">';
641 echo $title . "</a> [" . $count . "]<br />\n";
642 }
643 }
644
645 if (!($n)) {
646 echo "No referrals yet<br />";
647 }
648 else {
649 echo "<br />\n";
650 echo 'referrers [referrals]<br />';
651 }
652 rizwank 1.1 echo '</div>';
653
654 echo "<div class='sidetitle'>Search Terms</div>\n";
655 echo "<div class='side'>";
656
657 $rs = mysql_query( $sql );
658 $n = 0;
659
660 while( $row = mysql_fetch_assoc( $rs ) ) {
661 $query = '';
662
663 $referer1 = $row['referer'];
664 $title = $row['title'];
665 $count = $row['count'];
666 $search = $row['search'];
667
668 if ($search == 1) {
669 $n++;
670 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
671 echo $query . ' [' . $count . ']' . "<br />\n";
672 }
673 rizwank 1.1 }
674
675 if (!($n)) { echo "No search terms yet<br />"; }
676 else { echo "<br />search terms [hits]"; }
677 echo "</div>";
678 ?>
679
680
681
682 <!--
683 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
684 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
685 xmlns:dc="http://purl.org/dc/elements/1.1/">
686 <rdf:Description
687 rdf:about="http://www.geekymedia.com/archives/2004/05/index.html#000351"
688 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/344"
689 dc:title="That Wonderful Time"
690 dc:identifier="http://www.geekymedia.com/archives/2004/05/index.html#000351"
691 dc:subject=""
692 dc:description="So its time for me to do it again. Plan to work on my site design, then give it up. Finally finished my midterms today; so I think im a bit entitled to wasting some time on a portal that..."
693 dc:creator="Rizwank"
694 rizwank 1.1 dc:date="2004-05-13T18:01:37-08:00" />
695 </rdf:RDF>
696 -->
697
698
699 <h2 class="date">May 13, 2004</h2>
700
701
702 <div class="blogbody">
703 <a name="000351"></a>
704 <?php
705
706 // record the referer
707 if ($my_ip !== $remote_ip) {
708 mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (351, '$referer', '', $time)" );
709 }
710
711 // get the no. of times this entry has been read
712 $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=351' );
713 $row = mysql_fetch_row( $rs );
714 $hits = $row[0];
715 rizwank 1.1
716 ?>
717 <h3 class="title">That Wonderful Time</h3>
718
719 <p> <table align="left"><tr valign="bottom"><td>
720 <p style="font-size:16pt"><b>
721 S</b>
722 </p>
723 </td></tr></table>
724 o its time for me to do it again.</p>
725
726 <p>Plan to work on my site design, then give it up.</p>
727
728 <p>Finally finished my midterms today; so I think im a bit entitled to wasting some time on a portal that <span class="caps">NO ONE READS</span>!</p>
729
730 <p>:chuckles:</p>
731
732 <p>I was going to talk about the past few weeks (Sarah, school, Sarah, school, Lora,Sarah,PTsd, school)… but I thought I’d check my MT plugins etc…</p>
733
734 <p>Turns out that Moveable type - the engine that I use to run my blog - is becoming a pay piece of software - crippling the free version. Thats just annoying, and the trend is even more disturbing. Reading around, I’ve been pointed to like ten other content distribution systems that arent as ‘arbitrary’ as movable type- so i might check those out.</p>
735
736 rizwank 1.1 <p>All that being said, MT works. I can post from my Treo and I dont <span class="caps">HAVE</span> to upgrade to 3.0, especially since im still waiting on my design from Snazzykat…</p>
737
738 <p><span class="caps">EDIT </span>: I should really either smack Seth around :grin: or find a real <span class="caps">ISP… I</span> think his version of <span class="caps">PHP</span> is old or something; for that matter I’m still using lifegonewrong as my middle house for all my data transfers… time to start paying for real (or get a proper linux.ucla.edu acct? ;p )</p>
739
740 <p>Theres so much I can do with a real site, publish my coding exploits from classes… my photography…</p>
741
742 <p>Go <a href="http://www.opensourcecms.com/index.php" title="Open Source CMS (try before you install) ">here</a> to try out various Content Management Systems - all without installation! They provide a demo server!</p>
743
744
745
746
747
748
749 <div class="posted">
750 <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/05/index.html#000351" title="Permanent Link to this Post.">06:01 PM</a><?php
751 if ($hits) {
752 print " | Read ";
753 echo "$hits";
754 print " time";
755 if($hits != 1) echo 's';
756 }
757 rizwank 1.1 ?>
758 | <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=351" onclick="OpenComments(this.href); return false">Comments (0)</a>
759
760 | <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&entry_id=351" onclick="OpenTrackback(this.href); return false">TrackBack</a>
761
762 </div>
763
764 </div>
765 <?php
766
767 // display the list of referers
768 echo '<div class="sidetitle">Referrers</div>', "\n";
769 echo '<div class="side">', "\n";
770
771 $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=351 GROUP BY referer ORDER BY count DESC, title';
772
773 $rs = mysql_query( $sql );
774 $n = 0;
775
776 while( $row = mysql_fetch_assoc( $rs ) ) {
777 $referer1 = $row['referer'];
778 rizwank 1.1 $title = $row['title'];
779 $count = $row['count'];
780 $search = $row['search'];
781
782 if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
783 $n++;
784 echo '<a href="', $referer1, '" target="_blank">';
785 echo $title . "</a> [" . $count . "]<br />\n";
786 }
787 }
788
789 if (!($n)) {
790 echo "No referrals yet<br />";
791 }
792 else {
793 echo "<br />\n";
794 echo 'referrers [referrals]<br />';
795 }
796 echo '</div>';
797
798 echo "<div class='sidetitle'>Search Terms</div>\n";
799 rizwank 1.1 echo "<div class='side'>";
800
801 $rs = mysql_query( $sql );
802 $n = 0;
803
804 while( $row = mysql_fetch_assoc( $rs ) ) {
805 $query = '';
806
807 $referer1 = $row['referer'];
808 $title = $row['title'];
809 $count = $row['count'];
810 $search = $row['search'];
811
812 if ($search == 1) {
813 $n++;
814 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
815 echo $query . ' [' . $count . ']' . "<br />\n";
816 }
817 }
818
819 if (!($n)) { echo "No search terms yet<br />"; }
820 rizwank 1.1 else { echo "<br />search terms [hits]"; }
821 echo "</div>";
822 ?>
823
824
825
826 <!--
827 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
828 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
829 xmlns:dc="http://purl.org/dc/elements/1.1/">
830 <rdf:Description
831 rdf:about="http://www.geekymedia.com/archives/2004/05/index.html#000350"
832 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/343"
833 dc:title="Self Destruction"
834 dc:identifier="http://www.geekymedia.com/archives/2004/05/index.html#000350"
835 dc:subject=""
836 dc:description="So, first, Reeba and Jean; welcome to the readership. Context for the rest: Some of Sarah&#8217;s friends didn&#8217;t get along too well with me and I perhaps was over friendly&#8230; random issues and all. He said she said. Its very..."
837 dc:creator="Rizwank"
838 dc:date="2004-05-11T00:09:11-08:00" />
839 </rdf:RDF>
840 -->
841 rizwank 1.1
842
843 <h2 class="date">May 11, 2004</h2>
844
845
846 <div class="blogbody">
847 <a name="000350"></a>
848 <?php
849
850 // record the referer
851 if ($my_ip !== $remote_ip) {
852 mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (350, '$referer', '', $time)" );
853 }
854
855 // get the no. of times this entry has been read
856 $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=350' );
857 $row = mysql_fetch_row( $rs );
858 $hits = $row[0];
859
860 ?>
861 <h3 class="title">Self Destruction</h3>
862 rizwank 1.1
863 <p> <table align="left"><tr valign="bottom"><td>
864 <p style="font-size:16pt"><b>
865 S</b>
866 </p>
867 </td></tr></table>
868 o, first, <a href="http://www.livejournal.com/users/reebamaister" title="Reeba">Reeba</a> and Jean; welcome to the readership.</p>
869
870 <p>Context for the rest: Some of Sarah’s friends didn’t get along too well with me and I perhaps was over friendly… random issues and all. He said she said. Its very much like High School.</p>
871
872 <p>So today was a doozy of a day..<br />
873 more context..</p>
874
875 <p>I knew a while ago that this week was going to be hell. Midterms on Monday/Wednesday, Lora being down Wed - Fri, E3 on Thursday, and PTsd from Fri till Sunday; and Sarah and my first month anniv (yes, we’re saps) on the Monday.</p>
876
877 <p>So today was study all morning (skipping classes; repeat lectures tomorrow) for my <span class="caps">CS143</span> midterm. I kicked its ass, btw. Got home and resumed plans with Sarah for our one month anniv…</p>
878
879 <p>Sigh, I’m too tired to blog this anymore.</p>
880
881 <p>Bullet points:<br />
882 Sarah was unhappy when i picked her up but didnt tell me until halfway through dinner. Her issues were valid, but either stuff she should have let go or stuff she should have told me before we spent an hour talking like total strangers at dinner. <br />
883 rizwank 1.1 Sarah’s bothered that Lora’s coming down, but for no reason. Shes not threatened, it just makes her uncomfortable, and I really want Lora to have a good time down here because she deserves it and it sounds like she needs it. <br />
884 Sarah and I talked; its more like one of those sucky situations in life then anyones fault, it just sucked that it happened on a night when i actually planned for things to be romantic and cute and all. We talked it over and after a nights sleep we’ll be fine, but I couldn’t find a poker game to let out stress… called Heather to hear her say that she was going to go to bed soon, and pretty much waffle on whether or not she wanted to talk (she hasn’t heard about sarah yet and wants to know, she says); for all that I’ve been there for her, she could have said “its ok riz, lets talk, i can stay up” —- esp since she doesnt have work the next day..</p>
885
886 <p>So thats a double whammy. Yay for mom being there to talk to.</p>
887
888 <p>Sarah had some reasonable points, but not normally stuff she’d call me on (and stuff that was a bit too petty to let ruin a day)… plus I suggested that she go to this movie with her friend (since I wouldn’t take her cause I had plans with Lora at that time) and that really bothered her. This after her telling me that she doesn’t care about Lora coming for like two weeks.</p>
889
890 <p>On top of this is a Late <span class="caps">CS 131</span> project that hasn’t been started, a tough 118 midterm on wed, Homeworks due on Wed and Friday, and PTsd this weekend; plus the fun/nervousness of seeing Lora again; la lala.</p>
891
892 <p>Sigh, I’m tired today. Whenever I make an effort to have a nice date, it <span class="caps">ALWAYS</span> self-destructs, I really should stop trying.</p>
893
894 <p>On the up side, got lots of my <span class="caps">UCLA</span> transfer stuff approved, finalized my roommate situ for next year, realized I’ve got 50 units after this quarter left to my <span class="caps">UCLA</span> career and etc.</p>
895
896 <p>Anyhow, tomorrows another day…</p>
897
898 <p><span class="caps">EDIT </span>: In side notes, Sung just offered me booze cause he saw I was down. It was nice and kinda funny. No, I didnt drink, I’m not feeling <i>that</i> bad.</p>
899
900
901
902
903
904 rizwank 1.1
905 <div class="posted">
906 <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/05/index.html#000350" title="Permanent Link to this Post.">12:09 AM</a><?php
907 if ($hits) {
908 print " | Read ";
909 echo "$hits";
910 print " time";
911 if($hits != 1) echo 's';
912 }
913 ?>
914 | <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=350" onclick="OpenComments(this.href); return false">Comments (0)</a>
915
916 | <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&entry_id=350" onclick="OpenTrackback(this.href); return false">TrackBack</a>
917
918 </div>
919
920 </div>
921 <?php
922
923 // display the list of referers
924 echo '<div class="sidetitle">Referrers</div>', "\n";
925 rizwank 1.1 echo '<div class="side">', "\n";
926
927 $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=350 GROUP BY referer ORDER BY count DESC, title';
928
929 $rs = mysql_query( $sql );
930 $n = 0;
931
932 while( $row = mysql_fetch_assoc( $rs ) ) {
933 $referer1 = $row['referer'];
934 $title = $row['title'];
935 $count = $row['count'];
936 $search = $row['search'];
937
938 if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
939 $n++;
940 echo '<a href="', $referer1, '" target="_blank">';
941 echo $title . "</a> [" . $count . "]<br />\n";
942 }
943 }
944
945 if (!($n)) {
946 rizwank 1.1 echo "No referrals yet<br />";
947 }
948 else {
949 echo "<br />\n";
950 echo 'referrers [referrals]<br />';
951 }
952 echo '</div>';
953
954 echo "<div class='sidetitle'>Search Terms</div>\n";
955 echo "<div class='side'>";
956
957 $rs = mysql_query( $sql );
958 $n = 0;
959
960 while( $row = mysql_fetch_assoc( $rs ) ) {
961 $query = '';
962
963 $referer1 = $row['referer'];
964 $title = $row['title'];
965 $count = $row['count'];
966 $search = $row['search'];
967 rizwank 1.1
968 if ($search == 1) {
969 $n++;
970 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
971 echo $query . ' [' . $count . ']' . "<br />\n";
972 }
973 }
974
975 if (!($n)) { echo "No search terms yet<br />"; }
976 else { echo "<br />search terms [hits]"; }
977 echo "</div>";
978 ?>
979
980
981
982 <!--
983 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
984 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
985 xmlns:dc="http://purl.org/dc/elements/1.1/">
986 <rdf:Description
987 rdf:about="http://www.geekymedia.com/archives/2004/05/index.html#000349"
988 rizwank 1.1 trackback:ping="http://www.geekymedia.com/blogcgi/mt-tb.cgi/342"
989 dc:title="New readers"
990 dc:identifier="http://www.geekymedia.com/archives/2004/05/index.html#000349"
991 dc:subject=""
992 dc:description="So I&#8217;m finding out that I&#8217;ve got some new readers! Hey folks, nice to meet y&#8217;all :) Its been a busy couple of weeks with midterms, I&#8217;m going to post some more after midterms are done&#8230;..."
993 dc:creator="Rizwank"
994 dc:date="2004-05-08T03:01:35-08:00" />
995 </rdf:RDF>
996 -->
997
998
999 <h2 class="date">May 08, 2004</h2>
1000
1001
1002 <div class="blogbody">
1003 <a name="000349"></a>
1004 <?php
1005
1006 // record the referer
1007 if ($my_ip !== $remote_ip) {
1008 mysql_query( "INSERT INTO mt_entryhits(entry_id, referer,title,time) VALUES (349, '$referer', '', $time)" );
1009 rizwank 1.1 }
1010
1011 // get the no. of times this entry has been read
1012 $rs = mysql_query( 'SELECT COUNT(*) FROM mt_entryhits WHERE entry_id=349' );
1013 $row = mysql_fetch_row( $rs );
1014 $hits = $row[0];
1015
1016 ?>
1017 <h3 class="title">New readers</h3>
1018
1019 <p> <table align="left"><tr valign="bottom"><td>
1020 <p style="font-size:16pt"><b>
1021 S</b>
1022 </p>
1023 </td></tr></table>
1024 o I’m finding out that I’ve got some new readers! Hey folks, nice to meet y’all :)</p>
1025
1026 <p>Its been a busy couple of weeks with midterms, I’m going to post some more after midterms are done… </p>
1027
1028
1029
1030 rizwank 1.1
1031
1032
1033 <div class="posted">
1034 <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/05/index.html#000349" title="Permanent Link to this Post.">03:01 AM</a><?php
1035 if ($hits) {
1036 print " | Read ";
1037 echo "$hits";
1038 print " time";
1039 if($hits != 1) echo 's';
1040 }
1041 ?>
1042 | <a href="http://www.geekymedia.com/blogcgi/mt-comments.cgi?entry_id=349" onclick="OpenComments(this.href); return false">Comments (1)</a>
1043
1044 | <a href="http://www.geekymedia.com/blogcgi/mt-tb.cgi?__mode=view&entry_id=349" onclick="OpenTrackback(this.href); return false">TrackBack</a>
1045
1046 </div>
1047
1048 </div>
1049 <?php
1050
1051 rizwank 1.1 // display the list of referers
1052 echo '<div class="sidetitle">Referrers</div>', "\n";
1053 echo '<div class="side">', "\n";
1054
1055 $sql = 'SELECT search, time, title, referer, COUNT(*) AS count FROM mt_entryhits WHERE entry_id=349 GROUP BY referer ORDER BY count DESC, title';
1056
1057 $rs = mysql_query( $sql );
1058 $n = 0;
1059
1060 while( $row = mysql_fetch_assoc( $rs ) ) {
1061 $referer1 = $row['referer'];
1062 $title = $row['title'];
1063 $count = $row['count'];
1064 $search = $row['search'];
1065
1066 if ((strpos($referer1,'ttp://') == 1) && ($search == 0) && (trim($title) !== '-') && (trim($title) !== '')) {
1067 $n++;
1068 echo '<a href="', $referer1, '" target="_blank">';
1069 echo $title . "</a> [" . $count . "]<br />\n";
1070 }
1071 }
1072 rizwank 1.1
1073 if (!($n)) {
1074 echo "No referrals yet<br />";
1075 }
1076 else {
1077 echo "<br />\n";
1078 echo 'referrers [referrals]<br />';
1079 }
1080 echo '</div>';
1081
1082 echo "<div class='sidetitle'>Search Terms</div>\n";
1083 echo "<div class='side'>";
1084
1085 $rs = mysql_query( $sql );
1086 $n = 0;
1087
1088 while( $row = mysql_fetch_assoc( $rs ) ) {
1089 $query = '';
1090
1091 $referer1 = $row['referer'];
1092 $title = $row['title'];
1093 rizwank 1.1 $count = $row['count'];
1094 $search = $row['search'];
1095
1096 if ($search == 1) {
1097 $n++;
1098 $query = "<a href='" . $referer1 . "'>" . $title . "</a>";
1099 echo $query . ' [' . $count . ']' . "<br />\n";
1100 }
1101 }
1102
1103 if (!($n)) { echo "No search terms yet<br />"; }
1104 else { echo "<br />search terms [hits]"; }
1105 echo "</div>";
1106 ?>
1107
1108
1109
1110 </div>
1111 </div>
1112 <?php
1113 //Change the following to your email address
1114 rizwank 1.1 $email = "rizwank@geekymedia.com";
1115
1116 if(eregi("googlebot",$_SERVER['HTTP_USER_AGENT']))
1117 {
1118 mail($email, "Googlebot detected",
1119 "Google has crawled : ".$_SERVER['REQUEST_URI']);
1120 }
1121 ?>
1122 <br>
1123 <php
1124 $rs = mysql_query( "SELECT * FROM mt_entryhits" );
1125 $deletetime = time() - (60 * 60 * 24);
1126 mysql_query( "DELETE FROM mt_entryhits WHERE time < $deletetime and entry_id = 0" );
1127
1128 while ($row = mysql_fetch_assoc($rs)) {
1129 if ($referer == $row['referer']) {
1130 $title = $row['title'];
1131 }
1132 }
1133
1134 if (($title == '') || (strpos($title,'ttp://')) && ($referer !== '')) {
1135 rizwank 1.1 if ($title1 = getquery($referer)) {
1136 $title = addslashes($title1);
1137 $search = 1;
1138 }
1139 else { $search = 0; }
1140 if (!($search)) { $title = addslashes(URLHelper::getTitle($referer)); }
1141 if (strpos($referer,'encquery')) {
1142 $title = addslashes(substr($title,26,-2));
1143 $search = 1;
1144 }
1145 if (strpos($referer,'info.dogpl')) {
1146 $title = substr($title,21);
1147 $search = 1;
1148 }
1149 if ((trim($title) == '-') || (trim($title) === '')) { $title = $referer; }
1150 if (!($search) && (strlen(trim($title)) > 45)) {$title = substr($title,0,42) . "..."; }
1151 else if (trim(strlen($title)) > 52) { $title = substr($title,0,49) . "..."; }
1152 }
1153
1154 mysql_query( "UPDATE mt_entryhits SET title='$title', search=$search WHERE referer='$referer'" );
1155
1156 rizwank 1.1 function getquery($ref){
1157 $queries = array("search=", "epq=", "p=", "qkw=", "q=", "query=", "va=", "qry=", "userQuery=", "searchfor=", "question=", "sb=");
1158
1159 while(list($key,$val)=each($queries)){
1160 $pos = 0;//initialize
1161 $pos = strpos($ref, $val);
1162 if (strpos($ref,'encquery')) { $pos = 0; }
1163 #$ret .= "($pos $val)";
1164 if($pos > 0){
1165 $endpos = strpos ($ref, "&", $pos);
1166 if(trim($endpos) == ""){
1167 $search = substr($ref, ($pos+strlen($val)), strlen($ref)-$pos);
1168 }else{
1169 $search = substr ($ref, ($pos+strlen($val)), ($endpos-$pos)-2);
1170 }
1171 $endpos = strpos ($search, "&");
1172 if(trim($endpos)) {
1173 $search = substr ($search, 0, $endpos);
1174 }
1175 $searched = trim($search);
1176 $searched = str_replace("+", " ", $search);
1177 rizwank 1.1 $searched = str_replace("%2E", ".", $searched);
1178 $searched = str_replace("%2B", "+", $searched);
1179 $searched = str_replace("%2b", "+", $searched);
1180 $searched = str_replace("%22", '"', $searched);
1181 $searched = str_replace("%22", '"', $searched);
1182 $searched = str_replace("%20", " ", $searched);
1183 $searched = str_replace("%3F", "?", $searched);
1184 $searched = str_replace("%28", "(", $searched);
1185 $searched = str_replace("%27", "'", $searched);
1186 $searched = str_replace("%3A", ":", $searched);
1187 $searched = str_replace("%2C", ",", $searched);
1188 $searched = str_replace("%24", "$", $searched);
1189 $searched = str_replace("%21", "!", $searched);
1190 $searched = str_replace("%5C", "\\", $searched);
1191 $searched = str_replace("%2F", "/", $searched);
1192 if(trim($searched) == ""){
1193 $searched = substr($ref, $pos, strlen($ref)-$pos)."($endpos)";
1194 }
1195 }
1196 }
1197 if(trim($searched) !== "") {
1198 rizwank 1.1 return "$searched";
1199 }else{
1200 return false;
1201 }
1202 }// end function
1203
1204 ?>
1205
1206
1207 </body>
1208 </html>
|