markstos, to javascript avatar

Is EventEmitter the GOTO of #javascript ?

nucliweb, to javascript avatar
aral, to SmallWeb avatar

:kitten: Kitten’s interactive shell (REPL) now saves session history scoped to your app so it will still be there when you next serve the same app.

I think I’m done with the REPL feature now.

Going to take a little break, step away from the computer, and make a plan for the next week of work on Kitten and Domain¹.


stvfrnzl, to webdev avatar

I finally got for @astro working! Thanks to @henry sparking my interest for it (again) and anyone here who helped me along the way.

I would appreciate lots of likes, reposts and comments so I have more data to work with hehe

rauschma, to javascript avatar

Upcoming iterator methods:

// Without iterator methods:
const arr = Array.from(myMap.keys())
.filter(k => isPublic(k));

// With iterator methods:
const arr = myMap.keys()
.filter(k => isPublic(k))

(I prefer not to do .filter(isPublic) because isPublic() may gain more parameters in the future.)

marmelab, to php avatar

🎉 Exciting news! Marmelab is sponsoring the API Platform Conference 2024, the flagship event dedicated to the API Platform framework!

Join us for 2 days of talks by leading experts in , & .

📅 19 & 20 September
📍 Lille, France

Learn more:


nucliweb, to javascript avatar

async scripts, defer scripts, module scripts: explainer, comparison, and gotchas

ramikrispin, to datascience avatar

Getting Started with Observable Framework 👇🏼

Here is a great resource for getting started with Observable Framework by Allison Horst. Observable Framework is an open-source JS library for creating dashboards. The sequence of videos covers how to set up a project and data loader, customize the dashboard, and deploy it.


scy, to javascript avatar

Theo on const vs let in : (32 min).

It's a long video, and he's basically only reacting to and commenting on Let me be (12 min) by Ryan Florence.

Theo's main point is that const doesn't mean "this value will never change" (since objects and arrays can obviously still be mutated), but that let means "pay attention, this value will be reassigned further down", and I totally agree.

toxi, (edited ) to typescript avatar

Useful snippet for computing pixel dimensions from paper sizes (both metric (DIN) and (US) imperial presets included) using, an elaborate & powerful unit converter/calculator/DSL for all SI dimensions:

Full list of predefined constants:

#ThingUmbrella #Units #Conversion #TypeScript #JavaScript

albertcardona, to javascript Catalan avatar

“Coding my handwriting”, by Amy Goodchild. On specifying each handwritten character as a vector path, rather than a font, and then rendering text in various shapes and colours. Beautiful. In #javascript.

dethos, to security avatar
aral, to SmallWeb avatar

:kitten: 🎉

Kitten now has a lovely new multi-page Settings screen and… drumroll… a new 🐢 interactive shell (REPL) for you to play with the running state of your Small Web site/app/place and debug your app, inspect/manipulate its database, etc.

I plan on recording demos of each of them tomorrow but you can play with them now.

And here’s a little tutorial to get you started with the shell:


Screenshot of Kitten running in terminal: 🌍 Domain https://localhost 📂 Source /var/home/aral/Projects/kitten/app/examples/file-uploads 💾 Databases /var/home/aral/.local/share/ 🐢 To launch an interactive shell, press the [s] key. Server is running and listening for connections… s 🐢 Launching interactive shell ctrl-d to exit; .help for assistance A good place to start is to run the .ls command to see the keys of the global kitten object: » 💡.ls is an alias for Object.keys(kitten) [ 'version', 'domain', 'port', 'app', 'databaseDirectory', 'projectIdentifier', 'deploy', 'WebSocket', 'html', 'libraries', 'page', 'events', 'css', 'js', 'markdown', 'md', 'safelyAddHtml', 'sanitise', 'uploadsDirectory', '_db', 'uploads', 'package', 'db' ] 🐱 💬 kitten.db.images[0] Proxy [ { path: '/uploads/1a6c2612-057d-435b-83c7-7157b4add982/', altText: 'Screenshot of Draw Together sketch that reads Free Gaza!' }, { get: [Function: bound getHandler], set: [Function: bound setHandler], defineProperty: [Function: bound definePropertyHandler], deleteProperty: [Function: bound deletePropertyHandler] } ] 🐱 💬

