Readit News logoReadit News
ddeokbokki commented on What's so hard about PDF text extraction?   filingdb.com/pdf-text-ext... · Posted by u/maest
Iwillgetby · 6 years ago
If you upload a pdf to google drive and download it 10 minutes later it will magically have BY FAR the best OCR results in the pdf. Note my pdf tests were fairly clean so your experience may not be the same.

I have used Google's fine OCR results to simulate a hacker.

- Download a youtube video that shows how to attack a server on the website hackthebox.eu

- Run ffmpeg to convert the video to images.

- Run a jpeg to pdf tool.

- Upload the pdf to google drive.

- Download the pdf from google drive.

- Grep for the command line identifiers "$" "#".

- Connect to hackthebox.eu vpn.

- Attack the same machine in the video.

ddeokbokki · 6 years ago
This solution is absolutely beautiful
ddeokbokki commented on Never Use Floats for Money (2016)   husobee.github.io/money/f... · Posted by u/adunk
nostrademons · 6 years ago
If your customers are already using floats, precision has already been lost. They're sending you data that already has floating-point round-off. If you then treat that as integer numbers of cents, you're adding additional round-off error by converting their 23 bits of binary precision to 2 digits of decimal precision. It's better to use the same format they do so that all floating-point error occurs within their systems, where it's known, has presumably been judged to be low-risk, and can be compensated for, rather than silently and unpredictably add new sources of error that your customers don't know about.
ddeokbokki · 6 years ago
There is no source of errors in doing: bigint_value = float_value * 10^E if E else float_value float_value = bigint_value / 10^E if E else bigint_value

Obviously only convert to real numbers if you are doing operations on numbers in your system, otherwise keep in client format like you said.

ddeokbokki commented on Advanced usage of Python requests: timeouts, retries, hooks   findwork.dev/blog/advance... · Posted by u/dhxt
ddeokbokki · 6 years ago
That sentry responses decorator is absolutely beautiful
ddeokbokki commented on Court says Melbourne dentist can seek user details from Google over bad review   theguardian.com/technolog... · Posted by u/vsurabhi
chobble · 6 years ago
Google reviews are an insidious menace.

Google gives any bad actor the ability to leave bad reviews about your business with no recourse.

Silicon Valley at its most disgusting.

This alone is reason to dismantle google and strip its power.

Google destroys businesses and throws it hands in the air and declines to do anything to fix its foul business practices.

Google reviews is like those ghastly sites that allowed people to say things anonymously about other people. Those sites fortunately died. But hey google reviews are about businesses not people so that’s fair game to google.

ddeokbokki · 6 years ago
What's the difference with other review platforms?

I feel like on Google you at least have the google identity of the reviewer which tend to represent a natural person better than other accounts on other review platforms.

ddeokbokki commented on Never Use Floats for Money (2016)   husobee.github.io/money/f... · Posted by u/adunk
nostrademons · 6 years ago
I remember hearing this back when I worked on financial software for hedge funds (2005ish), adjusting our product so it represented currencies as integer numbers of cents, taking the change to my boss (the company CEO), and then hearing "Use floats for money. All of our customers do, and if we don't you'll create needless friction for them."

Ran into it more recently when doing cryptocurrency market analytics. Bitcoin represents currency as integer numbers of satoshi, where 100M satoshi = 1 BTC. Ethereum represents it as integer numbers of wei, where 10^18 wei = 1 ETH. I thought I'd be smart and use these fundamental units internally, only to find out that basically every exchange quotes prices in floats. By the time you get the data, it's already lost whatever precision it had, and you're just introducing needless friction by trying to get smart.

Sometimes being compatible is more important than being correct.

ddeokbokki · 6 years ago
> Sometimes being compatible is more important than being correct.

It's a simple conversion for the sake of precision. If you are dealing with money transactions, you should strive for precise values wherever and whenever possible.

ddeokbokki commented on A Trip Inside Mark Zuckerberg’s Sprawling, Embattled Compound in Hawaii   gizmodo.com/a-trip-inside... · Posted by u/ryan_j_naughton
Tetris1 · 7 years ago
Kinda very shallow report. No photos of actual property (houses) of Zuck.
ddeokbokki · 7 years ago
The article is not about what the property looks like.
ddeokbokki commented on I made a SFW porn viewer from Reddit subs   hdwallpapers.photography... · Posted by u/chovy
ddeokbokki · 7 years ago
I will never understand people that make textual item list and don't sort them in some logical way (such as alphabetical).
ddeokbokki commented on Langton's Ant   en.wikipedia.org/wiki/Lan... · Posted by u/garycomtois
ddeokbokki · 7 years ago
If you're curious about implementations and some nice visuals, check out Challenge #173 of DailyProgrammer [1].

[1] https://www.reddit.com/r/dailyprogrammer/comments/2c4ka3/730...

ddeokbokki commented on It's time to switch to a four-day working week, say two experts   weforum.org/agenda/2019/0... · Posted by u/joeyespo
aiisjustanif · 7 years ago
UK is almost a standard 35 hour work week anywhere. Salesforce, Tesco, Skyscanner, Google UK, almost anywhere. Why you part time at 4 days?
ddeokbokki · 7 years ago
I've never seen anything else less than 40hrs in the UK, UK had the longest working time for a while and I think it still is the highest (in Europe at least) on average.
ddeokbokki commented on It's time to switch to a four-day working week, say two experts   weforum.org/agenda/2019/0... · Posted by u/joeyespo
itamarst · 7 years ago
You don't have to wait for society to make this happen (and in fact waiting will fail you). This is something many programmers have negotiated on their own (e.g. https://codewithoutrules.com/2019/05/09/part-time-software-d...).

More broadly this is one of many good reasons for programmers to unionize; even if salaries are high, working hours are still far too long.

ddeokbokki · 7 years ago
Yup, went contracting for this reason. Code is a passion of my and I love that it's also my trade but I have other personal ventures I need to focus my attention on and I have absolutely no juice left in a regular 5day/40hrs engineering week.

u/ddeokbokki

KarmaCake day82January 11, 2019View Original