Peter Kisner ≈ · @PTR_K
232 followers · 5151 posts · Server dice.camp

Sick from the cycle
Of running and sleeping
And saving saving our energy.
Outside it's raining.

Put down your magazine.
Sit here and speak with me.
Voice is more interesting
Than any book would be.

youtu.be/1pzuThP4NOs

#mastodonjukebox #music #axum

Last updated 1 year ago

Karim Lalani · @klcoder
0 followers · 1 posts · Server me.dm
dustcircle :verified: · @dustcircle
184 followers · 5331 posts · Server masto.ai

Study Sheds Light on Arab Expansion in , and other Empires
juancole.com/2023/04/expansion

#dna #africa #axum

Last updated 2 years ago

JQ Jacobs · @jqjacobs
272 followers · 105 posts · Server archaeo.social


Richard Lozin web.archive.org/web/2016101801
14.132, 38.7194
Copied the number when saving the photo, searched the for panoramio.com/photo/49503411. Same URL for every Panoramio photo, just change the numbers to match other photos. The 2016 cache was just before Google closed down Panoramio.com. Massive photo base.

#StandingStoneSunday #stelae #obelisks #panoramio #photoshare #geolocation #axum #ethiopia #archaeology #waybackmachine #geolocated

Last updated 2 years ago

JQ Jacobs · @jqjacobs
272 followers · 105 posts · Server archaeo.social


Richard Lozin web.archive.org/web/2016101801
14.132, 38.7194
Copied the number when saving the photo, searched the for panoramio.com/photo/49503411. Same URL for every Panoramio photo, just change the numbers to match other photos. The 2016 cache was just before Google closed down Panoramio.com. Massive photo base.

#StandingStoneSunday #stelae #obelisks #panoramio #photoshare #geolocation #axum #ethiopia #archaeology #waybackmachine #geolocated

Last updated 2 years ago

JQ Jacobs · @jqjacobs
272 followers · 104 posts · Server archaeo.social
Dave Warnock · @Dave42W
311 followers · 1383 posts · Server amastodon.uk

Been playing a lot with on with and
My app on at codeberg.org/Dave42W/PrayerOfH now has working for SongBooks and Authors using the embedded file db engine which is under the covers.
Starting to get to a more productive place.

#surrealdb #rustlang #axum #handlebars_rs #prayerofhannah #codeberg #crud #rocksdb

Last updated 2 years ago

Dave Warnock · @Dave42W
304 followers · 1260 posts · Server amastodon.uk

Very happy.
Made good progress. web form now complete for first db table Song_Books working in

All code on @Codeberg (which I see has been updated to use @forgejo ) at
codeberg.org/Dave42W/PrayerOfH

#crud #prayerofhannah #rustlang #axum #seaorm #codeberg #forgejo

Last updated 2 years ago

Dave Warnock · @Dave42W
304 followers · 1259 posts · Server amastodon.uk

Ok toasted sandwiches made and all in the freezer.
Now a bit of playing with using
Got all etc installed and going to define the first tables in the migration script (table definitions are going to be incredibly unstable for quite a while).
Enjoying a nice coffee too 😃

#prayerofhannah #rustlang #seaorm #axum

Last updated 2 years ago

Dave Warnock · @Dave42W
304 followers · 1232 posts · Server amastodon.uk

It has taken me ages but I finally have migration creating and dropping an index. In the process, I think I have gained a better grasp of working with Result
Should be useful when I revisit getting SeaOrm to work cleanly with StatusCode
All committed in at codeberg.org/Dave42W/daves_das

#seaorm #rustlang #axum #codeberg

Last updated 2 years ago

Xe :verified_purple:​ · @xe
91 followers · 45 posts · Server vt.social

Hey all! I'm gonna be streaming on Twitch at 13:00 EST. I'm gonna write a little pronoun.is replacement in with and

Please check it out!

twitch.tv/princessxen

#rust #axum #dhall

Last updated 2 years ago

Matsimitsu :appsignal: · @matsimitsu
58 followers · 65 posts · Server ruby.social

