News for hackers. Stuff that matters.

hongsy

Re:You Are No Longer Invited to Dinner on Saturday October 03, 2026 @12:37AM (#49941385)
Why is this US centric article so popular on HN? What does this say for other users of HN are who aren't in the US?
Re:Macrodata Refinement on Friday February 07, 2025 @08:15PM (#42979400)
[delayed]
Re:The man who killed Google Search on Thursday April 25, 2024 @06:14AM (#40155577)
What's qie and qde?
(corrected twitter link to link to app.suno.ai)
Re:Software Disenchantment on Wednesday October 25, 2023 @04:21AM (#38010522)
Reminded me of this https://en.wikipedia.org/wiki/Impossible_trinity

The impossible trinity (also known as the impossible trilemma or the Unholy Trinity) is a concept in international economics and international political economy which states that it is impossible to have all three of the following at the same time:

    - a fixed foreign exchange rate
    - free capital movement (absence of capital controls)
    - an independent monetary policy
Re:Software Disenchantment on Wednesday October 25, 2023 @03:43AM (#38010293)
Hi @dang, is it possible to modify the title of this post to reflect that it is a post from 2018? Thank you
Re:Why I Left Rust on Thursday June 01, 2023 @12:56AM (#36147700)
what does "internecine" mean?
I stay in a developed country (Singapore) and random children are available to be given food to.
Why is it impossible in the West? (I don't stay in the West)
Re:Twitter set to accept Musk's $43B offer – sources on Monday April 25, 2022 @09:43PM (#31163058)
What is dang?
What really grates at people’s nerves?

Uncertainty. Not knowing when you will end up testing positive and be whisked off by one of the commissar’s white costumed goon squads in the middle of the night. If you don’t agree, that’s when they typically come, like the NKVD secret police back in the Soviet Union. And not knowing what will happen to your children, your elderly parents and your pets if / when that day comes.

https://austrianchina.substack.com/p/tragedy-and-hope-in-sha...

Re:What does it mean to listen on a port? on Tuesday February 15, 2022 @08:18PM (#30355227)
What is a virtual uart?
Re:Words known better by males than females, and vice versa on Sunday February 13, 2022 @08:23AM (#30321594)
Dude you need to get a life
> Only a little over 1% the mass of a neutron is the three quarks normally listed.

Do you have a source for this?

Re:Everything useful I know about kubectl on Tuesday July 06, 2021 @02:08AM (#27744719)
omg TIL `k explain foo` and `k explain foo.spec` is a thing. thank you for this!!!
Re:Commits are snapshots not diffs (2020) on Friday April 09, 2021 @12:53AM (#26746857)
i convinced myself that commits are snapshots by doing the following:

    # generate a 100M text file
    base64 -b 76 /dev/urandom | head  -c 100000000 > file.txt
    git add . && git commit -m "1"
    
    # remove first line and add a new line to bottom
    tail -n +2 file.txt > tmp && rm file.txt && mv tmp file.txt && base64 -b 76 /dev/urandom | head -n 1 >> file.txt
    git add . && git commit -m "2"
    
    # repeat
    tail -n +2 file.txt > tmp && rm file.txt && mv tmp file.txt && base64 -b 76 /dev/urandom | head -n 1 >> file.txt
    git add . && git commit -m "3"
    ...

    du -sh . # a very big folder
each of the commits are almost 80M big in the git folder. if you run `du -h .` you can see how git stores each object individually (80M big)
Re:Commits are snapshots not diffs (2020) on Friday April 09, 2021 @12:00AM (#26746548)
i convinced myself that commits are snapshots by doing the following:

    # generate a 100M text file
    base64 -b 76 /dev/urandom | head  -c 100000000 > file.txt
    git add . && git commit -m "1"
    
    # remove first line and add a new line to bottom
    tail -n +2 file.txt > tmp && rm file.txt && mv tmp file.txt && base64 -b 76 /dev/urandom | head -n 1 >> file.txt
    git add . && git commit -m "2"
    
    # repeat
    tail -n +2 file.txt > tmp && rm file.txt && mv tmp file.txt && base64 -b 76 /dev/urandom | head -n 1 >> file.txt
    git add . && git commit -m "3"
    ...

    du -sh . # a very big folder
each of the commits are almost 80M big in the git folder. if you run `du -h .` you can see how git stores each object individually (80M big)
Re:Commits are snapshots not diffs (2020) on Thursday April 08, 2021 @11:52PM (#26746496)
i convinced myself that commits are snapshots by doing the following:

    # generate a 100M text file
    base64 -b 76 /dev/urandom | head  -c 100000000 > file.txt
    git add . && git commit -m "1"
    
    # remove first line and add a new line to bottom
    tail -n +2 file.txt > tmp && rm file.txt && mv tmp file.txt && base64 -b 76 /dev/urandom | head -n 1 >> file.txt
    git add . && git commit -m "2"
    
    # repeat
    tail -n +2 file.txt > tmp && rm file.txt && mv tmp file.txt && base64 -b 76 /dev/urandom | head -n 1 >> file.txt
    git add . && git commit -m "3"
    ...

    du -sh . # a very big folder
each of the commits are almost 80M big in the git folder. if you run `du -h .` you can see how git stores each object individually (80M big)
Re:Commits are snapshots not diffs (2020) on Thursday April 08, 2021 @11:10PM (#26746298)
If commits are snapshots:

- say i have a repo with one file, a big 100MB csv with millions of lines.

- i change one line in the CSV for one commit.

- repeat multiple times in many many commits.

- how big will the repo be?

Older »