ohadpr » ohad 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 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
Visual comments in code http://ohadpr.com/2008/10/visual-comments-in-code/ http://ohadpr.com/2008/10/visual-comments-in-code/#comments Thu, 16 Oct 2008 02:52:28 +0000 ohad http://ohadpr.com/?p=131 an idea i had a few years ago, bumped into it while skimming through my documents and figured its better online than offline.

]]>
http://ohadpr.com/2008/10/visual-comments-in-code/feed/ 1
car details http://ohadpr.com/2008/08/car-details/ http://ohadpr.com/2008/08/car-details/#comments Sun, 31 Aug 2008 03:50:41 +0000 ohad http://ohadpr.com/?p=125 we were looking to buy a car and rather than dumping the results in the recycle-bin here they are for the web-crawlers:

* trip calculations are based on a 102m trip to SJ and back with gallon price at $4.3

]]>
http://ohadpr.com/2008/08/car-details/feed/ 2
Playing with Yahoo Pipes http://ohadpr.com/2008/08/playing-with-yahoo-pipes/ http://ohadpr.com/2008/08/playing-with-yahoo-pipes/#comments Mon, 18 Aug 2008 02:20:19 +0000 ohad http://ohadpr.com/?p=122 Continue reading ]]> So I was sitting this Sunday afternoon, getting pissed that there’s no easy way to monitor replies on Twitter. I talk with people there and there’s no serious built-in feature in Twitter that will notify me when people reply to me, which, other than direct messages, is exactly when I want to jump back in and continue the conversation.

I ended up taking the RSS for my updates – http://twitter.com/statuses/replies.rss (requires your credentials), pulling it through Yahoo Pipes (because its able to supply my credentials to Twitter), and using the result of that pipe with Pingie (a useful free service that does RSS to SMS). Why not Yahoo Alerts? It just didn’t work…

A few tests later and I get an SMS whenever someone replies to me on Twitter.

Now, who can stop there? just what I thought.

I have this stock which is suppose to fluctuate coming Monday/Tuesday, I’d like to have something automatic notify me when that fluctuation takes place. An hour later I’m done with my first “serious” Pipe – the Stock Alert:

It was fun to write because it forced me to learn the whole Pipes thing, and I’m happy to add that to my arsenal of ‘quick and dirty’ utilities, maybe even not that dirty. The idea is to generate a new RSS item any time the alert pops, so right now it achieves that by reiwiring the date and time into both the item’s guid and its pubDate.

Open issues:

  • What happens after 1 alert is generated and sent? right now a shitload more will keep on coming. If Pipes lets you store variables between executions this could help.

I have another pipe that does a Union bewtween my Twitter replies, the stock alert and whatever I come up with next. This endgame Pipe is what gets SMS’d whenever it changes.

My concusion: Pipes is very cool and more than cool its very powerful and useful. Works great as a Sunday afternoon game.

]]>
http://ohadpr.com/2008/08/playing-with-yahoo-pipes/feed/ 2
IM protocols, do they support dynamic embedded images? http://ohadpr.com/2008/07/im-protocols-do-they-support-dynamic-embedded-images/ http://ohadpr.com/2008/07/im-protocols-do-they-support-dynamic-embedded-images/#comments Thu, 10 Jul 2008 04:53:00 +0000 ohad http://ohadpr.com/2008/07/09/im-protocols-do-they-support-dynamic-embedded-images/ Continue reading ]]> here’s a scenario i’d like to have:

  • i’m chatting with someone on IM
  • i want to show him something i’m seeing on my screen
  • i hit ctrl+apple+shift+whatever, get an overlay control to crop some part of my screen
  • click my mouse, boom that part gets cropped and sent to my chat partner
  • my chat partner gets a small message embedded into his chat dialog saying an image is being transferred with a progress bar
  • when the image is transferred its shown as an inline thumbnail within the chat where the original message for ‘image being received’ was shown, this is chronological
  • single-clicking the thumbnail brings up the entire image in a thin embedded viewer, no external stuff
  • there’s a button to ‘save to file’

i know i can screen-capture myself, save to a file, send to my friend, he accepts it, saves it to his hard drive and opens it with his default image viewer (which may be photoshop, OUCH). but we all know this flow sucks and that’s why we don’t do it.

what’s needed?

  • IM protocol support for dynamic inline images (i think MSN has something like this, others?) this should enable injecting an image into the chat and later changing it. the whole process (image being sent, progress) can be done using solely with images.
  • IM client support for capturing/cropping the screen and hiding the details from a the user while the data is being sent to his chat partner.

any ideas? if MSN supports enough of this in the protocol I vouch to get someone to write client support for this in Adium and maybe pidgin on windows.

]]>
http://ohadpr.com/2008/07/im-protocols-do-they-support-dynamic-embedded-images/feed/ 2
Multi-Core Software http://ohadpr.com/2008/07/multi-core-software/ http://ohadpr.com/2008/07/multi-core-software/#comments Mon, 07 Jul 2008 07:14:00 +0000 ohad http://ohadpr.com/2008/07/07/multi-core-software/ Continue reading ]]> It’s a known fact that CPU cores are not going to see high increases in their singular power. The alternative chip-makers have come up with is multi-core – the poor man’s SMP. It seems like future CPUs will be trying to maintain Moore’s law using more cores rather than more singular power.

Does this change the game? does it pose an opportunity?

It certainly forces hard-core programmers to focus on parallel-ability. Most programmers don’t deal with stuff that needs to be optimized (writing on_click handlers for buttons anybody?) but the core that writes our OSs‘, implements STL for us, writes graphic drivers, and the algorithmic type will have to keep up on their multi-threading skills.

The more popular programming languages have done a good job of not introducing multi-threaded concepts into their language structure. I say good because it has been generally unnecessary until now. What happens though if our PCs are suddenly all multi-core by definition? Do we expose this in high-level languages such as C#?

I wonder if we can reuse ideas from the distributed computing move of the past 10 years. I remember how in ’98 I was thinking about the potential growth of distributed computing and how this growing field lacked tools to write parallel-able code…

]]>
http://ohadpr.com/2008/07/multi-core-software/feed/ 3
Youtube Bucket testing? http://ohadpr.com/2008/06/youtube-bucket-testing/ http://ohadpr.com/2008/06/youtube-bucket-testing/#comments Tue, 24 Jun 2008 05:29:00 +0000 ohad http://ohadpr.com/2008/06/23/youtube-bucket-testing/

]]>
http://ohadpr.com/2008/06/youtube-bucket-testing/feed/ 0