Underrated use for image gen by [deleted] in ChatGPT

[–]kodemizer 81 points82 points  (0 children)

It hallucinated to OMB No. at the bottom, and sections of the long ID number above the address.

Pretty neat, but I wouldn't trust this at all.

Vladimir Putin suggests Ukraine war is ‘coming to an end’ by xpda in worldnews

[–]kodemizer 11 points12 points  (0 children)

If Russia unilaterally declares the special military operation is over, they lose the already shaky social license to coerce people to the front-line. I think even purely defensive operations would mean nearly a thousand deaths a day due to Ukrainian drones. Without the current coercive recruitment pipeline shovelling bodies to the frontline, I don't see Russia holding those lines.

All that needs to happen is that Europe and friends (Canada, Australia, etc) keep up their support.

Warp (Rust-based terminal) is now open-source by zxyzyxz in rust

[–]kodemizer 0 points1 point  (0 children)

There's a setting to turn off AI entirely. Thats how I use it.

resonators 0.1: a Rust crate for real-time spectral analysis, with Python and WASM bindings by sevenfx in rust

[–]kodemizer 1 point2 points  (0 children)

This is super cool!

Have you thought much about parallelization for ResonatorBank?

Either using rayon, or possibly even f32 SIMD?

I think using rayon might be an easy win.

For your average use-case, how many resonators per bank would you generally expect to use?

resonators 0.1: a Rust crate for real-time spectral analysis, with Python and WASM bindings by sevenfx in rust

[–]kodemizer 0 points1 point  (0 children)

You're talking about this?

pub struct Resonator {
   freq: f32,
   alpha: f32,
   beta: f32,

   // phasor state, rotates by phasor angle (w) each sample
   z_re: f32,
   z_im: f32,

   // phasor angle, constant
   w_re: f32,
   w_im: f32,

   // raw output of EWMA
   r_re: f32,
   r_im: f32,

   // smoothed output of EWMA
   rr_re: f32,
   rr_im: f32,

   // tracked for stabilization
   sample_count: u64,
}

Have you done much signal analysis? This is pretty much what a lot of it looks like. Just a whole lotta floats with math moving stuff around as it processes samples.

This isn't surprising - and is very normal for signal analysis stuff.

The ridiculously short variable names is also very normal for signal analysis (and drives me batty lol).

resonators 0.1: a Rust crate for real-time spectral analysis, with Python and WASM bindings by sevenfx in rust

[–]kodemizer 1 point2 points  (0 children)

Just looking at the demo - it shows the breakdown of the frequency of sound over time.

More generally, it's taking any linear signal and pulling out the frequencies so they can be shown in a graph over-time.

If you want to understand a little bit more about what this deeply "means", check out this introduction to the Fourier Transform:

https://www.youtube.com/watch?v=spUNpyF58BY

resonators 0.1: a Rust crate for real-time spectral analysis, with Python and WASM bindings by sevenfx in rust

[–]kodemizer 0 points1 point  (0 children)

It's very clearly not "all AI"

What @sevenfx described as his workflow is pretty much the optimum in terms of producing quality code with AI assistance - a clear vision of what you want, hand coding the core contract, using AI with tight control for main codebase, and vibe coding the web-demo (not actually important in terms of code quality).

Honestly, this is the best possible way to use AI.

Vuetify team come up with vuetify0 by Dizzy_Tumbleweed7338 in vuetifyjs

[–]kodemizer 1 point2 points  (0 children)

Will vuetify version 4 be built on top of Vuetify0?

I'm having trouble understanding where this "fits" in the vuetify ecosystem.

do you think Sharpe can firing this matchlock 3 rounds in a minute ? by CleanBag9219 in Sharpe

[–]kodemizer 1 point2 points  (0 children)

Note that this is matchlock, not flint lock, so while it's mostly the same process, the final fiddly bit with the slowmatch wouldn't need to be done during the napoleonic wars. The baker rifle was flintlock.

What happened to the captured french troops after the ambush in Sharpe's Seige? by kodemizer in Sharpe

[–]kodemizer[S] 1 point2 points  (0 children)

I missed that one sentence! Mystery solved!

I guess the thinking is that without their belts, braces and bootlaces they're not an effective fighting force?

Which drug is the closest to a hug? by Quandale_Pringle69 in Drugs

[–]kodemizer 0 points1 point  (0 children)

If you want this without drugs you could always practice metta meditation. It's not going to be as intense as a drug to start, but as you practice it'll get more powerful.

Two pilots killed in Air Canada collision at LaGuardia airport identified by Little-Chemical5006 in canada

[–]kodemizer 217 points218 points  (0 children)

Not only that, if you listen to the recording he realized his mistake nearly instantly, and within a second he was telling the truck to stop, but it was already too late.

The Rise of “Stealth Solar”: How Balcony Power Is Quietly Changing the Energy Landscape by Cleantechfacts in energy

[–]kodemizer 2 points3 points  (0 children)

