Right-click your bookmarks bar and choose Add Page (Chrome) or New Bookmarklet (Firefox).
In Name, put this:
Pin It
In URL, put this:
// early experiments with node had mysterious double requests | |
// turned out these were for the stoopid favicon | |
// here's how to short-circuit those requests | |
// and stop seeing 404 errors in your client console | |
var http = require('http'); | |
http.createServer(function (q, r) { | |
// control for favicon |
User accounts on Twitter are commonly identified by screen name, which may be changed by operators when they take over an account, or have been sitting on an old account for a long time and want to transition it into malicious use.
User IDs, however, are permanent. There are several services out there that will try to find them for you but it seems like a bad idea to me, since you're alerting them to the fact that there's something interesting about this account. There's also plenty of bad advice that uses many long-since-abandoned Twitter API endpoints.
As of this writing (2018-02-18) you can view source and search for /profile_banners/
, which will show something like this:
.enhanced-mini-profile .mini-profile .profile-summary {
Standard practices say no non-root process gets to talk to the Internet on a port less than 1024. How, then, could I get Node talking on port 80 on EC2? (I wanted it to go as fast as possible and use the smallest possible share of my teeny tiny little micro-instance's resources, so proxying through nginx or Apache seemed suboptimal.)
Alter the port the script talks to from 8000 to 80:
}).listen(80);
Curious reader @plasticmind asked this question on the Twitter:
Dear lazyweb: does anyone know of a way to pull the Instagram feed for a particular user into a site automatically without needing to pay a monthly subscription for a service? Happy to entertain dev-related options.
The answer is, as always, "it depends." If it's your account, you can do this with Pinterest, and along the way make sure that any time one of your Instagram posts winds up on Pinterest it will have correct attribution.
Tootski is a bookmarklet that will share the page you're on to your Mastodon instance, including the title, address, and any text you may have selected. If you have any questions or need help, please find me at https://xoxo.zone/@kentbrew.
You need to know the name of your Mastodon instance if it's not mastodon.social
. To find it, visit your home page on Mastodon and copy out the part between the second and third slash. My home URL looks like this:
Here's a doc we never published while I was at Pinterest. Some or all of it may be useful; please keep in mind that I've been ex-Pinterest since March 2022 and cannot help if it doesn't work.
I apologize in advance for the chirpy Pinterest editorial tone throughout; it's a Thing there.
Hi, all. Kent Brewster here, oldest surviving engineer at Pinterest. For the past ten years we've been working on a handful of things that help people who love Pinterest find new inspiration from the Web and share it as easily as possible.
These things are:
Old School:
var clean = function (input) {
var testMe = input, dupeTest = '';
while (testMe !== dupeTest) {
testMe = new DOMParser().parseFromString(testMe, "text/html").documentElement.textContent;
dupeTest = testMe;
}
testMe = testMe.replace(/</g, '<');
return testMe;