Hacker News new | past | comments | ask | show | jobs | submit | more svennek's comments login

how do you do that, also through qodem or ?


Mine is "git commit", as I don't like to customize the hell out of my multiple and often changing work computers, for a touch typist the extra letters are maybe a single second of typing ..


Mine came yesterday...


Are you sure that you are paying 5 times more for the same coverage?

Insurance is all about the details and what is covered.

For a basic example, we have two different vehicle insurance "levels" in Denmark, lets call them basic and full.

Basic is required by law and only reimburses other parties for the damages you do, the full will also cover damages to your vehicle. But even the full there are multiple "knobs" to make the insurance cheaper for example the policy for car glass and also the self-paid portion (which can range from nothing to a few thousand dollars) and whether or not your insurance prices rise after you had an accident...

In general it is my humble opinion that the price follows the "predicted payouts" quite closely, so a cheaper insurance is usually also a worse insurance...

But YMMV.


I think movies have two main purposes:

One, they show different problems/dilemmas that you need to consider as a human being. Some movies are (much) better than others at this than others, but I think most movies have some lessons (or at least "thinking points"). Even the lamest of action movies usually have some kind of "betrayal" theme, that gets close to the core of being human..

Second, the bringing people together is actually also quite important, both in the small well-knit group and strangers. We (humans) are a flock animal, and shared experiences makes our sense of togetherness stronger :)


Regardless of which language you write in, it is my humble opinion that watching the Structure and Interpretation of Computer Programs (SICP) from MIT in the 80'es* is gonna make you a vastly better programmer.

Yes, it is cheeky in a uniquely 80's way

Yes, it is an ancient lisp that nobody uses anymore, but that is just syntax. The composition and data structure lessons of that video series is timeless.

And yes chapter 7 (and maybe others) most likely requires a few rewatches... even for a proficient programmer.

An no, don't try to read the book instead. Start with the videos, so that you can get the Big Ideas instead of fiddling with Lisp code, that you will not use ever again...

* = https://www.youtube.com/playlist?list=PLE18841CABEA24090


Why not.

My solution in quick-n-dirty python.

https://github.com/svennek/adventofcode22/blob/main/day1.py

Time spent around 5 minutes.


The more secure solution is to become a LIR ("internet provider") yourself and use one of your own adresses (which is yours as long as you pay the fee to the RIR (registry)).

But that is a very expensive solution. Think thousands of dollars up front and thousands of dollars a year.

In practice the best possible way is likely to get a stable IP somewhere (local provider VPS or cloud "elastic ip" ) and host a vpn-router there yourself, that forwards traffic to the real server (this does not work very well if you service is high bandwidth).


>and thousands of dollars a year.

If you own a single /24 it is only $250 per year to ARIN.

A /24 is going to cost $11-12k, but it will have good resale value so it isn't a huge deal.


I am in Europe, and RIPE only has one fee regardless of your (ip-range) size... so YMMV...


It's still wrong. The regular RIPE fee is 1.400 EUR per year. They redistribute excess earnings though, so the invoices for me were never above 1.000 EUR per year.


Okay, one-ish thousand dollars per year then...

And, I for one does not expect the generous redistributions to continue due to both general price increases of ~10% per annum and a stop in the explosive growth of LIRs (i.e. the oversized budget contribution of signup fees)) due to the new /24 rules...


there is also the AS fee. also around $250 a year. if I remember correctly.


The annual ASN fee is waived if you have IPv4 or IPv6 resources: https://www.arin.net/resources/fees/fee_schedule/#autonomous...

(Not to sound harsh, but why comment if you didn't know and couldn't be bothered to look up the correct answer? It's literally the first hit for [arin fees]. The HN guidelines discourage "low effort" comments.)


I usually pay less than 1.000 € / year for my RIPE membership and associated /22. RIPE actually gives back money they don't need to members, so in some years I get back a significant part of my base fee. And I get two free tickets to the RIPE conference, which is an excellent event and alone worth the price of membership.


Likely not in the EU:

If you bought a product or a service online or outside of a shop (by telephone, mail order, from a door-to-door salesperson), you also have the right to cancel and return your order within 14 days, for any reason and without a justification.

(source:https://europa.eu/youreurope/citizens/consumers/shopping/gua...)


That said, I find a return rate of 18% extremely high.

I have maybe returned two or three purchases over the past decade and a half...


... or make CLI version of your tasks and let the system mangement daemon ("cron" or in my case systemd timers) handle it.

For clarity make a subfolder called "tasks" or something like that.

Then you get consolidate logging, retries and all kind of stuff for free in a battle-hardened setup and a standardized way to lookup what is enabled and what is not.


I remember a project that could convert any python script to a python CLI. This was taken to another level by another project that could convert any python CLI to a GUI.

Can anyone help me with this?


Fire can basically do the first step (object -> CLI):

https://github.com/google/python-fire

Gooey can do (CLI -> GUI):

https://github.com/chriskiehl/Gooey


Thank you very much!

I hope I don't lose them this time, even though I can see that I have starred one of the repos before.


I didn’t know from could schedule jobs dependent on other jobs. Isn’t it what this brings to the table?

“When job a and job b are done, run job c” kind of things.


In systemd you can have multiple ExecStarts, which will be run in order (if I remember correctly), and ExecStopPost is brilliant for notifying problems..


The main benefit of cron is your code stops once it’s done, process is cleaned up. There isn’t a provided way to do dependencies but that can be done using some shared locks and scheduling. Won’t be completely accurate which why solutions like Airflow are used.

Edit: forgot the most obvious way to do dependencies… just execute A & B together as one cron job; still need something like airflow if it gets into a DAG territory


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: