News for hackers. Stuff that matters.

melx

Exactly. They probably see their ads revenue is getting saturated by now, so a subscription model is a way to keep the revenue as the same level or higher.
Re:Show HN: Zany – Favicon API on Tuesday October 03, 2023 @07:57AM (#37750671)
or just "ignore" the favicon altogether:

  <link rel="icon" href="data:," />
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.
Try the night mode (top right corner)...

It's black text on black background (I'm on mobile Firefox on Android).

Re:An Introduction to LiteStack for Ruby on Rails on Wednesday September 27, 2023 @02:56PM (#37679498)
Something else will be a problem...before size of sqlite is a problem.
Re:BT confirms it's switching off 3G in UK from Jan next year on Tuesday September 26, 2023 @08:30AM (#37658309)
A very costly replacement?!

The UK smart meter rollout is/was the most expensive among countries that went this route of smart meters.

Or move up North (or Scotland) as "our", ekhm, "smart meters", are using a radio technology.

Re:How (not) to apply for a software job on Tuesday September 26, 2023 @05:38AM (#37656768)
"Well, it sounds like they've mastered the art of 'Ctrl+C' and 'Ctrl+V'!" *

* generated by ChatGPT itself

Re:Erlang/OTP 26.1 Released on Thursday September 21, 2023 @07:58AM (#37596335)
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.

Re:U.S. national debt hits $33T for the first time on Tuesday September 19, 2023 @02:55PM (#37574562)
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?

Re:Bard can now connect to your Google Apps and services on Tuesday September 19, 2023 @09:19AM (#37569567)
I was thinking...maybe Bard read your post and decided for itself.
Re:Bard can now connect to your Google Apps and services on Tuesday September 19, 2023 @08:31AM (#37569003)
Someone asked[0] what happened to Bard just 10 hours ago (or 8 hours if relative to this posting).

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

Re:I digitalized Berlin's registration form on Tuesday September 19, 2023 @06:09AM (#37567691)
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.

Re:I digitalized Berlin's registration form on Tuesday September 19, 2023 @05:08AM (#37567276)
I'm from UK, and I got "United Kingdom, United States, Germany" as three first countries.
Re:I digitalized Berlin's registration form on Tuesday September 19, 2023 @05:07AM (#37567266)
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.
On that topic I love the Welsh-English encounter of civil servants thinking they understood each other[0]

[0] http://news.bbc.co.uk/1/hi/7702913.stm

Re:I digitalized Berlin's registration form on Tuesday September 19, 2023 @04:56AM (#37567193)
Kudos on the nice UX for dropdown with countries. I wish more websites do it. Usually, it's "United States" at the very top, and 194 other countries in a loooooong list.
Money muling (the activity I described above) is a type of money laundering.
There is...you're asked about your bank account, then few days later you receive $100,000 along with info to send it to another 5 accounts $20,000 each. Guess what happens next?
Re:Phoenix 1.7 for Elixir: Edit a Form in a Modal on Wednesday September 13, 2023 @05:36AM (#37494423)
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.
Re:Britain's roads can't keep up with our cars on Wednesday September 13, 2023 @05:22AM (#37494286)
I hope the deer had survived the encounter.
Not an answer to OP question, but if you find yourself googling "python endswith" (as per example) then your DX is somehow broken.

Invest in good code editor with linting. No more googling for such trivial things

I wanted to start a new search engine that would index content from ad-free websites only.

Then I realised StackOverflow has ads nowadays and my search offering would be useless for like 98% of devs.

Re:Phoenix 1.7 for Elixir: Edit a Form in a Modal on Tuesday September 12, 2023 @08:40AM (#37480238)
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

Re:Phoenix 1.7 for Elixir: Edit a Form in a Modal on Tuesday September 12, 2023 @07:58AM (#37479722)
Phoenix components for the win!

But as a side note, I got rid of modals in my app, as showing modal on mobile devices is bad UX (IMO). Then, my Elixir code became smaller/simpler too. Win-win.

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

Well, we're in 2017 (read the thread I posted above), and in that year Caddy was distributing[0] the binary as licensed product. Apache licence applied to its source-code only (e.g. when you build the server from source - which only few people did).

[0] https://web.archive.org/web/20180216153020/https://caddyserv...

I think you meant the Let's Encrypt was new. They started on November 18, 2014, and Caddy's first release was on 28 April 2015.
> Adding a sponsor header is harmless

Harmless or not - I think it's worth looking past this point. Maybe the http header was a way for them to search the internet and find *commercial* sites that didn't pay for Caddy license? Not very pro behaviour.

Re:Reasons to not use your own domain for email on Tuesday September 12, 2023 @05:18AM (#37478540)
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

Older »