ohadpr http://ohadpr.com ideas, hacks and stuff Tue, 29 May 2012 07:08:58 +0000 en hourly 1 http://wordpress.org/?v=3.3.1 Terrain – iPad app http://ohadpr.com/2010/07/terrain-ipad-app/ http://ohadpr.com/2010/07/terrain-ipad-app/#comments Fri, 30 Jul 2010 16:03:17 +0000 admin http://ohadpr.com/?p=282 I’ve re-written my 10 year old Terrain-Engine as an iPad app. It uses OpenGL Shaders and was lots of fun to write.

Get it for your iPad:

]]>
http://ohadpr.com/2010/07/terrain-ipad-app/feed/ 4
Google-Voice vs. Skype http://ohadpr.com/2010/05/google-voice-vs-skype/ http://ohadpr.com/2010/05/google-voice-vs-skype/#comments Sat, 22 May 2010 20:10:10 +0000 admin http://ohadpr.com/?p=280 Continue reading ]]> I believe that in a few years Google-Voice (GV) will be significantly larger than it is now, and that will be due to growth in the Desktop/Mobile user segment not standard-phone users. The advantage will all boil down to the fact that GV gave users a free US phone number to start with.

Here’s how things will evolve:

  • iPhone OS4 comes out, VOIP apps can run in the background
  • People start using Skype all the time in the background and whenever they have WiFi its great
  • GV will come out with an iPhone app that does their VOIP calls over WiFi as well (that’s legit and Apple will approve it)
  • Guess what, GV gives you a free incoming number so you can now make and receive calls, most of the time (when you’re on WiFi and heck maybe also on 3G)
  • This will all be replicated (if not executed earlier) on Android devices which will find GV to be the default VOIP app, and oh yeah did I mention you get a free US number?

This battle will be over the segment of users who are around WiFi coverage enough of the time and have smartphones that will allow them to use WiFi for making/receiving calls when its available. GV’s architecture lends itself beautifully to this as it gracefully degrades from direct VOIP calls to standard ‘to your phone number’ calls. Skype has similar functionality though its really not implemented so well and Skype’s focus has been solely on the VOIP-calls segment while GV started from standard calls and will now expand with Desktop/Mobile VOIP apps.

GV’s current issues with call-delays (caused by the fact that all calls are tunneled through Google servers so that Google can provide conferencing/recording functionality) will go away. All these features will be implemented on the user’s Desktop/Mobile-device and so call quality will go up and lag will go down to nothing.

Its going to interesting and fun, can’t wait to get GV background app on my iPhone.

]]>
http://ohadpr.com/2010/05/google-voice-vs-skype/feed/ 0
HTML5 Text Path demo http://ohadpr.com/2010/05/html5-text-path-demo/ http://ohadpr.com/2010/05/html5-text-path-demo/#comments Fri, 07 May 2010 15:28:30 +0000 admin http://ohadpr.com/?p=272 Continue reading ]]> I’ve been experimenting with various HTML5 (specifically SVG and Canvas) elements recently and was looking at ways to fully control text in a dynamic and fast manner. SVG offers Path elements but these are defined in markup which feels limiting. It made much more sense to define paths myself and just figure out how to layout the text on these paths from JavaScript.

I learned a lot about some of the ways you can play around with Fonts. You see usually fonts are rendered by the OS or custom libraries because rendering fonts is such an important part of rendering beautiful web-pages. Another interesting option is to break-down a TTF font-file into its various path elements and beziers, ignoring a lot of important data, and just letting the browser render these paths through SVG. Its a beautiful process enabled by a library called Cufón. This library will literally take a TTF file and spit out a JSON representation of its paths.

Once you have your font-data in SVG paths you can basically position/scale/rotate them however you’d like, in the following example I show some code that traces a path and positions text on that path. The code uses the Raphael JS library which makes it easier to deal with modern graphics in browsers.

Live demo

]]>
http://ohadpr.com/2010/05/html5-text-path-demo/feed/ 0
Countries, Approximate Lat-Lon and ISO 3166-1 alpha-2 http://ohadpr.com/2010/04/countries-approximate-lat-lon-and-iso-3166-1-alpha-2/ http://ohadpr.com/2010/04/countries-approximate-lat-lon-and-iso-3166-1-alpha-2/#comments Tue, 27 Apr 2010 06:02:51 +0000 admin http://ohadpr.com/?p=252 Continue reading ]]> We’re working on a visualization of real-time clicks on our http://appsto.re short URL. The cheap GeoIP database we use to convert IP address to geographical coordinates only gives us country-codes. ISO 3166-1 defines the encoding of ”countries, dependent territories, and special areas of geographical interest” into codes, and the 2-character encoding subset is defined in ISO 3166-1 alpha-2. A country like France ends up being ‘FR’, Israel is ‘IL’, you get it.

