wesbos Github contribution chart
wesbos Github Stats
wesbos Most Used Languages

Activity

25 Nov 2022

Issue Comment

Wesbos

✨ Showing coolness skills by not using not not.

About

Since we're showcasing cool ways to do things, and I wanted an opportunity to try Codespaces, I figured I'd PR a wee change!

PS: Codespaces is bonkers. What a time to be alive.

Forked On 25 Nov 2022 at 05:52:06

Wesbos

haha Srory @jstoone was over my head <3

Commented On 25 Nov 2022 at 05:52:06

Wesbos

Updated: transcript

Created On 25 Nov 2022 at 02:17:31

Wesbos

Create CODE_OF_CONDUCT.md

Created On 25 Nov 2022 at 02:16:18
Issue Comment

Wesbos

Create CODE_OF_CONDUCT.md

just want to add a code of conduct file into the repo if its possible then add to the repo

Forked On 25 Nov 2022 at 02:16:17

Wesbos

thanks, I agree with what this stands for, but I don't think it's necessary in this repo

Commented On 25 Nov 2022 at 02:16:17

Wesbos

Update index-START.html

Created On 25 Nov 2022 at 02:15:11
Issue Comment

Wesbos

CSS color

Hi, Wes,

Love the work you do. Love the Syntax podcast as well.

I just installed the theme on my vscode but I noticed the CSS colors are displayed differently.

VS Code shots a little square next to the color on CSS

.. whereas in your screenshot it highlights the whole value which makes it easier to see which color you are using on CSS.

By any chance do you know how to make it look like your screenshot?

Forked On 24 Nov 2022 at 04:27:10

Wesbos

thats it!

Commented On 24 Nov 2022 at 04:27:10

Wesbos

hate peer deps

Pushed On 22 Nov 2022 at 02:57:14

Wesbos

working

Pushed On 22 Nov 2022 at 02:30:59

Wesbos

some updates

Pushed On 22 Nov 2022 at 02:30:59
Issue Comment

Wesbos

Uncaught AddrInUse when restarting server in watch mode after saving file

Source: https://stackoverflow.com/questions/74444443/deno-watcher-uncaught-addrinuse-only-one-usage-of-each-socket-address

Reproduction:

  • Run the code below with deno run -A --watch server.ts:
import express, { Express, Request, Response } from "npm:express@4.18";
import { v4 as uuidv4 } from 'npm:uuid@9.0.0';
const app: Express = express();

app.use("/", (_req: Request, res: Response) => {
    res.send(`uuid: ${uuidv4()}.`);
})

app.listen(8000, () => {
    console.log("App Running: http://localhost:8000");
}); 
  • Make a change and save the file (either with auto-save or manually)
  • When the file watcher restarts the error is thrown
Watcher File change detected! Restarting!
error: Uncaught AddrInUse: Only one usage of each socket address (protocol/network address/port) is normally permitted. (os error 10048)
Watcher Process finished. Restarting on file change... 

I found that this error can happen when there is another process listening on the same port: https://stackoverflow.com/a/62190276/12769288, so maybe the file watcher tries to restart the server while the previous one is still listening?

Additionally the same error seems to happen on occasion in one of the tests: https://github.com/denoland/deno/issues/16044

Forked On 21 Nov 2022 at 02:52:00

Wesbos

I don't think it's time bound after doing some tests. I think maybe an issue with the beforeExit event not firing?

Commented On 21 Nov 2022 at 02:52:00
Issue Comment

Wesbos

Uncaught AddrInUse when restarting server in watch mode after saving file

Source: https://stackoverflow.com/questions/74444443/deno-watcher-uncaught-addrinuse-only-one-usage-of-each-socket-address

Reproduction:

  • Run the code below with deno run -A --watch server.ts:
import express, { Express, Request, Response } from "npm:express@4.18";
import { v4 as uuidv4 } from 'npm:uuid@9.0.0';
const app: Express = express();

app.use("/", (_req: Request, res: Response) => {
    res.send(`uuid: ${uuidv4()}.`);
})

app.listen(8000, () => {
    console.log("App Running: http://localhost:8000");
}); 
  • Make a change and save the file (either with auto-save or manually)
  • When the file watcher restarts the error is thrown
Watcher File change detected! Restarting!
error: Uncaught AddrInUse: Only one usage of each socket address (protocol/network address/port) is normally permitted. (os error 10048)
Watcher Process finished. Restarting on file change... 

I found that this error can happen when there is another process listening on the same port: https://stackoverflow.com/a/62190276/12769288, so maybe the file watcher tries to restart the server while the previous one is still listening?

Additionally the same error seems to happen on occasion in one of the tests: https://github.com/denoland/deno/issues/16044

Forked On 21 Nov 2022 at 02:45:57

Wesbos

Having this issue too. I can't use --watch with an express server because it says the port is in use after the first restart.

I think deno is too fast and it restarts the app before the express server can release the port.

Commented On 21 Nov 2022 at 02:45:57
Issue Comment

Wesbos

Testing robobun

@robobun

function randomNum() {
  return 4;
}

randomNum(); 

Forked On 17 Nov 2022 at 03:50:36

Wesbos

that was fun

Commented On 17 Nov 2022 at 03:50:36
Issue Comment

Wesbos

Testing robobun

@robobun

function randomNum() {
  return 4;
}

randomNum(); 

Forked On 17 Nov 2022 at 03:49:31

Wesbos

@robobun

import { resolve } from 'path');
import { readdir } from 'fs/promises'

async function* getFiles(dir) {
  const dirents = await readdir(dir, { withFileTypes: true });
  for (const dirent of dirents) {
    const res = resolve(dir, dirent.name);
    if (dirent.isDirectory()) {
      yield* getFiles(res);
    } else {
      yield res;
    }
  }
}

;(async () => {
  for await (const f of getFiles('.')) {
    console.log(f);
  }
})() 

Commented On 17 Nov 2022 at 03:49:31
Issue Comment

Wesbos

Testing robobun

@robobun

function randomNum() {
  return 4;
}

randomNum(); 

Forked On 17 Nov 2022 at 03:41:57

Wesbos

@robobun

const { resolve } = require('path');
const { readdir } = require('fs').promises;

async function* getFiles(dir) {
  const dirents = await readdir(dir, { withFileTypes: true });
  for (const dirent of dirents) {
    const res = resolve(dir, dirent.name);
    if (dirent.isDirectory()) {
      yield* getFiles(res);
    } else {
      yield res;
    }
  }
}
; (async () => {
  for await (const f of getFiles('.')) {
    console.log(f);
  }
})() 

Commented On 17 Nov 2022 at 03:41:57
Issue Comment

Wesbos

Testing robobun

@robobun

function randomNum() {
  return 4;
}

randomNum(); 

Forked On 17 Nov 2022 at 03:40:11

Wesbos

@robobun

import glob from 'https://esm.sh/glob@8.0.3';

glob('dirname/**/*.js', function (err, files) {
  console.log(files);
}); 

Commented On 17 Nov 2022 at 03:40:11
Issue Comment

Wesbos

Testing robobun

@robobun

function randomNum() {
  return 4;
}

randomNum(); 

Forked On 17 Nov 2022 at 03:36:04

Wesbos

@robobun

function randomNum() {
  return 4;
}

console.log(randomNum()); 

Commented On 17 Nov 2022 at 03:36:04
Issue Comment

Wesbos

50MB AWS Limit

Trying to switch over to this from chrome-aws-lamda, but now my host, Netlify, is giving my grief because it's 53mb, 3mb over the 50mb limit.

Did something change to make this go over 50mb?

Forked On 16 Nov 2022 at 02:50:57

Wesbos

Most of us are using Netlify Fucntions, or Vercel Functions and can't deploy a layer, or an image.

Cloudflare just announced Puppeteer inside Workers, so this might be a good solution if you are OK with changing vendors. Their wrangler workflow is really nice.

https://blog.cloudflare.com/introducing-workers-browser-rendering-api/

Commented On 16 Nov 2022 at 02:50:57

Wesbos

fix

Pushed On 15 Nov 2022 at 02:04:16

Wesbos

post

Pushed On 15 Nov 2022 at 01:56:38
Issue Comment

Wesbos

cant install "CRX_REQUIRED_PROOF_MISSING"
Forked On 10 Nov 2022 at 08:24:08

Wesbos

Looks like this doesnt work. Just load the unpacked version. I added directions to the docs

Commented On 10 Nov 2022 at 08:24:08
Pull Request

Wesbos

✨ Showing coolness skills by not using not not.

Created On 10 Nov 2022 at 07:33:04
Issue Comment

Wesbos

✨ Showing coolness skills by not using not not.

About

Since we're showcasing cool ways to do things, and I wanted an opportunity to try Codespaces, I figured I'd PR a wee change!

PS: Codespaces is bonkers. What a time to be alive.

Forked On 10 Nov 2022 at 07:33:04

Wesbos

what

Commented On 10 Nov 2022 at 07:33:04
Issue Comment

Wesbos

[feature request]

Make it so you'd have to pay 8$ to see who has twitter blue.

Forked On 10 Nov 2022 at 07:31:02

Wesbos

plz paypal me https://www.paypal.me/wesbos/8usd

Commented On 10 Nov 2022 at 07:31:02

Wesbos

baby bluega

Pushed On 10 Nov 2022 at 05:20:29

Wesbos

blue a big one

Pushed On 10 Nov 2022 at 05:00:05

Wesbos

blue a big one

Pushed On 10 Nov 2022 at 04:59:22