• 4 Posts
  • 60 Comments
Joined 1 year ago
cake
Cake day: June 18th, 2023

help-circle
  • Got will not delete untracked files though, which is what happened here. If you want to discard changes to a file with git, you first have to commit the file to the index at some point, which means there’s only ever so much damage an erroneous “git restore” or “git reset” can do. Specifically, neither of them will delete all the files in an existing project where VC has just been added.


  • If you have set up your staging area for a commit you may want to discard (unstage) changes from the staging area, as opposed to discarding changes in the working directory.

    Of course, the difference between the two is obvious if you’re using git CLI, but I can easily see someone using a GUI (and that maybe isn’t too familiar with git) misunderstanding “discard” as “unstage”.

    Either way, what happened here indicates that all the files were somehow added to the VC, without having been committed first, or something like that, because git will not let you discard a file that is untracked, because that wouldn’t make any sense. The fact that the GUI let this person delete a bunch of files without first committing them to the index is what makes this a terrible design choice, and also what makes the use of the word “discard” misleading.


  • I use gitkraken for two primary purposes:

    1. Having a visual representation of my project history.

    2. resolving merge conflicts

    Of these, the first is really the only thing I really want a GUI for. I’ll just have it open on my side-screen if I’m managing some more or less messy branch structure or quickly want an overview of what has been done on which branches, where common ancestors are, etc. All the actual doing of things is done from the CLI, because it’s just better for that.



  • To be fair: If you live in the south, it doesn’t make much sense, but if you live a bit further north it’s the difference between getting up when the sun is a a reasonable place, or getting up in the middle of the night (winter) or the middle of the day (summer). I want it to be light out when I’m awake, not when it’s sleeping time.

    Turns out it’s easier to adjust the clock than to say “work starts at 9 in the winter and at 8 in the summer”



  • So your standpoint is that you want people to walk around making each other sick regardless of the consequences?

    I never said that. I said that if nobody ever gets sick, the consequences are much larger when disease does spread. Just check the statistics for any country post-covid lockdowns, and you will se a spike in non-covid related respiratory disease. Plenty of doctors and researchers have pointed out that the reason was very little respiratory disease during lockdowns/quarantining periods leading to low immunity in the population. I want to minimise the consequences long-term, and I’m saying that I prefer to get mildly sick once or twice a year over getting extremely sick every other year.

    And your reason for this is that you spent two weeks in bed?

    It seems like you didn’t even read the whole paragraph. As I said, what I experienced wasn’t unique, but something we could also see in statistics over hospitalisations. I’m lucky enough to only have been in bed, but for people with preexisting conditions, the same infections could have been much worse. Again: If most people get mildly sick every now and then (as we always have) we prevent outbreaks from wreaking havoc and hospitalising a bunch of people when the do happen.


  • I’m not pretending coronavirus is literally a type of flu virus. It just happens to be a novel flu virus that we don’t have as much exposure and immunity to yet. There are plenty of historical examples of what happens when a population is hit by a virus that it has little or no immunity against, even though that virus is relatively harmless to those with immunity.

    That is not an argument against vaccines, and it is not an argument against all the precautions that were taken when Covid-19 first hit. Those were both necessary for the population to build as much immunity as possible, with as few as possible deaths and as little as possible sickness.

    It is an argument for the fact that Covid-19 must be treated differently now and in the future vs. how it was initially treated. It is now a virus that most of the population as some degree of immunity against (due to both infections and vaccines). If you doubt that that’s the case, just look at the reproduction numbers for Covid-19 outbreaks, which are still ongoing. In the initial waves, just a handfull of infections were capable of spreading to entire countries, killing thousands, within just weeks. If a handfull of people get Covid-19 now, that is no longer the case, even though we aren’t quarantining people. This is a direct result of herd immunity. Just like we have flu season, where different flu viruses spread in local epidemics, Covid-19 will continue to spread in local, seasonal epidemics in the foreseeable future (likely “forever”), but it is no longer the same threat as it was when nobody had any immunity to it.


  • It might have to do with the fact that by far most of the population has some degree of immunity now due to infection or vaccination, making the disease much less lethal than it was, and now completely comparable to other flu viruses. I don’t want everyone to freak out every time some mild disease is in season. Yes, it sucks to get a cold, and it sucks to get the flu, but if nobody ever catches them we will have very low levels of immunity in the population, making it far worse when people do eventually catch them.

    After covid I was bedridden a couple weeks because of common colds. Thats never happened before. The amount of people hospitalised due to other diseases than covid also spiked (we have statistics for this). The reason was that very few people had gotten sick for two years, so nobody had any immunity agains anything they weren’t vaccinated against (which is most cold- or flu viruses).


  • Some languages - specifically Norwegian that I know of, don’t have separate words for “boyfriend” and “girlfriend”. In Norwegian we have the word “kjæreste” which can be directly translated to “dearest”. To me it always feels a little weird to use “boyfriend” or “girlfriend”, i guess the same could be true for other non-native english speakers.



  • If we’re able to make hydrocarbon-synthesis from CO2 efficient… we’re still going to need to source the hydrogen somewhere.

    But if we do that using electrolysis (with renewables), and are able to create more energy efficient CO2 capturing processes, I could see synthetic hydrocarbons as a viable fuel option in the future. The thing is: They’re stupidly good at being stable, energy dense, energy carriers. We also have a lot of infrastructure in place to handle hydrocarbons already.

    In principle, synthetic hydrocarbons could be part of a zero-emission cycle, where we capture CO2 and electrolyse hydrogen with renewable energy, and use the hydrocarbons as an energy carrier. But if we go that way, we’re definitely going to have to research efficient hydrogen production, and probably storage as well.


  • One of the advantages of hydrogen is that tanks and fuel cells can withstand a large number of “charging cycles” much better than batteries. Additionally, for ships, the amount of energy needed to move is so enormous that I fear we’ll have a hard time creating batteries that are feasible for long-distance shipping.

    For short distance ferrying (including large, car carrying ferries) on the other hand, Norway has already implemented quite a few electric stretches. The major issue there is building the infrastructure to charge the ferries.






  • I recognise that I’m probably a minority here, but I have a much harder time staying focused at home. At my office I share a room with a couple others, on a floor with a couple dozen more. Pretty much everything I do (outside 1-3 meetings a week) is individual work.

    For me, something about physically “going to work” helps me “switch on” much more. Taking breaks with other people, rather than alone, also helps me structure the breaks, and it’s not uncommon that we get good ideas or resolve something that’s been bugging someone during a break. Lastly, I really appreciate the option of “just dropping by” when I want to ask someone about something, and the fact that they can do the same to me. In my experience it’s never gotten to the point that it happens more than maybe once or twice a day, so it’s not really that disturbing either.



  • The representation of “real world” is meant to be an exaggeration of real life, both as satire, and to underline issues women face and systematic advantages men receive. I think that part was quite good at doing what it was trying to do, it was funny as well, and Will Ferrell is of course hilarious as CEO.

    What didn’t really resonate with me, and kind of rubbed me the wrong way, was later in the movie, when “men” were portrayed as being simultaneously incompetent at everything they do, and at the same time manipulative and power hungry. By all means, it was funny, and got the point through, but I think they went too far in portraying the “bad guys” as both stupid and malicious, but also hard to overcome.

    I think the message of the movie (the way I understood it) would have gotten through in a better way if they had made the resolution less dependent on the “men are dumb” caricature, and played more to “women are strong”, they could maybe even have brought in some “men and women can actually function together if they talk to each other”.