skysight-inc/HackerNews huggingface dataset:
Agree, sort of. I sort of get git but have never grokked it, for sure.

But I don't think I should need to fully understand its internals for it to be "grokkable", an elegant thing could still be grokkable regardless.

It's possible though that the tasks: diffing, branching, merging, rebasing, tagging, etc., are too elusive for "elegance", ha ha.

I might add though that simple diffing, branching, merging I do more or less grok. Perhaps if git had stopped there, like my understanding did, I would feel more comfortable with it ... imposed limitations be damned. I suppose in fact I only use git in this limited capacity anyway. It's only when someone else on the team does something clever (or I screw something up)....
Latex seems way better than either to me (but then, I know Latex). Certainly Latex makes it much easier to get consistency and precision. For your use-case, generate Latex code from a template using Python or whatever, substituting in what you need, then compile the Latex into a PDF. If you need graphical elements or precise layout control, use the Latex package TikZ.

If what you need is very simple (e.g. no word wrapping, same number of variable strings in the same positions), even manipulating the code of a template PDF directly is not too hard. This library would help with that.
I' not a psychiatric patient, and neither are my kids, so I don't see what drugs could do for me.

I'm 43 and never had a cigarette in my mouth, and very happy that I don't have to sit in that disgusting smell in cafes anymore. Do I drink alcohol? Yes. Would I mind if my kids don't drink alcohol? No. I saw alcohol destroy families.

And your statement that somehow I and my kids would be curiosities in society just because we stay away from that shit makes you look really stupid.
Arch Linux. Linux has support built in and so does grub.
Probable confusion with Kary Mullis, the inventor of PCR and LSD advocate. Not the best argument for the safeness of psychedelics though, see https://en.wikipedia.org/wiki/Kary_Mullis#Views_on_HIV/AIDS_...
Friends don't let friends do (non local) rebases.
> I believe the idea is that 'panic' is considered something fatal.

I think opinions in 3rd party Go code on what “fatal” means vary, that’s the issue. Sure it was intended to mean “this error is so bad the entire program needs to die right now” but in practice there’s cases where it’s treated more like an unchecked exception in Java, i.e., “I can’t recover from this so _I’m_ going to give up but _you_ can keep going.” Or put another way, what a library might consider fatal the caller doesn’t. It can be argued whether or not that’s the right thing to do, but the fact is it happens in the wild, so for something like a server you probably should trap it.
I believe that's more an issue with the SoC not supporting USB 3. If the iPhone 15 base models re-use the same SoC as the iPhone 14 Pro (like the base iPhone 14s do), then those SoCs were probably never developed to support USB 3 in the first place.

They've previously used external USB 3 host controllers to support USB 3 host, but not client. I believe the iPad Mini 6, and the iPad Air 4 both do this: https://unitedlex.com/insights/apple-ipad-2020-teardown-anal... . So while the product specs will say USB 3.1 and that is technically true, it'll only be for USB devices, not for a connection to a computer: https://forums.macrumors.com/threads/ipad-mini-6-is-still-us... . Adding that USB 3 host in an iPhone would be a bit pointless: I doubt anyone is going to hook up a USB drive to their phone.

Funny enough I had this idea because the Raspberry Pi 4 does the same thing: SoC that only supports a USB 2.0 client while using an external USB 3.0 host controller.
In my stupidity, I've never understood when the 40h, or any X hour per week for that matter, became a requirement per law, instead of an upper limit for health safety.

For example, some different type of roads have different upper speed LIMIT. They also have a minimum required speed. Nobody is forced to drive at the upper limit constantly.

Today is not a good day, I'm having hard time putting my thoughts into words.

Moreover, I think it would be good to shift from hourly salary to daily salary. Whether you work 1h or 50hr in a particular day, it shouldn't matter, you should be paid for the day. We never say my hourly living cost when we talk about living expense, instead we say daily living cost. Which is a better metric in my opinion. One day of work should at least guarentee one day of living cost. This should be a LAW, that every employment (indipendently of hours) should guarentee per LAW the living expenses for a day. It might be hard for some kind of jobs, I understand. But I think we can do better than getting paid hourly.

