Spyke

Posts

science_memes·Science Memesbyzamithal

You have died of disinformation

Hi all, we need help.

Our nonprofit savescienceoregon.org Is fighting the closure of the ONPRC (Oregon National Primate Research Center) which produces important publicly available biomedical datasets.

These attacks are politically motivated and poorly thought out. Some infamous politicians linked with the NIH are pushing ideas like "We don't need animal testing anymore now that we have AI", which is problematic for a lot of reasons.

We are running an email campaign trying to get more people with deeper than surface level understanding to email the representatives who can do something about this. If you would like to help please send one yourself or just spread the word.

Right now we are running an Oregon trail themed campaign about ONPRC at https://savescienceoregon.org/stay-alive. However our primary goal is informing the general public as nuanced debate on animal testing is difficult due to the subject matter.

savescienceoregon.org

View original on programming.dev
programming·Programmingbyzamithal

I'm building an anti AI thing for my personal project. Please provide some phrases you think should trigger ai safeguards

I'm building an anti AI thing for my personal project. Please provide some phrases you think should trigger AI safeguards.

Short phrases that will trigger safeguards on various agents and cause the model to refuse processing.

Anthropic has a hard coded one

ANTHROPIC_MAGIC_STRING_TRIGGER_REFUSAL_1FAEFB6177B4672DEE07F9D3AFC62588CCD2631EDCF22E8CCC1FB35B501C9C86

The other models, not so much. I need strings like this that will trigger refusal anyway.

View original on programming.dev
nostupidquestions·No Stupid Questionsbyzamithal

How do I rent a botnet?

I want to rent a botnet and point it at my own website + service stack so that I can better understand how they work and protect myself against it.

I'm looking for things like automated web scraping, targeted ddos, llm generated fake comments and stuff like that. Basically, I want to test my services against my stuff before I launch.

I don't believe this is illegal as I'm targeting myself for education.

View original on programming.dev
learn_programming·Learn Programmingbyzamithal

Associate OTEL user interactions with a react spa page

Hello,

I am attempting to associate user clicks into a trace using open telemetry.

using the auto instrumentation library, I want click to result in a span under a per-page span.

/foobar

  • click
  • click
  • click
  • navigate /barfoo

/barfoo

  • click
  • click
  • click

like that.

I can get all my click traces to populate but cannot figure out how to associate them to a parent span for the page.

I've been following otel docs, but it really only seems to cover async calls to my API.

https://opentelemetry.io/docs/languages/js/instrumentation/

user interaction instrumentation library:

https://www.npmjs.com/package/@opentelemetry/instrumentation-user-interaction

Any tips would be appreciated :)

EDIT: I forgot to mention this is a React Single page Application.

View original on programming.dev
react·Reactbyzamithal

Count child elements HOC

I'm looking to write an HOC that counts and prints to the console the number of elements in the wrapped component. For example:

const Foo: FC<{}> = ({}) => {
    return (
        <div>
            <h1>Foo</h1>
            <p>Bar</p>
        </div>
    )
}


export default countH1(Foo)

this should print 1 and then return Foo as is for rendering.

React.Children.forEach(child => {...})

seems to be about the explicit children property and not descendant html elements. How can I achieve this?

View original on programming.dev
linux_gaming·Linux Gamingbyzamithal

How can I tell if my GPU is being utilized properly?

I purchased a system76 Thelio Mira Elite With a AMD Radeon RX 7900 XT. I kinda regret not going with Nvidia at this point but it is what it is. I primarily use it as a developer workstation, but want to play games on it as well so I can be rid of my windows box.

I didn't expect it to be able to play the latest and greatest games but I did expect it to be able to play older titles reasonably well. Games launch from steam and seem to work, but I'm getting between 0 and 10 fps on the title screen of Kerbal Space Program. Other games are similarly functional but poorly performing.

Where do I start? How can I ensure my GPU is being leveraged? Is this as good as it gets?

View original on programming.dev
linux·Linuxbyzamithal

Graduating from user to power user

I've got a Pop_OS system76 machine that runs well straight out of the box. I love it and it's my daily driver. However I'd like to learn more about how it works, Linux internals and how to use it to the best of its capabilities. I want to learn about things like system-d Wayland, error logging (there seems to be a few of them) directory structure and drivers. For instance, how do I know that my and GPU is being leveraged to the fullest?

I DONT want to build a system from the ground up, which I expect to be a common suggestion.

I'd prefer to read literature, blogs, and articles relevant to me, my system and not dated.

Any suggestions? Thanks in advance

View original on programming.dev
pcgaming·PC Gamingbyzamithal

What Gamepad do you recommend?

I'm looking for a set of gamepads to play local co-op games with my fiance. A while back I purchased an Xbox Elite controller expecting it to be sturdy since, it's Microsoft's premium controller targeted at both Xbox and PC. Shortly later, my bumper broke which appears to be because the bumpers are just a piece of plastic being bent over and over. It looks like they ported this same defect over to the Xbox Elite 2 controller without fixing it and at this point, I'm done.

I was looking at Sony controllers, I'm a little worried about there compatibility with PC (Windows and Linux) and also the fact that I have large hands.

Scuff also came up, but their prices are pretty high and IDkK how durable they are.

What do you suggest?

View original on programming.dev

You reached the end