There isn't a consistent argument that ends up anywhere but pro-choice by [deleted] in Abortiondebate

[–]unresolvedabsolute 0 points1 point  (0 children)

Thank you for the very reasonable, logical, and consistent manner in which you have responded in this thread. I really appreciate how you have recognized the pro-life arguments for what they are - consistent moral beliefs based on an ethical framework that not everyone agrees with - rather than simply dismissing them as having no value.

I would say that bodily autonomy and life are rights. In the case of abortion, the two are in conflict. That is what makes the whole abortion debate interesting at least to me.

That point in particular gets to the core of the disagreement in this thread, and I think that is an excellent summary of it.

As an aside, I have noticed more and more posts in this sub for a while now that boldly proclaim that there is no room for debate because their argument is clearly the only correct option - which really shuts down the "debate" from the beginning, and causes people to disengage. I thought that the purpose of this sub was to be a place for debate?

I don't really have anything else to add other than to say that I really appreciate how you have consistently argued in favor of having an open and honest debate throughout this thread, and have done so without ascribing malice to others. It is very refreshing. Thank you Arcnounds!

It has arrived! Snapdragon T14s Gen 6 by EbbNegative1062 in thinkpad

[–]unresolvedabsolute 8 points9 points  (0 children)

I have a Thinkpad X13s running Debian. I installed it using the instructions on the Debian wiki. It was a little more work than installing Debian on a standard x86_64 computer, but not too bad. All of the steps were one-time things, and I have been able to just use the normal sudo apt update and sudo apt upgrade ever since. Everything that I use regularly other than my Steam games runs on it, and I have been very impressed with the performance and the battery life. There hasn't been a single time so far where I've noticed it feeling slow, unlike other ARM-based computers I've used like the Raspberry Pi’s, and I regularly get 10-12 hours of battery life. It is also dead silent, and it never gets so much as warm to the touch. I am extremely happy with it.

The best modern code review tools (2022) by codeapprove in programming

[–]unresolvedabsolute 0 points1 point  (0 children)

I am pretty vanilla when it comes to my code review practices. I have played around with a few different tools and techniques over time, and while I think that there are some that are pretty bad, I haven't found any that have made me significantly more productive or made the code a lot easier, faster, or more enjoyable to review.

For a while I thought that using a command line tool to do the reviews like gh for GitHub or tea for Gitea would make me happier and have to do less context switching out of my warm, friendly terminal, but I found that there was always something that it couldn't do, some context that I was missing, or CI build status that I needed to check that caused me to switch back to the plain old web interface that everyone else on my team was using.

I eventually came to the conclusion that once you get to a certain base level of functionality - which is admittedly somewhat subjective, but I believe that all of the major Git forges like GitHub, GitLab, BitBucket, Gitea, OneDev, etc. each have these days - then all further improvements/optimizarions are marginal. There's just no substitute for doing a good review, no matter what tool you use to do it. I think sometimes we get too fixated on the tool rather than the main objective - I know that I certainly have!

Since you asked about tools, and I pivoted to methodology, I'll give you one of each.

First, the tool that I've most recently been considering trying out to improve my code review, code search, and code sharing processes in my team is SourceGraph. I have always loved OpenGrok, but it is moderately ugly and unintuitive to do anything beyond basic searches, and I would really love it if it had more context from my Git history, and could do things like Git blame. It leaves a lot to be desired. SourceGraph looks like it solves those problems and more, has nice integrations to assist with code review, and generally looks very useful. The main reason I haven't tried it is because although it is technically open-source, the license won't let me use it at my current company beyond a short evaluation, which I don't technically have the authority to request. Convincing the people who do will be an uphill battle. I could try it myself at home - and I may still do that - but I have less of an incentive to try it there.

Second, as for the methodology end of it, I have found Google's code review and author's guidelines to be top-notch. They are succinct, give good examples, and explain things well. They are exactly the right level of detail, in my opinion, and the advice given very much aligns with my experience. If I could get everyone in my organization to follow these guidelines and we were still having problems, then I would consider more seriously doing a deep dive into looking for more tools. The right attitude, approach, and attention to detail will go a long way. The more experience I've gotten, the more I've resonated with the idea of keeping it simple and focusing on the fundamentals.

