• 1 Post
  • 27 Comments
Joined 1 year ago
cake
Cake day: September 11th, 2023

help-circle
  • You can do either, but you usually do neither. The best way is to throw a new exception for your situation and add the caught exception as an inner exception. Because rethrowing resets the stack trace, removing the context from an exception message that is often pretty vague, and “bouncing” with throw; doesn’t tell the next exception handler that you already handled (part of) the exception.


  • This is probably because of a lack of training data, where it is referencing only one example and that example just had a mistake in it.

    The one example could be flawless, but the output of an LLM is influenced by all of its input. 99.999% of that input is irrelevant to your situation, so of course it’s going to degenerate the output.

    What you (and everyone else) needs is a good search engine to find the needle in the haystack of human knowledge, you don’t need that haystack ground down to dust to give you a needle-shaped piece of crap with slightly more iron than average.


  • After almost 2 years, Roshan’s pit is back where it belongs. I think the pit switch is a good solution to the Pit Problem, but sticking those pits all the way in the corners made it really difficult to contest a Roshan attempt. You needed to commit pretty hard just to get there and then the terrain was pretty difficult to get a good Blink angle on too. Now we have it back in the middle of the map and it will be fun to see the dynamic plays around there. And I hope to see Roshan barreling through a team fight in the mid lane during TI 2025.



  • It might help your comment if you replaced some theys and thems with the actual people you’re referring to. It’s very unclear whether you’re talking about Hamas, the Israel government, the Palestine people living in the Gaza strip, the Israeli people, etc. There’s a lot of different groups involved in this conflict, all with their own history and motives. It’s important to be clear about who is doing what.






  • I have seen this, but with “Y”, “N” instead. That was the way the database stored it and the way the UI displayed it, but everything inbetween converted to boolean instead, because there was logic depending on those choices. It wasn’t that bad, all things considered, just a weird quirk in the system. I think there was another system that did just use those strings plain (like WHERE foo = 'Y' in stored procedures), but nothing I had to work with. We just mapped “Y” to true when reading the query results and were done with it.

    (And before anyone asks, yes, we considered any other value false. If anyone complained that their “Yes”, “y” or empty was seen as false, we told them they used it wrong. They always accepted that, though they didn’t necessarily learn from it.)


  • Hoimo@ani.socialtoScience Memes@mander.xyzFame
    link
    fedilink
    English
    arrow-up
    22
    ·
    edit-2
    2 months ago

    Tesla still got a bunch of scientific cred, more than Edison actually. Edison is known as the inventor of a consumer product, Tesla got the unit of magnetic flux named after him.

    Actually, the comic names Lorentz, Minkowski, Hilbert, which aren’t household names like Einstein, but anyone who knows anything about relativity will still know their names and what they contributed. Who cares about being known as “some kinda smart feller” by a billion people if none of them actually know why you’re seen as smart. To them you’re about as significant as a character in a newspaper comic; an easy reference to make to show they’ve read a newspaper once.


  • Torrents are already very hard to block. You don’t actually need a tracker, because all modern torrent clients support DHT (distributed hash table). You only need some way to get the initial hash for a torrent, so that’s where trackers are still useful, but once you’re connected to the swarm, you can only be blocked if the entire swarm is blocked.

    Tracking though… It’s too easy to get IP addresses for the entire swarm and I don’t see how you could ever fix that. Tor doesn’t really solve that issue either, it just moves it to places where you won’t get in legal trouble or to people who don’t mind getting in legal trouble, a bit like VPN providers.



  • Hoimo@ani.socialtoScience Memes@mander.xyzNom nom
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    I always remember those as “knife” and “cup”, but you have to know that I use my cups the wrong way around.
    When you have two things AB on a table and you come in with a knife or cup (NB: upside down) from above, the knife will separate them “A or B” while the cup will catch them together like a pair of angry wasps “A and B”.



  • So in programming, you’d write ‘if’ as:
    not pizza or fart where the farting is irrelevant until the pizza is involved.

    While ‘iff’ would be:
    pizza equals fart where pizza means fart and no pizza means no fart.

    I actually wrote iff as (not pizza and not fart) or (pizza and fart) before, and I’m pretty sure that’s the way I wrote an iff in production code in the past, but your comment made me realize that “they should be true at the same time” can be tested really easily with equality.



  • I don’t think you even need the actual stuff to train a neural network to recognize it. For example, if I wanted to train a neural network to recognize pictures of lions, but I didn’t have any actual pictures of lions, I could use pictures of lion-shaped things, lion-colored things and locations where lions might appear. If a picture is hitting all three of those, it’s very likely to be a lion. Very likely is all a neural network can do, so it’s good enough for my purposes.