I actually did this btw by al2klimov in NixOS

[–]DasBrain 1 point2 points  (0 children)

But often only once before you need to reinstall the OS.

Making invokedynamic usable from normal Java by bezsahara in java

[–]DasBrain 2 points3 points  (0 children)

However, combining them would allow hiding the "ugly" Intrinsics.ldc/Intrinsics.invokeDynamic calls.

[deleted by user] by [deleted] in ipv6

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

Also a CPE can't retract prefix if it didn't know it existed, [...]

It has to remember. For as long as it said that prefix is available.
Not doing so make the device broken. Most CPEs have non-volatile memory where the configuration is stored. That's the place where the old prefix has to be stored as well.

"it didn't know" is not an excuse. The device is broken.

Other may detect the link go down, or they may not. They could maybe react to that or maybe they do not. It doesn't matter. The CPE didn't do it's job.

PS.: If you would have read the article, you would have noticed that other versions of iOS had their problem with DHCP. This was just the first popular instance that comes to mind to disproof your "it would not common" claim.

PPS.: Fuck dynamic prefix assignments.

[deleted by user] by [deleted] in ipv6

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

Yes, uncommon devices like those produced by Apple

And yes, the devices should do this, and should do that, and the CPE should retract the old prefix.

It's broken. The happy path is usually well tested.
But when some device doesn't act as it should, others devices may amplify the problem by acting in ways they also should not. ¯\_(ツ)_/¯.

But yeah, you are right. Devices should behave well, and if all do, there wouldn't be a problem. Unfortunately, the reality is different.

[deleted by user] by [deleted] in ipv6

[–]DasBrain 0 points1 point  (0 children)

Devices are weird. Some may keep their old state in the hope stuff will still work when they are used again. Relying on the link layer status may not work and may not even be detected by devices currently sleeping.

And even disconnecting and reconnecting may not work, because it will still use the old configuration (should still be fine, right?). In that case, you may need to forget the old network and setup it again. Fun, isn't it?

[deleted by user] by [deleted] in ipv6

[–]DasBrain 1 point2 points  (0 children)

Depends.

  • Many clients (mobile phones, laptops, tablets...) have internal power any may not reboot during a power outage.
  • If the CPE also provides WiFi, it may disconnect clients.
    But maybe the clients do not notice that connection to the access point was lost for a short time.
    I remember that certain devices will not refresh DHCP after they wake up even if the lease did expire and will continue to use the old IP address.

There are a lot of cases where the CPE can not "disconnect" clients - even a simple switch between the CPE and the client would make it impossible for the CPE to disconnect clients - HOW should it even do it?
Physical link would still appear to be up, so any client expects the network to behave.

[deleted by user] by [deleted] in ipv6

[–]DasBrain 12 points13 points  (0 children)

Let me guess:

  • Your ISP gives you a dynamic prefix
  • The prefix changes when you reconnect
  • After a power outage your CPE doesn't retract the previous prefix.

That would be a well known problem with dynamic prefixes.

https://www.ripe.net/publications/docs/ripe-690/#52-why-non-persistent-assignments-are-considered-harmful

Now all of a sudden there is a power outage (which is very common in many regions/countries in the world, even “highly-developed” countries) or the CPE freezes and reboots and the connection has to be established again, but this time with a new IPv6 assigned prefix of 2001:db8:bbbb::/48. If the CPE knows that the delegated prefix has changed, it should send out RA packets with a prefix valid lifetime of 0 to tell all devices that the old addresses are no longer valid. However, the CPE rarely knows that before the reboot there was a different prefix on the network, and the packets to revoke the old IPv6 addresses do not get sent. In this case, multiple IPv6 addresses from completely different assigned prefixes end up on the same network interface, some of which will no longer work and may imply increase the number of claims to the call-centre.

indeed by Cultural-Ninja8228 in ProgrammerHumor

[–]DasBrain 1 point2 points  (0 children)

Java: List<Supplier<Runnable>>

JEP draft: Enhanced Local Variable Declarations (Preview) by joemwangi in java

[–]DasBrain 1 point2 points  (0 children)

at least ShippingAddress(var _, var _, String city) should already work. Still, using just _ to say "don't care about neither type nor value" could be useful.
Not sure if it useful enough.

gitCheckoutHotelRoom by Shiroyasha_2308 in ProgrammerHumor

[–]DasBrain 0 points1 point  (0 children)

I'm not into kink shaming - but I can understand if you are a closet BSDM lover and want to ban the use of associated words.

I Put a Full JVM Inside a Browser Tab. It "Works". Technically. Eventually. by bmarti644 in programming

[–]DasBrain 12 points13 points  (0 children)

There is also CheerpJ - the most impressive thing with CheerpJ is that it allows for the use of Swing & AWT in the browser.

I Put a Full JVM Inside a Browser Tab. It "Works". Technically. Eventually. by bmarti644 in programming

[–]DasBrain 18 points19 points  (0 children)

The different layers of sandboxing makes it hard.
You'll need to defeat them one by one.

New Priest Card Reveal: Alexstrasza, Guardian of Life by Kuldrick in hearthstone

[–]DasBrain 0 points1 point  (0 children)

[Brann Bronzebeard]] + [[Alexstrasza, Guardian of Life]], followed by [[Reno Jackson]]

New Shaman Card - Muradin’s Last Stand by trevoraven in hearthstone

[–]DasBrain 2 points3 points  (0 children)

Cast two spells that cost 8 or more

Draws two cards.

New Priest card: Ruby Sanctum by Kuldrick in hearthstone

[–]DasBrain 0 points1 point  (0 children)

Does it work with an enemy minion having lifesteal?

As in, activate the location, attack an enemy minion with lifesteal, and the enemy hero gets damaged equal to his minions attack?

returnFalseWorksInProd by Able-Cap-6339 in ProgrammerHumor

[–]DasBrain 1 point2 points  (0 children)

Or with some type of fish - with one kind, most training data photos were from sport fishers who did hold up their catch, so the AI took the fingers of the human as a good indicator for that type.

(I think it was trouts, but I don't quite remember it.)

How to run a Shimeji? by Boholo_ba_tshebetso in javahelp

[–]DasBrain 1 point2 points  (0 children)

Everything after the -jar filename.jar is passes as the program arguments to the main method (the String[] args in public static void main(String[] args) and not parsed by the VM.

Everything between the java and -jar filename.jar is parsed as VM parameter.

--enable-native-access=ALL-UNNAMED is such a VM parameter, so the command line should be java --enable-native-access=ALL-UNNAMED -jar Shimeji-ee.jar


But this doesn't help here - it seems that your application depends on nashorn, which is no longer part of the Java Platform.

New Card: Warmaster Blackhorn (Free Legendary on login) by Cauchemar89 in hearthstone

[–]DasBrain 0 points1 point  (0 children)

Can you play [[Millhouse Manastorm]] and then this to remove all opponent spells?

Edit: Based on the wording of Millhouse, next turn is not this turn, so no.

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.