I live with my parents, so I can save some money. Honeslty, I just need $30 to eat 2 healthy meals and $15 for rent a day. How much hours is that for a Software Engineer, 1-2hrs of work with a lot of extra money. Why should I slave away the rest 6-7hrs? This also helps with my creativity, because I cannot pre-allocate and command my brain to be creative for the allotted time, excatly from 9am to 5pm.
acyclic, not acrylic ;)
Kinda.

I wouldn't be able to tell you too much about the internals of VSCode.

The 'trouble' with git is, though, that what happens when you run the wrong command can vary from "easy to fix" all the way to "you just lost your work, you shouldn't have run that command".

Which means you need to either be very careful anytime you run git, or you need to learn more about git to avoid the footgun aspects of it.
0. mental model: staging, local, remote. c'est tout

1. `git status` + gitk before and after git commands

2. guess upfront what the result of git commands will be (in terms of gitk / git status)

3. be fluent with commit, push, pull, checkout, reset, merge, and possibly rebase (I call it required but it's opinionated) - you can safely ignore the other git api in 96% of workflow
> oh and never join any project that uses github and force squash-commits-on-pullrequest-merge. that is a sign that nobody there knows git or they don't care about code history.

First, color me offended! Second... you're not completely wrong. My git-fu is not that strong. Would you help me improve it by explaining why squashing via the GitHub UI is so bad? To me it feels like an easy way to condense 1 PR into 1 commit. For some workflows, that makes much more sense than trying to get everyone to play by the same commit semantics. But I can see how it's not as "pure" in capturing the meaning behind your commits. Maybe it would be helpful to provide an example of a situation where squashing with the GitHub UI could cause problems?
Having a window of "gitk --all" always open on my repo and refreshing the view makes it really obvious what my commands are doing.
Anyone who went there expecting anything else, deserves exactly what they get.
I once lost some important files stored on OneDrive. These were pretty marge media files. There were downloaded as a zip file, apparently successfully. Then, I deleted those files from OneDrive.

Imagine my surprise some time later when I went to access those files. Upon expanding the zip file, I saw that the media files in question had been replaced by some text files, with their content indicating that the download of those media files failed, and instructing me to try to download them again.

What the heck, so I could download a thousand files, which realistically I can't go through one-by-one to check if any have been replaced by a text file, and OndeDrive does not alert me to the fact that some files could not be downloaded.

I already had issues with the slowness and clunkiness of OneDrive, but this was the last straw. I'm migrating all my data from there.
I still don't fully understand what the nodes and edges in this graph "is" though. It's not patches. And I can't believe it is "all of the code" in each commit because that sounds very expensive.
You just mix it with the wine and it later gets precipitated like a sediment at the bottom of a vessel. Then you rack the wine, remove the naturally filtered wine juice from the vessel and leave those sediments and egg white materials at the bottom.
Eh, I feel like you are being intellectually lazy and are falling into the "No True Scotsman" fallacy.
This is my answer too. The main git book is very well written. I stopped reading just before it got into rebasing and had to pick that up from the internet due to work requirements, but the book was so solid in explaining the basics that I understood outside stuff almost immediately.

I think one thing that’ll help OP, is to learn everything on the command line. The fine grain control is worth the extra effort. I’ve hated almost all git GUIs in most IDEs because they won’t let me do weird things like grafting branches which is a very advanced concept for them but once you understand git, it is a very simple operation.
This is correct. (source: I worked there)
What's a "dark webhook"?

Also, funny they should mention Github, as they literally just added webhook tunneling to the Github CLI a few days ago.
By that definition a recurring dream would be reality - consistence it has, no hallucinogens involved.
It doesn't pretend to be a capital gains tax at all. It's a tax on income from assets, which is in practice more or less a 'wealth tax' which is also why it's called the Dutch word for 'wealth tax' in the first place.
Hello kindred soul. I can relate. I have done interviews drunk myself.

I have anxiety peaks at ANY minimally, potentially dangerous situation. If my landlord sends me a message. If my boss says we need to talk. If someone has the slightest negative reaction to anything I said (I have severely low self-steam). Even if I receive mail or email from any place that can be any danger (like about taxes) it triggers my anxiety.

Unfortunately, alcohol is a god-sent medicine to this problem. And because of that, I have drunk at least a bit in probably 90%+ of all the nights in the last 15 years. I have a serious case of alcoholism.

Someone in this thread mentioned that you are probably an alcoholic and I do agree. But you are probably an alcoholic because of your mental disorders. Of course, I can't be sure but I can speak for myself.
No one doubts Brexiteers exist; they won the referendum.

How they came to that opinion is where the manipulation comes in.
> Unfortunately it seems like it may be backfiring.

Why do you consider that "unfortunate"?
You can use Tweepy (Python Package) to query their API for the data. You will need a Twitter Developer Account but the setup is quite simple. You can use the instructions at: https://towardsdatascience.com/how-to-access-data-from-the-t... to set it up.

I wanted a client to export my followers, Following and Lists (Members) as the official export didn't have it. Used Tweepy to create a script in a couple of hours to pull this data. It should it fairly simple to modify it to pull the tweets as well if you are interested. Or I can take a look and add it when I get some free time.

https://github.com/suramyatomar/TwitterExtract
Unfortunately a little bit light on how exactly this works. You have the ground pork and casing, and the pork goes in the casing to become a sausage, but I didn't see anything about how you get the pork in the casing.

Anyway, apparently it's called aperture synthesis. I don't find the Wikipedia article on it helpful either, but this lab designed as a toy experiment for undergrads seems to explain enough for me to be satisfied.[0]

Two antennae (I guess you can have more, but simple case here) facing a light source or two. Move them apart and measure the power collected by the antennae. Observe the decline in power for a single source as the distance between the antennae increases, although the shape of that graph depends on the size of the source.

For two sources, you see the power collected by your antennae rise and fall with some periodicity as you move the antennae apart; this is caused by the interference of the light between the two sources (I wonder if the single source case has self-interference since it isn't a point source?).

Presumably from this you can obtain the amplitudes and phases and Fourier transform to get what the source(s) look(s) like. Exercise left to the reader.

Anyway, it is interesting on how many scales interference shows up in physics. Every physics student learns of Michelson-Morley, which was supposed to use the interference of light with itself to measure the difference in distance traveled by light in different directions since light should have been moving at different velocities on Earth as the planet orbits around the Sun... alas, not so, they did not observe the expected interference.

LIGO built upon the same principle (from my understanding, at least), the expansion and contraction of space caused by gravitational waves resulting in difference in distance traveled by light, resulting in interference.

But you need not restrict yourself to light, as you can probe crystals with electrons and neutrons. The amplitudes of where they scatter depend on what angle you hit the crystal at - hit it at a certain angle, and the possible paths traveled differ by an integer-and-a-half number of wavelengths, and you see nothing. This provides you information about the distance between atoms in the crystalline structure, the angles between them, etc. (I may be oversimplifying here as I hardly remember how this works)

[0]: https://vc.bridgew.edu/cgi/viewcontent.cgi?article=1019&cont...
Elizabeth Holmes Faces Years in Prison for Her Crimes in Theranos Collapse
Same for me. This has great visualisations, I’ve not found any better explanation.
This altassian article: https://www.atlassian.com/git/tutorials/merging-vs-rebasing

In particular the golden rule of never rebasing a public branch has served me very well and I never seem to run into the "merge hell" that others complain of.
The trick(s) to git is not using `git add -A`, and being diligent (as in checking before you commit) about the changes that you are committing. Only add and commit what is relevant to the task that you are working on. But it's even simpler than that. Before you commit anything, check what you are about to commit. Is it what you expected? Is it relevant? Does it work? Has it been tested? Is it likely to pass a code review?
Most PDF viewers don't support the 3D models feature, and just show a static image (literally an embedded image; they don't look at the 3D data at all). I've used it to make 3D diagrams for multivariable calculus, done with Asymptote (https://asymptote.sourceforge.io/).
Sit down with a coffee, read the book https://git-scm.com/book/en/v2 and just spend the time learning how to use it. You'll save yourself a bunch of time and headache and won't need to be nuking repos or branches any more. There's a lot it can do, so a big part is finding out what fits into you and your team's workflow.
The HN rules stipulate I should give constructive feedback so let me give you some.

Please write less pompously and more to the point.
> It’s really hard to keep comments up to date as code is moved and refactored

I agree with this, but if the explanation for logic has good reason to be there, then keeping comments up-to-date with code changes is very important and it goes back to seniority and empathy I mentioned earlier - if you understand why its there in the first place, and you actually like rest of your team, you are doing too all of you a big favor with updates of comments.

Each of us has different threshold for when some text explanation should be provided, which is source of these discussions. But again back to empathy, not everybody is at your coding level, you can save a lot of new joiner's time (and maybe a production bug or two) if they can quickly understand some complex part.
This is the actual great thing about TikTok. My experience of TikTok seems very different to the majority of the commenters here, it’s like we’re on different platforms.

Obviously we all like different things, and there is enough content to fill everyone’s feeds with it.
You can take rebase's `--autosquash` and push's `--force-with-lease` from my cold dead hands. :o)

