Posts
1154
Following
123
Followers
142
of the @kitsunecafe@tech.lgbt notoriety

"what a fascinating yet quietly terrifying being neofox_pleading" @kirakira@furry.engineer

eli, vampire kitsune

does anyone have a good primer on making activitypub enabled apps? i have an idea that i wanna get working but i don’t feel like reading 7,000 pages of activity pub spec

2
1
11

@kasdeya @desea yeah, you can overwrite any variables from bulma at :root and it will take effect through the whole library

https://bulma.io/documentation/customize/with-css-variables/

1
0
1

eli, vampire kitsune

yeah

0
2
5

eli, vampire kitsune

Edited 2 months ago
0
1
8

eli, vampire kitsune

Edited 2 months ago
pseudocode, not screenreader friendly probably
Show content

@kasdeya i’m trying to make a custom ui element which accepts a list of arbitrary data, then binds that data to templates at runtime

its kinda like this (sorry if this is fucked up or doesnt make sense)

# a protocol defining some thing which can be bound to some property
class Bindable(Protocol):
  def bind(value):
    raise NotImplementedError

# data that can be bound to a bindable object
class Property(Protocol):
  @property
  def value(self):
    raise NotImplementedError

  def has_updated() -> bool:
    return True

# some ui element which can be cloned/instantiated to make copies
class Template(Protocol):
  def instantiate() -> Bindable:
    raise NotImplementedError

class ListUi:
  _data_source: list[Property]
  _template: Template
  _ui_elements: list[Bindable]
  _capacity: int
  _index: int
  
  @property
  def data_source(self):
    return self._data_source
 
  @property.setter
  def data_source(self, value):
    this._data_source = value
    self.rebind_items()

  def bind_items(self):
    visible = self._data_source[index:self._capacity]
    iter = zip(self._ui_elements, visible)
    for element, item in iter:
      element.bind(item.value)

basically i just want to have a list of properties that will update their respective bound template when they change. unity has a pretty featureful system for handling this but Got Damb its complicated

1
0
2

eli, vampire kitsune

jesus christ unity’s ui data binding system is complicated

1
0
3

@tempest i hate needing to look at code on github for this

0
0
3

eli, vampire kitsune

i think one of the worst casualties of modern browsers / web stuff is the ctrl-f search

no more than half of the time when i press ctrl-f, it doesn’t do anything until i click around to find a spot that isn’t eating my inputs

and half of the times that it does open, it won’t find text that is clearly on the page

1
2
14

that was uncalled for, i’m sorry diseases

0
1
7

eli, vampire kitsune

as far as i can tell there’s only two things that get named after people and it’s the two things that nobody wants: diseases and math

2
4
9

and they didnt even add a way to constrain them until .net 7/c#11 neofox_googly_shocked

0
0
2

eli, vampire kitsune

why da fuck does c# have so many numeric types

1
0
3
re: awful
Show content

@vivi i want to die it was so bad, but you are so sweet :neofox_pat_up:

0
0
2

eli, vampire kitsune

awful
Show content

girl you must be very positive and have two bytes because ushort

1
2
12

Ellie The Yeen Deer ΘΔ

What would you do if a fox cooked you dinner for some reason?

1
3
0

@catgirl_so @tempest @erin @kasdeya are we allowed to bring up quirks mode in addition to this?

1
0
3
Show older