Skip to main content



It rather amazes me the number of people who are suspicious of the pharma industry, who then turn around and put total and absolute faith in the supplement industry.

reshared this

in reply to Jonathan Lamothe

a shocking amount of pharmacuticals are essentially just rehashes of naturally cultivated bioactives.
in reply to know

@know FWIW, I wasn't making the argument that the pharmaceutical industry is trustworthy. 😉
@know
in reply to Jonathan Lamothe

i tend to resist popular criticism of the supplement industry. supplements are underrated.


Dear hlint:

I value your input, but in this case, I disagree.

hyperreal reshared this.





Our local grocery store has a program where you can get a box of assorted discounted produce so long as you're not picky about what's in it. Katy and I had been meaning to try this out for a while, and it's been a pretty good experience so far. We're both creatures of habit, especially where food is concerned, and finding new recipes to figure out how to use the stuff we normally don't have has been rather enjoyable on the whole.

If keeping your grocery bill low is something you're trying to do, I recommend seeing if your local grocer has such a program.

in reply to Jonathan Lamothe

@Judy Anderson My bigest gripe was that I'm sure their app is collecting all kinds of data on me behind my back (Flash Food in this case).


So all the posts I've missed over the past four days during the outage are starting to pour in now. So far the new machine's handling the influx of traffic like a champ. The old one would be really struggling right now.

I am happy about this.




Hooray! I finally got the last of the systems I depend on daily back up and running.

Perhaps something I should consider is a contingency plan for the (hopefully very distant) next time my server fails.



Outage Recovery


The machine that this node was running on failed on 2 Jul 2024. A new machine has been acquired and a restore from backup was performed. It'll probably take a couple days for the database to settle as it re-synchronizes with the rest of the network.

Edit: grammar (proofreading fail)

reshared this



I have a cheap multimeter because I do not require one frequently enough to invest in a decent one. I noticed something interesting though: there are a lot of seemingly metallic things in my apartment that are surprisingly good insulators? (e.g.: a (brass?) doorknob)

I thought the multimeter was the problem, but when I measure something like a wire, it seems to be okay. Is this normal?

I'll have to check if I have any spare resistors with known values laying around to better test the meter.

in reply to Jonathan Lamothe

This is why gold is used in electronics so much. Copper may be a much better conductor than gold, but copper has surface oxidation that can get bad, while a thin plating of gold is... golden!

Aluminum oxidizes within seconds after scraping a fresh layer and why it's so difficult to work with






Just checked the mail and a day that I have been dreading is coming to pass. My family doctor is retiring.

There's a new doctor taking on his patients, but my current doctor's records are all on paper and the new one's are digital. I need to have my records digitized (at my own expense) to have them carried over.

It gets even better though. I've been assured that the company that will manage this digital transition is "physician-managed" and my records will be "stored securely". I fully trust my doctor's medical opinion, but as for opsec... well... one of the options is essentially: "please write all your sensitive PII on this request form and email it to us in plaintext." Yes, I can drop the form off in person, but that's rather beside the point.



Fine, I'll just add a pragma to ignore this one warning rather than fixing it.

It's fine.

It doesn't annoy me at all.

At all.



A piece of information that is repeated frequently enough will have a tendency to assert itself as true in the subconscious mind. This is a fact that is frequently exploited by propagandists.

Perhaps reminding people of this frequently enough will help to defend them against the tactic (with the unfortunate side-effect of being really annoying).



uspol

Oh right, the debate...

I think I'm gonna step away from my feed for a bit. I just don't have the mental bandwidth to deal with it atm.

Unknown parent

Jonathan Lamothe
@Tobias I could have, but it was easier to just temporarily disengage.




Did #Haskell at some point make defining a module without an explicit list of names to be exported illegal? It's yelling at me when I try to do this now.
in reply to Jonathan Lamothe

I noticed a while ago that they added a warning for that but it would still compile, but I wouldn't be completely surprised if it were an error now.
It's actually annoying in ghci because the warning gets repeated every time you define something.
in reply to Jeremy List

@Jeremy List No, it's still just a warning. I was using the --pedantic flag though (which turns warnings into errors).





math

Trying to wrap my brain around finite fields. I get how one can construct a finite field with an order of a prime number, but I don't get how it works with powers of primes. Everything I try to read on the subject eventually ends up getting into notation that I don't know how to read.

I think I get that a GF(p^n) has something to do with converting the field into a polynomial where all the coefficients are of GF(p), but that's where my understanding starts to fall apart.

Can anyone point me at something that will help me to better understand this?

in reply to Jonathan Lamothe

Happy birthday indeed! I'm sorry I only have a crappy salutation and no help for your math problem 😁


One of the easiest ways to manipulate someone with propaganda is to start with a person who believes themselves immune to propaganda.


Okay, I'll admit it. Using #Haskell to talk to an #SQL database is not my favourite thing.

