diff --git a/404.html b/404.html index 8028d05..7cdc588 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -
404 not found
\ No newline at end of file +404 not found
\ No newline at end of file diff --git a/blog/dockerless-setting-up-an-elixir-webapp-using-podman-and-plug/index.html b/blog/dockerless-setting-up-an-elixir-webapp-using-podman-and-plug/index.html index 1105e77..37a9b01 100644 --- a/blog/dockerless-setting-up-an-elixir-webapp-using-podman-and-plug/index.html +++ b/blog/dockerless-setting-up-an-elixir-webapp-using-podman-and-plug/index.html @@ -63,4 +63,4 @@compile:
mix release
You should now have a binary located at:
_build/dev/rel/myapp/bin/myapp
You can run it as so:
_build/dev/rel/myapp/bin/myapp start
We can now exit the container so that we can build an image with this binary installed.
exit && exit
In your host terminal run:
podman commit alp alp:v2
Now we can start up the new container with the binary running by default:
podman run -dit --network=bridge -p 7070:7070 --name alp2 alp:v2 /home/alpine/myapp/_build/dev/rel/myapp/bin/myapp start
-
The main benefits of using Podman over Docker are security related. I won't rehash it all here so if you want to learn more check out linode's explanation.
I suggest learning more about plug and its router from elixirschool.
The main benefits of using Podman over Docker are security related. I won't rehash it all here so if you want to learn more check out linode's explanation.
I suggest learning more about plug and its router from elixirschool.
In my opinion, much of the struggle that people have wrestling with the borrow checker stems from gaps in knowledge related to ownership and lifetimes.
The quizzes in the brown.edu git book definitely help filling those gaps.
If Rust still seems confusing then I recommend A half-hour to learn Rust.
\ No newline at end of file +In my opinion, much of the struggle that people have wrestling with the borrow checker stems from gaps in knowledge related to ownership and lifetimes.
The quizzes in the brown.edu git book definitely help filling those gaps.
If Rust still seems confusing then I recommend A half-hour to learn Rust.
\ No newline at end of file diff --git a/blog/index.html b/blog/index.html index 42fa881..51563f8 100644 --- a/blog/index.html +++ b/blog/index.html @@ -1 +1 @@ -Then make the changes without rebooting:
sudo sysctl -p /etc/sysctl.conf
-
More hardening parameters can be found here and also here.
\ No newline at end of file +More hardening parameters can be found here and also here.
\ No newline at end of file diff --git a/blog/using-rust-axum-postgresql-and-tokio-to-build-a-blog/index.html b/blog/using-rust-axum-postgresql-and-tokio-to-build-a-blog/index.html index 6fe2f42..fa3a8e1 100644 --- a/blog/using-rust-axum-postgresql-and-tokio-to-build-a-blog/index.html +++ b/blog/using-rust-axum-postgresql-and-tokio-to-build-a-blog/index.html @@ -339,4 +339,4 @@ {% endblock post %}Use this command to view file sizes, on linux: ls -lh blog-rs
My binary, inside of target/debug/blog-rs
, is at 126M.
Here's an excellent guide on optimizing your binary.
Building my binary with the --release flag reduces the size to only 13M.
cargo build --release
An optimized binary now resides in target/release/blog-rs
Want a smaller binary size?
UPX gets my binary down further to 3.9M
upx /target/release/blog-rs
-
Here's the full code for this project: https://github.com/spacedimp/rust-blog-example
\ No newline at end of file +Here's the full code for this project: https://github.com/spacedimp/rust-blog-example
\ No newline at end of file diff --git a/blog/using-rust-tauri-and-sveltekit-to-build-a-note-taking-app/index.html b/blog/using-rust-tauri-and-sveltekit-to-build-a-note-taking-app/index.html index 529949e..b49d006 100644 --- a/blog/using-rust-tauri-and-sveltekit-to-build-a-note-taking-app/index.html +++ b/blog/using-rust-tauri-and-sveltekit-to-build-a-note-taking-app/index.html @@ -466,4 +466,4 @@ </div>Running the following command will build the app into a binary located at src-tauri/target/release/
pnpm tauri build
My binary says it's at 10M, but I get it down to 3.0M by using UPX
$ upx notes
-
For cross platform compilation check out the official Tauri docs.
Here is the complete code on Github
My initial goal was to have drag and drop functionality of images or videos. This would have made this tutorial way longer which is not my goal.
I chose to store the data as bson (binary JSON) as I was planning to store the images/videos as blobs. I'm not sure that this would even work as MongoDB's docs mention that a bson document can only store 16MB. I guess something like IndexedDB would serve my goals better.
\ No newline at end of file +For cross platform compilation check out the official Tauri docs.
Here is the complete code on Github
My initial goal was to have drag and drop functionality of images or videos. This would have made this tutorial way longer which is not my goal.
I chose to store the data as bson (binary JSON) as I was planning to store the images/videos as blobs. I'm not sure that this would even work as MongoDB's docs mention that a bson document can only store 16MB. I guess something like IndexedDB would serve my goals better.
\ No newline at end of file diff --git a/gpg/index.html b/gpg/index.html index a3980d4..19cd99e 100644 --- a/gpg/index.html +++ b/gpg/index.html @@ -28,4 +28,4 @@ =2fgc -----END PGP SIGNATURE----- -