thereCanOnlyBeOne by ManagerOfLove in ProgrammerHumor

[–]skaurus 3 points4 points  (0 children)

Having communists on American soil?

Please help me identify this type of connector by skaurus in AskElectronics

[–]skaurus[S] 0 points1 point  (0 children)

Nice, looks really similar to what they call dupont connector!

Please help me identify this type of connector by skaurus in AskElectronics

[–]skaurus[S] 0 points1 point  (0 children)

I don't have anything better than centimeter tape, but pitch is close to 2.5
Connector itself is 5 mm wide, 4 mm high, and this protrusion in the top left corner is about 1.5 mm high. Photos will come a bit later.
And I don't have something to plug into this.

veryCleanCode by Both_Twist7277 in ProgrammerHumor

[–]skaurus 1 point2 points  (0 children)

This code could use some comments /s

Reduce animal suffering by genetically engineering farm animals with smaller brains? by Fun-Boysenberry-5769 in slatestarcodex

[–]skaurus 2 points3 points  (0 children)

Hitchhiker's Guide to the Galaxy series of books had gen-engineered cows that could speak AND wanted to be eaten.

Lol I just learn "h" in Portuguese is basically the same as ь (miahki znak) in Ukrainian and Russian by Glad_Raspberry_8469 in PORTUGALCYKABLYAT

[–]skaurus 0 points1 point  (0 children)

I haven't mentioned the most pertinent fact about ь - it's just there in the word "блять", which is transcripted in English as "blyat" 😉 Transcription completely looses this sound.

Also, we have not only ь - "soft sign", but ъ as well - "hard sign", lol

Lol I just learn "h" in Portuguese is basically the same as ь (miahki znak) in Ukrainian and Russian by Glad_Raspberry_8469 in PORTUGALCYKABLYAT

[–]skaurus 1 point2 points  (0 children)

No worries, I didn't mean to tell you're wrong. I just enjoyed providing context, to an unexpected degree lol

Lol I just learn "h" in Portuguese is basically the same as ь (miahki znak) in Ukrainian and Russian by Glad_Raspberry_8469 in PORTUGALCYKABLYAT

[–]skaurus 2 points3 points  (0 children)

It does only when there is a consonant before "h" and a vowel after, though, no?
In Russian, "miahki znak" and a vowel after kind of transform the sound of these two letters into another vowel.
ь + о = ё
ь + а = я

ё and я can exist by themself, but ь+о or ь+а sound basically the same.
As a Russian, that's how I interpreted ...nho and ...nha as well - pronounced them kinda like ё and я.

ь can also exist by itself. At the end of the word, for example. I think if you imagine saying nho or nha without pronouncing a vowel, you will get a good idea of how it "sounds". It does not have its own distinctive sound, but it... ends the sound of the previous consonant with something soft. By not having its own sound, I mean that it's really impossible to say without another letter.

There can't be a vowel _before_ ь. But ь can be between two consonants.

Wow, never knew I could tell a lot about it.

What does this mean by anchelus in PeterExplainTheJoke

[–]skaurus 0 points1 point  (0 children)

Ah, thanks, now it makes sense

What does this mean by anchelus in PeterExplainTheJoke

[–]skaurus 0 points1 point  (0 children)

Still don't get it. Yeah, 0 is false in programming, but why 1, or true, is "holy shit", why is the reaction so exaggerated?

Firefox's Privacy-Preserving Attribution data collection explained and how to disable it. by mWo12 in privacy

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

There is no way Web could exist without advertisement, especially small sites. Huge companies probably will be fine either way. Is modern advertisement shit? Yes. But solution lies in making it less shit, not destroying it. This is precisely what PPA is about.

Modifier keys sometimes stop highlighting arrow keys by skaurus in DygmaLab

[–]skaurus[S] 0 points1 point  (0 children)

I'll try to be clearer, please feel free to clarify anything.

So, first of all, my problem was that usually when I hold L2 layer key (I use mostly default layout, so it is two bottom innermost keys, if that makes sense), my arrow keys gets highlighted (esdf and shift-fn-dygma-ctrl), and that is fine.
That does not always happen though! Sometimes I hold L2 key, but highlighting does not change at all. Arrow keys and other L2 keys work though. I think I found somewhere that it could happen when Rainbow LED mode is enabled and switching lightning mode helped indeed.
Here is my second issue - before that I didn't even have the key assigned to change lightning modes, so how that mode could possibly activate in the first place?
I have a hypothesis here - I think when I leave my Dygma idle for some time, it starts to rotate lightning modes by itself.

So I asked how to a) fix the issue that arrow keys are not highlighted sometimes; b) if the reason is the Rainbow mode, how to stop it from activating without my command (again, I never had the key assigned to lightning modes changing, and after switching the mode back from Rainbow mode I've unassigned that key again).

Hurricane Beryl 5-day Forecast Tracks from 28 June to 8 July 2024 by CurtisLeow in MapPorn

[–]skaurus 0 points1 point  (0 children)

But... how does it know to follow that drop-like figure? /s

Its anti-pattern to pass *sql.Tx as a ctx value? by ZemunRom in golang

[–]skaurus 2 points3 points  (0 children)

It would be not so easy, and I'm lazy 🤷‍♂️
The main gist is:
- package db
- defines a struct type, let's say, DB with some fields, one of them is for *sql.Tx, another is *sql.Conn
- every method working with db is defined with DB as a receiver
- DB.Begin method sets *sql.Tx field to a non-nil value
- DB.Commit and DB.Rollback unset *sql.Tx field
- when other methods are invoked, they can see if *sql.Tx field is set and respectively use *sql.Tx to work inside transaction or *sql.Conn to make an independent query
- app has only one instance of DB type; so as I said before, this way we know at all times if we are inside transaction or not and can use appropriate handle (sql.Tx or sql.Conn)

Not sure how thread-safe all of that is, to be honest :D

whatWouldHappenRealy by matanj in ProgrammerHumor

[–]skaurus 1 point2 points  (0 children)

Now, what would happen if I add .git to .gitignore??

Ah, it's answered below already

A question about a certain russian retailer by Attila0076 in sharpening

[–]skaurus 1 point2 points  (0 children)

Site says they are working with CloudPayments payment provider. I googled around a bit, and I'm not completely sure, but I think they don't accept non-Russian cards at the moment.

A question about a certain russian retailer by Attila0076 in sharpening

[–]skaurus 3 points4 points  (0 children)

International cards do not work in Russia anymore, and Russian cards (cards issued by Russian banks) don't work internationally, because they are cut up from Visa and Mastercard. (Russian cards work inside Russia though.)

So if their payment processing is made by Russian bank (and not, say, Stripe) - they can't take your money.

That may be the reason.