HNHacker News
TopNewBestAskShowJobs

jermo

1,301 karma · joined June 4, 2012

submissionscomments
jermo··on Chess Is in Chaos over Suspicion That a Player Cheated Against Magnus Carlsen
Chess is only in chaos because Carlsen did not provide any details and remains quiet. Hence all the speculation.
jermo··on Chess Is in Chaos over Suspicion That a Player Cheated Against Magnus Carlsen
In his full stream he went into more details (summary https://www.reddit.com/r/chess/comments/x7yzee/comment/inj3c...)

"non-technical example of people using signals when players leave the board (in the bathroom, over a balcony etc) and in technical ways suggests that certain earpieces could pass checks or potentially other small devices"

jermo··on Trader gets painted stones instead of $36M of copper
Works in MiniHack on iOS (unofficial)
jermo··on American Airlines confirms UFO contact over New Mexico on Sunday
That is a link to Chinese satellite launch mission. Would the booster even be noticeable in the US at aircraft altitude?
jermo··on Migrating old artifacts from JCenter to MavenCentral
A lot of projects publish to Central from cloud CIs. That means that private keys are stored in config/secrets. It is debatable whether that makes the artifacts more reliable since you have to trust the CI.
jermo··on Wren is a small, fast, class-based concurrent scripting language
Would like to start using Wren though issues like this put me off: "Stack corruption" https://github.com/wren-lang/wren/issues/761

Using older and more established languages seems less risky.

jermo··on Drugs that tamp down inflammation in the brain could slow cognitive decline
Matthew Walker's "Why We Sleep" Is Riddled with Scientific and Factual Errors https://guzey.com/books/why-we-sleep/
jermo··on GitHub Package Registry
There is in Gradle 5.1+ but not in Maven, afaik. They are using Maven in their examples, however.
jermo··on GitHub Package Registry
Seems like the Maven registry is susceptible to artifact hijacking.

Say I wan't to install artifacts from two GitHub users. I would have to add these two Maven repositories:

    - https://maven.pkg.github.com/USER1 
    - https://maven.pkg.github.com/USER2
In that case USER1 can publish an artifact with the same groupId/artifactId as USER2 and my Maven will happily install it without suspecting anything.

Another case - someone deletes their GH account and another user takes it: https://blog.sonatype.com/hijacking-of-a-known-github-id-go-...

Docs: https://help.github.com/en/articles/configuring-maven-for-us...

jermo··on GitHub Package Registry
Disagree about being the death of Maven Central - they are different beasts.

- Central has a global namespace of artifacts. com.google.guava is the same for everyone. This will probably stay the default of open-source libraries.

- GitHub Package Registry has a per-user maven repository, so a local namespace (https://maven.pkg.github.com/OWNER). This is likely to be used by companies internally.

In order to use GH Registry instead of Central, I would have to add a dozen maven repositories to my settings.xml. I doubt many developers will be up for that.

Docs: https://help.github.com/en/articles/configuring-maven-for-us...

jermo··on GitHub Package Registry
One of the easiest is jitpack.io which builds and publishes to its own Maven repository
jermo··on Show HN: JSON.equals in Java to compare two JSON's
Thought I'd share something I discovered about Json comparison. This simple line also works:

  return jsonObject1.toMap().equals(jsonObject2.equals);
because JsonObject uses HashMap internally which supports equals(). The downside is it would be slower because toMap() creates a copy.

Btw, downloaded java-commons as Maven dependency from JitPack: https://jitpack.io/#blobcity/java-commons

jermo··on Depends – the missing linker for the JVM
./gradlew dependencies will not tell you which versions play nice together.
jermo··on Ask HN: Java – looking for a persisten and embedded DB
If you don't need full SQL then you can use embedded key-value stores: - RocksDB - MapDB
jermo··on Kialo – a platform for rational debate
Have you considered adding Stack Exchange or Quora integration and then using reputation from those sources? Might help in avoiding bots/trolls
jermo··on Experian acquires London startup ClearScore for £275M
The article says it is a 2 year old startup but its more like 3-4. Incorporated in Sep 2014
jermo··on Truly immutable builds
I believe "reproducible build" is a more appropriate term.

Unfortunately its quite difficult to get a fully reproducible build with Maven as the post points out. Even if you manage to replicate the build environment and settings, Maven produced binaries will be slightly different on each run. File timestamps are saved in jar files so they change on every build.

jermo··on Truly immutable builds
It recommends using the Maven wrapper to fix Maven's version.
jermo··on Hazelcast 3.8.3
Presumably Kafka Streams KTables
jermo··on Java 8: New features in ConcurrentHashMap
I've found that Project Lombok solves this problem for me. Simply add a @Data or @Value annotation and it will generate getters/setters/hashCode/toString etc. https://projectlombok.org/features/Value.html
jermo··on Critical Oracle Java 7/8 patch for CVE-2016-0636 (remote code execution)
From Oracle Security Alert for CVE-2016-0636

  This vulnerability applies to Java deployments, typically in clients running 
  sandboxed Java Web Start applications or sandboxed Java 
  applets, that load and run untrusted code (e.g., code that 
  comes from the internet) and rely on the Java sandbox for 
  security. 

  This vulnerability does not apply to Java deployments, 
  typically in servers, that load and run only trusted code 
  (e.g., code installed by an administrator).

[1] http://www.oracle.com/technetwork/topics/security/alert-cve-...
jermo··on Kotlin 1.0 Released: Pragmatic Language for JVM and Android

  > I still missed something on top of Executors and CompletionStage.
You could use RxKotlin. It has Schedulers and Observables/Single/Completable for interacting with async tasks. https://github.com/ReactiveX/RxKotlin
jermo··on Kill Your Dependencies
The downside is that you bring in another layer of indirection and, as a result, greater cognitive load for yourself.

Mycode -> facade -> library

Navigating code becomes more cumbersome and stack traces longer. I do like this approach too but it isn't free.

jermo··on Show HN: Fieldbook: Lightweight Database with a Spreadsheet UI and a REST API
What if they offered a data export/backup option? Since the Api is there you could even write one yourself
jermo··on Rapidoid – No-Bullshit Web Framework for Java
Which is not that surprising since Vert.x is more than just a web framework. It also let's you build distributed applications and to scale your web app horizontally.
jermo··on Rapidoid – No-Bullshit Web Framework for Java
What's DSL JSON?
jermo··on Rapidoid – No-Bullshit Web Framework for Java
And there are others like Ratpack.io, Vert.x and JFry
jermo··on Eclipse Code Recommenders
Eclipse's usability depends a lot on what it use it for. It supports lots of languages, build tools and environments. All that is supported through plugins and the quality of those plugins determines your user experience. Without naming your use case your comment doesn't really help anyone.

I like IntelliJ but do prefer Eclipse and am quite happy with it's core functionality. It's when you install all kinds of extra plug-ins is when it's starts to become less usable. But I've heard similar things about Sublime and Atom.

jermo··on Notes on indexes and index-like structures
Oh wow

  > The latest example is my former clients at Tokutek, who just 
  > got sold to Percona in a presumably small deal — regrettably 
  > without having yet paid me all the money I’m owed.
jermo··on SQL interface for Elasticsearch
No joins.

I wonder why you wouldn't use PrestoDB to connect to Elastic Search. It provides you with an SQL engine and you just need to write a connector that knows how to get data.

Similar thing has been done in Crate.io.

Page 1 of 3Next →