<?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>Die Welt ist gar nicht so. &#187; javascript</title>
	<atom:link href="http://blog.dieweltistgarnichtso.net/tag/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.dieweltistgarnichtso.net</link>
	<description>Sie ist ganz anders.</description>
	<lastBuildDate>Mon, 23 Sep 2013 15:41:20 +0000</lastBuildDate>
	<language>de-DE</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.35</generator>
	<item>
		<title>Computational Power and Privilege</title>
		<link>http://blog.dieweltistgarnichtso.net/computational-power-and-privilege</link>
		<comments>http://blog.dieweltistgarnichtso.net/computational-power-and-privilege#comments</comments>
		<pubDate>Wed, 14 Nov 2012 20:44:25 +0000</pubDate>
		<dc:creator><![CDATA[erlehmann]]></dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[externality]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[langsec]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[principleofleastpower]]></category>

		<guid isPermaLink="false">http://blog.dieweltistgarnichtso.net/?p=6124</guid>
		<description><![CDATA[Language is everywhere; it is all around us, even now on this very web site, which uses HTML and CSS. You can see it when you look at your phone or you turn on your PC. You are using it &#8230; <a href="http://blog.dieweltistgarnichtso.net/computational-power-and-privilege">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>
Language is everywhere; it is all around us, even now on this very web site<ins datetime="2012-11-14T21:18:10+00:00">, which uses <a href="http://en.wikipedia.org/wiki/HTML"><abbr title="HyperText Markup Language">HTML</abbr></a> and <a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets"><abbr title="Cascading Style Sheets">CSS</abbr></a></ins>. You can see it when you look at your phone or you turn on your <abbr title="Personal Computer">PC</abbr>. You are using it when you send emails, write blog posts or <a href="http://en.wikipedia.org/wiki/Google_Search#Search_options">query a search engine</a>.
</p>
<p>
People often use <a href="http://en.wikipedia.org/wiki/Chomsky_hierarchy#The_hierarchy">powerful languages</a> to express themselves. By doing this, senders raise the computational complexity of communication and <a href="http://en.wikipedia.org/wiki/Externality">externalize the costs</a>: Receivers must be capable of equivalent computation to understand messages.
</p>
<p>
<a href="http://www.cs.dartmouth.edu/~sergey/langsec/synopsis.html">Determining computational equivalence is not always possible</a> and some designs force receivers to solve <a href="http://en.wikipedia.org/wiki/List_of_undecidable_problems">undecidable problems</a>. When inventing the Web, Tim Berners-Lee was aware that <a href="http://www.w3.org/DesignIssues/Principles.html#PLP">using powerful languages inhibits data re-use</a>.
</p>
<blockquote cite="http://www.w3.org/DesignIssues/Principles.html#PLP">
<p>
If, for example, a web page with weather data has RDF describing that data, a user can retrieve it as a table, perhaps average it, plot it, deduce things from it in combination with other information. At the other end of the scale is the weather information portrayed by the cunning Java applet. While this might allow a very cool user interface, it cannot be analyzed at all.
</p>
</blockquote>
<p>
The <a href="http://www.w3.org/2001/tag/doc/leastPower.html"><abbr title="World Wide Web Consortium">W3C</abbr> <abbr title="Technical Architecture Group">TAG</abbr> concluded</a> one should <strong><q cite="http://www.w3.org/2001/tag/doc/leastPower.html">use the least powerful language suitable for expressing information, constraints or programs</q></strong> to facilitate message comprehension.
</p>
<p>
It is cognitively cheap to dismiss these concerns as purely academic: Those possessing powerful hardware and fast internet connections seldom experience <a href="http://rmurphey.com/blog/2008/05/19/another-cautionary-remote-javascript-tale/">slowdown by advertising</a> or find content inaccessible due to <a href="http://www.webmonkey.com/2011/05/stop-typekit-fonts-from-slowing-down-your-site/">third-party javascript</a> or <a href="http://en.wikipedia.org/wiki/Browser_sniffing">browser sniffing</a>.
</p>
<p>
Lack of exposure to such problems may result in <a href="http://en.wikipedia.org/wiki/Victim_blaming">suspecting receivers of doing something wrong</a> or declaring them to be <i>outside the target audience</i>. This implies the possibility of an <a href="http://en.wikipedia.org/wiki/Pareto_principle"><i>80/20</i> solution</a> – which <a href="http://www.cs.dartmouth.edu/~sergey/langsec/"><abbr title="the Language-theoretic Security interest group">LANGSEC</abbr></a> compares to <a href="http://www.cs.dartmouth.edu/~sergey/langsec/insecurity-theory-28c3.pdf">claiming to have found a <i>80/20</i> solution for a perpetual motion machine</a>.
</p>
<p><strong>Have you checked your computational privilege today?</strong></p>]]></content:encoded>
			<wfw:commentRss>http://blog.dieweltistgarnichtso.net/computational-power-and-privilege/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>aabeehijlpstz.</title>
		<link>http://blog.dieweltistgarnichtso.net/aabeehijlpstz</link>
		<comments>http://blog.dieweltistgarnichtso.net/aabeehijlpstz#comments</comments>
		<pubDate>Thu, 11 Nov 2010 03:26:50 +0000</pubDate>
		<dc:creator><![CDATA[erlehmann]]></dc:creator>
				<category><![CDATA[Bastelei]]></category>
		<category><![CDATA[Bilder]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[boingboing]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[luminance]]></category>

		<guid isPermaLink="false">http://blog.dieweltistgarnichtso.net/?p=3094</guid>
		<description><![CDATA[Inspiriert von einem Artikel auf BoingBoing habe ich ein bookmarklet geschrieben, das Text alphabetisch und Pixel nach Luminanz sortiert. Es befindet sich hinter diesem Link (alphabetize.js) und auf GitHub. Hier ein kurzer Vergleich mit der homepage von Bre Pettis: Von &#8230; <a href="http://blog.dieweltistgarnichtso.net/aabeehijlpstz">Weiterlesen <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>
Inspiriert von einem <a href="http://www.boingboing.net/2010/11/08/cut-up-artist-alphab.html">Artikel auf BoingBoing</a> habe ich ein <a href="http://de.wikipedia.org/wiki/Bookmarklet"><i lang="en">bookmarklet</i></a> geschrieben, das Text alphabetisch und Pixel nach <a href="http://de.wikipedia.org/wiki/Luminanz">Luminanz</a> sortiert. Es befindet sich <ins datetime="2010-11-11T16:26:14+00:00">hinter diesem Link (<strong><a href="javascript:function%20alphabetize(c)%7Breturn%20c.replace(%2F%20%2Fg%2C%22%22).split(%22%22).sort(asort).join(%22%5Cu200b%22)%7Dfunction%20asort(d%2Cf)%7Bif(d.charCodeAt(0)%3C%3D64)%7Bif(f.charCodeAt(0)%3C%3D64)%7Bif(d%3Ef)%7Breturn%201%7Dif(d%3Cf)%7Breturn%20-1%7D%7Dif(65%3C%3Df.charCodeAt(0)%3C%3D122)%7Breturn%201%7Dif(f.charCodeAt(0)%3E%3D123)%7Breturn%20-1%7D%7Dif(f.charCodeAt(0)%3C%3D64)%7Bif(65%3C%3Dd.charCodeAt(0)%3C%3D122)%7Breturn%20-1%7Dif(d.charCodeAt(0)%3E%3D123)%7Breturn%201%7D%7Dvar%20e%3DString(d).toUpperCase()%3Bvar%20c%3DString(f).toUpperCase()%3Bif(e%3Ec)%7Breturn%201%7Dif(e%3Cc)%7Breturn%20-1%7Dreturn%200%7Dvar%20xPathResult%3Ddocument.evaluate('.%2F%2Ftext()%5Bnormalize-space(.)%20!%3D%20%22%22%5D'%2Cdocument.body%2Cnull%2CXPathResult.ORDERED_NODE_SNAPSHOT_TYPE%2Cnull)%3Bfor(var%20i%3D0%2Cl%3DxPathResult.snapshotLength%3Bi%3Cl%3Bi%2B%2B)%7Bvar%20textNode%3DxPathResult.snapshotItem(i)%3Bif(textNode!%3Dnull)%7BtextNode.data%3Dalphabetize(textNode.data)%7D%7Dfunction%20luminance(c)%7Breturn((0.299*c%5B0%5D)%2B(0.587*c%5B1%5D)%2B(0.114*c%5B2%5D))*(1%2Fc%5B3%5D)%7Dfunction%20isort(d%2Cf)%7Bvar%20e%3Dluminance(d)%3Bvar%20c%3Dluminance(f)%3Bif(e%3Ec)%7Breturn%201%7Dif(e%3Cc)%7Breturn%20-1%7Dreturn%200%7Dfunction%20luminize(k)%7Bvar%20j%3Ddocument.createElement(%22canvas%22)%3Bvar%20m%3Dj.getContext(%222d%22)%3Bvar%20f%3Dk.width%3Bvar%20o%3Dk.height%3Bj.width%3Df%3Bj.height%3Do%3Bm.drawImage(k%2C0%2C0)%3Btry%7Bvar%20c%3Dm.getImageData(0%2C0%2Cf%2Co)%7Dcatch(n)%7Bvar%20j%3Ddocument.createElement(%22canvas%22)%3Bvar%20m%3Dj.getContext(%222d%22)%3Bj.width%3Df%3Bj.height%3Do%3Bvar%20c%3Dm.createImageData(f%2Co)%3Br%3DparseInt(Math.random()*256)%3Bg%3DparseInt(Math.random()*256)%3Bb%3DparseInt(Math.random()*256)%3Ba%3D256%3Bfor(y%3D0%3By%3Co%3By%2B%2B)%7Boutpos%3Dy*f*4%3Bfor(x%3D0%3Bx%3Cf%3Bx%2B%2B)%7Bif(Math.random()%3C0.00001)%7Br%3DparseInt(Math.random()*256)%3Bg%3DparseInt(Math.random()*256)%7Dif(Math.random()%3C0.00001)%7Bg%3DparseInt(Math.random()*256)%3Bb%3DparseInt(Math.random()*256)%7Dif(Math.random()%3C0.00001)%7Bb%3DparseInt(Math.random()*256)%3Br%3DparseInt(Math.random()*256)%7Dif(Math.random()%3C0.001)%7Ba%3DparseInt(Math.random()*256)%7Dc.data%5Boutpos%2B%2B%5D%3Dr-4%2BparseInt(Math.random()*4)%3Bc.data%5Boutpos%2B%2B%5D%3Dg-4%2BparseInt(Math.random()*4)%3Bc.data%5Boutpos%2B%2B%5D%3Db-4%2BparseInt(Math.random()*4)%3Bc.data%5Boutpos%2B%2B%5D%3Da-4%2BparseInt(Math.random()*4)%7D%7D%7Dvar%20h%3Dnew%20Array(0)%3Bfor(y%3D0%3By%3Co%3By%2B%2B)%7Binpos%3Dy*f*4%3Bfor(x%3D0%3Bx%3Cf%3Bx%2B%2B)%7Bvar%20d%3Dnew%20Array(4)%3Bd%5B0%5D%3Dc.data%5Binpos%2B%2B%5D%3Bd%5B1%5D%3Dc.data%5Binpos%2B%2B%5D%3Bd%5B2%5D%3Dc.data%5Binpos%2B%2B%5D%3Bd%5B3%5D%3Dc.data%5Binpos%2B%2B%5D%3Bh.push(d)%7D%7Dh%3Dh.sort(isort)%3Bfor(y%3D0%3By%3Co%3By%2B%2B)%7Boutpos%3Dy*f*4%3Bfor(x%3D0%3Bx%3Cf%3Bx%2B%2B)%7Bd%3Dh.pop()%3Bc.data%5Boutpos%2B%2B%5D%3Dd%5B0%5D%3Bc.data%5Boutpos%2B%2B%5D%3Dd%5B1%5D%3Bc.data%5Boutpos%2B%2B%5D%3Dd%5B2%5D%3Bc.data%5Boutpos%2B%2B%5D%3Dd%5B3%5D%7D%7Dm.putImageData(c%2C0%2C0%2C0%2C0%2Cc.width%2Cc.height)%3Breturn%20j.toDataURL()%7Dfunction%20luminizeDelayLoop()%7Bif(i%3Cimages.length)%7Bvar%20c%3Dimages%5Bi%5D%3Bif(c.src.slice(0%2C5)!%3D%22data%3A%22)%7Bc.src%3Dluminize(c)%7Di%2B%2B%3Bwindow.setTimeout(%22luminizeDelayLoop()%22%2C100)%7D%7Dvar%20images%3Ddocument.getElementsByTagName(%22img%22)%3Bvar%20i%3D0%3BluminizeDelayLoop()%3B">alphabetize.js</a></strong>) und</ins> <a href="https://github.com/erlehmann/alphabetize.js">auf GitHub</a>. Hier ein kurzer Vergleich mit der <a href="http://brepettis.com/"><i lang="en">homepage</i> von <i>Bre Pettis</i></a>:
</p>
<img src="http://daten.dieweltistgarnichtso.net/pics/screenshots/web/thumbs/brepettis.com.png" alt="unmodifiziertes Bildschirmfoto von http://brepettis.com" />
<img src="http://daten.dieweltistgarnichtso.net/pics/screenshots/web/thumbs/brepettis.com-alphabetized.png" alt="mit alphabetizer.js modifiziertes Bildschirmfoto von http://brepettis.com" />
<p>
Von anderen <a href="http://de.wikipedia.org/wiki/Same_Origin_Policy"><i lang="en">origins</i></a> stammende oder per <abbr title="Cascading Style Sheets">CSS</abbr> eingebundene Bilder können leider nicht gefiltert werden. Für Erstere behelfe ich mir mit zufällig generierten Ersatzgrafiken, Zweitere lasse ich schlicht in Ruhe.
</p>]]></content:encoded>
			<wfw:commentRss>http://blog.dieweltistgarnichtso.net/aabeehijlpstz/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
