Show newer

@dragon social.pixie.town/@starless/10

it's a little python script that prints out a pseudo-random tarot card (no fancy seeds or anything) and a little interpreted meaning on a receipt printer. I just updated it to work on a bluetooth cat printer off ali express ($20 if you've got cash to burn).

@dragon lol no worries. I was just like "Wow, they must be talking about my little cat tarot printer project. Okay, okay, this is weird, but maybe not that surprising for mastodon."

Silly me. :P

@dragon I think decreasing variable re-use is why most style guides I've used prefer local definitions over defs at the top of the function.

I think most compilers optimize lines like
for(int x = 0; x<3; x++)
{
int i = x +i
print(i)
}
such that i isn't actually re-allocated each time, but like, yeah, most places I've seen would have you define int i right before the loop, but not at the top of the function, and ideally, if i isn't used elsewhere, to wrap the whole thing in something for scope management. That loop does look a bit wasteful.

The little overview of what's to come is neat, though, I totally agree there.

@dragon Not to, like make this a paragraph, but I think I prefer the opposite.

The main benefit of defining your variables later is that they're closer to the context in which they're used/relevant.

It's a bit of a balance between "is my code interesting/hard to understand because of the logic it's driving, or is my code interesting because of the computer things it's accomplishing?"

If it's the latter, I could see having the memory all allocated at the same time as being real helpful, but if it's the former, it can help with local readability. I prefer to work on things that are logically interesting, but computationally boring, so my preferences might make some sense here.

To each is their own, tho. :)

@dragon I feel like I'm getting a code review via toot! :P

I mostly tend to focus on the end goal so much that I find I get bored with even the most minor complexity introductions until the whole thing 'works' end-to-end... But I might just be, like, some kind of barbarian dev here.

starless boosted

how to gremlin
1) identify computer about to go to ewaste
2) :wide_s: :wide_n: :wide_a: :wide_t: :wide_c: :wide_h:
3) run linux on it

ph - 

@socketwench <3 Anything local internet strangers can do to help?

starless boosted

born too late to explore the seas,

too early to explore the stars,

but at least a machine washes my dirty dishes

starless boosted

Reasonable Colors is an open-source colour system for making accessible colour palettes.

It uses an intuitive system of shades to help you select colours which meet the appropriate WCAG contrast rating, even if you're mixing and matching base colours:

reasonable.work/colors/

#opensource #design #ui #uidesign #color #colour #accessibility

Hi uh, catarot is up and working, I guess. If you're into wireless receipt printers that look like cats printing out tarot readings.

git.cyberia.club/starless/cata

I haven't done much doc work for it, and likely won't. The original branch is github.com/rbaron/catprinter.

starless boosted

A common piece of advice about visual descriptions is to do them like you're describing for a friend on the phone with you. Well, by the time you've gone through the color of someone's hair, sweater, pants, and counted the number of their eyelashes, your poor friend has gone to sleep or hung up! Come on, is that what REALLY gives you the feels about someone you're looking at? How about the fact that they're wearing a torn shirt that reads "fuck the cops, and not in a fun way?" That they smell like the ocean and flowers? That they LOOK like they'd smell like the ocean and flowers, and fuck if you know what you mean by that but it's true in that moment so live with it? You'll make your friend laugh at your ridiculousness and love you all that more for the goof you are (or block your number, idk), isn't that so much more fun than blue sweaters and green pants?

Show thread
starless boosted

Life update, work, mildly stressful things but fine 

New job and partner things are taking up a lot of brain space, so I haven't been on as much.

New job is going well. I just had the healthiest, most lively pr the other day and it really underscored how unhelpful the feedback I got at my last place was.

Partner is moving out from an unhealthy living situation this week and has a pretty major surgery next week. I'm helping out.

I'm stressed but okay. Things should settle a bit soon.

@lyncia if it's helpful, you might consider making a 'comfy only' ghost account instead where you follow favorite artists, cute animal pictures, etc, and can go to that when you just want to scroll until you get enough dopamine to move on with your life.

starless boosted

I think the most important thing I can say is:
If there are kids/teens close in your life that might be Having Gender Feelings, or have expressed that they're trans -- acceptance is good but not remotely enough. Don't just be 'cool' about it. You need to be actively loving and supportive. Because they are trying so so hard, and being met with casual acceptance may be less than they need even if they don't know it. They are dealing with grief, and fear, and confusion, and new joy, and so, so vulnerable. Talk about that with them.

Show thread
starless boosted

as someone born w/o the organs that produce primary sex hormones, I continue to be aghast that you’re not allowed to stock up on the stuff that, y’know, *lets you continue to have bones*

you’re just expected to continuously pay doctors for the right to be okay for a few months

starless boosted

the Vibes Difference between having christmas lights strung up around your workspace and having Gamer LEDs on things

Vegetarian, non vegan food 

I put hoisin sauce on my egg and peppers hash this morning. It was a good idea.

starless boosted

The Unicorn Express is a (U.S-based) community-supported effort established in response to the widespread banning of books that are written by LGBTQ+ authors, feature LGBTQ+ storylines, and/or discuss gender and sexuality. The Unicorn Express sends free LGBTQ+ titles by mail to LGBTQ+ youth living in states and/or districts where bans have been put in place.

Use the links below to request books or support our efforts.
xo, the unicorns

docs.google.com/document/d/1sc

Food, gifts, children/babies, weird 

For the holidays a friend of mine was given a bag of tiny plastic babies. This bag of babies has now drifted amongst the bachelors for the last few months.

Today, they're discussing making pastries together and it took me a little while to realize that they're optimizing baked good recipes for hiding plastic babies in.

I love my friends.

Show older
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.