Better HN
topnewbestaskshowjobs
Log inSign up

aaviator42

289 karma · joined Oct 13, 2021 (5y ago) · 83 submissions

Submissions

comment 3mo ago · link · parent

When doing image editing and text copy editing, I find it very handy to have mouse thumb buttons mapped to copy / paste / cut / undo / redo / delete / shift / ctrl. Allows me to do a lot more with my mouse when I'm using it anyway to do stuff, without having to switch back and forth repeatedly with my keyboard.

comment 7mo ago · link · parent

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).

comment 7mo ago · link · parent

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

4.

Show HN: Simple and robust key-value flat-file data storage library(github.com ↗)

2 points · by aaviator42 · 9mo ago · discuss

comment 9mo ago · link · parent

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.

comment 11mo ago · link · parent

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.

https://github.com/aaviator42/yes-script

comment 1y ago · link · parent

Anyone have knowledge on how accessible SVGs are for folks who use assistive technologies?

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

The money doesn't go to the researchers.

comment 1y ago · link · parent

    think / think hard / think harder / ultrathink 
These are all valid claude commands/tokens to enhance its "thinking" abilities.

comment 1y ago · link · parent

How do you go about finding a recruiter? (for technical roles like system engineers)

comment 1y ago · link · parent

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".

comment 1y ago · link · parent

It significantly increases the attack surfaces of bugs that do exist in the parser if the same implementation is used everywhere.

comment 1y ago · link · parent

A good point! Conformance tests seem like a great idea to me to go along with specs.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

With a Linux distro on it?

comment 1y ago · link · parent

I think iframes are pretty darn handy and it's really not that hard to leverage their strengths in a secure manner.

comment 1y ago · link · parent

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.

20.

Laid-off workers should use LLMs to manage their emotions, says Xbox exec(theverge.com ↗)

9 points · by aaviator42 · 1y ago · 1 comment

comment 1y ago · link · parent

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?

comment 1y ago · link · parent

Those who find this interesting may find my tool helpful, a color picker that only has named HTML colors: https://aavi.xyz/proj/colors

comment 1y ago · link · parent

The medium article is also 404

comment 1y ago · link · parent

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?

comment 1y ago · link · parent

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!

comment 1y ago · link · parent

On the same topic: does anyone have an API concept that they wish existed and that they'd be willing to pay for?

27.

Scam Testing Claude Opus(twitter.com ↗)

3 points · by aaviator42 · 1y ago · discuss

comment 1y ago · link · parent

> 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?

123