Better HN
topnewbestaskshowjobs
Log inSign up

martinp

957 karma · joined Jun 28, 2009 (17y ago) · 145 submissions

Software engineer in Trondheim, Norway.

https://github.com/mpolden

Submissions

comment 1y ago · link · parent

I put my personal site behind Cloudflare last year specifically to combat AI bots. It's very effective, but I hate that the web has devolved to a state where using a service like Cloudflare is practically no longer optional.

comment 5y ago · link · parent

https://github.com/darkreader/darkreader is great for this. Adds dark mode to any site.

comment 5y ago · link · parent

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...

comment 5y ago · link · parent

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

comment 6y ago · link · parent

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

comment 8y ago · link · parent

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.

7.

Introducing TensorFlow support in Vespa(blog.vespa.ai ↗)

7 points · by martinp · 8y ago · discuss

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

This support article explains how to disable the root user: https://support.apple.com/en-us/HT204012

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

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.

comment 9y ago · link · parent

The serving and admin/config layers are Java, while the content cluster is C++. Please see the architecture diagram on http://vespa.ai/.

comment 9y ago · link · parent

Maybe this can be merged with the discussion from yesterday: https://news.ycombinator.com/item?id=15339851

15.

Open Sourcing Vespa, Yahoo’s Big Data Processing and Serving Engine(blog.vespa.ai ↗)

66 points · by martinp · 9y ago · 5 comments

comment 9y ago · link · parent

Bad example. You can do this in Java 8: java.nio.file.Files.readAllLines(path) which returns List<String>.

comment 9y ago · link · parent

Uber remains illegal in Norway as all taxi drivers need a permit granted by the government. The subject is under heavy debate though.
12345