It’s not money… Once you get above rudimentary cognitive skill –> Rewards don’t works the way you think they should. It’s the opposites around.
Marathon Tel Aviv – Hot Hot Hot

In a nutshell, it was the hardest marathon I did due to the fact that the weather was…
How can I put it? hot as the desert in a very hot day. Overall, it was great event with lots of good friends running ‘around’ you in the marathon, half-marathon and 10k race.
Amarel did her first half-marathon and she did it in an excellent way! Very cool!
Now it is time to drink something…
Great Cycling Day With Two Mountains: Montebello-HWY9
Here is a little ‘recovery’ day I did yesterday with a good friend.
For full details:
Montebello-HWY9 With Guy Marom.
Yes – cycling in the bay area is an amazing adventure.
All the little roads that clip to HWY 35 are super nice.
Advanced jQuery & Javascript For Your Web App
This is an excellent 25min that (the one and only) John Resig gave at the Future of Web Apps conference in Miami 2010.
If you don’t know when to use the new features of jQuery 1.4.2 like: .live and .delegate events – you must see it.
Main points to take home with you:
- Event delegation – Event delegation is a technique that routes around the traditional method of binding events. You must understand it and start using it if you have apps that use a lot of DOM elements. The example he gave was of a table with 10,000 cells. You do not need to bind the event to each cell but rather one event to the table element and by using the bubbling of events in the browser these events will be executed with less code and more efficiency.
- Use CDN. What is a CDN you ask? Well, A CDN is short for Content Delivery Network and what that effectively translates into is a bunch of geo-position data centers around the globe. Not all of us have the finances to build a whole bunch of data centers all around, but there are a number of great services that handle this. Amazon CloudFront is one that we (at High Gear Media) use and they are good and cheap.
- Minifying and gzipping your JavaScript. Easy and save lots of time. Performance – performance – performance (like Steve balamer like to say).
- Use jQuery UI and don’t re-invent the wheel. jQuery UI is a set of components and set of widgets that you can use, you can drop into your application, and they will just work. I’ve used them over and over again and each time they are getting better and better with a great API that let you (the developer) all the power to customize and work with them.
How To Deal With High Gear Media API Using PHP And XPath
For the serious players in the automotive industry on the net there is a new way to improve their sites. We had this feed for a while, but now with the new improvements and after big players (e.g. yahoo autos) have been happy with it, we wanted to share it with others around the world.
For developers that are not used to work with XML, XPath and other goodies, here is a short sample of code that will show you how easy it is to fetch our full feed. Unlike the previous post about our regular RSS feed, I’ve used here some basic functionality that anyone that used php (5.2+) will have under their belt.
<?php
/**
* @author Ido Green
*
* @since 04/10/2010
*
* @abstract Simple example how to fetch High Gear Media Full API using xPath
*
* @see greenido.wordpress.com
*
* @copyright HighGearMedia INC. 2010
*
*/error_reporting(E_ALL); // Always good to have it in development mode
$feed = new DOMDocument();
$feed->load('http://www.thecarconnection.com/api?uid=YourApiUserKey&cat=bottom-line');
if (isset($feed->documentElement)) {
$xpath = new DOMXPath($feed);
// Lets register TheCarConnection namespace
$xpath->registerNamespace('tcc', 'http://www.thecarconnection.com/rss');
// Now we looping on all the items and for each one we are extracting some data
foreach ($xpath->evaluate('//item') as $entryNode) {
// Simple way to get the title,desc per item
echo "Title: " . $xpath->evaluate('string(title)', $entryNode), "\n";
echo "Description " . $xpath->evaluate('string(description)', $entryNode), "\n";
// and some more interesting capabilities of xPath - we fetching the spec that is under tcc namespace for car details
echo "Make: " . $xpath->evaluate('string(tcc:review[1]/tcc:cardetails[1]/tcc:make[1])', $entryNode), "\n";
echo "Model: " . $xpath->evaluate('string(tcc:review[1]/tcc:cardetails[1]/tcc:make[1])', $entryNode), "\n";
echo "Rating: " . $xpath->evaluate('string(tcc:review[1]/tcc:cardetails[1]/tcc:rating[1])', $entryNode), " Out of 10\n";
echo "============\n";
}
} else {
echo 'Error: Could not fetch the feed';
}
You can also clone this code from github using: git clone git://gist.github.com/865542.git gist-865542
So it’s easy, right? You can load these feed for each site from our network.
For example: http://www.motorauthority.com/api?uid=YourUserKey&cat=reviews
Will give you all the reviews from Motor Authority.
For more specific custom calls you may use these parameters:
- uid – your user ID
- cat – you can choose: reviews / bottom-line / tips / blogs
If you wish to get just the summaries of the bottom-line use: bottomline-summary - media – Use 0 for strip html and media=1 to have our HTML format in the call.
- from/to – Use unix time stamp (e.g. 1206514800 and yes… the ‘from’ need to be lower then the ‘to‘)
- limit – Up to 100 items. The default is 10.
- limited-links – When it’s equal 1 we will give you just 5 links per item.
- version – You will only need it if you wish to get reviews for cars that are older then 2008. Then use: version=0
- morelinks – Use 1 if you wish to get links from thecarconnection.com or 0 if you don’t want links.
(*) Note that the bold parameters are mandatory.

