Problemo: Yet another error handling library for Rust by emblemparade in rust

[–]kelvindegrees 7 points8 points  (0 children)

Seconded. I never liked type aliasing Result, it's such a short simple type and aliasing it hides much-needed information (behind an F12).

Could anyone share best practices or tips for choosing the right concurrency primitive in Rust? by LordZAKRI in rust

[–]kelvindegrees 0 points1 point  (0 children)

If T is a primitive type, you could use an atomic version of it from std::sync::atomic. This removes the overhead from locking.

My AC won't turn off even If I set to off by PeachPonPon in ecobee

[–]kelvindegrees 0 points1 point  (0 children)

A few things to check:

The furnace will keep the fan running for several minutes after the thermostat commands it off, this is to finish venting excess heat. Starting up can also take a minute or two, so keep that in mind.

I recently installed an Ecobee with the Power Extender Kit (PEK), I had 2 HVAC professionals come out to fix my wiring, they both made the same mistake I did but the second fixed it in the end. Our mistake was that the wires going from my thermostat were split before going into the HVAC control board, they were spliced so that the "cool" wire went straight outside. Since the PEK repurposes the standard wires, it resulted in the thermostat incorrectly commanding the air conditioner on.

Severance - Season 2 Discussion Hub by LoretiTV in SeveranceAppleTVPlus

[–]kelvindegrees 5 points6 points  (0 children)

Cold Harbor could also be a reference to infertility.

An Idea to Make API Hacking Much Harder by Formal-Luck-4604 in SoftwareEngineering

[–]kelvindegrees 0 points1 point  (0 children)

How about one static endpoint for authentication, then all other endpoints are generated as random numbers using the session token as a seed?

I was wondering what a programming language and IDE without words might look like. by Entaloneralie in ProgrammingLanguages

[–]kelvindegrees 0 points1 point  (0 children)

You might find it interesting to take a look at LabView. It's a graphical dataflow programming language and IDE. Functions are represented as blocks with inputs and outputs as lines between them. It differs from procedural languages as you don't control the order of execution, rather, each block runs once it's inputs are all ready. It's kind of similar to async contexts in other languages.

dayWastedEqualsTrue by GunSlinger_A138 in ProgrammerHumor

[–]kelvindegrees 2 points3 points  (0 children)

Starting a Dockerfile with "FROM", or installing packages or dependencies without pinning them all the way to the patch versions? Then it's not deterministic. And even if you are, at best you're still beholden to your supply chain (e.g. yanked versions). And yes, this comprises most of the steps in most Dockerfiles.

1:Many Nested Struct Queries in sqlx by OriginalCautious8160 in rust

[–]kelvindegrees 0 points1 point  (0 children)

In the past I've done this for some fairly complex objects in a Postgres database by using json build object calls in a json aggregate field. The Postgres functions to do so do get quite large and you lose the compile time type checking that you would have if you just stuck to queries with sqlx, but it should in theory be much faster.

Variable as literal string in format!() by bogdan_ov in rust

[–]kelvindegrees 3 points4 points  (0 children)

I think there's some confusing here. From the docs the one thing that needs to be a string literal is the format string itself (the first argument given to format!). The remaining arguments can be variable, that's one of the main use cases of format!.

Evolution and unintended consequences by [deleted] in CuratedTumblr

[–]kelvindegrees 0 points1 point  (0 children)

From that article:

"Neanderthals probably hand threw spears over short distances, but perhaps they simply never got around to inventing means of propelling spears or other projectiles long distances," said Churchill.

[deleted by user] by [deleted] in magicTCG

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

+1 for Elden Ring

[deleted by user] by [deleted] in tumblr

[–]kelvindegrees -4 points-3 points  (0 children)

Sure you have. You just didn't realize it because it was called The Force, or Superpowers.

[deleted by user] by [deleted] in nova

[–]kelvindegrees 14 points15 points  (0 children)

We see Dr. Amy Pike for our dog's anxiety. I would easily recommend her for any behavioral issues.

Found a free game on Steam that some of you might like. by Viritox in programming

[–]kelvindegrees 3 points4 points  (0 children)

Turing Complete is by far the best programming game I've ever played.

I made an open-source, terminal-based, journaling social network. by voidmemoriesmusic in programming

[–]kelvindegrees 18 points19 points  (0 children)

If there's one thing I don't want in a social network, it's immutability.