@sergi@floss.social
@sergi@floss.social avatar

sergi

@sergi@floss.social

🐍 Python aficionado
🕸 Web dev tinkerer
🎲🕹 Gaming enthusiast
🗣 English, Catalan, Spanish, Italian

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

sergi, to random
@sergi@floss.social avatar

hi @elementary. Is the Slack Community restricted to Gmail, Apple and Elementary emails? I can't figure out a way to join.

Temmy, to diy
@Temmy@mastodon.gamedev.place avatar

I did a light thing!

All using Zigbee bulbs and hooked into Home Assistant with a motion sensor.

Now, I can't blame a lack of light for stumbling down the stairs. Also, the ceiling is a bit of a mess, so please don't go telling the ceiling police.

image/jpeg

sergi,
@sergi@floss.social avatar

@Temmy
First reaction: "This is cool, maybe I should...".
Second reaction: "oh, wait, we have cats."

hynek, to random
@hynek@mastodon.social avatar

Happy to crown the first Hynek-approved coffee place for !

Nicholas Coffee & Tea Co.

Just had a delicious iced latte and the whole place smells AMAZING.

https://www.nicholascoffee.us/

Inside of the shop. Very rustic.
Many coffee beans on display
Standard drinks menu

sergi,
@sergi@floss.social avatar

@hynek starting to feel like I need to filter the hashtag to avoid getting 🙃

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

USian liberals, real talk: If Biden were selling arms to a group that had so far killed over 35,000 Americans, including over 15,000 kids, you wouldn’t be telling folks to vote for him. You’d be in the streets demanding he be removed from power. The reason you’re not? Because it’s Brown people on the other side of the world being slaughtered and you, quite frankly, couldn’t give a shit.

sergi,
@sergi@floss.social avatar

@aral To anybody replying to this post: Aral has not mentioned at any moment who to vote, stop talking about voting and Trump.

What I am understanding is that the POTUS is doing something wrong and nobody dares to criticize him and show dissatisfaction to make him change.

You can still vote for a candidate and ask for accountability. Heck, maybe changing what he is doing actually helps him win!

sergi, to github
@sergi@floss.social avatar

TIL my employer blocks for "security reasons" but doesn't block or

🤦‍♂️

Sylvhem, to random
@Sylvhem@eldritch.cafe avatar

Fediverse, I have a slightly unusual request for you. Can you recommend me video games where the main setting is a library, where the main character is a librarian or where the plot revolve heavily around libraries in some way?
Thank you.

sergi,
@sergi@floss.social avatar

@Sylvhem a bit of a stretch, but what about the Myst saga? It's more about books , not libraries, having an importance in the plot than libraries, but worth checking?

sergi, to community
@sergi@floss.social avatar

I've heard before "the Elementary OS community is small but very active/engaging". Where is that community? The official website links to Reddit and Slack. I don't feel like visiting Reddit regularly. To be able to join Slack I need a Gmail or Apple email, or an Elementary domain email.

Is there anywhere else were conversations happen?

sergi, to android
@sergi@floss.social avatar

Any recommendations of software for Android tablets to mock up web UIs? I have an Android device with a stylus, so I would like to use that instead of the mouse of my PC.

scottjenson, to random
@scottjenson@social.coop avatar

The world needs some cross between Processing, HTML, and Google Docs.

Processing: A programming environment with lots of helpful libraries
HTML: a simple display model that can be viewed everywhere
Docs: an underlying sharing mechanism

There are just too many core problems that need to be solved over and over by each app. It's more than just getting the right library as there are services involved.

Surely someone has taken a crack at this?

sergi,
@sergi@floss.social avatar

@scottjenson for a "sharing mechanism", do you mean something like CRDTs?

https://crdt.tech/

sergi, to mastodon
@sergi@floss.social avatar
sergi, to random
@sergi@floss.social avatar

Changing Directory with a Python Context Manager: https://dev.to/teckert/changing-directory-with-a-python-context-manager-2bj8

