« prev   random   next »

1
0

Patrick.net Suggestions

By someone else following x   2012 Apr 2, 7:09am 66,278 views   127 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 121 - 127 of 127    Last »

121   Hircus   ignore (0)   2019 Jun 8, 9:20pm   ↑ like (1)   ↓ 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.
122   Patrick   ignore (1)   2019 Jun 8, 9:21pm   ↑ like (1)   ↓ dislike (0)   quote   flag        

Thanks @Hircus I will work on that tomorrow.
123   Hircus   ignore (0)   2019 Jun 8, 9:49pm   ↑ like (1)   ↓ 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
124   Patrick   ignore (1)   2019 Jun 9, 9:37am   ↑ like (0)   ↓ 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?
125   Hircus   ignore (0)   2019 Jun 9, 10:26am   ↑ like (0)   ↓ 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...
126   Hircus   ignore (0)   2019 Jul 13, 3:11pm   ↑ like (1)   ↓ 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=
127   Patrick   ignore (1)   2019 Jul 15, 8:39pm   ↑ like (0)   ↓ 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.

« First    « Previous    Comments 121 - 127 of 127    Last »


about   best comments   contact   one year ago   suggestions