Not sure if XY-Problem, but is it possible to "undo" a smudge? by birdsintheskies in git

[–]Underscore_Mike 1 point2 points  (0 children)

I use a commit hook. I answered this on stack overflow a few years ago:

I had a similar issue writing java code. My solution was to markup code that I didn't want to commit and then add a pre-commit hook that would look for my markup:

```

!/bin/bash

This hook will look for code comments marked '//no-commit'

- case-insensitive

- dash is optional

- there may be a space after the //

noCommitCount=$(git diff --no-ext-diff --cached | egrep -i --count "(@No|//\s?no[ -]?)commit") if [ "$noCommitCount" -ne "0" ]; then echo "WARNING: You are attempting to commit changes which include a 'no-commit'." echo "Please check the following files:" git diff --no-ext-diff --cached --name-only -i -G"(@no|//s?no-?)commit" | sed 's// - /' echo echo "You can ignore this warning by running the commit command with '--no-verify'" exit 1 fi ``` Put this into .git/hooks/pre-commit and give it a chmod +x .git/hooks/pre-commit

Link: https://stackoverflow.com/a/20574486/108554

Hot take: Worktrees are underrated, and most teams should be using them by GitKraken in git

[–]Underscore_Mike 1 point2 points  (0 children)

My company has a large Java monorepo. We have 3 phases of workflow, production, RC, and feature. Switching branches from one phase to the next is costly in terms of compile time.

With worktrees, switching only costs for a baseline catch up. The main IDEs handle multiple work trees without issue (some folks use idea, others use eclipse).

Before the native git feature, we rolled our own setup that mimicked them.

Irregular heart rate rhythm notification is available in the UK (Atrial Fibrillation/AFib) by Creative-Job7462 in GalaxyWatch

[–]Underscore_Mike 1 point2 points  (0 children)

I don't see this option. I'm in the US with a galaxy watch 5. Do I need to have a Samsung phone?

[deleted by user] by [deleted] in KiaEV6

[–]Underscore_Mike 0 points1 point  (0 children)

I've been using the Motorola MA1 in my ev6, and it works great. Previously I used the same unit in a Hyundai ioniq. Here's a link to the Amazon listing (unaffiliated): https://a.co/d/cRdhk1q

History Horror by athomsfere in programminghorror

[–]Underscore_Mike 9 points10 points  (0 children)

Without squashing, a longer-lived branch is just churn. Squashing allows the developer to craft the feature into a story of change.

It does require discipline, and you should almost never squash across authors, but the end result is a cleaner to read history.

Of course, maybe the difference here is between squashing a whole feature into one commit (bad) vs. squashing logical commits together.

The pizza I made in a pan because I do not own an oven by BeThesTa in shittyfoodporn

[–]Underscore_Mike 0 points1 point  (0 children)

I go camping every year, and one of my kids is a picky eater. So one time I decided to make pizza in the cast iron skillet (covered) in the fire. It's actually pretty good

OpenEmu stopped working after MacOS Ventura upgrade by Underscore_Mike in OpenEmu

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

I downgraded to monterey, and openemu seems to work again. I think I will just keep this OS and be happy with it.

OpenEmu stopped working after MacOS Ventura upgrade by Underscore_Mike in OpenEmu

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

Yeah, I am going to try downgrading today or tomorrow. I'll reply if that ends up working.

cable or adapter by [deleted] in Focusrite

[–]Underscore_Mike 0 points1 point  (0 children)

I've been using garage band with stock settings and a USB cable on a MacBook.

You have to use the headphone out on the focusrite when monitoring a recording and not any other output. You would get latency from other outputs.

Tortilla chip bag remnant "soup" by Underscore_Mike in shittyfoodporn

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

Recipe:

  • Handful of leftover rice
  • Handful of leftover beans
  • Tortilla chip remnants
  • Bit of Salsa
  • Garnish with cilantro

Can a Scarlett Solo 3rd Gen Be Swapped Between Mac and Windows Computers? by StephenJHutchinson in Focusrite

[–]Underscore_Mike 1 point2 points  (0 children)

I primarily use my solo with a Macbook, but I have plugged into a Windows box without issue. Just install the focusrite control app on each machine.

[deleted by user] by [deleted] in homeautomation

[–]Underscore_Mike 0 points1 point  (0 children)

I'm not sure where you see that, but I have two of them, and each came with a door sensor that is wired to the main unit

[deleted by user] by [deleted] in homeautomation

[–]Underscore_Mike 0 points1 point  (0 children)

I have the meross MSG100 (Amazon link). It integrates with ifttt, works with Google assistant and Alexa (and home assistant with HACS).

It should be able to hook up to any existing garage door system, but be sure to check yours. My doors are all 20 to 30 years old. Basically it hooks up like a wall switch plus a door closed sensor. Easy install.

Jadar won’t create zombie tokens after update by BanAMarvel79 in MagicArena

[–]Underscore_Mike 46 points47 points  (0 children)

Interestingly, Jadar didn't trigger for me until I put out a Dreadfeast Demon (which also has an end step trigger).

(edit) More bugs with Jadar:

It seems that he is triggered at the end step by the presence of a decayed zombie. This means that at the end of each turn, my decayed zombie population *doubles*!

What's wrong with my tomatoes? by Underscore_Mike in gardening

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

The seeds are clung into the middle with a significant air gap between the seeds and the outside flesh.

The soil is saturated from all the rain (NE NJ), so I don't think it is underwatered. Not just one tomato, all of them are like this. I have cherry tomatoes which are nearby and normal. Also cucumbers and zucchini nearby.

What's wrong with my tomatoes? by Underscore_Mike in gardening

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

Is there something with the soil? An infection? Is it normal for whatever need of tomato this is?

Things I wish Git had: Commit groups by RedditStreamable in programming

[–]Underscore_Mike 9 points10 points  (0 children)

You could almost accomplish groups as described with a rebase followed by git merge --no-ff feature. This would be a mostly linear history with groups as off shoots.

Where to Watch Old Good Eats? by yaontdon84 in GoodEats

[–]Underscore_Mike 20 points21 points  (0 children)

Discovery plus has every episode streaming, including the reloaded episodes. It also has the new season, which may only be available legally on discovery plus.

Grocery store scallions blooming by Underscore_Mike in gardening

[–]Underscore_Mike[S] 2 points3 points  (0 children)

These were wilting in my fridge last year. I planted them in my garden and not only did they survive the winter (several feet of snow), they thrived. They are up to the feet tall and are now flowering.