joe, to ai

LLaVA (Large Language-and-Vision Assistant) was updated to version 1.6 in February. I figured it was time to look at how to use it to describe an image in Node.js. LLaVA 1.6 is an advanced vision-language model created for multi-modal tasks, seamlessly integrating visual and textual data. Last month, we looked at how to use the official Ollama JavaScript Library. We are going to use the same library, today.

Basic CLI Example

Let’s start with a CLI app. For this example, I am using my remote Ollama server but if you don’t have one of those, you will want to install Ollama locally and replace const ollama = new Ollama({ host: '' }); with const ollama = new Ollama({ host: 'http://localhost:11434' });.

To run it, first run npm i ollama and make sure that you have "type": "module" in your package.json. You can run it from the terminal by running node app.js <image filename>. Let’s take a look at the result.

Its ability to describe an image is pretty awesome.

Basic Web Service

So, what if we wanted to run it as a web service? Running Ollama locally is cool and all but it’s cooler if we can integrate it into an app. If you npm install express to install Express, you can run this as a web service.

The web service takes posts to http://localhost:4040/describe-image with a binary body that contains the image that you are trying to get a description of. It then returns a JSON object containing the description.

Have any questions, comments, etc? Feel free to drop a comment, below.

tripleo, to random avatar

All you nutcases still using , what's actually wrong with it?

aka What are the sharp edges?


@tripleo I would also be remiss not to mention 's included perltrap manual page, which notes both the strict and warnings pragmas and also has nice lists of things for those coming from other languages and tools like , #C and , , , and .

ovid, to Lisp avatar

#Perl, #Smalltalk, and #Lisp are three powerful programming languages that share a common feature.

Nobody knows how the hell to capitalize them.

#programming #software

ovid, avatar

@tripleo I always have to look up the capitalization of Smalltalk because I get it wrong every time.

Hmm ... should be in that list.

ecmascript_news, to javascript avatar

ECMAScript 2025 feature: duplicate named capturing groups for regular expressions

#ECMAScript #JavaScript

zalasur, to javascript avatar

It's been almost a decade since I've done a live coding stream. This will be fun!

Today I'll be migrating my website from React to Lit, which is a lightweight framework built around web components. I have the scaffolding set up mostly, so now it's time to get this done.

Come watch. Ask questions in chat! You don't need to create an account, just a username is needed to participate.

ecmascript_news, to javascript avatar
ecmascript_news, to javascript avatar
stefan, to javascript avatar

I've been really enjoying working with Wikidata lately, setting up automated accounts like @libraries, @parks, and @lighthouses.

To see what else you can do with Wikidata, and to learn how to use it, check out a tutorial I put together:

ecmascript_news, to javascript avatar
joelanman, to javascript avatar

trying to implement a form submission progress bar in js, but XHR follows the success redirect without telling me (I want to access it and redirect the browser).

Fetch can opt out of that but doesn't have a progress api!

I think I found a workaround for XHR:

xhr.onreadystatechange = function() {

 if (this.readyState === this.DONE) {  
 window.location.href = this.responseURL  


craigabbott, to javascript avatar

I was today years old and 4 hours down when I learned you cannot deep clone an instance of a class 😩

chipx86, to Discord avatar

Hey, developers: The @reviewboard team's starting a new for devs to hang out, chat, and share what you're building.

We have channels for , , / , , , and more.

You don't need to use or contribute to Review Board to hang out. (But you can follow development there, if you want.)

We hope to see people come in and hang out. The aim is a friendly, diverse community of devs.

Feel free to pass along the invite!

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