• 0 Posts
  • 9 Comments
Joined 1Y ago
cake
Cake day: Jun 13, 2023

help-circle
rss

I already thought about disabling the dedicated GPU on that laptop, but I unfortunately cannot since I need it to train neural networks and the occasional lan party at, work


If you need a UI, flutter is great, but for a complete beginner it has a bit of a learning curve.

Maybe you could start with a small PWA (progressive web app) using Javascript or typescript. You can do it all in the front-end for something small like this, though you won’t be able to implement some features like synchronization across devices


I know that banks in Europe are bound by law to follow PSD2, which is a set of guidelines to propose APIs. I found a stackoverflow post to generate the required certificates for that but those are only supposed to be for testing purposes https://stackoverflow.com/questions/50045376/how-to-create-eidas-certificate-with-qwac-and-qsealc-profiles-psd2-specific-att

You can use the PSD2 api to fetch the transactions from your account directly, that would be a lot less troublesome. There is also the woob (formerly weboob) project that has web scraping for a lot of banks (specifically french but also some American ones like amex)


My hot take is that I find it so much more pleasant to write typescript and do most of the work in the front-end rather than deal with optimizing the response time of the backend day in and day out. With SPAs it’s so much easier to fetch just what is needed rather than have monolithic responses that take ages to arrive. Makes caching and cache invalidation that much easier too.



VS Code absolutely has refactoring built in. Pressing F2 on a token renames it everywhere it’s referenced


My company didn’t leave me a choice, I got an XPS 15 which I had to setup with my distro of choice (but all the internal tooling is for Ubuntu, I personally would have preferred to install Fedora or Debian 12 with i3wm).

It’s not that bad a laptop but it overheats like crazy and has really shit battery life (barely enough for a meeting), and some of its features I can’t explain : why is a 4k touchscreen on a laptop a good thing? It eats 4x the battery for no noticeable visual improvement. I don’t use my laptop 5 inches from my face.


You could use grafana loki to handle logs, it’s similar to Prometheus so if you’re already using that and/or grafana it’s an easy setup and the API is really simple too.


#define is nothing but a search and replace from the preprocessor.

I’ve been burned one too many times with #include which replaces the directive with the contents of the included headers file (I think that if you’re truly evil you can even include straight .c files and forgo headers entirely)