August 2011
1 post
May 2011
1 post
Dinge, die in Deutschland umsonst sind
Papiertücher auf Toiletten.
Muttermale entfernen lassen.
(Liste wird erweitert, sobald ich noch mehr Dinge finde, die in Deutschland umsonst sind.)
April 2011
1 post
February 2011
2 posts
458 B cross-domain JavaScript/JSON-P loader
(Somewhat) readable
function load(u,c){
var b=document, element = 'script', s=b.createElement(element), name=2166136261,
i = u.length, backup = c, callback = /=\?/,
b=b.body, x='onreadystatechange', y='onload', z='readyState';
if (callback.test(u)) {
while (i--) {
name = (name * 16777619) ^ u.charCodeAt(i);
}
window[element += (name < 0 ? -name : name)] = function() {
...
January 2011
5 posts
Das dreckigste Hotel Europas steht in der Türkei.
– Dreck-Rangliste für Europa und USA – Schmutzigste Hotels ermittelt. Nicht bloß DAS Dreckigste, sondern DIE ZWEI Dreckigsten.
Android user agent statistics
Data collected from three or four weeks of log files. Hits only, no visitors.
Android versions
410 Android 2.2
376 Android 2.1-update1
202 Android 2.2.1
29 Android 1.6
1 Android 1.5
User Agent substrings #1
876 Android 2.1-update1; en-us; Ally Build/ERE27
751 Android; Opera Mini/5.1.22460/22.387; U; en
737 Android 2.2; en-us; Droid Build/FRG22D
683 Android...
November 2010
4 posts
New Website Checklist
I will update this with more things that I do before launching a website.
Google Analytics profile.
UserVoice forum.
Net Promoter Score Survey.
Bookmark the site at delicious.
Twitter account.
.coms with and without hyphen.
Redirect from hyphenated .com to non-hyphen .com.
JavaScript and maybe CSS sprite on the CDN.
Google alert for “domainname.com.”
Subscribe to the RSS Feed...
Download all images on a 4chan page
jQuerify the page.
Open Firebug.
Select the ‘Console’ tab.
Enter $('img[md5]').parent().each(function() { console.log($(this).attr('href')) });
Copy the URLs into Notepad or any other text editor and save them to urls.txt.
wget -nc -i urls.txt.
Alternatively, cat | wget -nc -i -
Google AdSense PPC with and without interest-based...
Average PPC without interest-based ads: 0.132211302 €
Average PPC with interest-based ads: 0.086962264
Not sure about this because it wasn’t split tested but still interesting.
Java PDF Open Source/Free Library Error Rates
Data quality is always a huge challenge in working with file formats. I wanted to find out the error rate of open source/free PDF libraries for Java, i.e. what percentage of PDF files they cannot read.
I downloaded 3583 PDF files from the intertubes and here are the results:
ICEpdf
ICEpdf couldn’t read 1.981579682 % of the files though I’m not absolutely sure of the number...
October 2010
2 posts
Google /jsapi private data disclosure...
Google’s jsapi unintentionally discloses private data.
The URL of the page that requests the script will end up in the google.loader.OriginalAppPath property.
Because the file is cacheable for one hour, any other site that the visitor visits within one hour can access the URL of the site that initially loaded the file.
Google has been informed about this on 08 Oct 2010 14:55:25 +0200...
Which files used the most bytes
The following snippet uses AWK to extract the files that produced the most traffic. It also prints how many times a particular file was requested.
awk '{uri=$2.$6;sizes[uri]+=$9;reqs[uri]++}END{for(i in sizes){print(sizes[i], i, reqs[i])}}' access.log | sort -r -n | head -n 50
Depending on your virtual host setup, you might have to change uri=$2.$6.
September 2010
2 posts
Read InputStream to String
There are many ways to convert an InputStream (whether FileInputStream, SocketInputStream or others) to a String, StringBuffer or StringBuilder.
I implemented some of them and benchmarked them. Here’s the code:
package com.eaio.perftest;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.File;
import...
August 2010
1 post
July 2010
1 post
Für italienischen […] Urlaubsflair sorgt DJ Murat
– Werbung vom B20-Bistro, BGL Panorama & Anzeigen-Post vom 14. Juli 2010.
June 2010
1 post
May 2010
1 post
ArrayBlockingQueue vs. LinkedBlockingQueue
The performance of java.util.concurrent.ArrayBlockingQueue vs. java.util.concurrent.LinkedBlockingQueue on Sun Java 1.6.0_20. The first value is one million Integer puts, the second value is one million takes.
java.util.concurrent.ArrayBlockingQueue put: 5633 ms take: 1195 ms java.util.concurrent.LinkedBlockingQueue put: 13995 ms take: 1793 ms
April 2010
2 posts
March 2010
6 posts
RDNS lookup with dig
$ dig -x 85.181.149.22 | grep -A 1 'ANSWER SECTION' | grep PTR | awk '{print($5)}'
e181149022.adsl.alicedsl.de.
du instrumentalisierst auch alle von deinen homies fürn bischen link juice was
– Norman zu http://www.derbischof.de/.
James [Gosling] mentioned JavaFX Script. […] It’s similar to Flash...
– What’s Happening in the Java World? (One of those HA HA HA OH WOW moments.)
I am a web-developer
From: "Xxxx Yyyy" <xyz@xyz.xyz>
I am a web-developer. If you have work on web then you can also provide
me plase.
Eine zweite Chance für JavaFX… demnächst
.gra0.: und sonst?
Ole: am wochende mach ich websites
Ole: mit java fx
.gra0.: hahahahahaha
Ole: hahaha !
.gra0.: hahaha!
Ole: das wird extrem brutaloo !
.gra0.: cla
Ole: haben viele user kein javar installiert ?
.gra0.: du wirst mir doch nicht etwa allen ernstes erzählen wollen, daß du den benutzern deiner website den start der java-vm zumutest?
Ole: hm
Ole:
.gra0.: das meinte ich gerade
Ole: das mute ich damit zu ja
Ole: hm evtl mach ichn alternatives
.gra0.: ja, z.b. als plaintext
Ole: wie bei deinen seiten
.gra0.: jah
Ole: finde ich irgendwo stats wieviele leulte java vm druf ham
.gra0.: ja
Ole: zeigst dus mir
.gra0.: woaß net, wo
Ole: suchst dus mir?
.gra0.: ich bin grad beschäftigt
Ole: mit was
.gra0.: damit, mit dir zu quatschen
Ole: lame3
.gra0.: jah
// An dieser Stelle finden wir heraus, daß so 85—90 % der Benutzer Java am Start haben
Ole: kennst du java fx ? soll ganz gut sein
.gra0.: OH OLE
// Viel Später
Ole: soo java fx time
.gra0.: ROFL du gurke
Ole: hihi
Ole: selba
.gra0.: zeig mir mal eine von deinen ganz tollen java-fx-seiten
Ole: ich hab noch keine du gurke
.gra0.: haha ja eben :D
.gra0.: soo java fx time!
Ole: ich glaun ich animiers mit jquery hihi
.gra0.: jQuery is aber jetzt nur schwerlich java-fx, herr
.gra0.: selbst für jemanden wie sie nicht
Ole: java fx is glaub stülz
.gra0.: die einsicht kommt ja prompt
Ole: ich musste grad akzeptieren dass irgendwas gestartet wird
Ole: das kann ma nich zumuten
.gra0.: O RLY, OLE?
Ole: ich geh ihnm aber noch ne chance
Ole: demnächst
// Einige Monate später
Ole: ich geh nachher exxtreme steil
Johann: mit javafx, hoff i
Ole: hihi
Ole: die sachee is für mich erledigt
Johann: darf ich dich auch hier zitieren?
Ole: cla
February 2010
2 posts
Google CDN hosted jQuery versions cache count
How many times various versions of jQuery hosted on Google’s CDN were retrieved from the browser cache of two of my computers.
URL Times cached Fetch count
https://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js 2 6
http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js 2 ...
Yuppie-Sprech
„Ich habe ein Thema.”
„Am Ende des Tages…”
„Das sind dann so die Themen.”
„Pizza Vesuvio. Plus Weißbier. Plus Mangoschorle.”
„Gemeinsam im Boot sitzen.”
„Bonis (sic) können gegebenenfalls noch on top kommen.”
„…so bezüglich…”
„umgeswitcht”
(Wird erweitert.)
January 2010
1 post
Nach einer Studie des Instituts für Energie- und Umweltforschung (IFEU) ist zum Beispiel bei Äpfeln und Bier der Kauf eines regionalen Produkts ressourcenschonender.
Fabrikbrot und Bananen – So kauft man nachhaltig
Meine Rede seit 1827, aber auf mich hört ja keiner.
December 2009
3 posts
Nach Angaben eines Sprechers waren die vier Männer mit polnischer...
– Explosion erschüttert Wohngebiet in St. Ingbert – zwei Tote
For 45 years or so, people have been claiming computers are going to save vast...
– Harvard study: Computers don’t save hospitals money
November 2009
2 posts
Die künftigen Regierungspartner CDU, CSU und FDP haben vor der Wahl...
– Ah geh. Bald 1900 Milliarden Euro – Staatsverschuldung explodiert
Breaking Bing Cashback
I’ve never bought anything using Bing Cashback, but the balance of my account is $2080.06. Apparently, I placed two $1 orders on January 24th of this year, and spent another $104,000 on October 24th. Let’s see how these transactions might have “accidentally” got credited to my account.
First, we need to try to figure out how transactions get into Bing Cashback. Microsoft posted some...
October 2009
3 posts
Typisch Russen
--------------------------------------------------------------------------------
Warnung Notification
Lieb PayPal Costumer,
Es ist uns nicht entgangen, dass dein PayPal^® account-Informationen muss im
Rahmen der Aktualisierung unserer anhaltendes Engagement fьr Ihr Konto zu
schьtzen und zu reduzieren der Fall von Betrug auf unserer Website. Wenn Sie
kцnnten Bitte nehmen Sie sich...
Recursively calculate the size of files matching a...
$ find . -iname '*.gif' -fprint0 gif-images
$ du -bc --files0-from=gif-images
...
12345 total
$
September 2009
2 posts
Suppressed Texas Instruments cryptographic signing...
This are the OS signing keys for different Texas Instruments calculators. The key for the TI-83 calculator was first published by someone at the unitedti.org forum in this message: http://www.unitedti.org/index.php?showtopic=8888. He or she needed several months to crack it. The other keys were found after a few weeks by the unitedti.org community through a distributed computing project. The keys...
Indians get the middle finger from now on
> From: "XYZ" <xyz@xyzmail.xyz>
> please guide me how to use .lib file in my java program.
no.
> i want to use static library in my java program.
Well then read the documentation.
August 2009
1 post
Some people argue software should be agnostic. They say it’s arrogant for...
– Getting Real: Make Opinionated Software (by 37signals)
July 2009
2 posts
on
Ole: du bist away
.gra0.: ich bin on
Ole: neeeinn du bist away undhast die message GO GO GO!
.gra0.: und jetzt?
Ole: immernoch
.gra0.: ich bin on, ole!
Ole: duhast einen kackclient
.gra0.: ich bin *O*N*
Ole: away
.gra0.: *O*N*
Ole: nein
.gra0.: nein du
Ole: du !
Ole: ich bin on
.gra0.: ja
Anzeichen, daß man dich ignoriert
“Ja, aber”
“Ja, ja, aber”
“Ja nein”
“Ja, ja, klar”
“Ja ja, ja ja”
“Ja, ich weiß.”
May 2009
1 post
Data Matrix Generator →
April 2009
2 posts
Aus Überforderung mit ihrer Situation als Türkin und junge Mutter in Deutschland...
– Familiendrama in Bayern
Taken from Minghags.
March 2009
2 posts
El-cheapo Website Performance Monitoring
while true; do date >> performance; /usr/bin/time --output=performance --append -f '%e' wget -q -q -O bla 'http://127.0.0.1'; done &