Posts

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

aral, to SmallWeb
@aral@mastodon.ar.al avatar

You can create custom components in Kitten with custom properties (props) but you’re not limited to that. You can also pass any HTML attributes specified on your custom component to an element of your choosing within your component. This is very useful if you want to listen for events or use your component with frameworks like Alpine.js (which Kitten has built-in/first-class support for, alongside htmx).

Just documented it here with a simple example:

https://codeberg.org/kitten/app#html-attributes

aral, to random
@aral@mastodon.ar.al avatar

‘Put a man on it’: the very short story of my medical research career

https://www.inkl.com/a/paqMzasrAQr

“In the UK, a study of cancer research funding showed a 70-30 split in the number of grants awarded to men and women. As a result, men received grants valued at nearly £2bn with grants to women totalling £500m.”

aral, to internet
@aral@mastodon.ar.al avatar
EricBrian,

@aral He is a lunatic for sure.

thelaughingmuse,

@aral

Monday: "Fuck Elon."
Tuesday: "Eat the rich."
Wednesday: "Fuck Elon."
Thursday: "Eat the rich."
Friday: "Shabbat shalom."
Saturday: "Fuck Elon."
Sunday: "Eat the rich."

aral, to internet
@aral@mastodon.ar.al avatar

I mean, is it too early for yet another fucking I told you so? (Because, goodness, is it getting tiring.)

https://circumstances.run/@davidgerard/110303972798576262

aral,
@aral@mastodon.ar.al avatar

Reminds me of the time when The Next Web, an adtech company, asked me and some other folks to say “I told you so” about Facebook, another adtech company.¹

I said I‘d only do it if I could call them out at the same time. They agreed.

You know why?

Because the fuckers knew they’d still make money from the article… via adtech!

Bill Hicks said it best… (irony: YouTube link)

https://www.youtube.com/watch?v=tHEOGrkhDp0

¹ https://thenextweb.com/news/forced-9-privacy-experts-say-told-facebook-hopefully-well-listen-next-time

ramsey,
@ramsey@phpc.social avatar

@aral From what I’ve gathered through conversations in threads on Bluesky, they’re expecting that each instance will use their own methods for moderating content.

aral, to random
@aral@mastodon.ar.al avatar

I’ve gone from using the git command-line exclusively to almost exclusively using Sublime Merge.

I basically just keep it open on its own monitor as a real-time dashboard of all my changes. That, and the ease with which you can stage hunks and lines, has improved the quality of my commits and also gives me greater peace of mind.

(Downside: it’s a commercial app and Linux support exists but isn’t first class. e.g., doesn’t automatically respond to light/dark mode changes.)

aral,
@aral@mastodon.ar.al avatar

@frigidcode There’s a preference for flipping between light and dark mode but it doesn’t do so automatically. In fact, it’s the only proprietary app I use on my system and it’s the only one that doesn’t do this. 🤷‍♂️

doctore,

@aral I use it in similar way. I like the staging by hunk/line feature as well. It's much fast than via cmd (I know this hurts for cmd fanbois). Getting the overview over what has currently changed and what a selected amount of commits have changes is very nice as well. The commits, rebase and branching I still do via cmd though.

aral, to SmallWeb
@aral@mastodon.ar.al avatar

In case you’re wondering how little old Kitten performs in the tests of the Big Boys…

(And that’s from a development build of a Domain page, not a deployment build so no compression, live reload script in page, etc.)

Turns out it’s pretty easy to ace such tests when you’re not spending cycles and code doing horrible things to people in your web pages (like tracking their every move and attempting to exploit their behaviour for profit). 🤔

:kitten:💕

chrisg,
@chrisg@fosstodon.org avatar

@aral The amount of human effort and power consumption that goes into generating and mining "clickstreams" is astonishing.

This accumulation of "digital exhaust" is a huge waste of human creativity and material resources that does nothing except serve capitalists. It's a huge industry that were it excised from society everyone would benefit.

And i classify as bullshit job every single one in this racket.

Natanox,
@Natanox@chaos.social avatar

@aral People should explain sth. like Pi-Hole to others not just as adblocker and security measure, but also as speedbooster. All those unecessary requests bouncing even before your router can be a huge accelerator.

aral, to programming
@aral@mastodon.ar.al avatar

Want strong typing without a build process?

(Hint: you don’t need to use TypeScript.)

  1. Use a modern editor like Helix Editor or VSCodium that supports the TypeScript Language Server (LSP).

  2. Add this line to the top of your JavaScript file (without the backticks, if you see any):

// @ts-check  
  1. Go read up on JSDoc ;)

¹ https://helix-editor.com
² https://jsdoc.app/about-getting-started.html

Shini92,
@Shini92@mas.to avatar

@aral // @ts-check is really welcome and needed for files like eslint config or prettier config where you do not have other options like TS

So for example in we use it like this https://github.com/faker-js/faker/blob/ede6ffac383a853c12b7a47cebbb031ba80627aa/.eslintrc.js#LL1C1-L1C1 together with https://github.com/Shinigami92/eslint-define-config

