<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ohadpr &#187; hack</title>
	<atom:link href="http://ohadpr.com/category/hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://ohadpr.com</link>
	<description>ideas, hacks and stuff</description>
	<lastBuildDate>Wed, 18 Aug 2010 01:57:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>twitpic and yfrog thumbnails</title>
		<link>http://ohadpr.com/2009/06/twitpic-and-yfrog-thumbnails/</link>
		<comments>http://ohadpr.com/2009/06/twitpic-and-yfrog-thumbnails/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 07:12:30 +0000</pubDate>
		<dc:creator>ohad</dc:creator>
				<category><![CDATA[hack]]></category>

		<guid isPermaLink="false">http://ohadpr.com/?p=153</guid>
		<description><![CDATA[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 &#8230; <a href="http://ohadpr.com/2009/06/twitpic-and-yfrog-thumbnails/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>my facebook newsfeed is full of twits with links to images hosted on <a href="http://twitpic.com/">twitpic</a> and <a href="http://yfrog.com/">yfrog</a>. both twitpic and yfrog provide a <a href="http://twitpic.com/api.do#thumbnails">super</a> <a href="http://code.google.com/p/imageshackapi/wiki/YFROGthumbnails">simple</a> 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.</p>
<p>here&#8217;s a simple bookmarklet <a href="javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://'+'ohadpr.com/proj/twitpicfix/twitpicfix.js'})();">twitpicfix</a> that will convert this:</p>
<p><a href="http://ohadpr.com/wp-content/uploads/2009/06/ohad-b4.png"><img class="aligncenter size-medium wp-image-155" title="ohad-b4" src="http://ohadpr.com/wp-content/uploads/2009/06/ohad-b4-300x45.png" alt="ohad-b4" width="300" height="45" /></a>to this:</p>
<p><a href="http://ohadpr.com/wp-content/uploads/2009/06/ohad-after.png"><img class="aligncenter size-medium wp-image-154" title="ohad-after" src="http://ohadpr.com/wp-content/uploads/2009/06/ohad-after-300x134.png" alt="ohad-after" width="300" height="134" /></a></p>
<p>and this:</p>
<p><a href="http://ohadpr.com/wp-content/uploads/2009/06/yfrog-b4.png"><img class="aligncenter size-medium wp-image-157" title="yfrog-b4" src="http://ohadpr.com/wp-content/uploads/2009/06/yfrog-b4-300x48.png" alt="yfrog-b4" width="300" height="48" /></a>into this:</p>
<p><a href="http://ohadpr.com/wp-content/uploads/2009/06/yfrog-after.png"><img class="aligncenter size-medium wp-image-156" title="yfrog-after" src="http://ohadpr.com/wp-content/uploads/2009/06/yfrog-after-300x91.png" alt="yfrog-after" width="300" height="91" /></a></p>
<p>since i&#8217;m too lazy to write a firefox extension (and there&#8217;s already a <a href="http://83degrees.com/post/Adding_Features_with_Power_Twitter">PowerTwitter</a> that does some of this for the twitter website itself), so I hacked a bookmarklet that does it.</p>
<p>drag the bookmarklet <a href="javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://'+'ohadpr.com/proj/twitpicfix/twitpicfix.js';})();">twitpicfix</a> to your links bar and click it whenever you have a bunch of twitpic/yfrog urls and want to preview them inline.</p>
<p>in fact, here&#8217;s a <a href="http://twitpic.com/892ti">http://twitpic.com/892ti</a> link, click the <a href="javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://'+'ohadpr.com/proj/twitpicfix/twitpicfix.js';})();">twitpicfix</a> link and see what happens.</p>
]]></content:encoded>
			<wfw:commentRss>http://ohadpr.com/2009/06/twitpic-and-yfrog-thumbnails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download Kindle books</title>
		<link>http://ohadpr.com/2009/03/download-kindle-books/</link>
		<comments>http://ohadpr.com/2009/03/download-kindle-books/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 23:07:46 +0000</pubDate>
		<dc:creator>ohad</dc:creator>
				<category><![CDATA[hack]]></category>
		<category><![CDATA[kindle azw gutenberg download]]></category>

		<guid isPermaLink="false">http://ohadpr.com/?p=141</guid>
		<description><![CDATA[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&#8217;s AZW format. My friend Amit Shafrir said it &#8230; <a href="http://ohadpr.com/2009/03/download-kindle-books/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>just got my new Kindle 2 which is totally awesome.<br />
I found this website, <a href="http://manybooks.net/">http://manybooks.net/</a> which has tons of books from Project Gutenberg, it also has all the titles in the Kindle&#8217;s AZW format.</p>
<p>My friend <a href="http://twitter.com/ashafrir">Amit Shafrir</a> said it would be cool if there were some script that let you quickly <a href="http://twitter.com/ashafrir/status/1267425192">download</a> these AZW files, and so here it is.</p>
<p>It&#8217;s a bookmarklet, drag it -&gt; <a href="javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://visual-i.com/kindle/manybooks_kindle_dl.js';})();">ManyBooksKindlify</a> &lt;- to your bookmarks toolbar and whenever you are on a page that lists books on <a href="http://manybooks.net/">http://manybooks.net/</a> click it to automagically have direct-kindle-download links inserted into the page (a little &#8216;k&#8217; icon).</p>
<p>You can start by visiting the <a href="http://manybooks.net/statistics_weekly.php">weekly most downloaded books</a> list.</p>
]]></content:encoded>
			<wfw:commentRss>http://ohadpr.com/2009/03/download-kindle-books/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playing with Yahoo Pipes</title>
		<link>http://ohadpr.com/2008/08/playing-with-yahoo-pipes/</link>
		<comments>http://ohadpr.com/2008/08/playing-with-yahoo-pipes/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 02:20:19 +0000</pubDate>
		<dc:creator>ohad</dc:creator>
				<category><![CDATA[hack]]></category>

		<guid isPermaLink="false">http://ohadpr.com/?p=122</guid>
		<description><![CDATA[So I was sitting this Sunday afternoon, getting pissed that there&#8217;s no easy way to monitor replies on Twitter. I talk with people there and there&#8217;s no serious built-in feature in Twitter that will notify me when people reply to &#8230; <a href="http://ohadpr.com/2008/08/playing-with-yahoo-pipes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So I was sitting this Sunday afternoon, getting pissed that there&#8217;s no easy way to monitor replies on <a href="http://www.twitter.com/">Twitter</a>. I talk with people there and there&#8217;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.</p>
<p>I ended up taking the RSS for my updates &#8211; <a href="http://twitter.com/statuses/replies.rss">http://twitter.com/statuses/replies.rss</a> (requires your credentials), pulling it through <a href="http://pipes.yahoo.com/pipes/">Yahoo Pipes</a> (because its able to supply my credentials to Twitter), and using the result of that pipe with <a href="http://www.pingie.com/">Pingie</a> (a useful free service that does RSS to SMS). Why not <a href="http://alerts.yahoo.com/">Yahoo Alerts</a>? It just didn&#8217;t work&#8230;</p>
<p><a href="http://twitter.com/ohadpr/statuses/890543030">A few tests later</a> and I get an SMS whenever someone replies to me on Twitter.</p>
<p>Now, who can stop there? just what I thought.</p>
<p>I have this stock which is suppose to fluctuate coming Monday/Tuesday, I&#8217;d like to have something automatic notify me when that fluctuation takes place. An hour later I&#8217;m done with my first &#8220;serious&#8221; Pipe &#8211; the <a href="http://pipes.yahoo.com/pipes/pipe.info?_id=agvHuLls3RGdXvhHrbQIDg">Stock Alert</a>:</p>
<p><a href="http://ohadpr.com/wp-content/uploads/2008/08/picture-1.png"><img class="aligncenter size-medium wp-image-123" title="stock alert pipe" src="http://ohadpr.com/wp-content/uploads/2008/08/picture-1-300x231.png" alt="" width="300" height="231" /></a></p>
<p>It was fun to write because it forced me to learn the whole Pipes thing, and I&#8217;m happy to add that to my arsenal of &#8216;quick and dirty&#8217; 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&#8217;s guid and its pubDate.</p>
<p>Open issues:</p>
<ul>
<li>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.</li>
</ul>
<p>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&#8217;d whenever it changes.</p>
<p>My concusion: Pipes is very cool and more than cool its very powerful and useful. Works great as a Sunday afternoon game.</p>
]]></content:encoded>
			<wfw:commentRss>http://ohadpr.com/2008/08/playing-with-yahoo-pipes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