Well, I think it's untidy to leave commits like "fix typo" or "PR feedback" in a change request, even if the whole changeset gets squashed.
Nodes are states of indeed "all of the code". Edges are commits. The "all of the code" thing does sound expensive but it actually is not because git does massive caching. That is what all of the directories in .git/objects are about.
>crypto

>ponzi schemers

Literally the same.
And this is why they don't let tech people write laws...
Introduction to Git with Scott Chacon of GitHub - This was really helpful for me.

https://www.youtube.com/watch?v=ZDR433b0HJY
FTA: "It feels authentic"

Lol this article is a bunch of woo.
Are you really "getting ripped off" if you came in with a ridiculously high offer (when no one asked) and they accepted it because they'd be crazy not to?

"I've got this old beater that I'm tired of working out of every day."

Your food truck sucks and your food is no better. You should sell churros.

"Churros don't really match our poboy sandwiches."

I can fix this, I'll just buy you out for a million dollars.

"... ok, sounds good to me."

What do you mean the truck is only worth about three grand? I want out of this deal.

"Here's the signed contract..."

Indented guy above didn't get ripped off.
Ah I see, it does some unusual stuff with chords, I was hearing it as a key change

https://flypaper.soundfly.com/produce/the-flurry-of-harmonic...
On a high level, it is "all of the code" in each commit. Node = commit (= all files + some metadata). Edge = pointer to a parent.

