Skip to content

u/KishCom

In this archive from Mar 2008 to May 2024

1
posts
77
comments
0
media
324
score

Take out the data.toString() from the JavaScript version (or add something like a $body = (string) $client->get($url)->getBody(); to your PHP). Your Node version is (de)serializing the entire request object and not even using a stream to do so -- a tremendously slow operation that your PHP version doesn't appear to be doing.

4 points

Hate to say it, but this tech is basically pissing into the ocean.

A) Only impacts newly scraped images. Few images are required to poison a model -- making poisoned images somewhat easy to detect.

B) Using that information, it would be easy to add a layer to a scraper that automatically detects when an image has been passed through Nightshade and either: blur/distort the poisoned data, or simply crop it out.

C) How well do these "poisoned pixels" hold up to recompression? Does uploading it to your favourite service automatically render it useless?

D) The more popular it becomes, the more popular the defeat mechanisms will become.

This reminds me of the adversarial patch that went no where because techniques to detect them got better.

15 points

Call me petty, but I gave up on the show after watching crew frantically punch in a sequence of buttons to open doors during an emergency. Does each door have a security lock out? Even in the corridors!? Why are they even buttons instead of some kind of IFF?!?! Locked even during emergencies?!?!!?! They need better technical writers (or editors).

I also can't help but just hear Brian the Dog when Seth speaks. Years of juvenile Family Guy jokes automatically undercut any kind of seriousness he tries to take.

8 points

The Orville is appallingly bad -- I am pretty alone with this opinion. It's so telling that this show feels more at home in the Galaxy Quest (maybe even Space Balls?) universe but still fills a niche so badly wanted by Trekkers.

in what feels to be a rational, non-pandering way

Did we watch completely different shows? For every moral issue covered on the show, Seth McFarlane smiles at you as his show wonders aloud "But have you considered this from my perspective and how this might affect me?" And then he punches down at the people with less privilege than him.

-2 points

Children of Time by Adrian Tchaikovsky has a very cool example of this.

The artificially evolved spiders domesticate ants to the point where colonies of them are used as living computers. Very cool because the book covers this whole evolution from ants being competitors all the way up to them being living computers for the spiders.

9 points

It's not about being smart or dumb. It's just a marketing buzzword because it's widely accepted but technically inaccurate. There's tons of that kind of stuff in tech.

I mean, really technically speaking: there's no such thing as software at all. It's just all various internal states of hardware. 😂

1 points

Added complexity never happens for nothing

Front-end JS devs felt inferior and made a bunch of tools that add layers of abstraction that don't remove/make-easier layers of complexity. (I tease... kind of).

Redux and similar react "state management" libs are already out the door because of React contexts. Chances are if you're not already using it, you probably shouldn't start.

ditched their toolkit, built our own

I think people freak out a little when they read this, but really often than not, a hundred or so lines of "vanilla" JS is more than enough for simple things.

3 points

It's weird to me how some PHP devs are obsessed with what one-way hash they use. It's really bizarre that it seems to be only the PHP community that maintains this obsession with what is the "right" hashing algorithm to use.

Is this really that big of an issue? Doesn't Wordpress have other much more pressing things to deal with? Salted MD5s are far from ideal, but surely there's much more important things to focus on.

-2 points

I've seen this on a clients Wordpress server as well. It got shutdown by their provider because it was being used to relay Russian spam.

The importance of keeping Wordpress updated (and other major out-of-the-box solutions) can't be understated.

1 points

If you can stand the style, the prequels dive into why this is in detail. I liked the prequels for this reason alone: background and history on the whole Dune universe.

3 points

Maybe I've just been spoiled by socket.io and Nodejs - but I just tried for the last 3 hours to get Ratchet working to no avail.

Some of the code to make it work looks like this:

   $webServer = new IoServer(
    new WsServer(
        new PortLogger($push, 80,
            new MessageLogger(
                new ServerProtocol(
                    new Bot(
                        new ChatRoom
                    )
                )
              , $login
              , $logout
            )
        )
    )
  , $webSock
);

And requires 4 different ports/servers running on your machine ... it's a bit of a pain in the ass if you're used to the easy setup and go of socket.io.

Did you get it working OK? What are your experiences?

1 points

I do not want to go back through ten years of legacy code

Who does? In the case of my completely-never-going-to-happen example you'd just keep your legacy code running on 5.x

clear, well explained reasoning

Being clear and well reasoned doesn't automatically make it correct. Not saying it is or isn't -- just that gentleman can differ.

who barely writes code at all that makes this mistake. ... cause massive damage to no practical benefit ... to support a fringe group of whiners in their bikeshedding

You're being callous and it's not helpful for any discussion. None of that is a good reason to make any code decision.

4 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.