by Patrick ➕follow (60) 💰tip ignore
« First « Previous Comments 366 - 405 of 506 Next » Last » Search these comments
You can upload images, and entering text is pretty simple.
mell I would prefer that too, but it's moderately difficult because I don't have an easy way to tell if a user has voted on a thread before, the way I do for comments. So some malicious user could click like and unlike over and over, or via a robot, to spam a user with thread "like" emails.
For comments, there is a row created in the database for each like. If the row exists, I know not to send out the email again on a second like of that comment by that user.
For threads, there is a more complicated table of views, likes, and other info, but the row exists for each user+thread as soon as the user views it.
I could do that.
But what would people be able to buy with Patrick Dollars?
mell I love the idea of invited guests.
I can make a page for current users to invite someone to participate in a thread. But how would we get the email address of the person we want to invite?
mell But how would I invite anyone who's not already on the site? I would need his or her email address?
Or is this just for current users?
But how would I invite anyone who's not already on the site? I would need his or her email address?
Or is this just for current users?
"My suggestion would be to have threads with invited guests only..."
mell says
"My suggestion would be to have threads with invited guests only..."
This is no longer a debate. It is propaganda.
I can see one Globalist inviting 3 or 4 other Globalists and the end result is propaganda and the destruction of the patrick.net forum.
"I'm not talking politics. There are other things besides saving world politics from your keyboard. This is more about advice and experience about certain lifestyle/family issues and events. No need to involve 1000 users on it"
mell says
"I'm not talking politics. There are other things besides saving world politics from your keyboard. This is more about advice and experience about certain lifestyle/family issues and events. No need to involve 1000 users on it"
mell, can you accomplish the same thing by giving your thread a very narrow (and well defined) title?
Hi, Patrick - I'm only seeing two pages listed for viewing for several weeks now. I used to see 6. Code change?
Thanks
I admit the blinky thing is not obvious, given how many people never noticed that they can click on it. I could just replace it with text like "latest unread comment" or something.
BTW, I'm going to be in Chicagoland in late May, also in Ottawa, IL. If you're anywhere near those, I'd be happy to buy you a beer. Send me an email:
If you're anywhere near those, I'd be happy to buy you a beer.
I think it should be at the left of the title of the thread, and not at the end and it should not only be the blinky thing, but text next to it (perhaps as an image) "latest post".
Patrick - I want to know - how is it you pull in images from other sites?
function cache_image(image_url) {
return new Promise((resolve, reject) => {
const parsed = url.parse(image_url);
const protocol = parsed.protocol.replace(/:/, '');
const rand = md5(Math.random().toString()).slice(0, 8);
const tmp_path = `/tmp/${ rand }`;
const file = fs.createWriteStream(tmp_path);
setTimeout(() => { reject(new Error('image load timed out: ' + image_url)); }, 3000); // wait max three seconds
PROTOCOLS[protocol].get(image_url, response => { // global['http'] will refer to the global http var, eg
response.pipe(file);
file.on('finish', () => {
file.close(async () => {
const normalized = await normalize_image(tmp_path).catch(error => reject(error));
resolve(normalized);
});
});
}).on('error', err => reject(err));
});
}
richwicks says
Patrick - I want to know - how is it you pull in images from other sites?
It's like this:
« First « Previous Comments 366 - 405 of 506 Next » Last » Search these comments
patrick.net
An Antidote to Corporate Media
1,249,307 comments by 14,901 users - 6DOF, ElYorsh, goofus, RC2006, rocketjoe79, socal2, The_Deplorable online now