On a lower level, a commit is itself a bunch of pointers to files. Different commits can share files. Think about copy-on-write.
In silicon crystals and in most other semiconductors, the atoms are kept in their positions by covalent bonds that have certain directions in space, e.g. towards the 4 vertices of a regular tetrahedron in the case of a silicon crystal.

Because of that, the atoms are not packed together like some spheres, i.e. like the atoms in metallic aluminum or in table salt, where you may speak about the diameter of the atomic spheres. They are distributed on a lattice that has empty spaces between atoms and their bonds (i.e. the places where electrons belonging to the atoms are located with high probability).

The distance between the silicon atoms in a silicon crystal varies depending on the direction, so there is no single value that could be considered the diameter of a silicon atom.

The periodic cell of a silicon crystal has the same structure as that of cubic diamond and it has the form of a cube with 8 atoms inside it (an atom in a cube corner counts as 1/8 inside, an atom on a face counts as 1/2 inside).

A visualization from Wikipedia:

https://en.wikipedia.org/wiki/Diamond_cubic#/media/File:Diam...

While this visualization uses balls and sticks, to show the positions of the centers of the atoms, that has nothing to do with the form of the real atoms.

At most you could consider that a silicon atom has the form of the corresponding Voronoi polyhedron, in which case you would have to give several numbers, to describe its size, and not a single "across" value:

https://en.wikipedia.org/wiki/Triakis_truncated_tetrahedron

