english

Sept. 24, 2011

XKCD could be better

I think two of the recent XKCD comics could be done better. I am regularily reading xkcd sucks, but i do not agree on everything he says. But many comics can be done better, i present two improved comics here:

XKCD 953


Original here

What did i do? I removed the redundant dialogue. The Joke is presented in the first line, everything after that is just the same joke. Maybe he wanted to explain his joke in a way, that even persons who do not know about the 10 types of people in the worlds (those who understand binary and those who do not) will understand his joke.

XKCD 954


Original here

This one is a bigger change. Randall put several jokes in this comic, which are not quite compatible to each other and i removed all but the main joke: Black-Hat Guy blocks the end of a very long escalator to get a funny result.

The other jokes in the comic just were saying "i can ask dumb questions, too.". Oh cool, BHG has a witty response to curious questions. Funny. Lol.

Kategorien english
Tagged XKCD improved Remix Binary Base 2 Escalator Comics Comic
Mobil qrcode zeigen

0 Kommentare

Mai 24, 2011

sudo make me a sandwich

Save this as "Makefile":

UID=$(shell id -u)
default:
        @echo "make love, not war!"
me:
        @if [ "${UID}" = "0" ];then echo "okay.";\
        else echo "What?";echo -n "make ";fi
a:
        @if [ "${UID}" != "0" ];then echo -n "it ";fi
sandwich:
        @if [ "${UID}" != "0" ];then echo "yourself.";fi

And execute it:

$ make me a sandwich
[...]
$ sudo make me a sandwich
[...]

If you do not understand it, read this XKCD-Comic.

Kategorien Fun english Software
Tagged Sandwich XKCD make sudo Comic Code Makefile
Mobil qrcode zeigen

0 Kommentare

März 23, 2011

Anonymous-Twitter Bookmarklet

Bookmarklet: Anonymous-Twitter

how to use it

  • drag the Bookmarklet above to your bookmarks-toolbar.
  • visit twitter
  • click the Bookmarklet
  • ???
  • PROFIT!

what does it do?

When you click the bookmarklet, every tweet will have "Anonymous" as author, so you can judge the tweets by the message and not by the author.

how does it work?

the bookmarklet runs a tiny piece of javascript on the twitter-page to insert some CSS-Code, which hides the user-images and usernames from twitter and adds "Anonymous" as username and a picture of Anonymous as user-image.

thanks to ...

@paniq, who tweeted the idea and also makes good music.

Stylish / Userscript

you can use the userstyle for twitter, if you want the change to be permanent. the userstyles site has also an option to install the style as userscript.

Kategorien Anonymität Internet Fun english Software
Tagged Anonymous twitter JavaScript Bookmarklet
Mobil qrcode zeigen

0 Kommentare

Sept. 2, 2010

Trying something new for git commit-ids

one disadvantage of git is, that its commit-ids are ugly.

b1e7470 (even the short form of b1e74702c83accb73d60e884f7a46fc06d5d51b2) is something nobody can remember. With SVN you can say "i am using svn revision 754". a number with three to six digits for most project can be memorized.

But a commit-id of git is in the short form a seven-digit hex-number, and its "randomly" choosen (by a hash function). SVN numbers a strictly monotone, so you know the project is approximate at 750 commits, and you remember the last digit, so you can say "the commit was 754".

now i am trying something new on the otfbot project: the ver2name function uses the seven-digit version of a git commit-id to generate a fantasy-name.

b1e7470 → Radwalhel

now Radwalhel may be funny enough, so you can remeber it, when someone asks you, which version you are running.

The cool function about ver2name is, that it preserves all important information, so you can convert it back to a git commit-id. So the developer can use the "funny" name to find the git-revision the user is using:

Radwalhel → b1e7470

some more examples:

0000000 ⇔ Babbabbab
8080808 ⇔ Mebmobmob
fffffff ⇔ Zozzazzaz

you see how its working: one hexdigit is mapping to one consonant, the 7th digit is mapping to two vocals. the third vocal is created by a hash of the last two digits, but it carries no additional information and is ignored in parsing the name back to a version.

we will see, if this helps against the confusion caused by git-commit-ids. its an experiment. And its still no solution to the problem, that two consecutive commits have totally different IDs.

Kategorien Software english
Tagged git svn vcs commit names commit-id svn-rev
Mobil qrcode zeigen

2 Kommentare

Jan. 5, 2009

lyrics search for the current song with MPD

Another Tipp for Users of MPD:
firefox "https://ssl.scroogle.org/cgi-bin/nbbw.cgi?Gw=$(mpc|head -n1) lyrics&n=1"
searches for the current songname + "lyrics" on Scroogle (yeah, privacy).

Of course you can just change "firefox" i.e to "opera" and "https://ssl.scroogle.org/cgi-bin/nbbw.cgi?Gw=" to "http://google.de/search?q=" or what search-engine and browser you like.

Kategorien Software english
Tagged Tipps Song MPD Lyrics current current Song search
Mobil qrcode zeigen

0 Kommentare

Aug. 27, 2008

The Game

In Soviet Russia, the Game loses YOU!

Kategorien Fun english
Tagged Game russian Reversal the Game Smirnoff Soviet Russia Russia Soviet Witz
Mobil qrcode zeigen

0 Kommentare