Better HN
topnewbestaskshowjobs
Log inSign up

cjr

583 karma · joined Feb 4, 2011 (15y ago) · 99 submissions

Founding developer at urlbox.com - screenshots as a service API YC S12 alum (Quillu/OctaveWealth) Previously bluebook academy
Submissions

comment 1mo ago · link · parent

And https://openrig.dev/

2.

Why reluctant 'guru' says Dutch will win World Cup(bbc.co.uk ↗)

6 points · by cjr · 6mo ago · discuss

comment 7mo ago · link · parent

Nice! Which one do you use most often?

comment 7mo ago · link · parent

Isn’t Kees van der Westen the ferrari of coffee machines?!

comment 10mo ago · link · parent

Looks brilliant, well done! How about oRPC instead? And mikro-orm

comment 10mo ago · link · parent

also reminds me of https://onemillionscreenshots.com

(full disclosure - my screenshot api takes the screenshots :) )

comment 1y ago · link · parent

Switch to codex? :)

comment 1y ago · link · parent

document.elementFromPoint to get the elem at co-ordinates, then use npm package similar to optimal-select to come up with a unique css selector.

comment 1y ago · link · parent

Congratulations on the launch, this looks really nice.

I feel quite locked-in to Shadcn components now, especially after I found tweakcn.com.

Is there anything similar for untitled ui in the pipeline? A way to update the css variables and preview it across different components/layouts.

10.

Preliminary report into Air India crash released(bbc.co.uk ↗)

407 points · by cjr · 1y ago · 883 comments

comment 1y ago · link · parent

looks great, i'd definitely pay for a coffee table style version of a book like this!

comment 1y ago · link · parent

There are browser extensions you could run like consent-o-matic to try to click and hide the cookies from your screenshots:

https://chromewebstore.google.com/detail/consent-o-matic/mdj...

Otherwise using a combination of well-known class names, ‘accept’ strings, and heuristics such as z-index, position: fixed/sticky etc can also narrow down the number of likely elements that could be modals/banners.

You could also ask a vision model whether a screenshot has a cookie banner, and ask for co-ordinates to remove it, although this could get expensive at scale!

comment 1y ago · link · parent

nice post :)

I’m surprised there’s not been any mention of effect (http://effect.website/) yet, as it is kind of the next level up if you really want to model things like errors, dependencies and side effects in the type system, using functional concepts borrowed from more pure functional languages.

It would be a bit of a risk adopting this into a shared code base depending on your team and the kinds of devs you’re looking to hire, but it could be useful to some folk that feel like they want even more type safety.

comment 1y ago · link · parent

What about cluster autoscaling?

comment 2y ago · link · parent

I'd say adonisjs[1] is the closest thing in TS land to rails. There's also sailsjs[2].

Neither are as trendy as nextjs/sveltekit etc, but those are not really comparable to rails.

[1]: https://adonisjs.com

[2]: https://sailsjs.com

16.

The Things They Carried(daringfireball.net ↗)

8 points · by cjr · 2y ago · 3 comments

comment 2y ago · link · parent

This might be more suited to monorepos where all projects are in JS/TS, but check out https://onerepo.tools

comment 2y ago · link · parent

3.93 megatons of CO2 is roughly equivalent to:

  • About 149,714 short-haul flights, or
  • About 37,429 long-haul flights.

19.

Kubernetes Instance Calculator(learnk8s.io ↗)

2 points · by cjr · 2y ago · discuss

20.

Coffee, eggs and white rice linked to higher levels of PFAS in humans(theguardian.com ↗)

8 points · by cjr · 2y ago · 2 comments

comment 2y ago · link · parent

https://devspace.sh also gives a similar workflow but where the container is running in a remote k8s cluster

comment 2y ago · link · parent

No - we don't currently support this feature as nobody has asked for it so far :)

You could append a new meta tag by running some custom JS to add it, but we don't modify exif, metadata or pdf description at the moment.

comment 2y ago · link · parent

I work on a paid screenshot api[0] where we have features to either hide these banners and overlays using css, or alternatively we run some javascript to send a click event to what we detect as the 'accept' button in order to dismiss the popups.

It's quite a painful problem and we screenshot many millions of sites a day, our success rate at detecting these is high but still not 100%.

We have gotten quite far with heuristics and are exploring whether we can get better results by training a model.

[0]:https://urlbox.com

24.

Rails-like CLI for full-stack nextjs typescript apps(kirimase.dev ↗)

2 points · by cjr · 2y ago · discuss

comment 2y ago · link · parent

Have you checked out https://kirimase.dev?

comment 2y ago · link · parent

This looks and sounds great...

I'm currently using contentlayer [https://github.com/contentlayerdev/contentlayer] to manage docs and blog content, mostly .mdx files on urlbox.com.

It works well with next.js but unfortunately is abandonware now.

I also have a few custom remark/rehype plugins.

You're right it is a pain to update articles buried in your repo especially with less technical team members. I already tried out TinaCMS to try and solve the editing issues, but their editor wasn't so nice, and it seemed to implicitly make a commit on every tiny change to any content, so I'm really hoping I could use something like this to edit my already existing content...

comment 2y ago · link · parent

jerry, svix, lago etc.. clear growth hack :)

comment 2y ago · link · parent

Or removing the right sized bean to go from 18.1g to 18g

29.

Tyrannosaur's last meal was two baby dinosaurs(bbc.co.uk ↗)

2 points · by cjr · 2y ago · discuss

comment 3y ago · link · parent

Hard agree, especially with your first two paragraphs :)

The biggest tip I would add is to bin jest and start using vitest.

1234