Jacob's Chatter
Monday, May 03, 2004
  I Bid Thee Farewell

I will have you know that I am leaving this Wednesday for a three-week trip to Prague to be with Raluca, who I have been corresponding with on IRC for two months.

I do not know if I will be able to update my web page from there or not, being I have no working notebooks at my disposal. Am I abandoning the chatter? Not likely. Real members of the cause stick it out, as I always say.

You will have to excuse my sudden departure. People sometimes must make quick decisions when it comes to the ways of amore'. Really strange it is that I must go now. Like it or not Jacob must follow his heart. To where it will land, I do not know. Argue amongst yourselves whist I am gone.

You must excuse me now. Killed enough time already tonight. Jacob must get ready for his trip.

I bid thee farwell.

Jacob over and out.

 
Saturday, May 01, 2004
  What Are You To Complain About Now, Sir?

For those who have not been watching events transpire here over the last few days, here is a quick run down.

On a whim, I created a quick ECMAScript function that redirects lies.mojobox.org (a known anti-Jacob site) to this page when "mojobox" attempted to embed my web page in a frame.

"Jedi" the webmaster of said web site countered with a mediocre (at best) PHP script that grabs my web page and filters out any malicious ECMAScript. When asked why he did not just parse the Atom feed, "Jedi" responded, "the XML doesnt have comments."

Being the humanitarian and open-source programming guru I am, I took it upon myself to spend an entire 15 minutes of my time this morning writing this functionality for "Jedi", comments and all. I am releasing this code under the GPL so "Jedi" is free to utilize and modify it as he sees fit, as long as he respects the GPL.

You will need the excellent MagpieRSS RSS Parser (version 0.6a) to use this code.

So, there. Jacob (me) has not only displayed his open source prowess in 25 lines of code that trumps "Jedi"'s best effort (no amateur loading and filtering), he has released open source code under the GPL (another anti-Jacob bone of contention the opposition harps on), not to mention he has once again "owned" "Jedi" by beating him at his own game.

Without further ado, the code:

<!--
   ***********************************************************
   Copyright (C) 2004 Jacob Hansel
      
   JacobsAtom is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation.

   This software is distributed in the hope that it will be
   useful, but WITHOUT ANY WARRANTY; without even the implied
   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
   PURPOSE.
  
   You should have received a copy of the GNU General Public
   License along with this software. If not, write to the Free
   Software Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.
  
   See the GPL in the COPYING.GPL file for more details.
   
   Author: Jacob Hansel (jacob.hansel@gmail.com)
   Description: Parses Jacob's Chatter into framable HTML.
   ***********************************************************
-->

<html>
<head>
<title>Jacob's Chatter Feed</title>
<script type="text/javascript" src="http://www.haloscan.com/load.php?user=jacobschatter"> </script>
</head>
<body>

<?php
require 'rss_fetch.inc';

$rss = fetch_rss('http://jacobschatter.blogspot.com/atom.xml');

foreach(
$rss->items as $item)
{
    
$title = $item['title'];
    
$url = $item['link'];
    
$issued = $item['issued'];
    
$date = strftime('%A, %B %d, %Y', strtotime(substr($issued, 0, 10)));
    
$time = substr($issued, 11, 5);
    
$content = $item['content']['encoded'];
    
$id = $item['id'];
    
$id = substr($id, strpos($id, 'post-') + 5);
?>

<p><?=$date?></p>
<p><b><?=$title?></b></p>
<p><?=$content?></p>
<p>[<a href="<?=$url?>">jacob@<?=$time?></a>]:~$ <a href="javascript:HaloScan('<?=$id?>');" target="_self"><script type="text/javascript">postCount('<?=$id?>'); </script></a></p>

<?php } ?>

</body>
</html>

 
Free as in beer and speech.



   
Get Firefox

Archives
November 2003 / December 2003 / January 2004 / February 2004 / March 2004 / April 2004 / May 2004 /


RSS Feed Email me Powered by Blogger

All content copyright 2003-2007 Jacob Hansel.