desertlounger
Re:How to center a div in CSS
on Tuesday February 13, 2024 @03:17PM (#39362308)
Classic!
Re:2024 Quadrantid meteor shower to peak January 3-4
on Sunday December 24, 2023 @02:41PM (#38756126)
How does a constellation become "obsolete"?
Re:Wait, What's a Bookmarklet?
on Wednesday October 25, 2023 @04:03PM (#38017571)
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>
Re:JDK 21 Release Notes
on Tuesday September 19, 2023 @01:18PM (#37573115)
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.
Re:Features of Project Loom incorporated in JDK 21
on Tuesday August 15, 2023 @01:18PM (#37136627)
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.
Re:Chromium JPEG XL just changed to “Untriaged” for evaluation
on Monday August 07, 2023 @12:38PM (#37036861)
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).
Re:Java 20 / JDK 20: General Availability
on Tuesday March 21, 2023 @01:01PM (#35249071)
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.
Re:Java 20 / JDK 20: General Availability
on Tuesday March 21, 2023 @12:58PM (#35249033)
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).
Re:58 bytes of CSS to look great nearly everywhere
on Sunday September 25, 2022 @10:13PM (#32978566)
Can't help but think that both would look a lot better w/ text-align: justify on paragraphs.
Re:Plain text, with lines
on Monday June 06, 2022 @06:18PM (#31647119)
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).
Re:Why Do Mirrors Flip Things Horizontally but Not Vertically? Here's ...
on Wednesday October 07, 2020 @01:57PM (#24710841)
I always thought it is because our eyes are arranged horizontally and not vertically...
Re:Checked exceptions: Java’s biggest mistake (2014)
on Friday September 11, 2020 @05:31PM (#24447534)
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!
Re:Performance of modern Java on data-heavy workloads
on Tuesday June 09, 2020 @04:12PM (#23470359)
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.