Readit News logoReadit News
pph commented on So you want to modify the text of a PDF by hand (2020)   gist.github.com/senderle/... · Posted by u/mutant_glofish
blincoln · 3 years ago
The PDF specification is wild. My current favourite trivia is that it supports all of Photoshop's layer blend modes for rendering overlapping elements.[1] My second-favourite is that it supports appended content that modifies earlier content, so one should always look for forensic evidence in all distinct versions represented in a given file.[2]

It's also a fun example of the futility of DRM. The spec includes password-based encryption, and allows for different "owner" and "user" passwords. There's a bitfield with options for things like "prevent printing", "prevent copying text", and so forth,[3] but because reading the document necessarily involves decrypting it, one can use the "user" password to open an encrypted PDF in a non-compliant tool,[4] then save the unencrypted version to get an editable equivalent.

[1] "More than just transparency" section of https://blog.adobe.com/en/publish/2022/01/31/20-years-of-tra...

[2] https://blog.didierstevens.com/2008/05/07/solving-a-little-p...

[3] Page 61 of https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandard...

[4] For example, a script that uses the pypdf library.

pph · 3 years ago
The permission field can also lead you down the rabbit hole of discovering noncompliance to its specification in some PDF writers and workarounds for these that may or may not be present in different PDF readers/libraries.
pph commented on Octos – HTML live wallpaper engine   github.com/underpig1/octo... · Posted by u/underpig1
pph · 3 years ago
I'm using Lively Wallpaper[0] to show an audio visualizer (trough CefSharp). The CPU load as shown in Task Manager is around 1.5-2% on my Ryzen 5800X. Therefore I tend to activate it only when I actually play some music and have it show.

[0] https://github.com/rocksdanister/lively

pph commented on TODO apps are meant for robots   frantic.im/todo-for-robot... · Posted by u/_xivi
wruza · 3 years ago
Second, having a list provides a reward structure: if you get a thing done, you get to tick a box. And then the list is shorter

It also provides unmatched satisfaction when you see a THICK stack of past todo papers in your drawer.

pph · 3 years ago
> unmatched satisfaction (if they were done)
pph commented on QubesOS – A reasonably secure operating system   qubes-os.org/... · Posted by u/TheFreim
onetuser · 3 years ago
Also remote desktop cannot be done at least by usual means. And this is big No if you need to work remotely sometimes.
pph · 3 years ago
xfreerdp works just fine, however it requires some fiddling if you want to use it on multiple monitors.
pph commented on Is Google reCAPTCHA GDPR Compliant?   wideangle.co/blog/is-reca... · Posted by u/openplatypus
jansan · 3 years ago
So hosting an ad is now illegitimate? How about embedding a video? And why should you not embed stuff from a CDN?
pph · 3 years ago
It is not a problem to load a static (not changing based on user data) ad from your own server. Using a CDN is likely legitimate interest when it is not using private data for other reasons than serving the content.

(I'm not a lawyer.)

pph commented on Is Google reCAPTCHA GDPR Compliant?   wideangle.co/blog/is-reca... · Posted by u/openplatypus
fkyoureadthedoc · 3 years ago
In addition to spam, preventing bots from buying up all the GPUs and PS5s in the recent past would have been nice.
pph · 3 years ago
Though in the end you're the one clicking busses and bikes and bridges and busses again and when you're through that charade, everything is gone anyway because the bots were faster/better at that..
pph commented on Ask HN: Refusing all cookies, still targeted by ads. How?    · Posted by u/2rsf
Thorrez · 3 years ago
That sounds like it applies to cookies and local storage, not all tracking. It doesn't sound like it applies to IP-based or device fingerprint-based tracking.
pph · 3 years ago
It's two different directives:

- ePrivacy Directive which is about local storage

- GDPR which is about information processing

pph commented on ELO Everything   eloeverything.co/... · Posted by u/admp
nr11_bullseye · 3 years ago
Now he has -700 Elo. Did good faith just win or did the owner of the website intervene?
pph · 3 years ago
#589 -12579 Vladimir Putin #588 149 Adolf Hitler #587 658 Satan
pph commented on I moved to Germany and regret it   businessinsider.com/us-ge... · Posted by u/marvinblum
red_trumpet · 3 years ago
While I generally agree that small cities with elderly population are more problematic, and Otterberg might be an instance of that, I found it interesting, that they definitely vote left-leaning[1]. The red "SPD" are the social democrats, "CDU" are more conservative christian democrats.

[1] https://de.wikipedia.org/wiki/Otterberg#Politik

pph · 3 years ago
While local politics are difficult to judge from afar, I generally wouldn't consider the SPD left for a long time now. I'd recommend not putting too much weight on the (local) voting results.
pph commented on Two years of teaching high school CS   blog.charliemeyer.co/what... · Posted by u/csmeyer
vel0city · 3 years ago
When I was a teenager first learning the basics of coding, I usually found programming books that focused on actually making things to be the best tools for learning. Books like "Beginning C++ through Game Programming" and "Teach Yourself C# in 24 Hours" were way more engaging and picking apart the code samples probably taught me more than what most of my peers did in the intro to CS class in college.

When you can actually see the changes to things and have a real interesting project to work on its way more engaging that just going over the theory of things. Obviously, one should follow up with actually learning the theory as well to get a deeper understanding, but I often just can't grok things unless I can play with them.

pph · 3 years ago
I started "programming" by taking a game server script (template) and building my way around:

> Let's spawn a car there! > Let's make a multidimensional array of car types & location to spawn! > Let's load the data from another file! > What is this "database" thing I just heard of?

And down the rabbit hole they go.

u/pph

KarmaCake day92October 3, 2021View Original