Hacker Newsnew | past | comments | ask | show | jobs | submit | rtg's commentslogin

Curiously, even Apple wasn't able to make headway in fighting counterfeit products. [1]

"China's government declined to investigate a facility ... that was manufacturing imitation Apple laptops because it threatened local jobs ... A different arm of China's government scrapped plans for a raid on an electronics mall in the Guangdong province because it could have driven away shoppers, the cable says."

[1] http://www.macrumors.com/2011/08/30/apples-anti-counterfeiti...


F.lux is indispensable on Mac and PC (when I still had a PC.) Absolutely required if you code at all during evening/nighttime.

Unfortunately I couldn't get it to work* on my Ubuntu box and found another app, Redshift, that seems to jive better with Linux: http://jonls.dk/redshift/

-----

* Ran without errors, but didn't tint my screen. I chalked it up to oddities of video card drivers on Linux.


Would you mind sharing how you set this up? That would actually make a great blog post.


I'm afraid I'm too busy to blog at the moment, but the code is here: https://github.com/troelskn/fejlvarp


If you use the Google library [1], this becomes a bit more convenient that the built-in Java way:

   List<String> people = ImmutableList.of("Frank", "Mary", "Bob");
There's also ImmutableSet and many other goodies, to say the least. For instantiation of these generic types, you can do:

   List<String> people = Lists.newArrayList(); 
   Map<String,Integer> scores = Maps.newHashMap();
and so on.

[1] http://code.google.com/p/guava-libraries/


Since 1.5 you can use the `Arrays` built-in [1]:

    List<String> people = Arrays.asList("Frank", "Mary", "Bob");

[1] http://download.oracle.com/javase/1.5.0/docs/api/java/util/A...


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: