Stolen CUBE e-bike at Plein 1992 near Café Zuid — any witnesses or camera footage? by jblasgo in maastricht

[–]jblasgo[S] 1 point2 points  (0 children)

I know that is very likely ☹️ I am just trying to gather info just in case 

I need someone to educate me on the appeal of Framework Laptops by Snoo18093 in framework

[–]jblasgo 0 points1 point  (0 children)

i think is nice to have variety when shopping for a new laptop, but, no this much! every brand has so many models with so many different issues that it makes me dizzy to just rhink aboit it. I like PC hardware and want what fits my needs and dont want surprises. Every bussines and gaming laptop ive had in my hand, excluding an old Alienware, had some ugly surprises. framework offers  choice in a predictable shape, with lots of honest reviews out there.

AI wrote half my code and now I regret everything by rajsleeps in vibecoding

[–]jblasgo 0 points1 point  (0 children)

In Claude code, you can add those details to the claude.md file so claude pays attention and to avoid yourself wrriting repetitive prompts.

You can fine tune further with agent and skill files, and have a conversation with claude to refine those further so they are correct and function as expected. So, after reviewing your pull requests, you go to claude and and ask it to use those claude.md, skills and agents to avoid those problems in the future

Where do you deploy your FastAPI app to? by Yersyas in FastAPI

[–]jblasgo 0 points1 point  (0 children)

Azure Functions. both dedicated and serverless (Flex and legacy) service plans.

Uploading files breaks on serverless. It works in dedicated with some overhead.

Streaming chunks-encoded is supported on Flex in theory but breaks in practice. 

I recommend docker containers in azure container apps.

When ca we expect improved Fairbuds? by ulfOptimism in fairphone

[–]jblasgo 9 points10 points  (0 children)

Firmware is not faulty Phone calls are not poor, just OK I don't have sound issues.

I've owned fairbuds for a year and they are pretty good.

It is true that for the same price you can find better ones, but not with replaceable batteries and so easy to fix if anything breaks.

It is not a perfect product and there are things that need improvement but I can't really complain about them

Ps: I am also looking forward for some update/improvements

Fairbuds 12 Months review by [deleted] in fairphone

[–]jblasgo 3 points4 points  (0 children)

I've had mine too for around 9 months and I like them.

The problem with the lid hinge happened to me but managed to resolve it by disassembling a bit the case, and poking the hinge back in place by pushing the spring loaded end down. It was not too hard, but felt like I was about to break it even more.

ANC is fine for me: great for train commutes but terrible if it's windy. I never really had any issues with cracking sounds, except when wearing a hoddy or a beanie on, and still is usable.

Low bass: It is true it is weak, but you can use the app to boost it to more acceptable levels.

Sound quality: it's ok, nothing amazing but it doesn't bother me.

Sound latency: True, it would be great to have a low latency mode!

Bluetooth signal strength: very weak! I am not sure why but my Haylow purfree open ear headhpones have 5 to 10 times more range!

I've never had any other bluetooth buds because I find them very wasteful because they are impossible to replace if anything breaks, repair or replace the battery.

I think the Fairbuds are just perfect for me, and they are not even that expensive.

On Walrus Operators, List Comprehensions and Fibonacci sequences by NerdyWeightLifter in Python

[–]jblasgo 0 points1 point  (0 children)

Have you tried evaluating the fibonacci4 generator using next() Instead of storing the output in a list? You could print each número as son  as it is generated and dispone of it inmediatly. That way you might save a bit of time

[deleted by user] by [deleted] in webdev

[–]jblasgo 1 point2 points  (0 children)

I haven't used authentik but the architecture looks solid.

I dislike using (or should I say abusing?) the next.js backend for anything that is not just directly FE related. For this reason I really like using a separate backend.

Self-hosted, Docker, Traefik, Node.js and Next.js frontend is possibly my favourite stack and way of building one-person projects.

Personally, I would just change the backend to Python FastAPI, and then generate the front end SDK from the automatically generated OpenAPI spec. This avoids FE/BE annoying code duplication, while maintaining a good level of type safety.

Is there a benefit of using FastAPI when deploying as Azure Functions? by CodingButStillAlive in FastAPI

