<?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>blg.saturnpolly.net</title>
	<atom:link href="http://blg.saturnpolly.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blg.saturnpolly.net</link>
	<description></description>
	<lastBuildDate>Tue, 09 Feb 2010 18:00:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>In page search for Safari on the iPhone</title>
		<link>http://blg.saturnpolly.net/2010/02/09/in-page-search-safari-iphone/</link>
		<comments>http://blg.saturnpolly.net/2010/02/09/in-page-search-safari-iphone/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 17:06:38 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Not Really]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[fml]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[missing-feature]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://blg.saturnpolly.net/?p=36</guid>
		<description><![CDATA[MobileSafariFind is a bookmarklet that adds an in page search capability to the iPhone version of Safari. Some of the features:

Comes with a small and simple UI

Allows navigation through search results
Shows number of results and current position
Adapts to the zoom level, orientation and the position on the page


Leverages native browser features as much as possible [...]]]></description>
			<content:encoded><![CDATA[<p>MobileSafariFind is a bookmarklet that adds an in page search capability to the iPhone version of Safari. Some of the features:</p>
<ul>
<li>Comes with a small and simple UI
<ul>
<li>Allows navigation through search results</li>
<li>Shows number of results and current position</li>
<li>Adapts to the zoom level, orientation and the position on the page</li>
</ul>
</li>
<li>Leverages native browser features as much as possible and operates  on the DOM through the API  only to ensure the page stays functional</li>
<li>No load time dependencies, all that is needed comes tightly  packaged in less than 6KB. You can use it with or without a connection.</li>
</ul>

<a href='http://blg.saturnpolly.net/2010/02/09/in-page-search-safari-iphone/img_0160/' title='IMG_0160'><img width="150" height="150" src="http://blg.saturnpolly.net/wp-content/uploads/2010/02/IMG_0160-150x150.png" class="attachment-thumbnail" alt="" title="IMG_0160" /></a>
<a href='http://blg.saturnpolly.net/2010/02/09/in-page-search-safari-iphone/img_0163/' title='IMG_0163'><img width="150" height="150" src="http://blg.saturnpolly.net/wp-content/uploads/2010/02/IMG_0163-150x150.png" class="attachment-thumbnail" alt="" title="IMG_0163" /></a>
<a href='http://blg.saturnpolly.net/2010/02/09/in-page-search-safari-iphone/img_0165/' title='IMG_0165'><img width="150" height="150" src="http://blg.saturnpolly.net/wp-content/uploads/2010/02/IMG_0165-150x150.png" class="attachment-thumbnail" alt="" title="IMG_0165" /></a>
<a href='http://blg.saturnpolly.net/2010/02/09/in-page-search-safari-iphone/img_0164_/' title='IMG_0164_'><img width="150" height="150" src="http://blg.saturnpolly.net/wp-content/uploads/2010/02/IMG_0164_-150x150.png" class="attachment-thumbnail" alt="" title="IMG_0164_" /></a>

<p>I prepared a little <a href="http://saturnpolly.net/msf/install.html">installation guide</a> that describes the simplest way to add a bookmarklet (apart from syncing your Safari bookmarks of course).</p>
<p>The bookmarklet is released under MIT License and available on <a href="http://github.com/SaturnPolly/MobileSafariFind">GitHub</a>.</p>
<h2>Motivation</h2>
<p>The solutions I found when I started developing this bookmarklet were not very good and basically all worked like this:</p>
<pre>document.body.innerHTML=document.body.innerHTML
.replace(/search/gi, '&lt;span style="color:yellow"&gt;$1&lt;/span&gt;');</pre>
<p>There are two problems with that:</p>
<ol>
<li>Operating on the DOM as text is unnatural and errorprone, consider the following example:
<pre>&lt;input type="submit" value="search"/&gt;</pre>
<p>becomes</p>
<pre>&lt;input type="submit" value="&lt;span style="color:red"&gt;search&lt;/span&gt;"/&gt;</pre>
<p>Since browsers learned to parse even the shittiest HTML over the past 15 years you are in luck, it won&#8217;t show a blank page or even crash, but you definitely just broke the page. If you are now tempted to show off your mad regex skills to work around such a case misery will commence sooner or later.</li>
<li>Any event listeners that are not part of the markup (&lt;a onclick=&#8221;&#8230;&#8221;/&gt;) are gone, as well as any references to DOM Nodes (they are technically they are still there, but are now zombie fragments without a document). With more and more pages becoming more on more ajaxy that&#8217;s not very good.</li>
</ol>
<p>Both things are easily solvable by reloading the page, but maybe I already filled out part of a form, have a slow connection or even no connection at all. Anyway, it&#8217;s a shitty user experience and makes the thing more painful than useful.</p>
<h2>Exceptionally bad timing. Or: <acronym title="Fuck My Life">FML</acronym></h2>
<p>The missing in page search was something that bothered me for a while, in December 09 I googled for bookmarklets that would provide this feature. As mentioned above I only found crappy ones that were more frustrating than helpful, so I decided to start building my own. With a lot of &#8220;dry spells&#8221; in between I finally brought it to a point where the thing was releasable. Looking for the bookmarklets I found back in December to include in this post I then found this:</p>
<p><a href="http://findinpage.blogspot.com">http://findinpage.blogspot.com</a></p>
<p>It is practically the same thing I did. Released in mid-January. I haven&#8217;t tried it yet but from the posts and the videos these seem to be the differences:</p>
<ul>
<li>The bookmarklet comes along as a paid app in the AppStore. In fact the app is simply a &#8220;delivery container&#8221; since all it does is provide a button to load the JavaScript code into your clipboard.</li>
<li>It allows subsequent queries</li>
<li>It allows regular expressions</li>
</ul>
<p>Now there are a lot of mixed feelings. If I hadn&#8217;t spend so much time writing my own bookmarklet then I would probably be pretty happy about finally having found the thing I searched for. I would still find it a little odd to package that thing in an app, but hey: From the videos it looks decent, so why shouldn&#8217;t he get money for the thing he built.</p>
<p>But I did spend much time on writing my own, and so — probably jealous for not having released mine first — I focus on things like <a href="http://prmac.com/release-id-10401.htm">weird, pretentious press releases</a> where he writes about himself in third person. It also reminds me how much I dislike those useless, incestuous PR/marketing blog networks.</p>
<p>Well, I guess that&#8217;s life. I will definitly try his app and of course peek into the source code. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://blg.saturnpolly.net/2010/02/09/in-page-search-safari-iphone/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rubber band balls</title>
		<link>http://blg.saturnpolly.net/2010/02/06/rubber-band-balls/</link>
		<comments>http://blg.saturnpolly.net/2010/02/06/rubber-band-balls/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 21:47:45 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Not Really]]></category>
		<category><![CDATA[buyit]]></category>
		<category><![CDATA[timesink]]></category>

		<guid isPermaLink="false">http://blg.saturnpolly.net/?p=19</guid>
		<description><![CDATA[ Having nervous hands I am always happy about things to occupy them. I already own two sets of BuckyBalls (great productivity killer) and I was thrilled when my sister gave me this rubber band ball a couple of weeks ago. Imaging that rebuilding a ball consisting of 240 rubber bands would take quite a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://shop.moses-verlag.de/erwachsene/libri-x/libri-x-gummiball.html"><img class=" alignright" title="rubberband-ball" src="http://blg.saturnpolly.net/wp-content/uploads/2010/02/rubberband-ball.jpg" alt="Rubberband Ball" width="125" height="118" /></a> Having nervous hands I am always happy about things to occupy them. I already own two sets of <a href="http://www.getbuckyballs.com/">BuckyBalls</a> (great productivity killer) and I was thrilled when my sister gave me <a href="https://shop.moses-verlag.de/erwachsene/libri-x/libri-x-gummiball.html">this rubber band ball</a> a couple of weeks ago. Imaging that rebuilding a ball consisting of 240 rubber bands would take quite a while I have so far never taken it fully apart.</p>
<p>I didn&#8217;t know rubber band balls before then and googled a little bit. Apparently they are pretty common, at least there is a <a href="http://en.wikipedia.org/wiki/Rubber_band_ball">rubber band ball page on Wikipedia</a> and a <a href="http://community.guinnessworldrecords.com/_Worlds-Largest-Rubber-Band-Ball/photo/782182/7691.html">crazy world record</a>:</p>
<p><a href="http://community.guinnessworldrecords.com/_Worlds-Largest-Rubber-Band-Ball/photo/782182/7691.html"></a><a href="http://blg.saturnpolly.net/wp-content/uploads/2010/02/rubberbandball-record.jpg"><img class="aligncenter size-full wp-image-29" title="rubberbandball-record" src="http://blg.saturnpolly.net/wp-content/uploads/2010/02/rubberbandball-record.jpg" alt="" width="420" height="315" /></a></p>
<p>Nervous feet, I guess. ;p</p>
]]></content:encoded>
			<wfw:commentRss>http://blg.saturnpolly.net/2010/02/06/rubber-band-balls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

