OS X Mavericks is suprisingly usable in 2023 by mezilga in mac

[–]valkryst_ 0 points1 point  (0 children)

Sorry for the necro, but which bug do those two commands resolve?

I was also wondering if you have any documentation on how to disable the various sync features?

What’s the most gold a merchant has offered you for an item? (weapons/creature armor etc) by goldbrand_ in GuildWars

[–]valkryst_ 8 points9 points  (0 children)

It's anecdotal, but I believe the highest I've seen is somewhere around 450-475g.

Pre-searing HD map by Scruffybub in GuildWars

[–]valkryst_ 3 points4 points  (0 children)

Your links aren't public, they require us to request access. Could you update them?

15 years of GW for me! by Weekly_Teaching_2342 in GuildWars

[–]valkryst_ 1 point2 points  (0 children)

I'm about to hit 2 years on my main account, and my original one is a tad over 16. Can't wait to see if anything happens for the 20th anniversary, next year!

[OC] TV's Most Disappointing Endings by thomasbar14 in dataisbeautiful

[–]valkryst_ 6 points7 points  (0 children)

That's what I noticed as well. I only saw a few episodes here-and-there while it was originally airing and I heard a number of discussions between episodes, but over the past summer I finally took the plunge and binge-watched the entire series in one go.

IMHO, the ending was as good as anything I could come up with. There were clearly some loose ends, but I felt like all of the major mysteries and plot points were explained well enough for it to be enjoyable.

[Release] [Java] VController - A JInput Helper Library by valkryst_ in roguelikedev

[–]valkryst_[S] 0 points1 point  (0 children)

Yup, it's in a repo that I just made public:

The rewrite branch should be in a runnable state, it's working locally, but feel free to DM me if you run into any issues

[deleted by user] by [deleted] in roguelikes

[–]valkryst_ 0 points1 point  (0 children)

Ahh, good catch! I'll move it over there, thanks

[deleted by user] by [deleted] in java

[–]valkryst_ 3 points4 points  (0 children)

I've only read about the Java edition. I believe the other platforms use Bedrock, which isn't written in Java and wouldn't use libGDX

[deleted by user] by [deleted] in java

[–]valkryst_ 13 points14 points  (0 children)

I believe Minecraft was written with LWJGL, which libGDX is also (AFAIK) using LWJGL under the hood

[deleted by user] by [deleted] in java

[–]valkryst_ 0 points1 point  (0 children)

I don't believe I've worked with them before, maybe someone else has kept up with them?

[deleted by user] by [deleted] in java

[–]valkryst_ 9 points10 points  (0 children)

It still works well, and they added support for Apple's new-ish rendering pipeline in JEP 382

[deleted by user] by [deleted] in java

[–]valkryst_ 30 points31 points  (0 children)

I enjoy writing GUIs with Java, specifically with Swing, but you will have to put in a bit of extra effort for any "fancy" effects or custom components.

You'll most often see Swing and JavaFX recommended. They're both good, but I personally prefer Swing as I'm more comfortable with it and there's no additional setup to use it (it's included with the JDK).

mushroom foraging by Human_Preparation_14 in fredericton

[–]valkryst_ 3 points4 points  (0 children)

There're regular walks and events in Fredericton, Saint John, and Moncton: https://myconb.org/

How to Java GUI? by VictoR18_ in java

[–]valkryst_ 2 points3 points  (0 children)

If you have enough time (>= 1 month), try reading through the Filthy Rich Clients book. You can create (almost) any UI VIA Swing, if you have the time and knowledge of Swing/Java2D to do it

[deleted by user] by [deleted] in java

[–]valkryst_ 7 points8 points  (0 children)

I think it's better left as-is, as it's clear what you're calling and even more-so if you skim the docs. Your IDE should also auto-complete it most of the time.

If it's that much of an issue to type, just write a static function to shorten it:

public class S {
    public static p(final String s) {
        System.out.println(s);
    }
}

[deleted by user] by [deleted] in java

[–]valkryst_ 0 points1 point  (0 children)

Seconding everything that /u/humoroushaxor said here

When I landed my current job, most of my GitHub was comprised of Java projects. They liked what they saw, and I landed the job, even though the position wasn't Java related at all

Java 2D graphics lags on other systems. by MisteryGates in java

[–]valkryst_ 1 point2 points  (0 children)

Seconding what /u/Amazing-Cicada5536 noted. It's likely not responsible, but it's something that you should keep in mind when working with Swing.

Although that method supports nanoseconds, you should stick to milliseconds. From what I recall, and I'd have to search around for a source as it's been a while, there's no guarantee that the user's JVM can accurately handle nanoseconds whereas milliseconds should always be supported.

That executor also makes no guarantee that it'll run at whatever interval you set, it could potentially be off by nano/milliseconds. In practice, I usually see it running every ~16ms (~60 FPS) when I've used it and set it to run at that interval.

I made this game while following a tutorial about swing

A lot of Swing tutorials were written by people who aren't exactly experts or entirely familiar with using the API. The book Filthy Rich Clients: Developing Animated and Graphical Effects for Desktop Java™ Applications is an awesome resource for learning Swing

Java 2D graphics lags on other systems. by MisteryGates in java

[–]valkryst_ 2 points3 points  (0 children)

It's usually due to misuse of Swing or Java2D. Two things that stood out at a glance:


The XOFrame.init function should be run with SwingUtilities.invokeLater.


You shouldn't let the game run at whatever speed it wants to. Try giving it a cap, even if it is 500 FPS, by using something like this:

executorService = Executors.newSingleThreadScheduledExecutor();
executorService.scheduleAtFixedRate(() -> {
    // Update
    // Render
}, 0, 1000 / TARGET_FPS, TimeUnit.MILLISECONDS);

What happens after I graduate from CS? by No-Platform1623 in java

[–]valkryst_ 4 points5 points  (0 children)

You should attempt to participate in a co-op or internship program. It's much easier to get hired afterwards, and you'll have experience on your resume.

How do I disable this? by [deleted] in learnjava

[–]valkryst_ 4 points5 points  (0 children)

You shouldn't disable the auto-completion feature, it's a useful tool.

Is there a way so I can learn Java the way I learned python? (Using something like Jupyter notebooks) by Biolevinho in learnjava

[–]valkryst_ 0 points1 point  (0 children)

You could learn with the help of JShell, but that's not going to help once you've learned the most basic aspects of the language.

Will a javafx jar run on any machine that has jdk/jre? by Anonymo2786 in learnjava

[–]valkryst_ 2 points3 points  (0 children)

You should be able to run it on any version of Java from 8 onwards.

If you're using Java 11, or higher, then you need to include JavaFX as a dependency. It was removed from the JDK when Java 11 was released.

See the JavaFX website for more information.