kubikpixel, to web
@kubikpixel@chaos.social avatar
btaroli, to ADHD
@btaroli@federate.social avatar

Both excited and stressed about an this week. Kind of an irony alert given I’m excited to participate but also stressed at all the preparation. So much focus on getting it “right.”

I have to admit I prefer a format that just lets participants speak on a subject freehand and take questions after. Too much stresses me out.

jaandrle, (edited ) to programming
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.0 :nodejs:
Easy cross-platform “one–file” scripting using JavaScript.

You can use it as:

Gradually replenished thread 👇

jaandrle, (edited )
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.0 :nodejs:

…provides quick way to build cli with tab-completion support.

jaandrle,
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.0 :nodejs:

…use in terminal for example for analyze JSONs

jaandrle,
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.1 :nodejs:

just small fixes in docs and tldr functionality

jaandrle,
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.1 :nodejs:

quick evaluate JS in terminal, examining JSON (files), …

jaandrle,
@jaandrle@fosstodon.org avatar

🎉 nodejsscript@v1.0.1 :nodejs:

use CSS-like syntax for styling your outputs → simple loading/spin animation

5am, to LLMs
@5am@fosstodon.org avatar

I've been playing around with locally hosted using the tool. I've mostly been using models like mistral and dolphin-coder for assistance with textual ideas and issues. More recently I've been using the llava visual model via some simple , looping through images and creating description files. I can then grep those files for key words and note the associated filenames. Powerful stuff!

jhilden, to photoshop
@jhilden@vis.social avatar

Learned today about the VSCode integration for Adobe scripting.

It is actually pretty nifty, and better than the sunsetted ExtendScript toolkit that I always found to be fairly terrible.

Still missing Scriptographer though!

https://extendscript.docsforadobe.dev/vscode-debugger/getting-started-with-vscode-debugger.html#getting-started-with-vscode-debugger

jaandrle, to programming
@jaandrle@fosstodon.org avatar

Almost there, just final testing and adjustments.
And 🎉 nodejsscript@v1.0.0 🕊️ ready to go out into the world.

You can already browse the new documentation, tutorials and demos
https://github.com/jaandrle/nodejsscript/tree/dev-v1

Changes since version 0.9.x see PR
https://github.com/jaandrle/nodejsscript/pull/32

firusvg, to languagelearning
@firusvg@mastodon.social avatar

Well, I suppose that was just a matter of time?! 🤨

Finally, a #scripting #language for #ChatGPT (AImarkdown Script) https://dev.to/aimarkdown/finally-a-scripting-language-for-chatgpt-aimarkdown-script-4mjh #LLM #AI

wick3dr0se, to linux
@wick3dr0se@fosstodon.org avatar

I wrote a matrix digital rain implementation in under 50 lines of pure Bash.. I chose Bash due to it being widely installed and extremely portable. With modern systems this shouldn't cause any noticable performance changes and seems more than efficent so far

Looking for feedback, contributions or whatever helps 😆. If it interest you at all, let me know what you think about it!

https://github.com/wick3dr0se/matrix

Matrix digital rain

metin, to retrocomputing
@metin@graphics.social avatar
metin, (edited ) to retrocomputing
@metin@graphics.social avatar

When I was a young Commodore-era game developer, C (without the ++ or # back then) was for wimps, and hardcore coders used Assembly, ditching the OS to have maximum available hardware resources. 👴

#C

bram, to linux
@bram@gamedev.lgbt avatar

im trying to record a terminal session, but just the input so i can easily turn it into a shell script.

i've seen the script command already, but the output always seems to be some jangled mess rather than useful output :(

anyone got some pointers?

metin, (edited ) to linux
@metin@graphics.social avatar

When you discover an interesting tool, and it turns out there's no executable GUI, but to get it running you need to pip a git, hub a stub, sudo a judo, brew a stew, python a cobra and unix a linux… 🤡

czottmann, (edited ) to macos
@czottmann@norden.social avatar

A little Friday evening @KeyboardMaestro shell tip for you:

Did you know that ’s nice UI components are pretty rad for shell scripting? For example, I really like its "Prompt With List” component, and setting it up a macro together with a "Return Value" block it's ready for general use in the shell of your choice. (See macro screenshot.)

Calling the macro with keyboardmaestro, I can pipe in stdin, and receive the selection via stdout. (See example GIF.)

5am, to python
@5am@fosstodon.org avatar

Just when I thought I couldn't go wrong with some simple print() lines, I find my script flushes them when exiting, defeating the purpose of their placement in the script. Now I need to get a grasp of how to appropriately flush. Every day's a school day... #python #coding #scripting

a66ey, to KISS
@a66ey@mastodon.social avatar

It's , it's , it's !

Does anyone else backtick your own scripts? That's what I meant back during 23 when I was talking with some ppl about quick prototyping before rewriting standalone scripts into more robust things.

But hey, can :D

Also, don't mind me, i'm just slowly waking up from 20 yrs long coma. Ok, just hormone induced continuous stress disorder, but it kind of feels like I'm 12 again and full of curiosity.

mjgardner,

@a66ey Do you mean writing prototype with commands in backticks, and then replacing it bit by bit with actual Perl language syntax?

That’s perfectly valid! Especially if you’re more used to shell but you’re trying to bootstrap up.

This week I found out about Tim Maher’s 2006 book “Minimal Perl for and People.” It sounds like it might be very helpful: https://www.manning.com/books/minimal-perl

Please keep us posted on your progress!

nono2357, to machinelearning
nebyoolae, to Bash
@nebyoolae@masto.neb.host avatar
sfwrtr, to business
@sfwrtr@eldritch.cafe avatar

Got down to stuff, now that I'm retired and can devote time to the of . First order of business: catalog the unsold novels from after the burn out that need revision and rewrites.

Turns out that disconnecting my Mac from my work VPN messed up my folders. I had somehow mapped (don't know the Mac term) my work Windows computer folders to the Mac, and when I look in documents it tries to find it on the network and fails. If I reboot, so long as I go directly from my user's directory to documents directory, I'm good. If I click on Documents in Finder, it redirects and I'm screwed.

First thing I did was copy all my writing folders to the desktop. At least I've lost none of my old novels and short work.

I thought there were 7 completed books, and I said so online. There are actually 9, three that form a trilogy and one novel with a sequel in the mix. There are two incomplete novels.

Some works are older than others. Pages refuses to open one novel from 1996, a fun space opera that possibly has the highest chance of early sales. I haven't tried the others. Now I gotta install Word, of which I am not a fan, and investigate programs that'll open the really old files. If anyone wants to chime in with suggestions, please do! (I can always find someone with a Windows machine if need be.) Putting Google on TODO. I actually have original copies of chapters from my Apple ] days, but thankfully I updated those to the Mac and to a new millennium version of Word in what were my PowerPC days.

Incidentally, there really are three novellas in good shape.What surprises me though? There looks like about 15 short stories, many complete because I see multiple submissions in the various folders. I completely forgot about these, and was sure I never wrote short-form.

Baby steps, I guess.

[

sfwrtr, (edited )
@sfwrtr@eldritch.cafe avatar

Unsupported ancient old word processor formats were a real issue. Fortunately, , and their adventurous programmers, solved this for me. I thank them.

@taur10

Pages files like DOCX are just a container, though Apple was a bit trickier...

RS replies with mild sarcasm to the word "trickier":

You wanna /read/ a file outside of Pages or from another Mac program? provides an open method for that: It's called : https://forums.macrumors.com/threads/script-to-convert-apple-pages-files-to-word-pages.2268488/

Outside of the Mac, you're stuck digging through a zip file with pictures, text, and... stuff..

Apple's thing is to ensure for the vast majority of their users that their software works all the time, every time. As a ex-programmer, I respect that. If that means controlling file integrity by being the only /writer/ of the file format, so be it. Keeping the format secret is a way to achieve that, which sadly means you can't write a program to read it. You REALLY don't want to debug what turns out to be a crap programmer's mistakes. Most users are as interested in the power user stuff we're interested in as they are in learning how to change the oil on their car.

cc: @jredlund @stevendbrewer

nedbat, to python
@nedbat@hachyderm.io avatar

A common question: what's the difference between a script and a program?

  • A program is something you've put some thought into.
  • A script is something you didn't think you had to put any thought into.
mjgardner, (edited )

@nedbat Every “script” is a “real program” that’s looked down upon by its self-deprecating author or its snobby viewers as unworthy of a higher standard of care. Both fail to recognize that if it’s load-bearing, it’s worthy.

/cc @davidgerard

fosslife, to linux
@fosslife@fosstodon.org avatar

Getting started with Linux? Sandra Henry-Stocker shares Linux command-line basics to help https://www.fosslife.org/linux-command-line-basics

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