News for hackers. Stuff that matters.

jermo

Chess is only in chaos because Carlsen did not provide any details and remains quiet. Hence all the speculation.
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"

Re:Trader gets painted stones instead of $36M of copper on Sunday March 14, 2021 @04:04AM (#26453557)
Works in MiniHack on iOS (unofficial)
That is a link to Chinese satellite launch mission. Would the booster even be noticeable in the US at aircraft altitude?
Re:Migrating old artifacts from JCenter to MavenCentral on Thursday February 11, 2021 @07:38AM (#26100819)
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.
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.

Matthew Walker's "Why We Sleep" Is Riddled with Scientific and Factual Errors https://guzey.com/books/why-we-sleep/
Re:GitHub Package Registry on Saturday May 11, 2019 @08:50AM (#19885896)
There is in Gradle 5.1+ but not in Maven, afaik. They are using Maven in their examples, however.
Re:GitHub Package Registry on Saturday May 11, 2019 @08:17AM (#19885774)
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...

Re:GitHub Package Registry on Saturday May 11, 2019 @08:09AM (#19885758)
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...

Re:GitHub Package Registry on Saturday May 11, 2019 @04:34AM (#19885224)
One of the easiest is jitpack.io which builds and publishes to its own Maven repository
Re:Show HN: JSON.equals in Java to compare two JSON's on Monday December 10, 2018 @08:03AM (#18647565)
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

Re:Depends – the missing linker for the JVM on Monday November 05, 2018 @06:59AM (#18381619)
./gradlew dependencies will not tell you which versions play nice together.
Re:Ask HN: Java – looking for a persisten and embedded DB on Friday September 14, 2018 @07:06AM (#17986259)
If you don't need full SQL then you can use embedded key-value stores: - RocksDB - MapDB
Re:Kialo – a platform for rational debate on Monday July 09, 2018 @04:23AM (#17488725)
Have you considered adding Stack Exchange or Quora integration and then using reputation from those sources? Might help in avoiding bots/trolls
Re:Experian acquires London startup ClearScore for £275M on Thursday March 15, 2018 @07:31AM (#16591868)
The article says it is a 2 year old startup but its more like 3-4. Incorporated in Sep 2014
Re:Truly immutable builds on Monday October 09, 2017 @02:55AM (#15431988)
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.

Re:Truly immutable builds on Monday October 09, 2017 @02:42AM (#15431944)
It recommends using the Maven wrapper to fix Maven's version.
Re:Hazelcast 3.8.3 on Saturday October 07, 2017 @02:41AM (#15422590)
Presumably Kafka Streams KTables
Re:Java 8: New features in ConcurrentHashMap on Thursday January 19, 2017 @10:20AM (#13436412)
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
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-...

  > 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
Re:Kill Your Dependencies on Thursday February 11, 2016 @01:56PM (#11082177)
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.

Older »