@bde@functional.cafe
@bde@functional.cafe avatar

bde

@bde@functional.cafe

Interested in software development, photography, math, physics, cooking, and baking. The worst kind of dilettante.

Hashtags: #Haskell #Nix #Swift #iOS #Mac #macOS #zsh #math #photography #physics #ParticlePhysics #RochesterNY #ClassicalMusic #WDW #Epcot

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

bde, to random
@bde@functional.cafe avatar

“While it is already possible to send iMessages with bubble effects or full-screen effects, such as invisible ink or confetti, the text effects would allow you to add animations to individual words within a message.” — MacRumors

You know, I would find it a lot more useful if they added support for, like, italicized text? Monospaced text? I’ll grant that I am An Old but those would add a lot more to my texts than more effects.

(Add the effects too, I don’t mind! But basic formatting seems like a more fundamental feature to me.)

bde, to random
@bde@functional.cafe avatar

I have not called
the store
that installs
air conditioners

even though
I said I would call
yesterday

Forgive me
I’ll call today
All right
I’ll call now

RosaCtrl, to SwiftUI
@RosaCtrl@mastodon.social avatar

Am I the only one that thinks deprecating this modifier was a mistake? Any available alternative requires to keep the state in two properties, one for the data, another for its visibility, super annoying, so what I’m missing? https://developer.apple.com/documentation/swiftui/view/alert%28item:content:%29

bde,
@bde@functional.cafe avatar

@RosaCtrl That’s an annoying change 😐

Maybe you can at least avoid having two properties by defining an ad hoc binding right in the view? The view model would have

@Published var someProperty: Int? = nil<br></br>

and the view would have

.alert(<br></br>    "Title",<br></br>    isPresented: Binding<Bool>(get: {<br></br>        viewModel.someProperty != nil<br></br>    }, set: { newValue in<br></br>        if newValue {<br></br>            // Hopefully SwiftUI will never try to set the boolean to true!<br></br>        } else {<br></br>            viewModel.someProperty = nil<br></br>        }<br></br>    }),<br></br>    presenting: viewModel.someProperty,<br></br>    actions: { _ in }<br></br>)<br></br>

This definitely isn’t ideal though.

bde,
@bde@functional.cafe avatar

@RosaCtrl Glad it was helpful 🙂

bde, to random
@bde@functional.cafe avatar

Get your mom something really special this Mother’s Day. Shop at Oedipal Arrangements.

shadowfacts, to random
@shadowfacts@social.shadowfacts.net avatar

she typeset on my documents till i overfull \hbox

bde,
@bde@functional.cafe avatar

@shadowfacts badness 1000000 😮‍💨

tom, to random
@tom@labyrinth.social avatar

it actually works just as well. maybe better

bde,
@bde@functional.cafe avatar

@tom the only ketchup with true geriatric properties

bde,
@bde@functional.cafe avatar

@tom it’s my preferred dipping sauce for fry hulud

bde, to random
@bde@functional.cafe avatar

🖐️ redirect loop

👉 100 gets

bde, to random
@bde@functional.cafe avatar

Wikipedia:

The [Fermat polygonal number] theorem is named after Pierre de Fermat, who stated it, in 1638, without proof, promising to write it in a separate work that never appeared.

The guy definitely had a signature move.

shadowfacts, to random
@shadowfacts@social.shadowfacts.net avatar

enshittification is when software bad

bde,
@bde@functional.cafe avatar

@shadowfacts It was too good of a name. People see the word and have no trouble imagining what it might mean, so they assume that’s what it does mean, and yeah, now it means essentially nothing

bde, to random
@bde@functional.cafe avatar

Great Bearer Token Reef

janellecshane, to random
@janellecshane@wandering.shop avatar

ChatGPT can generate Magic Eye pictures!

At least according to ChatGPT.

https://www.aiweirdness.com/hidden-3d-pictures/

bde,
@bde@functional.cafe avatar

@janellecshane First time I’ve ever been able to see one of these 😂

bde, to random
@bde@functional.cafe avatar

I have to assume a lot of people don't understand how deep the AI rabbithole for Kagi goes […] If AI is the thing you are trying to get away from, moving [from Google] to Kagi is a lateral move at best.

@lori, Why I Lost Faith in Kagi

tmcw, to random
@tmcw@mastodon.social avatar

this will do nothing for my brand but I want to just copy edit and improve some of my old blog posts that I treasure before I write new ones

bde,
@bde@functional.cafe avatar

@tmcw I get a lot of satisfaction out of copyediting my old posts, and especially adding updates to them. I want my blog to feel continually useful, not like a bunch of one-off snapshots of my thoughts. I try to maintain what Robin Sloan calls “stock”.

bde, to random
@bde@functional.cafe avatar

security tip: don’t have untrusted inputs

bde, to random
@bde@functional.cafe avatar

There’s some hand-wringing about the fact that the malicious xz maintainer added some binary test files as part of their backdoor.

Sure, binary files are harder to inspect than text files. I get that. But xz is a binary format! Is it really reasonable to think that you could test it properly without any binary input files?

bde,
@bde@functional.cafe avatar

Indeed, in this article Russ Cox says,

The test file directory already existed from long before Jia Tan arrived, and the README explained “This directory contains bunch of files to test handling of .xz, .lzma (LZMA_Alone), and .lz (lzip) files in decoder implementations. Many of the files have been created by hand with a hex editor, thus there is no better "source code" than the files themselves.” This is a fact of life for parsing libraries like liblzma.

bde, to random
@bde@functional.cafe avatar

Profunctor? Fancy! I’ve just been using the Functor Student Edition that I got for free in college

bde,
@bde@functional.cafe avatar

It only supports Maybe and [] but honestly, that’s all I use anyway

256, to random
@256@mastodon.social avatar

Where Are Your Bottlenecks?
Maximum PC - January 2000
https://books.google.com/books?id=zwEAAAAAMBAJ&lpg=PT2&pg=PT25#v=twopage&q&f=false

bde,
@bde@functional.cafe avatar

@256 The graphics are fun, but it bothers me that this makes no attempt to be an actual chart 😐

bde, to random
@bde@functional.cafe avatar

I am an aesthete, which is why I’m searching a classical-music site for “Hammerklavier sonata” and then just buying the recording that has the prettiest album art

kai, to random
@kai@ajin.la avatar

I'm planning on spinning up another instance (maybe I'll give GoToSocial a try?) just for federating with threads.

The question is, do I want to use this as an opportunity to learn how to use Docker, or should I be my normal, boring self?

bde,
@bde@functional.cafe avatar

@kai You can accomplish something similar to Docker, and get major hipster cred, by setting up a FreeBSD server and using its jail functionality to isolate GoToSocial.

I mean, it’s way more work than either of the things you said—you’d probably have to compile GTS yourself, instead of just pulling someone else’s Docker image—but if you want to start several new hobby projects at once… 😛

bde,
@bde@functional.cafe avatar

@kai Just to be clear, I didn’t mean this as a serious suggestion. But I did do something similar recently and it’s been an enjoyable little project!

bde,
@bde@functional.cafe avatar

@kai That’s a lot of operating systems at once 😂

I set up a FreeBSD server with one jail for a web server, and another jail for go-jamming, a service for receiving Webmentions. I had to compile go-jamming myself, but it’s written in Go and I didn’t have any trouble getting it to compile and run on FreeBSD.

I set this all up a few weeks ago and so far so good!

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