rjbs, to random
@rjbs@social.semiotic.systems avatar

I'm not sure it's ever a great idea to make your GUI application look totally different to the rest of the OS you're working in. Looking at you, Slack.

mjgardner, (edited )
@mjgardner@social.sdf.org avatar

@rjbs Because it’s just the web app wrapped in an ( + ) rectangle so it can live outside your browser, so the folks can have a single code base.

It’s the old desktop write-once-run-anywhere https://en.wikipedia.org/wiki/Write_once%2C_run_anywhere dream/nightmare come to fruition, where ignore customer preferences because it’s easier to ship a lowest-common-denominator experience.

NanoSector, to random
@NanoSector@nanosector.nl avatar

Morning, how is everyone doing?

melroy,
@melroy@mastodon.melroy.org avatar

@NanoSector Yea.. I used it quite a lot, but trust me, it should be forbidden...

JS is too dangerous throwing errors at will and even with TS the types are unsound and more a guideline, because at runtime everything can happen, incl. undefined! Crashing the server/app!

I regret JS/TS backend services. Here, I said it.

caolan, to node
@caolan@hachyderm.io avatar

I think 's attempt at a standard library is perhaps the most interesting part of the project.

caolan,
@caolan@hachyderm.io avatar

Whatever happens between , , and , I hope this standard library effort survives. Porting it too early might introduce too many cooks and spoil the broth, however, so let's give it time to mature.

sophie, to programming

I hate . Who in their right mind would compile a hard coded list of trusted root CAs into their software‽ Well, nodejs is who. See https://github.com/nodejs/node/issues/4175.
Of course there is the NODE_EXTRA_CA_CERTS env var which I can set to a path of additional root CAs to use. I'd have to do that for every process I need though. So surely there's a similar option to just use the system CAs? No, of course not. There's a compile time configuration option to disable the built in CA store: https://github.com/nodejs/node/blob/e329a11515c40e890920fc81f735edd4725b882e/configure.py#L229

TL;DR: I'm compiling nodejs right now. At least lets me easily add that configuration flag. Maybe time for a PR to enable it by default?

sophie,

I've opened a PR to nixpkgs now to hopefully fix this for everyone: https://github.com/NixOS/nixpkgs/pull/257513

nullagent, to random

Ever see something in your javascript bundler that just shakes you to your core?

nullagent,

I've been using parcel about a year or two now and it's feeling right about time to go back to webpack 😭

Maybe there's a new hotness out there that I don't know about?

But like, I want to build libraries for frontend and backend, oh and also want WASM bundling support. All I know is, that's definitly not parcel2 :/

xeophin, to random
@xeophin@vis.social avatar

That moment when you're about to finish your script and then realise that the Shapefile-to-GeoJSON converter you use fucks up your data. 😬

xeophin,
@xeophin@vis.social avatar

Just in case I have your attention: what do the cool kids use these days for the to conversion within a script?

dada, to random French
@dada@diaspodon.fr avatar

J'ai envie de passer l'instance en 4.2.0.

Ça va couper, revenir, couper et revenir.

C'est normal.

dada,
@dada@diaspodon.fr avatar

Si vous utilisez Debian Bookworm, sachez que Nodejs 18 n'est pas supporté, sauf magouille. Faut downgrader.

Cf https://github.com/mastodon/mastodon/issues/26541

jaandrle, to CSS
@jaandrle@fosstodon.org avatar

css-in-console@v2.0.0 – style terminal outputs using a CSS-like syntax.

News:
📝🚀 hopefully much better README.md/docs
➕ some CSS at-rules: @import, @media and @counter-style
🚀 ::before/::after
➕ counters related CSS rules ( display: list-item, …)

jaandrle,
@jaandrle@fosstodon.org avatar

…using counter and (for example) https://www.npmjs.com/package/log-update-async-hook you can create a quick spinner:

import logUpdate from "log-update-async-hook";  
import { format, style } from "css-in-console";

const css= style`  
 .spin{ display: list-item; list-style: --terminal-spin; }  
`;  
setInterval(logUpdate.bind(null, format("%cUpdating…", css.spin)), 80)  

ajaxStardust, to RegEx
@ajaxStardust@vivaldi.net avatar

I was going through some HTML markup/ content where my <h1>,<hx> tags have no anchors/ ID's. pain in the butt to do that manually if i want anchors, It occurred to me: why don't I just process the markup and use the &;h1&; (..contents ...) &;/h1&;
but the (...contents...) atom needs filtering. E.g. "this just in", maybe I want "this_just_in"

That's not really possible w/ is it?

Maybe this is something can do? Im not super fmlr w/ all gnutils

mjgardner,
@mjgardner@social.sdf.org avatar

@ajaxStardust It wasn’t a cinch. I don’t work with daily and I’ve never used ’ JS version. And the last time I wrote anything for in anger was 2019.

sxa, to random
@sxa@fosstodon.org avatar

The @PINE64 is real and in my hands! Nice keyboard case with touchpad too. Hope I can get some time to play with it properly so it isn't just a door stop, although it came with a kennel installed on it which is more than I had expected 😁

image/jpeg
image/jpeg
image/jpeg

sxa,
@sxa@fosstodon.org avatar

