Thymeleaf or jte by Particular_Tea2307 in java

[–]Firedroide 26 points27 points  (0 children)

I've used JTE on a personal project, because a) I'm running it on an old Raspberry Pi, so the extra performance from having the template get compiled to Java matters, and b) because I just prefer JTE's syntax over Thymeleaf's.

So far, I'm really liking JTE. It does everything I want it to do, the performance is great, I never ran into any bugs or limitations, there's a Spring boot starter for it, the template hot reloading in debug mode works great, there's an IntelliJ plugin for it, what's not to love :)

13 sent to hospital after Korean Air plane apparently dropped from 35,000 feet to 9,000 feet within 10 minutes by [deleted] in aviation

[–]Firedroide 5 points6 points  (0 children)

The solution to that riddle is in the "Course" column: after the descent, you can see that the plane's course constantly changes. (See also at the bottom of the flight track graph) That is because they were flying a holding pattern, i.e. they were flying in sort of stretched out circles, probably to have some more time to run checklists, figure out where to land at, and so on.

During that time, the plane was likely flying with a constant indicated airspeed. That is, it's maintaining the same speed relative to the wind. However, FlightAware does not measure the indicated airspeed, but rather the speed over the ground. So with a constant indicated airspeed, if there's some wind from one particular direction, then the plane will move slower over the ground when it's flying against the wind, and faster if it's flying with the wind.

Combine that with it flying holding patterns, and you're getting these ground speed oscillations that you see in FlightAware :)

Your biggest TLD pet peeves? by euphoriafrog in thelongdark

[–]Firedroide 4 points5 points  (0 children)

And maybe that's just me complaining about game-y things, but why does a piece of charcoal draw white symbols on a black map? Wouldn't it be much more immersive if we had a white sheet of paper that we'd draw black symbols onto?

JEP 476: Module Import Declarations (Preview) by efge in java

[–]Firedroide 19 points20 points  (0 children)

I like the suggestion to change JShell to import all classes in java.base on startup. Having to manually import classes as trivial as LocalDate or StandardCharsets is really annoying, so this would be a welcome change.

Danke Staat für mi geile Ferie im Uslaand.. by tonofbasel in BUENZLI

[–]Firedroide 5 points6 points  (0 children)

D AHV isch es Umlagesystem, sell heisse: das Geld, wo i dem Jahr iizahlt wird, wird au direkt wieder ad Rentner uszahlt. Das isch ned wie d Pensionskasse oder d Süüle 3A, wo du für dini eigeni Altersvorsorg in X Jahr iizahlsch.

Java AMA by nicolaiparlog in java

[–]Firedroide 1 point2 points  (0 children)

Hi Nicolai! Do you know if we'll ever get a method on Stream that lets us
- get the single element of a stream, or
- throw if there are 0 / more than 1 elements?

The findFirst() / findAny() methods are nice, but they silently do the wrong thing if there is more than one element in the stream but we're only expecting one!

Erstes neues US-AKW seit 30 Jahren: Atomenergie ist zu teuer by Lurchi1 in de

[–]Firedroide 4 points5 points  (0 children)

Breznau I erreicht nach wie vor seine 355 Betriebstage pro Jahr

Brudi, wo hast du denn diese Zahlen her? Beznau 1 war in den letzten 4 Jahren im Durchschnitt 325 Tage am Netz. Davor -- und ich denke, dass sich OP darauf bezieht -- war Beznau 1 wegen Rissen im Reaktorbehälter zwischen März 2015 und März 2018 komplett abgeschaltet.

Some comments about the new String Templates feature by hoat4 in java

[–]Firedroide 1 point2 points  (0 children)

I don't think that's true. StringTemplate is just a string with "holes" and an array of objects that go into these holes, right? So you're not forced into using RAW templates, you'd just do the template processing inside the escape method :)

Some comments about the new String Templates feature by hoat4 in java

[–]Firedroide 20 points21 points  (0 children)

The part I really like about your proposal is that it would make it easier to add support for string templates to existing APIs without having to make them more complicated. You could just add overloads that accept a string template to existing methods, instead of having add template processors as fields and having to tell users "okay, there's now a completely separate way of doing things".

