Recent submissions

Comment · 3 years ago
pdftotext in python works pretty well:

  import pdftotext
  import sys
  
  with open("test.pdf", "rb") as f:
    pdf = pdftotext.PDF(f,physical=True)

  for page in pdf:
    print(page)
Comment · 3 years ago
Here's a stackoverflow link with a similar question: https://stackoverflow.com/questions/34732718/why-isnt-there-...

I actually don't know if there are fonts to cover every single unicode character (as in there may be characters that literally don't have a font that supports it), but I could be wrong.

I'll suggest a ridiculous hack, but it could end up being a cool little project.

You can download all of the unicode characters from the unicode website, and then write a script to iterate through them all.

This site is a pretty good resource for finding fonts that support a character: https://www.fileformat.info/info/unicode/char/0041/fontsuppo...

Just switch out the second to last param (0041) in that URL with the character code, make a GET request to the page, and then scrape the html for a font. Then do some kind of a distinct() on those fonts and you might have a pretty good list (you might DOS the site though).

Comment · 3 years ago
Maybe I'm wrong, but I find the discussion around "reminding" yourself to have good posture off-base. It's like saying that if you want larger biceps, you should walk around with your biceps flexed all day. I feel like the important part is strengthening your postural muscles, and then just living normally
Comment · 3 years ago
If you spend less than or equal to 2/3 of your current income right now you should be able to quit with 0 years living expenses covered. If you spend all of your current income right now, and your 5 years living expenses assume 0 income than you essentially have 15 years of runway. Seems fine to me if your math is right
Comment · 3 years ago
I honestly think there's a huge market for a consumer grade "pet" robot. Would love to have one of these running around, then I can just turn it off when I leave
Comment · 3 years ago
Should happen every ~115 days
Comment · 3 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton