@mackuba@martianbase.net
@mackuba@martianbase.net avatar

mackuba

@mackuba@martianbase.net

Independent Mac/iOS & web developer. Building useless random stuff in Swift, Ruby or JavaScript and wasting time. Currently also learning Rust 🦀 I'm mostly hanging out on Bluesky these days and hacking things on the AT Protocol, so follow me there 😎 🐦 @kuba_suder 🦋 @mackuba.eu

This profile is from a federated server and may be incomplete. Browse more on the original instance.

mackuba, to random
@mackuba@martianbase.net avatar

Interesting… so the iPad Pro 11" had a more widescreen aspect ratio than the 12.9", and the new one has slightly more widescreen one. It's 32 px wider, and it looks like it's diagonally larger about as much as the bigger one, which would make it a 11.1" really 🤔

mackuba, to random
@mackuba@martianbase.net avatar

I'm on a mission to leave https://bsky.app open on every iPad I play with in an iSpot store 😛

Lazarou, to twitter
@Lazarou@mastodon.social avatar

I'm not exactly sure how it's happened, but it's pretty cool I can see Bluesky accounts talking on here.
It seems a shared interest in the misfortunes of the Nazi Bar has bridged the technical divide somewhere.

mackuba,
@mackuba@martianbase.net avatar

@Lazarou One very hardworking open source developer (not affiliated with Bluesky) made a "bridge" thing which let people post from one side to the other (basically it creates kind of "mirror" accounts on the other side which clone the posts, translating links, mentions etc.): https://snarfed.org/2024-05-04_52915

kaiengelhardt, to random
@kaiengelhardt@mastodon.social avatar

Here’s one of my favorite things to do in late spring: There’s a field next to my place, where every year between May and June you can go and collect strawberries.

You pay by weight, but here‘s the best thing: You don‘t pay for what you eat while collecting 😋. In German we call this „Mundraub“, which translates to „Mouth-robbery“.

Just look at these red delicacies - pure tastiness 🍓!

5 red strawberries hanging on a strawberry plant.
„Mundraub“. Me eating a strawberry, because it‘s free!
2 boxes of beautiful strawberries.

mackuba,
@mackuba@martianbase.net avatar

@kaiengelhardt nomnom 🍓🍓😋

mackuba, to bluesky
@mackuba@martianbase.net avatar

traffic tonight:

mackuba,
@mackuba@martianbase.net avatar

@Zorion yeah

unormal, to random
@unormal@mastodon.social avatar

the thing about everything moving to the web is that it turned every damn appplication ini file and sqlite database with configuration info into it into a $19.99/mo+ subscription for you.

is it really worth it?

mackuba,
@mackuba@martianbase.net avatar

@unormal Native apps are also subscriptions now though…

mackuba, to random
@mackuba@martianbase.net avatar

Ughh I think I got this one today 😑 I got a "password reset" prompt on the Apple Watch, I clicked "Don't Allow", I thought maybe it just randomly decided to ask me (like it sometimes randomly asks if I want to trust my Macbook), but I got back home and there was a similar notification on my Mac… https://bsky.app/profile/did:plc:piw4nbn5drokcdhuxx2xarg7/post/3konbuu7pc52j

mackuba, to random
@mackuba@martianbase.net avatar

Hmm, what's the recommended practice if I'm loading some HTML content in JS from an untrusted API (specifically body of a Mastodon post) and I want to insert it into the page in a safe way? Is there some easy way to sanitize it or, dunno, sandbox it somehow? 🤔

mackuba, to typescript
@mackuba@martianbase.net avatar

Good intro to using in the form of JSDoc tags: https://alexharri.com/blog/jsdoc-as-an-alternative-typescript-syntax - I've been using this recently in one small-ish project ( thread reader) and I think I like it. I can run a typecheck when I want, but I don't need a build phase, don't need to install the npm package on the server, it's still just JS that a browser can open as is.

mackuba, to random
@mackuba@martianbase.net avatar

😒

mackuba, to random
@mackuba@martianbase.net avatar

Just out of curiosity, can anyone recommend a nice terminal-based editor (ideally with multi-file support) which is not any variant of Vi(m) or Emacs? 😄 I normally use Nano when editing files on a server, but I was wondering if there's maybe something better.

