- Operating System: Debian GNU/Linux 12 (bookworm)
- Kernel: Linux 6.1.64-09049-g010fe86d9eae
- Architecture: x86-64
- Podman: v1.7.1
1. Install Podman:
sudo apt install podmanUnder normal circumstances, a Web Worker should be passed a URL of the script to execute. However, a local function can also be used
This is done by converting a function to a string, converting that string to a Blob, and converting that Blob to an Object URL.
The code to do this would look a bit like this:
When taking part of a Daily Scrum as Scrum Master, I find it handy to take notes. This makes sure I can hand over the role, if need be. It also means I don't have to rememeber everything as I can look things up in my notes later.
Below is the structure I use as format or "template" for taking notes.
Some things of importance:
Job queues, message queues and other queues. Almost all of them in one place.
There are many queueing systems out there. Each one of them is different and was created for solving certain problems. This page tries to collect the libraries that are widely popular and have a successful record of running on (big) production systems.
| //use std::{thread, time::Duration}; | |
| //use rand::Rng; | |
| #![feature(thread_id_value)] | |
| use std::{thread, time::Duration, time::Instant}; | |
| use rand::Rng; | |
| #[allow(unused_imports)] | |
| use rayon::prelude::*; |
| mod foo { | |
| pub fn name() -> &'static str { | |
| module_path!() | |
| } | |
| } | |
| fn main() { | |
| println!("Hello, {}", foo::name()); | |
| } |
| [package] | |
| name = "edge" | |
| version = "0.1.0" | |
| authors = ["J. Cliff Dyer <jcd@sdf.org>"] | |
| [dependencies] | |
| indradb = "0.12.0" | |
| indradb-lib = "0.12.0" | |
| serde_json = "*" | |
| uuid = "*" |
FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
| Configuring the setup | |
| 1. Setting up the dependices | |
| yarn init -y (Initalises a packag.json with the default values) | |
| yarn add knex sqlite3 (Add knex sqlite module) | |
| yarn add jest --dev (Add jest to dev dependices) | |
| 2. Adding scripts to the package.json file |
| module PktHdrStorableInstance where | |
| import Foreign.Marshal.Utils (with) | |
| import Foreign.Ptr (plusPtr) | |
| import Foreign.Storable | |
| import Network.Pcap | |
| import Network.Pcap.Base (toPktHdr) | |
| #include <pcap.h> |