sergi, to random
@sergi@floss.social avatar

Please, don't ever let you company adopt Netskope. I'm constantly running into websites wrongly categorized and getting warnings about if I want to proceed.

Plus, they hijack the TLS certificates which makes software development a hell. You need to manually config each of your CLI tools to trust a special set of "Netskope certificates" to have the chain work.

freakazoid, to random
@freakazoid@retro.social avatar

I wonder how many projects end up shooting themselves in the foot when using an ORM because they fail to resist the temptation to let the ORM objects leak into their API?

I worked on one project that had to make DB schema changes every time they changed their API because of this. It made it very difficult to maintain compatibility across updates without complicating their schema, too.

sergi,
@sergi@floss.social avatar

@freakazoid this is so silly. If the APIs happen to mimic your model, sure, just wire up something so that the model gets directly serialized to avoid some boilerplate. But if the API diverges and there is no reason to change the model, please don't!

sergi, to random
@sergi@floss.social avatar

What cool top-level domain do you think is appropriate to use for a personal website and as email domain?

It is not a blog, just a website listing some of my projects and career. In other words, to replace https://cub3.net with something easier to spell.

Today I just discovered ".digital" is a thing, but of course "sergi.digital" is already snatched, probably by some domain speculator.

sergi, to random
@sergi@floss.social avatar

I broke my blog and CSS is not loading. Still, the website is fully usable and nice to read and navigate. I feel proud.

birdibirdson, to pixelart
@birdibirdson@mastodon.gamedev.place avatar

rock 🌱

sergi,
@sergi@floss.social avatar

@birdibirdson pretty rock!

simon, to random
@simon@simonwillison.net avatar

Asking the most important questions (using ChatGPT voice on the iPhone)

sergi,
@sergi@floss.social avatar

@simon @michaelrhanson you would put the "excelente" at the end if you wanted to emphasize it.

art_codesmith, to javascript
@art_codesmith@toot.cafe avatar

After a bit of playing with #FastAPI, I feel like it's really, well, API-oriented. You can have templating of course, but it's just a liiiittle clumsier than returning JSON (e. g., you need to manually inject the request into it).

So I'm not entirely sure if I should stick to my original plan of mostly rendering HTML and using #htmx, or if I should go with the framework flow and make a #Vue app. Probably the latter TBH.

#webdevelopment #python

sergi,
@sergi@floss.social avatar

@art_codesmith what are your requirements for the backend framework? Any reason to discard Flask or Django?

sergi,
@sergi@floss.social avatar

@art_codesmith got it. Got it. Yeah, I haven't had the opportunity to dabble with a native async framework before, something I also want to try. You might want to check out some of the ones listed on https://github.com/sponsfreixes/jinja2-fragments like Quart or Sanic to get a feel of how they use templating.

bkuhlmann, to random
@bkuhlmann@mastodon.social avatar

This is a good talk on by Martijn Dashorst if you need more examples/exposure. Plucked one of my favorite slides from the talk below (make sure to follow the slide link as well -- so great -- to Roy Fielding's original talk).

https://www.slideshare.net/dashorst/htmx-web-10-with-the-benefits-of-web-20-without-the-grift-of-web-30

sergi,
@sergi@floss.social avatar

@bkuhlmann Is there a recording of this talk?

sergi,
@sergi@floss.social avatar
sergi, to webdev
@sergi@floss.social avatar

"It is also expressed in what I think is best summarized as "Industry Fomo". Developers know full well that using next.js to create a relatively simple website is overkill, inappropriate at best, but they see themselves required to use industry-grade technology because job requirements are not listing skills anymore, instead they are listing tools and frameworks."

https://helloyes.dev/blog/2023/craft-vs-industry/

sergi, to python
@sergi@floss.social avatar
sergi, to python
@sergi@floss.social avatar
sergi, to random
@sergi@floss.social avatar

Client libraries are better when they have no API: https://csvbase.com/blog/7

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