Live data from Hacker News

Getting my daily news from a dot matrix printer

aschmelyun.com

241–250 of 259 posts

Re: Getting my daily news from a dot matrix printer

#241

Somewhat relevant, I use this little script to open front page of NYTimes daily morning on my macbook: d=$(date +%d) m=$(date +%m) y=$(date +%Y) wget -q https://static01.nyt.com/images/$y/$m/$d/nytfrontpage/scan.p... && open ./scan.pdf

That's neat! I turned it into a one liner `rm todays_nyt.pdf; wget -q "https://static01.nyt.com/images/$(date +%Y/%m/%d)/nytfrontpage/scan.pdf" -O todays_nyt.pdf && open todays_nyt.pdf `

Re: Getting my daily news from a dot matrix printer

#242
post #169

Somewhat relevant, I use this little script to open front page of NYTimes daily morning on my macbook: d=$(date +%d) m=$(date +%m) y=$(date +%Y) wget -q https://static01.nyt.com/images/$y/$m/$d/nytfrontpage/scan.p... && open ./scan.pdf

I made an RSS feed of these front-page images a while ago if anyone wants to use them: https://nytonline.net/rss

See also https://www.frontpages.com/

https://www.frontpages.com/us-newspapers/

Re: Getting my daily news from a dot matrix printer

#243
post #224

Earlier quoted context omitted.

I can't find any evidence that anyone has ever died from bisphenol-A poisoning. Searching the medical literature finds no case studies of emergency-room visits or dying epoxy painters. Rat studies like https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&d... and https://www.researchgate.net/publication/236345183_Pathologi... come up with acutely lethal oral doses around 2000–3000 milligrams per kilogram, by wh…

>I can't find any evidence that anyone has ever died from bisphenol-A poisoning. That's like talking about cigarettes and claiming people don't die from nicotine, therefore smoking isn't a problem. Missing the point terribly.

On the contrary, nicotine poisoning is common, the lethal dose in humans is relatively well characterized (though higher than most poisons: 500–1000mg/kg) and there are many case studies of nicotine poisoning in the medical literature, many of which are life-threatening and some of which are even lethal: https://en.wikipedia.org/wiki/Nicotine_poisoning. Moreover, nicotine has been widely used to kill insects in the past. Consequently, there are well-established occupational safety limits. None of these things are true of bisphenol-A, even though it is produced in much larger quantities than nicotine ever has been.

Perhaps your intended reference, however, is to the other toxic components of cigarette smoke, such as benzo[a]pyrene. That is, cigarettes kill something like one out of ten people, but the vast majority of those deaths are not due to nicotine. (Except in the indirect sense that nicotine is addictive and induces people to smoke cigarettes so that they are exposed to the other poisons in the smoke.)

Very well, then. What are the other toxic components of thermally printed receipts you're concerned about?

I'm open to hearing what point you think I'm missing, but so far all you've done is strike a pose of fatigued knowingness. If you have knowledge to share on this matter, by all means, share it; certainly I won't be the only one who needs the point spelled out for them, because as dumb and uninformed as I admittedly am, I doubt I'm the dumbest or least informed person reading this thread.

Re: Getting my daily news from a dot matrix printer

#244
post #171

Earlier quoted context omitted.

Receipt printers are fun but take care not to buy toxic paper https://www.consumerreports.org/cro/news/2014/03/the-health-...

The most mainstream phenol free thermal paper out there is one made from a branded chemical "pergafast" which is supposedly based off of urea. This is increasingly the type used by big brand stores where the paper is advertised as BPA and BPS free. It appears safe in studies so far in terms of not being absorbed through the skin nor endocrine disrupting, but is also known to be highly toxic to aquatic life. There's a…

