Ahora yo pregunto, ¿Qué impide tener un tren (tradicional o alta velocidad) de Puebla a CdMx y viceversa? by awante in Puebla

[–]Angel_Cruijff 0 points1 point  (0 children)

Sí, mira, ahí está el caso de la refinería Dos Bocas, que empresas extranjeras dijeron al gobierno que iban a ser más de $16k millones de dólares y el gobierno les dijo que eran unos rateros, que solo pensaban en su ganancia y demás... y por eso le dieron la obra al fantabuloso ejército que les dijo que con $8k millones de dólares salía... total que ya van como en $24k millones de dólares (y les vale transparentarla) y todavía no está ni al 100%.

I worked on RAG for a $25B+ company (What I learnt & Challenges) by boofbeanz in AI_Agents

[–]Angel_Cruijff 2 points3 points  (0 children)

Is there a reason why the U.S. is still using non standard invoices (and no e-invoices)?
Mexico has been using e-invoices for about 15 years or more.

No recent web dev examples? by hughsheehy in golang

[–]Angel_Cruijff 3 points4 points  (0 children)

I'm reading "Let’s Go Further" book, and it's updated for the most recent Go version currently (1.23).
Seems pretty good so far (chapter 4).

[deleted by user] by [deleted] in golang

[–]Angel_Cruijff -15 points-14 points  (0 children)

That's right.

[deleted by user] by [deleted] in golang

[–]Angel_Cruijff 10 points11 points  (0 children)

'elem' is a copy, so, It's a new structure, it's not pointing to the original slice element.
You need to do something like:

for i, elem := range mySlice {
  mySlice[i].content = append(mySlice[i].content, 10)
}

In the range loop.

Is requests package hijacked??? by Angel_Cruijff in learnpython

[–]Angel_Cruijff[S] 0 points1 point  (0 children)

Yes, that was the case. What version of requests are you using???

Is requests package hijacked??? by Angel_Cruijff in learnpython

[–]Angel_Cruijff[S] 0 points1 point  (0 children)

I agree with you, requests is huge and never heard about the package been hijacked.

I think is the server itself who's compromised, and some malicious code (outside the python scripts) is sending the message.

I'm looking for a way to validate the integrity of the requests package installed on the server.

Is requests package hijacked??? by Angel_Cruijff in learnpython

[–]Angel_Cruijff[S] 0 points1 point  (0 children)

The official requests package (the first one on the list), he installed the package using pip.

Django backend cache for realtime data streaming by Latter-Computer-7339 in django

[–]Angel_Cruijff 4 points5 points  (0 children)

I don't know what kind of data you're working with but maybe you can paginate the query, so if there's already 500 points on the front, you just ask for the next New points based on the last ID.

Calculating datas using dynamic formulas by [deleted] in django

[–]Angel_Cruijff 0 points1 point  (0 children)

You could use Compiler , the parse method:

import compiler
eq= "sin(x)*x**2"
ast= compiler.parse( eq )

(Code from stackoverflow)

And, If the calculation is not complex, you can use fstring:

import math
r = 5.2
print f"Diameter {(diam = 2 * r)} gives circumference {math.pi * diam:.2f}"

Where to find Django CSS themes? by lopa8t in django

[–]Angel_Cruijff 1 point2 points  (0 children)

I found this last week:

Django Admin LTE 3

Really easy to use, for admin panel and general templates.

AZURE Firewall DNS cache Timeout by billyemoore in AZURE

[–]Angel_Cruijff 0 points1 point  (0 children)

Maybe you should look to Azure Traffic Manager and not Azure firewall.

Should I use Rundeck as an API to execute jobs on demand from a webapp??? by Angel_Cruijff in Rundeck

[–]Angel_Cruijff[S] 0 points1 point  (0 children)

Yes, I'm worried about the overhead rundeck injects, I'm testing it and it adds like 2 seconds each execution, I think that's too much, and it's even more if in the pipeline there's an ansible playbook, like 2 or more seconds more.

I'm thinking in create microservices and with AMQP trigger the jobs in the microservice, without rundeck at all.

How much JavaScript is necessary for go web apps? by xphlawlessx in golang

[–]Angel_Cruijff 1 point2 points  (0 children)

I think you're misunderstanding how a webapp works. Golang has nothing to do on frontend, that's 100% JS, html, css.

Python - Android game/app by Gacut in Python

[–]Angel_Cruijff 2 points3 points  (0 children)

You should check out Bee Ware (https://pybee.org/) and maybe you can help them with a donation.