>>> for i in range (0, 10): … hash(i) … 0 1 2 3 4 5 6 7 8 9 >>> hash(123324) 123324 >>> hash(785345345436845768) 785345345436845768 >>>
WTF?In mathematics, Stirling numbers of the second kind, together with Stirling numbers of the first kind, are one of the two types of Stirling numbers.
Isn’t it a truly beautiful definition? — From Stirling numbers of the second kindI’ll make a long story short today — I did a “new iPhone”-style firmware update, i.e. without restoring everything from the backup. iPhone started to work like a dream on 3.1.2. But I’ve lost few things which I didn’t want to lose — in particular, my SMS messages.
I found a backup of [...]XSS on new Perl.org — no input filtering??!
Apparently, guys from Perl should really learn how to filter the input (maybe they closed this hole right now, but at the moment of writing the link produces following picture):
Often when I am reading articles like this, I want to ask myself a question: why some people, who are (presumably) sane and educated, fail to understand one tiny little thing – men and women are indeed different. No matter how hard feminists will try, they will not change it, ever. I agree that sexism [...]
Recently I wrote a Hadoop article in Russian for one of very popular Russian IT blogs. After giving this idea a second thought, I translated this article (or, rather, first part of this article as the second is still in progress) to English and uploaded it to my website (Posterous format isn’t very good for [...]
The query means a very simple thing: select count of matching rows, value of locations – grouped by locations field; rpad does all the magic – it basically says to add a certain number of ‘*’ on the right of empty string, number of ‘*’ is count(*). It’s been divided by 15 to [...]
More Hadoop Mysteries – order of initialisation
Hey out there! Still not tired of my Hadoop experiments? Not yet? That’s another one for you!
What’d you think the difference is between two snippets of code? Say, this:
SomeCodeWhichChangesConfig.initialise(getConf()); Job job = new Job(conf, “MyHadoopJob”); // … setting the job details
if (!job.waitForCompletion(true)) { System.err.println(“FAILED, cannot continue”); }… and [...]
XML input and Hadoop – custom InputFormat
Today I finally hit the task I was scared for so long — processing large XML files on Hadoop. I won’t tell you for how long I crawled the Internet trying to find some working solution… not that anyone wants to know? Eventually, I came out with the solution of my own — [...]
Huey colour calibration, pink colours and my Macs
I’ve got a thingie, you know… this colour calibration thingie named Huey. I got a while ago as a birthday gift from my friends, but when I switched to Mac two years ago it suddenly stopped to work (well it did but it produced that horrible pink cast – I couldn’t use it and I [...]
-
Categories
-
Meta
