@sjb@mstdn.io
@sjb@mstdn.io avatar

sjb

@sjb@mstdn.io

Once there was an elephant,
Who tried to use the telephant—
No! No! I mean an elephone
Who tried to use the telephone—

This profile is from a federated server and may be incomplete. Browse more on the original instance.

foo, to random
@foo@fosstodon.org avatar

Nobody makes butter dishes which are specific to west coast sticks. They're all either designed without even realizing west coast sticks exists, or they're slightly larger than east coast sticks and you can kind of cram west coast sticks into it with a lot of wasted space on the ends.

sjb,
@sjb@mstdn.io avatar

@foo In England butter is more brick-shaped. I was surprised by the square cross-section when I saw American ones.

tedu, to random

Hmm, so if you mute a thread, that should also mute quotes of that thread, no? Increasingly complicated database queries.

This wouldn't be a problem if mastodont set the context property to reference the existing thread, but obviously the dont don't.

sjb,
@sjb@mstdn.io avatar

@tedu Each post has to contain a list of threads it has been infected by? Like if there's a quote of a quote of a quote, and they're all from three different threads, and you've muted one.

sjb, to space
@sjb@mstdn.io avatar
sjb,
@sjb@mstdn.io avatar

@gimulnautti It looks like the accretion disc is rotating, but maybe not the black hole itself.

sjb, to random
@sjb@mstdn.io avatar
foo, to random
@foo@fosstodon.org avatar

My Midwesterner heritage is currently mad that the store brand 75 oz box of dishwasher detergent powder is out of stock and I need to pay 15% more to buy the name brand which is the exact same... before remembering I used to buy dishwasher detergent pods, which are up to 10x the cost of boxed detergent and do the exact same thing.

I should go re-watch @TechConnectify 's rant to help me relax.
https://www.youtube.com/watch?v=_rBO8neWw04

sjb,
@sjb@mstdn.io avatar

@foo When I went to buy powder recently, the small container was out, so I ended up with a larger one that I worked out would last me 4-5 years.

sjb, to random
@sjb@mstdn.io avatar

Back to this game with the astonishingly bad deer AI. It actually spawned two stacked on top of each other. What are the odds of that in a map of several acres?

sjb,
@sjb@mstdn.io avatar

@fell As far as I can tell, there are only two deer in total!

loke, to random
@loke@functional.cafe avatar

Reading an article about EV's here. I don't think I'll be able to own an Audi e-tron.

sjb,
@sjb@mstdn.io avatar

@loke Is there much point in having a car in Singapore? Seems like the authorities are trying to discourage it.

sjb,
@sjb@mstdn.io avatar

@loke Wondered if it was some tradeoff like that. Is the cycling infrastructure any good?

fell, to linux
@fell@ma.fellr.net avatar

Unsure which Linux distribution to use? I 100% agree with this article by @Mastodon:

https://www.unsungnovelty.org/posts/01/2024/a-linux-distro-recommendation-framework-and-my-picks-for-2024/

tl;dr: Either Arch Linux or Linux Mint.

sjb,
@sjb@mstdn.io avatar

@soulsource @fell @Mastodon I went for Debian Stable.

foo, (edited ) to random
@foo@fosstodon.org avatar

"How much is the $7 pizza?" "$10."
"How much is the $7 pasta?" "$9."
"How much are the $7 breadsticks?" "Do you really need to ask that? ... actually, $7, coincidentally."