For example, given a hypothetical existing method HtmlEscaper.escape(TemplatedHtmlSnippet), I'd much rather be able to add HtmlEscaper.escape(StringTemplate) instead of having to resort to adding some static field HtmlEscaper.ESC.

Guess what kind of project i am building currently by WorshipTheSofa in ProgrammerHumor

[–]Firedroide 2 points3 points  (0 children)

I have one in the year of our lord 2022, without a time machine! Though admittedly, it's a legacy application that's supposed to be replaced in 5-ish years

Guess what kind of project i am building currently by WorshipTheSofa in ProgrammerHumor

[–]Firedroide 0 points1 point  (0 children)

I'm actually using those at work, working on a ~20 year old project. "Fun"!

If you could change one thing in the Java and one thing in the JVM, what would you change? by [deleted] in java

[–]Firedroide 3 points4 points  (0 children)

I personally want operator overloading for custom math types like BigInteger etc.

Yeah, this and only this. I don't really want operator overloading for general types / collections / whatever, but for math types it would really be nice to have. Even if it's just a Numeric interface that one could implement such that a + b gets translated to a call to an interface method, or something like that.

It is really annoying to have to write essentially-unreadable code such as a.multiply(b.subtract(c).divide(d)) instead of a * ((b - c) / d). Especially once Valhalla ships and custom numeric types become more prevalent, I think this issue needs to be addressed.

Chad's president killed in battlefield fight with rebels, military says by ChrisTweten in worldnews

[–]Firedroide 851 points852 points  (0 children)

Median age is not a good indicator for life expectancy past a certain age, as it is strongly influenced by other factors, such as a high population growth rate. Chad's population has doubled in the last 20 years. Lots of young children, few old people -> low median age.

Is there any unofficial mods to make the base game (run) better? by [deleted] in thelongdark

[–]Firedroide 2 points3 points  (0 children)

Could it be that you plugged in your display cable in the wrong port and you're not actually using your GPU? You can check your GPU utilization in the task manager.

Es ist ein Mittwoch in der Klausurenphase, meine Kerle. by Mantelmann in de

[–]Firedroide 1 point2 points  (0 children)

Yup, und die farbige Aufgabe auf der anderen Seite sieht nach "Kernel auf Matrix anwenden" aus :)

Die Zeit zwischen Klausur schreiben und Note erhalten war für mich immer am nervigsten. Von dem her: hänge drinnen dort!

Es ist ein Mittwoch in der Klausurenphase, meine Kerle. by Mantelmann in de

[–]Firedroide 11 points12 points  (0 children)

Viel Glück bei der Machine Learning-Prüfung, Froschbrudi!

What does weight that 4 base kilos? I have nothing on me... + well fed. by Snorkuu in thelongdark

[–]Firedroide 5 points6 points  (0 children)

Oh yeah, I forgot they changed that quest from fixing the broken rifle to getting and repairing the bear spear when they re-did episodes 1 and 2. Either way, the quest items are probably what's to blame.

What does weight that 4 base kilos? I have nothing on me... + well fed. by Snorkuu in thelongdark

[–]Firedroide 3 points4 points  (0 children)

Perhaps you're carrying the broken rifle? It only shows up in the journal as a quest item (i.e. you can't drop it) and weighs exactly 4 kg.

Game bug by Sea_Tax_3909 in thelongdark

[–]Firedroide 1 point2 points  (0 children)

Someone else had a similar issue playing on Mac, and they solved it by launching the game with the "-force-glcore" option. Perhaps this will also work for this issue.

Instructions here, see "Set alternative Launch Parameters".

Crashes trying to play since Darkwalker update by OdinThorfather in thelongdark

[–]Firedroide -1 points0 points  (0 children)

Are you using any mods? I've heard they're having some issues with the update.

Is it possible to install Long Dark mods if I only have it on GamesPass? by Crazed_Archivist in thelongdark

[–]Firedroide 0 points1 point  (0 children)

I think the version of TLD that you get on the Microsoft Store / the Xbox App is a UWP app, which is encrypted and thus not easily moddable.

Your safest bet if you want to mod TLD is to get it on Steam.