Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
steerablesafe
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
steerablesafe
5y ago
> Greyscale with wrong gamma and/or wrong blend mode isn't fatal, it is fatal with subpixel. I might not be fatal with black-on-white or white-on-black, but grayscale is pretty much still horrible with colored text and backgrou
62.
▲
by
steerablesafe
5y ago
Yes, it's more complicated, and parts of it might need hacks, as there are no standard way to get subpixel layout. That's a failure of those display APIs though, not the failure of the concept of subpixel-AA itself. > does it m
63.
▲
by
steerablesafe
5y ago
Pixel boundaries on your display are imaginary, all you have are RGBRGB light sources next to each other. The pixel boundaries are determined by your left-most and right-most light sources on the display, so you have |RGB|RGB|..., but it re
64.
▲
by
steerablesafe
5y ago
> Greyscale-AA is the “natural” approach to anti-aliasing. > Subpixel-AA is a trick that abuses the common way pixels are laid out on desktop monitors. I disagree with this notion of subpixel-AA being "abuse". If anything, g
65.
▲
by
steerablesafe
5y ago
For me this feels like a candidate to build on top of fmt instead of a standalone thing, with a custom formatter wrapping JSON data. I think that direction of extension might still be open, while keeping the current interface for convenienc
66.
▲
by
steerablesafe
5y ago
Ah, I missed that.
67.
▲
by
steerablesafe
5y ago
If you only install supposedly non-conflicting packages, and there are conflicting file locations, isn't that a packaging bug?
68.
▲
by
steerablesafe
5y ago
Just to chip in what should the commit message say: it should express the intent of the change and the reason of the change (latter could be reference to ticket). I don't think expressing how the intended change is achieved is importan
69.
▲
by
steerablesafe
5y ago
Well sure. Try not to download them at the same time.
70.
▲
by
steerablesafe
5y ago
Editing once, with the approval of the authors is one thing. "Automatic" editing on each download is an other.
71.
▲
by
steerablesafe
5y ago
It probably doesn't worth the cost. Metadata can be trivially stripped, and altering the encoded video and audio streams for each user for fingerprinting is costly.
72.
▲
by
steerablesafe
5y ago
I don't see why.
73.
▲
by
steerablesafe
5y ago
Then your tool is incomplete. Steganography works by encoding information into side channels, like precise positioning of words in the PDF, fonts, etc... Your tool can be as crude as running the document through pdftotext and only keeping t
74.
▲
by
steerablesafe
5y ago
I don't recommend normalizing differences, as in using both sources as input to produce one "cleaned" output. It could leave watermarks that happen to be the same in both sources. I recommend having a tool that works on a sin
75.
▲
by
steerablesafe
5y ago
You just pick a font and always replace with that.
76.
▲
by
steerablesafe
5y ago
To verify that a watermark removal method works: 1. Download the content with N accounts, preferably from different networks. 2. Run your watermark removal tool on each downloaded data independently. 3. Check if the processed outputs are bi
77.
▲
by
steerablesafe
5y ago
> although I never seen it used in production Well, of course boost has it, they use `<` and `>`: [1] https://www.boost.org/doc/libs/1_78_0/libs/hof/doc/html/incl...
78.
▲
by
steerablesafe
5y ago
More generally if you want to redact pixels, then don't replace them with information that depend on those pixel values. It doesn't necessarily mean a black rectangle, but that's certainly simple and it works.
79.
▲
by
steerablesafe
5y ago
It's semantically slightly different. In the case of diff3 if you remove everything but the base part, then you get exactly the base version, while in the case of zdiff3 you also get the prefix and suffix parts from the two branches th
80.
▲
by
steerablesafe
5y ago
I don't know about Rust. Several people responded that Java already has a builder interface for creating a format string. That is possibly more type erased than the Rust macro equivalent. In C++ I would use variadic templates, as I ori
81.
▲
by
steerablesafe
5y ago
That's perhaps true, but there is no reason why we can't have both. There are many hard-coded format strings in practice.
82.
▲
by
steerablesafe
5y ago
+1 for strongly typed and compile-time checked, but I'm still not a fan of a sub-language within a string literal. The language already has syntax to structure things, why make a separate language within strings?
83.
▲
by
steerablesafe
5y ago
Sure, the issue is somewhat orthogonal. But I assume they wanted to keep the format string parsing minimal, hence the single letter format specifiers. Once you have a strongly typed API, you are no longer bound by this and you can have sens
84.
▲
by
steerablesafe
5y ago
Is it just me for thinking that using format strings instead of some strongly typed interface with verbose names for this is not great? I would take `format(year(), '/', month(), '/', day())` over ad-hoc format
85.
▲
by
steerablesafe
5y ago
It is for deterministically release resources based on scope (although Go's defer is tied to function-scope for reasons I can't understand). python's context manager is similar. Much like destructors in C++. You can probabl
86.
▲
by
steerablesafe
5y ago
If you replace "short-lived objects" with "short-lived resources" then Go has defer, Python has context managers.
87.
▲
by
steerablesafe
5y ago
"echo" and "time" are explicitly bash built-ins, "which" and "cat" are not, and you will always get a process spawned there. Your second strace is misleading, you didn't trace child processes.
88.
▲
by
steerablesafe
5y ago
> especially since `cat` is often inlined, without process spawning. That would be surprising. How would that work? `cat` is definitely not a bash built-in.
89.
▲
by
steerablesafe
5y ago
> Maybe you’ll have to throw away an entire IT system because you’ve lost the know how to keep the business case for the system a net positive, but that means a lot less to an organisation (especially enterprise) that we tend to fool our
90.
▲
by
steerablesafe
5y ago
If they got promoted at their new company then you can counter offer with a promotion too?
More ›