Live data from Hacker News

Making a PDF that's larger than Germany

alexwlchan.net

81–90 of 156 posts

Re: Making a PDF that's larger than Germany

#82

Earlier quoted context omitted.

I have the map of US in my cell-phone. I'm somewhat confused by its directions however when I look at the map and want to go somewhere. Is the top-part of the map where I'm moving? Or is the top-part North? Seems it is not North and that is confusing because maps I've seen before have North at the top always. If I turn 90 degrees, the map turns around. But I thought it was I who turned around. And if I stop, the map…

I really hate that too. You are in a intersection and the voice says "Drive north for x miles/km". What is wrong with "turn right and drive for x miles/km"? I normally have zero clue in what direction north is especially when I am in a location i have never been before. I drive a bike and have the phone in my pocket and can therefore not see any arrow that the app might display. I only have the audio to navigate from…

That's odd. My Google Maps tells me to turn left or right. It doesn't use compass directions.

Re: Making a PDF that's larger than Germany

#83

Wait, pdf files aren't binary ?!

I just had the exact same reaction! So I opened a random PDF I had laying around, and yes, it's mostly a text format. Some (most) objects are binary data streams, but some are also text data. Likewise, objects may or may not be compressed, obviously compressed streams are binary data. But the file structure is text, some objects are xml, and you can figure out quite a lot of stuff just by looking at a pdf in a text editor, and it might not even be that long: the single page PDF I just looked at is just over 1500 lines long, I can definitely manually scroll through it (although offsets are in bytes, not lines, which make them not very useful for manual lookup).

Re: Making a PDF that's larger than Germany

#84
post #68

PDF is a fabulous format. I mean, it’s an awful format in so many ways, technically speaking, but the net effect of having a self-contained static file in your custody stands in blissful contrast to the user-hostile dynamic/SaaS website that can be taken away at a moment’s notice. PDF/A is the true PDF - it strips out most of the dangerous cruft. Anyway, if you like weird PDF hijinks, here’s a polyglot PDF/A CSV file…

Does it anything else? Maybe pwn me via my PDF viewer?;)

It contains Bitcoin hashes, rendering them one by one as it mines them.

Re: Making a PDF that's larger than Germany

#85
post #29

>Please don’t try to print it. Sounds like a print bomb waiting to happen. Last time I had a printer it was next to impossible to cancel a print job on Windows. Back when people had wifi printers that were open or ill-secured, those were fun times.

when i read

> Please don’t try to print it.

my first reaction has been: you are not my mom. >:-)

Re: Making a PDF that's larger than Germany

#86

It seems germane at this point to paraphrase Steven Wright. “I have a map of the United States. It’s actual size. “

I have the map of US in my cell-phone. I'm somewhat confused by its directions however when I look at the map and want to go somewhere. Is the top-part of the map where I'm moving? Or is the top-part North? Seems it is not North and that is confusing because maps I've seen before have North at the top always. If I turn 90 degrees, the map turns around. But I thought it was I who turned around. And if I stop, the map…

> What are some good tactics on how to use Google-map on your cell-phone?

For navigation?

1. Don't activate navigation. It's broken six ways to Sunday, and burns through battery like there's no tomorrow. Use route preview instead (i.e. the step after searching, but before activating the voice nav proper).

2. Use your fingers to rotate the map so it always faces the same way you're going.

3. If confused, recenter and press the compass so it rotates to have North at the top, and continue from there.

Now FWIW, I use Google Maps when navigating on foot/scooter, or as a pilot in the car. If I were a driver... I'd probably buy TomTom or whatever nav that's not shit.

Re: Making a PDF that's larger than Germany

#87
post #29

>Please don’t try to print it. Sounds like a print bomb waiting to happen. Last time I had a printer it was next to impossible to cancel a print job on Windows. Back when people had wifi printers that were open or ill-secured, those were fun times.

> it was next to impossible to cancel a print job on Windows It's still impossible. The only reliable method I've found consists of turning the printer off and then deleting the print job in the queue. Only way to get Windows to actually delete it. Doesn't work unless the printer is sitting right next to me, of course. I have no idea why this is so hard.

And sometimes windows won't delete it from the print queue as it can't talk to the printer. Fun times.

Re: Making a PDF that's larger than Germany

#89

It seems germane at this point to paraphrase Steven Wright. “I have a map of the United States. It’s actual size. “

I have the map of US in my cell-phone. I'm somewhat confused by its directions however when I look at the map and want to go somewhere. Is the top-part of the map where I'm moving? Or is the top-part North? Seems it is not North and that is confusing because maps I've seen before have North at the top always. If I turn 90 degrees, the map turns around. But I thought it was I who turned around. And if I stop, the map…

There are two modes in Google Maps - one shows the map in a fixed rotation (north on top by default, but you can rotate the map with two fingers), the other mode automatically rotates the map based on what direction you're facing. *Facing*, not moving, so you don't actually have to walk for it to determine the direction.

You can switch between the modes by clicking a compass icon

Re: Making a PDF that's larger than Germany

#90
post #35

For a moment I wasn't sure if I wanted to click on the link.

On an only slightly related note: is there any good way to check PDFs for malware/executables? If I'm stuck with an attempt at it, the best I can think of is opening in a new QEMU or docker with no Internet access, but that's 1) a fair but of work to check something, and 2) probably not even that secure. Using some cli tool, like xxx, bat, or ranger, that does some processing to extract the text and looking at just t…

There are some pdf readers that protect you against those things.

On Android, for example, there is the GrapheneOS Pdf Viewer [1]. It's readme has a pretty good explanation of how it works.

1: https://github.com/GrapheneOS/PdfViewer

Post reply on HN