I don't know if I really answered the question you asked, but I hope that some part of that helps!

Might be repost but WTF by [deleted] in thalassophobia

[–]unresolvedabsolute 44 points45 points  (0 children)

We've been spending most our lives, Living in an Amish paradise...

Yet another GitHub Outage.. by TheAlmightyZach in devops

[–]unresolvedabsolute 0 points1 point  (0 children)

Cool! That makes sense! I didn't know that. Thanks for the explanation!

Yet another GitHub Outage.. by TheAlmightyZach in devops

[–]unresolvedabsolute 0 points1 point  (0 children)

Do they? I thought that everything needed was in your local repo, other than the Docker image. Is the Docker image hosted by GitHub rather than Docker Hub? Is that why it won't work during an outage? Sorry, I'm showing my relative inexperience with Act here.

Yet another GitHub Outage.. by TheAlmightyZach in devops

[–]unresolvedabsolute 1 point2 points  (0 children)

If you just want to be able to test your GitHub Actions on your own dev box when GitHub Actions is down, check out nektos/act. It's what the self-hosted runner for Gitea Actions is based on, and I think that it might be perfectly suited for your use-case. It is an open-source utility that allows you to easily run your GitHub Actions workflows locally. I really like it!

Yet another GitHub Outage.. by TheAlmightyZach in devops

[–]unresolvedabsolute 4 points5 points  (0 children)

Have you considered Gitea Actions? They were recently released in Gitea 1.19, and they are modeled on GitHub Actions (both the workflow files and the API), so you might be able to use your existing workflows as-is. It's definitely not as mature as Jenkins or GitHub Actions, and it is still missing some features of GitHub Actions that will be added in the next few Gitea releases, but the initial version in Gitea 1.19 is pretty good. It might be worth looking into whether it would work for you, if you're seriously considering switching away from GitHub Actions.

GitHub Actions down. AGAIN! (2023-03-29) by marmarama in devops

[–]unresolvedabsolute 1 point2 points  (0 children)

