Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shiomiru
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
shiomiru
1y ago
> If the site really was static before, and no JS was needed One does not imply the other. This forum is one example. (Or rather, hn.js is entirely optional.) > Another great solution? Just ask users to login (no js needed). I'
62.
▲
by
shiomiru
1y ago
> They mostly aren't worth worrying about Well, a common pattern I've lately been seeing is: * Website goes down/barely accessible * Webmaster posts "sorry we're down, LLM scrapers are DoSing us" * Website a
63.
▲
by
shiomiru
1y ago
> I don't get it either, because that has always been the case, thus most of his post is borderline non sense. Yes, making software development cheaper has been the main priority of the industry for a long time. The new development
64.
▲
by
shiomiru
1y ago
That's what pagers are for (e.g. less.)
65.
▲
by
shiomiru
1y ago
That is allowed, with the exact same syntax as Python. But then you still lose the qualification so I don't see any benefits, it's just more boilerplate to constantly adjust, git conflicts to fight with, etc.
66.
▲
by
shiomiru
1y ago
Nim's import rules are part of its generalization of OOP's obj.foo() syntax. That is, in Nim, you don't have to put "foo" in a specific class, just set the first parameter of "foo" to the type of "ob
67.
▲
by
shiomiru
1y ago
The difference between valid PNG you can't decompress and invalid PNG is fairly irrelevant when your aim is to get an image onto the screen. And considering we already have plenty of more advanced competing lossless formats, I really d
68.
▲
by
shiomiru
1y ago
Sure, but I'm talking about where my fingers first reach when taking the device out of my pocket. In that case, I'm grabbing it with my thumb, index finger and middle finger, and since the phone is seated upside down, my thumb rea
69.
▲
by
shiomiru
1y ago
> That was seriously the best solution. I much prefer having it on a physical home button. You can still feel a dent, but it takes even less effort to reach for it with your thumb. (Well, I think the Pixel never had a home button, and
70.
▲
by
shiomiru
1y ago
The closest thing is https://codeberg.org/bptato/chawan/raw/branch/master/todo , but it's somewhat outdated and I rarely bother to sort it according to priority...
71.
▲
by
shiomiru
1y ago
Fixed on master. (It turned out to be a miscompilation on part of clang; quite interesting, see the ticket linked above for details.)
72.
▲
by
shiomiru
1y ago
> terminal browsers are hobby projects because ...those pesky GUI users want pixel-precision :P Surely it's a hobby project. You have to have very specific tastes to browse in the terminal in 2025. > using external binaries for p
73.
▲
by
shiomiru
1y ago
chawan has a custom terminal module, so my knowledge about the standard X/Open curses is not that great. That said, for the actual escape sequences, XTerm's ctlseqs.ms[1] is an invaluable resource. I also took many ideas from nick
74.
▲
by
shiomiru
1y ago
The intention is that it should "just work"... I'm aware sometimes it doesn't, you can consider that a bug :) But if you really want custom CSS for grid displays, chawan does support the standard "grid" media f
75.
▲
by
shiomiru
1y ago
The address bar should open by pressing C-l (control + L).
76.
▲
by
shiomiru
1y ago
Chawan never really used ncurses, only termcap. (ncurses just happens to implement termcap too.) I started with termcap because I was already familiar with it through w3m. But termcap is an obsolete interface, and cannot describe the only
77.
▲
by
shiomiru
1y ago
Strange, so it sees your input but still doesn't evaluate the commands... OK, let's try something else. On master, is anything written to the status line if you press `p` when started with cha -o'page.p="pager.aler
78.
▲
by
shiomiru
1y ago
It's a bug, thanks for reporting. I've created a ticket: https://todo.sr.ht/~bptato/chawan/63 Could you please pull the macos-input branch from https://git.sr.ht/~bptato/chawan and
79.
▲
by
shiomiru
1y ago
cha-config(5) or about:chawan. The former also has an online version: https://chawan.net/doc/cha/config.html#pager-actions For navigation in particular you'd use capital D to discard the current buffer and r
80.
▲
by
shiomiru
1y ago
Thanks :) If you're interested, I posted a user style for HN here: https://lists.sr.ht/~bptato/chawan-devel/%3CD9S40OS2QWHL.PXQ... Mainly just to fix the vote arrows, because for now background-image only ren
81.
▲
by
shiomiru
1y ago
No GPM yet, but it does recognize XTerm's mouse protocol.
82.
▲
by
shiomiru
1y ago
Glad you like it :)
83.
▲
Show HN: Chawan TUI web browser
(chawan.net)
387 points
by
shiomiru
1y ago
|
69 comments
84.
▲
by
shiomiru
1y ago
> XTerm OSC 4 may have a very limited ability to probe the color palette. At least on `st` I can only see default foreground, background and cursor colors, not the full 16-color palette. This mostly just amplifies the point elsethread b
85.
▲
by
shiomiru
1y ago
> The idea of taking a screenshot of the terminal and then parsing that to determine the true colour support is definitely novel, A better way to do this is to send `OSC 1 0 ; ? ST` (query foreground color), `OSC 1 1 ; ? ST` (background
86.
▲
by
shiomiru
1y ago
It's not just lazy, it's nonsense. The author is conflating piracy with plagiarism, even though the two are completely different issues. Plagiarism is taking somebody else's work and claiming that you yourself created it. I
87.
▲
by
shiomiru
1y ago
> Scrapers, on the other hand, keep throwing out their session cookies (because you could easily limit their access by using cookies if they didn't). They will need to run the PoW workload every page load. Such a scheme does not wor
88.
▲
by
shiomiru
1y ago
My interpretation is that they are interested in looking at a real world application of the technology in question, which seems on-topic to me. But I agree that it's worded unfortunately.
89.
▲
by
shiomiru
1y ago
I was curious what "view transitions" are even about: https://www.w3.org/TR/css-view-transitions-1/ It's yet another 2.8k line specification solely authored by Google employees, introducing a brand
90.
▲
by
shiomiru
1y ago
> I think something like a reference implementation (Ladybird, Servo or even Vaev maybe?) getting picked up as the small-web living standard feels like the best bet for me since that still lets browser projects get the big-time funding f
More ›