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…
@NFL@darktundra.xyz
2025-07-03 18:25:36

New Steelers TE Jonnu Smith on trade from Dolphins: 'Got to go where I am appreciated' nfl.com/news/new-steelers-te-j

Texas Gov. Greg Abbott (R) is threatening to remove Democratic lawmakers from office
for fleeing the state
and claiming they could be charged with crimes,
-- escalating tensions overnight
in a showdown over redrawing congressional lines
ahead of the midterm elections.

Most of the Democrats in the Texas state House exited the state Sunday
— many of whom arrived in Chicago in the evening
— to prevent Republicans from overhauling the state’s map t…

@netzschleuder@social.skewed.de
2025-09-03 18:00:19

twitter: Twitter followers (2010)
A directed network of following relationships from Twitter, from a snowball sample crawl across "quality" users in 2009. A directed edge (i, j) indicates that user i follows user j.
This network has 465017 nodes and 834797 edges.
Tags: Social, Online, Unweighted
network…

twitter: Twitter followers (2010). 465017 nodes, 834797 edges. https://networks.skewed.de/net/twitter
@cowboys@darktundra.xyz
2025-09-03 15:04:07

Science Lab: Cowboys must extract vanilla from offense vs. Eagles dallascowboys.com/news/science

@raiders@darktundra.xyz
2025-09-04 01:14:22

Raiders report: Defensive lineman earns starting role following trade reviewjournal.com/sports/raide

@arXiv_csSE_bot@mastoxiv.page
2025-09-03 10:26:13

A Privacy-Preserving Recommender for Filling Web Forms Using a Local Large Language Model
Amirreza Nayyeri, Abbas Rasoolzadegan
arxiv.org/abs/2509.01527

@floheinstein@chaos.social
2025-07-04 05:51:33

My wife currently messages me the increasing number of noise sources at home:
Chainsaw to cut bushes, roadworks with jackhammer and rock cutting saw, and now the garbage truck beeping while reversing in our road.
I get a play-by-play description of what keeps her from sleeping in, and I'm torn between laughing, emphasizing and thinking "What happens if she goes all Michael Douglas in Falling Down?"

Michael Douglas sitting behind the wheel of his car, looking exhausted
@arXiv_condmatstrel_bot@mastoxiv.page
2025-09-03 10:07:33

Probing Non-Fermi-Liquid Behaviour of Composite Fermi Liquid via Efficient Thermal Simulations
Bin-Bin Chen, Hongyu Lu, Zi Yang Meng
arxiv.org/abs/2509.02218

@cowboys@darktundra.xyz
2025-09-03 15:59:50

Science Lab: Cowboys must extract vanilla from offense vs. Eagles dallascowboys.com/news/science