We use SQLite IMMEDIATE transactions, which lock files for writes for a few milliseconds while commiting data to the file. This is not a problem in practice until you reach more than dozens of concurrent writers. StorX configures a default busy timeout of 1.5s, but it can be configured as per your needs. You can also get a lot more out of it by being smart about how you spread your data over DB files (eg: one file per user instead of one for multiple/all users), and also by considering when you call openFile() and closeFile() (eg: keep write transactions short, don't leave a file handler open while running long calculations).
HN user
aaviator42
SQLite is insanely robust. I have developed websites serving hundreds of thousands of daily users where the storage layer is entirely handle by SQLite, via an abstraction layer I built that gives you a handy key-value interface so I don't have to craft queries when I just need data storage/retrieval: https://github.com/aaviator42/StorX
I'm not the first to point this out but the website in question, which is mostly static, could easily be hosted on a VPS for at most a couple hundred dollars a month.
I used this to implement <yes-script>, the opposite of <noscript>, to be able to designate sections of a page to be hidden if JS was disabled. You can of course do the same thing with classes, but custom tags are fun.
Anyone have knowledge on how accessible SVGs are for folks who use assistive technologies?
Countless lives over the next decades are going to be lost due to decisions being made by this administration. Deaths and illnesses that otherwise would have prevented using existing frameworks and systems had they not been destroyed.
The money doesn't go to the researchers.
think / think hard / think harder / ultrathink
These are all valid claude commands/tokens to enhance its "thinking" abilities.How do you go about finding a recruiter? (for technical roles like system engineers)
The lack of awareness is that the vast majority of users are not aware of and don't use scoop (or probably any package manager) on Windows, especially to install GUI apps, and that doesn't automatically make them "not sane".
It significantly increases the attack surfaces of bugs that do exist in the parser if the same implementation is used everywhere.
A good point! Conformance tests seem like a great idea to me to go along with specs.
An argument for a better defined file format specification perhaps, but I don't think it's necessarily a good thing for everyone to use or have to use the same implementation.
I thought apple didn't allow this?
Edit: apparently "hybrid apps" using webviews are allowed as long as they're not "thin wrappers" for websites and provide meaningful functionality. See also: the capacitor framework.
With a Linux distro on it?
I think iframes are pretty darn handy and it's really not that hard to leverage their strengths in a secure manner.
We're very close to the point where no one is going to be able to make out what is an AI image and what is not and it's already fucking up a lot of stuff and it's going to get much worse.
I really miss the time before generative images and video were a thing. We opened such a can of worms. Really seems like a "the scientists were so occupied with if they could they didn't stop to think if they should" situation. What is the actual utility of these tools again beyond putting artists out of work?
Those who find this interesting may find my tool helpful, a color picker that only has named HTML colors: https://aavi.xyz/proj/colors
The medium article is also 404
Hey, it's cool that you care so much about coral reefs and climate change — that kind of awareness is really important.
A lot of us care about climate change and coral reefs and the planet. The problem is that the biggest damage is often caused by large systems — like industries and governments — that prioritize profit over the planet. Even when regular people try to make eco-friendly choices, it’s really hard to make a big difference alone when the rules and incentives still let pollution and destruction keep happening on a huge scale. That’s why we also need collective action, policy changes, and accountability at the top.
Your voice matters though, and speaking up like you are is part of how change starts. Keep going. But keep in mind that people problems cannot be solved by technology alone. Even if you are able to develop technology to help coral reefs survive, you need massive funding and buy-in from various people and orgs with power to implement it in practice. That's way harder than coming up with the tech.
Also, food for thought: should we really be trying to genetically modify other organisms to be compatible with pollution or should we be reducing pollution in the first place?
I'm sorry to hear that, and hope you're able to figure out something sustainable soon.
To other readers: don't quit your job until you have a new source of income locked in!
On the same topic: does anyone have an API concept that they wish existed and that they'd be willing to pay for?
Opensource printer stack is a legacy mess.
I don't necessarily disagree, but isn't this because of extremely bad firm/soft/hardware design by the printer companies that then have to be supported by the open source stack?
The link you shared is to this thread
In what ways?
I was thinking last night. Shouldn't software we make help people instead of replacing them? Why must innovation be in the direction of and at the cost of replacing humans?
Yep! I'm glad you like it! :)
In the same vein, I have a single-file library which allows you to use flat files as key-value DBs. Uses SQLite under the hood. Sharing in case someone finds it useful: https://github.com/aaviator42/storx
It is a fork of an older version, I will update it sometime soon and send a PR upstream for the vert switcher, although I'm afraid it might not be implemented in the neatest way possible. :)