<?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>Nerd</title>
	<atom:link href="http://nerd.vasilis.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://nerd.vasilis.nl</link>
	<description>Vasilis van Gemert</description>
	<lastBuildDate>Mon, 09 May 2011 07:51:38 +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>Prevent iOs from zooming onfocus</title>
		<link>http://nerd.vasilis.nl/prevent-ios-from-zooming-onfocus/</link>
		<comments>http://nerd.vasilis.nl/prevent-ios-from-zooming-onfocus/#comments</comments>
		<pubDate>Sun, 08 May 2011 21:00:11 +0000</pubDate>
		<dc:creator>Vasilis</dc:creator>
				<category><![CDATA[ios]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[nerd]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://nerd.vasilis.nl/?p=152</guid>
		<description><![CDATA[When a form element gets focus on iOs the browser zooms in on that element. Very handy in unoptimized layouts where that element might be a few pixels high but annoying and unnecessary in a mobile optimized layout. You can disable this behaviour by changing the meta viewport value onfocus and onblur. Here&#8217;s a simple [...]<p><a href="http://nerd.vasilis.nl/prevent-ios-from-zooming-onfocus/">Prevent iOs from zooming onfocus</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></description>
			<content:encoded><![CDATA[<p>When a form element gets focus on iOs the browser zooms in on that element. Very handy in unoptimized layouts where that element might be a few pixels high but annoying and unnecessary in a mobile optimized layout. You can disable this behaviour by changing the meta viewport value onfocus and onblur.<br />
Here&#8217;s a simple jQuery example:</p>
<p><code>$('input, select, textarea').focus(function(){<br />
    $('meta[name=viewport]').attr('content','width=device-width,initial-scale=1,maximum-scale=1.0');<br />
});<br />
$('input, select, textarea').blur(function(){<br />
     $('meta[name=viewport]').attr('content','width=device-width,initial-scale=1,maximum-scale=10');<br />
});</code></p>
<p>Notice the tiny difference between focus and blur: onfocus you set the maximum-scale to 1 and onblur it&#8217;s set to 10. You shouldn&#8217;t use the code above, Wilfred Nas and Mathias Bynens optimized it in the comments to this snippet:</p>
<p><code>var $viewportMeta = $('meta[name="viewport"]');<br />
$('input, select, textarea').bind('focus blur', function(event) {<br />
  $viewportMeta.attr('content', 'width=device-width,initial-scale=1,maximum-scale=' + (event.type == 'blur' ? 10 : 1));<br />
});</code></p>
<p>The browser starts zooming in but immediately zooms out again when the elements gets focus. I like that.</p>
<p><a href="http://nerd.vasilis.nl/prevent-ios-from-zooming-onfocus/">Prevent iOs from zooming onfocus</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nerd.vasilis.nl/prevent-ios-from-zooming-onfocus/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Developer builds</title>
		<link>http://nerd.vasilis.nl/developer-builds/</link>
		<comments>http://nerd.vasilis.nl/developer-builds/#comments</comments>
		<pubDate>Wed, 04 May 2011 18:44:16 +0000</pubDate>
		<dc:creator>Vasilis</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[nerd]]></category>

		<guid isPermaLink="false">http://nerd.vasilis.nl/?p=150</guid>
		<description><![CDATA[All browsers (except for Safari so far) have started to update their browsers more frequently adding more and more new exciting web technologies all the time: a new browser war with mostly winners so far. All these browser vendors are releasing very early versions to the public in order to get as much feedback as [...]<p><a href="http://nerd.vasilis.nl/developer-builds/">Developer builds</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></description>
			<content:encoded><![CDATA[<p>All browsers (except for Safari so far) have started to update their browsers more frequently adding more and more new exciting web technologies all the time: a new browser war with mostly winners so far. All these browser vendors are releasing very early versions to the public in order to get as much feedback as possible. For my own reference &#8211; and yours too, sure &#8211; here&#8217;s a list of these early versions.</p>
<ul>
<li><a href="http://www.opera.com/browser/next/">Opera Next</a> can be run at the same time as the regular Opera</li>
<li><a href="https://www.mozilla.com/en-US/firefox/channel/">Firefox</a> has an Aurora version (far future, unstable) and a beta version (more stable). You can run them alongside with the help of the <a href="http://www.ghacks.net/2011/01/19/firefox-profile-manager-to-be-removed-soon/">ProfileManager</a></li>
<li><a href="http://tools.google.com/dlpage/chromesxs">Chrome has some Canary Builds</a> which can be run alongside your regular Chrome.</li>
<li>Internet Explorer <a href="http://ie.microsoft.com/testdrive/">Test Drive</a>  versions are released on a regular basis and can run next to IE9 (on Windows 7 only)</li>
</ul>
<p><a href="http://nerd.vasilis.nl/developer-builds/">Developer builds</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nerd.vasilis.nl/developer-builds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Adaptive CSS Zen Garden</title>
		<link>http://nerd.vasilis.nl/the-adaptive-css-zen-garden/</link>
		<comments>http://nerd.vasilis.nl/the-adaptive-css-zen-garden/#comments</comments>
		<pubDate>Tue, 03 May 2011 20:16:12 +0000</pubDate>
		<dc:creator>Vasilis</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[nerd]]></category>

		<guid isPermaLink="false">http://nerd.vasilis.nl/?p=144</guid>
		<description><![CDATA[In my talks and workshops about responsive web design and adaptive layouts I always take some time to take a look at CSS Zen Garden, since a part of building an adaptive layout is based on the same principle as the Zen Garden has been promoting all these years: the same content can be styled [...]<p><a href="http://nerd.vasilis.nl/the-adaptive-css-zen-garden/">The Adaptive CSS Zen Garden</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://fronteers.nl/blog/2011/04/bijeenkomst-gent">talks</a> and <a href="http://fronteers.nl/cursussen/adaptief-ontwikkelen-vasilis-van-gemert">workshops</a> about responsive web design and adaptive layouts I always take some time to take a look at CSS Zen Garden, since a part of building an adaptive layout is based on the same principle as the Zen Garden has been promoting all these years: the same content can be styled differently by using CSS. I always wanted to make a version of the CSS Zen Garden where a different layout is shown on every different resolution. I never built that thing because it would be way too much work for me, I&#8217;m not a very good coder. </p>
<p>Today I talked about this idea while I was giving a workshop. From that moment on <a href="https://twitter.com/roy">Roy Tomeij</a>, who was attending, was more silent than usual. Ten minutes later he interrupted me with this masterpiece. Ladies and gentleman, I present you the <a href="http://nerd.vasilis.nl/adaptive/zengarden.html">Adaptive CSS Zen Garden</a>. Resize your browser window at your own risk!</p>
<p><a href="http://nerd.vasilis.nl/the-adaptive-css-zen-garden/">The Adaptive CSS Zen Garden</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nerd.vasilis.nl/the-adaptive-css-zen-garden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another HTML5 fallback strategy for IE</title>
		<link>http://nerd.vasilis.nl/another-html5-fallback-strategy-for-ie/</link>
		<comments>http://nerd.vasilis.nl/another-html5-fallback-strategy-for-ie/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 20:57:34 +0000</pubDate>
		<dc:creator>Vasilis</dc:creator>
				<category><![CDATA[html 5]]></category>
		<category><![CDATA[nerd]]></category>

		<guid isPermaLink="false">http://nerd.vasilis.nl/?p=140</guid>
		<description><![CDATA[Versions of Internet Explorer prior to number 9 can not style unknown elements without the help of JavaScript: by adding the unknown elements to the DOM you can style them like any other element. So if you want to use the new HTML5 elements you will need JavaScript to style your site. Most people will [...]<p><a href="http://nerd.vasilis.nl/another-html5-fallback-strategy-for-ie/">Another HTML5 fallback strategy for IE</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Versions of Internet Explorer prior to number 9 can not style unknown elements without the help of JavaScript: by adding the unknown elements to the DOM you can style them like any other element. So if you want to use the new HTML5 elements you will need JavaScript to style your site. Most people will have no problem seeing your site but for those unlucky visitors with IE and JavaScript disabled (for whatever reason, there are lots of them), the experience can be horrible. Here&#8217;s a simple solution:</p>
<p>Serve your default stylesheet to all browsers except IE8 and lower. To those &#8220;browsers&#8221; you serve Andy Clarke&#8217;s <a href="http://code.google.com/p/universal-ie6-css/">universal ie6 css</a> in a conditional comment. Then with the help of a simple javascript you immediately replace this css file with your default css file. Now those unlucky visitors will at least see a nicely styled easy to read minimal site. (View source on <a href="http://vasilis.nl/delicious/">this page</a> to see how it works)</p>
<p>I couldn&#8217;t think of a way to replace the fallback css before it gets loaded so the only negative side effect of this technique is that it uses an extra http request. I think it&#8217;s worth it: for me this JavaScript dependency was the only thing that kept me from using HTML5 elements.</p>
<p><a href="http://nerd.vasilis.nl/another-html5-fallback-strategy-for-ie/">Another HTML5 fallback strategy for IE</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nerd.vasilis.nl/another-html5-fallback-strategy-for-ie/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Design for users first, not just for good looks</title>
		<link>http://nerd.vasilis.nl/design-for-users-first-not-just-for-good-looks/</link>
		<comments>http://nerd.vasilis.nl/design-for-users-first-not-just-for-good-looks/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 13:02:04 +0000</pubDate>
		<dc:creator>Vasilis</dc:creator>
				<category><![CDATA[accessibility]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://nerd.vasilis.nl/?p=138</guid>
		<description><![CDATA[I&#8217;m beta testing a new real time analytics app and it looks absolutely beautiful. A subtle design, a clear navigation, nice looking forms and some clever looking scrolling effects which remind me of framesets, just better looking. So far so good. I bookmarked it, imported the url into iCab on my iPad (my favorite browser [...]<p><a href="http://nerd.vasilis.nl/design-for-users-first-not-just-for-good-looks/">Design for users first, not just for good looks</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m beta testing a new real time analytics app and it looks absolutely beautiful. A subtle design, a clear navigation, nice looking forms and some clever looking scrolling effects which remind me of framesets, just better looking. So far so good. I bookmarked it, imported the url into iCab on my iPad (my favorite browser for managing online apps) and logged in to change the settings while lying on the couch. This is where the happy part ends. I really tried to make this a positive article but I just couldn&#8217;t. Sorry.</p>
<p><span id="more-138"></span></p>
<p>It turns out that some input types are somehow replaced by images and the text you enter on your keyboard is added to a div with a script. Since no input element gets focus the keyboard on touch devices will not be visible and at least on my iPad you cannot even paste text. Maybe you could write another very complex script to emulate this behaviour but, less silly, why wouldn&#8217;t you just use some regular input types instead. You can actually style those using css, you really don&#8217;t need any images to do that.</p>
<p>Same with scrolling. All browsers on all devices since the early nineties can scroll a page, why would you want to write a script to emulate scrolling? This whole script is probably only there to be able to style the scrollbar and make it look the same in all browsers. The unfortunate side effect is that scrolling doesn&#8217;t work anymore on my touch devices. Now another complex script needs to be written in order to solve this issue, an issue that really shouldn&#8217;t exist in the first place.  Really, nobody will complain if a scrollbar looks exactly the same as it does on every single page on the internet. But people will complain if they see something that resembles a scrollbar but doesn&#8217;t do anything.  </p>
<p>The advice here is very simple: don&#8217;t try to fix things that work, you&#8217;ll break it.</p>
<p>I won&#8217;t complain about the silly loading bar you get to see for ten seconds before you get to see the actual data although I just cannot understand why it has to take that long. And I should complain about the incredible messy HTML, an unbelievable pile of inline style cruft, but I wouldn&#8217;t know where to start, this just looks like some sort of randomly generated vomit. I should definitely complain about the fact that I cannot use this site with my keyboard instead (or alongside with) my mouse but I already wasted enough time on this app. I surely should complain about the fact that the simple data the app provides is not accessible when JavaScript is turned of. </p>
<p>This app is actually so bad that I won&#8217;t link to it. (And i will never link to the crazy Web Framework that generated this dump and is responsible for some of these nice looking cruft machines that pop up all over the place. Please drink espresso, build grown up websites and leave the milk for the babies).</p>
<p><a href="http://nerd.vasilis.nl/design-for-users-first-not-just-for-good-looks/">Design for users first, not just for good looks</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nerd.vasilis.nl/design-for-users-first-not-just-for-good-looks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scalable gradients without the performance issues</title>
		<link>http://nerd.vasilis.nl/scalable-gradients-without-the-performance-issues/</link>
		<comments>http://nerd.vasilis.nl/scalable-gradients-without-the-performance-issues/#comments</comments>
		<pubDate>Sat, 09 Oct 2010 18:31:46 +0000</pubDate>
		<dc:creator>Vasilis</dc:creator>
				<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://nerd.vasilis.nl/?p=133</guid>
		<description><![CDATA[While working on an extreme css3 test- and show case I found out that there are some issues with the new css3 gradients. First of all, the syntax is harder to remember than the xhtml strict doctype but more importantly, since there are tools to generate these gradients, these gradients are a performance issue: scrolling [...]<p><a href="http://nerd.vasilis.nl/scalable-gradients-without-the-performance-issues/">Scalable gradients without the performance issues</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></description>
			<content:encoded><![CDATA[<p>While working on an extreme css3 test- and show case I found out that there are some issues with the new css3 gradients. First of all, the syntax is harder to remember than the xhtml strict doctype but more importantly, since there are tools to generate these gradients, these gradients are a performance issue: scrolling can be sluggish. But still, somehow webdesigners want scalable gradients so I came up with an alternative solution: <a href="http://nerd.vasilis.nl/code/gradients/scalable-png.html">using a png in combination with background-size</a>.</p>
<p>Sure this technique is not as flexible as the css3 notation, every change to the design of the gradient means firing up a pixel editor, building the new png, saving it, turning it in to a data-uri and copy pasting that code to your stylesheet. But if you&#8217;re sure about your gradient this is a fine way to build simple scalable gradients. I&#8217;m sure that with some clever slicing and tiling and with the help of multiple backgrounds more complex gradients are possible.</p>
<p>Now, browser support. This works in all modern browsers but it doesn&#8217;t work in older browsers like camino 1.6 and all versions of IE before version 9. If you agree that websites don&#8217;t have to look exactly the same in every browser you can easily hide the png for these browsers by setting its background-position-x to something negative and its background-repeat to no-repeat.</p>
<p><a href="http://nerd.vasilis.nl/scalable-gradients-without-the-performance-issues/">Scalable gradients without the performance issues</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nerd.vasilis.nl/scalable-gradients-without-the-performance-issues/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Eliminating whitespace after display:inline-block elements</title>
		<link>http://nerd.vasilis.nl/remove-whitespace-inline-block/</link>
		<comments>http://nerd.vasilis.nl/remove-whitespace-inline-block/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 19:49:14 +0000</pubDate>
		<dc:creator>Vasilis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nerd.vasilis.nl/?p=126</guid>
		<description><![CDATA[I read an article on Matt Wilcox&#8217; blog about the whitespace adjacent to every inline-block element. I wondered if this whitespace has a default size. At first it looked like there&#8217;s no default size. I started some tests with a lot of inline-block elements, all with different letters and symbols in them. I contained these [...]<p><a href="http://nerd.vasilis.nl/remove-whitespace-inline-block/">Eliminating whitespace after display:inline-block elements</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I read an article on Matt Wilcox&#8217; blog about the <a href="http://mattwilcox.net/archive/entry/id/1043/">whitespace adjacent to every inline-block</a> element. I wondered if this whitespace has a default size. At first it looked like there&#8217;s no default size. I started some tests with a lot of inline-block elements, all with different letters and symbols in them. I contained these elements inside four containers, all with different font sizes. Here&#8217;s the <a href="http://nerd.vasilis.nl/code/whitespace/simple.html">first test I did</a>.</p>
<p><span id="more-126"></span></p>
<p>I started looking for the exact negative right margin to add to every element in order to eliminate the whitespace. I couldn&#8217;t find it. Margin-right: -.3em; came very close but in some browsers it was -.268em and in others even less. There was no exact unit. After chatting with <a href="http://twitter.com/kuvos">@kuvos</a> I realized I was using the wrong font. So I tried Courier New.</p>
<p>To keep a long story short, the white space with Courier New is exactly 0.6em in all browsers. See the <a href="http://nerd.vasilis.nl/code/whitespace/courier.html">original test page</a> and a <a href="http://nerd.vasilis.nl/code/whitespace/layout.html">simple layout test page</a> and please test them in all your browsers.</p>
<h2>Bugs and shortcomings</h2>
<ul>
<li>The biggest bug, or flaw, of course is that Courier New is not installed on all operating systems. On my Kubuntu VM all test pages look horrible. Workaround seems to be to add &#8216;DejaVu Sans Mono&#8217; to the font-stack which luckily has the same white space.</li>
<li>This doesn&#8217;t work with some font-sizes since browsers have to round to a pixel. Choose an easy to use base font-size where 0.6em is equal to an exact amount of pixels for your layout to avoid this bug.</li>
<li>I know that in IE8 with the original test there&#8217;s some kind of moiré effect going on. That doesn&#8217;t seem to happen with the layout page.</li>
<li>Opera 10.5b on my Mac seems to consider the whitespace non-existent and renders the simple test page as if it&#8217;s a single word without spaces, so the elements don&#8217;t wrap. I think that&#8217;s a bug. But it&#8217;s actually a good test to check if the number is exact (-:</li>
<li>IE7 and lower don&#8217;t understand display:inline-block; See the simple workarounds in the test pages.</li>
</ul>
<p><a href="http://nerd.vasilis.nl/remove-whitespace-inline-block/">Eliminating whitespace after display:inline-block elements</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nerd.vasilis.nl/remove-whitespace-inline-block/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to use the alt attribute (or alt text)</title>
		<link>http://nerd.vasilis.nl/how-to-use-the-alt-attribute-or-alt-text/</link>
		<comments>http://nerd.vasilis.nl/how-to-use-the-alt-attribute-or-alt-text/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 19:04:43 +0000</pubDate>
		<dc:creator>Vasilis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nerd.vasilis.nl/?p=121</guid>
		<description><![CDATA[In most cases the alt attribute should be empty. &#60;img src="image.png" alt=""> There are two exceptions. The image is a link Without the image the content would be incomplete The first exception is easy. If an image is a link there must be an alt text and that text should describe the link, not the [...]<p><a href="http://nerd.vasilis.nl/how-to-use-the-alt-attribute-or-alt-text/">How to use the alt attribute (or alt text)</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></description>
			<content:encoded><![CDATA[<p>In most cases the alt attribute should be empty.</p>
<p><code>&lt;img src="image.png" alt=""></code></p>
<p>There are two exceptions.</p>
<ol>
<li>The image is a link</li>
<li>Without the image the content would be incomplete</li>
</ol>
<p><span id="more-121"></span></p>
<p>The first exception is easy. If an image is a link there <em>must</em> be an alt text and that text should describe the link, not the image (just like good link text).</p>
<p>The second one is easy too. If the content on the page can&#8217;t be understood without the image the image must have an alt text that describes what&#8217;s on this image. The alt-text should be a logical addition to the rest of the content. If you replace the image with the alt text it should still make sense. If it doesn&#8217;t rewrite it or remove it.</p>
<p><ins datetime="2010-03-04T21:17:34+01:00" title="Text added on March 4th, 2010 on 21:17:34">Please see the WHATWG for a more detailed and complete explanation of <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/embedded-content-1.html#alt">the art of good alt text</a></ins></p>
<p><a href="http://nerd.vasilis.nl/how-to-use-the-alt-attribute-or-alt-text/">How to use the alt attribute (or alt text)</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nerd.vasilis.nl/how-to-use-the-alt-attribute-or-alt-text/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>A bookmarklet for my wife</title>
		<link>http://nerd.vasilis.nl/a-bookmarklet-for-my-wife/</link>
		<comments>http://nerd.vasilis.nl/a-bookmarklet-for-my-wife/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 22:02:12 +0000</pubDate>
		<dc:creator>Vasilis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nerd.vasilis.nl/?p=115</guid>
		<description><![CDATA[Just a few minutes ago my wife complained about websites with white text on a black background. For her I made this simple grey-on-white bookmarklet which sets all backgrounds to #f5f5f5 and all colors to #666. The background of the body is set to #ebebeb to preserve some of the shapes of the original site [...]<p><a href="http://nerd.vasilis.nl/a-bookmarklet-for-my-wife/">A bookmarklet for my wife</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Just a few minutes ago my wife complained about websites with white text on a black background. For her I made this simple <a href="javascript:(function(){var%20a=document.getElementsByTagName('*');l=a.length;while(l--){a[l].style.color='#666';a[l].style.background='#f5f5f5';}document.getElementsByTagName('body')[0].style.background='#ebebeb';})();">grey-on-white</a> bookmarklet which sets all backgrounds to #f5f5f5 and all colors to #666. The background of the body is set to #ebebeb to preserve some of the shapes of the original site (the real reason is I wanted to use #f5f5f5, a key I used a lot when I had a windows PC <em>and</em> #ebebeb, the initials of a good friend).</p>
<p>Here&#8217;s the code. As always, suggestions are welcome.<br />
<code>javascript:(function(){<br />
 var%20a=document.getElementsByTagName('*');<br />
 l=a.length;<br />
while(l--){ a[l].style.color='#666';a[l].style.background='#f5f5f5';}<br />
 document.getElementsByTagName('body')[0].style.background='#ebebeb';<br />
})();</code></p>
<p><a href="http://nerd.vasilis.nl/a-bookmarklet-for-my-wife/">A bookmarklet for my wife</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nerd.vasilis.nl/a-bookmarklet-for-my-wife/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>A Ffffound bookmarklet for Flickr</title>
		<link>http://nerd.vasilis.nl/a-ffffound-bookmarklet-for-flickr/</link>
		<comments>http://nerd.vasilis.nl/a-ffffound-bookmarklet-for-flickr/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 10:41:56 +0000</pubDate>
		<dc:creator>Vasilis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nerd.vasilis.nl/?p=109</guid>
		<description><![CDATA[Some pictures on Flickr are harder to bookmark on Ffffound than others. For some reason Flickr puts a transparent gif on top of the image. If you try to bookmark this image to Ffffound you actually bookmark the empty gif. I wrote a bookmarklet to hide that gif. Drag this link, My Ffffound, to your [...]<p><a href="http://nerd.vasilis.nl/a-ffffound-bookmarklet-for-flickr/">A Ffffound bookmarklet for Flickr</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Some pictures on Flickr are harder to bookmark on Ffffound than others. For some reason Flickr puts a transparent gif on top of the image. If you try to bookmark this image to Ffffound you actually bookmark the empty gif. I wrote a bookmarklet to hide that gif. Drag this link, <a href="javascript:(function(){var%20a=document.getElementsByTagName('img');l=a.length;while(l--){if(a[l].src=='http://l.yimg.com/g/images/spaceball.gif'){a[l].style.display='none'}}})();void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://ffffound.com/bookmarklet.js');document.body.appendChild(e)%7D)());">My Ffffound</a>, to your bookmark bar and hit it instead of the regular Ffffound bookmarklet, it just works like the original bookmarklet on other sites. </p>
<p><span id="more-109"></span></p>
<p>This is the code</p>
<p><code>javascript:(function(){var%20a=document.getElementsByTagName('img');l=a.length;<br />
while(l--){if(a[l].src=='http://l.yimg.com/g/images/spaceball.gif'){<br />
 a[l].style.display='none'}}})();<br />
void((function()%7Bvar%20e=document.createElement('script');<br />
e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');<br />
e.setAttribute('src','http://ffffound.com/bookmarklet.js');<br />
document.body.appendChild(e)%7D)());</code></p>
<p>If you have any suggestions or additions for this code please let me know.<br />
I only tested it on Firefox and Safari. It should work on other browsers. If not, let me know.</p>
<p><a href="http://nerd.vasilis.nl/a-ffffound-bookmarklet-for-flickr/">A Ffffound bookmarklet for Flickr</a> is a post from: <a href="http://nerd.vasilis.nl">Nerd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nerd.vasilis.nl/a-ffffound-bookmarklet-for-flickr/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

