How did you find Leptos to work with? I never got further than the tutorial so I have yet to form a real opinion on it.
New account since lemmyrs.org went down, other @Deebster
s are available.
How did you find Leptos to work with? I never got further than the tutorial so I have yet to form a real opinion on it.
It’s a subtle difference between that and path::exists()
.
path::exists()
== false
might just mean you can’t use it (if path::exists() cannot access a file due to e.g. permissions, it’ll return false)fs::exists()
== Ok(false)
means it’s definitely not there (permissions error will cause an Err to be returned)The source story is worth a read.
Marrero’s background is in Navy intelligence, and she earned a master’s degree in business administration with a concentration in information security and digital management
Incredible.
she soon changed the “STINKY” Wi-Fi network name to another moniker that looked like a wireless printer — even though no such general-use wireless printers were present on the ship
Why not just switch off broadcasting the SSID?
[The CO and XO] then conducted another sweep inside the ship. Although the network that appeared to be a wireless printer appeared on their personal devices during their search, neither made additional inquiries regarding that network
No-one’s coming out of this looking good.
Marrero’s secret Starlink dish was removed the same day, and Marrero told another unidentified crew member the next day that it was authorized for in-port use — prompting sailors to re-install the illegal Starlink.
It just keeps going!
There’s kroki as well, which includes Mermaid, Excalidraw, GraphViz, PlantUML, etc.
I’m of the belief that spawning threads on demand is an anti-pattern; threads should spawn on program startup, and sleep until they have work to do.
Hmm, I need to think on this to decide whether I agree. What’s your reasoning for this opinion? Is it just based on lower latency, or is it more of an architectural/correctness thing?
I thought it was clever, but now I’m seeing what I assume you’re seeing.
There’s moderation per community and per server. There’s no “fediverse moderator”, of course, but I think you’re vaguely worrying for nothing.
Probably not; I’d expect the places where you need something like UUIDv7 (large, eventually-consistent systems) to not be entirely suitable because you can have records added out of sequence. You’d have to add a received-at field - but in that case you may as well just use a standard incrementing ID as your primary key.
In time-based pagination, the suggested fix to lots of data in a selected timespan is:
simply adding a limit to the amount of records returned (potentially via a query parameter) transparently solves it.
This means clients can’t see all the results, unless you add a way to view other pages of data, which is just pagination again. Or is the intended design that clients view either the first x results (the default) or view all results?
The problem with articles like OPs and others is that they don’t allow custom sorting, which is often a requirement, e.g. interfaces that present the data in a table, where column headers can be clicked to sort.
I don’t think it’s even enshittification (probably costs more to run than Assistant), it’s just Google desperate to find a use for its new AI.
“Disney understandably may want to benefit from the privacy and confidentiality that arbitration brings, rather than having a wrongful death suit heard in public with the associated publicity,” says Jamie Cartwright, partner at law firm Charles Russell Speechlys.
– from the BBC article
If that’s what they want, they clearly never heard of the Streisand Effect. This is disgraceful behaviour from Disney, and I hope they come to severely regret it.
I felt the same when reading that book, and I never finished it because following the rules he suggested produced horrible code.
If memory serves, he also suggested that the ideal if statement only had one line inside, and you should move multiple lines into a function to achieve this.
I once had to work on a codebase that seemed like it had followed his style, and it was an awful experience. There were hundreds of tiny functions (most only used once) and even with an IDE it was a chore to follow the logic. Best case the compiler removed most of this “clean” code and the runtime wasn’t spending most of its time managing the stack like a developer had to do.
Oh, that’s LAN - I thought you’d put ian and I was trying to get the joke. Stupid sans-serif fonts.
It’s naïve to think that marketers have any interest in doing things ethically, unless there’s a legal or business reason to do so.
I know of it because Helix uses it, and it works really well.
Thank you and goodbye to lazy-static
, I’ll think of you every time I use a regex.
If you need to refer to a key with ~ or / in its name, you must escape the characters with ~0 and ~1 respectively. For example, to get “baz” from { “foo/bar~”: “baz” } you’d use the pointer /foo1bar0.
I guess they’re using ~
for escaping since backslash is already escaping text content, not that you’d see it very often in keys.
Having magic values instead of using ~~
and ~/
feels ugly.
It’s far from my field, so I’ll have to take your word on that!
The term you want is “cross compile”. I’ve developed simple programs for the Pi on Windows and it’s simple enough to produce a static binary (using Rust, anyway). When extra dependencies come in it’s better to develop on the same OS, but targeting different architectures is the easy bit.