<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>pronweb.de</title>
  <subtitle>This is not Facebook</subtitle>
  <link rel="alternate" type="text/html" href="http://www.pronweb.de"/>
  <link rel="self" type="application/atom+xml" href="http://www.pronweb.de/atom/feed"/>
  <id>http://www.pronweb.de/atom/feed</id>
  <updated>2010-01-07T11:34:37+00:00</updated>
  <entry>
    <title>math - not even once</title>
    <link rel="alternate" type="text/html" href="http://www.pronweb.de/node/668" />
    <id>http://www.pronweb.de/node/668</id>
    <published>2011-03-08T09:59:29+00:00</published>
    <updated>2011-03-08T09:59:54+00:00</updated>
    <author>
      <name>ch3ka</name>
    </author>
    <summary type="html"><![CDATA[<div class="quotes-quote">
<p>
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/1299578052.jpg"  title="math - not even once" alt="math - not even once" height="500" width="600" /></div>
</p>
</div>
<div class="quotes-author">
<p>&mdash; found on <a href="http://pics.nase-bohren.de/" title="http://pics.nase-bohren.de/">http://pics.nase-bohren.de/</a></p>
</div>
    ]]></summary>
    <content type="html"><![CDATA[<div class="quotes-quote">
<p>
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/1299578052.jpg"  title="math - not even once" alt="math - not even once" height="500" width="600" /></div>
</p>
</div>
<div class="quotes-author">
<p>&mdash; found on <a href="http://pics.nase-bohren.de/" title="http://pics.nase-bohren.de/">http://pics.nase-bohren.de/</a></p>
</div>
    ]]></content>
  </entry>
  <entry>
    <title>Surprise street photography</title>
    <link rel="alternate" type="text/html" href="http://www.pronweb.de/node/603" />
    <id>http://www.pronweb.de/node/603</id>
    <published>2011-02-18T10:23:05+00:00</published>
    <updated>2011-02-18T10:23:05+00:00</updated>
    <author>
      <name>ch3ka</name>
    </author>
    <summary type="html"><![CDATA[<p>I've always dreamt of having an umbrella with a white, reflective material on the inside but water repelling fabric on the outside.<br />
Then I'd walk around in the rain and be all like "Hey, I'm just talking a walk in the ra- SMILE, MOTHERFUCKER!"<br />
Surprise street photography with excellent lighting.</p>
<p>  &mdash; Anon on /p/</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>I've always dreamt of having an umbrella with a white, reflective material on the inside but water repelling fabric on the outside.<br />
Then I'd walk around in the rain and be all like "Hey, I'm just talking a walk in the ra- SMILE, MOTHERFUCKER!"<br />
Surprise street photography with excellent lighting.</p>
<p>  &mdash; Anon on /p/</p>
    ]]></content>
  </entry>
  <entry>
    <title>Digital Pinhole Camera for free</title>
    <link rel="alternate" type="text/html" href="http://www.pronweb.de/node/602" />
    <id>http://www.pronweb.de/node/602</id>
    <published>2011-02-10T16:05:53+00:00</published>
    <updated>2011-02-10T16:05:53+00:00</updated>
    <author>
      <name>ch3ka</name>
    </author>
    <summary type="html"><![CDATA[<p>This is a pinhole "glass" for canon EOS:</p>
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011088.jpg"  title="pinhole1" alt="pinhole1" width="600" /></div>
</p>
<p>well, not yet.</p>
<p>But this is:</p>
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011106.jpg"  title="pinhole13" alt="pinhole13" width="600" /></div>
</p>
<p>(those are all full-res images. right click and "view image" to view fullsized)</p>
<p>Howdunit? </p>
    ]]></summary>
    <content type="html"><![CDATA[<p>This is a pinhole "glass" for canon EOS:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011088.jpg"  title="pinhole1" alt="pinhole1" width="600" /></div></p>
<p>well, not yet.</p>
<p>But this is:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011106.jpg"  title="pinhole13" alt="pinhole13" width="600" /></div></p>
<p>(those are all full-res images. right click and "view image" to view fullsized)</p>
<p>Howdunit?<br />
<!--break--><br />
First, we have to carefully determine the center of the bodycap:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011090.jpg"  title="pinhole2" alt="pinhole2" width="600" /></div></p>
<p>then we drill a hole:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011091.jpg"  title="pinhole3" alt="pinhole3" width="600" /></div></p>
<p>We remove the sharp edges:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011093.jpg"  title="pinhole4" alt="pinhole4" width="600" /></div></p>
<p>And polish, until it looks like this:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011094.jpg"  title="pinhole5" alt="pinhole5" width="600" /></div></p>
<p>Then we cut a hole in a square of gaffers tape:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011096.jpg"  title="pinhole6" alt="pinhole6" width="600" /></div></p>
<p>and cut a square of aluminium foil - slightly larger than the hole in the gaffers tape:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011097.jpg"  title="pinhole7" alt="pinhole7" width="600" /></div></p>
<p>putting it together:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011098.jpg"  title="pinhole8" alt="pinhole8" width="600" /></div></p>
<p>and place it in the body cap:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011099.jpg"  title="pinhole9" alt="pinhole9" width="600" /></div></p>
<p>now comes the critical part: pinning the hole with a needle.<br />
we need approx. 0.2mm diameter, exactly round shaped, and in the very center of the "lens".<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011100.jpg"  title="pinhole10" alt="pinhole10" width="600" /></div></p>
<p>When we failed to achieve that, it might look like this:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011101.jpg"  title="pinhole11" alt="pinhole11" width="600" /></div></p>
<p>Almost done! We add an impromtu lens-cap :)<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011102.jpg"  title="pinhole12" alt="pinhole12" width="600" /></div></p>
<p>and mount the "glass" on the camera:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/10022011103.jpg"  title="pinhole12" alt="pinhole12" width="600" /></div></p>
<p>ok, looks good... but can it make pictures?<br />
See the red blanket on the sofa behind the camera?<br />
That's where I placed the test subject: a little marsupilami.</p>
<p>Surprisingly enough, I was able to actually see something like an image in the viewfinder, yet extremely dark.<br />
It was merely more than a little aid to aim the camera.</p>
<p>I also got - surprisingly enough - a lightmeter reading from the camera which told me I should dial in 8 seconds for "perfect exposure, evaluative metered", so I did.<br />
This came out:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/_MG_2641.jpg"  title="pinimg1" alt="pinimg1" width="600" /></div><div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/hist1.jpg"  title="hist1.jpg" alt="hist1.jpg" height="120" width="224" /></div><br />
So something like 2 stops to dark.<br />
I tried again with 30 seconds:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/_MG_2642.jpg"  title="pinimg2" alt="pinimg2" width="600" /></div><div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/hist2.jpg"  title="hist2.jpg" alt="hist2.jpg" height="123" width="228" /></div><br />
better, but still a bit too dark. you can already tell by the histogram, that the tonal range of this "lens" is very, very limited. And as far as the IQ goes... its... not even "soft" ;)<br />
but this was expected, and I'm sure one can get fine experimental or surrealistic results w/ this lens.</p>
<p>well: here are exposures of 1,2, and 4 minutes, and their histograms:<br />
1min:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/_MG_2643.jpg"  title="pinimg3" alt="pinimg3" width="600" /></div><div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/hist3.jpg"  title="hist3.jpg" alt="hist3.jpg" height="124" width="225" /></div><br />
2min:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/_MG_2644.jpg"  title="pinimg4" alt="pinimg4" width="600" /></div><br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/hist4.jpg"  title="hist4.jpg" alt="hist4.jpg" height="125" width="226" /></div><br />
4min:<br />
<div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/_MG_2645.jpg"  title="pinimg5" alt="pinimg5" width="600" /></div><div class="asset-asset-image asset-align-none"><img src="http://www.pronweb.de/files/ch3ka/hist5.jpg"  title="hist5.jpg" alt="hist5.jpg" height="119" width="226" /></div></p>
<p>possible improvements:<br />
- really center the hole - mine is like 0.3mm off<br />
- thinner hole - the needle had a diameter of .25mm by itself, yet we need a .19mm hole for perfect focus at this distance from the sensor<br />
- increase focal length - when we go further away from the sensor, both our best pinhole diameter and the allowed errors increase<br />
- thinner material - the hole should be as thin as possible, even aluminium foil is ~2x too thick<br />
- better shaped hole - we do not have a circle here, as we literally *punched* through the foil</p>
    ]]></content>
  </entry>
  <entry>
    <title>Python palindromic quine</title>
    <link rel="alternate" type="text/html" href="http://www.pronweb.de/node/507" />
    <id>http://www.pronweb.de/node/507</id>
    <published>2011-01-28T15:15:03+00:00</published>
    <updated>2011-01-28T20:35:33+00:00</updated>
    <author>
      <name>ch3ka</name>
    </author>
    <summary type="html"><![CDATA[<p>A palindromic quine is a program which prints itself, and reads from right to left the same as from left to right.</p>
<p>Python is my favourite programming language, but since it is designed to be readable, it is very hard to "codegolf" - where you want to express your program in the shortest possible way.</p>
<p>Last month, I hacked this in a codegolf session:<br />
<code>_='#)]1-::2-[l+l(tupni;`_`+"=_"=l;';l="_="+`_`;input(l+l[-2::-1])#'=_ </code></p>
<p>Yes, this</p>
<ul>
<li> is a valid python program</li>
<li> is a python quine</li>
<li>is palindromic</li>
<p> and it's only 69 chars long!</ul>
    ]]></summary>
    <content type="html"><![CDATA[<p>A palindromic quine is a program which prints itself, and reads from right to left the same as from left to right.</p>
<p>Python is my favourite programming language, but since it is designed to be readable, it is very hard to "codegolf" - where you want to express your program in the shortest possible way.</p>
<p>Last month, I hacked this in a codegolf session:<br />
<code>_='#)]1-::2-[l+l(tupni;`_`+"=_"=l;';l="_="+`_`;input(l+l[-2::-1])#'=_ </code></p>
<p>Yes, this
<ul>
<li> is a valid python program</li>
<li> is a python quine</li>
<li>is palindromic</li>
<p> and it's only 69 chars long!</ul>
<p>I'll explain the quine in detail. First, lets get rid of the obfuscation by variable names. here is an equivalent version, with only renamed symbols:<br />
<code>X='#)]1-::2-[Y+Y(tupni;`X`+"=X"=Y;';Y="X="+`X`;input(Y+Y[-2::-1])#'=X</code><br />
You'll see, that there are only three statements: first, X gets assigned the string <code>'#)]1-::2-[Y+Y(tupni;`X`+"=X"=Y;'</code>, and then Y gets assigned the string <code>'X=',</code> concatenated with repr(X). </p>
<p>Well, repr(X) adds the '' around the contents of X, thus Y will now yield exactly the first half of this program.<br />
All we have to do, is to output Y, and Y backwards.</p>
<p> A common golfing trick is to use input() instead of print(), in order to avoid newlines (a newline at the end would render this quine non-palindromic, so we'd need to insert one before, which would require an additional newline to be printed, etc).<br />
Of course, input() does raise an exception, but stderr is ignored by codegolfing rules.</p>
<p>So this is what we do: <code>input(Y+Y[-2::-1])</code> displays Y and Y reversed (and thus, the whole program).</p>
<p>All what's left now, is to ensure the contents of X is the code part of the program reversed and without X=' - this part is added by the #'=X padding comment at the end, which itself requires X to start with a #.<br />
No more magic involved :)</p>
<p>This palindromic quine scored 1st place in the python section of anarchy codegolf <a href="http://golf.shinh.org/" title="http://golf.shinh.org/">http://golf.shinh.org/</a> - can you do shorter? ;)</p>
    ]]></content>
  </entry>
  <entry>
    <title>Operation: LeakSpin</title>
    <link rel="alternate" type="text/html" href="http://www.pronweb.de/node/496" />
    <id>http://www.pronweb.de/node/496</id>
    <published>2010-12-13T15:54:54+00:00</published>
    <updated>2010-12-13T15:54:54+00:00</updated>
    <author>
      <name>ch3ka</name>
    </author>
    <summary type="html"><![CDATA[<p>http://www.youtube.com/watch?v=fLcUVNee_UI&amp;feature=youtu.be<br />
<div class="asset-asset_youtube-video asset-align-none"><object width="450" height="325"><br />
<param name="movie" value="http://www.youtube.com/v/fLcUVNee_UI?fs=1&amp;hl=de_DE"></param>
<param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/fLcUVNee_UI?fs=1&amp;hl=de_DE" type="application/x-shockwave-flash" wmode="transparent" width="450" height="325"></embed></object></div>
</p>
<p><a href="http://operationleakspin.org/" title="http://operationleakspin.org/">http://operationleakspin.org/</a></p>
    ]]></summary>
    <content type="html"><![CDATA[<p>http://www.youtube.com/watch?v=fLcUVNee_UI&amp;feature=youtu.be<div class="asset-asset_youtube-video asset-align-none"><object width="450" height="325"><param name="movie" value="http://www.youtube.com/v/fLcUVNee_UI?fs=1&amp;hl=de_DE"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/fLcUVNee_UI?fs=1&amp;hl=de_DE" type="application/x-shockwave-flash" wmode="transparent" width="450" height="325"></embed></object></div></p>
<p><a href="http://operationleakspin.org/" title="http://operationleakspin.org/">http://operationleakspin.org/</a></p>
    ]]></content>
  </entry>
  <entry>
    <title>Riddle riddle riddle</title>
    <link rel="alternate" type="text/html" href="http://www.pronweb.de/node/495" />
    <id>http://www.pronweb.de/node/495</id>
    <published>2010-10-20T13:06:45+00:00</published>
    <updated>2010-10-20T13:06:45+00:00</updated>
    <author>
      <name>ch3ka</name>
    </author>
    <summary type="html"><![CDATA[<p>Pretty cool nerdy riddle.<br />
Kinda easy, but cool. So, if you got 10 minutes spare time...</p>
<p><a href="http://www.project-nion.net/index.php?option=com_content&amp;view=article&amp;id=98:the-ultimate-nerd-riddle&amp;catid=35:news&amp;Itemid=55">Try it!</a></p>
<blockquote><p>
Congratulations! You have proven yourself nerdy! You have officially beaten the ultimate nerd riddle. That's pretty impressive! And I'm not only telling you that, because I was programmed to do so... you are awesome! You are the 18th person, who solved the riddle.</p>
</p></blockquote>
    ]]></summary>
    <content type="html"><![CDATA[<p>Pretty cool nerdy riddle.<br />
Kinda easy, but cool. So, if you got 10 minutes spare time...</p>
<p><a href="http://www.project-nion.net/index.php?option=com_content&amp;view=article&amp;id=98:the-ultimate-nerd-riddle&amp;catid=35:news&amp;Itemid=55">Try it!</a></p>
<blockquote><p>
Congratulations! You have proven yourself nerdy! You have officially beaten the ultimate nerd riddle. That's pretty impressive! And I'm not only telling you that, because I was programmed to do so... you are awesome! You are the 18th person, who solved the riddle.</p></blockquote>
    ]]></content>
  </entry>
  <entry>
    <title>How tough are NES Games?</title>
    <link rel="alternate" type="text/html" href="http://www.pronweb.de/node/494" />
    <id>http://www.pronweb.de/node/494</id>
    <published>2010-04-22T11:18:59+00:00</published>
    <updated>2010-04-22T11:18:59+00:00</updated>
    <author>
      <name>ch3ka</name>
    </author>
    <summary type="html"><![CDATA[<p>via randsturz, thx babe :></p>
<div class="asset-asset_youtube-video asset-align-none"><object width="450" height="325"><br />
<param name="movie" value="http://www.youtube.com/v/uCLOxK6FpfA&amp;hl=de_DE&amp;fs=1&amp;"></param>
<param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/uCLOxK6FpfA&amp;hl=de_DE&amp;fs=1&amp;" type="application/x-shockwave-flash" wmode="transparent" width="450" height="325"></embed></object></div>
<p>
<a href="http://www.youtube.com/watch?v=uCLOxK6FpfA" title="http://www.youtube.com/watch?v=uCLOxK6FpfA">http://www.youtube.com/watch?v=uCLOxK6FpfA</a></p>
    ]]></summary>
    <content type="html"><![CDATA[<p>via randsturz, thx babe :><br />
<div class="asset-asset_youtube-video asset-align-none"><object width="450" height="325"><param name="movie" value="http://www.youtube.com/v/uCLOxK6FpfA&hl=de_DE&fs=1&"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/uCLOxK6FpfA&hl=de_DE&fs=1&" type="application/x-shockwave-flash" wmode="transparent" width="450" height="325"></embed></object></div><br />
<a href="http://www.youtube.com/watch?v=uCLOxK6FpfA" title="http://www.youtube.com/watch?v=uCLOxK6FpfA">http://www.youtube.com/watch?v=uCLOxK6FpfA</a></p>
    ]]></content>
  </entry>
  <entry>
    <title>Star Trek tells the story better than this new fancy 3D Movie</title>
    <link rel="alternate" type="text/html" href="http://www.pronweb.de/node/493" />
    <id>http://www.pronweb.de/node/493</id>
    <published>2010-03-25T12:25:42+00:00</published>
    <updated>2010-03-25T12:25:42+00:00</updated>
    <author>
      <name>ch3ka</name>
    </author>
    <summary type="html"><![CDATA[<p><embed wmode="opaque" src="http://c2.static.ning.com/socialnetworkmain/widgets/video/flvplayer/flvplayer.swf?v=201003221300" FlashVars="config=http%3A%2F%2Fbamvidvault.ning.com%2Fvideo%2Fvideo%2FshowPlayerConfig%3Fid%3D2820784%253AVideo%253A163488%26ck%3D-&amp;video_smoothing=on&amp;autoplay=off&amp;isEmbedCode=1" width="456" height="344" bgColor="#000000" scale="noscale" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed> </p>
    ]]></summary>
    <content type="html"><![CDATA[<p><embed wmode="opaque" src="http://c2.static.ning.com/socialnetworkmain/widgets/video/flvplayer/flvplayer.swf?v=201003221300" FlashVars="config=http%3A%2F%2Fbamvidvault.ning.com%2Fvideo%2Fvideo%2FshowPlayerConfig%3Fid%3D2820784%253AVideo%253A163488%26ck%3D-&amp;video_smoothing=on&amp;autoplay=off&amp;isEmbedCode=1" width="456" height="344" bgColor="#000000" scale="noscale" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed> </p>
    ]]></content>
  </entry>
  <entry>
    <title>Hacking Single Lens Reflex Cameras with Barcodes</title>
    <link rel="alternate" type="text/html" href="http://www.pronweb.de/node/492" />
    <id>http://www.pronweb.de/node/492</id>
    <published>2010-03-24T18:53:04+00:00</published>
    <updated>2010-03-24T18:53:04+00:00</updated>
    <author>
      <name>ch3ka</name>
    </author>
    <summary type="html"><![CDATA[<p>Cool Stuff :D</p>
<blockquote><p>
The Elan/100, like its predecessor the 10/10s, works with an optional Barcode Reader E accessory. This was an experiment in simplifying the camera’s user interface for novices. Or, to be less charitable, an expensive gadget-driven idiot mode.</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>Cool Stuff :D</p>
<blockquote><p>
The Elan/100, like its predecessor the 10/10s, works with an optional Barcode Reader E accessory. This was an experiment in simplifying the camera’s user interface for novices. Or, to be less charitable, an expensive gadget-driven idiot mode.</p>
<p>Basically it works like this. You get a booklet of barcode settings, each illustrated by a photo. (the scanner shipped with a small booklet of barcodes, EOS Photo Files, but Canon also sold a companion volume - EOS Barcodes 101 - stuffed with even more useful and exciting barcode settings!) The photo will be of a typical setting - a backlit item or a flower or a landscape or whatever. You look at the item you want to photograph, flip through the book until you find a similar photo, scan the barcode from the book and then input the barcode into the camera. The barcode is then used to program the camera.</p>
<p>Hacking the barcodes.</p>
<p>The barcode reader wasn’t a very popular feature. In fact, it really was a fundamentally flawed concept from a marketing standpoint - the only people who’d really want such a feature would be rank beginners. However, because of the cost of building the system, only fairly costly midrange cameras supported it. So Canon quickly dropped the barcodes - the 10/10s and the Elan/100 were the only ones bearing this dubious capability. However, there is one handy thing about it. And that is tied to the key word “programmable,” the hacker’s favourite word.</p>
<p>Basically, inquisitive people have figured out how the barcode system works and have written small programs so that you can write your own custom barcode programs. These programs let you design your own custom PIC modes - sometimes even accessing camera functions not available through the camera’s external buttons and dials. You then print out your custom barcodes on your PC or Mac (the camera uses Interleaved 2 of 5 formatting). This can be lots of fun to play with if you happen to be a geek.
</p></blockquote>
<p>See <a href="http://photonotes.org/manuals/eos-elan/#barcode" title="http://photonotes.org/manuals/eos-elan/#barcode">http://photonotes.org/manuals/eos-elan/#barcode</a> for more - fantastic website and yeah I'm ignoring his copyright notice here, but hey I do not care for US or whatever law and I think it is fair use ;)</p>
    ]]></content>
  </entry>
  <entry>
    <title>How to golf in python</title>
    <link rel="alternate" type="text/html" href="http://www.pronweb.de/node/491" />
    <id>http://www.pronweb.de/node/491</id>
    <published>2010-03-14T11:16:28+00:00</published>
    <updated>2010-03-14T11:16:28+00:00</updated>
    <author>
      <name>ch3ka</name>
    </author>
    <summary type="html"><![CDATA[<p>Had some fun in c.l.py.<br />
Given was:<br />
<tt><br />
def fizzbuzz(num):<br />
>     if num:<br />
>         if num % 15 is 0: return fizzbuzz(num-1) + 'fizzbuzz \n'<br />
>         elif num % 5 is 0: return fizzbuzz(num-1) + 'buzz \n'<br />
>         elif num % 3 is 0: return fizzbuzz(num-1) + 'fizz \n'<br />
>         else : return fizzbuzz(num-1) + ('%d \n' % num)<br />
>     return ''<br />
> print fizzbuzz(100)<br />
</tt></p>
<p>Since this was not funny enough, I wrote:<br />
<tt>for i in range(1,101):print('','fizz')[not i%3]+('','buzz')[not i%5]or i</tt></p>
<p>This works because not casts to bool and (True, False) == (1, 0).</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>Had some fun in c.l.py.<br />
Given was:<br />
<tt><br />
def fizzbuzz(num):<br />
>     if num:<br />
>         if num % 15 is 0: return fizzbuzz(num-1) + 'fizzbuzz \n'<br />
>         elif num % 5 is 0: return fizzbuzz(num-1) + 'buzz \n'<br />
>         elif num % 3 is 0: return fizzbuzz(num-1) + 'fizz \n'<br />
>         else : return fizzbuzz(num-1) + ('%d \n' % num)<br />
>     return ''<br />
> print fizzbuzz(100)<br />
</tt></p>
<p>Since this was not funny enough, I wrote:<br />
<tt>for i in range(1,101):print('','fizz')[not i%3]+('','buzz')[not i%5]or i</tt></p>
<p>This works because not casts to bool and (True, False) == (1, 0).<br />
It also exploits short circuit evaluation and the fact that the or matches against the result of + due to evaluation order, where '' would yield False.</p>
<p>I guess I should give perl another try someday to get this in a half line :)</p>
    ]]></content>
  </entry>
  <entry>
    <title>Filmtipp</title>
    <link rel="alternate" type="text/html" href="http://www.pronweb.de/node/490" />
    <id>http://www.pronweb.de/node/490</id>
    <published>2010-03-12T23:23:01+00:00</published>
    <updated>2010-03-12T23:23:01+00:00</updated>
    <author>
      <name>ch3ka</name>
    </author>
    <summary type="html"><![CDATA[<p>Weil wirs heute erst von Filmen hatten:<br />
Wer "Postal" mochte, wird "War Inc" lieben.<br />
Total bescheuerter Film. Also wirklich.<br />
Minus 5 Sterne.<br />
Aber so bescheuert er auch ist, er ist herrlich sarkastisch was die globale Situation angeht. Und dabei nur ein ganz klein bisschen überspitzt.<br />
Im Gegensatz zu Postal hat die weibliche Begleitung auch keine Anzeichen starker Angewiedertheit gezeigt, aber das kann daran liegen dass es eine andere ist ;)</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>Weil wirs heute erst von Filmen hatten:</p>
<p>Wer "Postal" mochte, wird "War Inc" lieben.</p>
<p>Total bescheuerter Film. Also wirklich.<br />
Minus 5 Sterne.</p>
<p>Aber so bescheuert er auch ist, er ist herrlich sarkastisch was die globale Situation angeht. Und dabei nur ein ganz klein bisschen überspitzt.</p>
<p>Im Gegensatz zu Postal hat die weibliche Begleitung auch keine Anzeichen starker Angewiedertheit gezeigt, aber das kann daran liegen dass es eine andere ist ;)</p>
    ]]></content>
  </entry>
  <entry>
    <title>Radio Station called</title>
    <link rel="alternate" type="text/html" href="http://www.pronweb.de/node/489" />
    <id>http://www.pronweb.de/node/489</id>
    <published>2010-03-12T14:46:06+00:00</published>
    <updated>2010-03-12T14:46:31+00:00</updated>
    <author>
      <name>ch3ka</name>
    </author>
    <summary type="html"><![CDATA[<p>I just got interrupted in my work by a call from a radio station.<br />
It was a radio quiz and I was live on air - funny feeling.</p>
<p>They played a short audio sample of a movie and I had to guess the title of the movie.</p>
<p>Well, what should I say... I knew the title in the first two seconds because I heard "Verpasst du auch nem Mann ne Fussmassage?" - And that's of course the german wording in one of the best scenes in one of the best movies ever made - <b>Pulp Fiction</b></p>
<p>Lucky me they picked this one ;) I won a CD and now... back to work :)</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>I just got interrupted in my work by a call from a radio station.<br />
It was a radio quiz and I was live on air - funny feeling.</p>
<p>They played a short audio sample of a movie and I had to guess the title of the movie.</p>
<p>Well, what should I say... I knew the title in the first two seconds because I heard "Verpasst du auch nem Mann ne Fussmassage?" - And that's of course the german wording in one of the best scenes in one of the best movies ever made - <b>Pulp Fiction</b></p>
<p>Lucky me they picked this one ;) I won a CD and now... back to work :)</p>
    ]]></content>
  </entry>
  <entry>
    <title>Today in c.l.py</title>
    <link rel="alternate" type="text/html" href="http://www.pronweb.de/node/487" />
    <id>http://www.pronweb.de/node/487</id>
    <published>2010-03-04T07:37:51+00:00</published>
    <updated>2010-03-04T07:39:18+00:00</updated>
    <author>
      <name>ch3ka</name>
    </author>
    <summary type="html"><![CDATA[<p>On Wed, Mar 3, 2010 at 1:11 PM, mk  wrote:<br />
&gt; &gt;<br />
&gt; &gt; Or I could make my life simpler and use global variable. :-)<br />
&gt; &gt;<br />
Ding ding ding!<br />
90% of Design Patterns is making Java suck less.<br />
Other languages don't necessarily suffer from Java's design flaws.</p>
<p>  &mdash; -- Jonathan Gardner <a href="mailto:jgardner@jonathangardner.net">jgardner@jonathangardner.net</a></p>
    ]]></summary>
    <content type="html"><![CDATA[<p>On Wed, Mar 3, 2010 at 1:11 PM, mk  wrote:<br />
&gt; &gt;<br />
&gt; &gt; Or I could make my life simpler and use global variable. :-)<br />
&gt; &gt;<br />
Ding ding ding!<br />
90% of Design Patterns is making Java suck less.<br />
Other languages don't necessarily suffer from Java's design flaws.</p>
<p>  &mdash; -- Jonathan Gardner <a href="mailto:jgardner@jonathangardner.net">jgardner@jonathangardner.net</a></p>
    ]]></content>
  </entry>
  <entry>
    <title>&gt;&gt;Are you all retarded? This is not facebook.</title>
    <link rel="alternate" type="text/html" href="http://www.pronweb.de/node/486" />
    <id>http://www.pronweb.de/node/486</id>
    <published>2010-03-03T10:43:41+00:00</published>
    <updated>2010-03-03T10:45:22+00:00</updated>
    <author>
      <name>ch3ka</name>
    </author>
    <summary type="html"><![CDATA[<p>Yeah I know I'm fucking late.<br />
Had stuff to do other than blogging since this came up.</p>
<blockquote><p>>> it's real. We've determined by looking at our traffic stats that people are doing Google searches for "facebook login" and coming upon RWW. They see the FB Connect button and assume that RWW is the "new Facebook."</p>
<p>Sigh.</p>
<p>The Internet Is Hard.<<</p>
</p></blockquote>
<p>The Article where it all started: <a href="http://www.readwriteweb.com/archives/facebook_wants_to_be_your_one_true_login.php" title="http://www.readwriteweb.com/archives/facebook_wants_to_be_your_one_true_login.php">http://www.readwriteweb.com/archives/facebook_wants_to_be_your_one_true_...</a></p>
    ]]></summary>
    <content type="html"><![CDATA[<p>Yeah I know I'm fucking late.<br />
Had stuff to do other than blogging since this came up.</p>
<blockquote><p>>> it's real. We've determined by looking at our traffic stats that people are doing Google searches for "facebook login" and coming upon RWW. They see the FB Connect button and assume that RWW is the "new Facebook."</p>
<p>Sigh.</p>
<p>The Internet Is Hard.<<</p></blockquote>
<p>The Article where it all started: <a href="http://www.readwriteweb.com/archives/facebook_wants_to_be_your_one_true_login.php" title="http://www.readwriteweb.com/archives/facebook_wants_to_be_your_one_true_login.php">http://www.readwriteweb.com/archives/facebook_wants_to_be_your_one_true_...</a></p>
<p>TL;DR - Version of the story: <a href="http://www.inquisitr.com/61333/there-are-some-seriously-stupid-people-on-the-web/" title="http://www.inquisitr.com/61333/there-are-some-seriously-stupid-people-on-the-web/">http://www.inquisitr.com/61333/there-are-some-seriously-stupid-people-on...</a></p>
<blockquote><p>>>stupid AOL users, we should've cut you guys off when we had the chance<<</p></blockquote>
<blockquote><p>>>So I just thought of a pretty good literacy test for deciding whether people are allowed to internet<<</p></blockquote>
<blockquote><p>>>I don't know what's scarier: the idea that this thread is a sign of the end times, or that it's a sign of the status-quo<<</p></blockquote>
<blockquote><p>>>Won't somebody please think of the children<<</p></blockquote>
<blockquote><p>>>To all the dorks who thought this was Facebook:<br />
Shut down your PC, turn off the monitor, unplug everything, pack it all into the box it arrived in and bring it back to the shop. You are too thick to ever be let loose on a computer.<br />
I console myself with the hope that Darwin was correct, and natural selection will take its course.<<</p></blockquote>
    ]]></content>
  </entry>
  <entry>
    <title>RANT: You are not a webdesigner</title>
    <link rel="alternate" type="text/html" href="http://www.pronweb.de/node/209" />
    <id>http://www.pronweb.de/node/209</id>
    <published>2010-01-07T11:34:37+00:00</published>
    <updated>2010-01-07T11:34:37+00:00</updated>
    <author>
      <name>ch3ka</name>
    </author>
    <summary type="html"><![CDATA[<p>If you call yourself a webdesigner and cannot wrtite a page in pure HTML/CSS by hand, you lie. Period.<br />
While this sounds harsh, its actually obvious: you need to know whats possible and how complex it is to implement what you design.<br />
Yes, what you design looks good, but there is a reason that you've never seen tilted text with a drop shadow and a gradient on a website.<br />
Yes, you can slice your psd and it will display in your browser, so obviously it is possible to implement what you design?<br />
really? Think about it...<br />
just look at the "code" you generate with this method.</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>If you call yourself a webdesigner and cannot wrtite a page in pure HTML/CSS by hand, you lie. Period.<br />
While this sounds harsh, its actually obvious: you need to know whats possible and how complex it is to implement what you design.</p>
<p>Yes, what you design looks good, but there is a reason that you've never seen tilted text with a drop shadow and a gradient on a website.</p>
<p>Yes, you can slice your psd and it will display in your browser, so obviously it is possible to implement what you design?<br />
really? Think about it...<br />
just look at the "code" you generate with this method.<br />
And ever thought of *dynamic* content being displayed? And no, I won't constuct an image and slice it on the server side..</p>
<p>Heck, do you realize what evil hacks are necessary just to get the rounded borders on this page? Tons and tons of clientside Javascript render these. Yes, on the client. Yes, on every pageview. No, there is no compatible way of doing this with HTML/CSS until all browsers out there know CSS3.<br />
Billions of billions of billions lines of Javascript get interpreted by home computers every day, wasting energy and computing time just because you guys want rounded borders and did not know how complex this is to implement.</p>
<p>If you feel adressed by this text: You may call yourself designer, but please dont call yourself webdesigner. You'll lie to yourself, to your customer, and that poor little bastard who'll have to translate your .psd into HTML/css will curse you, use evil hacks, will get blamed for things not working and taking too long. He might kill you.</p>
<p>Real webdesigners know what's possible and work with what they have. Sadly this is practically limited to HTML4 und CSS2, but things will soon get better with HTML5 and CSS3.</p>
    ]]></content>
  </entry>
</feed>

