eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

192
active users

#scripting

0 posts0 participants0 posts today
Replied in thread

@jamesbritt oh, neat! did you finish it or did it just become a gist? i've written, upon request, lots of section / pattern sequencer things, and also, this low-level one:

i've been so busy with EQ30 (a mutilated 4xEQ10 with Canvas) and Groovebox8120 updates that i haven't gotten around to also putting in BPM & LPB print but i really should stop just thinking about it and do it quickly since it takes zero effort, I've got all the pieces already. #renoise #paketti #lua #scripting

Ich wollte mal schauen, wo bei mir in der Nähe Jellycat Stores sind (Jellycat stellt ganz süße Kuscheltiere her). Zum Glück gibt es auf deren Website ein Store-Finder, leider jedoch werden diese nur via Suche und Google Maps abgezeigt und sind nicht via Mausklick exportierbar.
Aber: Es gibt eine versteckte JSON-Datei mit den Standorten und die kann man dann zu eimer GPX-Datei umwandeln:

codeberg.org/api/packages/mark
codeberg.org/mark22k/jellycat-

How would you solve the following use case when #bash #scripting ?

Given a text file and need to insert a line somewhere specific.
Extra challenging: Assume some lines are identical.

This might be worth sharing with @b0rk 's audience.

I'll share a solution I just used at work in the first comment; worth adding to ones #cheatsheet!

Continued thread

🧵 In the early 2000s, I wrote a script for 3ds Max to automate tasks of the V-Ray renderer. Very imaginatively, I named it The V-Ray Automator. 😁

It was covered as one of the 100 best MaxScripts in the French Pixel magazine. 😊

#3dsMax#3D#script

Hey, Braintrust, I have a scripting question:

We have a number of Excel spreadsheets we post on a recurring basis, and we've managed to automate some of the accessibility functions, like formatting tables & whatnot. We're currently using R sitting on top of SQL queries to generate these spreadsheets. But we haven't figured out how to automate adding alt text, & I'm wondering if anybody else has had occasion to do something like this?

Weekend goal: a #Lua chunk (script) to help sighted users review #Braille. It's a great way to understand how visually impaired users interact with a computer using a screen reader and a Braille display. The script is simple and easy to configure. Currently, it offers a learning mode; in the future, a challenge mode will be added, along with a blog post explaining how to set it up.

Link: gitlab.com/-/snippets/4858299

On #FreeBSD it should be executable via flua:
% flua learnbraille.lua

after installing liblouis:
# pkg install liblouis

[edit] % /usr/libexec/flua learnbraille.lua

The more #sh scripting I do, the more I love it and wondering why I didn't learn it earlier. So for #wakegp now I have done this to have 256 runs for different values of deletion_mutation_rate and deletions_per_mutation:

➜  runs5 git:(main) for i in {0..255}; do 
for> for size in nanod minid microd halfd thirdd majord; do
for for> for r in 1 2 4 8 16; do
for for for> w_run p4_"$size"_"$r" $i;
for for for> done
for for> done
for> done

w_run itself is a function I defined in my .zshrc

But of course, the syntax is hard. And it's not as easy to learn as something like Python. I wonder if #unixlike operating systems such as #Linux and #BSD would consider quitting the current sh in favor of something new designed from scratch.

Last time I remember, in the list of projects #NLnet had founded, there was a niche new shell invented for unix like systems. I'm gonna check it out. Also #OpenBSD people have something for themselves.

#FreeBSD#tech#geek

New Kitten Release 🥳

kitten.small-web.org

(Run `kitten update` to update your dev machines. Production machines will automatically update in a couple of hours.)

• You can now add a generic script block to your markdown pages (see mastodon.ar.al/@aral/114432417)

• Markdown pages can now be `KittenPage` instances and attach `KittenComponent` instances (so you get a full server-side component hierarchy with an event-based workflow; ideal for authenticated pages where you can be use only the author of the page will be accessing them and thus the additional memory and processing overhead are not issues. Isn’t the Small Web great? Only having instances of one makes it possible to optimise so many things for the human experience instead of vertical scale of the data farming machine.)

• Two new examples showcase the new features: codeberg.org/kitten/app/src/br and codeberg.org/kitten/app/src/br

• Attributes with object values are no longer serialised into the DOM (but your components’ render functions will continue to receive them, of course.) This is because only string values make sense for attributes in the context of the HTML DOM. (You can still, of course, have stringified representations of objects in attributes, as used by the `data` attribute to pass data from nodes to event handers on the server.)

kitten.small-web.orgKitten: Home