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.
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.
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.
Now with those shows out: both a funny Star Trek, and a serious Star Trek. The Orville just feels like Seth MacFarlane acting out his childhood play-times for us to enjoy.
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.
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.
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. 😂
I'm glad he addresses it up front, that the term is a marketing buzzword. I mean, isn't all storage "software defined"? It bugs me on the same level as "serverless" services that cloud providers offer.
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.
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.
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.
$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?
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.
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.The software gore here is Comic Sans, right?
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.
Yeah but "oPeN sOuRcE" (kinda)... and "something something cloud required" (just ignore the "LAN Only" option and SD card slot).
Shhhhhhh.... it's more fun to act all high and mighty.
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.
I think The Orville is trash. I tried watching the new season and it's still trash. They need better technical writers/editors.
Watching crew members have to punch in a bunch of buttons on a door (more than one too!) to open them in an emergency situation just makes me rage.
Now with those shows out: both a funny Star Trek, and a serious Star Trek. The Orville just feels like Seth MacFarlane acting out his childhood play-times for us to enjoy.
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.
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.
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.
Accelerando by Charles Stross, has lobster brain based pseudo-AI. Lots of outlandish stuff, but not as comedic as HGTG.
I love this series.
I hate how much I identify with Murderbot. 😅
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. 😂
I'm glad he addresses it up front, that the term is a marketing buzzword. I mean, isn't all storage "software defined"? It bugs me on the same level as "serverless" services that cloud providers offer.
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.
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.
I disagree. This is a very poorly designed reusable coffee cup:
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.
Yup. Thanks
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.
"Full stack designer" sounds like a designer who wishes they could code and makes up for it by adding "full stack" to the front of their title.
This is a real kick in the pants for people still waiting for their (now "non-plus") Form 1.
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.
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:
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?
(Don't mind this comment, using it in a slide deck)
Who does? In the case of my completely-never-going-to-happen example you'd just keep your legacy code running on 5.x
Being clear and well reasoned doesn't automatically make it correct. Not saying it is or isn't -- just that gentleman can differ.
You're being callous and it's not helpful for any discussion. None of that is a good reason to make any code decision.