lingo.lol is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for linguists, philologists, and other lovers of languages.

Server stats:

66
active users

#scripting

0 posts0 participants0 posts today
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

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

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

Today I learned from the flock(1) man page (on Debian) that you can put this line at the top of a shell script to prevent more than one copy of it from ever running at a time:

[ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en "$0" "$0" "$@" || :

This is an extremely clever hack and I don't know how I've never stumbled upon it in 38 years of writing shell scripts.
#unix #linux #scripting #shellScripting

💡 Idea for a debugging script 💡

This might already exist for FreeBSD, and if so.. let me know!

- 1) keeps record of OS core/default settings: loader.conf, rc.conf, sysctl.conf, devfs.rules, login.conf etc
- 2) keeps record of file checksum on those OS core files (similar to the app, tripwire)
- 3) mode which shows divergence on current state vs known-default state in configs (1) and checksums (2)
-4) mode which tracks the files and their change-sets over time, similar to a zfs snapshot but at a single file-level

Here's a demo of the mp3 glitching script I wrote about here: reillyspitzfaden.com/posts/202

I added a batch script so I can take in a bunch of folders of .wav files, use ffmpeg to convert them to mp3 (and try out different bitrates), glitch them, re-encode those as .wav (easier to work with), and then clean up all the intermediate mp3s.

In less than 18 hours, including a solid 12 hours (at least) of downtime, I have gone from concept to 90% functional prototype of a creative rPi project, thanks to aus.social allowing quick and easy downloads, jq, an obscure CUPS driver project, and an intimate knowledge of scripting.

Feeling very accomplished.

I added some more cool things to my grimoire! reillyspitzfaden.com/code/#gri

I have interactions on Mastodon/Bluesky coming in as webmentions, and that's nice, but other sources get lost in the shuffle, so I have a script here (github.com/reillypascal/person) that filters out all the ones where "wm-source" contains "brid.gy/," which is super helpful.

reillyspitzfaden.comReilly Spitzfaden, Composer | Code

Кажется, я ебанулся и ввязался в достаточно титаническую работу над очередным выпуском @sporadic_podcast, который будет интересен полутора инвалидам кроме меня.

В этот раз это - сценарная работа, а не диалоговый жанр. Рассказчиком буду выступать только я. Это делает задачу сложнее по всем фронтам.

Но мне это интересно и поэтому я надеюсь, что смогу закончить этот эпизод.

Из интересного - я хочу сделать из этого очередной мини-коллаб чтобы вы могли услышать знакомые по федивёрсу голоса и улыбнуться.

Ну и да, это должно быть этакое эссе на тему, которая практически гарантированно никому не приходила в голову.

Friends, I find myself attempting to copy a BOATLOAD of Microsoft OneDrive files from one user to another... I really don't want to download then upload all these darn files.

I was hoping there'd be some kind of elegant #PowerShell script I could leverage, but I've only found 1 thing that is even remotely close - grumpy.tech/uploading-migratin.

Does anybody know an easy way to copy or move files DIRECTLY between 2 OneDrive users?

Thanks...