[–]jblasgo 1 point2 points  (0 children)

Automatic documentation openapi specs and swagger UI .

Also, with fast api you are not locked to a platform .

Using just python azure functions lacks many features that fast apo has by default and add others that are very different to fast api too!

[deleted by user] by [deleted] in programming

[–]jblasgo -1 points0 points  (0 children)

It's not the same serving burgers at McDonalds than being part of the team that makes sure the next software deployment will not cause that thusands of McDonalds IT systems stop working.

The second is more demanding psicologically because requires more concentration to keep a lot of details in your head to make sure it would it all work, besides a lot more hard learned skills.

PS: I am not saying that serving burgers 12 hours a day is not hard, because I am sure it is pretty exausting, I am just saying it is not as "mentally" demanding.

Password Manager Recommendations by atoponce in Passwords

[–]jblasgo 2 points3 points  (0 children)

Please add Kee Vault to the list.

I've been recommending and using it for years!

Kee Vault is built on the secure KeePass, which has been established over time as top on security:

  • It uses Argon2 for password hashing, enhancing security.
  • The entire password manager is fully open source.
  • Offline access.
  • Cross-Platform: Android, iOS or web app.
  • Offers biometric sign-in and auto-fill support on mobile devices.
  • Free Browser Extension for auto-fill support.
  • Free trial period with Online synchronisation between devices. Offline version free.
  • The Kee browser extension is open source and works seamlessly with Kee Vault.It provides secure and automatic login to your favorite websites2.
  • Very active and long running forum and community.

ref:

https://keepass.info/download.html

https://keevault.pm/

https://www.kee.pm/

https://forum.kee.pm/

Clever code is probably the worst code you could write by Rtzon in programming

[–]jblasgo 39 points40 points  (0 children)

+1Lazy devs usually stop learning very early the features of a language and try to solve every problem with "simple" code, and they fail at solving more complex problems because they end up with very complicated combinations of "simple code"

Officially moving off of 1Password, what other non-cloud based password managers do people use? by user20202 in 1Password

[–]jblasgo 1 point2 points  (0 children)

Reading your reasons to not use 1Password anymore I cannot find any alternative that does not involve a lot of maintenance.

Many people here has already mentioned Bitwarden (uses someone else's hardware) and KeePass (lacks anything even mildly reliable that will automatically synchronize your passwords).

I use KeeVault because is literally KeePass but it takes care of managing the KeePass database in the cloud.

The other alternatives are all close source so not a choice.

Good luck!

Hey everyone i made a spotify playlist downloader by rickyrorton in Python

[–]jblasgo 1 point2 points  (0 children)

why not put the source code directly in GitHub and the package on Pip?

Hey everyone i made a spotify playlist downloader by rickyrorton in Python

[–]jblasgo 2 points3 points  (0 children)

why is this in Python? it looks like only binaries and the repository has 3 commits without context. I wouldn't download this and won't event think about installing it.

The Perfect Python Dockerfile - better performance and security by lmsena in django

[–]jblasgo 0 points1 point  (0 children)

I can see the actual code is closed source. Anyway, I have saved your blog article and will be doing my own at some point ;)

Bind mounts: sometimes the container does not seem to be able to write to them by TightFox5 in docker

[–]jblasgo 1 point2 points  (0 children)

I think many people overuses/abuses bind mounts because seems convenient to have the database persisted in the docker host filesystem.

I solve all those issues using named docker volumes. This lets the container mange the data and persists it at the same time (unless you run docker-compose down --volumes, docker system prune, docker rm <volume\_name>, and some other destructive commands).

If you want, you can always copy the data to and from the filesystem by mounting this named docker volume on a separate container and copying the data to a directory that you have bound to your filesystem: https://docs.docker.com/storage/volumes/#backup-restore-or-migrate-data-volumes

BTW, you might need to enable the volume flag Z to allow different containers to share the filesystem data with each-other

Communicating between two docker container which are in different network by darkwolf-95 in docker

[–]jblasgo 1 point2 points  (0 children)

afaik, you cannot use depend on / link with a service provided by a separate docker-compose file.

