Hexagon
Hexagon
DDeno
Created by mostprodev on 9/2/2023 in #help
run code at the start of every hour
I totally agree with @pughealer, Croner would be a perfect fit <:party_deno:1035517691517218847>
6 replies
DDeno
Created by ly on 8/17/2023 in #help
bad resource id with node:crypto
Here's another example of native deno aes encryption/decryption (from an old just-for-fun-project of mine) https://github.com/Hexagon/lock/blob/master/src/encryption.ts
10 replies
DDeno
Created by NeTT on 7/24/2023 in #help
Speed of generators
Late answer, but an interesting topic <:cookie_deno:1002977285734932480> I agree with marvinh, you should profile your code to see if the actual loop are the bottleneck. If so, is it possible to reduce iteration count? Is it possible to offload these operations to a (rust or whatever) microservice, or offload to wasm within the application? What if you micro-optimize to reasonable performance, and the load/volume increase later? I've found myself having questions like these a couple of times. It has always resulted in a completely different solution at the end 🥸 If you're just curious, you should microbenhmark the sh*t out of it <:party_deno:1035517691517218847> , something like https://github.com/Hexagon/primer (but with loops)
11 replies
DDeno
Created by frigjord on 6/30/2023 in #help
Can't connect to http server on official alpine deno with std serve.
Which comand do you use to run the container? Do you get any logs out of it?
13 replies
DDeno
Created by Hexagon on 6/26/2023 in #help
Purging Kv keys
Hmm, i guess i could
kv.set(["logs_by_time", Date.now()], logObject)
kv.set(["logs_by_process", "current-process-id", Date.now()],logObject)
/* Below is a new key, which essentially is a time based (instead of process-based) lookup-table for the keys starting with logs_by_process, ... */
kv.set(["logs_by_process_time_lookup", Date.now()],["logs_by_process", "current-process-id", Date.now()])
kv.set(["logs_by_time", Date.now()], logObject)
kv.set(["logs_by_process", "current-process-id", Date.now()],logObject)
/* Below is a new key, which essentially is a time based (instead of process-based) lookup-table for the keys starting with logs_by_process, ... */
kv.set(["logs_by_process_time_lookup", Date.now()],["logs_by_process", "current-process-id", Date.now()])
6 replies
DDeno
Created by Hexagon on 6/26/2023 in #help
Purging Kv keys
But if i introduce a third key, wouldn't the value(log object) be left behind if i index it using three keys and delete two of the keys?
6 replies
DDeno
Created by Hexagon on 6/26/2023 in #help
Purging Kv keys
6 replies
DDeno
Created by agorushkin on 6/4/2023 in #help
Deno.open() question
Always closing is best practise for many reasons. But... if your application crashes (or ends gracefully), the file descriptors will definitely be closed and disconnected from the process. No need to worry about that.
3 replies
DDeno
Created by vwkd on 4/23/2023 in #help
Empty output in Deno.Command
@vwkd Have you tried "--format", "%h %s"? Since it is an array of arguments, you shouldn't need to enclose arguments with space in quotes - as long as you don't do anything funky, like pass a command as an argument to a command.
4 replies
DDeno
Created by mattvr on 4/12/2023 in #help
deno.land/x/module not using latest tag
f is force, which overwrites previous version. r is reload i think, clears your local cache.
5 replies
DDeno
Created by mattvr on 4/12/2023 in #help
deno.land/x/module not using latest tag
deno install -frA
5 replies