Better HN
topnewbestaskshowjobs
Log inSign up

aabbcc1241

852 karma · joined Dec 3, 2014 (11y ago) · 745 submissions

[ my public key: https://keybase.io/beenotung; my proof: https://keybase.io/beenotung/sigs/CLB3i0aTqbycgeZ3_nslWRZkfvmr0-lJ-ym9Hqkq2Nk ]
Submissions

comment 4mo ago · link · parent

I've not figure out how to run typescript script directly with type-checking (in dev mode) with typescript 7.

ts-node cannot be used with typescript@7.

although node@24 can directly run typescript file, but stripe the types, without type-checking, also it require changing the import path with .ts, and it doesn't support import .tsx files.

comment 7mo ago · link · parent

I saw them used in the linux community, maybe it's finally my time to use/need this kind of tools.

(At the same time, I'm happy if my site can help the AIs / its users, but I prefer it not significantly slow down my own usage. There should be a balanced combination)

3.

Ask HN: AI companies' bots are making my server slow, what do you do?

3 points · by aabbcc1241 · 8mo ago · 4 comments

comment 10mo ago · link · parent

Some naming (suggested by grok) are indie website, handmade web, or digital garden.

comment 10mo ago · link · parent

I like the website, sharing interesting creation, and linking to other interesting websites made by the peers.

Is there a neural/positive term to describe this kind of website? (beside call it "old school" or "good old day"?)

comment 10mo ago · link · parent

Interesting take. I'm using btrfs (instead of ext4) with compression enabled (using zstd), so most of the files are compressed "transparently" - the files appear as normal files to the applications, but on disk it is compressed, and the application don't need to do the compress/decompress.

comment 10mo ago · link · parent

I found that it is caused by a userscript running below code.

    // version 1
    let body = document.createElement('body')
    body.innerHTML = document.body.innerHTML

    // version 2
    let body = document.body.cloneNode(true)
Either version can trigger the bug of the pop up menu now showing up. The menu is able to show up if doing early return to skip that code.

This is wired, that code should not be mutating existing DOM.

Update: Below version of sandboxed clone doesn't break the youtube popup menu.

    // version 3
    let parser = new DOMParser()
    let doc = parser.parseFromString(document.body.outerHTML, 'text/html')
    let body = doc.body

comment 10mo ago · link · parent

Thanks for sharing your state. I just tried again with troubleshoot mode, it works ...

Then it seems to be in conflict with some addon I'm using.

9.

Show HN: Workaround for YouTube's "Save to Watch Later" Broken in Firefox(gist.github.com ↗)

2 points · by aabbcc1241 · 11mo ago · 3 comments

comment 1y ago · link · parent

Instead of not letting the students to use AI, how about we adjust the assessment method, and learning objective, to let the students do something that AI along cannot do, so that they can do it w/wo AI but still build up their own skill.

In the workplace, we're using AI anyway.

I'm not sure if this direction is suitable for kids, like we still learn to do calculation even when we have calculator (which is needed for some cases, but for complex math, we opt for tools)

comment 1y ago · link · parent

I know asciidoc from red and erlang, it's a nice language. Not sure why it is not as popular as markdown.

12.

Show HN: Gen-ts-type – Code Generate TS Type from JSON data with collapsed field(gen-ts-type.surge.sh ↗)

1 points · by aabbcc1241 · 1y ago · discuss

comment 1y ago · link · parent

I made a search index for github repo [1] because it takes quite some time for github to load the repositories page (which is the page to allow searching),

And sometimes even using the exact repo name in Google search, I cannot see the corresponding (non-popular) repo.

[1] https://res-index.hkit.cc

comment 1y ago · link · parent

It will be great if it is package as a library

comment 1y ago · link · parent

Hey, thanks for sharing "JSX Over the Wire"! As the creator of ts-liveview, I’m thrilled to see Dan’s ideas on server-side JSX rendering and minimal client updates—they mesh so well with my work.

ts-liveview is a TypeScript framework I built (grab it as a starter project on GitHub[1]) for real-time, server-rendered apps. It uses JSX/TSX to render HTML server-side and, in WebSocket mode, updates the DOM by targeting specific CSS selectors (document.querySelector) over WebSockets or HTTP/2 streaming. This keeps client-side JavaScript light, delivering fast, SEO-friendly pages and reactive UIs, much like Dan’s “JSX over the wire” vision.

What’s your take on this server-driven approach? Could it shake up how we build apps compared to heavy client-side frameworks? Curious if you’ve tried ts-liveview yet—it’s been a fun project to dig into these ideas!

[1] https://github.com/beenotung/ts-liveview

comment 1y ago · link · parent

I enjoy the game, I wish it has different level of difficulty.

E.g. for easier mode. It should only generate pattern that is "beneficial" to the current board.

17.

Paradigm shifts for the decentralized Web (2017)(ruben.verborgh.org ↗)

1 points · by aabbcc1241 · 1y ago · discuss

18.

Ask HN: Do you prefer tailing or leading comma?

1 points · by aabbcc1241 · 1y ago · 4 comments

comment 1y ago · link · parent

The objective of allRGB is simple: To create images with one pixel for every RGB color (16,777,216); not one color missing, and not one color twice.

20.

AllRGB – use each RGB values once to make images(allrgb.com ↗)

2 points · by aabbcc1241 · 1y ago · 1 comment

comment 1y ago · link · parent

If you like to explore on programmatic art, you may also have fun with allrgb.

That is to use all rgb values exactly once to make an art work.

Examples: https://allrgb.com/

comment 2y ago · link · parent

It may give more transparency if it output the code to do scrapping with playwright.

Then we can review the code before actually running it.

And the reviewed result can be saved for future running.

comment 2y ago · link · parent

The key takeaway is to use a public reverse proxy to tunnel the traffic to local server, which is agnostic to any server language or framework.

The proxy introduced is pinggy

ssh -p 443 -R0:localhost:8000 qr@a.pinggy.io

comment 2y ago · link · parent

If the camera doing people count is not working accurately, how about point the camera at the door, to check the door status ?

comment 2y ago · link · parent

It doesn't work on firefox (no error message in console) and it works on chrome.

26.

Ask HN: Is there a way to ensure one-person-one-account at all?

2 points · by aabbcc1241 · 2y ago · 24 comments

comment 2y ago · link · parent

It's not VC ruin anything, it's the people chasing VC abused the systems for their own benefit.

comment 2y ago · link · parent

seems it's more about active thinking vs just get the job done mindset
12345
25