When we wanted to plot this onto Google Maps we needed to convert country-codes to Lat/Lon (map coordinates) and apparently there isn’t such a simple mapping. One reason may be that a country like France has a political border which is well defined but there’s no real point on the map that defines it, that’s pretty arbitrary. A bunch of companies (Google, Yahoo, etc) have what’s called Geocoders which are pieces of software that will take an address and return the Lat/Lon representation of it. Most Geocoders don’t like 2-letter country-code though, bummer.

What we ended up doing is digging out this information from a few Geocoders that do like to chew up 2-character codes, and for the sake of other developers we wanted to curate the data and make it easily available and consumable for other developers. I’m including a Google Spreadhseet with all the values, as well as a JSON dictionary that gives you country name, lat and lon given a country-code. I also included this data for all USA and Canadian states. Feel free to use this to facilitate visualizations of data or anything else you think is cool.

The data:

Online spreadsheet
JSON file
MySQL Data Dump (tnx Dvir Volk)

And here’s the embedded data just for fun:

]]>
http://ohadpr.com/2010/04/countries-approximate-lat-lon-and-iso-3166-1-alpha-2/feed/ 3
What does Google Voice on your Desktop mean? http://ohadpr.com/2010/04/what-does-google-voice-on-your-desktopmean/ http://ohadpr.com/2010/04/what-does-google-voice-on-your-desktopmean/#comments Fri, 09 Apr 2010 08:40:41 +0000 admin http://ohadpr.com/?p=248 Continue reading ]]> It seems like Google is testing a Desktop Client for its Google Voice service. Google acquired a company called Gizmo5 some time ago specifically for this reason.

GV (Google Voice) is a service that gives you a single virtual US phone number where people can call/SMS you and get forwarded to whatever landline/mobile phone you may be using at the moment. Its a pretty good service and should continue improving in the near future.

What does a Desktop version mean? I’ll try to summarize it into a few points:s

  • The Desktop version is something like a dashboard + an endpoint bundled together
  • This endpoint is so much better than a landline/mobile endpoint because you won’t experience lag and call-quality should be optimal
  • You’ll have full and interactive control of GV features such as conferencing, recording calls, etc
  • You’ll be able to place 100% VOIP calls to other GV subscribers who are using a Desktop version.
  • A Desktop version of GV is a first step, it will be followed by Mobile versions which let you place/receive calls over WiFi/3G, this lets Google bypass Carriers such as AT&T.
  • GV with a Desktop version is potentially better than Skype because it comes with a free US phone number and falls back to forwarding calls to your mobile/landline.

Questions:

  • Right now placing GV calls is free, which is odd. Why odd? because it should be costing Google a shitload of money. I can only assume that because Google is buying termination on both sides, and both sides (carriers) may be charging their clients for receiving the call, Google is probably ending up with a net zero cost for this scenario.
  • Once you place calls from GV Desktop the result of this equation will be negative, and if my assumption is correct I predict Google won’t let you place free calls from Desktop/Mobile clients but will charge you for them, just as Skype does.

In short, I can’t wait to try it out rather than forwarding GV to my landline/mobile phones, at least when I’m home.

]]>
http://ohadpr.com/2010/04/what-does-google-voice-on-your-desktopmean/feed/ 0
7 things the iPad will change http://ohadpr.com/2010/04/7-things-the-ipad-will-change/ http://ohadpr.com/2010/04/7-things-the-ipad-will-change/#comments Sat, 03 Apr 2010 09:03:48 +0000 admin http://ohadpr.com/?p=225 Continue reading ]]>

There’s so much commotion about the iPad that its hard to reduce its debut tomorrow to any single value proposition. I think the impact of this device on how we consume and interact with digital content will be nothing short of ZOMG.

Here are 7 things I think the iPad will change:

  • My laptop has just turned into a desktop, and my (future) iPad is the only computer I’ll be taking with me when I leave home
  • If you have an iPhone prepare to use it significantly less – unless you’re running down the street or something
  • Most people over 50 are going to find themselves 10x more productive and 10x less stressful using this device vs. their PC
  • It will take a lot of what we do on a PC and make it simpler, sexier and more comfortable – Apple are really good at this
  • We will consume significantly more content because its going to be so convenient – Books, Videos, Books, Blogs, News-Papers, Books.
  • Written content will see the biggest boom now that things like Harry Potter’s “The Daily Prophet” are possible.
  • Apple stock will dip when the market opens Monday April 5′th 2010 – It usually does as last week’s buyers sell to make a profit, oh and I have some April $230 PUTs