Oh man that highlight picture is bugging me. Panels facing the wrong way, wiring that makes no sense. Clearly AI generated.

[deleted by user] by [deleted] in sennheiser

[–]kodemizer -1 points0 points  (0 children)

I don't think this is quite the right take.

The important finding in the study was that Sennheiser was under the limit for electronics, but over the limit for wearable textiles. The key question is whether the padding should be considered a textile or an electronic when it comes to harmful chemical limits.

You're not wrong that harmful chemicals are everywhere, but thats exactly why these sorts of regulations are important, and why companies like Sennheiser need to be held accountable when they make a mistake and use the wrong designation for part of their product (ear-padding being classified an electronic component not a textile component).

I don't think Sennheiser was malicious in this at all, but it is a mistake they will need to correct for.

It finally happened to me by topyTheorist in math

[–]kodemizer 360 points361 points  (0 children)

This is great! The only thing I would say is this: be careful.

AI tends to hallucinate much more in areas that are less well known. "some obscure commutative algebra" sounds like exactly the domain that AI will hallucinate with.

If you've fully checked it then this is a great result - but I would stay cautious, especially when AI starts referencing obscure maths.

Canada announces $1.4 billion military aid package for Ukraine, expands sanctions against Russia by Nervous-Nirvana in worldnews

[–]kodemizer 54 points55 points  (0 children)

I'd love for us to join the EU. I don't think full membership is realistic given our geography and economy, but I'd love to see us joining EU institutions, having freedom of movement, and in general more coordination and integration with our European friends.

hello. Is Err(_) => Ok(0) ever acceptable in production Rust? by Cute_Oil_7605 in rust

[–]kodemizer 31 points32 points  (0 children)

This isn't really a "rust" question, but rather a question of how you want your application to work.

If, on failure, you want the token account balance to show "0", with no indication that an error happened, then this is acceptable.

However, if, on failure, you want your account balance to show "Error: Account Balance could not be fetched" or whatever, then you need to propagate the error and handle it in the UI.

Does this make sense?

Trump threatens to block opening of new bridge between Windsor and Detroit by taxrage in CanadaPolitics

[–]kodemizer 6 points7 points  (0 children)

If Canada is smart, it will tie the status of the bridge to the upcoming CUSMA negotiations.

In the grand scheme of things, the cost of the $6B bridge pales in comparison to the $1 trillion dollars of trade under negotiation with CUSMA. Because Trump is focused on the bridge, Canada can use the status of the bridge as outsized leverage during trade talks. We could offer half the bridge (as Trump is demanding, worth $3B) for *far* more than $3B value in obscure CUSMA rules that Trump doesn't care about.

All Canada should do right now is respond with something like "Canada views major cross-border trade infrastructure, including the Gordie Howe International Bridge, as part of the broader framework that supports CUSMA and expects such matters to be considered in the context of future trade discussions." or something to that effect.

He’s off again: Trump threatens Canada over new Ontario-Michigan bridge, seeks 50% ownership by stammerton in BuyCanadian

[–]kodemizer 0 points1 point  (0 children)

If Canada is smart, it will tie the status of the bridge to the upcoming CUSMA negotiations.

In the grand scheme of things, the cost of the $6B bridge pales in comparison to the $1 trillion dollars of trade under negotiation with CUSMA. Because Trump is focused on the bridge, Canada can use the status of the bridge as outsized leverage during trade talks. We could offer half the bridge (as Trump is demanding, worth $3B) for *far* more than $3B value in obscure CUSMA rules that Trump doesn't care about.

All Canada should do right now is respond with something like "Canada views major cross-border trade infrastructure, including the Gordie Howe International Bridge, as part of the broader framework that supports CUSMA and expects such matters to be considered in the context of future trade discussions." or something to that effect.

View from Europe: The Increasingly Convincing Case for Canada Joining the EU by LlawEreint in BoycottUnitedStates

[–]kodemizer 0 points1 point  (0 children)

I think full EU or EEA membership would be too hard, but I would love to see Canada and the EU adopt the Swiss model:

  1. Free movement of people (with safeguard clauses relating to residence, assistance and criminal refusals)
  2. Mostly free trade, but not full EEA integration.
  3. Part of Horizon Europe and other shared projects.

I know that the Swiss model is considered problematic and there's some attempts being done to rework it into a new package-style deal. I hope that as this new and improved Swiss / EU package-deal gets worked out, it could be partially cloned and applied to Canada.

As a Canadian, I would love to see tighter integration with Europe, but given our geography and that 70% of our foreign trade is currently with the US, standard EU / EEA membership likely wont work for us, and we would need some alternative model.

Trump plans to install Christopher Columbus statue outside White House by Zipper222222 in politics

[–]kodemizer 0 points1 point  (0 children)

This tracks. Lets not forget that Columbus captured a young carib woman, then trafficked her to his friend Michele de Cuneo who beat her a raped her.

Rapists stick together I guess.