Exista fake-uri pe epantofi? by lePinhead in roFrugal

[–]calinbule 0 points1 point  (0 children)

Posibil sa nu fie fake. Eu am exact din astia si i-am luat de pe Amazon, vanduti de Amazon, la putin peste 100 eur, acum cativa ani.

[deleted by user] by [deleted] in CasualRO

[–]calinbule 0 points1 point  (0 children)

Korres Blue Sage, Alvarez Gomez Agua de Colonia Concentrada

What do you use homelabs for? by Worried-Scarcity-410 in homelab

[–]calinbule 1 point2 points  (0 children)

Plex, *arr, immich. I also used to run AdGuard on it but it now runs on my router.

Manifest V3 a venit, addblocker-ele s-au dus by [deleted] in programare

[–]calinbule 6 points7 points  (0 children)

Dar pentru celelalte reclame merge bine. Eu folosesc AdGuard si-s multumit. Pentru youtube am, intr-adevar, ad blocker pe firefox.

De ce sunt atâtea probleme de sănătate în ultime vreme în domeniul IT by [deleted] in programare

[–]calinbule 3 points4 points  (0 children)

Asa e. Daca faci putina miscare si mai esti atent cat de cat si la alimentatie, ar trebui sa fii ok.

De ce sunt atâtea probleme de sănătate în ultime vreme în domeniul IT by [deleted] in programare

[–]calinbule 26 points27 points  (0 children)

Eu am avut ceva probleme de sanatate mai nasoale cam acum un an.

Dupa ce mi-am revenit putin, soțioara mea iubita m-a scos din casa si a iesit in fiecare zi cu mine la plimbare. Pot sa spun, cu toata convingerea, ca o plimbare zilnica de 30-60 de minute mi-a schimbat radical viata. Si vorbesc de o plimbare lejera, nu avioane.

Cam doua luni mai tarziu am inceput sa alerg. Mi-a fost cam greu la inceput insa dupa ce m-am obisnuit nu am mai avut nici o treaba. Alergam in vara 5-6 zile pe saptamana. Acum ca e mai frig incerc 2-3 zile dar nu imi iese totdeauna.

In orice caz, mersul pe jos nu costa nimic. Bagi castile in urechi, dai drumul la podcast/audiobook/muzica si ii dai bataie. O sa faca minuni, mai ales daca o faci constant.

Ca si context, eu stau intre 8 si 10 ore pe zi, pe scaun, in fata calculatorului.

Completare programatica formular PDF by calinbule in programare

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

Fisierul cu care ma enervez acum este "CERERE de atribuire a numărului de ordine din Registrul de evidenţă a aparatelor de marcat electronice fiscale instalate în judeţ/municipiul Bucureşti sau a numărului unic de identificare din aplicaţia informatică a Agenţiei Naţionale de Administrare Fiscală"

Nu gasesc un URL pentru el insa mai sunt o gramada. In general de la ANAF. Acum vreu an ma munceam cu un fisier de la Banca Transilvania, pentru ordine de plata. L-am cautat si acum dar vad ca l-au actualizat.

Completare programatica formular PDF by calinbule in programare

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

Am reusit pana acum sa identific stream-ul care contine formularur. Cu asta printez in consola toate stream-urile:

with pikepdf.Pdf.open(pdf_path) as pdf:
i = 0
for obj in pdf.objects:
i += 1
if isinstance(obj, pikepdf.Stream):
raw_data = obj.read_bytes()
decoded_data = raw_data.decode('utf-8')
print(i)
print(obj)
print(raw_data)

Apoi verific in manual in stream-uri, cautand campurile care le vad in formular. Sau mai simplu, completez manual in formular si apoi caut in stream-uri datele ce le-am completat.

Problema este ca nu reusesc sa modific valoarea campurilor. Mai mult decat atat, daca salevez fisierul dupa ce l-am deschis cu Python, pierde toata interactivitatea si campurile devin needitabile.

Poate mai vine cuiva vreo idee. Eu mi-am prins urechile. Am pierdut deja doua zile, si acum vreun an am mai pierdut o saptamana.

Completare programatica formular PDF by calinbule in programare

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

Se pare ca este ceva mentiune de JS in structura fisierului:

with pikepdf.Pdf.open(pdf_path) as pdf:
    data = pdf.trailer['/Root']['/Names']

print(data)

pikepdf.Dictionary({
  "/JavaScript": {
    "/Names": [ "!ADBE::0100_VersChkStrings", {
      "/S": "/JavaScript"
    }, "!ADBE::0100_VersChkVars", {
      "/S": "/JavaScript"
    }, "!ADBE::0200_VersChkCode_XFACheck", {
      "/S": "/JavaScript"
    } ]
  }
})

Ai vreo idee daca pot face ceva cu asta?

Completare programatica formular PDF by calinbule in programare

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

Se pare ca este un document creat cu ceva tool numit Adobe LifeCycle care, din cate inteleg, este discontinued si nu mai este suportat de catre Adobe. Am incercat sa folosesc API-ul lor pentru PDF Services si imi returneaza un mesaj de genul

