Mrcool 🇵🇸
Mrcool 🇵🇸
DDeno
Created by Char on 12/15/2024 in #help
Linux Zip Compression From CLI
You can use https://jsr.io/@zip-js/zip-js which don't require zip cli, its pure js
6 replies
DDeno
Created by Gyong on 11/19/2024 in #help
How to install deno with auto yes?
curl -fsSL https://deno.land/install.sh | sh -s -- -y (chatgpt)
6 replies
DDeno
Created by TheYuriG on 11/18/2024 in #help
How can I do simple image recognition with Deno?
There are simple ways like looking for pixels colors if a yellow object is inside a dark background you can find it
6 replies
DDeno
Created by Gyong on 11/19/2024 in #help
How to install deno with auto yes?
No description
6 replies
DDeno
Created by Gyong on 11/19/2024 in #help
How to install deno with auto yes?
it has a yes option
6 replies
DDeno
Created by TheYuriG on 11/18/2024 in #help
How can I do simple image recognition with Deno?
and there are many models to choose from
6 replies
DDeno
Created by TheYuriG on 11/18/2024 in #help
How can I do simple image recognition with Deno?
You can explore hugging js, for example a simple object detection
import { HfInference } from "npm:@huggingface/inference";

const HF_TOKEN = ...
const inference = new HfInference(HF_TOKEN);
const result = await inference.objectDetection({
data: await (await fetch(import.meta.resolve("./img.png"))).blob(),
});
console.log(result);
import { HfInference } from "npm:@huggingface/inference";

const HF_TOKEN = ...
const inference = new HfInference(HF_TOKEN);
const result = await inference.objectDetection({
data: await (await fetch(import.meta.resolve("./img.png"))).blob(),
});
console.log(result);
6 replies
DDeno
Created by somnid on 10/14/2024 in #help
Can Deno Jupyter output images like jpegs?
It can but you have to give it on the right format, I think it needs a base64 encoded image, I'll have to lookup how I used to do this
8 replies
DDeno
Created by m4rc3l05 on 9/21/2024 in #help
How to check if stdin is a file?
No description
20 replies
DDeno
Created by m4rc3l05 on 9/21/2024 in #help
How to check if stdin is a file?
stdin.isTerminal()
20 replies
DDeno
Created by mabasic on 7/19/2024 in #help
How to get source code from packages used in Helix editor?
The workaround is to vendor dependencies when you need this, add vendor: true to deno.json
5 replies
DDeno
Created by LambdAurora on 5/18/2024 in #help
How to properly publish a JSR package with browser compatibility?
you can still try to import your module in the browser using esm.sh for example import {parse} from https://esm.sh/jsr/@std/csv@0.224.0
8 replies
DDeno
Created by LambdAurora on 5/18/2024 in #help
How to properly publish a JSR package with browser compatibility?
Browser compatibility is still in the works
8 replies
DDeno
Created by babakfp on 4/5/2024 in #help
Deno Oak doesnt work when compiled to `.exe`
Thats a weird bug
console.log(0);
await import("https://deno.land/x/oak@14.2.0/mod.ts");
console.log(1);
console.log(0);
await import("https://deno.land/x/oak@14.2.0/mod.ts");
console.log(1);
when compiled it get stuck at the import
8 replies
DDeno
Created by DNA on 3/24/2024 in #help
Kill Deno.Command
const process = new Deno.Command("ls").spawn()
// kill -> process.kill()
// wait -> await process.status
const process = new Deno.Command("ls").spawn()
// kill -> process.kill()
// wait -> await process.status
10 replies
DDeno
Created by Mark G on 11/2/2023 in #help
In-browser testing
for a deno first framework there is https://github.com/lino-levan/astral
4 replies
DDeno
Created by Chiezo on 11/4/2023 in #help
CLI prompt consistent with Deno CLI
4 replies
DDeno
Created by foobar on 10/20/2023 in #help
wasmbuild & rust module path
Wasmbuild by default expect the project to contain a folder named rs_lib, so you need to run it from the outside of that folder You can also just use deno task wasmbuild new, to see what's the default layout looks like
3 replies
DDeno
Created by rabbit_rabbit on 10/10/2023 in #help
compiled artifact can't find deno.json
You can strace it to see where it's searching
5 replies
DDeno
Created by alexp95 on 10/11/2023 in #help
Can you run Deno.serve in a pooled thread mode?
I think you have to use workers for anything that involves threads
2 replies