sorted by: new top controversial old
[-] bloopernova@programming.dev 2 points 6 months ago

Sweeeeet

I'm very envious, looks so cool!

[-] bloopernova@programming.dev 21 points 6 months ago

Just being able to exclude certain sites, and reduce the ranking of others, makes search so much better in Kagi.

I hope they eat Google's lunch.

[-] bloopernova@programming.dev 23 points 6 months ago

Well, you see, first off you need a microservice to distinguish between those 2 types of step, then you need separate microservices to handle storing those values. Then you need a GraphQL database in a multi zone Kubernetes cluster as a backend...

Ugh I feel dirty saying all that.

[-] bloopernova@programming.dev 33 points 6 months ago

Damnit, I was going to post "yeah it's called Cunnington's Law" and see who fell for it.

[-] bloopernova@programming.dev 40 points 7 months ago

Go on, Texas, try to ban VPNs.

[-] bloopernova@programming.dev 1 points 7 months ago

Love the Meze 99 Classics, worth every penny!

[-] bloopernova@programming.dev 4 points 7 months ago

PC Spotify -> Schiit Modi -> Schiit Vali 2 -> PreSonus Eris E4.5 speakers.

Or

Pixel 8 Pro Spotify -> "TempoTec Sonata HD PRO" USB DAC -> Meze 99 Classic headphones.

Does anyone think it's worth moving to Tidal for my music?

Also, I'm running out of space on my desk. I can put the stack of Schiit on top of a speaker with minimal effects, right?

[-] bloopernova@programming.dev 10 points 7 months ago

eye twitch

At least thunderbolt cables are somewhat straightforward.

[-] bloopernova@programming.dev 32 points 7 months ago

They name by committee. So every corporation that is in the USB standards group will argue for whatever benefits them, with no consideration for consumers.

I fucking hate it. Buy a USB C cable and it's a crapshoot whether it's USB 2 with no power delivery, or poor quality with power delivery. Just trying to find a good quality USB 3 cable is difficult, with 3.1 or 3.2, x2 or not, shitty control chips, etc etc.

[-] bloopernova@programming.dev 1 points 8 months ago

I've been trying some of the tinnitus masking videos from "Dale Snale". It's been hit and miss though, some of the frequencies closest to my own have actually made it worse! So I've been trying stuff further away from the 13KHz region.

[-] bloopernova@programming.dev 21 points 8 months ago

Yes, often. It doesn't really bother me that much, plus tinnitus generally overwhelms those sounds.

26
submitted 1 year ago* (last edited 1 year ago) by bloopernova@programming.dev to c/programming@programming.dev

This is solved, I was being dumb. Please see second EDIT below

This isn't really language specific, but if it helps I'm using Python. I can get the parameters just fine with the Traitlets module, but I'm still a novice really and figuring out which patterns to use is challenging.

Say you have a bunch of command line parameters. Some are booleans, where their presence means True, absence means False. Other parameters must accept one text string, and others can be used multiple times to build a list of strings.

It feels inefficient/wrong to use a bunch of IF/THEN/ELSE statements to decide what to do with the parameters, and prone to edge case errors. Is there a pattern that would invoke the correct method based on the combination of input parameters?

Examples:

app thing --dry-run --create --name=newname01 --name=newname02 --verbose

app thing --create --name=newname01 --name=newname02 --name=newname03

app job --cancel -i 01 -i 02 -i 03

EDIT: Via the Traitlets module, I get those arguments parsed and accessible as self.argname, so getting them into my app is working great. It's just deciding what to do with them that is confusing me.

Thank you, sorry for my noobness.

EDIT2: I think I understand where I'm going wrong:

I'm creating subcommands based on objects, not actions. i.e. appname thing --action should really be appname action --thing. Once things are divided up into actions, assigning things to those actions will be much, much easier and straightforward.

Sorry for a confusing and fairly pointless post :(

1

When I submit a comment, the edit window stays open. I then get prompted to Stay or Leave the comment, even though it's already been submitted. Is there a way to disable that behaviour?

view more: next ›

bloopernova

joined 1 year ago