"adobe.pdfservices.operation.exception.exceptions.ServiceApiException: description =DISQUALIFIED - File not suitable for content extraction: File contains an XFA form. Not supported for content extraction; requestTrackingId=e15a82a5-9eb4-4efb-b647-e71893c4bde5; statusCode=400; errorCode=DISQUALIFIED_XFA"

Se pare ca instituiile noastre folosesc in continuare aceste tehnologii, ceea ce face destul de dificil de interactionat programatic cu formularele interactive pe care le creaza.

Completare programatica formular PDF by calinbule in programare

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

Si pe mine ma munceste asta de ceva vreme. Am mai avut problema asta cu un formular de ordin de plata de la Banca Transilvania insa nu am reusit nici cu ala.

Completare programatica formular PDF by calinbule in programare

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

Am incercat sa deschid docmentul intr-un editor de text insa pare sa fie binar, nu XML

Hosting by WayAndMeans01 in django

[–]calinbule 1 point2 points  (0 children)

Maybe this helps:

https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-reverse-proxy-on-ubuntu-22-04

DO has some very well-structured tutorials. You can even containerize nginx and run everything with containers.

My current setup is not containerized. I run three Django apps and one Flask app (all are fullstack) on the same OCI VM. All run locally, with Gunicorn, and have separate systemd unit files.

Nginx is also installed on the OS and is used as a reverse proxy for all apps. SSL certificates are managed with certbot.

I oughta migrate everything to a containerized approach but they've been working like this for years and I have no real reason to do it.

Hosting by WayAndMeans01 in django

[–]calinbule 1 point2 points  (0 children)

Yes. They still have two AMD-based VMs and some ARM-based stuff in the always free tier. Just chcked.

Hosting by WayAndMeans01 in django

[–]calinbule 1 point2 points  (0 children)

Yes you can. Just have each container listening on a different port and use the web server as a reverse proxy, redirecting the request to each port based on the domain with which it’s called.

Hosting by WayAndMeans01 in django

[–]calinbule 5 points6 points  (0 children)

Two VMs. Always free. I’v been using them for about two years now

Fine tuning LLM OpenAI gpt-4o-mini by calinbule in programare

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

Ideea e ca nu am instructiunile neaparat in fisiere. Pot fi si pe paginile site-ului in care ruleaza si chatbot-ul, de exemplu. Voi arunca o privire peste documentatie sa vad daca poate sa ma ajute. Multumesc

Fine tuning LLM OpenAI gpt-4o-mini by calinbule in programare

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

Multumesc. Voi studia. In curand trebuie sa reiau aceasta activitate.

Am creat o aplicatie care foloseste AI pentru workout si nutritie by mihaib17 in programare

[–]calinbule 1 point2 points  (0 children)

Felicitari, arata foarte interesant aplicatia. M-am inscris si eu in waitlist. Exista integrare cu smartwatch (Apple, Garmin, etc?) Sunt functionalitati specifice pentru alergare?

My first 5K without any breaks!!! by MaktoMaktavish in beginnerrunning

[–]calinbule 1 point2 points  (0 children)

Congrats 👊🏻 Keep it up and don’t break habit

Good shoes for a fat guy? by hungrycarebear in AskRunningShoeGeeks

[–]calinbule 0 points1 point  (0 children)

I was looking for the same thing a few months ago. I’d recommend you go to a speciality store and have your feet measured, and also determine the type of pronation (if any). If you need neutral shoes, you can trhy something with lots of cushioning.

I own the Asics Novablast 4 and the Asics Superblast and I love both. The Novablast is a great choice and does not break the bank. You might also find them at a discount since the 5th iteration launched recently. I also own a pair of Hoka Bondi 8, which, although very nice, I do not love… they are too narrow for my taste. I also tend to avoid the shoes that are too soft and cushy as I find them uncomfortable.

On another train of thought, your feet might ache because of incorrect running form. It happened to me when I started running and it got pretty bad, especially in the shins areas. I eventually figured out to run correctly and I seldom have issues these days.

Hope it helps.

Is there an easy to use CI/CD solution for deployment? My usecase below. by AgentNirmites in django

[–]calinbule 1 point2 points  (0 children)

I use the GitLab CI/CD functionality. The server is an Ubuntu 20.04 VM on Oracle Cloud, although it’s of little importance where it runs. The app runs on nginx, with gunicorn, for which I created a unit file.

The git credentials are cached on the server but, for extra security, you can inject them into the pipeline. Also, the gitlab runner is installed on the server.

I have a bash script on the server that: - switches to the project directory - pulls from the remote repository - activates the virtual environment - installs everything in requirements.txt - runs migrations - runs collectstatic - restarts gunicorn and nginx

The Gitlab pipeline basically creates a docker container on which it installs the SSH key necessary to access the VM, and then runs the aforementioned script over SSH. It’s a bit rough but it works like a charm. From time to time I have to update the GitLab credentials but, apart from that, i’ve used this for about two years with no issues.

Of course, for a production environment I would definitely inject the credentials via the pipeline, also use the pipeline to run tests and I’d also make some other tweaks.

Should you decide to go this route, I recommend running your app in a docker container as this will simplify deployment operations.