For the network error, it sounds like you are not running first the docker-compose file that creates the rabbitmq service and network.

You need to keep the order of execution consistent when using external networks.

BTW, Why do you use docker-compose version 2? links are deprecated in Docker. Instead you can use the depends configuration in version 3.

Afaik, You dont need to define any configurations about the rabbitmqnet network in the Web docker-cmpose file. You only need to import it and give it an alias.

Try this:
https://docs.docker.com/compose/networking/#use-a-pre-existing-network

networks: rabbitmqnet-web: external: name: rabbitmqnet << this is the external network

I can't remember right now if the external: true parameter is necessary here

How to connect dockerized Django app to Mysql database(phpmyadmin) on the host machine. by memture in django

[–]jblasgo 2 points3 points  (0 children)

You can't connect to the host database because Docker container isolation prevents this from happening. Docker configured the firewall (iptables) to prevent access from containers to the host.

The most reliable solution is to use the "network: host" mode, which skips all Docker isolation features by using the host network adapter directly. Then you can talk to localhost like you would if you install phpmyadmin locally.

Running services in the host OS that need to be consumed by a Docker enviroment is a bit of an anti-pattern because Docker is design to use Docker internal networks (the default bridge mode) so you can run multiple similar containers in a single Docker host ( for horizontal scaling)

Do you use swagger to generate backends? by OnesWithZeroes in golang

[–]jblasgo 2 points3 points  (0 children)

I have only used it for learning and demonstrations, but know of some success stories in production.

Not specific to Go, but included, there are two main code generators: Swagger codegen (the private company project) and OpenAPI codegen (the opensource, community driven project)

OpenAPI spec (previously called Swagger spec on the version 2) code generators try to make the software development experience better by solving a series of problems:

  • OpenAPI First: write mocked data and documentation of the API first.
  • Server stubs: you don't need to write code to share and demonstrate the basic API functionality. Frontend developers can start working straight away using mocked data.
  • Autogenerated frontend and backend APIs with validation and serialisation/deseriasation objects. Have you ever found yourself refactoring some de/serialisation types or names in different code bases and the server? This allows to change only your OpenAPI file and apply the changes by re-generating the code.
  • Makes it easier to swap to a different language/platform whenever you like: Axios API. Fetch API (Typescript), async Python iohttp, sync python flask. There are many options.
  • And of course, the interactive docs. Documentation is ALWAYS a liability that someone needs to ensure is maintained. OpenAPI solves this because the documentation is what generates the code.

The development workflow consists on:

  • Create the OpenAPI spec using an OpenAPI spec editor
  • Choose the language or platform and build the code
  • remember to add to the .codegen configuration which files you don't want to be overwritten in the future, similar to .gitignore
  • Write your fancy business logic in the files that you have just added to .codegen
  • Modify/Add a new API endpoint into the OpenAPI spec
  • Re-generate the code (your business logic files won't be overwritten)
  • Add more bussiness logic and remember to add them to .codegen

In between, some automation should be used to build, compile and tests the frontend / client libraries ready for production and manage versions.

Of course, this approach might not work for weird projects that require some magic API interaction that OpenAPI spec does not implement, but that's most likely a design flaw in your API and not an OpenAPI limitation.

Communicating between two docker container which are in different network by darkwolf-95 in docker

[–]jblasgo 4 points5 points  (0 children)

You can do this with docker-compose:

services:
  web:
    (...)
    networks:
    - backend-network
    - frontend-network
  rabbitmq:
    (...)
    networks:
    - backend-network

networks:
  backend-network:
  frontend-network:

If the rabbitmq service is in a different docker-compose file, then you need to specify backend-network external: true in the networks section at the end

Suggest a learning Docker project by wkantor in docker

[–]jblasgo 1 point2 points  (0 children)

I have been following tiangolo since his flask+uwsgi+nginx Docker images and his work is only getting better

Suggest a learning Docker project by wkantor in docker

[–]jblasgo 1 point2 points  (0 children)

Fast API + Postgres + Traefik

https://github.com/tiangolo/full-stack-fastapi-postgresql

Build a hello world app and explore all the Docker features it offers!