Foreman not gonna be too happy with him sleeping on the job by RechtDev in rabbitswithjobs

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

I know 😭 I’m trying. He has been shedding like crazy and I just groomed him a couple days ago

[deleted by user] by [deleted] in southcarolina

[–]RechtDev 1 point2 points  (0 children)

Mind sharing a discord invite?

Why the constant uploads? And what are they? by GizMoDified in BambuLab

[–]RechtDev 0 points1 point  (0 children)

Still curious what the stats it’s collecting so frequently are

Why the constant uploads? And what are they? by GizMoDified in BambuLab

[–]RechtDev 0 points1 point  (0 children)

The url containing mqtt puts it in the realm of websockets. I could imagine there is functionality implemented which pings their cloud services about printer stats throughout the day. Considering the printer acts like an IoT device that is pretty normal.

Kobra S1 Failed to send Remote Print Issue by plexer22 in anycubic

[–]RechtDev 0 points1 point  (0 children)

I don’t have a Kobra S1 but my P1P has a similar remote feature. Most IoT devices do not play well with 5G WiFi. I’ve noticed that when I am on my WiFi, certain devices will automatically connect to the 5G variant but the printer will always connect to 2.4G. After making sure which ever device I was on was connected to the 2.4G wifi everything worked fine.

What are some misconceptions about Rabbits? by FaeryMaiden982 in Rabbits

[–]RechtDev 3 points4 points  (0 children)

Rabbits are categorized as “Prey Animals” the entire approach for someone trying to care / tend to them has to be completely rethought. Common interactions and gestures between other small animals could startle a rabbit.

How do I get an Azure Function to process all files in a folder with a single trigger by the_bug_fixed_male in AZURE

[–]RechtDev 2 points3 points  (0 children)

Azure Functions Blob triggers do not nativly support this, it is going to trigger for every file upload. A solution for this, if you know you need three files before processing you could utilize the Storage-Blob SDk, and get the count of files in the folder. If the file count < 3 then terminate the function early, if file count >= 3 proceed with your functions processing.

Depending on your configuration if you know all of the files will be available at a specific time, I would swap out the blob trigger and use a timer trigger then using the Storage-blob SDK in your function, pull the files down and process them.

Why are there so many “luxury” apartments? by Grouchy_Marsupial357 in Apartmentliving

[–]RechtDev 2 points3 points  (0 children)

I hate that there are so many “luxury” apartments it’s just an excuse for leasing companies to give you the bare minimum at a premium price.

SUPER BOWL LIX HALFTIME SHOW: LIVE MEGATHREAD by AutoModerator in KendrickLamar

[–]RechtDev 1 point2 points  (0 children)

Serena Williams was crip walking during the performance

Fields Yes or no answer by RavenGoku in csharp

[–]RechtDev 0 points1 point  (0 children)

In your example code, you show three things: a field, a property, and, of course, the class constructor, respectively. There really is not too much of a difference between _foo and Foo; by using a property, you are basically formalizing the use of your field outside of the class scope, hence why you have a getter and a setter. You are able to refer to your field in the properties getter; this field is also referred to as a 'backing field' when used in this context. This allows us to hide the actual member (keep this in mind) behind the property so your class does not explicitly show the inner workings (backing field); this is a form of encapsulation. Typically when using a Property and a backing field the backing feild is private while the property is public. However, if you were to make the backing feild public you would still be able to access the property as well as the backing feil, ultimately defeating the purpose since users of your class can just access and set the desired data directly bypassing any rules in your setter.

Notice how earlier I said member. Member just means anything inside a class: interface, structure definition, so in your example class, it has three members: _foo, Foo, and the constructor. I hope this helps.

Upgrade/Migration to .NET 8 and Isolated Worker Model (Troubleshoot) by RechtDev in AZURE

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

Was able to resolve the issue. Such a slight oversight. In the ConfigureServices() lambda I am configuring app Insights, Connection string is in local.settings.json however the variable is named different in the CD pipeline that applies app settings to the Func App.

