Better HN
topnewbestaskshowjobs
Log inSign up

airblade

159 karma · joined Oct 9, 2010 (16y ago) · 47 submissions

https://github.com/airblade
Submissions

comment 1y ago · link · parent

This is documented on the Litestream website.

2.

Running our Docker registry on-prem with Harbor(dev.37signals.com ↗)

155 points · by airblade · 1y ago · 77 comments

comment 1y ago · link · parent

A dimmer switch for an LED light is different from a dimmer switch for a non-LED light. If you try to use an LED light with a “normal” dimmer, it won’t work well.

comment 1y ago · link · parent

At first I thought you meant an umbrella that doesn't work very well.

comment 2y ago · link · parent

Simple, clean, does exactly what it says. If only more software was like this :)

comment 2y ago · link · parent

Actually the NSA is the US’s version of GCHQ.

comment 2y ago · link · parent

That was probably it: not being quite perpendicular. Oh well!

comment 2y ago · link · parent

That’s very similar to my experience except docking was just too hard. No matter how carefully I tried to match the rotation, 99 times out of 100 I crashed. I still don’t really understand why! So I just stayed around the starting point, which was a shame but still quite fun.

comment 2y ago · link · parent

XML is brittle which makes it hard to work with. One tiny syntax error somewhere and your whole XML pipeline fails.

XSLT is powerful but harder to get right than just reshaping JSON.

comment 3y ago · link · parent

But those 70 miles can take a disproportionately long time!

comment 3y ago · link · parent

Thanks for building this. I agree there's a gap between OSS libraries and high-end products like Scandit.

Scanning barcodes is harder than it looks. Or rather, scanning an intact, well-lit barcode square-on is easy – but it gets harder as conditions deteriorate.

Are you worried about Scandit's patents?

https://www.scandit.com/patents/

comment 3y ago · link · parent

It probably depends on whether you are searching a body of natural language text (use tf-idf) or a list of things (use fuzzy search).

comment 3y ago · link · parent

"Not too bothered about styling" is quite important. Datalists are relatively uncommon and I think many users may not know what they are seeing and how they can interact with it.

Also datalists appear quite different across different browsers, which is fine of course for a native form control, but annoying if you're aiming for a more consistent look.

comment 3y ago · link · parent

I believe the maintainers regard authentication, rightly or wrongly, as a business-level feature. Not so much the mechanics of checking a user's credentials but how you want to steer the different authentication flows.

comment 4y ago · link · parent

Look up the Tau Manifesto: it’s all explained there.

comment 4y ago · link · parent

I did a similar thing for Volksbank (a German bank) statements using awk:

https://github.com/airblade/volksbanker-awk/blob/main/vba

17.

Cross Platform Machine Code(tenderlovemaking.com ↗)

1 points · by airblade · 4y ago · discuss

comment 4y ago · link · parent

I don’t think there are many people capable of maths like this.

comment 5y ago · link · parent

I think you mean not far from Oxford.

comment 5y ago · link · parent

Rails will soon default to using ESM instead of Webpack.

https://world.hey.com/dhh/modern-web-apps-without-javascript...

comment 5y ago · link · parent

> gitgutter is no git diff

FYI in gitgutter you can preview the diff for any change (and also edit the hunk and stage it).

comment 5y ago · link · parent

This is a nifty idea for a product.

Does / will your system import images in spreadsheets?

comment 5y ago · link · parent

You can't configure diff-highlight to do that. It 'will find the common prefix and suffix of two lines, and consider everything in the middle to be "different".' [1]

To highlight only the quotes as changing, you need something else. On (Neo)Vim, for example, vim-gitgutter does this [2] (I'm the author).

[1] https://github.com/git/git/tree/master/contrib/diff-highligh... [2] https://github.com/airblade/vim-gitgutter/blob/master/autolo...

comment 6y ago · link · parent

Not sure about vim-fugitive, but vim-gitgutter's hunk previews have intra-line highlighting. I mention it because people often use the two plugins together (and I'm pleased with how vgg's highlighting turned out :)

https://github.com/airblade/vim-gitgutter

comment 6y ago · link · parent

So it could read the RFID tag in the passport.

comment 9y ago · link · parent

I found this a very interesting look at the infrastructure behind a successful, fast-growing SAAS.

An infrastructure cost of 2% of revenue is impressive – a lot of bang for the buck. I wonder how other SAAS operations compare. And also where other SAASs sit on the DR scale...

comment 10y ago · link · parent

Even better, install Alfred and bind a hotkey to your bash function.

comment 11y ago · link · parent

So many armchair critics!

It's very easy to pontificate in hindsight when somebody else has done the hard work of actually finding something that can be improved.

comment 11y ago · link · parent

Terrific stuff. Thanks!

comment 11y ago · link · parent

Looks amazing!
12