HN user

melx

239 karma

Hey! Greetings from the UK. I'm senior Python developer available for contract work. Looking for reliable Elixir dev? That's me too!

https://mlexs.dev

Viewpoints are my own and not the viewpoints of my employer (that's also me).

Posts0
Comments121
View on HN
No posts found.

I bought my first NUC only few months ago, and could not be happier (maybe except that Intel has sold off....). I use it as my primary machine for programming and data analysis. I read reviews that said it's noisy little machine yet I heard its fans once or twice, in my very quiet office.

Yyyy... Erlang has great adoption - examples:

- Ericsson (they designed Erlang) is using it for its mobile products/networks. Approx 40% of all mobile traffic worldwide goes through Ericsson's infra.

- WhatsApp used/uses Erlang - again millions (billions?) of users

- Bet365 / Klarna use Erlang - millions of users

- from OSS, RabbitMQ, is written in Erlang

I could go on... Erlang has great adoption, but it's probably smaller than, e.g. Python, due to Erlang's specific applications.

UK's debt-to-gdp reached 100.5%, and France has about 112.5% (many other western economies probably have similar level of debt.)

I'm not economist, so can someone tell me what does such high debt mean in short/long term perspective?

Good point! But what... if it's French Belgian person from France... is this still "French from France", or "French from Belgium" ? The Belgian person lives in France ;-)

Also, you missed other language codes for French: fr_BI, fr_BJ, fr_BL, fr_CA, fr_CD, fr_CF, fr_CG, fr_CH, fr_CI, fr_CM, fr_DJ, fr_DZ, fr_GA, fr_GF, fr_GN, fr_GP, fr_GQ, fr_HT, fr_KM, fr_LU, fr_MA, fr_MC, fr_MF, fr_MG, fr_ML, fr_MQ, fr_MR, fr_MU, fr_NC, fr_NE, fr_PF, fr_PM, fr_RE, fr_RW, fr_SC, fr_SN, fr_SY, fr_TD, fr_TG, fr_TN, fr_VU, fr_WF, fr_YT.

The OP wrote this is based on "navigator.languages" feature in the visitor's browser. So if your preferred language is set to e.g. French, then you shall see France at the top of dropdown.

I compile the tarball using Dockerfile, as the target OS must be the same as source OS to compile it (I deploy Debians on remote, and use Fedora locally). Then there's bunch of mix tasks to bundle the js/css assets - it's all really there ready to be used. The other day I spent half a day implementing same behaviour for Django app.

You can host Elixir apps on PaaS like Gigalixir[0] or Fly.io[1] (no associated with these).

I personally use mix release[2] that assembles a tarball of itself (together with BEAM), then rsync that to Hetzner, restart the remote process and viola. I like simplicity.

Re cluster of nodes, the easiest would be to use a library[3] to automate the formation of said cluster.

[0] https://www.gigalixir.com/

[1] https://fly.io/docs/elixir/getting-started/

[2] https://elixir-lang.org/getting-started/mix-otp/config-and-r...

[3] https://github.com/bitwalker/libcluster

HAProxy 2.8 has improved[0] Let's Encrypt integration by using acme.sh (so you can get rid of certbot). It still needs a cron job/systemd timers to do renewal of certs but acme.sh is just bash script so you don't need (extra?) system deps for installing it, while certbot requires Python and 12 python libs on my system (Fedora). And nowadays the "recommended" way to get certbot is via Snap (package manager)...

[0] https://www.haproxy.com/blog/haproxy-and-let-s-encrypt

On topic of death.

Look into setting up "lasting power of attorney" (LPA), or your country's equivalent.

When you're no longer here, probably the last thing your spouse/children/family will care about is a bloody domain and its associated email accounts.

I did benchmark it against nginx and found Caddy to be 5-7x times slower, but like all benchmarks go...results are subject to ones requirements (or mistakes).

What got me away from using it:

- the directives feel intuitive but as soon as I needed a complex config it all became a chain of very implicit strings

- the caddy author(s) decided few years ago to add custom http header with their sponsors[0]. That header could not be removed, it's no longer present in current Caddy but the bad taste still remains.

[0] https://news.ycombinator.com/item?id=15238315