Search
Items tagged with: dev
Just published a minor update (version 5.1.1) to JavaScript Database (JSDB) that optimises the custom data type¹ serialisation code by removing a redundant return statement:
https://www.npmjs.com/package/@small-tech/jsdb
This change is backwards compatible and shouldn’t require and updates to your projects, including the ones you have in Kitten (which uses JSDB internally).
¹ https://codeberg.org/small-tech/jsdb#custom-data-types
² https://codeberg.org/kitten/app
#JavaScriptDatabase #JavaScript #database #JSDB #Kitten #SmallWeb #NodeJS #web #dev
Just deployed a new Kitten¹ version 🎉
• Adds database backup and restore in your app’s Kitten settings page (/💕/settings)
• Upgrades version of JSDB from 4 to 5²
• You can emit and listen for events on the session object you get from `request.session` in your routes now.
¹ https://codeberg.org/kitten/app
² For migration notes, please see: https://codeberg.org/small-tech/jsdb#migrating-from-earlier-versions-of-jsdf
#Kitten #backupAndRestore #JavaScript #NodeJS #database #JSDB #sessions #SmallWeb #web #dev
Watching The Doors live at The Hollywood Bowl (1968)¹ and hacking on Kitten² and Domain³.
All in all, not a bad way to spend a Saturday afternoon in my book.
(I’ve almost got database backup/restore working in Kitten and I’ve just finished porting Domain to the latest Kitten with JSDB 5⁴.)
¹ https://yewtu.be/watch?v=Q76QBhKHQGc
² https://codeberg.org/kitten/app
³ https://codeberg.org/domain/app
⁴ https://codeberg.org/small-tech/jsdb
#TheDoors #Kitten #Domain #JSDB #SmallWeb #web #dev #music
Mike Conley is a Firefox developer and creator of the long-running video series "The Joy of Coding". You can follow the videos at:
If the videos haven't federated to your server yet, you can browse them all at https://diode.zone/a/mconley/videos
You can also follow Conley's general account at @mconley@mozilla.social
#FeaturedPeerTube #Programming #Coding #Dev #SoftwareDevelopment #Developers #Firefox #Mozilla #PeerTube #PeerTubers
Mike Conley
Diode Zone is a friendly place for original content with a focus on creativity and electronics!Diode Zone
JSDB 5.1.0 published¹ 🎉
• Forgetting to pass a custom class that’s persisted in your database in your `JSDB.open()` call now throws instead of corrupting your database by falling back to using an untyped object.
• Added JSDF ver. 2 to 3 database migration script (i.e., JSDB version 2-4 to 5)²
To install update:
npm install @small-tech/jsdb@5.1.0
¹ https://codeberg.org/small-tech/jsdb/releases
² https://codeberg.org/small-tech/jsdb#version-2-to-3
#JavaScriptDatabase #JavaScript #database JSDB #JSDB5 #NodeJS #SmallTech #SmallWeb #web #dev
jsdb
A zero-dependency, transparent, in-memory, streaming write-on-update JavaScript database for the Small Web that persists to a JavaScript transaction log.Codeberg.org
JSDB 5.0.1 published 🎉
• Fixes #14: Crash if DataProxy getHandler() called on object with null prototype. (https://codeberg.org/small-tech/jsdb/issues/14)
To install update:
npm install @small-tech/jsdb@5.0.1
Learn more about JSDB:
https://codeberg.org/small-tech/jsdb#javascript-database-jsdb
#JavaScriptDatabase #JavaScript #database JSDB #JSDB5 #NodeJS #SmallTech #SmallWeb #web #dev
jsdb
A zero-dependency, transparent, in-memory, streaming write-on-update JavaScript database for the Small Web that persists to a JavaScript transaction log.Codeberg.org
Just wrote a note about a little gotcha with default values for destructured properties of parameter objects in JavaScript that has gotten me a few times:
#JavaScript #destructuring #defaults #parameterObjects #web #dev
gists/default-values-for-destructured-properties-of-parameter-objects-in-javascript.md at main
gists - A place for me to post and share small, self-contained code snippets.Codeberg.org
This is a very neat trick to unset max-height when an HTML element with resize='vertical' set in CSS is resized. So you can have elements initially displayed with a max-height but then resized beyond it:
https://stackoverflow.com/a/60286469
(Should work as is for resize='block' and with the selector tweaked to use "width" for horizontal/inline.)
Little web dev tip: if you have just one address field in your HTML form (e.g., a textarea) but you still want the person filling it in to avail themselves of autocomplete, here’s a little reusable snippet you can use to achieve that:
(Ideally the web spec should be extended to include a full-address value for the autocomplete attribute.)
#HTML #autocomplete #JavaScript #address #web #dev #tip #code
gists/single-html-address-field-with-autocomplete-using-javascript.md at main
gists - A place for me to post and share small, self-contained code snippets.Codeberg.org
This is a niche one and will likely not affect any of the (three?) people playing with Kitten¹ right now but, in any case:
If you persist custom types to your Kitten database, you might be hit by this bug that was introduced when I released versions of Kitten with minified identifiers.
I briefly wrote about what happened, how you can identify if you’re affected, and how you can fix it here:
https://codeberg.org/kitten/app/issues/160#issuecomment-1775375
(If you’re wondering why the repository was 176MB to begin with, it’s because I was initially deploying from the /dist folder in the repository. But since then I created a special deployment site for Kitten and now Kittens come from, well, where else but https://kittens.small-web.org.)
💕
PS. It takes me ~3.5 seconds to build and deploy a new version of Kitten so its common for there to be multiple new versions in a day. Run `kitten update` to get the latest.
If you’re working on Kitten¹ from source, please clone a fresh copy.
I just rewrote history to reduce the repository size (correctly this time, including all references from branches, tags, etc.).
The good news is that – contrary to what the Codeberg interface is currently showing the size to be (176MB) – the repository is only about 5MB now so it should only take a couple of seconds to clone.
Related issue: https://codeberg.org/Codeberg-e.V./requests/issues/182
💕
¹ https://codeberg.org/kitten/app
Manual garbage collection request
Hi there, I just pruned a large amount of data from the [Kitten repository](https://codeberg.org/kitten/app) – bringing the size down from ~167MB to ~3.6MB (I was deploying the bundles to the repository at the start to keep things simple).Codeberg.org
I’ve been looking for an ngrok alternative for a while now that’s (a) affordable (b) easy to use and (c) works with Kitten¹. Today, after testing a bunch of them again and getting fed up, I found LocalXpose that checks all the boxes.
I signed Small Technology Foundation up as an affiliate so if you use this link to check it out, we’ll get 40% of your $6/mo pro account fee should you subscribe:
https://localxpose.io/?via=kitten
#Linux #Waydroid #Android #Applications #Dev #Tech #IT #Ubuntu
https://ubuntushell.com/install-waydroid/
How to Run Android Applications on Ubuntu with Waydroid
Discover a step-by-step guide to install Waydroid on Ubuntu and learn the steps to install, list, run, and uninstall Android applications.Ubuntu Shell
Love #Mastodon and want to see it thrive? Consider donating or becoming a sponsor. Money goes a long way to help the Mastodon team build the features you want.
💜🐘🤗
https://joinmastodon.org/sponsors
#Fediverse #Donate #Dev #ActivityPub
Donate to Mastodon
View people and companies who crowdfund the development of the decentralized, open-source social media platform Mastodon.joinmastodon.org
And this was last year, Kitten has come a long way since then…
Check out the new Streaming HTML workflow:
https://ar.al/2024/03/08/streaming-html/
And how it made it possible to build Draw Together in less than 60 lines of code:
https://ar.al/2024/03/26/draw-together/
Wishing you a lovely conference this year :)
#SmallWeb #Kitten #web #dev #SmallTech #StreamingHTML
Streaming HTML
Sorry, your browser doesn't support embedded videos. But that doesn’t mean you can’t watch it! You can download the video and watch it with your favourite video player. Building the Streaming HTML counter example.Aral Balkan