andykais
andykais
DDeno
Created by andykais on 11/24/2023 in #help
How to detect when --watch flag has been passed to `deno run` programatically?
Thanks, thats what I ended up doing. If other people run into this workflow, maybe we can consider a feature request. For now though, this is good enough
3 replies
DDeno
Created by andykais on 4/2/2023 in #help
best practice when spawning commands that require sudo?
I think I found a solution that works. Essentially I use these permissions: --allow-run=tcpdump, and then instruct that the whole deno script must be run with sudo
2 replies
DDeno
Created by ioB on 3/4/2023 in #help
solid-js with Deno
@iobdas maybe post your findings here and see if its a library issue? https://github.com/solidjs/solid/discussions/332
15 replies
DDeno
Created by andykais on 1/17/2023 in #help
how to hash very large files
fwiw, web devs outside of deno have been feeling this pain as well https://lists.w3.org/Archives/Public/public-webcrypto/2016Nov/0000.html
15 replies
DDeno
Created by andykais on 1/17/2023 in #help
how to hash very large files
Ill probably just use this for now
15 replies
DDeno
Created by andykais on 1/17/2023 in #help
how to hash very large files
well, I suppose there is nothing broken in the older hashing code, its just wasm vs native so a tad slower https://deno.land/std@0.160.0/hash/mod.ts
15 replies
DDeno
Created by andykais on 1/17/2023 in #help
how to hash very large files
I think heres the crux of it. I can make a very simple function that hashes my file chunkwise, appending files as I go. I will have consistency within my app, because I will always hash it the same way. However, that will not be the same standard sha256 that I might get out of the linux command line, or any number of tools. I need to reimplement the standard sha256 hash algorithm for chunks, which is going to take a bit of doing
15 replies
DDeno
Created by andykais on 1/17/2023 in #help
how to hash very large files
I found this, which seems to say it cant https://github.com/w3c/webcrypto/issues/73
15 replies
DDeno
Created by andykais on 1/17/2023 in #help
how to hash very large files
Ill keep researching. Imo a readable stream interface in std/crypto would add a lot of value though
15 replies
DDeno
Created by andykais on 1/17/2023 in #help
how to hash very large files
hmm well its a question for everyone using the web, not just deno so there will definitely be an answer eventually
15 replies
DDeno
Created by andykais on 12/19/2022 in #help
arch linux deno package might be broken
Update: this is fixed now
3 replies
DDeno
Created by andykais on 12/21/2022 in #help
what is import.meta.url on implicit version
thinking about it more...I will probably need a better solution long term, in case this code is imported from somewhere besides github or deno.land. For now at least, here is how I am managing binary releases https://github.com/andykais/sqlite-native/blob/main/src/binary_manager.ts#L52
3 replies
DDeno
Created by andykais on 12/21/2022 in #help
what is import.meta.url on implicit version
alrighty. It took some finagling, but I figured out that the hashes are sha256, so I just edited the correc file, found the hash with sha256sum and then edited deno.lock. It turns out that an implicit import does redirect to the latest and that latest does appear in the import.meta.url, so I can use this as a reliable way to find the version from deno.land
3 replies
DDeno
Created by andykais on 12/21/2022 in #help
third party module - edit webhook subdirectory
oh snap! I was just thinking hmm itd be great if subdirectories were just encoded into the url. After fiddling with the add a module page on deno.land I see that they are! That makes much more sense. I can just edit my webhook to be https://api.deno.land/webhook/gh/sqlite_native?subdir=src
2 replies
DDeno
Created by andykais on 12/19/2022 in #help
arch linux deno package might be broken
fwiw, I just successfully installed another package from community so it doesnt seem like my mirrors are busted universally
3 replies
DDeno
Created by andykais on 10/12/2022 in #help
npm specifier import types
14 replies
DDeno
Created by andykais on 10/12/2022 in #help
npm specifier import types
sure! Sorry for asking questions right before thanksgiving 😅. Ill make an issue
14 replies
DDeno
Created by andykais on 10/12/2022 in #help
npm specifier import types
@.bartlomieju / @dsherret are npm types supported in 1.28? It seems like they are https://github.com/denoland/deno/issues/15960, but imports like
import * as rx from 'npm:rxjs'
import * as rx from 'npm:rxjs'
or
import { ScriptServer } from 'npm:@scriptserver/core'
import { ScriptServer } from 'npm:@scriptserver/core'
seem to still have any types
14 replies
DDeno
Created by andykais on 10/12/2022 in #help
npm specifier import types
thanks for that clarification
14 replies