Better HN
topnewbestaskshowjobs
Log inSign up

desertlounger

16 karma · joined Jun 9, 2020 (6y ago) · 15 submissions

Submissions

comment 2y ago · link · parent

Classic!

comment 2y ago · link · parent

How does a constellation become "obsolete"?

comment 3y ago · link · parent

FWIW, javascript:// bookmarklets don't work on the standard Chrome home / new tab page, but data URL bookmarklets work everywhere. Here's my bookmarklet for Day Of Year...

data:text/html,<script>now=new Date();alert(`Today is DOY ${1+Math.floor((now.getTime()-new Date(now.getFullYear(),0,1).getTime())/8.64E7)}`);</script>

comment 3y ago · link · parent

The reference is to a previous licensing change, which made it less free, with Oracle shaking down groups using the Oracle JDK. They've changed their terms before and could do so again with future releases.

comment 3y ago · link · parent

src/main/java is a convention that started with Maven; it's simple to change in the project build file (pom.xml). Otherwise, it's due to the fact that a package namespace in Java must correspond to a directory tree.

comment 3y ago · link · parent

lossless? large sizes? multi-band (> 3) data? transparency? animation? I work in software support of scientific imaging, and jpeg-xl looks to be the only format to date that supports those features in addition to excellent compression and royalty-free licenses (we currently use jpeg-2000 which has no good/fast open-source implementation, we really on an expensive proprietary license with lots of restrictions on redistribution, in fact our industry is largely moving back to TIFF now with the storage factors you mentioned, but using 10x the disk space is non-trivial).

comment 3y ago · link · parent

Yes. And with "records" (record classes, something with the characteristics of a tuple or struct) you can get further away from getter/setter boilerplate code.

comment 3y ago · link · parent

AFAIK Java was GPL'd by Sun (before the Oracle purchase). This resulted in the OpenJDK, which is the basis for all distributions of Java. Oracle is a big contributor to the development, but so are many others. You can get a pure OpenJDK or any of a number of branded JDKs like those from Eclipse, BellSoft, etc. You can get non-free distributions with support too. A sticking point for a number of years was the TCK (Technology Compatability Kit) used to validate Java, but that too was GPL'd. Java has evolved quite a bit since being open sourced. IMHO C# has some great features, but Java is great for certain things. For instance, making native apps for Mac, Win, and Linux based on modular libraries from the JDK is now fairly easy (and with a modern UI using the OpenJFX framework).

comment 4y ago · link · parent

Can't help but think that both would look a lot better w/ text-align: justify on paragraphs.

comment 4y ago · link · parent

And if you write "polyglot" html (html written as syntactically correct xml) then you can use xpath or other tools to extract data from it (i.e. from tables).

comment 6y ago · link · parent

I always thought it is because our eyes are arranged horizontally and not vertically...

comment 6y ago · link · parent

I write a lot of Java, and like checked exceptions. The problem is rather the opposite, basically all of the concrete exception classes that you might think to use (e.g. IllegalArgumentException) are unchecked!

comment 6y ago · link · parent

Since Java 8, there are two ways to build a binary: the javapackager tool, and the Ant JavaFX tasks (with the OpenJDK, install the openjfx package). It'll include the JRE [~50MB], and there are pros and cons with that obviously.