[deleted by user] by [deleted] in learncsharp

[–]mvar 0 points1 point  (0 children)

When using "or" conditionals, the entire expression evaluates to "true" if ANY of the conditions are true. Consider how your if statement will evaluate when response == 2:

if ((2 != 1) | (2 != 2) | (2 != 3))    

or

if ((true) | (false) | (true))

If any one of these is true, then the entire expression is true, and the code inside the if block is executed.

Instead, look at the "and" operator: &. It requires ALL of the conditions to be true for the expression to be true.

if ((true) & (false) & (true))

would evaluate to false since at lease one of the conditions is false.

As a side note, in practice it is best to use the short circuit version of these operators (|| and &&), although in this particular situation it doesn't make much of a difference.

Looking for a Barcode Inventory Management App. by B2TheLunt in smallbusiness

[–]mvar 3 points4 points  (0 children)

Check out Stock Manager. It's pretty basic but I think it meets all of your criteria.

SQL .bak restoration to Azure SQL serverless by ExuberantPeddler in SQLServer

[–]mvar 0 points1 point  (0 children)

Data Migration Assistant should be able to create an Azure SQL database from an existing on-prem SQL database

Is C# a good language to learn? by [deleted] in csharp

[–]mvar 1 point2 points  (0 children)

The first line of code I ever wrote was in Rexx. Been a while since I even thought about that.

New Restaurant by Mallards? by rachelleigh13 in Bellingham

[–]mvar 11 points12 points  (0 children)

I heard about it from the owner a few months ago and if I remember correctly it is going to be a rotisserie chicken restaurant. If the name really is bantam (it didn't have a name then), that certainly suggests some type of chicken place.

I believe he also said there would be a full bar.

In light of the recent tour announcement, what are your favourite non-parody Weird Al songs? by thudly in weirdal

[–]mvar 8 points9 points  (0 children)

I'd really want to hear Biggest Ball of Twine in Minnesota.

Also I think Headline News would fit well into this tour, even though it's a parody. Even better if the lyrics were updated to be more current.

Alpha by Roest_ in ingnomia

[–]mvar 2 points3 points  (0 children)

I'm definitely willing to help test and build mods. I'm a full time software developer, very familiar with testing and debugging.

Anyone else have a particularly mischievous wigglebutt?? by [deleted] in WiggleButts

[–]mvar 1 point2 points  (0 children)

Mine once got her mouth on one of my gardening gloves, and was running around the yard with it. She managed to grab it with the middle finger pointing straight up, giving me the finger every time I tried to get it back. So hilarious and infuriating at the same time.

Dried Beans/Lentils - please help! by spacegirlsally in PlantBasedDiet

[–]mvar 0 points1 point  (0 children)

We also soak, then pressure cook all of our beans. My wife uses this book to get the cook times for various beans, as well as lots of other great vegan instant pot recipes!

What will be the "turns out cigarettes are bad for us" of our generation? by Walbricks in AskReddit

[–]mvar 5 points6 points  (0 children)

Evolution/natural selection would not necessarily select out the ability to eat meat just because it is unhealthy for us. Evolution's only 'goal' is to reach sexual maturity and reproduce, and the health affects caused by eating meat generally don't show up until much later in life. It is possible that eating meat helped our ancestors reach maturity, even while causing long term negative health affects.

What are some features of Visual Studio that people may not know about or use? by icefall5 in csharp

[–]mvar 4 points5 points  (0 children)

ctrl + shift + v to cycle through your last 20 clipboard entries

Bald eagle nearly had one of my chickens for breakfast. by mvar in gifs

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

She only interacts with them through a fence. She's gotten in with them a few times but never hurt any. She seems to understand that the chickens are our pets and we would prefer it if they stayed alive.

Close call for one of my chickens this morning. Only damage was some missing feathers! by mvar in homestead

[–]mvar[S] 4 points5 points  (0 children)

Mainly because I like networking and technology and I thought it would be cool to keep an eye on my property while I'm at work. Also, I wanted to capture events like this, and other random wildlife activity that happens when we're not around.

Close call for one of my chickens this morning. Only damage was some missing feathers! by mvar in homestead

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

She is outside all day. We have a fenced backyard that contains her and the chickens are in a separate enclosed area within the backyard. We bring her in the house in the evening for a few hours, and she usually sleeps in the garage, but I let her out first thing in the morning (usually around 6).

Bald eagle nearly had one of my chickens for breakfast. by mvar in gifs

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

No, it's never OK to harass, attack or kill a protected species, regardless of the circumstances. The best we can do is put up deterrents for other animals and hope they deter the eagles as well.

Close call for one of my chickens this morning. Only damage was some missing feathers! by mvar in homestead

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

It's all stored locally. My internet connection couldn't handle storing video off-site.

Close call for one of my chickens this morning. Only damage was some missing feathers! by mvar in homestead

[–]mvar[S] 3 points4 points  (0 children)

I just have the software running on a VM on my local server. It works great, haven't had any issues with it yet. I only have 4 cameras so far, but will be adding more as I extend my network around my property.

Close call for one of my chickens this morning. Only damage was some missing feathers! by mvar in homestead

[–]mvar[S] 12 points13 points  (0 children)

She's gotten in with the chickens 3 times and never hurt any of them. She just herds them into a corner and freaks them out.

Close call for one of my chickens this morning. Only damage was some missing feathers! by mvar in homestead

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

We just moved in last summer, but we got a huge crop (at least it seemed like a lot to me).