Regional Park of Migliarino, San Rossore, Massaciuccoli, Italy (© Stefano Valeri/Alamy)
Index: Cache · Source
Bing Images
Regional Park of Migliarino, San Rossore, Massaciuccoli, Italy (© Stefano Valeri/Alamy)
Recent RFCs
This document specifies a new IPv6 Hop-by-Hop Option that is used to record the Minimum Path MTU (PMTU) along the forward path between a
Recent RFCs
This document describes HTTP Datagrams, a convention for conveying multiplexed, potentially unreliable datagrams inside an HTTP
Recent RFCs
This document describes how to proxy UDP in HTTP, similar to how the HTTP CONNECT method allows proxying TCP in HTTP. More specifically,
Grumpy Website
nikitonsky: There’re no technical reasons for limitations like these to exist. Next time you catch yourself thinking about allowing or not allowing certain symbols somewhere: just don’t. Allow everything. Users will thank you for that.
hacks.mozilla.org
How do you merge two Git repositories without losing history? This post will take you through the step-by-step process. The post Merging two GitHub repositories without losing commit history appeared first on Mozilla Hacks - the Web developer blog.
Bing Images
Baltic Sea in Estonia (© fotoman-kharkov/Getty Images)
Bing Images
Bearded reedlings at a wetland in Flevoland, Netherlands (© Gert-Jan IJzerman/Minden Pictures)
Bing Images
Boundary Trail in Mount St. Helens National Volcanic Monument, Washington (© Don Geyer/Alamy)
Another wandering soul whispering into the void. If you are looking for my blog you are in the wrong place. The profile and header pictures are brought to you by cdd20.
Nothing to disclose.
No more need for npm in my personal stack! The native
browser’s path comes from which.
import puppeteer from "https://deno.land/x/puppeteer@16.2.0/mod.ts";
const chrome = "chromium"; // Browser Chrome: "firefox" | "chromium" | "google-chrome" | ...
const product = "chrome"; // Product Base: "firefox" | "chrome"
const command = new Deno.Command("which", { args: [chrome] });
const { status, stdout, stderr } = command.outputSync();
const executablePath = new TextDecoder().decode(stdout).trim();
const browser = await puppeteer.launch({
headless: false,
executablePath: executablePath,
product: product,
});
const site = "example.com";
const page = await browser.newPage();
await page.setViewport({ width: 1024, height: 768 });
await page.goto("https://" + site);
await page.screenshot({ path: site + ".png" });
await page.waitForSelector('a');
const url = await page.evaluate(() => {
return document.querySelector('a').href;
});
console.log(url);
await browser.close();deno run --allow-all main.ts