mackuba,
@mackuba@martianbase.net avatar

@ku1ik Hmmm… I'll take a look 🤔

mackuba, to random
@mackuba@martianbase.net avatar

Pretty good summary of the drawbacks of having a single-user Mastodon instance that result from ActivityPub's architecture (and partially from Mastodon's implementation): https://mull.net/mastodon

It's nice to be in control of your account, but you need to know what you're getting yourself into.

mackuba,
@mackuba@martianbase.net avatar

@jglypt I think some people have even mentioned the tactic of making some alts on other instances and following your main account from the alts 😃

mackuba,
@mackuba@martianbase.net avatar

@jglypt Yeah, so a Bluesky PDS only really does a few things:

  • keeps your own data (posts, likes, uploads)
  • serves it to the relay(s) that connect to it
  • handles logging in (soon also: OAuth, 2FA, passkeys, things like that)
  • passes through all/most requests that the client app makes to the AppView and back
mackuba,
@mackuba@martianbase.net avatar

@jglypt But it doesn't keep a cache of the whole world outside

mackuba,
@mackuba@martianbase.net avatar

@jglypt How do I do what?

mackuba,
@mackuba@martianbase.net avatar

@jglypt Oooh, yeah - so that's basically all CSS that overrides the original CSS. There are a few ways to do it:

  1. simplest, for an instance admin - there is a field in the preferences where you can paste custom CSS overrides from the web (for all users of the instance)

  2. if you want to have design options (original & changed), you need to edit the code a bit

  3. as a user, you can do it client-side with a browser extension

I do 1 and Masto.host almost certainly allows it, not sure about 2.

mackuba,
@mackuba@martianbase.net avatar

@jglypt Oh wait, I've looked at the site and it's not 2 GB of RAM, it's 2 GB of disk space for the database - I don't think they actually say how much RAM they have?

Database doesn't use that much, unless you pull in stuff from relays - mine uses 431 MB after over a year.

Media uses ~300 MB for mine, and 33GB for the cache of external media, but it's fine to clear/trim that one periodically.

mackuba,
@mackuba@martianbase.net avatar

@jglypt Although I see that the base plans don't include Elastic full text search (the one I told you is heavy), that's $5 extra: https://masto.host/about-full-text-search-elasticsearch/. So without that you can search only by hashtags, e.g. "posts with ", but not "posts that mentioned 'something'".

mackuba,
@mackuba@martianbase.net avatar

@jglypt 2 GB is for the PostgreSQL database that keeps data in tables with rows and columns, that stores posts text/metadata, follows, likes and so on. But text data basically. The 20+ GB is for media files (images, video, avatars, banners).

The media downloaded from others can be cleaned up and it will be redownloaded if needed - I didn't do it here because I have plenty of space (so it's a cache from the last ~4-5 months), but I was cleaning it up on the old server periodically.

mackuba,
@mackuba@martianbase.net avatar

@jglypt Yeah I only use this once in a while, if I think e.g. "hmm where was this post I made or a post that I liked which said something about a comparison of VPSes"

mackuba,
@mackuba@martianbase.net avatar

@jglypt Yeah, I was doing it in the terminal, but I'm pretty sure there must be some way to do it from the web

mackuba,
@mackuba@martianbase.net avatar

@jglypt And tbh it worked like shit until the 4.2 update, it wasn't really possible to find what I wanted anyway, they only fixed everything there in 4.2

mackuba,
@mackuba@martianbase.net avatar

@jglypt I can't say if I recommend it or not, at least you know the possible challenges :) The Masto.host base plan looks pretty good I think, and you'll avoid having to mess with configuring and installing everything.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • InstantRegret
  • mdbf
  • osvaldo12
  • magazineikmin
  • cubers
  • rosin
  • thenastyranch
  • Youngstown
  • tacticalgear
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • provamag3
  • Durango
  • everett
  • ethstaker
  • modclub
  • anitta
  • cisconetworking
  • tester
  • ngwrru68w68
  • GTA5RPClips
  • normalnudes
  • megavids
  • Leos
  • lostlight
  • All magazines