So cool that we can use Rust's tracing to get data into AppSignal now.

We were already monitoring it with metrics/logs, but having traces is always a plus.

#opentelemetry #dogfood #appsignal #rust #axum

Last updated 2 years ago

Dave Warnock · @Dave42W
298 followers · 1187 posts · Server amastodon.uk

Ok, in today's I have managed to wrap Update and Delete in transactions. In I've got Insert, Update and Delete redirecting url's properly.
There are a few cases where I would like to return nice HTTP status codes (such as if another user has deleted the row before your transaction starts).
Struggling to get those different responses to work as I want.

#rustlang #seaorm #axum

Last updated 2 years ago

Dave Warnock · @Dave42W
297 followers · 1185 posts · Server amastodon.uk

I keep putting off doing docs and tests 😉
But I now have full CRUD for my first table.
I had some difficulties using the PATCH method on my edit form, it wasn't routing as I expected, so updates use POST to a different route.
I need
- some better passing db errors to the user
- a delete confirmation
- checking for multi-user db changes
- transactions
- after insert/update/delete I should redirect to the list not simply call the method as the url is wrong.

#rustlang #axum #seaorm #handlebars_rs

Last updated 2 years ago

Dave Warnock · @Dave42W
297 followers · 1178 posts · Server amastodon.uk

Very excited. I have the parts working together for an incredibly, basic web app. Using with all on at codeberg.org/Dave42W/daves_das
I've tidied the code and massively simplified it.
Getting to the point where I have a working environment to start building .
I do want to add doc strings, and tests so this becomes the simplest possible example of all the connections for a CRUD web app.

#rustlang #axum #handlebars_rs #seaorm #sqlite #codeberg #prayerofhannah

Last updated 2 years ago

Dave Warnock · @Dave42W
290 followers · 1090 posts · Server amastodon.uk

Close but struggling to connect entities to handlers, I want get Json from the entity for rendering html with ) and I want to get extracted form into entity struct so I can insert into database.
Caught in a mismatch of types and traits and funding the docs & examples either don't work or very confusing.
learning curve is steep again.

#seaorm #axum #handlebars_rs #rustlang

Last updated 2 years ago

Dave Warnock · @Dave42W
287 followers · 1074 posts · Server amastodon.uk

Made good progress this evening, no longer spending hours trying to understand compiler errors 😊
Working on my learning project "Daves Dashboard" code on at codeberg.org/Dave42W/daves_das
I've got (including first partial template) and working together neatly. Was a lot of setup for migrations but now also have autogenerated entity.
Next connect my model to the database using entity.

#rustlang #codeberg #axum #handlebars_rs #seaorm

Last updated 2 years ago

Hasnayeen :verified: · @hasnayeen
25 followers · 239 posts · Server phpc.social

Dec 23
forgot to update regularly.
- working on my web app
- using web framework
- for templating picked
- using for styling
- for db using
- basic structure is done
- next need to add error handling, tracing
so far enjoying writing

#axum #askama #tailwindcss #SurrealDB #rustlang

Last updated 2 years ago

Dave Warnock · @Dave42W
283 followers · 962 posts · Server amastodon.uk

Next task is change

Router::new()
.route("/sys_info", get(get_sys_info))

to pass get_sys_info the model and view functions as arguments.

The controller should not need to know which model and view are used for this URL (actually view is much more important than model). I don't want multiple controllers for html, json etc one controller (route handler)

#rustlang #axum

Last updated 2 years ago

Dave Warnock · @Dave42W
280 followers · 936 posts · Server amastodon.uk

Tonight's challenge. Trying to use State in 0.6
From docs.rs/axum/latest/axum/extra
I copy this:

#[derive(Clone)]
struct AppState {}

let state = AppState {};

the last line gives a compile error >>
Syntax Error: expected an item

which is a bit frustrating when the code comes directly from the docs and is in every example of using State.

What have I not understood?

#rustlang #axum #rust

Last updated 2 years ago