If you wish to have quality automotive content on your site please feel free to approach High Gear Media
(feedback at HighGearMedia.com) and get a user ID. With more then 1000 new items of content per month, there are something for every car lover girl.
How To Work With High Gear Media RSS Feed In (less then) 4 Minutes
For all the girls that asked me time after time ‘How/Who/When/Why?’ and for all the ones that want to have on their blog the best automotive content around the web… This short code example will harness you with a knowledge to fetch High Gear Media customizable feed and have it on your site. The first thing you need to do in order to save yourself some leg work is to install Zend Framework.
Why reinvent the wheel, right?
The good people that work with Zend build for us some nice components that save us lots of work. For example, to parse an Atom (or RSS) feed – you should use their class and in few lines of code, you can be productive and happy.
After the installation, you can copy & paste the code below and you good to go.
<?php
/**
* @author Ido Green
*
* @since 04/01/2010
*
* @abstract Simple example how to fetch High Gear Media API (XML feed).
* You should have Zend Framework (1.9.4 and above).
*
* @see greenido.wordpress.com
*
* @copyright HighGearMedia INC. 2010
*
*/
// Set error reporting to ALL - Always good when you developing new features
error_reporting(E_ALL);
// Lets make sure we can find Zend Framework lib. (You might want to change it base on your local
// environment.
set_include_path(get_include_path() . PATH_SEPARATOR . "../");
// get the feed library
require_once 'Zend/Feed.php';
try {
$rss = Zend_Feed::import('http://feeds.highgearmedia.com/?sites=thecarconnection,greencarreports,allaboutprius');
} catch (Exception $e) {
echo $e->getMessage(); // In case something didn't work - lets see it.
exit (-1);
}
$feedItems = array();
// Loop through the items in the feed
foreach ($rss as $item) {
$itemElements = array(
'title' => $item->title(),
'description' => $item-<description(),
'link' => $item->link(),
'pubDate' => $item->pubDate(),
'author' => $item->author()
);
array_push($feedItems, $itemElements);
}
echo "\nThe HGM feed we got:\n";
// dump all items
var_dump($feedItems);
// In case some other process want to check if we finished correctly.
exit(0);
?>
The feeds can be fully customize according to your interested topics. For example:
- http://feeds.highgearmedia.com/?sites=thecarconnection&tags=green – This will fetch you all the content from The Car Connection that is tagged with Green
- http://feeds.highgearmedia.com/?sites=thecarconnection,greencarreports,allaboutprius – This example show you how to fetch content from 3 sites:The Car Connection, Green car reports and All About Prius.
- http://feeds.highgearmedia.com/?sites=greencarreports&tags=ford – This will give you all the content from Green Car Reports that is tagged with Ford
Please feel free to share you experience using the comments.
The Top 10 Air Time Around The World
Did I told you I love red-bull?
They are a great company that invest in crazy/cool people.
Long conversation with DHH
It’s (too) long conversation in ‘This week in Startup’ but you might want to browse it.
Lots of good stuff and it’s funny to see how David is refusing to the virtual offers Mr. C. is throwing in his direction.
Enjoy.
Marathon (short) Tutorial
Here is (yet another) lighting talk I gave at the Java Posse Roundup 2010
It’s a short presentation that give you the basic idea what is all about this trend of running 42.195 Km (or 26.2 miles if you want to count less).
Planning – there are lots of good resources out on the web. Here is one that I’ve used – It’s A Guru trainer site. You can pick the right plan base on your current shape. Another good online tool is this pace calculator. But like anything in life, it’s all about execution! You must follow the plan and do your best to stick with the runs.
The hard part and the most important part of any plan is the ‘long runs’. These runs build you body and make sure it will be able to do the distance and be active for 3 to 5 hours.
Be Strong and (try to) have fun.

