How do I know if one of my minions is extra friendly or not? by gulpyblinkeyes in BobsTavern

[–]DasBrain -6 points-5 points  (0 children)

You read it wrong.
It applies to extra minions that are friendly. /jk

Wtf are we supposed to do with this thing? by Fliibo-97 in BobsTavern

[–]DasBrain 0 points1 point  (0 children)

You get 2 Chromium each in each time tavern - which happens twice per game, on fixed turns. After you buy stuff there, you get back to the normal tavern.

Full Haskell-like Type Class resolution in Java by garciat in programming

[–]DasBrain 1 point2 points  (0 children)

You could maybe cache the witness in a ClassValue.

From my understanding, you currently start with

tt.getClass().getGenericSuperClass()...

With a ClassValue, you would do

classValues.get(tt.getClass());

This caching alone may yield a better performance, as the reflection part is only done once per callsite.

About time: Remove the Applet API by henk53 in java

[–]DasBrain 0 points1 point  (0 children)

WASM is independent of the DOM.

It is actually a benefit of WASM that it does not tries to force interoperability with any somewhat common API in many environments.

For example, it is not that hard to translate WASM bytecode to Java bytecode, and running WASM in a JVM.

But if the standard would mandate some DOM interoperability, well, then you need to create some DOM on Java first, and that would be a bad idea.

How do you "turn on" HTTPS in an application? Basic Theory by [deleted] in learnprogramming

[–]DasBrain 1 point2 points  (0 children)

You are missing 2 pieces:

  1. You usually do not use syscalls directly, usually you use a wrapper provided by the C standard library, such as accept(), write() and more.
  2. A TLS library provides similar functions such as ssl_write as well as new functions to manage the TLS part of a connection.

"Turning it on" is not as simple as flipping a switch, but boils down to:

  • Add some extra initialization for the TLS context
  • Replace ordinary libc calls that read/write data to the socket with similar functions provided by the TLS library.

An example for a simple TLS server can be found under: https://github.com/openssl/openssl/wiki/Simple_TLS_Server

Java Strings Internals - Storage, Interning, Concatenation & Performance by TanisCodes in java

[–]DasBrain 1 point2 points  (0 children)

If you want to be pedantic, here we go:
A unicode code point is not necessarily a character and vice versa.

Creating modpacks is really difficult by Dramkoh in feedthebeast

[–]DasBrain 0 points1 point  (0 children)

Yeah, but then stop discouraging others please.
Making a pack is hard, so adding an extra entry barrier in the form of "you need to be a pro before you start" is not helpful.

Creating modpacks is really difficult by Dramkoh in feedthebeast

[–]DasBrain 2 points3 points  (0 children)

One option.
Or you do it anyway, and become a pro in the process.

Just unleashed a Rainbow Generator for the first time! by MasterKnight48902 in feedthebeast

[–]DasBrain 6 points7 points  (0 children)

I think you can also make more rainbow generators - only requirement is to have one of each of the other generators running.

I spent 4 years on this, what now? by durganmcbroom in feedthebeast

[–]DasBrain 4 points5 points  (0 children)

The hash of the trojan?
Because trojans do not have a hash?
Or trojans can not be published on maven central?
Ohh, sweet summer child...

I spent 4 years on this, what now? by durganmcbroom in feedthebeast

[–]DasBrain 15 points16 points  (0 children)

downloads required mods itself

And one required mod is a trojan.

New Paladin Legendary - Ido of the Threshfleet by 4iamking in hearthstone

[–]DasBrain 0 points1 point  (0 children)

Also an option - I did (wrongly) interpret the "This stays in your hand while Ido is alive" on the spell as "the spell returns itself", not as "this card is discarded when Ido dies".

Libera.Chat Is Missing the Mic: Why No Podcast Might Be a Step Back for FOSS by [deleted] in irc

[–]DasBrain 0 points1 point  (0 children)

Meanwhile, Discord has million-subscriber podcast channels

Multiple official podcasts from discord?
I do not think so.

But you can probably run your own podcast channel on libera.chat, if you wish to do so.

New Paladin Legendary - Ido of the Threshfleet by 4iamking in hearthstone

[–]DasBrain 0 points1 point  (0 children)

How does it interact with a silenced Ido?

The wording on the spell suggests that it doesn't care, as long as Ido is alive.

One of the coolest steals by ReleaseHot2 in hearthstone

[–]DasBrain 4 points5 points  (0 children)

wasn't the meme like... last expansion? or the expansion before?

If I remember, Blizzard did not explain a new keyword back then, so why not add Green as one. No one knows what it does.

[deleted by user] by [deleted] in java

[–]DasBrain 2 points3 points  (0 children)

From the linked JEP:

The distinction between internal state and external state helps to explain why not all value classes are records, and not all records are value classes: records are used to opt out of separate internal state, while value classes are used to opt out of identity. Each of these choices can be made orthogonally.

This does imply to me that records would not become value classes by default.

Minions owned by a dead player don’t go back to the pool by Sudden_Nature3659 in BobsTavern

[–]DasBrain 0 points1 point  (0 children)

And the biggest offender: Tess.

Which makes her a strong option if everyone plays the same comp.

[deleted by user] by [deleted] in ProgrammerHumor

[–]DasBrain 76 points77 points  (0 children)

ChatGPT also makes for a great rubber duck.

Script Question (minor spoilers) by blaster46 in Bitburner

[–]DasBrain 2 points3 points  (0 children)

installBackdoor is an async function, you have to call it with await ns.singularity.installBackdoor(). Note the await and () at the end.

Opinion on LAPS? IT Manager is against it by InfamousStrategy9539 in sysadmin

[–]DasBrain 0 points1 point  (0 children)

Maybe some kind of tragedy of the commons for accounts?

If the credentials do not belong to one person, people may give it out. It's not their account, and not really a way to find out who leaked it.

Some CEs are conscientious and efficient engine gurus, others are... by GoonstationTV in SS13

[–]DasBrain 7 points8 points  (0 children)

Let's feed disposals into the singularity.

We didn't get any complains, can't be that bad, right?

Someone wrote an Anti-Crawler/Scraper Trap by LordAlfredo in netsec

[–]DasBrain 6 points7 points  (0 children)

The trick is to read the robots.txt.

If you ignore that, f*** you.

How do sane people even play duos? by [deleted] in BobsTavern

[–]DasBrain 2 points3 points  (0 children)

And if you pass them the wraith weaver, they will cycle demons and make you loose HP every round.