Tootfinder

Opt-in global Mastodon full text search. Join the index!

No exact results. Similar results found.
@aral@mastodon.ar.al
2025-09-03 10:53:54

I haven’t added an example of how you implement migrations with Kitten’s¹ built-in JSDB database² yet but here’s one that I just used when renaming a field (property) in a table (JavaScript object) from “account” to “data” that illustrates the general granular approach you should take within persisted instances of JavaScript classes.
This is, of course, an advanced use case of the built-in JavaScript database that all Kitten apps have.
Kitten is simple for simple use cases. So ch…

Screenshot of code (detail) in Helix Editor on macOS, showing the source for app_modules/database/database.js. The following code is highlighted with a pink border:

initialise () {
    // Migration.
    if (this.account !== undefined) {
      this.data = this.account
      delete this.account
    }
  }

Full listing

texport class VerifiedAccount extends Model {
  url = this.url || ''
  /**
    This is the object returned from the accounts/lookup
    method of the Mastodon API.

    …
Screenshot of code for app_modules/database/Model.js.

The following code is highlighted with a pink border:

  /**
    Optional hook: override this to perform initialisation
    at constructor time. (Do not override the constructor
    or the automatic property assignment will fail.)
  */
  initialise () {}

Full code listing:

/**
  Base model class.

  (To use, extend this with your own model classes.)

  When adding properties in subclasses, make sure you
  only set values after checking if…
@ErikJonker@mastodon.social
2025-09-03 17:24:07

My feeling is Trump will chicken out with regard to sending troops into Chicago, the resistance is too strong.
#TACO #Trump #Chicago

@hikingdude@mastodon.social
2025-10-03 15:16:14

Having a real calm day today with a leisure walk.
(REALLY Calm this time)
#badtölz #tölzerland #bayern

A picturesque riverside park on a bright, sunny day, featuring a gently flowing river with clear, shallow waters and a rocky shoreline. Lush green grass and trees in vibrant autumn colors create a serene and inviting atmosphere. People are seen relaxing and enjoying the beautiful surroundings, while a charming building or castle perched on a hill in the background adds a touch of historical elegance to the scene. The image captures the perfect blend of nature, relaxation, and scenic beauty.
@Techmeme@techhub.social
2025-08-04 18:20:41

OpenAI says ChatGPT now offers "gentle reminders" to take breaks during long sessions, and it is building tools to better detect signs of emotional distress (Ian Carlos Campbell/Engadget)
engadget.com/ai/chatgpt-will-n

@kexpmusicbot@mastodonapp.uk
2025-10-03 18:12:26

🇺🇦 #NowPlaying on KEXP's #MiddayShow
Film School:
🎵 11:11
#FilmSchool
filmschoolmusic.bandcamp.com/a
open.spotify.com/track/5uIGgu1

@simon_brooke@mastodon.scot
2025-10-04 17:17:57

If anyone's been following my progress on the #tricycle project, I'm currently drooling over the very adjustable recumbent ergonomic rig shown in this video. I'm wondering whether I can make myself something even nearly this adjustable!
#BikeTooter

@gscherer2@social.linux.pizza
2025-10-04 14:57:02

Flame Skimmer dragonfly resting on a green branch. LA Arboretum, Arcadia, California, USA. #laarboretum #dragonfly #flameskimmer

Close-up of a bright orange dragonfly, seen from the side, hanging from the side ov a vertical bright green branch or stalk, against an out of focus light background.  The dragonfly/s body and eyes are a bright orange, and the wings shade from orange near the body to transparent at the wing tips.
@kexpmusicbot@mastodonapp.uk
2025-09-03 22:09:00

🇺🇦 #NowPlaying on KEXP's #AfternoonShow
Leroy Hutson:
🎵 Love the Feeling
#LeroyHutson
leroyhutson.bandcamp.com/track
open.spotify.com/track/6FFTyiK