Lurker News
Implement scanyourpdf.com in JavaScript. No backend servers needed.

Comments (177) 49 threads

Earlier comments
zw1234562 replies#
True story:

A friend of mine got a letter from his neighbor's attorney bitching about his tree or something stupid. So he literally wiped his ass with it and then took a picture of it and emailed it back with the body of the email saying thanks, I was running out of TP.
can you add that feature ?

77pt772 replies#
How did that story end?
nervousvarun2 replies#
Not OP but almost certainly just fine (for the sender).

From personal experience 99% of what attorneys are paid to do is send threatening letters that have nothing to back them up.

zw1234563 replies#
Ya, totally right, those "try to scare you" lawyer letters from the neighbor who has their lawyer on speed dial are generally bullshit.

In this case of course nothing happened. But my friend said his neighbor just gave him a dirty look from then on but that would have happened anyway.
If someone can sue you they probably will, If they don't have a case their lawyer will send you a stupid letter.

Continue this thread — 3 replies

donthellbanme2 replies#
Not poster either.

I know a bit about tree law in the USA. Neighbors have a right to trim (they must do it, unless the tree is obviously diseased.)any part of a tree that comes over their property line. It's a bit more nuanced, but that's basically the law. (I belive the Tree Cutting outfit is suspose to cut the limbs with care. I mean they are not suspose to introduce pathogens from their tools onto your trees. I have Oak trees and worry about their health. I've noticed PG&E is hiring pretty much any out fit to trim trees. They are seemingly untrained. They don't know what that it's not the low voltage lines that are causing the fires? Years ago I noticed they don't seem to sanitize their chain saws. I once, before the fires, asked PG&E to spray a bit of bleach on their tooling through an email. The following day, there was a side show of sanitizer being sprayed everywhere, and they filmed it. I had no inclination of formally complaining. I just thought a quick clean might kill any pathogens. We have a problem in northern CA with Oak trees dying.
Oh yea, just because a healthy tree falls from your property and damages your neighbors property; it doesn't necessarily mean you are liable to repair their property. It's more complicated. If a lawyer reads this could you educate me?
I ended up just paying my neighbor, who's a lawyer, because a tree healthy tree fell on her property. The tree's trunk truck was 1/2 on the property line. I wasen't feeling good, and didn't want or could afford a fight with a miserable house bound attorney. From my understanding, I probally didn't need to pay anything. (I don't think she had a conversation with anyone without mentioned she passed the bar.)

Continue this thread — 2 replies

DaltonCoffee#
Probably like most shitty litigation
ada19811 reply#
This is a great PR move.

I’m sure this letter made the rounds; clowns on this big brand; and gets free exposure for the underdog. Worth the $500 to write the letter.
Will consider similar tactics in the future.

zw1234561 reply#
The Bar actually has the neighbor "scary letter" thing called out in their rules that you cannot file a complaint with them if you get one of those.

Which tells you what a crappy (hehe) hustle these letters must be.

Continue this thread — 1 reply

moralestapia2 replies#
Great idea and props for shipping.

There's something extremely wrong with your implementation as it just takes too much to render every page.
I've done plenty of work in the past with both canvas and pdf.js (which is what you're using) and it shouldn't be that slow, at all. Perhaps you have a rogue loop that's calling a very expensive function on each pixel of every page, maybe?
Who knows, but for sure performance on that could be near real-time.

seedgou2 replies#
I didn't manipulate the data in pixel level. Maybe because I render PDF in 2x which causes 4x more pixels?
moralestapia2 replies#
That could be the case yes, still I feel it should be better, let me do a quick test as I have some spare time.
seedgou#
The rendering logic is in `src/utils/pdf/renderPage.ts` and has only 26 lines.
moralestapia2 replies#
Here's a very naive blur implementation (which is your most expensive operation there),

https://codepen.io/almosnow/pen/abEXBZP?editors=0011
(at the end of the blur pass it prints the elapsed time to the console)
You're right, it does get kind of slow at 2x, but not that slow, on my laptop it takes around 1 sec/page, while on your site takes 20-30 secs/page. Also, my very naive code does not take into account "warming up" and some other code optimizations to make the blur much faster, you could easily get it down to 100ms/page, I'm sure!
Best luck!

Continue this thread — 2 replies

zikohh1 reply#
yeah even playing with the preview and using the sliders it's super slow apart from that it's amazing! Do some work on the perf pls.
obeattie1 reply#
You are right about performance, but does it really matter?

It feels like this is the sort of tool one needs (very) infrequently, and those cases don’t seem like the sort of thing where seconds really matter. I think it’s plenty good enough.
I prefer to focus on how grateful I am that the author has made this and published it for free.

Continue this thread — 1 reply

redman25#
I wrote a similar program using PDF.js that renders near real-time (https://parepdf.com). You should be able to queue it up without too much trouble. If you’re doing pixel level manipulation, you want to make sure you’re finishing within the browsers frame budget.
xyst2 replies#
Fun project. Thanks for sharing. Got a good laugh at this. Maybe add a “creased corner” feature and residual staple holes.
Cthulhu_#
Would a residual ass print show up on scanned images? Asking for a friend.
matt_heimer#
Inserting fax headers and footers should be an option.

Load more comments