News for hackers. Stuff that matters.
Re:JPL director: Curiosity may have found organic, not biolo... by rpm4321 on Wednesday November 28, 2012 @07:45AM (#4842216)
Bit of a tangent, but does anyone know of a service where I can copy in a pdf url and get a rough approximation of the content as plain text html?
Re:JPL director: Curiosity may have found organic, not biolo... by lloeki on Wednesday November 28, 2012 @07:58AM (#4842254)
Not a URL but arguably more useful:

    $ curl http://www.nickbostrom.com/extraterrestrial.pdf | pdftotext - -
Don't forget the two dashes, as it doesn't default to reading stdin, and doesn't default to writing to stdout when instructed to read from stdin.

Also, pdftotext is part of poppler in Arch and poppler-utils in Debian.

Re:JPL director: Curiosity may have found organic, not biolo... by rpm4321 on Wednesday November 28, 2012 @08:04AM (#4842281)
Embarrassingly enough, I'm a Python dev on Win7 - now you know why I'm so paranoid. :)

Thanks anyway, though.

Re:JPL director: Curiosity may have found organic, not biolo... by nfg on Wednesday November 28, 2012 @10:13AM (#4842880)
The instructions work fine with cygwin on windows btw, pdftotext is in the poppler package.
Re:JPL director: Curiosity may have found organic, not biolo... by lloeki on Wednesday November 28, 2012 @08:36AM (#4842415)
Then, PDFMiner comes to mind. Pure python, so slower but no C/native dependencies.
Re:JPL director: Curiosity may have found organic, not biolo... by rpm4321 on Wednesday November 28, 2012 @07:57AM (#4842253)
Here we go: http://viewtext.org/article?url=http%3A%2F%2Fwww.nickbostrom...

I'm really paranoid about loading unfamiliar websites up (I've got a version of Chrome with js and plugins disabled that I use for random links), and pdfs are still a bit of a concern as an attack vector. It looks like this viewtext.org will come in handy.

</tangent>

Re:JPL director: Curiosity may have found organic, not biolo... by Terretta on Wednesday November 28, 2012 @08:12AM (#4842309)
EDIT: Reading comprehension problem -- you wanted clean HTML. I thought you meant you wanted an HTML5 viewer.

  - - -
This is nice:

https://docs.google.com/viewer

Example using this PDF:

https://docs.google.com/viewer?url=http://www.nickbostrom.co...

Clean, light, and doesn't require a GA login.

Re:JPL director: Curiosity may have found organic, not biolo... by AdrenalinMd on Wednesday November 28, 2012 @08:23AM (#4842355)
Usually the vacuum's functionality of scribd is used, but it seems to not work at this moment http://www.scribd.com/vacuum?url=http://www.nickbostrom.com/...
Re:JPL director: Curiosity may have found organic, not biolo... by wtracy on Wednesday November 28, 2012 @09:04AM (#4842536)
I paste the complete url into Google search, then hit "Quick View" on the first result.