News for hackers. Stuff that matters.

scorchin

The patches to the Kernel are in review and can be seen here: https://patchwork.kernel.org/project/linux-input/patch/20201...
Congrats on launching!

Are you able to share further technical details on what you've had to do to get the speed gains you're describing?

For other mitigations to climate change, see Project Drawdown: https://www.drawdown.org/
As a client I've been happily using https://www.irccloud.com/ for the last few years. Does what I need: decent mobile and web client.
Re:First Open Banking API Sandbox in the UK on Thursday February 18, 2016 @02:34PM (#11128608)
I've played with Teller and it's nothing short of incredible. The developer on boarding is super slick.
Re:A Sinatra-inspired micro web framework for Java on Thursday September 12, 2013 @06:19AM (#6373183)
There's also webbit-rest: https://github.com/webbit/webbit-rest
Re:The Socratic Method: Teaching by Asking Instead of by Telling on Saturday February 11, 2012 @05:12AM (#3578981)
Here's the previous submission: http://news.ycombinator.com/item?id=2446316
Re:Java collections framework for newbies on Friday December 09, 2011 @09:04AM (#3333697)
There are a number of people I know who have never touched Java and are being exposed to the eco-system through languages like Clojure and Scala and this kind of overview may be useful to them.

However, I agree that it's not worthy to be on the front-page of HN.

Re:Java collections framework for newbies on Friday December 09, 2011 @08:57AM (#3333672)
As of Java 1.5, generics were added. Before generics you had to cast every object you read from a collection. If someone accidentally inserted an object of the wrong type — possible in the OP's example code — casts could fail at runtime.

With generics, you tell the compiler what types of objects are permitted in each collection. The compiler inserts casts for you automatically and tells you at compile time if you try to insert an object of the wrong type. This results in programs that are both safer and clearer. So please use generics when using the collections framework.

I'm now going to briefly run through the examples provided in OP's post and update them accordingly.

  List<String> myList = new ArrayList<String>();
  myList.add("Second Thing");
  myList.add("Second Thing");
  myList.add("First Thing");
Note that I've used the interface form of List over a specialised type. This is so that any caller of a method which returns a collection can use the interface provided and they don't need to worry about the specific data structures you've used. This also means that you can update the underlying data structure without having to update any calling code. E.g. changing the above case from ArrayList to LinkedList.

  Set<String> mySet = new HashSet<String>();
  mySet.add("Second Thing");
  mySet.add("Second Thing");
  mySet.add("First Thing");
It is worth noting that Hashtable was not originally part of the Collections framework. It was retrofitted to conform to the Map interface in 1.2. You should instead use HashMap, which is the non-synchronized (sic) version of Hashtable. Although you can just as easily use Hashtable, the below example is just me being a little OCD.

  Map<String, String> myMap = new HashMap<String, String>();
  myMap.put("a", "Second Thing");
  myMap.put("b", "Second Thing");
  myMap.put("c", "First Thing");
EDIT: Updated some sections to read clearer.
Re:The Modern Java Ecosystem (for the Sinatra or web.py lover) on Friday December 02, 2011 @12:41PM (#3304841)
For those looking for something more like Sinatra in Java, check out webbit: https://github.com/joewalnes/webbit

Here's an example of a simple Websocket chat server: https://gist.github.com/1421652

Disclaimer: It's an open source project that I have some commits to

Re:Firefox – tons of tools for web developers on Monday November 28, 2011 @06:53AM (#3285507)
Not sure about currently, but the (old) lead developer of FireBug left to join the Chrome team earlier this year[1]

[1] http://news.cnet.com/8301-30685_3-20080338-264/firefox-world...

Re:Ask HN: Why don't more UK graduates want to join start-ups? on Wednesday October 26, 2011 @07:19AM (#3158070)
> Our goal was that all the start-up booths would be staffed by developers at the start-ups, so you'd be able to find out what the culture and experience of their start-up was like, directly.

Yes, but not as much as I'd like to. I found it far too easy to get stuck in a slow-moving crowd or just wait in a queue to talk.

In the end I just stayed by the bar near the bar staff and talked to developers as they went to grab a beer. It seemed to work better and the devs were far more relaxed talking with a beer in hand. Same goes for outside when they went to grab a cigarette.

Re:Ask HN: Why don't more UK graduates want to join start-ups? on Wednesday October 26, 2011 @07:02AM (#3158033)
I'm a recent graduate and I attended the previous milkroundabout.

Let me start by saying that I've always hated recruitment fairs — you're treated like cattle and rarely get to speak to companies (read: HR departments) properly. I found it to be a similar situation with the milkroundabout event only instead of HR departments it was founders and developers.

I don't agree with "selling the brand" of milkroundabout as it will easily be confused with similarly named events/sites/companies. Instead aim to do guest lectures at universities on topics that are bound to get students interested.

If you're the ones with interesting work, why aren't you talking about what you do? Students already get told that they are under prepared for what working life is like and you can expose them to what you've done. You could easily compare this to what life was like at <insert safe boring company> before. If you're so inclined.

Pick topics that are interesting to the students that you want to attract. Then go on a tangent about start-ups, the culture, and the experience. If you show students what it's like to be in a start-up, they'll get involved and tell their friends.

In summary, sell them a better lifestyle than the usual suspects.

This is pretty cool, but my first thought after seeing this would be how easy it would make credit card fraud.

Thieves wouldn't need to provide a new address anymore, just one of these lockers and go pick it up.

On Aidan's own article[1], you can see that he's referenced work that's guided him in making this breakthrough. Hidden in the bibliography is a Dr Suess children's book!

Geisel, Theodor Seuss (Dr. Seuss). The Lorax. New York: Random House Publishers, 1971.

[1] http://www.amnh.org/nationalcenter/youngnaturalistawards/201...

Re:All that is wrong with the Recruitment Industry on Wednesday July 27, 2011 @12:31PM (#2812871)
The worst edited my CV before sending it to companies without telling me first

This is what happened to me when I first graduated from University. I showed up to my first job interview and they started asking me questions about my 4 years experience with Oracle and 6 years experience working on an open-source project that was critical to their business.

It left me shocked, depressed and seriously wondering if this is what it takes to get a job after graduating.

Luckily I had some other interviews at companies that I organised myself. Things went a little more smoothly.

Older »