Programming Feed reshared this.

in reply to Boyd Stephen Smith Jr.

@Boyd Stephen Smith Jr. It's not so much the SQL part that's the irritating bit. It's that it doesn't really mesh super well with "the Haskell way of doing things".
in reply to Jonathan Lamothe

@BoydStephenSmithJr understandable. There's always a tension between "pleasant for the Haskeller" and "pleasant for the DBA" (or general SQL knower). We have the same problem at work (we sacrificed our DBA and used flora.pm/packages/@hackage/hpq… and its eDSL)



Had an optometrist's appointment today. Got confirmation of something I've known for some time: my depth perception sucks.

Sadly, it's not correctable, but it's been like that for as long as I can remember. I've learned to adapt.







Not sure, but I think the cat may have developed an intolerance to his super expensive prescription food.

That's neat.



Katy just got an ad for a "grounding sheet"... It's literally a blanket that plugs into a wall outlet so that you can be grounded while you sleep.

In case you're probe to static buildup in your sleep, I guess? How is this a thing?



nerdy math shower thought

So, I learned about Hamming codes a while back. They're pretty neat, but a lot of modern technology uses Reed-Solomon instead. I've wanted to learn about that one, but it involves some pretty heavy math that often goes over my head.

I've found a few different videos on YouTube that try to explain it "simply" but they all tend to gloss certain details over. After watching a few of them, I've noticed that the parts they gloss over are different from each other, and I'm wondering if I can just hunt down enough of them that I can piece the rest together myself.

All things considered, this seems a weirdly fitting way to learn it.

in reply to Jonathan Lamothe

nerdy math shower thought
For those interested, these three videos had enough information between them for me to piece it together:


𝚛𝚊𝚝 reshared this.

in reply to Jonathan Lamothe

nerdy math shower thought
Actually, I don't think that was the last piece...


Haven't checked in on the #minetest server in the past few days because I've been otherwise occupied. Had a look today and to my surprise, there was no immediately apparent spawn griefing.


Logged into my online banking to be greeted by a notification about an "unusual transaction". It was today's vet visit.

Yes. It was unusual. It was also entirely legit, but thanks.

in reply to Jonathan Lamothe

As a side note: I sent my parents a text asking if we could borrow $X to hold us over until next pay day. My mother replied by saying that she'd "accidentally" sent $(X + Y) and to spend the extra as we see fit. We have a tiny bit of breathing room again.

She is amazing, and I am so fortunate to have family who are able to help out in an emergency. It's not lost on me that many don't.



pet medical issues, stress

Benny (our cat) was under the weather yesterday so we took him to the vet. We went home with some meds and general optimism. He seemed to perk up later in the day.

This morning he's super lethargic and uninterested in his food. Which is super not like him. Have another appointment with the vet in an hour and a half.

Not only am I stressed out about the cat, but I'm also stressed about the added financial burden of two unexpected vet visits (and I feel like an asshole about the latter).

We'll figure it out, but if the universe could cut us some slack for like five minutes, that'd be great.

Edit: typo

in reply to Jonathan Lamothe

pet medical issues, stress
Preliminary test results look good-ish. Fingers crossed. 🤞
in reply to Jonathan Lamothe

pet medical issues, stress
Well, the appetite stimulant is working. He just got his usual level of hangry with me. Now he wants more. Still need to do some follow-up tests, but this removes a tremendous amount of stress.
in reply to Jonathan Lamothe

pet medical issues, stress

Sensitive content






SQL (sqlite3) question

I've run into a snag with an sqlite database I've been working on. Below is a simplified example of the problem.

Suppose I have the following table:

CREATE TABLE "prices" (
    "id"    INTEGER NOT NULL UNIQUE,
    "name"  TEXT NOT NULL UNIQUE,
    "list_price"    NUMERIC NOT NULL,
    "sale_price"    NUMERIC,
    "tax_rate"  NUMERIC NOT NULL,
    PRIMARY KEY("id" AUTOINCREMENT)
);

Is there a way to do something like the following?
SELECT
    name,
    CASE
        WHEN sale_price IS NULL
            THEN list_price
        ELSE sale_price
    END AS price,
    price * tax_rate AS tax
FROM prices;

The tax column doesn't seem to acknowledge the price column's existence, presumably because it's a column in the query rather than the source table. I could re-implement the CASE logic for the tax field, but that feels inelegant and error-prone.

Is there a better way to do this?

Shannon Prickett reshared this.

in reply to Jonathan Lamothe

You can use WITH to do it in two steps:
WITH pre_price AS (
    SELECT
        name,
        CASE WHEN sale_price IS NULL
            THEN list_price
            ELSE sale_price END
        AS price,
        tax_rate FROM prices
    )
    SELECT
        name,
        price,
        price * tax_rate AS tax
    FROM pre_price;
in reply to Jonathan Lamothe

SQL (sqlite3) question

Sensitive content

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.