(These aren't prices before discounts; they are literally the discounted rates on the $7 menu.)

sjb,
@sjb@mstdn.io avatar

@foo Funnily enough, in my area of Long Island, they're all $7:

tedu, to random

Going to incorporate "volume_up" into my daily lexicon.

sjb,
@sjb@mstdn.io avatar

@tedu Was that a LLM bot posting about the risks of LLM bots (when combined with "biological robots", obviously).

sjb, to random
@sjb@mstdn.io avatar

Asked the machinist to drill some more holes because my first attempt at mounting the experimental platform was wobbly as my cheap Amazon office chair.

tedu, to random

Still having a hard time deciding how much effort to spend rebuilding threads.

Old way: just use context. This is fast and simple, but misses posts when people don't set it.

New way: grab the thread, then check replies for missing parents, and go back to the database to load them. This works in many cases, particularly when coming in at the bottom of a thread, we get everything previous. But it still misses mismatched replies. We don't know what we're missing below us.

The usual fix is a CTE query. But they don't work well if posts are actually missing from the DB. Or deleted. The whole idea behind using context is that it's resilient against broken threads.

I guess the ultimate fix would be search for the context, do a CTE query for all the results, then do more context queries for any contexts seen, then iterate endlessly until we suck it all in.

sjb,
@sjb@mstdn.io avatar

@tedu Sounds like a "find the connected component of a graph" algorithm.

dpiponi, to random
@dpiponi@mathstodon.xyz avatar

This is getting ridiculous.

(That's for real BTW)

sjb,
@sjb@mstdn.io avatar

@dpiponi It also looks like those pictures might be AI-generated.

sjb, to random
@sjb@mstdn.io avatar

The search trees for Sudoku puzzles. Easy/medium are a straight line of forced moves. Expert level has lots of branches. The hardest known one has a huge number of branches (I wasn't able to plot them all).

image/png
image/png

tedu, to random

I found a new lemmy clone called sublinks. It's one half written in Java, one half written in go, and one half written in typescript.

Seems like too many halves, but math is hard, and better to be a have than have not, right?

I tried looking at the federation code, but it's splatted across 100 files. I did find this gem in the database code. The database type is called PostgresDB but it only connects to MySQL.

<span class="kw">func</span> <span class="st">(</span>d <span class="op">*</span>PostgresDB<span class="st">)</span> Connect<span class="st">(</span><span class="st">)</span> error <span class="st">{</span>
	database<span class="op">,</span> err <span class="op">:=</span> sql<span class="op">.</span>Open<span class="kw">(</span><span class="st">"mysql"</span><span class="op">,</span> os<span class="op">.</span>Getenv<span class="cm">(</span><span class="st">"DB_DSN"</span><span class="cm">)</span><span class="kw">)</span>

I do like some nontraditional naming conventions, but even I am not this diabolical.

sjb,
@sjb@mstdn.io avatar

@tedu Maybe they started with Postgres, made a generic interface including MySQL but didn't want to change the name, then deleted the Postgres part?

tedu, to random

Enough with the craptastic late stage capitalism. Kentucky knows what's up, gonna retvrn us to mid stage capitalism.

https://kypolicy.org/house-bill-500-takes-away-kentucky-workers-lunch-and-rest-breaks-and-cuts-their-pay/

sjb,
@sjb@mstdn.io avatar

@tedu
"Currently, businesses must provide a lunch break every three to five hours"
That feels like an odd way of defining lunch. If I work a long day I'm entitled to two lunch breaks?

sjb, to random
@sjb@mstdn.io avatar

There's a certain excitement about doing 8 boring things in a day, because that's 8 fewer boring things I have to do later on.

glyph, to random
@glyph@mastodon.social avatar

Proposed new jargon: “toothbrush botnet” to mean “unfounded public panic about an information security threat derived from incompetent journalism about hypothetical scenarios”

Example usage: “it turns out juice jacking was just a toothbrush botnet”

sjb,
@sjb@mstdn.io avatar

@glyph Usually it's believable because something similar was true.

For instance there was a DDoS attack by assorted IoT devices: https://www.engadget.com/2016-10-28-that-time-your-smart-toaster-broke-the-internet.html

cjd, to random
@cjd@pkteerium.xyz avatar

The funniest thing about this whole Gemini debacle is that there's no possible way this could have been a "mistake" or a "rogue employee". People knew they were releasing this.

And that creates a really tough situation for Google management because they know it's an adult daycare, their investors know it's an adult daycare, and thanks to this little fuckup, it's becoming more and more ridiculous for anyone to even play-act that it's anything other than an adult daycare.

Tech investors aren't stupid, they watched Musk take an absolute pig of a platform and cut the team by 90% while still keeping it running. The calls between activist investors and Google management must be exceedingly tense.

sjb,
@sjb@mstdn.io avatar

@lain @cjd @harblinger The Gemini thing is staggeringly stupid, but Google's search is getting worse too. So perhaps generalised corporate rot has set in?

tedu, to random

A few notes on voting counts and Lemmy. I was looking into adding counts to azorius and added some logging to see what was happening.

First off, tons of traffic. I knew this, but it's kinda ridiculous. I think in my mind I rarely vote things up or down, but lots of users seem to prefer voting on every post and comment they see. Times a few hundred users, this turns into lots of votes.

Saving every vote would result in tons more database traffic. I figured maybe I can just keep a running count of Likes - Dislikes for each post, and then periodically write it back to the database.

Haha, no. Sometimes you get 100 or more votes for the same comment from the same person. I think this is not deliberate manipulation, but just Lemmy glitching out, but the result is the same. You have to record not just the vote but also the voter for every Like to discard duplicates and keep an accurate count.

Maybe I'll work on this while I watch the next season of Halo or something, but it may take a while.

sjb,
@sjb@mstdn.io avatar

@tedu You also have to record the liker or disliker so they can later retract their like.

kaia, to random
@kaia@brotka.st avatar

:ChenShrug: same joke works Europe-wide I thonk

sjb,
@sjb@mstdn.io avatar

@kaia Any of those, old or new, would beat what England currently builds.

sjb, to random
@sjb@mstdn.io avatar

Things are so much easier to remember when you organise them spatially (have an area for a given task, or put things to go out next near the door).

Computers and the internet kind of ruined this by making everything available everywhere. It actually helps to have FEWER choices but relevant ones.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • InstantRegret
  • rosin
  • modclub
  • Youngstown
  • khanakhh
  • Durango
  • slotface
  • mdbf
  • cubers
  • GTA5RPClips
  • kavyap
  • DreamBathrooms
  • ngwrru68w68
  • megavids
  • magazineikmin
  • osvaldo12
  • tester
  • tacticalgear
  • ethstaker
  • Leos
  • thenastyranch
  • everett
  • normalnudes
  • anitta
  • provamag3
  • cisconetworking
  • lostlight
  • All magazines