[-] nybble41@programming.dev 4 points 7 months ago

In general integer division is implemented using a form of long division, in binary. There is no base-10 arithmetic involved. It's a relatively expensive operation which usually requires multiple clock cycles to complete, whereas dividing by a power of two ("bit shifting") is trivial and can be done in hardware simply by routing the signals appropriately, without any logic gates.

[-] nybble41@programming.dev 4 points 8 months ago

That part is messed up. You shouldn't be dealing with individual contractors as a patient. All billing should go through the hospital, and be considered in-network provided the hospital is in-network, regardless of what kind of specialist sees you there. Any exception, such as bringing in someone who doesn't normally work there to treat a rare condition, should require separate and specific authorization from the patient in advance.

[-] nybble41@programming.dev 5 points 9 months ago

The ubuntu:24.04 Docker image is only 77.30 MiB.

alpine:3.19.0 is 7.38 MiB.

Of course those sizes are without a kernel. Typical everything-included distro kernels are generally a few hundred MiB as they include drivers for everything that might be needed, but a custom build for known hardware can reduce that to just a few MiB.

[-] nybble41@programming.dev 4 points 9 months ago

It is just as ridiculous that Republicans in California have little say in the presidency as Democrats in Wyoming.

The Republicans in California have a better chance of seeing a Republican president with the electoral college than they would with a national popular vote, even if their particular votes carry less weight. In a sense that gives them more representation in the end, not less—their voices are ignored but they get what they wanted anyway.

[-] nybble41@programming.dev 4 points 10 months ago

The mother had a claim because the house was literally given to her, which was the right of it's previous owner.

This person has no claim.

If the previous owners wanted it to remain with the family line they should have formalized that by placing the house in a trust.

[-] nybble41@programming.dev 3 points 11 months ago

bi-sect: cut into two parts; from Latin "bi-", two, and "secare", to cut.

The "sect" part is critical. "bi-" on its own doesn't imply division.

[-] nybble41@programming.dev 4 points 11 months ago

It might be more accurate to say that Unix time is the number of days since Jan 1st, 1970, scaled by 24×60×60. Though it gets a bit odd around the actual leap second since they aren't spread over the whole day. (In some ways that would be a more reasonable way to handle it; rather than repeating a second at midnight, just make all the seconds slightly longer that day.)

[-] nybble41@programming.dev 5 points 11 months ago* (last edited 11 months ago)

Cx File Explorer supports SMB, FTP, SFTP, and WebDAV remotes out of the box. There is an option to browse the local network.

[-] nybble41@programming.dev 5 points 11 months ago* (last edited 11 months ago)

It's similar, but JavaScript would use : and , for separators rather than = and ;.

This is valid Lua table syntax, however. A program creates an embedded Lua environment with an item callback function and runs this file inside it. Something similar could be done to convert it to another format; just define item to output the data as JSON, or whatever other format you prefer.

The Prosody XMPP server, written in Lua, generates files of this type when serializing lists with the "internal" storage manager. See functions list_store and list_load in util/datamanager.lua.

[-] nybble41@programming.dev 5 points 11 months ago

I believe the point was that it didn't fit the setting for the main characters of a typical fantasy plot—not being well-suited to traveling significant distances in rough terrain, among other things—not that they wouldn't have the basic tech. You don't see many active-duty soldiers or mercenaries fighting in wheelchairs and it seems likely the same considerations would apply to adventurers. You can come up with settings where it isn't totally implausible, but it will require some careful thought and ingenuity.

[-] nybble41@programming.dev 5 points 11 months ago

Look up the legal principle of estoppel. In general you can't turn around and sue someone for doing something after informing them (in writing no less) that you're okay with it, even if you would otherwise have had a valid basis to sue.

[-] nybble41@programming.dev 5 points 1 year ago

Phone calls are not the feature they would be most likely to disable. You're more likely to have passengers talking to you with their phones stuck in "driving mode" as they can't use them to quietly pass the time playing a game or reading or browsing social media or whatever else the driver shouldn't be doing with their phone.

view more: ‹ prev next ›

nybble41

joined 1 year ago