385 karma · joined Mar 22, 2017 (9y ago) · 100 submissions
comment 1y ago · link · parent
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 nothing like the input -- it's just a bunch of blurry JPEG images wrapped in a PDF format.
You can't search or copy the text, and trying to print it will just make a blurry mess of the text.
comment 2y ago · link · parent
When backing up a SQLite database that is in running use, you should never use `.backup`. That command will restart the backup from scratch every time the database is written to, so if you're backing up a big database with a lot of periodic writes the backup process may never complete.
You can sometimes use the C backup API from the same process that is writing to the database, since the C backup API is aware of writes _from the same process_. It will still have to restart the backup procedure if writes from another process interfere.
comment 2y ago · link · parent
WHIRR! WHINE! HUM! LOOK AT ME I'M ELECTRIC WITH A BIG SPEAKER! WHINE! WHIRR!
BING, BING, BING, BING, BING! LOOK OUT HERE I COME IN REVERSE! BING! (The Ioniq 5 is a particularly bad offender here ... the reversing bing can be heard multiple blocks away).
I wish EV auto-makers would turn the default warning noise levels their cars emit WAY THE FUCK DOWN because it's seriously annoying! I get not wanting to startle pedestrians, but you don't have to alert the entire neighborhood...
comment 2y ago · link · parent
If it doesn't, it should be a relatively simple task to upgrade the mupdf library to the latest version and recompile Sioyek to get all the file formats supported by mupdf.
comment 3y ago · link · parent
a) Don't hint/grid fit. b) Don't use cleartype color fringing.
That's reason enough to avoid Chrome for me. Compound that with Chrome's low quality image rescaling algorithms (and the absolute boneheadedness of their bug triaging, where any reports about it will invariably get filed under the wrong component and be closed before anyone who can actually understand the problem will look at it) and oh so many SVG rendering quality issues. I really hope Firefox can survive the current leadership and remain a strong alternative for decades more to come.
comment 3y ago · link · parent
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 I find rainbow colored text and flashing punctuation extremely distracting. If you find monochrome code unreadable, then that's a problem with your formatting style that you can easily fix.The last line is really handy for not having to hold down shift so much.
comment 3y ago · link · parent
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 change how they do this unportable thing every couple of years in subtle and incompatible ways, which require #ifdef's to handle the different ways those linked against symbols can be accessed, multiplied by dozens of different platforms, then yes, I'm going to compile an 8MB literal.
comment 3y ago · link · parent
It's not so bad in practice, since you only need to look at the previous token to decide whether a / should be parsed as a division or regular expression, once you've excluded the possibility for // and /* comments.
Comments are also why the empty regular expression in JavaScript must be written as /(?:)/
comment 3y ago · link · parent
ifdef (something,something)
rule:
something specific recipe
else
rule:
common recipe
endif
It's also not just rules. Variable assignments are also separate from recipes, and can be indented with spaces. ifdef (something)
CFLAGS=something
else
CFLAGS=otherthing
endifcomment 4y ago · link · parent
You may not personally notice it, or be used to it, but it's always there. Some people are more bothered by input lag than others, and there are so many compounding factors today that make it worse than ever. It's not only the double buffering in graphics subsystems like Wayland. Monitors are also often adding a frame or two delay to bump up their pixel "response times" and reduce ghosting by looking at future frames.
I swear, using Wayland or MacOS or Windows 10 on the fastest hardware today still feels slower and laggier than 10 year old hardware running plain X11 or Windows 7 (with the compositor turned off).
Given the choice between tearing and input lag, I'll take tearing any day.
comment 4y ago · link · parent
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 action in the past decade or so. If you do closeup shots in on some fast action in 24fps you don't have to worry one bit about choreography, since it'll just be a choppy blurry mess and nobody can tell what's going on anyway.
comment 4y ago · link · parent
For example, compare the WebP and AVIF (VP8/AV1) compression artefacts with JPEG (and MPEG).
With WebP and AVIF all textures and low contrast details tend to be erased or smoothed out, preserving only high contrast parts of the image.
The JPEG image may have some visible ringing and block edge artefacts, but at least the textures and fine details are preserved!
comment 4y ago · link · parent
So no, one must not admit it is "simply the best engine out there". Not by a long shot.
comment 4y ago · link · parent
It won't be perfectly lossless, because the IW44 compression of the color layer will need to be recompressed as JPEG or JPEG2000. The JB2 mask layer can be losslessly recompressed as JBIG2 or CCITT G4 Fax.