January 2009
19 posts
2 tags
2 tags
30 seconds that changed the world: how Apple's... →
1 tag
2 tags
Growing stocks of unsold cars around the world -... →
2 tags
Popmusik und Digitalisierung: Durchhalten: Es... →
2 tags
The Inauguration on Tumblr →
3 tags
1 tag
Wie wird mein Leben künftig verlaufen, wenn ich mich nicht täglich über Bush...
– Vorsicht, Lichtgestalt: Hoffen und Zweifeln - Frankfurter Rundschau TC Boyle zur Amtseinführung von Obama
2 tags
Das ist das Spektrum, in dem sich Blogs bewegen – sie produzieren Götter und...
– Der Blogwart
2 tags
1 tag
Wer kennt sich denn schon aus mit diesem blöden Klima, das Meereseis nach...
– Schatzi, sie schalten das Internet ab - futurezone.ORF.at
3 tags
1 tag
2 tags
1 tag
Würde in Deutschland eine einzige Kassam-Rakete einschlagen, bräche eine...
– Ligne Claire: Feuerwerk
3 tags
Test Or Die // RailsTips by John Nunemaker →
3 tags
4 tags
Until something fundamentally changes, I hereby swear not to deploy a rails web...
– Being John…uhm…Bader - Rails on Windows
2 tags
The code that allegedly broke the Zune →
marco:
Via jstn.
while (days > 365) {
if (IsLeapYear(year)) {
if (days > 366) {
days -= 366;
year += 1;
}
} else {
days -= 365;
year += 1;
}
}
Out of curiosity, why was this being rewritten by Freescale or Microsoft at all? This has been a solved problem for a very long time.
(Also, this is very ugly C style in many...