HNHacker News
TopNewBestAskShowJobs

aabbcc1241

852 karma · joined December 3, 2014

[ my public key: https://keybase.io/beenotung; my proof: https://keybase.io/beenotung/sigs/CLB3i0aTqbycgeZ3_nslWRZkfvmr0-lJ-ym9Hqkq2Nk ]
submissionscomments
aabbcc1241··on TypeScript 7
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.

aabbcc1241··on Ask HN: AI companies' bots are making my server slow, what do you do?
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)

aabbcc1241··on Snow Simulation Toy
Some naming (suggested by grok) are indie website, handmade web, or digital garden.
aabbcc1241··on Snow Simulation Toy
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"?)

aabbcc1241··on I made my own Git
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.
aabbcc1241··on Show HN: Workaround for YouTube's "Save to Watch Later" Broken in Firefox
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
aabbcc1241··on Show HN: Workaround for YouTube's "Save to Watch Later" Broken in Firefox
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.

aabbcc1241··on A high schooler writes about AI tools in the classroom
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)

aabbcc1241··on Red Programming Language
I know asciidoc from red and erlang, it's a nice language. Not sure why it is not as popular as markdown.
aabbcc1241··on Mozilla Firefox – Official GitHub repo
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

aabbcc1241··on Critical CSS
It will be great if it is package as a library
aabbcc1241··on JSX over the Wire
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

aabbcc1241··on Show HN: Check out my new egg-citing game for the brain
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.

aabbcc1241··on AllRGB – use each RGB values once to make images
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.
aabbcc1241··on Geometric line-art of Wacław Szpakowski (2017)
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/

aabbcc1241··on Show HN: I wrote an open-source browser alternative for Computer Use for any LLM
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.

aabbcc1241··on Host a FastAPI Application Without a Server
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

aabbcc1241··on Overengineering a way to know if people are in my university's CS lab
If the camera doing people count is not working accurately, how about point the camera at the door, to check the door status ?
aabbcc1241··on Noise
It doesn't work on firefox (no error message in console) and it works on chrome.
aabbcc1241··on Ask HN: Who is pretending to be hiring?
It's not VC ruin anything, it's the people chasing VC abused the systems for their own benefit.
aabbcc1241··on Kids who use ChatGPT as a study assistant do worse on tests
seems it's more about active thinking vs just get the job done mindset
aabbcc1241··on The Art of Finishing
If it's not a project that others rely on, you should feel free to do it anytime or spawn new projects. To finish it or not doesn't matter much, enjoy the journey and learn from the experience is a value in itself.
aabbcc1241··on Show HN: Repaint – a WebGL based website builder
The first view are screenshots, but they look too real, I thought it was not working in my browser (firefox)
aabbcc1241··on Show HN: Srcbook – A TypeScript notebook for rapid prototyping
The examples are complete programs.

Can I let-declare an variable in one code block, and refer to it in another code block with static type hint?

aabbcc1241··on Launch HN: Stack Auth (YC S24) – An Open-Source Auth0/Clerk Alternative
It's nice to have some trial quota.

Is it possible to automate the setup process ?

aabbcc1241··on Launch HN: Stack Auth (YC S24) – An Open-Source Auth0/Clerk Alternative
Can I enable the social login with this tool directly, without manually creating and setting up the "app"/"project" on those social platforms?
aabbcc1241··on HTML Tips You Must Know About in 2024
1st tips: make the site works without js
aabbcc1241··on How to Increase Your App Downloads by Nearly 4000%
The author said the change is to make the app free for download (instead of charging for 0.99 per downloads)
aabbcc1241··on Node.js Is Here to Stay
what are the problems you observed ?
aabbcc1241··on Simplify: Move Code into Database Functions
If you had reason to switch the backend tech, you might also have reason to switch the database tech.

It seems a viable alternative but not necessarily eliminating the problem discussed at the beginning.

Page 1 of 21Next →