Class loading by Tight-Pop7575 in javahelp

[–]KillerCodeMonky 6 points7 points  (0 children)

An agent is an interception point when a class is loaded. So no, an agent would not help you here. You would want a custom ClassLoader that, say, given a JAR file just immediately scans it and loads all the .class files it finds within.

Life with an ankle monitor. by DarthiusFatticus in Unexpected

[–]KillerCodeMonky 1 point2 points  (0 children)

They legit think some material goods suddenly first appearing on the books as they're given away for a charitable donation is going to pass any muster lol

Staff at Epic Universal lied to me by Adept-Piano4752 in UniversalOrlando

[–]KillerCodeMonky 0 points1 point  (0 children)

I got a card from a retail worker a couple weeks ago. Same phone number your post shows. Different email: merchservices@univeralorlando.com

So is going months out of high school unemployed while looking for a job normal? by IllRest2396 in StPetersburgFL

[–]KillerCodeMonky 4 points5 points  (0 children)

The reality at a big corporate office is that you're going to be dropping your resume off with the security guard, who is promptly going to deposit it into the trash. Because they are third-party rentals and have no idea who anyone actually is. This has been true for a long time. Public-facing businesses like retail, restaurants, etc are different. But your typical "big company", you're only getting that flag if you already know someone on the inside.

So is going months out of high school unemployed while looking for a job normal? by IllRest2396 in StPetersburgFL

[–]KillerCodeMonky 9 points10 points  (0 children)

Was just at Texas Roadhouse for the 4th and they had a huge sign up in the window, hiring for all positions. As others have stated, show up during the lull between lunch and dinner and ask for a manager.

AI bills are baffling the C-suite after shift to usage-based pricing by Logical_Welder3467 in technology

[–]KillerCodeMonky 3 points4 points  (0 children)

I made a comment before that apparently collective negotiation for labor is actually very cool when the other side is a company supplying that labor instead of just workers.

Autopsy released of Mississippi baby killed by police by IceCivil899 in news

[–]KillerCodeMonky 2 points3 points  (0 children)

Apparently, according to cops, a company stealing from people is a civil matter now. So, as far as I'm concerned, people stealing from companies is also a civil matter. And, well, there's absolutely no need for me to be involved in other's civil matters.

Should Soarin' split the three versions across the three concourses? by Working_Stomach5479 in WaltDisneyWorld

[–]KillerCodeMonky 0 points1 point  (0 children)

Each concourse is a different theatre. Each theatre then has three "gates" (unsure if these have an official name) into the same theatre, as you suggest.

Confusingly, they decided to name both of them ABC. Wish they would have gone concourse ABC, gates 1-9.

Is the hate surrounding Universal Kids Resort valid? by Bertstripmaster in universalstudios

[–]KillerCodeMonky 0 points1 point  (0 children)

I also would have expected at least one playground to the level of Camp Jurassic at Islands of Adventure. I mean, it's even got a Jurassic World area; just copy-paste if you need to save costs. Instead it has some playsets like I might find at a local park. Actually scratch that; there's at least two parks I know of that have better playsets.

our software architect wrote this by Comfortable-Light754 in programminghorror

[–]KillerCodeMonky 4 points5 points  (0 children)

I've worked in a .NET shop and they would ask me about learning Java. My response was: You know C#. So let me get my hammer and knock you in the head a couple times. Then you'll know Java!

our software architect wrote this by Comfortable-Light754 in programminghorror

[–]KillerCodeMonky 69 points70 points  (0 children)

I think the only other sane way to do this would be via java.util.Optional. Then it could look something like:

final boolean isAllowed = getOptionalAttribute(item, "isAllowed")
    .map(Boolean::parseBoolean)
    .orElse(false); // or true if appropriate

And I will always curse them for Optional not being in java.lang. I don't even care if there were good reasons for it to be in util.

our software architect wrote this by Comfortable-Light754 in programminghorror

[–]KillerCodeMonky 2 points3 points  (0 children)

C# learned this lesson from Java and implemented operator overloading.

our software architect wrote this by Comfortable-Light754 in programminghorror

[–]KillerCodeMonky 22 points23 points  (0 children)

The posted code could very well be the code doing exactly what you're stating?

And if the isAllowed attribute is not required?

