ch3ka's blog
Digital Pinhole Camera for free
Posted February 10th, 2011 by ch3kaThis is a pinhole "glass" for canon EOS:

well, not yet.
But this is:

(those are all full-res images. right click and "view image" to view fullsized)
Howdunit?
Python palindromic quine
Posted January 28th, 2011 by ch3kaA palindromic quine is a program which prints itself, and reads from right to left the same as from left to right.
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.
Last month, I hacked this in a codegolf session:
_='#)]1-::2-[l+l(tupni;`_`+"=_"=l;';l="_="+`_`;input(l+l[-2::-1])#'=_
Yes, this
- is a valid python program
- is a python quine
- is palindromic
and it's only 69 chars long!
Operation: LeakSpin
Posted December 13th, 2010 by ch3kahttp://www.youtube.com/watch?v=fLcUVNee_UI&feature=youtu.be
Riddle riddle riddle
Posted October 20th, 2010 by ch3kaPretty cool nerdy riddle.
Kinda easy, but cool. So, if you got 10 minutes spare time...
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.
Hacking Single Lens Reflex Cameras with Barcodes
Posted March 24th, 2010 by ch3kaCool Stuff :D
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.
How to golf in python
Posted March 14th, 2010 by ch3kaHad some fun in c.l.py.
Given was:
def fizzbuzz(num):
> if num:
> if num % 15 is 0: return fizzbuzz(num-1) + 'fizzbuzz \n'
> elif num % 5 is 0: return fizzbuzz(num-1) + 'buzz \n'
> elif num % 3 is 0: return fizzbuzz(num-1) + 'fizz \n'
> else : return fizzbuzz(num-1) + ('%d \n' % num)
> return ''
> print fizzbuzz(100)
Since this was not funny enough, I wrote:
for i in range(1,101):print('','fizz')[not i%3]+('','buzz')[not i%5]or i
This works because not casts to bool and (True, False) == (1, 0).
Filmtipp
Posted March 12th, 2010 by ch3kaWeil wirs heute erst von Filmen hatten:
Wer "Postal" mochte, wird "War Inc" lieben.
Total bescheuerter Film. Also wirklich.
Minus 5 Sterne.
Aber so bescheuert er auch ist, er ist herrlich sarkastisch was die globale Situation angeht. Und dabei nur ein ganz klein bisschen überspitzt.
Im Gegensatz zu Postal hat die weibliche Begleitung auch keine Anzeichen starker Angewiedertheit gezeigt, aber das kann daran liegen dass es eine andere ist ;)
Radio Station called
Posted March 12th, 2010 by ch3kaI just got interrupted in my work by a call from a radio station.
It was a radio quiz and I was live on air - funny feeling.
They played a short audio sample of a movie and I had to guess the title of the movie.
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 - Pulp Fiction
Lucky me they picked this one ;) I won a CD and now... back to work :)

Recent comments
10 hours 7 min ago
10 hours 8 min ago
10 hours 8 min ago
10 hours 8 min ago
10 hours 8 min ago
10 hours 8 min ago
10 hours 8 min ago
10 hours 8 min ago
10 hours 8 min ago
10 hours 8 min ago