« prev   random   next »

1
0

Patrick.net Suggestions

By someone else follow someone else   2012 Apr 2, 7:09am 89,670 views   153 comments   watch   nsfw   quote   share    


This is the place to make suggestions for how Patrick.net can be most helpful to you and to discuss them.

« First    « Previous    Comments 114 - 153 of 153    Last »

114   Patrick   ignore (1)   2019 May 17, 8:43pm     ↓ dislike (0)   quote   flag      

You're right about images, and I was actually working on that today.

I'm going to let people enter external urls, and then simply upload the image to a cache on my server so that:
1. it won't break if the image goes away
2. it won't show the broken ssl lock when the external image is not from an https site
3. it's really easy for users
4. big threads with lots of external images won't bounce around when loading, because all the image sizes will be known
115   Hircus   ignore (0)   2019 Jun 8, 9:20pm     ↓ dislike (0)   quote   flag      

Could you make the uploaded filenames more unique?

I have this issue both for files that I upload, as well as for urls that you auto convert to files for me.

If I upload more than 1 image per month that has the same name, I run into duplicate issues. Eg, if both my files are named "image.png", then your generated filename is always:

/uploads/2019/06/126743_image.png

And, auto uploaded files are always named like:

/uploads/2019/06/126743_

Notice, it's missing the end.
116   Patrick   ignore (1)   2019 Jun 8, 9:21pm     ↓ dislike (0)   quote   flag      

Thanks @Hircus I will work on that tomorrow.
117   Hircus   ignore (0)   2019 Jun 8, 9:49pm     ↓ dislike (0)   quote   flag      

btw, I often write greasemonkey scripts to customize sites I use. This is one I use for your site, that makes it easy to paste an image from my clipboard. It skips the whole "save to file, then select the file to upload" steps and lets you just paste raw image data, as well as drag + drop a file. I'll post it here for anyone who wants to use, or maybe Patrick might incorporate it into the site.

https://pastebin.com/vpYjGr47
118   Patrick   ignore (1)   2019 Jun 9, 9:37am     ↓ dislike (0)   quote   flag      

@Hircus I deployed a fix for your issue, I think:

https://github.com/killelea/node.patrick.net/commit/3a25449a912d87673fcd32bfad0ada6ead4182cb

So that should make each image upload distinct. I had assumed that no user would upload the same filename more than once, but I guess that isn't true.

Greasemonkey looks like fun. Too bad it's Firefox-only. Could I add that functionality to patrick.net directly?
119   Hircus   ignore (0)   2019 Jun 9, 10:26am     ↓ dislike (0)   quote   flag      

Awesome, thanks

They call the idea "userscripts", and they should have an addon for most browsers, perhaps under a different name. They usually follow the *monkey naming convention, eg I use Tampermonkey on Chrome and Opera.

But, ya I think other users would appreciate if that code was built directly into patnet natively. I think if you just run that code as-is via the DOMContentLoaded event, it should work, although you might want to change it - such as just add the css rule directly to your css file, maybe just edit the html file directly instead of using js to manipulate it, etc...
120   Hircus   ignore (0)   2019 Jul 13, 3:11pm     ↓ dislike (0)   quote   flag      

I'm having trouble w/ profile pics. I've tried uploading various sizes / aspect ratios of my current profile pic, but it always gets presented with very small dimensions, much smaller than other people's. I looked at the html, and it seems I usually get about 16x15 size:

<img src='/uploads/2019/07/126743_2b43_aocrying-face.jpg' width='16' height='15' 'align='left' hspace='5' vspace='2' >

Other people seem to get 32x32 or so. How to get a bigger pic?

Also, there's a syntax error: note it says 'align= but should be align=
121   Patrick   ignore (1)   2019 Jul 15, 8:39pm     ↓ dislike (0)   quote   flag      

Thanks @Hircus Sorry for the delay, I have been traveling.

I fixed the syntax error (good find!) but don't understand the sizing problem.

Could you email an original of the crying face image to me at p@patrick.net and I'll see if I can reproduce the problem on my development version of the site.
122   noobster   ignore (0)   2020 Jan 15, 6:51pm     ↓ dislike (0)   quote   flag      

I can't seem to start a new thread. I'm new, and logged in. Using brave on mobile.

Where is the "new thread" link?
123   noobster   ignore (0)   2020 Jan 15, 6:58pm     ↓ dislike (0)   quote   flag      

Holy crap, I'm blind, Found it hiding in plain sight... gonna have to change my screen name now to avoid ridicule, haha
124   Hircus   ignore (0)   2020 Sep 6, 9:20am     ↓ dislike (0)   quote   flag      

@patrick is there some kinda anti-hotlink protection in use?

I tried to download the first video in this thread (url below)
https://patrick.net/post/1334717/2020-08-28-kneepad-harris-promises-more-riots
but get 403 forbidden


The video src:
https://patrick.net/uploads/2020/08/2217_df9f_kamalaharrissaysthattheriotsarenotgoingtostopeverandtobeware.withasmileonherface..mp4