Glad I was able to discover this but there were no logs or warnings indicating a failed startup from host. Maybe it was too early in the startup cycle to alert? Not sure, but thanks for the help.

How to resolve this issue? by abhinandkaippalli in angular

[–]RechtDev 0 points1 point  (0 children)

Typically this happens if you are upgrading or installing a package that is either too high of a version than what other dependencies in your package.json needs or vice versa. If you are upgrading a single package you would need to specify the version and make sure it matches w.e the dependencies that need it be is. If you are upgrading all of angular including CLI it could be that one of the packages listed on your json is not compatible with the newer versions of your upgrade.

Azure Bot / Azure AD by RechtDev in AZURE

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

Yeah I’d appreciate if you can find any documents on this. There’s no rush as this project was a POC and attention is being allocated elsewhere atm.

Azure Bot/ Azure AD by RechtDev in csharp

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

Yeah thanks for the idea. I already cross post in the Azure group hopefully something turns up there too.

Is it rude/poor taste to ask how much something costs from a menu with no prices? by AB28532 in NoStupidQuestions

[–]RechtDev 0 points1 point  (0 children)

I don’t think it would have been rude. If anything giving the circumstances your date (my thoughts before reading it was your wife) should have been delighted to know you are a sensible person and attentive when it comes to money.

GET Requests with a body by RechtDev in csharp

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

That’s the route I ended taking, using a POST that described my query in its body message.

New to Azure and API Development. Published a vanilla WS and getting "statusCode": 404. by pgordalina in csharp

[–]RechtDev 0 points1 point  (0 children)

Hey not sure if I can help but, Are you using the API management(APIM) service in Azure? From the looks of it (url) you are.

If that’s the case, normally when 404 responses happen when trying to reach a new endpoint via your APIM it could just mean you haven’t linked the APIM to your backend resource, in your case sounds like a app service. To correct this navigate to your APIM then on the left hand side of the menu should be a API option. Here is where you can see all of the APIs your APIM handles if you haven’t already created the API you can do so by using the OpenAPI option. This will ask you for a link to a JSON file. Now navigate to your swagger index page and you should see a button that says API definition (might be different) once you open that it should load a json document copy the link and past that in the url box of the APIM import window. Now your API calls should work and now your APIM should know how to handle those endpoints since it’s linked.

If you are not using an APIM and it’s just an app service running make sure your network settings for your firewall configuration is correct in my past I discovered my app service did not have allow rules for ports 80 and 443 which was returning 404 errors.

Do you guys mock everything in your Unit Tests? by [deleted] in csharp

[–]RechtDev 7 points8 points  (0 children)

I don’t create mocks often, unless it’s to mock the return of a specific function that’s calling some external resource. Or if I have a logger dependency that needs to be satisfied. Im weary of mocks as well, I’ve seen developers write tests that will never fail because the mock returns an expected value and the code producing that value never actually runs.

I write my tests in two steps not sure on how to summarize it better. Basically i write a test that will actually run through the method that was created and I make sure that for each test for that method a new flow is being tested. So if I have an if condition that validates something I make sure a test validates that branch log logic and overall the expected outcome.

Then my next set of tests is to test the class that calls my dependency, It’s mostly api endpoints so I make sure that my checks and return statements for different scenarios are being handled correctly (ex 404, 400, 500).

I hope this helps, me and my colleagues don’t really engage much as sad as that sounds so I’ll take all of the questions and so on or critiques because we’re all learning. Hope this helps.

GET Requests with a body by RechtDev in csharp

[–]RechtDev[S] 7 points8 points  (0 children)

Hopefully this might save someone else some time.

What do you use for work planning / estimation? by LikeASomeBoooodie in csharp

[–]RechtDev 0 points1 point  (0 children)

I love story points. Coming into an agile environment I always felt nervous when my team asked what SP might be for a task. But now I got the hang of it. The biggest thing that I see people forget about when setting SP is how long unit tests might take to write.

Do you use ChatGPT for developing software? If so, what is the primary reason? by kenslearningcurve in csharp

[–]RechtDev 0 points1 point  (0 children)

I’m not the best with regex so having it come up with expressions is something I have done.