Dion Phaneuf hits Kyle Okposo

September 18th, 2009 TheDave1022 No comments

What an awesome hit in a Preseason game by Phaneuf.  This is why players need to keep their head up.  Okposo ended up laying there for 6 minutes and carted off.  He has a concussion.  This was a clean hit, as Phaneuf’s feet only came up during the hit, as both players were falling over from the impact.

Tags:

Jim Norton on Leno

September 17th, 2009 TheDave1022 No comments

Jim Norton, a regular on the Opie and Anthony show was on the new Jay Leno show last night.  How do you think he did? I thought his air travel topic was great for network tv.  Jimmy kills once again.  Check it out below.

SUV goes airborne, plows into 2nd floor

September 6th, 2009 TheDave1022 No comments

Exactly how fast do you have to be going to hit a speed bump (which was a dirt ditch) and go airborne and land in the 2nd floor of someones home?

A drunk driver went through a Long Island NY home with his Jeep.  They dont say how fast he was driving, but he flew 65 feet.

Check out the story at the NY Daily News [READ]

Too bad for the home owner, who was just trying to sell his house…

Meanwhile, Sarli said he had just put the house up for sale Friday – but would have to take it off the market.

Tags:

SimplePie: PHP RSS Parser

September 6th, 2009 TheDave1022 No comments

Being a PHP coder on my free time, I have been looking for a RSS (Really Simple Syndication) parser for a very long time to embed in my websites.  I hate the idea of using widgets as they are slow and filled with advertisements.  Recently I came across SimplePie.

Installation requires copying simplepie.inc to a directory.

I will use /php for my example.  I will set the cache directory to be in /cache.  I will set the timeout to read the feed to 5 seconds, and the cache duration to last 6 hours.

require_once(‘php/simplepie.inc’);

# We’ll process this feed with all of the default options.
$feed = new SimplePie();
$feed->set_cache_location($_SERVER['DOCUMENT_ROOT'] . ‘/cache’);
$feed->set_timeout(5);
$feed->set_stupidly_fast(true);
$feed->enable_order_by_date(false);
$feed->set_cache_duration(21600);
$feed->set_feed_url(‘http://www.site.com/YourRSSFeed.xml’);
$feed->init();
# This makes sure that the content is sent to the browser as text/html and the UTF-8 character set (since we didn’t change it).
$feed->handle_content_type();

if ($feed->error())
{
echo “Friendly Error that feed cannot be read”; //$feed->error();
}

foreach ($feed->get_items() as $item)
{
echo $item->get_title();
}

That is it.  You now have your RSS feed and outputted.  You can do a few things to break apart the feed depending on how the feed is formatted. You can even merge a few feeds into one.

Check out the documentation here: http://simplepie.org/wiki/
See a live demo here: http://simplepie.org/demo/
Download SimplePie here: http://simplepie.org/downloads/

Tags:

2009-2010 New York Rangers Tickets

September 6th, 2009 TheDave1022 No comments

Looking for NY Rangers tickets for the upcoming season? Head on over to my site http://www.rangerstix.com to purchase tickets.  Most games are $65 each, which is still less then the ticketmaster price.  Division games will run you $80, which is the ticketmaster price.

Contact me with any questions.  davidf98@yahoo.com

Tags:

NFL Survivor Pool 2010

September 6th, 2009 TheDave1022 No comments

Anyone who is interested in my NFL 2010 survivor pool, please see http://www.nflsvpool.com to register. Deadline is Thursday September 10, at 3:00 PM.  Contact me for payment.  davidf98@yahoo.com

Tags: