aral, to javascript
@aral@mastodon.ar.al avatar
dave, to Excel
@dave@autisticnomad.social avatar

I built (and, more importantly, released!) a thing!

It's very early stages but it's actually functional.

It's a Vue.js plugin for building Excel Add-ins. Such broad appeal, I know.

https://github.com/demsullivan/vue-excel

This project is actually a byproduct of another big thing I'm working on.

Currently, I use YNAB for budgeting, but I've been putting sustained effort into getting my data out of the cloud and self-hosting everything.

I started researching options for budgeting software, and I really couldn't find anything I liked or that felt like it had enough features.

I decided, then, to just whip up something in Excel... which led me to the discovery of Office.js and the ability to build Add-ins for Excel using web tech.

Thus, vue-excel was born.

I may eventually release my budgeting tool for Excel, when it's feeling a little more mature and stable. Stay tuned... ❤️

toxi, to typescript
@toxi@mastodon.thi.ng avatar

Still only on a feature branch, but over the past few days I've been working on updating https://thi.ng/geom to add support for polygons with holes and paths with holes (or more generally support for sub-paths, e.g. multiple curves). Since both of these shape types are containers of multiple geometries and therefore require in some situations (e.g. shape conversions) different handling than the other shapes with a single boundary/geometry, adding support for these also includes updating a dozen or so polymorphic shape operators/functions and unfortunately will involve a few of breaking changes. For instance, some of these functions are returning an array of shapes now, instead of just a single one. Also related, some of the other geom support packages (e.g. https://thi.ng/geom-axidraw, https://thi.ng/geom-sdf) will have to be refactored more and partially have been already (likely only internally, though)...

As part of this work, I've also just added example (!!!) to demonstrate & test out some of this new functionality:

Demo:
https://demo.thi.ng/umbrella/geom-complex-poly/

Source:
https://github.com/thi-ng/umbrella/blob/feature/geom-complex-paths/examples/geom-complex-poly/src/index.ts

Commits:
https://github.com/thi-ng/umbrella/compare/feature/geom-complex-paths

I will of course send another update once this all has been merged & released...

dannotdaniel, to javascript
@dannotdaniel@mastodon.social avatar

i hate computers

Ciantic, to javascript
@Ciantic@twit.social avatar

This probably doesn't matter for most, but interesting anyway:

"To complete an operation like const [a, b] = function_that_returns_an_array(), JavaScript constructs an iterator that iterates through the array instead of directly indexing from the array, which is slower. "

https://www.figma.com/blog/figmas-journey-to-typescript-compiling-away-our-custom-programming-language/

rauschma, to javascript
@rauschma@fosstodon.org avatar

—I’m still a big fan of server-sent events (SSE): They provide a very simple API for sending messages from server to client. That means you often don’t need a library:
– Messages from client to server: use HTTP(S) requests (REST).
– Messages from server to client: SSE

Quick howto: https://gist.github.com/rauschma/5ac9c3b8ed708f244ad1f3ef6e6721cb

davidbisset, to webdev
@davidbisset@phpc.social avatar

Starting work on someone's legacy codebase realizing with TERROR it's not built with the framework you expected.

taoeffect, (edited ) to programming
@taoeffect@mstdn.io avatar

Mastodon and BlueSky users get to hear this first:

SBP v2.4.0 just released and adds support for the star selector!

This feature supports intercepting undefined selectors on a given domain.

Incredibly powerful and useful for implementing transparent RPC APIs with SBP!

https://github.com/okTurtles/sbp-js

stvfrnzl, to Astro
@stvfrnzl@mastodon.online avatar

Inspired by @matthiasott great newsletter: has anyone experience implementing with @astro?

Here's his article: https://buttondown.email/ownyourweb/archive/issue-14/

And here's what I found but couldn't test yet: https://kld.dev/adding-webmentions/

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

Assign properties in a constructor’s parameter object (with defaults) to object being instantiated in JavaScript

https://codeberg.org/aral/gists/src/branch/main/assign-properties-in-a-constructors-parameter-object-with-defaults-to-object-being-instantiated-in-JavaScript.md

This is a little something I ended up playing around with this morning before figuring out how to do it (after spending far too much time down a rabbit hole with object destructuring when what I really needed was creative use of the spread operator).

(Useful for custom objects in JSDB 5 – https://codeberg.org/small-tech/jsdb#custom-data-types)

herndlm, to javascript
@herndlm@phpc.social avatar

dependency management is the reason for my ever increasing amount of grey hair.

I'm somebody who keeps their dependencies updated on a very regular basis, but still end up in those rabbit holes where update x needs y updated which needs z migrated to gamma because alpha was replaced with the now outdated beta because the community doesn't think it's cool anymore. or so.

nebyoolae, to random
@nebyoolae@masto.neb.host avatar

I created my first node module, it's publicly available, and it's usefulness is low. Regardless, here it is: https://www.npmjs.com/package/node-neb-muz.

What does it need to run? The Entire Jar of Sauce.

https://music.nebyoolae.com/song/the-entire-jar-of-sauce

casraf, to typescript
@casraf@fosstodon.org avatar
leanpub, to programming
@leanpub@mastodon.social avatar

P4NR - IoT Programmer https://leanpub.com/b/p4nr-iotprogrammer by Klaus Landsdorf (Iniationware, P4NR), Joel Krec, and Maryam Jalil is the featured bundle on the Leanpub homepage! https://leanpub.com

ratatui_rs, to rust
@ratatui_rs@fosstodon.org avatar
hschmale, to generativeAI
@hschmale@mastodon.sdf.org avatar

Has anyone put any thought into how to protect your personal blog from the generative ai scrapers? I've already blocked openai in robots.txt, but it seems like more and more small #generativeAI providers are popping up who don't honor these requests?

Maybe a noise filters artists are using with invisible characters but then again how do I make sure Google bot can see my posts? I don't care about humans using my work but I take issue with machines

#blogging #copyright #copyleft #artificial

hschmale,
@hschmale@mastodon.sdf.org avatar

But it's a struggle to come up with a solution. Everything I can think of hurts accessibility of my content. Invisible characters could break screen readers. Dynamic #javascript or decrypt my content is bad, and isn't really that strong, so I'm at a loss.

daniel_js_craft, to generativeAI
@daniel_js_craft@mastodon.social avatar

Fun fact about the Langchain's logo. The parrot and a chain link were inspired by people calling LLMs stochastic parrots. Models mimic human writing but don't really understand what they're saying.
serves to "chain" the "parrots" together 😃

nhoizey, to react French
@nhoizey@mamot.fr avatar

“React, Solid, htmx” by Bobae Kang

🔗 https://bobaekang.com/blog/react-solid-htmx/

> [HTMX] can get you 80% there with radically less complexity. No extra dependencies, no build step, no advanced tooling (now re-written in Rust!), no complicated state management, no “double data” problem, no hydration mismatch… Just write your HTTP server and return HTML!

⚓️ https://nicolas-hoizey.com/links/2024/04/17/react-solid-htmx/

cory, to webdev
@cory@social.lol avatar
davidbisset, to javascript
@davidbisset@phpc.social avatar
snorpey, to maps
@snorpey@mastodon.social avatar

I just published a new blog post:

how to create interactive, self-hosted widgets using @protomaps and @maplibre

https://snorpey.codes/en/articles/selfhosted-openstreetmaps-widgets-with-protomaps

cedx, to javascript French
@cedx@mastodon.social avatar

At work, we're slowly migrating from TS to JS + JSDoc. In the end, it's just as well.

Coworker: "But we loose type safety!"

Me: "Wrong. We still use the TS compiler to analyze the code. We've just eliminated the code compilation stage."

Coworker: "But JSDoc is more verbose than TS!"

The tracking.ts file: 436 lines.
The equivalent tracking.js file: 322 lines.

sonny, to GNOME
@sonny@floss.social avatar

Workbench 46.1 is out!

https://flathub.org/apps/re.sonny.Workbench

Happy International Workers' Day

See what's new and details at https://blog.sonny.re/workbench-46-1

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

JSDB 5.0.0 published 🎉

• Custom classes must have a constructor that accepts a parameter object as its only argument. Constructors are run during deserialisation.

• Custom classes can now safely extend other classes (e.g., EventEmitter).

• Properties that begin with an underscore (_) are treated as private and ignored.

• Objects with null prototypes are supported. i.e., objects created with Object.create(null, …).

Full details: https://codeberg.org/small-tech/jsdb#migrating-from-earlier-versions-of-jsdf

#JSDB #NodeJS #database

aral,
@aral@mastodon.ar.al avatar

JSDB 5.0.1 published 🎉

• Fixes #14: Crash if DataProxy getHandler() called on object with null prototype. (https://codeberg.org/small-tech/jsdb/issues/14)

To install update:

npm install @small/jsdb@5.0.1

Learn more about JSDB:

https://codeberg.org/small-tech/jsdb#javascript-database-jsdb

#JavaScriptDatabase #JavaScript #database JSDB #JSDB5 #NodeJS #SmallTech #SmallWeb #web #dev

aral,
@aral@mastodon.ar.al avatar

JSDB 5.1.0 published¹ 🎉

• Forgetting to pass a custom class that’s persisted in your database in your JSDB.open() call now throws instead of corrupting your database by falling back to using an untyped object.

• Added JSDF ver. 2 to 3 database migration script (i.e., JSDB version 2-4 to 5)²

To install update:

npm install @small/jsdb@5.1.0

¹ https://codeberg.org/small-tech/jsdb/releases

² https://codeberg.org/small-tech/jsdb#version-2-to-3

JSDB

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