i’ll try to share useful stuff with you

1-Click TinyUrl + Twitter

Filed under: — ohad @ 4:22 PM March 10, 2008

so me friends @ashafrir and @jeffpulver got me onto twitter a few weeks ago. it’s not hard to notice that everyone and his sister are using tinyurl to, well, tinyurl. the task is tedious (if you’re as lazy as i am) you really want these things to take 1-click.

10 minutes of searching and 10 minutes of hacking later, zvitz (sorta hebrew for twitt) is born. just drag it to your toolbar, and whenever you are on a page you would like to twit about, hit the bookmarklet, and you will find yourself in twitter, with your status already containing a tinyurl of the page you were looking at.

here’s the formatted source for the bookmarklet:
javascript:
(function(){
var z=open().document;
z.location=”http://ohad.visual-i.com/zvitz.php?url=”+document.location;
z.close();
}
)()
and here’s the PHP backend to support it:
$f = @fopen(’http://tinyurl.com/api-create.php?url=’ . $_GET['url'], ‘r’) or header(”Location: sorry zvit or tinyurl not working”);
$tinyUrl = fgets($f, 8192);
fclose($f);
header(”Location: http://twitter.com/home?status=$tinyUrl”);

NetFlix are tracking interesting things on their site

Filed under: — ohad @ 5:36 PM March 6, 2008

Every web service provider, web application, content site and what not likes to collect data. Collecting data helps web sites to better understand their users, popular content,

usage patterns, and whatever obscurities that are out there.

I was just browsing Netflix and noticed that they have chosen to track something very odd, and at first (and second) sight not too informative. When you search for a movie at the top-right corner, it will actually log WHERE on the ‘Search’ button you have actually hit. So, if you’ve hit the top-left area or the bottom-right area of the button, NetFlix will know.

What does this give them? well, they could calculate what is the average point at which users hit the button, and errrrrr, just know it. Or they could generate a nice little heat-map representing the different areas on the button where people hit most often (for info on heat-maps see Rafael Mizrahi’s wonderful Feng-GUI, and they could ehhhhhh print the heat map and ehhhh nail it to the wall.
Beats me, in any case, just an observation worth sharing, or not.