@matthiou@mastodon.social avatar

matthiou

@matthiou@mastodon.social

[matiu] — webdev, UX, BRU/bxl, ultimate frisbee, paragliding, cycling, mountaineering

This profile is from a federated server and may be incomplete. Browse more on the original instance.

simon, to random
@simon@simonwillison.net avatar

What are people's preferred tools for virtual environment management these days? I specifically care about being able to have hundreds of different project folders each with their own environment

I've been using pipenv for years despite not using Pipfiles - what else should I be considering in 2024?

I want a maximum of one command (equivalent to "pipenv shell") that I have to run in a directory in order to activate the corresponding environment

matthiou,
@matthiou@mastodon.social avatar

@simon I’m pretty sure a single Dockerfile ( and/or a docker-compose if there are other pieces of software involved ) with an env file per project would meet your requirements.

docker run is then the command

simon, to random
@simon@simonwillison.net avatar

Something I'm enjoying about JavaScript at the moment is the maturity and robustness of parts of the library ecosystem

I wanted to convert a Shapefile to GeoJSON entirely in the browser... https://github.com/calvinmetcalf/shapefile-js has 15 years of development behind it now and because browsers maintain backwards compatibility effectively forever even much older releases of that project still work perfectly today

matthiou,
@matthiou@mastodon.social avatar

@simon Not sure your requirements/data sources/project are compatible but I’m nowadays inclined to use Server Sent Events for most streaming purposes. Browsers, servers and developers love them ( it takes a couple of minutes to understand how they work and they can prevent large memory consumption )

https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events

matthiou, to vscode
@matthiou@mastodon.social avatar

Using #sveltekit and #vscode ? Latest version of Code (v1.88, April 2024) allows Custom Labels for files, meaning all your +page and +server files could now display their enclosing directory name.

VS Code > Settings > search "customLabels" > add Item with

  • **/+* as Item
  • ${dirname}/${filename}.${extname} as Value

Happy coding !

maeool, to random French
@maeool@boitam.eu avatar

Depuis quelques mois, je travaille avec BetaGouv sur une expérimentation de l'État pour faciliter la compréhension et le calcul des aides à la rénovation énergétique, qui ont radicalement changé en 2024.

Contrairement à ce que vous avez pu entendre, elles ont augmenté !

La peinture est fraiche, le site est en version beta, il va encore évoluer avant la sortie. Si le sujet vous intéresse, n'hésitez pas à faire des retours sur le fond, la forme.

C'est par ici ➡️ https://mesaidesreno.beta.gouv.fr

matthiou,
@matthiou@mastodon.social avatar

@maeool « De quand date la construction du logement à rénover ? »

Des réponses plus facilement compréhensibles seraient

Moins de 2 ans
Entre 2 et 15 ans
Plus de 15 ans

( le « pas moins de » est particulièrement difficile )

sindresorhus, to random
@sindresorhus@mastodon.social avatar

I'm planning to add a setting to Dato to show free time between events. How should it be presented? This is my first take.

matthiou,
@matthiou@mastodon.social avatar

@sindresorhus my take: invisible dots ( so free time text stays aligned with other events texts ) and a light desaturated/grey background under free time text. Also no comma between « 2 hours » and « 40 minutes »

JesseSkinner, to php
@JesseSkinner@toot.cafe avatar

Migrating from CodeIgniter to is so easy and pleasant.

By building the site 15 years ago, and modernizing it today, I skipped over the awkward middle stage of making an API & fetching data to render it in the browser.

SvelteKit's form actions let you build a fast site that even works without , which means I'm going from server-side rendering with links & forms, to server-side rendering with links & forms. Except now I have the power of to make it way nicer!

matthiou,
@matthiou@mastodon.social avatar

@JesseSkinner @ramsey Have you found an automated & reliable tool to migrate from PHP to JS syntax ? The very few I had tested were terrible

matthiasott, to random
@matthiasott@mastodon.social avatar

I’m stuck on the puzzle over here.

Going forward, I’d like to change a few things on my personal website and, bit by bit, include a newsletter, online courses, and memberships into the site. But instead of spreading everything across several platforms (and URLs like https://prototyping.news), it’d be nice to have everything in one place, like with Ghost or WordPress.

But that also means that I would have to move all my content from Craft over to another CMS… 😱🫠

matthiou,
@matthiou@mastodon.social avatar

@matthiasott Maybe could you look into an app proxy such as Traefik ? https://traefik.io/traefik/ - you can then host different services under a single hostname and upgrade/migrate pieces at your preferred pace

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