Ma’am, Your Burger Has Been Paid For - NYTimes.com
を見て、向こうでも「バーガー」って表現すんだねえと思ったのだけど
よく考えたら BURGER KING® というのがあったのだった
(米国出張中は何回かお世話になりました :)。
んで、改めて辞書をひくと
Burger | Define Burger at Dictionary.com
Origin: 1935–40, Americanism; extracted from hamburger by false analysis as ham + burger
おおう。
Facebook で~ の話が Dr Dobb's の記事に。
Facebook Adopts D Language | Dr Dobb's
Facebook Adopts D Language
By Adrian Bridgwater, October 16, 2013
Rapturous community reception to news that Facebook uses D for live production
(略)
Community developers have already lauded this news and described it as the "call to arms" now happening
after the language's development focus was directed towards "quality and professionalism" at the DConf
conference held earlier this year. There has also been particular note made of the bug report, fix, resolution
process, which has now markedly improved.
Walter Bright described this news as the "start of the first battle signalling the end of Middle Earth,
and the rise of the Age of D." Other D developers, such as J. M. Davis, offered perhaps less hyperbolic
assessments: "It doesn't mean that D has taken over the programming world or anything like that, but it
shows that the language is maturing and that real companies are now willing to use it in the real world — and
it's a pretty major company at that."
関連記事
D言語の現状 - Go ahead!
Facebook Adopts D Language : programming
Facebook is using D in production starting today : programming
しかし
start of the first battle signalling the end of Middle Earth,
ってw
Fighting a 20-year-old software bug : programming
関連記事 →
My First BillG Review - Joel on Software
Fighting a 30-year-old software bug | Ovid [blogs.perl.org]
Fighting a 30-year-old software bug
By Ovid on October 18, 2013 9:33 AM
Er, an earlier version of this said the software bug was 20 years old. It's 30! Thanks, Sidhekin
(略)
In the good ol' days, Apple computers would sometimes spontaneously reset their date to January 1st, 1904. The
reason for this is fairly simple. Back then, Apple computers used battery-powered "system clocks" to
keep track of the date and time. What happened when the battery ran out? Apple computers tracked their dates as
the number of seconds since the epoch. In this sense, an epoch is merely a reference date from which we start
counting and for Macintosh computers, that epoch was January 1st, 1904 and when the system clock battery died,
that was your new date. But why did that really happen?
(略)
Moving along, we have Lotus 1-2-3, IBM's "killer app" that helped to launch the PC revolution, though
it was VisiCalc on the Apple that really launched the personal computer. It's fair to say that if 1-2-3 hadn't
come along, PCs would likely have not taken off the way they had and computer technology would have turned out
considerably differently. However, Lotus 1-2-3 incorrectly reported 1900 as a leap year. When Microsoft released
Multiplan, their first spreadsheet program, it didn't have much market penetration. So when they conceived of
Excel, they decided to not only copy 1-2-3's row/column naming scheme, they made it bug-for-bug compatible,
including deliberately treating 1900 as a leap year, a problem that remains to this day. So for 1-2-3, this was
a bug, but for Excel, it was a feature to guarantee that everyone who used 1-2-3 could import their spreadsheets
into Excel with no differences in the data, even if the data were wrong.
(略)
To work around this, I now have the following (pseudo-code):
difference = formatted_year - parsed_year
if ( 0 == difference )
assume 1900 date system
if ( 4 == difference )
assume 1904 date system
if ( 5 == difference and parsed month is December and parsed day is 31 )
assume 1904 date system # yeah, I had 1900 originally. Thanks for spotting that
And now all 36,916 dates parse correctly.
Note: for extra fun, if you have a Mac and you're running Excel, try entering a date before 1904 and then
formatting it into a different date format. You can enter the date, but you can't format it because Excel will
accept it, but will treat it as a text field. Meanwhile, for Microsoft Excel, all days of the week prior to
March 1st, 1900 are wrong, due to a bug in software released in January of 1983.
Update: It was pointed out that Spreadsheet::ParseExcel does parse Excel's 1904 flag. Unfortunately, I'm using
Spreadsheet::ParseExcel::Stream, which does not. Even on beefy boxes, we've run out of memory with the using
the standard parser so we've had to fall back on the streaming parser. So far every attempt I've made to work
around this has hit yet another bug.
Update 2: turns out Microsoft released Excel for Macintosh first!
Update 3: And according to an anecdote from Joel Spolsky, the Lotus 1-2-3 "bug" may have been a
deliberate attempt to simplify the Lotus software. I had previously read hints that Lotus did this deliberately,
but since I couldn't say for sure, I left it out.
1-2-3 がそうだったというのは知ってたけど
Apple computers would sometimes spontaneously reset their date to January 1st, 1904.
だったとは。この後の文からするとここでいってるのは Mac のことじゃないですよね。
1900 年は閏年じゃないので、1904年始まりにするとある年が閏年かどうか判定するときに
100で割りきれるかどうかの判定を(2100年までは)サボれるとかいうのを
どこかで読んだ覚えがあるんだけどどこだっけか。
単純に4で割り切れるかどうかチェックするだけで良くて、さらにそれは
最下位2ビットが00かどうか見ればよいという。
InfoQ で著者インタビューのあったこの本
Book Review: Learning Gerrit Code Review
面白そうだなあとリンクを辿ると
Learning Gerrit Code Review: Luca Milanesio: 9781783289479: Amazon.com: Books
paper back が $31.49、kindle が $14.84。これはこれでいいんだけど
できれば mobi 以外のフォーマットでも欲しい
(amazon で買うとプロテクトかかってたりするし)。で、さらに調べてみると
Learning Gerrit Code Review | Packt Publishing
Formats: PDF, PacktLib, ePub and Mobi formats
で (15%の割引ありで) $17.84。
.mobi のみで15ドル弱よりはこっちの方が良いよねえ。と思いつつさらに調べると
オライリーでも扱ってた。
Learning Gerrit Code Review - O'Reilly Media
Ebook: $20.99 Formats: ePub, Mobi, PDF
だと。サンクスギビンクかクリスマスの半額セールに期待してちょっと待ってみよう :)
どこの製品とは言わないけど、
1996年→閏年、
2000年→平年、
2004年→閏年 って判定してたのがあったよなあ(遠い目)