orta,
@orta@webtoo.ls avatar

@aral ( FWIW, I'd recommend recommending the TypeScript JSDoc reference (as that is what is powering all the JSDoc editor tooling! ) https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html )

aral, (edited ) to random
@aral@mastodon.ar.al avatar

Trixie Mattel for president.

(Please and thank you.)

#gender #lgbtq #drag #trixieMattel #humanRights #transRightsAreHumanRights #christofascists

PayAttentionYo,

@aral

I watched this a few days ago. Here's the link.

https://youtu.be/gLA7f_ACso8

cozymel,
aral, to programming
@aral@mastodon.ar.al avatar

If you’re using HTML Validate (you should; it’s ace), update to 7.15.2. It no longer flags multiple buttons with the same name used in forms as a validation error (this is a valid pattern that lets you interpret a form differently on the server based on which button it was submitted with).

https://gitlab.com/html-validate/html-validate/-/issues/212

aral,
@aral@mastodon.ar.al avatar

PS. Kitten uses HTML Validate to show you validation issues with your pages as you develop.

:kitten:💕

https://codeberg.org/kitten/app

aral, to random
@aral@mastodon.ar.al avatar

Wood-eating clams use their feces to dominate their habitat

“It turns out, the super-chewer wood-eating clams had a secret weapon for forcing out other species. The clams, who have special adaptations that let them survive in dirty, low-oxygen water, built chimneys out of their own feces, making the wood a ‘crappy’ home for any animal except them.”


If billionaires were clams…

https://www.sciencedaily.com/releases/2022/12/221215191626.htm

laprice,
@laprice@mastodon.social avatar

@aral that brought up some very specific marine biology I witnessed growing up near an estuary and clamming for food.

It is a colony behavior not an individual one; a rotting cedar log being eaten away on all sides the bottom half ballasted by masses of clams about the size of a euro coin.

And harvesting is taking maybe a dozen dozens of shells. Per season. And they're a delicacy.

And the smell, indescribably rich and organic, salts, cedar oil fractions, seaweed and dead fish, life, decay.

aral,
@aral@mastodon.ar.al avatar

@ncrav Indeed :)

aral, to random
@aral@mastodon.ar.al avatar

I don’t believe I still have to explain to non-billionaires that billionaires don’t have their best interests at heart.

I mean, it explains a lot if this is still the point we’re stuck at.

michaelgraaf,

@aral "Socialism never took root in America because the poor see themselves not as an exploited proletariat, but as temporarily embarrassed millionaires." John Steinbeck

DigitalStefan,

@aral I think some people look to billionaires with the hope / expectation that the billionaire might do things that a non-billionaire would like to think they would do in that position.

i.e. act wonderfully altruistically, for the common good and especially for the good of common people.

Sadly, you don't often get to be a billionaire when you have personal qualities like that.

aral, to random
@aral@mastodon.ar.al avatar

A billionaire does things for many reasons. None of those are in your interests unless you also happen to be a billionaire.

The sooner you learn this, the sooner we can start doing something about it.

aral,
@aral@mastodon.ar.al avatar

Since a couple of you asked what’s the something we can start doing about billionaires, it’s simple:

Whatever you can to make them socially unacceptable. Make being a billionaire the equivalent of wearing fur.

Don’t feed them if you can help it (easier said than done). If you must feed them, make sure people know you’re not happy about it. If there are alternatives, fund, promote, and use them. But at the very least don’t praise and glorify them and stop giving them “the benefit of the doubt.”

havn,
@havn@writing.exchange avatar

@aral Good ideas.
And as it’s May 1st: Join a union!

aral, to random
@aral@mastodon.ar.al avatar

Anyone else getting swarms of email notifications today that Dependabot was enabled on their GitHub repositories?

autiomaa,
@autiomaa@mastodon.social avatar

@aral Not yet, but did get similar notification flood recently about another 3rd party SaaS tool (doing similar things as Dependabot). Many of those messages were automatically closed a few days later, likely because of complaints.

dnkrupinski,
@dnkrupinski@hannover.town avatar

@aral No.

aral, (edited ) to fediverse
@aral@mastodon.ar.al avatar

Which of these Twitter alternatives is not funded by the douchebag billionaire behind Twitter?

vibh,

@aral 🤣

post,

@aral

Some ideas from their protocols are interesting, namely servers being relays only (Nostr) and DNS domains as handles (BlueSky).

aral, to SmallWeb
@aral@mastodon.ar.al avatar

I can’t fucking wait to get Domain* out the door this year so folks (including me) can deploy Kitten** apps.

(Me deploying Kitten apps is trivial. But I won’t be deploying them until everyone can. And we won’t be hosting them until any organisation can. That’s how you decentralise. By building systems that don’t favour you. By decentring yourself first. Even though that’s a metric fuck-tonne harder to do.)

aral,
@aral@mastodon.ar.al avatar

@jmalone It did cross my mind ;)

farrisswisher,
@farrisswisher@rap.social avatar

@aral dope!

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