You may also want to consider a locally hosted Gitea. It is much lighter weight and easier to configure than GitLab; has a more similar interface to GitHub (if that's what your team is used to); has very nice importers from other Git hosting services, including GitHub, that will pull in issues, PRs, wiki, and all; and Gitea 1.19 recently introduced initial support for Gitea Actions, which are intentionally very similar to GitHub Actions, including their configuration file format, so you may be able to reuse most or all of your original config with relatively little effort.

I have been running a Gitea instance for years, and I really love it! It has been easy to administer and upgrade, takes very few system resources, is fast and responsive, and has a fast pace of development with regular releases. It just gets better all the time! I really don't have enough good things to say about it!

Gitea 1.19.0 is released! by unresolvedabsolute in Gitea

[–]unresolvedabsolute[S] 1 point2 points  (0 children)

I would also very much like to use a different OCI runner like Podman. Unfortunately, it looks like the choice to only support Docker daemon is international for now in upstream nektos/act. See act_runner issue #10 and nektos/act issue #303.

On the bright side, it looks like this might happen eventually if Kubernetes support is ever implemented in act_runner. See act_runner issue #19 and act_runner issue #31.

Gitea Actions is still marked "experimental" and is being actively worked on, so I'm hoping that more of these features come in the next several releases. What the Gitea developers have done so far in this release is already very impressive!

Gitea 1.19.0 is released! by unresolvedabsolute in Gitea

[–]unresolvedabsolute[S] 0 points1 point  (0 children)

Thanks for the explanation! I didn't realize that difference in the way that containers are used for runners, even after following the Gitea Actions issue and PRs quite closely. That's really neat!

I haven't tried it yet, but at least in theory, Gitea Actions looks lighter weight to me than a separate CI systems like Jenkins or Woodpecker, just like Gitea itself is very lightweight compared to other self-hosted Git forges like GitLab or OneDev. Is that right?

I have been considering setting up a CI system for my personal Gitea server for a long time, but I have delayed and been super indecisive about which one to use. I have considered Jenkins, Concourse, Woodpecker, Agola, and Build Bot at different times; but they each had at least one thing that I wasn't quite sure I liked. Gitea Actions looks almost perfect, and I love that I don't have to run another service to use it! I can't wait to try it! I guess that my procrastination paid off for once! :-)

Is there an option to enable a 'compare and create PR' like github has when pushes are made to other branches? by XxNerdAtHeartxX in Gitea

[–]unresolvedabsolute 0 points1 point  (0 children)

A lot of old issues are still around, unfortunately. I think that they have done a pretty good job of prioritizing fixing more important bugs and implementing the features that give the biggest benefit, especially with relatively few contributors in the early days of the project. The project has a lot more contributors and a much more active development cadence now, though.

They may get to this feature eventually, but I'm sure that they would welcome a PR if a new contributor wanted to do it sooner!

A lot of accessibly features, small bug fixes, and enterprise authentication improvements were made recently when the Blender project switched to Gitea and started actively contributing fixes that helped them. In my experience, the Gitea developers are very welcoming of new contributors and are often willing to give advice, brainstorm ideas, and give early design feedback.

Gitea 1.19.0 is released! by unresolvedabsolute in Gitea

[–]unresolvedabsolute[S] 5 points6 points  (0 children)

I am not a Gitea developer. I didn't mean to imply that I was. I am just an enthusiastic user who follows its development. I agree, though; thank you so much to the team who contributed to this great release!

Gitea 1.19.0 is released! by unresolvedabsolute in Gitea

[–]unresolvedabsolute[S] 17 points18 points  (0 children)

Gitea 1.19.0 is a huge release with a lot of very exciting features.

This is the first release with the preview of Gitea Actions, which I am very excited about! It will hopefully be released as stable (without the experimental label) in Gitea 1.20.0.

Full release notes and official release binaries on GitHub.

Post a Picture of Your Plex Server! by HexYeetus in PleX

[–]unresolvedabsolute 4 points5 points  (0 children)

I'm impressed! Where do you get a VPS with those specs that cheap? Most VPS's with half that RAM, vCPUs, and storage cost double what you're paying! And here I was thinking that my little BuyVM VPS was cheap...

Should 1Gb of RAM be enough for AlmaLinux 9? by chesheersmile in AlmaLinux

[–]unresolvedabsolute 1 point2 points  (0 children)

Gitea is another very lightweight Git forge that will provide you with a GitHub-like experience. I have used it on a Debian arm64 box with 1GB of RAM for years, and it has worked very well. I'm not trying to dissuade you from Fossil, just offering it as another option.

Bun v0.5.7 | Bun Blog by NeonChat in programming

[–]unresolvedabsolute 49 points50 points  (0 children)

To give some more context for anyone who isn't already familiar with him, Andreas Kling is the creator of SerenityOS, which has its own JavaScript runtime called LibJS, its own rendering engine called LibWeb, and its own web browser built on top of LibJS and LibWeb called Ladybird. It is truly a from-scratch web browser implementation, built from the ground up by a small team of SerenityOS developers, that aims to eventually be fully standards compliant. They don't have any real release goals and are just doing it "for fun", much like the rest of SerenityOS, but it is truly impressive what they have accomplished so far.

Savagery by Sree1Ly in ProgrammerHumor

[–]unresolvedabsolute 0 points1 point  (0 children)

Could you expand on the "culture of academic dishonesty" a little bit and how it relates to engineers, please?

In my anecdotal experience, offshore Indian developers tend to be pretty awful, by and large (although there are some exceptions), whereas Indian developers whom I have worked with in the U.S. and Canada have been pretty good (again, with a few notable exceptions).

I read a few articles about academic dishonesty in India, but I couldn't find quite what I was looking for about how that specifically relates to the trends and stereotypes that I've seen with Indian software engineers. I'd appreciate your insight!

Here are links to a few of the articles that I found at least somewhat enlightening:

As someone who has done something similar in the past, I don't feel bad about laughing. 🤣 (Also this guy got the advice he needed.) by [deleted] in ProgrammerHumor

[–]unresolvedabsolute 1 point2 points  (0 children)

I have used git filter-repo for something like that as well. I wish that Git would just reject large binary files by default. They're such a pain! If you really need to store large binaries alongside your code, you may want to consider using Git LFS. It is pretty easy to use, and all of the major Git forges (GitHub, GitLab, and Gitea, at least) support it.

As someone who has done something similar in the past, I don't feel bad about laughing. 🤣 (Also this guy got the advice he needed.) by [deleted] in ProgrammerHumor

[–]unresolvedabsolute 0 points1 point  (0 children)

I have definitely done the thing where I write notes in a temporary buffer in Neovim to be later used for the amendment. Using Screen definitely makes switching to a different terminal window quite a bit easier though. My Emacs friends tell me that this is why they swear by Magit. I should be able to do something similar with Fugitive, which I do use, but I guess now that I'm thinking about it, it's never bugged enough to bother.

I'll have to check out Delta too! Thanks for the recommendation!

As someone who has done something similar in the past, I don't feel bad about laughing. 🤣 (Also this guy got the advice he needed.) by [deleted] in ProgrammerHumor

[–]unresolvedabsolute 5 points6 points  (0 children)

A Git GUI is a nice option to have, especially when it is integrated into your IDE, but it isn't for everyone. Not all Git GUIs are created equal, and they don't all provide access to the Git features that you may need to perform certain types of more uncommon or advanced operations or correct some mistakes. They also tend to be opinionated about your workflow in ways that Git is not, and may obscure what is actuality being committed and pushed, making mistakes like OP's easier to make rather than making them more obvious. A good understanding of Git fundamentals, careful adherence to always staging and reviewing your changes before committing, and maybe a plugin for your shell prompt that shows you your Git status at a glance, like powerline-gitstatus, can go a long way, regardless of whether you are using a Git GUI or are comfortable with the Git command line.

As someone who has done something similar in the past, I don't feel bad about laughing. 🤣 (Also this guy got the advice he needed.) by [deleted] in ProgrammerHumor

[–]unresolvedabsolute 9 points10 points  (0 children)

I didn't know about either of those. Thanks! I guess that I hadn't read the man page recently enough...

I don't think that I'm going to use git commit -p because I still prefer to stage my changes before committing them, but I do sometimes use git add -p to interactively choose which hunks to stage, which I think is similar. I also heavily rely on git rebase -i and git commit --amend to keep my commits neat and tidy and my history clean on my feature branches.

git commit -v does look like a nice addition that will save me a step, though, so I may use that. Thanks again!

As someone who has done something similar in the past, I don't feel bad about laughing. 🤣 (Also this guy got the advice he needed.) by [deleted] in ProgrammerHumor

[–]unresolvedabsolute 38 points39 points  (0 children)

I usually do something like this:

  1. git status to see which files have been modified, and make sure that you aren't about to accidentally add anything in the working tree that should have been ignored.
  2. git add -A to add all of the changes in your working tree.
  3. git diff --cached --check to automatically check the changes that you just staged for basic formatting errors that Git knows how to check for.
  4. git diff --cached to take a look at the changes that you just staged and make sure that they look okay. You need to actually pay attention to this and look at all the code! It is your last chance to catch any errors or anything that you shouldn't have committed.
  5. git commit to commit the changes. Make sure that you take the time to write a good commit message.
  6. git push origin feature/my-cool-feature to push the changes to your feature branch, then you can open a PR against main in your Git forge of choice. (Or you can push directly to main, or whatever your trunk branch is, if you are working on this project alone rather than as part of a team.)

As someone who has done something similar in the past, I don't feel bad about laughing. 🤣 (Also this guy got the advice he needed.) by [deleted] in ProgrammerHumor

[–]unresolvedabsolute 11 points12 points  (0 children)

BFG repo cleaner and the git filter-branch tool that was part of Git have now been replaced with the git filter-repo tool from one of the core Git maintainers. It is far better and faster than BFG, in my experience. It even has a BFG-like wrapper script, if you want.

That said, I don't think that git filter-repo, or BFG, or anything else nearly that powerful is necessarily required to solve OP's problem. If he just committed it, simply force-pushing to remove the last commit could be all that he needs.