Always remember that X-free or similar claims of not being toxic only means that the substances used instead of X are not yet known to be as toxic (or at just that the laws haven't caught up yet). It isn't guarantee that the new product is any safer than X and it might even be less safe. After all, the X in question was also seen as perfectly fine at some point.

Re: Getting my daily news from a dot matrix printer

#245
post #224
post #217

Earlier quoted context omitted.

> it's not "toxic" by the usual definitions iirc if you have wet hands you absorb way more and it is toxic

I can't find any evidence that anyone has ever died from bisphenol-A poisoning. Searching the medical literature finds no case studies of emergency-room visits or dying epoxy painters. Rat studies like https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&d... and https://www.researchgate.net/publication/236345183_Pathologi... come up with acutely lethal oral doses around 2000–3000 milligrams per kilogram, by wh…

> My best guess is that we'll find out that a few food additives that became popular 50 years ago upset the intestinal microbiome in a way that promotes obesity.

I bet it's mostly just sugars. That and plain overconsumption and lack of exercise. Excacerbated by societal shifts that mean people don't get shamed into behaving better as much as they used to be. Trying to blame evil chemicals for making you fat is just a cope for those that don't want to take any responsibility for their unhealthy lifestyle - even if there are additives that "promote obesity" it's going to be a relatively minor effect compared to the basic energy in vs. energy out balance.

Re: Getting my daily news from a dot matrix printer

#246
post #103

Earlier quoted context omitted.

IIRC, Apple employed the maintainer[1] of CUPS - which is/was available on MacOS for network printing, and has been available on Linux for even longer. I would be surprised if the feature was not available on Linux for your printer. Edit: added footnote 1. The chief maintainer - not the only maintainer, between 2007-2019

I know about CUPS. There is no real alternative on Linux, is there? But it doesn't work like on macOS. I am sure they added some of magic on top. On macOS I think it either recognized my printer or I had to select it from a list. I don't remember which for sure. It was a few years ago. On Linux my Brother printer is not on the list. Brother offers a deb and rpm packages which may be obsolete for all I know. Then you…

Dunno about your printer but with my Brother Laser the CUPS driver can do double-sided printing on Linux just fine.

But you should in theory also be able to do this without any Brother-specific driver since pretty much all modern printers speak IPP for mobile device compatibility.

Re: Getting my daily news from a dot matrix printer

#247
post #230
post #203

Earlier quoted context omitted.

That is wrong. CUPS recommends using the IPP protocol , but the IPP driver (called “IPP Everywhere”) is only available on relatively modern printers. Everything else still has to use drivers, mostly PPD.

Any CUPS daemon will raise the following warning on startup. I just copied this from my Systemd log: cupsd[873]: Printer drivers are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103 Not saying this is the correct decision, but IPP Everywhere is available on most printers that are < 10 years old. Obviously, that rules out older printers, which are fairly…

From the mentioned issue:

> As for printer drivers, those few printers that "need" them can migrate to standalone applications/services using the CUPS API to provide an IPP Everywhere-compatible Printer instance. PAPPL provides a convenient framework for easily creating these applications and porting existing CUPS raster drivers, and the following printer applications are already available or (in the case of Gutenprint) under development:

[...]

> ps-printer-app: PAPPL-based PostScript printer application that supports all CUPS/PostScript printers via PPDs and includes all of the Foomatic and HPLIP drivers.

So drivers will still be supported in a sense, just not directly by the CUPS daemon.

Re: Getting my daily news from a dot matrix printer

#248
post #232
post #230

Earlier quoted context omitted.

Any CUPS daemon will raise the following warning on startup. I just copied this from my Systemd log: cupsd[873]: Printer drivers are deprecated and will stop working in a future version of CUPS. See https://github.com/OpenPrinting/cups/issues/103 Not saying this is the correct decision, but IPP Everywhere is available on most printers that are < 10 years old. Obviously, that rules out older printers, which are fairly…

I have a Brother printer from 2019 (HL 2340) that does not support IPP Everywhere. A lot of other printers from before ~2020 don’t either. You are (like so many other people) confusing IPP the protocol with IPP the driver, which is honestly not your fault and a terrible naming mistake. And like you mentioned, people have way older printers because if all you do is print monochrome and mostly text, a printer from 2004…

If you read the linked issue you will see that the plan for legacy printers is to move the printer drivers under a separate application that CUPS can then talk IPP to.

So yes, CUPS itself will only support IPP without any printer-specific driver. Since mobile phones also only directly support IPP this sounds like a reasonable decision.

Re: Getting my daily news from a dot matrix printer

#249
post #31

So, curiosity today. One of the things that this person does is simply echo to /dev/lp0. Which is all you did back in the day. Shove text down the interface, and the printer printed. Now, while we have very fancy modern printers, they're still printers with a long legacy. Even back in the day, early HP laser printers worked like this. Shove data down the wire, and it printed (Courier 10, 66 lines per page). Only the…

I just tested this on OS X, which doesn't expose printers through /dev/ in the way you're describing as far as I can tell. But apparently lp exists on OS X, so you can do echo "Hello printer" | lp -d , and find the name through lpstat -p. And sure enough, this works! Just tested on my new printer.

The question then is, does this lp utility just feed the text directly to the printer or is it just a legacy compatibility layer that goes through the normal printing APIs to do its thing.

Re: Getting my daily news from a dot matrix printer

#250
post #185

Earlier quoted context omitted.

Yeah, I'm surprised this works. I expected some complex printer-specific reverse engineered protocol.

The modern "protocol" is PDF. That's what everyone standardised on during the rise of smartphones and needing to have them able to print. PDF includes pretty much all the printer needs, like pagesize, colour palette, font information, etc. It's not the greatest format in the world... But everyone can shove in one of dozens of PDF parsing libraries without a lot of effort. So it happened.

The document format is PDF (or postscript before that), the protocol is IPP.
Post reply on HN