• 0 Posts
  • 535 Comments
Joined 3 years ago
cake
Cake day: June 30th, 2023

help-circle
  • If you want a demo on how bad these AI coding agents are, build a medium-sized script with one, something with a parse -> process -> output flow that isn’t trivial. Let it do the debug, too (like tell it the error message or the unwanted behaviour).

    You’ll probably get the desired output if you’re using one of the good models.

    Now ask it to review the code or optimize it.

    If it was a good coding AI, this step shouldn’t involve much, as it would have been applying the same reasoning during the code writing process.

    But in my experience, this isn’t what happens. For a review, it has a lot of notes. It can also find and implement optimizations. The weighs are the same, the only difference is that the context of the prompt has changed from “write code” to “optimize code”, which affects the correlations involved. There is no “write optimal code” because it’s trained on everything and the kitchen sink, so you’ll get correlations from good code, newbie coders, lesson examples of bad ways to do things (especially if it’s presented in a “discovery” format where a prof intended to talk about why this slide is bad but didn’t include that on the slide itself).





  • An alternative that will avoid the user agent trick is to curl | cat, which just prints the result of the first command to the console. curl >> filename.sh will write it to a script file that you can review and then mark executable and run if you deem it safe, which is safer than doing a curl | cat followed by a curl | bash (because it’s still possible for the 2nd curl to return a different set of commands).

    You can control the user agent with curl and spoof a browser’s user agent for one fetch, then a second fetch using the normal curl user agent and compare the results to detect malicious urls in an automated way.

    A command line analyzer tool would be nice for people who aren’t as familiar with the commands (and to defeat obfuscation) and arguments, though I believe the problem is NP, so it won’t likely ever be completely foolproof. Though maybe it can be if it is run in a sandbox to see what it does instead of just analyzed.




  • If she asked if she was annoying, she knew on some level.

    When I was younger, I used to get so annoyed at hinting disinterest rather than outright stating it, but I eventually realized that if someone is interested and doesn’t have barriers to getting involved, they won’t be coy about it. If they are busy but otherwise interested in a date when asked, they’ll usually say more than “I have plans that day”, like “but I’m free on x day” or “maybe another time?” or “I’d love to go on a date with you but can’t that specific time”.

    If they are evasive at all about it, they are either not interested in general and are just trying to be polite (NOT really for your sake, so don’t start about how you’d rather they be clear, it’s to protect themselves from the pieces of shit that get aggressive when they realize they don’t have a chance), or they have other shit going on that complicates any interest (like it’s hard for them to schedule a date ahead of time because they are already in a relationship and need a good excuse to get away for a date).




  • It’s something I’ve thought about a bunch and the strategy I’ve come up with is:

    If your breath is blocked, hold your breath at first and stay calm. Trying to breathe in could wedge it farther in. And trying to breathe out will likely move it, but gravity might just drop it back where it was only with less air in your lungs, which you need to help dislodge the obstruction. Panicking will make you more likely to waste your chance at getting it without needing to fall on something and potentially break ribs (or fail and die). You’ll probably have to suppress your cough reflex. I’ve never done this before and have no idea how much conscious control one would have in that moment and I’m also someone who trained myself to be able to suppress coughs (to avoid embarrasing bong hits lol).

    Lean forward, the farther the better, to the point where loose food in your throat will just fall out your mouth. Then cough, if you make it also a growl, you can add more force, as you don’t want to half-ass this. Your air might still be limited.

    You should be able to feel if you’re making any progress. If you are, keep at it, if not, switch to the “fall on something to knock the wind out of you” strategy, still keeping your mouth angled down and add a cough as it impacts.

    If that fails, make a big ruckus. I’ve told my daughter that if she starts choking and can’t speak to get my attention, knock dishes onto the floor to get my attention. If you’re completely alone in your home, throw a pot out your window before running out your front door. Try to be efficient with your time and energy. Dial 911 and hope they send someone and don’t assume a prank call or a kid when no one responds.





  • I think Breaking Bad belongs in the middle one with Futurama because I don’t think it required intelligence to be entertained.

    My first watch through was purely a “watch Hal do some crazy shit” where the action entertained and everything else was just an annoyance. I just didn’t care about the moral implications or whatever message the show was trying to make, I was happy watching an “outsider enters dangerous world he knows little about and fucks shit up”.

    Second watch through I stopped seeing him as Hal and disliked him before the end of the first episode. If anything, he was more like Malcolm (book smart but otherwise dumb and entitled).

    Though maybe that’s more just about BB being entertaining even if you aren’t the target audience.


  • Yeah, all the word policing kinda feels like a psyop because it’s stirring up a lot of conflict without any real benefit. Controlling what words are ok doesn’t make people respect the ones hurt by the words, and ultimately it’s the disrespect that causes the hurt, the words are just the manifestation of that.

    Like with disabled people, pretty much every word used to describe them has become an insult and any new word will just suffer the same fate pretty much the same day it gets popularized.

    But the argument itself is polarizing, though in a way that makes the other side shut up about it until they can find like minded people. And might end up joining MAGA because they think it’s about trolling people policing language and words like “woke” end up having very different meanings to the different groups (one side sees it as a respect for all regardless of background or capabilities, the other sees it as a drive for censorship) to the point where people supporting the other side seem “evil”, which then means that as MAGAs wake up and see it is about more than just policing words, their opponents are more likely to tell them to fuck off than.

    And that’s not even mentioning the people who take the stance “my racism/sexism is ok because it’s against the race/gender with more power”, and the people who treat non-malicious acknowledgement of differences between genders/races/cultures the same as malicious ones and no fucking wonder there’s strong opposition.




  • On the other hand, I suspect I’m on the spectrum but can’t relate to this at all. I love a variety of food and would get bored to death if I had to eat the same thing all the time.

    I also like new and unexpected textures in foods (unless I’m already familiar with it and know it isn’t supposed to have that texture). That shit’s delightful.

    But maybe it’s just the ADD overpowering anything else in the constant search for new sources of easy dopamine (while also overriding any urgency towards actually context shifting to eating or cooking mode).


  • Which is pretty crazy when you think about it, hitting a target about 1.3 lightseconds away. As in, if you could sight it, you’d be looking at where it was 1.3 seconds ago. Because it is moving at about 1km/s relative to us. And don’t read that as km/h, that’s one kilometer every second, so by the time you see it, it’s already about 1.3km from where you see it, so you need to lead it by about 2.6km to hit it but aim your sensor at the apparent image.

    Though it’s so far away that it doesn’t look that hard and the angle of difference between where you aim the laser and where you pick up the return signal is less than 0.00001 degree (thus you can solve that problem by ignoring it but still, just hitting that tiny distant moving target at all is impressive).