News for hackers. Stuff that matters.

martinp

Re:Refined Hacker News on Tuesday September 28, 2021 @03:49PM (#28686703)
https://github.com/darkreader/darkreader is great for this. Adds dark mode to any site.
Re:Debian 11 on Saturday August 14, 2021 @12:55PM (#28182137)
OpenJDK 17 is in Debian 11 as well [0]. A decision was made to include it before its official release since the release is so close (September). An updated package will be available when it's released.

From the release notes [1]:

Debian bullseye comes with an early access version of OpenJDK 17 (the next expected OpenJDK LTS version after OpenJDK 11), to avoid the rather tedious bootstrap process. The plan is for OpenJDK 17 to receive an update in bullseye to the final upstream release announced for October 2021, followed by security updates on a best effort basis, but users should not expect to see updates for every quarterly upstream security update.

[0] https://packages.debian.org/source/testing/openjdk-17

[1] https://www.debian.org/releases/bullseye/amd64/release-notes...

Re:Lisp as an alternative to Java (2000) on Wednesday April 07, 2021 @11:06AM (#26725992)
Records were introduced in Java 14 [1]. An immutable DTO, with minimal boilerplate, that still behaves a class. Example:

record Point(int x, int y) {}

[1] https://blogs.oracle.com/javamagazine/records-come-to-java

Re:Emacs 27.1 on Tuesday August 11, 2020 @11:56AM (#24121762)
There are multiple LSP clients though, there's lsp-mode [1] and eglot [2].

After trying out both, I prefer Eglot, mainly because I find it faster and less intrusive than lsp-mode. It also composes better with built-in packages, such as flymake . I use gopls and pyls as language servers.

1. https://github.com/emacs-lsp/lsp-mode

2. https://github.com/joaotavora/eglot

Syncthing is a great piece of software. I configured it on three of my machines in March and I've had zero issues since. In fact, it has worked so well that I don't even think about it.

One of the machines even runs an old version found in Debian stable repos, but there has been no issues syncing with machines running newer versions.

Only downside for me is that there's no iOS client.

Re:Living in a parking lot in Santa Barbara on Saturday December 23, 2017 @07:43PM (#15997220)
Norwegian here. 20 days a year is the legal minimum, while 25 days is the norm. I get 30 days a year while working for an American company, which is a bit ironic.
Not surprised by these bugs any more.

The sheer amount of bugs in High Sierra is ridiculous, with the exception of the root password bug, I've personally experienced the following bugs with my Thunderbolt display:

* In 10.13 or 10.13.1 the built-in web camera was broken. The video would freeze after a few seconds when attempting to use the camera in FaceTime. This was fixed in 10.13.2.

* In 10.13.2 USB audio devices connected to the TB display no longer work properly. After playing audio through the device (USB DAC in my case) for 30-60 seconds, some sort of interference/electrical noise appears for 5-10 seconds every minute or so. I assume this has something to with "Improves compatibility with certain third-party USB audio devices." from the 10.13.2 release notes.

This support article explains how to disable the root user: https://support.apple.com/en-us/HT204012
Re:Apple losing its supply chain mojo is a major threat on Monday October 23, 2017 @09:32AM (#15533032)
And this is likely the reason for the reportedly low sales of the 8. I was surprised when they announced both at the fall event as it seemed obvious the X would cannibalize sales of the 8.

The iPhone is already a expensive premium phone, why bother with incremental changes of the 8 when the cool and shiny X is right around the corner.

It's also strange to me how they offer two new phones with different feature sets. Usually when Apple introduces a new device with a controversial change (e.g. USB-C only on the 2016 MacBook Pro), they don't offer a updated device without that change. It can be perceived as a lack of faith in the new product.

Outside of general purpose libraries that are found in most software projects it's not based on any existing software. It's built from the ground up by Oath, and the companies that preceded it: Yahoo, FAST, Overture since early-mid 2000s.

This article has some more details about the history: https://www.cnbc.com/2017/09/26/yahoo-open-sources-vespa-for...

Disclamer: I work on the Vespa team in Trondheim, Norway.

The serving and admin/config layers are Java, while the content cluster is C++. Please see the architecture diagram on http://vespa.ai/.
Maybe this can be merged with the discussion from yesterday: https://news.ycombinator.com/item?id=15339851
Re:Java for beginners on Friday June 23, 2017 @09:30AM (#14619008)
Bad example. You can do this in Java 8: java.nio.file.Files.readAllLines(path) which returns List<String>.
Re:Two Executives to Leave Uber, Adding to Departures on Monday March 20, 2017 @09:50AM (#13914167)
Uber remains illegal in Norway as all taxi drivers need a permit granted by the government. The subject is under heavy debate though.
Re:They Used To Last 50 Years on Monday March 20, 2017 @08:12AM (#13913417)
Another anecdote: My sister took over my apartment late 2014. Some time in 2015, the dishwasher (Miele) stopped working. She called support to see if it could be repaired. When she provided them with the serial number she was told that the dishwasher was in fact manufactured in 1994.

It had lasted through 21 years of regular use, by multiple owners.

Re:Netflix Now Only Has 31 Movies from IMDB's Top 250 List on Wednesday October 12, 2016 @09:17AM (#12692491)
Pretty much the same ones are missing on Norwegian Netflix as well.
Re:MacOS Sierra on Tuesday September 20, 2016 @02:17PM (#12541852)
Ars Technica has written a detailed review [0], there's some things on the networking side related to IPv6 and ECN, but that's pretty much it. APFS preview is interesting, but not really stable/usable yet from what I understand.

[0] http://arstechnica.com/apple/2016/09/macos-10-12-sierra-the-...

Re:Apple cloud services outage on Friday June 03, 2016 @03:29AM (#11828883)
You should also read James Mickens' USENIX articles if you haven't: http://mickens.seas.harvard.edu/wisdom-james-mickens

The humour and tone is similar to the "Programming Sucks" article. I recommend starting with "The Night Watch".

This is not entirely accurate. The way these DNS services work is that they return a different IP address (one they control) for certain Netflix domains. Then they do TCP proxying between you and Netflix to get around the region restrictions.
Re:Problems with Systemd and Why I Like BSD Init on Friday December 25, 2015 @03:16AM (#10790722)
Previous discussion: https://news.ycombinator.com/item?id=10771100 (different URL, but looks like it's the same article)
Re:Retina Macbook 2015 Teardown on Friday April 17, 2015 @07:47AM (#9393654)
Even if Apple uses high quality components that fail less frequently, it's still computer hardware at the end of the day. Hardware fails, no matter how much QA you do, so #2 is never moot.

Experienced bad memory on a MBP Retina (late 2013) recently, it was purchased in December 2013. You can't swap out the memory because it's soldered to the motherboard, so the entire motherboard has to be ordered from Apple and replaced.

This wouldn't be so bad if you could easily move the SSD to a new Mac, but that's not an option either.

I always use go-flags [1] in my Go programs. It has support for GNU-style options, pretty help output, subcommands, automatic parsing of more complex arguments (e.g. time.Duration) among other things.

I do wish they would improve the included flags package though. There are lots of nice third party packages, but having a proper one in the standard library would've been better.

[1] https://github.com/jessevdk/go-flags

Re:Remote code execution in Asus router firmware on Monday January 12, 2015 @03:03PM (#8876081)
I haven't tried that one. I'm using asuswrt-merlin [0], which is another fork based on the official Asus sources.

It's very similar to the original firmware, but with a few extra bug fixes and features. Asus occasionally backports some of the bug fixes to the official firmware. The vulnerable feature has been disabled in the latest version. [1]

[0] https://github.com/RMerl/asuswrt-merlin

[1] http://forums.smallnetbuilder.com/showthread.php?t=21774

Re:A survey of the current state of Golang ORMs on Sunday October 05, 2014 @05:53AM (#8411887)
I've found that https://github.com/jmoiron/sqlx (mentioned in the slides) works very well for SQL and mapping values to structs in Go. It's not an ORM though. You still write plain parameterized SQL queries, but mapping results to structs is very elegant.

The mapping process is very similar to how other packages in Go work (e.g. encoding/json), so if you already know Go it feels very natural.

Older »