HNHacker News
TopNewBestAskShowJobs

pitaj

4,310 karma · joined May 17, 2016

https://github.com/pitaj
submissionscomments
pitaj··on Kissing moons may explain why Earth's moon is so large
Interesting. Is that because of different material makeup, or is it somehow related to tidal forces?
pitaj··on Lawrence of Arabia, Paul Atreides, and the roots of Frank Herbert's Dune (2021)
Avatar the movie franchise? The most common thing you'll hear people say about it is that it's "Pocahontas in space".
pitaj··on Framework's first desktop is a strange–but unique–mini ITX gaming PC
According to Framework, CAMM / LPCAMM is simply not compatible with this line of AMD chips, do to signal integrity reasons.
pitaj··on Framework's first desktop is a strange–but unique–mini ITX gaming PC
https://frame.work/

> Your estimated wait time is 1 hour and 3 minutes.

Ouch

pitaj··on Everyone at NSF overseeing the Platforms for Wireless Experimentation is gone
I really doubt they're the same people. I think when left-leaning people see a story like this one, they are far more inclined to participate in the discussion. And vice versa.
pitaj··on DOGE's only public ledger is riddled with mistakes
Prices are set by supply and demand. Taxing corporate profits offsets the supply curve, resulting in higher prices. The data supports this.

https://www.nber.org/system/files/working_papers/w27058/w270...

pitaj··on DOGE's only public ledger is riddled with mistakes
https://www.nber.org/system/files/working_papers/w27058/w270...
pitaj··on Ross Ulbricht granted a full pardon
> He did also try to get someone killed.

He was not convicted of that.

pitaj··on Bunkers in Albania
I'm visiting Tirana in March. Any must-see suggestions?

What was your favorite Albanian dish?

pitaj··on Zig: What to Expect from Release Month
Zig is strictly better than C. It has a better interop story than Rust. The biggest downside right now is that it isn't stable.
pitaj··on GM parks claims driver location data was given to insurers, pushing up premiums
There must be some way to have their wordplay without such a clunky sentence.
pitaj··on GM parks claims driver location data was given to insurers, pushing up premiums
I am having trouble making sense the word "parks" in the title. Is "GM parks" an entity, or is this a mistake and "parks" is just an extra verb in there?
pitaj··on Oh Shit, Git?
Hard to understand exactly what your issue is here. Typically when people say "avoid merge commits" they mean they want you to almost always rebase instead of merge. Can you give an example or something?
pitaj··on Oh Shit, Git?
This doesn't work if your local master was already ahead of origin
pitaj··on Oh Shit, Git?
It leaves behind tracked files that were moved or deleted between revisions.
pitaj··on Oh Shit, Git?
I prefer just using `git switch` because it's easy to remember the flags (and the position of arguments), but you're right, there is a simpler way:

    git switch -c some-new-branch-name
    git branch -f master HEAD~
pitaj··on Oh Shit, Git?
Some changes I would make:

1. Always use `git switch` instead of `git checkout`

2. Avoid `reset --hard` at all costs. So for the "accidentally committed something to master that should have been on a brand new branch" issue, I would do this instead:

    # create a new branch from the current state of master
    git branch some-new-branch-name
    # switch to the previous commit
    git switch -d HEAD~
    # overwrite master branch to that commit instead
    git switch -C master
    # switch to the work branch you created
    git switch some-new-branch-name
    # your commit lives in this branch now :)
3. I'd apply the same to the `cherry-pick` version of "accidentally committed to the wrong branch":

    git switch name-of-the-correct-branch
    # grab the last commit to master
    git cherry-pick master
    # delete it from master
    git switch -d master~
    git switch -C master
4. And also to the "git-approved" way for "Fuck this noise, I give up.":

    # get the lastest state of origin
    git fetch origin
    # reset tracked files
    git restore -WS .
    # delete untracked files and directories
    git clean -d --force
    # reset master to remote version
    git switch -d origin/master
    git switch -C master
    # repeat for each borked branch
pitaj··on US will ban cancer-linked Red Dye No. 3 in cereal and other foods
The EU allows 11 [1] synthetic food dyes while the US only allows 9 [2]

[1] https://www.efsa.europa.eu/en/topics/topic/food-colours

[2] https://www.fda.gov/food/color-additives-information-consume...

> As a parent, if I notice a correlation between an action and subsequent behavior, are you saying that my lived experience is irrelevant because... nobody bothered to include me in a specific double blind study? How many things do you do every day that have not been studied through exhaustive scientific research?

"Noticing a correlation" could very well just be confirmation bias. For decades, parents thought that giving kids sugar made them more energetic, but the scientific consensus is that there is no link between the two.

pitaj··on Merry Christmas Everyone
I believe it's because Chinese restaurants historically are the only ones open since they don't celebrate Christmas.
pitaj··on Four limitations of Rust's borrow checker
Ah, it wasn't clear from they they wrote that this is what they meant.
pitaj··on Four limitations of Rust's borrow checker
What? I think this just works...

https://play.rust-lang.org/?version=stable&mode=debug&editio...

pitaj··on U.S. math scores drop on major international test
Nope it was widespread.
pitaj··on A critical history of the FDA
What the FDA has undeniably done:

Delayed the release of vital, proven medicines to the public, leading to hundreds of thousands of people needlessly dieing.

pitaj··on The tech bosses who poured $394.1M into US election
> Even the Supreme Court justices have been revealed to be on the take, lavished with "gifts" from the wealthy.

The reporting on this is highly debatable. SC justices are allowed to have friends, just like any other person.

pitaj··on Intuitive introverts lead the most successful teams: study
Isn't MBTI largely pseudo-science?
pitaj··on Deprecating outdated issues on the GitHub public roadmap
Can you link a specific (publicly accessible) example? I want to try reproducing.
pitaj··on Two undersea cables in Baltic Sea disrupted
Are there not cables run through the Channel Tunnel? Seems like a no-brainer.
pitaj··on Two undersea cables in Baltic Sea disrupted
They are talking about the USA, probably
pitaj··on On Building Git for Lawyers
If git is used as just a backend, all of those elements could feasibly be extracted into a textual representation, which git can diff and merge and such, but those diffs and merges are presented to the user graphically in a style they recognize.
pitaj··on FDA proposes ending use of oral phenylephrine as OTC nasal decongestant
DXM can be more or less effective. I wish codeine cough syrup was still available without a prescription.
← PreviousPage 3 of 34Next →