[-] Quibblekrust@thelemmy.club 10 points 1 week ago

I would argue it's still mysterious. If it were simple, we wouldn't have what's called the measurement problem.

Also, there is more than one way to measure something, and not all of them require a real photon to hit some particle. In the Elitzur–Vaidman bomb tester, you can "measure" whether the quantum bomb's sensor is working or not without actually hitting it with a photon. Instead, you hit it with the "chance" of a photon hitting it, and that's good enough. (It'll still blow up half of the time, but you can design the tester with multiple recursive tiers to increase your tested-but-unexploded bomb yield to arbitrarily close to 100%.)

That's pretty mysterious in my mind.

[-] Quibblekrust@thelemmy.club 10 points 3 weeks ago

Oh god, that's worse than I've seen where a SQL query joining 10 tables aliased all of the tables as a, b, c, d, e, f, g, h, i, j.

It was a mess, and as a new dev on the project, trying to figure out which where clause was for which table and how things worked was a fucking nightmare. Trying to keep a dictionary of letters to real table names in your head as you looked at the query was very taxing. In the end, I just fixed it all to stop using aliases. Or to use short abbreviations.

Here's a mock example:

SELECT
    j.delivery_eta,
    c.cat_desc,
    a.part_number,
    h.region_label,
    f.wh_loc,
    e.emp_last,
    g.state_flag,
    b.mfg_title,
    i.ship_track_code,
    d.order_sum,
    a.created_on,
    j.last_scanned_at,
    e.emp_first,
    c.cat_code,
    g.state_level
FROM parts AS a
INNER JOIN manufacturers AS b 
    ON a.manufacturers_id = b.id
INNER JOIN categories AS c 
    ON a.categories_id = c.id
INNER JOIN orders AS d 
    ON a.orders_id = d.id
INNER JOIN employees AS e 
    ON d.employees_id = e.id
INNER JOIN warehouses AS f 
    ON a.warehouses_id = f.id
INNER JOIN inv_state AS g 
    ON a.inv_state_id = g.id
INNER JOIN regions AS h 
    ON f.regions_id = h.id
INNER JOIN shipments AS i 
    ON d.shipments_id = i.id
INNER JOIN logistics AS j 
    ON i.logistics_id = j.id
WHERE
    (b.mfg_title LIKE '%Corp%' OR b.mfg_title LIKE '%Global%')
    AND c.cat_desc NOT IN ('Unknown', 'None', 'Legacy')
    AND (d.order_sum > 1000 OR d.order_sum BETWEEN 250 AND 275)
    AND e.emp_last ILIKE '%berg'
    AND (f.wh_loc IN ('A1', 'Z9', 'M3') OR f.wh_loc IS NULL)
    AND g.state_flag IN ('ACT', 'PENDING')
    AND h.region_label NOT LIKE 'EXT-%'
    AND (i.ship_track_code IS NOT NULL AND i.ship_track_code <> '')
    AND (j.delivery_eta < NOW() + INTERVAL '90 days' OR j.last_scanned_at IS NULL)
    AND (a.part_number ~ '^[A-Z0-9]+$' OR a.part_number IS NULL)
    AND (
        (c.cat_code = 'X1' AND g.state_level > 2)
        OR
        (e.emp_first ILIKE 'J%' AND d.orders_id IS NOT NULL)
    );

[-] Quibblekrust@thelemmy.club 10 points 1 month ago

Woah, woah, woah... Are you trying to dissuade distro hopping?

[-] Quibblekrust@thelemmy.club 9 points 2 months ago

Pinholes diffract light.

The diffraction effects from a pinhole camera are not what make them work. In fact, diffraction makes the photographs worse than they otherwise would be. The pinhole makes an effective aperture for photography because it's small size produces small circles of confusion on the film plane. Ideally, you would make the hole as small as possible, but beyond a certain (small) size, defraction becomes the dominant source of blurring. So the size of the pinhole should be chosen to yield the best balance between geometric blur and diffraction blur.

The diffraction is merely a limit to the smallness of the aperture, and not what creates the image.

[-] Quibblekrust@thelemmy.club 10 points 3 months ago

Did you know Lemmy has actual footnote syntax?

Like this[^1]

[^1]: Some footnote

The best part is, the footnote text can be anywhere in the body (in it's own paragraph). You can add them as you write, not just at the end.

Source of the above:

Like this[^1]

[^1]: Some footnote

The best part is, the footnote text
can be anywhere in the body (in it's
own paragraph). You can add them
as you write, not just at the end.
[-] Quibblekrust@thelemmy.club 9 points 3 months ago

You should read the "why", but...

Full list of countries suspending U.S. parcel shipments

  • Australia
  • Austria
  • Belgium
  • China
  • Czechia
  • Denmark
  • Finland
  • France
  • Germany
  • India
  • Italy
  • Japan
  • Netherlands
  • New Zealand
  • Norway
  • Russia
  • Singapore
  • South Korea
  • Spain
  • Sweden
  • Switzerland
  • Taiwan
  • Thailand
  • United Kingdom
[-] Quibblekrust@thelemmy.club 10 points 3 months ago* (last edited 3 months ago)

And most devs I know use it everyday, so... 🤷

Especially for repetitive mundane code, like they said. It's much faster to check code for correctness than it is to write it in the first place.

"I need to restructure this directory tree. If a file has "index" in the name, then it has to go in a parallel directory structure starting at "/home/repos/project/indexes/" and remove the word "index" from the name. Use the same child folders as the original."

There, I just finished a custom Python script to accomplish that. Can I do it myself? Yes. Can I do it in 30 seconds? No. Why would I waste my time writing such a mundane script for a one-off thing? And it can do so much more.

[-] Quibblekrust@thelemmy.club 11 points 4 months ago* (last edited 4 months ago)

It comes with a free Portal-universe game that teaches you how all the controls work. It's fun. Play it immediately. It will teach you that the thumbsticks are capacitive. Turns out that's a useless feature, so just get some nice thumbstick caps that make them larger, more rubbery, and more comfortable.

I highly recommend a 180° USB-C adapter to use the power cord while playing. It makes the cord angle down instead of up, which feels more natural. Plus, I feel like it would be gentler on the cord and USB-C port if the cord got tugged hard when plugged into an adapter instead of directly into the Steam Deck.

Plus, with a 180° adapter, you can keep the Deck in it's case while charging. Normally you can't do this because the top of the Steam Deck faces the hinge of the case. But the adapter fits in the case OK and reroutes the wire downward. It definitely raises the deck up slightly, but you can still zip the case halfway closed. I do this because I live in a very small apartment with a high chance of knocking or spilling something onto the Steam Deck if I were just to leave it laying around.

Fun fact: the touch pads don't actually click when you press them like a button, but you will swear they do! The haptic feedback mechanism is incredibly good.

Major Overheating Issue

I don't know how this is not a more widely complained-about problem.

I paired a Nintendo Switch Pro Controller to my deck, played a game, then put the deck in its case while asleep. (You tap the power button and the deck goes to sleep.) Well, apparently, "Wake on Bluetooth" is enabled by default and you can't turn it off! So, I threw my Nintendo Switch controller in a drawer, and of course a button got hit. It woke up my Steam Deck in it's case. I had a game running, so the Steam Deck starts rendering the game and creating a lot of heat that is just being circulated within the case by the fan. The Deck got insanely hot!

I noticed it sometime later only because I heard it make a sound. When I took it out, I used my infrared thermometer to measure the back of the deck, and it was over 140° F. Uncomfortable to touch! It would have sat there for hours like that if I hadn't noticed.

Solution: I had to install the Decky Loader plugin system in order to install a plugin that disables Wake on Bluetooth. I still don't see any way to disable it without using Decky. Decky is pretty great though, and it has tons of cool plugins. Of course, you could also just turn off Bluetooth before putting this Steam Deck in its case, but if you forget, it'll be a problem.

[-] Quibblekrust@thelemmy.club 10 points 4 months ago
let $random_game_publisher = "Ubisoft";
print("But on windows every {$random_game_publisher} is allowed...?");
> But on windows every Ubisoft is allowed...?

I'd like to report an issue with your code.

[-] Quibblekrust@thelemmy.club 9 points 6 months ago

Chicken sashimi is a thing in Japan. It's slightly cooked on the outside.

https://youtu.be/U6rVZng-AnY

[-] Quibblekrust@thelemmy.club 11 points 7 months ago* (last edited 7 months ago)

lemmy is just gobbling it up every day. It's so tiring.

Are you fucking serious? All I ever see on Lemmy is prople saying "AI slop" over and over and over and over again... in like every comment section of every post. It could be a picture that was actually hand-drawn, or a photograph that was definitely not AI, or articles written by someone "sounding like AI". The AI hate on Lemmy is WAY overpowering any support.

[-] Quibblekrust@thelemmy.club 10 points 7 months ago

They lost me at "whom were".

view more: ‹ prev next ›

Quibblekrust

joined 10 months ago