ActuallyHappening

ActuallyHappening

0-day streak
For #arcade I am building and investigating the use of a docker container to build rust containers in, so that I can easily incrementally deploy to a dumb linux machine as a server. the server costs like $4AUD/month and can't even compile serde! I've get a VEEERY slow build system using a Dockerfile and docker build, but this is currently suboptimal because docker build 1) doesn't log very well 2) requires a full rebuild even on little state change because 3) the dockerfile can't reuse state from the last build (that would defeat the purpose of the repeatability of docker builds!) There is a very old project I'm taking inspiration from, github.com/therustmonk/cargo-docker/blob/master/src/main.rs I'm building it here: github.com/ActuallyHappening/YMap/tree/master/crates/cargo-docker-build
https://scrapbook-into-the-redwoods.s3.amazonaws.com/ef107c95-d37a-48cd-9db5-91f8f35e58f7-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/619de54f-036d-4f0a-94c9-a5db80a74fef-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/af5c6112-249e-45e7-8142-73dfed48cabd-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/bdf009f6-2e56-4dda-be93-9072c3371d04-image.pnghttps://imgutil.s3.us-east-2.amazonaws.com/3858db74039958d8369a7ce5ac029fef1de7dccaedbddb255cd04a16469b44f5/ae106e17-9b8e-4d7c-93ef-763a97801768.png
rustlang emoji
docker emoji
summer-of-making emoji
github emoji
linux emoji
For #arcade I am still working on a proper authentication frontend UI for a 100% Rust surrealdb powered backend My next task is to try to store the JWT (Json Web Token) in browser storage using a clean API while still accessing the database session easily Now it stores the timestamps of logins per user, which is pretty cool!
https://scrapbook-into-the-redwoods.s3.amazonaws.com/adec0f80-5e1f-432d-8f11-6bda28b710be-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/de4456fc-35cb-41b3-8285-2f859ce67830-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/ebe28c53-7fc9-4232-812b-7725d313b1d6-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/3f69bb6d-b169-4fbd-8971-5d261ae953a4-image.png
summer-of-making emoji
rustlang emoji
cooll-dino emoji
For #arcade I have built a WIP basic authentication system using email/password The email isn't yet verified, the error messages could be improved (but likely wont), but it does work It uses so many rust projects at once I love it! leptos , leptonic, surrealdb e.t.c. Of course there is a database running hosted at a custom domain name I bought for $4 Quite a few console error logs but I don't really care Also, I could probably setup some browser integration test, I remember from this open source rust maintenance video a guy maintains a project that can talk to browsers through an open source spec
https://scrapbook-into-the-redwoods.s3.amazonaws.com/1a7ca4d1-3954-42b4-8b36-77bc0aabc186-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/aba3621a-5be8-4da2-9f6c-9a85e084ca1b-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/99f25e91-e206-4dee-963d-9e363ba69d71-image.png
summer-of-making emoji
rustlang emoji
c emoji
For #arcade I have implemented (finally, took many hours of debugging) an authentication abstraction over surrealdb It allows you to sign up with a basic username / email / password which is persisted on the server, then sign back in with the same email and password Crucially, this is all implemented in Rust, including the databasing implementation itself (which is AWESOME!), the scripting language and the testing framework (cargo). Because of this there is rather a lot of dependencies, around 870! Takes a while to cold compile ;)
https://scrapbook-into-the-redwoods.s3.amazonaws.com/98712d90-05d6-41e7-bc89-914b38477062-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/a084f977-5f73-4140-81e5-ec16b0ca1302-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/4751a40a-dcf5-4087-9ebe-7e7b08b089bc-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/7ab760e7-11ad-4e5d-b1e3-fc0f93324303-image.png
For #arcade I vastly improved upon the design of my database controller script to now use traits instead of specific types And, there was no need for a local version since surreal db support embedded Rust memory databases since it itself is implemented in Rust :glas:
https://scrapbook-into-the-redwoods.s3.amazonaws.com/a0df5309-3461-41d6-9f7a-b83399d7b37c-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/b7ed8bea-11e8-4ff7-b3c2-37040ca4708c-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/e1c1b3a6-76ce-41df-975f-d724ddcc2f17-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/a53ee527-70ee-46ae-93f9-b79ddd5e4eea-image.png
summer-of-making emoji
rustlang emoji
For #arcade I made a complete surreal db controller CLI for a local testing suite and remote database It reads a bunch of environment variables, connects and logs in (depending on production/testing modes), can kill already running processes It is implemented as a local rust crate, so I can utilize cargo's awesome subcommanding schemes to make a cargo db alias!
https://scrapbook-into-the-redwoods.s3.amazonaws.com/044a154b-69f1-4dcf-9e3f-f75fe68d2f84-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/2eb3b8b9-650b-4bb2-9cf8-667fddbe554b-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/48e74f64-d40b-4c27-82be-723d1a6f8f0e-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/7996825e-328e-47d6-a50c-48e7e4ac3f2c-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/c1d05ddb-3c0e-47db-8268-e32667874269-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/2fabe56b-296f-4de7-bf35-0d0c29788e4e-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/5525c1ed-60d3-41f8-9604-921a84b3a554-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/c811e613-5aa9-4e93-aec5-488e30f7861f-image.png
summer-of-making emoji
rustlang emoji
awesome emoji
For personal enjoyment and arcade tickets, I have created an iOS app using 100% Rust that allows drawing on my iPad with my Apple Pencil, my iPhone, my mac using mouse and Mac Catalyst Projects / improvements to other peoples stuff: • A rust crate for building Rust with XCode: crates.io/crates/cargo-xcode-build-rs • PR for implementing Apple pencil double tap (i'm already using my own version myself): github.com/rust-windowing/winit/pull/3768 • A whole bunch of smaller PRs that were minor improvements
https://scrapbook-into-the-redwoods.s3.amazonaws.com/edebc7ee-c698-4965-b13f-e2c3a7404bc7-image.pnghttps://scrapbook-into-the-redwoods.s3.amazonaws.com/5485bdcf-73c8-47d0-8873-f166df53f52b-image.pnghttps://imgutil.s3.us-east-2.amazonaws.com/5dcfab09f6873146075a2bfcedb6dd2ce45ed209a43436d72a97fa1b385efb48/94904a6b-2330-46c4-bc9d-41599dbb77dc.png