And here’s for some laughs:

]]>
http://ohadpr.com/2010/04/7-things-the-ipad-will-change/feed/ 0
Explaining US car to Isralies http://ohadpr.com/2009/09/explaining-us-car-to-isralies/ http://ohadpr.com/2009/09/explaining-us-car-to-isralies/#comments Sun, 06 Sep 2009 06:48:06 +0000 ohad http://ohadpr.com/?p=203 Continue reading ]]> US auto insurance is complex, there are many components and many prices. I avoided this for a while, but eventually sat down to understand WTF is going on here. so here’s a translation of the terms, what’s important and what’s not:

Bodily Injury & Property Damange Liability – דפקתי איזה מניאק, אני אשם, משלם לו בית-חולים ונזקים. הכי חשוב

Uninsured/Underinsured Motorist Bodily Injury – מניאק בלי ביטוח דפק אותי או את הנוסעים שלי

Uninsured Motorist Property Damage – מניאק בלי ביטוח דפק לי את האוטו כל עוד אני לא מונית ולא במירוץ

Medical payments – מניאק פגע בי או בבני משפחה, מכסים לי הוצאות רפואיות. בד”כ יש לך כבר ביטוח רפואי משלך

Comprehensive Coverage – השתתפות עצמית מנזק לרכב שלי לא מתאונה, לדוגמא ערס שבר לי חלון

Collision coverage – השתתפות עצמית מנזק לאוטו מתאונה

Rental car reimbursement – רכב חלופי

Roadside assistance – גרירה

]]>
http://ohadpr.com/2009/09/explaining-us-car-to-isralies/feed/ 2
twitpic and yfrog thumbnails http://ohadpr.com/2009/06/twitpic-and-yfrog-thumbnails/ http://ohadpr.com/2009/06/twitpic-and-yfrog-thumbnails/#comments Sun, 28 Jun 2009 07:12:30 +0000 ohad http://ohadpr.com/?p=153 Continue reading ]]> my facebook newsfeed is full of twits with links to images hosted on twitpic and yfrog. both twitpic and yfrog provide a super simple way to get thumbnails from these links. so, until facebook or some facebook-app does this for me, i had to do it for myself.

here’s a simple bookmarklet twitpicfix that will convert this:

ohad-b4to this:

ohad-after

and this:

yfrog-b4into this:

yfrog-after

since i’m too lazy to write a firefox extension (and there’s already a PowerTwitter that does some of this for the twitter website itself), so I hacked a bookmarklet that does it.

drag the bookmarklet twitpicfix to your links bar and click it whenever you have a bunch of twitpic/yfrog urls and want to preview them inline.

in fact, here’s a http://twitpic.com/892ti link, click the twitpicfix link and see what happens.

]]>
http://ohadpr.com/2009/06/twitpic-and-yfrog-thumbnails/feed/ 0
nice San-Francisco quote http://ohadpr.com/2009/06/nice-san-francisco-quote/ http://ohadpr.com/2009/06/nice-san-francisco-quote/#comments Sun, 21 Jun 2009 01:14:19 +0000 ohad http://ohadpr.com/?p=148 “San Francisco is a city of misfits. And maybe thats why it’s so easy to fit in here. If it feels weird, we loved having you. If it feels right, welcome home.”

thanks David Ulevitch for this one

]]>
http://ohadpr.com/2009/06/nice-san-francisco-quote/feed/ 0
Download Kindle books http://ohadpr.com/2009/03/download-kindle-books/ http://ohadpr.com/2009/03/download-kindle-books/#comments Mon, 02 Mar 2009 23:07:46 +0000 ohad http://ohadpr.com/?p=141 Continue reading ]]> just got my new Kindle 2 which is totally awesome.
I found this website, http://manybooks.net/ which has tons of books from Project Gutenberg, it also has all the titles in the Kindle’s AZW format.

My friend Amit Shafrir said it would be cool if there were some script that let you quickly download these AZW files, and so here it is.

It’s a bookmarklet, drag it -> ManyBooksKindlify <- to your bookmarks toolbar and whenever you are on a page that lists books on http://manybooks.net/ click it to automagically have direct-kindle-download links inserted into the page (a little ‘k’ icon).

You can start by visiting the weekly most downloaded books list.

]]>
http://ohadpr.com/2009/03/download-kindle-books/feed/ 0