So the @PINE64 now has a fundamentally functional - with some caveats - usable desktop boot image. Touch screen and WiFi are good. Git and Firefox work. And here's a photo of it running Node.js v20.5.1 and an early access build of 21 😁😍
Credit to @Fishwaldo for getting this KDE Plasma image available!
https://wiki.pine64.org/wiki/PineTab-V

voxpelli, to programming
@voxpelli@mastodon.social avatar

Started using node:test in some of my projects but was missing the reporter style that I'm used to from Mocha, so I decided to fix that: https://github.com/voxpelli/node-test-pretty-reporter

voxpelli,
@voxpelli@mastodon.social avatar

And reported an unexpected behaviour that I'm seeing in / in regards to : https://github.com/nodejs/node/issues/48900

nosherwan, to programming
@nosherwan@fosstodon.org avatar

:nodejs: 🥟
A realistic approach to the Bun vs Node.js comparison hype.

https://youtu.be/EVMMoDWN79E?si=UlnURElpkU6Nd9bB



AstraKernel, to node

🪲NPM Package Masquerading as Email Validator Contains C2 and Sophisticated Data Exfiltration

https://blog.phylum.io/npm-emails-validator-package-malware/

#npm #javascript #typescript #infosec #nodejs

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

Just released JavaScript Database (JSDB)¹ version 3.0.3

This is a bug fix patch that fixes options defaults not being applied when an options object is passed to the JSDB and JSTable constructors².

¹ JSDB is a zero-dependency, transparent, in-memory, streaming write-on-update JavaScript database for the Small Web that persists to a JavaScript transaction log (https://codeberg.org/small-tech/jsdb)

² https://codeberg.org/small-tech/jsdb/issues/6

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

After some log debugging, I realized my instance was not using the, uh, newest and so upgrading from 4.1.2->4.1.[4|5] was having issues. Being able to have multiple versions of the same system language installed at the same time can be confusing, even to someone who has used computers for decades. Sigh.

That being said, I am now on 4.1.5 and feeling, uh, more secure, or something.

nurkiewicz, to mastodon
@nurkiewicz@fosstodon.org avatar

doesn't have full text-search, so I built my own. Actually just a pet project to learn , and glue everything together with and . Data is ingested in real-time via . Visualization and search through . I'll publish the source code over the weekend

cjerrington, to programming
@cjerrington@mstdn.social avatar

Last night I had issues Installing NodeJS on Fedora 38. I used a simple setup script from nodesource before, but that didn't work this time.

Decided to write out how I was able to get installed on my laptop again the right way, so I could make this post.

https://claytonerrington.com/blog/installing-nodejs-on-fedora

43
on with

flameeyes, to programming
@flameeyes@mastodon.social avatar

Okay I'm open to suggestions on whether there is a more obvious way to do this than the horrible idea I have in mind.

I now have a repository (https://github.com/Flameeyes/matomo-link-tagger) that uses to build a bunch of static files. Those would only change when the git repository changes, there's nothing dynamic to them.

I would like to minimize waste, but I fear at this point my best guess is to make a image that runs npm run deploy &amp;&amp; rsync public/ /var/www.

Alternative ideas welcome.

voxpelli, to programming
@voxpelli@mastodon.social avatar

FYI – I’m available for / / conference talks / shorter gigs (1-2 days at a time)

I’m right now primarily focusing on my own projects but happy to share my experience with others + never wrong to refill the wallet a bit.

Topics I’m extra thrilled about:

absamma, to programming

I WAS going to try out until I realized that it doesn't support Windows yet. Then I thought to myself "wtf was all that v1.0 hype chant on social media all about then?" If it's going to be producing wtf moments like this for some time, then I'd much rather remain with my toolset.

tylermumford, to programming
@tylermumford@mas.to avatar

Color me surprised and impressed. I often get bad vibes from both and , but they worked great this time.

I found a repo with some code that counts the estimated reading time of some text. Normally, IME, JavaScript projects that haven't been touched in three years take a lot of work to get them just to install dependencies.

But with one Docker run command helpfully given in the repo, it totally worked, first try.

schizanon, (edited ) to webdev

> You can't get faster than No Build

"The state of the art is no longer in finding more sophisticated ways to build JavaScript or CSS. It's not to build at all. To lean on HTTP/2 and the now universal support for import maps to avoid bundling."

https://world.hey.com/dhh/you-can-t-get-faster-than-no-build-7a44131c

#webDev #javaScript #css #html #http #http2 #useThePlatform #struggleStack #react #vue #svelte #rails #rubyOnRails #ruby #typescript #web #webpack #bun #vite #npm #nodejs

joelanman, to programming
@joelanman@hachyderm.io avatar
alternativeto, to programming
@alternativeto@mas.to avatar

has released version 21, featuring an upgraded V8 JavaScript engine, stable fetch and WebStreams, a new experimental flag, a built-in WebSocket client, and updates to the test runner.
https://alternativeto.net/news/2023/10/node-js-21-released-with-an-upgraded-v8-javascript-engine-and-a-built-in-websocket-client/

juuh42dias, to rubyonrails
@juuh42dias@mastodon.social avatar

Check out this job from Pier Seguradora
Engenheiro(a) de Software Back-end Sênior

https://www.linkedin.com/jobs/view/3723349847

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