The number that I have provided, i.e. 50 Si atoms per cubic nanometer of Si crystal, can be computed by dividing 8 atoms to the volume of the cubic cell of the Si lattice. Given a volume of Si crystal, you can compute the number of Si atoms.

Like I have said, I do not know what means that 0.2 nm value, as the distance between 2 neighbor Si atoms can be larger than 0.5 nm, depending on the direction. In any case you cannot use it to compute anything about the number of atoms in a silicon device.

EDIT: I believe that you might have got your 0.2 nm from truncating the distance between 2 silicon atomic planes in the so-called "111" direction (the direction of the cube diagonal), which is the minimum distance between atomic planes in silicon.

That distance is 0.543 nm * sqrt(3) / 4 = 0.235 nm.

Because this distance is correct only for the "111" crystalographic direction, it cannot be used to compute the number of atoms in some piece of silicon, and it certainly cannot be called as the diameter of a silicon atom ("across an atom" without specifying the direction).
this video where he explains Git's dag with tinkertoys
https://www.youtube.com/watch?v=3m7BgIvC-uQ
I don't think it does. The people who are doing that are probably not that good to begin with. The people they outsource to are not that good. And then you have to communicate requirements to them, and manage them. I wouldn't be more productive doing that unless I had a whole team behind me, and then I'd be a manager, not a programmer anymore.

I think I'm deliberately ignoring the tortured argument you're trying to make that copliot is similarly unethical - which is just ridiculous. It deserves to be ignored.
shorting stocks is a full time job, so congress PEOPLE as much as they would like to can't do it and still go to work.
What percentage of tech folks are on h1-b. 20% seems about right.

Makes sense that some people had to check that box.
This stock award is specifically RSUs not options and RSUs are treated as taxable income the moment they vest.
just re-read this comment you wrote, where you list out all of the rules that you forget, and you'll be on easy street
Most people think displacing CO2 production is a much more cost-effective course than building out carbon capture.

After we have deployed enough carbon-neutral energy production, we will then need to do massive carbon capture. But in the meantime, carbon capture mostly just enables polluters.
Selling devices with both connectors is allowed.

Besides that, there are plenty of industry standards developed well before the first devices come on the market. PCIe 6 was finished before the first PCIe 5 product even hit the shelves, DDR5 was done two years before the first CPU used it, and I bet someone is working on a USB 5 already.
I believe ASML actually owns a huge chunk of Zeiss, no?
Last I checked even Google's Pixel phones will not support DisplayPort alt-modes. Probably to sell you Chromecasts.

Though some research now seems to suggest it supports DisplayLink over USB.
For me it was reading about git internals:

https://git-scm.com/book/en/v2/Git-Internals-Plumbing-and-Po...

It made me understand how simple git really it under the hood, you just need to understand how the commands operate on this simple data structure.
TortoiseGit for Windows and Git Cola for Linux. I use the command line very seldom, only for very weird things (like moving commit from a repo to another repo, but in a different internal folder).
Psychedelics also give the experience of something very unusual, if not extraordinary, which also pushes people towards religion. Because humans have this habit of labeling everything they don't understand as "magic", just everything. Come on humans, really???
Well, the article said "renaisance" not "copy"
only works with google calender and on MacOS
Git essentially shares common files & folders. I.e if you change contents of one file in root folder, then a newly created commit would point to a tree that points to this new file and to all the sibling files and folders which git shares with all other commits.
Executives generally renegotiate their contracts if the stock noticeably decline before RSUs vest assuming they don’t get fired or just leave.

That’s the thing executives are negotiating the kind of compensation they want and the risks they are willing to live with. The point is to get paid in a tax advantaged fashion without the risks associated with stock options.
This model doesn't cover the staging area though.
:(

It's from the Greek 'idios' meaning own, private. From that the etymology suggests ignorance and from that low intelligence giving us the modern derivation of idiot (and any attendant socio-cultural associations).

Here I'm using it in the sense of doing my own thing where I'm not feeling particularly bound by how other shells work.

YMMV