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.
Some very poorly written #rust code. https://github.com/lalanikarim/rust_full_stack
#rustlang #surrealdb #axum #yew
#rust #rustlang #surrealdb #axum #yew
#DNA Study Sheds Light on Arab Expansion in #Africa, #Axum and other Empires
https://www.juancole.com/2023/04/expansion-africa-empires.html
#StandingStoneSunday #Stelae #Obelisks
#Panoramio #PhotoShare Richard Lozin https://web.archive.org/web/20161018011259/http://www.panoramio.com/photo/49503411
#Geolocation 14.132, 38.7194 #Axum #Ethiopia #Archaeology
Copied the #Panoramio number when saving the photo, searched the #WayBackMachine for http://www.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 #geolocated #archaeology photo base.
#StandingStoneSunday #stelae #obelisks #panoramio #photoshare #geolocation #axum #ethiopia #archaeology #waybackmachine #geolocated
#StandingStoneSunday #Stelae #Obelisks
#Panoramio #PhotoShare Richard Lozin https://web.archive.org/web/20161018011259/http://www.panoramio.com/photo/49503411
#Geolocation 14.132, 38.7194 #Axum #Ethiopia #Archaeology
Copied the #Panoramio number when saving the photo, searched the #WayBackMachine for http://www.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 #geolocated #archaeology photo base.
#StandingStoneSunday #stelae #obelisks #panoramio #photoshare #geolocation #axum #ethiopia #archaeology #waybackmachine #geolocated
#StandingStoneSunday #Stelae #Obelisks
#Panoramio #PhotoShare Richard Lozin https://web.archive.org/web/20161018011301/http://www.panoramio.com/photo/49503414
#Geolocation 14.132, 38.7194 #Axum #Ethiopia #Archaeology
#GoogleEarth #Photo layer, my frequent window to the whole world, leads to great archaeology site photographers by navigating the #WebArchive 2016 cached pages. https://archive.org/web/
#StandingStoneSunday #stelae #obelisks #panoramio #photoshare #geolocation #axum #ethiopia #archaeology #GoogleEarth #photo #webarchive
Been playing a lot with #SurrealDB on #RustLang with #Axum and #Handlebars_rs
My #PrayerOfHannah app on #CodeBerg at https://codeberg.org/Dave42W/PrayerOfHannah now has working #CRUD for SongBooks and Authors using the embedded file db engine which is #RocksDB under the covers.
Starting to get to a more productive place.
#surrealdb #rustlang #axum #handlebars_rs #prayerofhannah #codeberg #crud #rocksdb
Very happy.
Made good progress. web form #CRUD now complete for first db table Song_Books working in #PrayerOfHannah
#RustLang #Axum #SeaOrm
All code on @Codeberg (which I see has been updated to use @forgejo ) at
https://codeberg.org/Dave42W/PrayerOfHannah
#CodeBerg #Forgejo
#crud #prayerofhannah #rustlang #axum #seaorm #codeberg #forgejo
Ok toasted sandwiches made and all in the freezer.
Now a bit of playing with #PrayerOfHannah using #RustLang
Got all #SeaOrm #Axum 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
It has taken me ages but I finally have #SeaOrm migration creating and dropping an index. In the process, I think I have gained a better grasp of working with #RustLang Result
Should be useful when I revisit getting SeaOrm to work cleanly with #Axum StatusCode
All committed in #CodeBerg at https://codeberg.org/Dave42W/daves_dashboard
#seaorm #rustlang #axum #codeberg
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
Ok, in today's #RustLang I have managed to wrap #SeaOrm Update and Delete in transactions. In #Axum 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.
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
#rustlang #axum #seaorm #handlebars_rs
Very excited. I have the parts working together for an incredibly, basic #RustLang web app. Using #Axum #Handlebars_rs #SeaOrm with #Sqlite all on #CodeBerg at https://codeberg.org/Dave42W/daves_dashboard
I've tidied the code and massively simplified it.
Getting to the point where I have a working environment to start building #PrayerOfHannah .
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
Close but struggling to connect #SeaOrm entities to #Axum handlers, I want get Json from the entity for rendering html with #Handlebars_rs ) 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.
#RustLang learning curve is steep again.
#seaorm #axum #handlebars_rs #rustlang
Made good #RustLang progress this evening, no longer spending hours trying to understand compiler errors 😊
Working on my learning project "Daves Dashboard" code on #CodeBerg at https://codeberg.org/Dave42W/daves_dashboard
I've got #Axum #Handlebars_rs (including first partial template) and #SeaOrm 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
Dec 23
forgot to update regularly.
- working on my web app
- using #axum web framework
- for templating picked #askama
- using #TailwindCSS for styling
- for db using #surrealdb
- basic structure is done
- next need to add error handling, tracing
so far enjoying writing #RustLang
#axum #askama #tailwindcss #SurrealDB #rustlang
Next #RustLang #Axum 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)
Tonight's #Rustlang challenge. Trying to use State in #Axum 0.6
From https://docs.rs/axum/latest/axum/extract/struct.State.html
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 #Rust docs and is in every example of using State.
What have I not understood?