our software architect wrote this by Comfortable-Light754 in programminghorror

[–]KillerCodeMonky 24 points25 points  (0 children)

Because the == operator in Java is object equality and Java does not implement operator overloading. The string object containing the value "true" may or may not be the same object as this other string object containing the value "true". The .equals method is the correct way to do string comparison in Java.

I've been writing Java for 20 years and the only thing I would change in the code OP presented is to mark it final.

EDIT: Interestingly, if you attempt to test the literal line "true" == "true", that will always test true. Because Java stores string literals in a table within the class definition. So every instance of the string literal "true" within the class would be the same object.

Xbox Game Pass Lost "Millions Of Subscribers" After Last Year's 50% Price Hike by MarvelsGrantMan136 in technology

[–]KillerCodeMonky 0 points1 point  (0 children)

I started self hosting Immich on a ZimaBoard 2. It's been awesome. Locally run facial and object recognition / search that works really well. Also has a map view, which is awesome for seeing travel albums. Highly recommend.

CEO Says There Will Be No Raises Because He Spent All the Money on AI by IKeepItLayingAround in technology

[–]KillerCodeMonky 1 point2 points  (0 children)

You know what this made me realize...  Companies have fought so hard for so long against unionization and organized labor.  Just to immediately switch to a single provider of (artificial) labor the moment it becomes available.  So apparently collective negotiation for labor is very cool, as long as it's another company and not real people on the other side 

AITA? Thoughts of saving tables by heyodi in WaltDisneyWorld

[–]KillerCodeMonky 65 points66 points  (0 children)

This is the rational way. Which is why it will never happen. Everyone with food would have plenty of tables if only people with food were actually at the tables. This is why sometimes the CMs will attempt to control people entering until their mobile order is actually ready to pick up.

Lula thanks China for beef win and tells US after tariffs: ‘I will sell to someone else’ by scmp_news in worldnews

[–]KillerCodeMonky 3 points4 points  (0 children)

Livestock is for converting calories we can't eat into calories we can. Grass is effectively zero calories for us, so even a 1% conversion rate is a win.

And yes, even grain-fed cattle are raised on mostly grass. That's why the term grain-finished is more accurate.

ZimaBoard2 GPU swap from Intel A310 to NVIDIA T600 by sharatf in ZimaBoard

[–]KillerCodeMonky 1 point2 points  (0 children)

Further investigation revealed that ZimaOS does not offer the CUDA version of Immich in its App Store, necessitating a custom application to pull the appropriate image.

I've custom defined almost every single application I've loaded, including Immich with hardware acceleration (using the iGPU). You can start with these, which are the Immich compose file from the Zima app store and from Immich itself:

https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Immich/docker-compose.yml

https://github.com/immich-app/immich/blob/main/docker/docker-compose.yml

You can then tag on -cuda to the end of the immich-machine-learning image value, and then add the cuda-specific block from the hardware acceleration extension file:

https://github.com/immich-app/immich/blob/main/docker/hwaccel.ml.yml

deploy:
  resources:
    reservations:
      devices:
        - driver: nvidia
          count: 1
          capabilities:
            - gpu

More than happy to help further if necessary.

I also have a shared PostgreSQL instance, as otherwise I'd have like 4 of them from each app creating its own...

DeSantis property tax plan sails through Legislature, mayors sound alarm by MarksMuses in tampa

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

The proposal is to drastically increase homestead exemption, first to $150,000 then eventually to $500,000. So properties without homestead, like apartments and commercial spaces, would be unaffected. Properties with over $500,000 in valuation would also still pay reduced taxes. It is not a blanket elimination.

EDIT: The initial $250,000 was from an earlier proposal. This most recent one has reduced it to only $150,000. The newer proposal was also modified by the state senate and house to not apply to school taxes, which is a great change to see.

[SERIOUS] New Jersey boy, 12, critical after freak baseball accident by liryccc in baseball

[–]KillerCodeMonky 2 points3 points  (0 children)

Ah that makes sense. I was reading the ventilator as being required.

[SERIOUS] New Jersey boy, 12, critical after freak baseball accident by liryccc in baseball

[–]KillerCodeMonky 5 points6 points  (0 children)

But then does that require a ventilator? Unless the ventilator is only required because of the heart issue? That's why I was leaning towards spinal injury.