nerdculture.de is one of the many independent Mastodon servers you can use to participate in the fediverse.
Be excellent to each other, live humanism, no nazis, no hate speech. Not only for nerds, but the domain is somewhat cool. ;) No bots in general. Languages: DE, EN, FR, NL, ES, IT

Administered by:

Server stats:

1.2K
active users

#sqlite3

0 posts0 participants0 posts today
Okay, mysqlbrowser (from the #Debian repositories) is actually a pretty decent tool. It provides a nice point-and-click interface that makes working with #sqlite3 databases a little bit nicer. Knowledge of how to write an #SQL query is still a requirement, but it makes creating/editing tables more convenient. Maybe it's well known, but I just discovered it yesterday.

Using R, Shiny and SQLite3 to host online stats assignments is a load of fun.

Until you accidentally swap out the SQL-data file with an empty one🤦

No worries, the swap-out command saves the existing data, just in case.

A fun evening, writing R code to read the SQL, combining data accumulated in the "empty" file with the existing data, writing it out to Stata (where sane people do their complex data manipulation), reading it back into R to write to SQL.

#SQLite is pretty neat. I'm used to working with large scale databases on mission critical data, but I needed something lightweight for a personal project. Something I could shunt around and not keep on a server. I settled on #SQLite3

However. I wasted a lot of time harking back to the turn of the millennium and trying to find a nice tool for forms to use with it. I tried lots of things including #LibreOffice Base with odbc and even #Kexi, which seemed promising at first but proved frustrating. I ended up just creating a web interface.

Reader, I do that for a living. I wanted a ready made solution for my personal project and just couldn't find one.

But, here's the thing. SQLite makes everything so easy to access that I'm sure I could write a set of #PHP scripts to build forms on the fly.

But I'm not going to. Not because I don't want to, but because it's just not a practical use of my time.

so i've got #sqlite3 running on my #esp32 via #LittleFS (#SPIFFS had issues with DELETE statements and would mess up opening/closing for some reason), set up web API locally for it..... and now am trying to think of where i want to integrate it.

It's simply recording every cycle of the washing machine (this project, that keeps growing: beige.party/@quasirealsmiths/1 ) and it'd be neat to see a little graph.

For $3 these little boards are beasts -> aliexpress.us/item/32568041580

next project i think will be a heat/sound sensor put under the sink on the exterior cabinet wall facing the dishwasher so I can "smarten" that thing, too.

beige.partyAbsolutely Immune [REDACTED]™ (@quasirealsmiths@beige.party)Attached: 1 image When you get a vibration sensor and tape it to your old, dirty washing machine and hook it up to an #ESP32 #S2Mini (shown in a 3D case I whipped up).... you create your own "Smart" Washer. You don't even care how absolutely filthy it is behind the ancient device cuz now you're getting #Pushover notifications when the wash is done. The code wasn't even that difficult, which was a bonus. Just had to find a spot on the machine that jiggled enough during all the cycles (fill, wash, spin, drain) but didn't get triggered by the dryer next to it, then whip up a little "vibrate this much for this long it must be on, okay it's been still for this long it must be off. Wash is done!" function. I am addicted to these things and have more random stuff I ordered from AliExpress when drunk on the way as well.