Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
maskros
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
maskros
1y ago
Well so I glanced at what that project does. Congratulations, you've managed to "compress" PDF files by rasterizing every page to JPEG, while destroying all the vector and textual information in it. The resulting PDF is nothi
2.
▲
by
maskros
2y ago
The CSS outline property is (was?) unreliable on Safari. Things like the border-radius don't affect the outline shape -- it's always square even if you to to create some Apple-patented rounded rectangles using border-radius.
3.
▲
by
maskros
2y ago
Lots of fonts have monospaced numbers, they just need to be enabled! Look for OpenType (TTF and/or OTF) fonts with feature "tnum", and enable it. For CSS, use font-variant-numeric: tabular-nums.
4.
▲
by
maskros
2y ago
To backup you should use the `vacuum into` statement. That can be safely run from another process, as it takes a read lock and doesn't block writers when using the WAL mode. When backing up a SQLite database that is in running use, you
5.
▲
by
maskros
2y ago
There's a spectrum between completely silent and so noisy you can clearly hear it inside a house a hundred meters down the street.
6.
▲
by
maskros
2y ago
Then you haven't heard electric cars running at low speed or put in reverse. Try to chill near any space where EVs frequent (like near a parking lot or train station with lots of traffic) and it's a constant source of artificial s
7.
▲
by
maskros
2y ago
Since this viewer uses MuPDF as the document engine, it should already support EPUB, MOBI, FB2, and XPS document formats. If it doesn't, it should be a relatively simple task to upgrade the mupdf library to the latest version and recom
8.
▲
by
maskros
2y ago
You don't even need the symbol. If you want the simplest thing that will work: type Velocity = number & { BRAND: "Velocity" } type Distance = number & { BRAND: "Distance" } var x = 100 as Dist
9.
▲
by
maskros
3y ago
The embeddings are just a flat array of floating point numbers. Try typed arrays/buffers to read and write the typed arrays directly as BLOB data. Protobuf and JSON and other serialization schemes are way overkill for something that sh
10.
▲
by
maskros
3y ago
Autoincrement is usually not needed in SQLite, and adds a lot of overhead to every insertion since it needs to read and update the sqlite_sequence table on every insert. https://www.sqlite.org/autoinc.html
11.
▲
by
maskros
3y ago
Or use "VACUUM INTO" to get a backup that is is even faster (and easier) to restore.
12.
▲
by
maskros
3y ago
Judicious use of git rebase fixes the commit spam issue.
13.
▲
by
maskros
3y ago
Because astigmatism or other refractive vision errors. Think about how astigmatism affects vision, then take into account the effect on pupil size based on incoming brightness, and how this affects the depth of field, and you may understand
14.
▲
by
maskros
3y ago
Last time I tried it was impossible to get Chrome on linux to use the system font rendering settings. There's no way to tell Chrome to: a) Don't hint/grid fit. b) Don't use cleartype color fringing. That's reason en
15.
▲
by
maskros
3y ago
"\0" is not a valid JSON string escape sequence. However, "\u0000" is.
16.
▲
by
maskros
3y ago
You're not the only one, but my configuration is the opposite of yours. These are the three lines I always use on any vim install. let loaded_matchparen = 1 syntax off map ; : The first two lines are crucial, because
17.
▲
by
maskros
3y ago
If "handle error" in the catch involves rethrowing the error, or another error, or returning an error code from the function, the "finally" block is _still_ executed. Here's a "fun" example in Javascript:
18.
▲
by
maskros
3y ago
It's not "I don't want to learn my tools." It's "I don't want to learn and debug _everybody else who may possible want to build this otherwise portable C program_'s tools." When those tools chang
19.
▲
by
maskros
3y ago
With horrible hacks in the reference - search for InputElementDiv and InputElementRegExp if you want to read more about it. It's not so bad in practice, since you only need to look at the previous token to decide whether a / shoul
20.
▲
by
maskros
4y ago
Not all that uncommon, especially in ifdef situations: ifdef (something,something) rule: something specific recipe else rule: common recipe endif It's also not just rules. Variable assignments are
21.
▲
by
maskros
4y ago
He is referring to input lag: the delay from input to visible change on the monitor. The double buffering and compositor step added by Wayland adds some delay. You may not personally notice it, or be used to it, but it's always there.
22.
▲
by
maskros
4y ago
That's already happened ... just look at how many youtube channels have integrated a "and now let's briefly talk about my sponsors" segment in the middle.
23.
▲
by
maskros
4y ago
I'm also in the 24fps hater camp. It's not jitter that bothers me, it's the stop motion effect. It's especially bad with action sequences that have a lot of closeup shots. This is basically every movie with any sort of a
24.
▲
by
maskros
4y ago
It's not just extra DNR applied, modern image and video compression formats almost make it a point to erase all detail and texture from images. For example, compare the WebP and AVIF (VP8/AV1) compression artefacts with JPEG (and
25.
▲
by
maskros
4y ago
Chrome has crap image rendering. Chrome has sub-par SVG support. Chrome has a host of issues and bugs with media selectors and imagesets not updating dynamically when changing zoom levels. So no, one must not admit it is "simply the be
26.
▲
by
maskros
4y ago
Not true. Firefox is vastly better in terms of rendering quality for scaled and/or transformed raster images. Chrome always sacrifices quality for performance, with no way to choose. Firefox's SVG support is also miles ahead, both
27.
▲
by
maskros
4y ago
It can be done with relative ease. There is a commercial tool somewhere that does it, because I've run across many PDF files that use a DjVu like structure for scanned books. It won't be perfectly lossless, because the IW44 compre
28.
▲
by
maskros
4y ago
Or maybe we can just have interoperability and open systems so all users can be happy, and don't have to choose between being obnoxious social outcasts or bow down in total obedience to the surveillance capitalists?
29.
▲
by
maskros
4y ago
This is nice! I can't help but wonder why everyone still names their API functions Foo_to_Bar when the reverse Bar_from_Foo is so much more readable when chaining conversions. Compare the example here: let myoklch = OKLab_to_OK
30.
▲
by
maskros
4y ago
libxml2 can be massive overkill if you just want to parse XML data. Unless you need schema validation and namespaces and all that jazz, you can parse XML in C with a simple state machine of ~200 lines. Add another 200 to build a DOM-like st
More ›