Merry Christmas to HN

502 points by lateguy ↗ HN
Hello HN,

I become active Hacker news at the start of year, its been incredible journey so far. I have learn so many things from computer science to psychology to economics etc. Thanks for all the contribution and best of luck for future. Happy Holidays.

120 comments

[ 6.3 ms ] story [ 250 ms ] thread
This seems as good a place as any to point this out: take a look at the numbers on the frontpage.
And the header bar at the top.
Guess you have to disable topcolor for that?
the top color is #cc1010 if you want to set it up as your custom top color.
(comment deleted)
At the moment now it's default orange again. Xmas theme turned off?
That was me. I turned it on in the REPL last night, but did it wrong. Leapt out of bed this morning thinking "Doh! I bet it switched off." Which it had.
No worries. That's why we have 2 Christmas days.
All I want for Christmas is the three lines of CSS it would take to make HN responsive.

If that's not possible, I'll take world peace instead.

This is up for contention but I'm not sure it takes just 3 lines of CSS to a make a table heavy layout responsive :D
Is is actually tables? I haven't actually looked at the source, but I imagine that tearing out all the templates and styles, and redoing roughly the same design can't be more than a day or two's worth of work.

Maybe there's a fear that if it got too pretty, they might start to attract the wrong crowd?

HN hasn't always had an API, so they didn't want to change the HTML because it would break the apps that rely on scraping the markup to get the content. You can read more at this blog post [1] announcing the HN API.

[1]: http://blog.ycombinator.com/hacker-news-api

I'd like collapsible comments more :)
(comment deleted)
Seriously, don't make it responsive. I'm already shortening my eyesight by reading HN compulsively on a large iPad, I can't imagine the effects of reading it on a phone.
If you use opera on a smartphone, just go to the settings and enable text wrap. You're welcome :)
Happy Grav-Mass, folks!
Merry Christmas!

How about having a little new year party this 31st ?

(comment deleted)
Merry Christmas all!

  map (\x -> chr (x + 32)) [45,69,82,82,89,0,35,72,82,73,83,84,77,65,83,1]
explain :)
Javascript

  [45, 69, 82, 82, 89, 0, 35, 72, 82, 73, 83, 84, 77, 65, 83, 1].map(function(x){ return String.fromCharCode(x +32)}).join('')
Copy-paste in your browser console -

    // Merry Christmas
    console.log(
      [45,69,82,82,89,0,35,72,82,73,83,84,77,65,83,1]
      .map(function(i) { return i + 32; })
      .map(function(i) { return String.fromCharCode(i); })
      .join("")
    );
I'm to lazy to do the math (substract and look for ascii code), but it should be "Merry Christmas". clue: look where "r" is i the string.
Python equivalent for convenience:

  map(lambda x: chr (x + 32), [45,69,82,82,89,0,35,72,82,73,83,84,77,65,83,1])
Just paste it into a python terminal and run it :)
Python 2/3 compatiblity:

    "".join(map(lambda x: chr (x + 32), [45,69,82,82,89,0,35,72,82,73,83,84,77,65,83,1]))
Or as a list comprehension if that's your thing:

    "".join([chr(x + 32) for x in [45,69,82,82,89,0,35,72,82,73,83,84,77,65,83,1]])

  ; Racket version
  (apply string (map (λ (x) (integer->char (+ x 32))) '(45 69 82 82 89 0 35 72 82 73 83 84 77 65 83 1)))
Scala

  List(45,69,82,82,89,0,35,72,89,73,83,84,77,65,83,1) map (_ + 32 toChar) mkString
What language is this?
Haskell. Here's another way to do it in the same language, using function composition and point-free style.

map (chr . (+32)) [45, 69, 82, 82, 89, 0, 35, 72, 89, 73, 83, 84, 77, 65, 83, 1]

Merry Xmas. I thought I'd try Haskell for the same time for Xmas and found I have to download it and import Data.Char first in case anyone else is trying!
Or in Perl:

  map{chr$_+32}(45,69,82,82,89,0,35,72,82,73,83,84,77,65,83,1)
shorter using pack:

  # shorts
  pack("s*",25933,29298,8313,26691,26994,29811,24941,8563)
  # longs
  pack("l*",1920099661,1749229689,1953720690,561209709)
  # 64-bit
  pack("q*",7512884309367350605,2410377348306397554)
  # hex
  pack("h*",d45627279702348627963747d6163712)
(comment deleted)

    #include <string>
    #include <iostream>
    #include <algorithm>
    using namespace std;

    int main() {
        string s {33,78,68,0,65,0,40,65,80,80,89,0,46,69,87,0,57,69,65,82,0,79,70,0,
                  70,85,78,67,84,73,79,78,65,76,0,67,79,68,69,0,84,79,0,89,79,85,0,
                  84,79,79,12,0,51,73,82,1};
        transform (begin(s), end(s), begin(s), [](char c){ return c + 32; });
        cout << s << endl;
    }
Coffee:

[45,69,82,82,89,0,35,72,82,73,83,84,77,65,83,1].map((x) -> String.fromCharCode x+32).join('')

Last one, in old-fashioned style:

  5 FORX=1TO16:READN:N=N+32:?CHR$(N);:NEXTX:DATA45,69,82,82,89,0,35,72,82,73,83,84,77,65,83,1
(comment deleted)
(comment deleted)
메리 크리스마스 HN. Thanks for all the insights, day in and day out. Love ya.
Merry Christmas and thanks for being with me every single day in 2014.
I read HN since 3 years. I've created my startup 1.5 year ago. I think that says it all. Oh and I had revenue from day 70, currently cash-flow-positive, and I've taught a lot of people what bootstrapping means. Thank you, community.
Thank you! Merry Christmas to all of you :-)

And thank you for being a big part of my small world :-)

Thank you! Merry Christmas to all of you :-)

And thank you for being a big part of my small world :-)

Thank you! Merry Christmas to all of you :-)

And thank you for being a big part of my small world :-)

Vrolijk Kerstfeest!
Merry Christmas to each one of you here on HN.