It might be due to the double dot at the end, but I am able to watch the video in my browser (vivaldi / webkit based) ok, just not download it, nor access the url directly like I am usually able to with internet videos.
125   Patrick   ignore (1)   2020 Sep 6, 9:42am     ↓ dislike (0)   quote   flag      

Hircus says
patrick is there some kinda anti-hotlink protection in use?


@Hircus Yes, I did that after being threatened by a copyright troll lawyer, even though I comply with the DMCA.

For both images and videos, the "referer" has to be present, and has to say "patrick.net" in an http request, or else you get that 403 forbidden.

But you can get around it in two ways:

1. right click on the image or video and "save as" if your browser supports that
2. if you have the terminal program "curl" you can add the referer manually, like this on the command line:

curl -H 'referer: https://patrick.net' https ://patrick.net/uploads/2020/08/2217_3a4e_yigrioci.jpeg > saved_copy.jpeg

(except without the space after the https, which i had to put it so it shows you the link and doesn't put the image in this very comment)
126   Hircus   ignore (0)   2020 Sep 6, 10:08am     ↓ dislike (0)   quote   flag      

ok thanks!
127   HunterTits   ignore (4)   2020 Sep 6, 10:53am     ↓ dislike (0)   quote   flag      

Patrick says
1. right click on the image or video and "save as" if your browser supports that


Doesn't happen on my mobile browser. Says download unsuccessful every time. 'right click' downloads on other sites with that browser works just dandy. Using Duck-Duck-Go's browser.
128   Patrick   ignore (1)   2020 Sep 6, 11:00am     ↓ dislike (0)   quote   flag      

Wow, they have a browser? Thanks, good tip.

What about your laptop browser? I assume you have a laptop.
129   HunterTits   ignore (4)   2020 Sep 6, 11:02am     ↓ dislike (0)   quote   flag      

Patrick says
Wow, they have a browser? Thanks, good tip.

What about your laptop browser? I assume you have a laptop.


DDG just has a mobile browser, not desktop/laptop. I can download them from my laptop browser but that is Chrome.
130   Patrick   ignore (1)   2020 Sep 6, 11:03am     ↓ dislike (0)   quote   flag      

I don't know why mobile browsers are refusing to let you save an image or video.

At least with an image you can just do a screenshot. Though that doesn't help with videos.
131   Hircus   ignore (0)   2020 Sep 6, 1:58pm     ↓ dislike (0)   quote   flag      

If the problem is referrer headers, maybe patrick could change it so that images/videos need either a referrer header OR send the login patrick.net username cookie. That way users who've logged in before and still have the cookie are exempt, which should still meet the objective of preventing wild internet hot linking. That would probably be an easy nginx config change.
132   Patrick   ignore (1)   2020 Sep 6, 2:01pm     ↓ dislike (0)   quote   flag      

Yes, that's a good idea.

Need to figure out how to do it exactly though, since the referrer header is checked in the nginx web server first, before it's possible to check whether the user is logged in.

How can nginx know whether a user is logged in?
133   Hircus   ignore (0)   2020 Sep 6, 5:46pm     ↓ dislike (0)   quote   flag      

Why not just check for the existence of the cookie name via nginx?
maybe like

if ($cookie_patricknetuser ~ "\d+") {...}


or whatever the right nginx syntax is.

A user wouldnt have the cookie unless they logged in at some point. They could spoof it, but it would only gain them hotlink viewing ability at best. I think the goal is really to allow patnet users, not necessarily ones that are currently logged in, and reusing the cookie as a way to say "weve seen this user before because they logged in once" seems convenient, and will still deny the internet at large. They can spoof the referrer header anyway, too.
134   Patrick   ignore (1)   2020 Sep 6, 8:58pm     ↓ dislike (0)   quote   flag      

@Hircus That's brilliant! Should have thought of that.

I'll try to do it tomorrow and let you know here if it works.
135   Patrick   ignore (1)   2020 Sep 7, 11:25am     ↓ dislike (0)   quote   flag      

@Hircus I think I did it. Let me know if any problems.

nginx config is absolutely horrible. I want to switch web servers, but that's a lot of work too.
136   Hircus   ignore (0)   2020 Sep 8, 7:39pm     ↓ dislike (0)   quote   flag      

@patrick seems to work for me. thanks!
137   rocketjoe79   ignore (1)   2020 Sep 29, 10:25am     ↓ dislike (0)   quote   flag      

Is there a way to turn off Avatar pics? I love this site but some Avatars are NSFW (Trumping Tits, I'm talking to you!)
I sometimes have kids and Karens running around the house. I don't want to be labelled a porn toad or pedo.
138   WookieMan   ignore (6)   2020 Sep 29, 1:40pm     ↓ dislike (0)   quote   flag      

rocketjoe79 says
Trumping Tits, I'm talking to you!

His doesn't even show up for me anymore. Not sure if it's a cache thing or not. Just get the ? mark missing image box on my end.
139   FuckCCP89   ignore (6)   2020 Sep 29, 1:49pm     ↓ dislike (0)   quote   flag      

rocketjoe79 says
Is there a way to turn off Avatar pics? I love this site but some Avatars are NSFW (Trumping Tits, I'm talking to you!)
I sometimes have kids and Karens running around the house. I don't want to be labelled a porn toad or pedo.


Adblock extension for your browser allows to put any pic on "ignore", so you'd never see it again.
140   rocketjoe79   ignore (1)   2020 Sep 29, 1:54pm     ↓ dislike (0)   quote   flag      

Thanks! AdBlock did thre trick, much obliged.
141   HunterTits   ignore (4)   2020 Sep 29, 5:05pm     ↓ dislike (0)   quote   flag      

WookieMan says
His doesn't even show up for me anymore. Not sure if it's a cache thing or not. Just get the ? mark missing image box on my end.


How about now?

142   WookieMan   ignore (6)   2020 Sep 29, 5:27pm     ↓ dislike (0)   quote   flag      

TrumpingTits says
WookieMan says
His doesn't even show up for me anymore. Not sure if it's a cache thing or not. Just get the ? mark missing image box on my end.


How about now?


Oh I'm fine with the image. Just don't get why it's not showing. Probably a browser issue. On Safari and it stopped after a recent update.
143   Patrick   ignore (1)   2020 Sep 29, 5:33pm     ↓ dislike (0)   quote   flag      

Try shift-reload to force reload of images in cache in your browser.

Maybe there was a broken version at some point and you got it cached.

I wish I had time to fix all this stuff. If SHOP doubles again, I will.
144   FuckCCP89   ignore (6)   2020 Oct 1, 2:47pm     ↓ dislike (0)   quote   flag      

@Patrick: your certificate has expired.

145   Patrick   ignore (1)   2020 Oct 1, 3:18pm     ↓ dislike (0)   quote   flag      

FuckCCP89 says
Patrick: your certificate has expired.


Thanks for telling me @FuckCCP89

Should be fixed now. I really need to automate that.
146   Tenpoundbass   ignore (16)   2020 Dec 18, 12:28pm     ↓ dislike (0)   quote   flag      

Can you develop a way to flag Threads as official Threads for a topic, i.e. the Cat Thread, the Funny Picture thread, the Political Thread, this Thread, the Corona Thread, the 2016 official election thread, not every thread can do it, but perhaps after a threshold of replies has been reached they fall into that list. And have their own link like the Best or Random threads.
147   WookieMan   ignore (6)   2020 Dec 18, 4:40pm     ↓ dislike (0)   quote   flag      

Tenpoundbass says
Can you develop a way to flag Threads as official Threads for a topic, i.e. the Cat Thread, the Funny Picture thread, the Political Thread, this Thread, the Corona Thread, the 2016 official election thread, not every thread can do it, but perhaps after a threshold of replies has been reached they fall into that list. And have their own link like the Best or Random threads.


Not a bad idea. I'd like to see the ability to merge threads. I'm fueling the flames, but we've got 3-4 crypto threads going in the last 2 weeks. Only having one would be less annoying to the users that know crypto is crap and don't want to see it.
148   Patrick   ignore (1)   2020 Dec 18, 5:51pm     ↓ dislike (0)   quote   flag      

OK, tell me which threads to merge, and which title should remain.
149   Onvacation   ignore (7)   2020 Dec 18, 5:58pm     ↓ dislike (0)   quote   flag      

Patrick says
OK, tell me which threads to merge, and which title should remain.

Exactly.
150   HunterTits   ignore (4)   2020 Dec 18, 6:04pm     ↓ dislike (0)   quote   flag      

Patrick says
OK, tell me which threads to merge, and which title should remain.


Just don't nuke this one: https://patrick.net/post/1293879/2016-07-30-tired-of-politics-sexy-picture-thread

I think I've posted over a 100 pics on that one. Huge investment.
151   Tenpoundbass   ignore (16)   2020 Dec 18, 6:19pm     ↓ dislike (0)   quote   flag      

I didn't mean to nuke any threads, or go thread Nazi on other threads. There just seems to be some threads that endure, if you know what I mean.
This one for example, there are just standard threads, that get revisited time and time again for a certain topic.
A flag that a moderator could flag when they think a thread has reached that status to show up in the (unofficial) official thread list.
152   Patrick   ignore (1)   2020 Dec 19, 11:17am     ↓ dislike (0)   quote   flag      

@Tenpoundbass How about just looking at the "comments" tab on the home page, which sorts by a thread's total number of comments?

https://patrick.net/?order=comments

All the most commented threads pop to the top then. So you could call those your "standard" threads.
153   clambo   ignore (5)   2021 Jul 14, 11:58am     ↓ dislike (0)   quote   flag      

I remember a fun story about bubbles at the museum of finance on Wall Street.
Everyone knows about the "tulip mania" in Holland.
Besides tulips, once olive oil was considered very good as an investment, an important commodity.
A guy in New Jersey had giant tanks of it and attracted LOTS of money from investors.
But this bubble popped, as someone found out the tanks were actually full of water, with just a layer of olive oil floating on top.
Enjoy your "digital olive oil" boys.

« First    « Previous    Comments 114 - 153 of 153    Last »


about   best comments   contact   one year ago   suggestions