mooo

https://ift.tt/2O3UUWd via /r/aww https://ift.tt/30ciZx3

https://ift.tt/2PgsJE1 via /r/houseplants https://ift.tt/3bQVZbY

https://ift.tt/3stU8R6 via /r/OldSchoolCool https://ift.tt/3kvY2pR

https://ift.tt/3dTp5KA via /r/toronto https://ift.tt/3dT8ars

https://ift.tt/3b1DSB6 via /r/aww https://ift.tt/2NLUqUV

https://ift.tt/3kyyvMI via /r/interestingasfuck https://ift.tt/2O9X6eY

https://ift.tt/3bM4x43 via /r/funny https://ift.tt/3dO0Ihs

https://ift.tt/3bLDpC7 via /r/NatureIsFuckingLit https://ift.tt/37S9TJJ

No text found via /r/quotes https://ift.tt/3dYGamB

https://ift.tt/2ZYGfOW via /r/toronto https://ift.tt/3kyAQHB

https://ift.tt/3dT6iin via /r/todayilearned https://ift.tt/2P72bF9

Recently I’ve posted a question – what is the most difficult for you to understand when you’re learning C#? https://ift.tt/3aYfyjC of the things that you guys have mentioned was interfaces. Let’s put some light on interfaces and their purpose.What is an interface?You can think about an interface as a contract that the class implementing that interface has to fulfill. We can say that interface tells us WHAT needs to happen. The class needs to “worry” about HOW to do it. Interface can declare property, event, or method.public interface ISampleInterface { string Name { get; set; } // Property event Action SomethingHappened; // Event int Add(int a, int b); // Method } ExampleLet’s take a look at the INotification interface.interface INotification { void Send(string message); } It has only one method declared. The method is Send, which takes message parameter, type of string. Its purpose is to mark the class that implements its interface as a class that can Notify a user about something, by sending a message.Let’s take Email Notifications on the wallpaper.class EmailNotification : INotification { public void Send(string message) { // code responsible for sending email } } The interface is forcing EmailNotification class to implement (write code to execute) Send method. Class implementing an interface has to have exactly the same method declaration.Does the INotification interface care about the technical details of how the email notification is sent?Nope, it doesn’t. All it has to do is to make sure that this class declares to have the method that is contained in the interface. Technical details are not important. The implementation can be either written by a developer or delegated to an external library.The important thing is that the class implementing INotification interface declares that it’ll send a message to the user, somehow. Class implementing an interface provides an implementation of declared functionalities.Let’s look at example usage. Something happened in the system and it should notify the user about that with some kind of message. Notification preferences normally would be taken from some kind of storage, like a database. For this example, I just used a manually initialized list.Notice that I am able to initialize a list with the type of Interface that has been declared. Classes implementing this interface can be added to such a list. Thanks to that, in foreach loop, I can execute .Send(string message) method declared by the interface. In effect, user would be notified of every preferred notification method. static void Main(string[] args) { var notificationPreferences = GetUsersNotificationPreferences(); foreach (var notificationPreference in notificationPreferences) { notificationPreference.Send(args[0]); } } static List GetUsersNotificationPreferences() { // This should come from user’s preferences, // which could be stored in database for example return new List { new EmailNotification(), new SmsNotification(), new PushNotification() }; } Default implementationSince C# 8.0 an interface may provide a default implementation. It may also define static members in order to provide a single implementation for common functionality.public interface ILogger { void Log(string message) => Console.WriteLine($”Log: {message}”); } I am programming mostly in medium-large scale business web applications and we haven’t really used it too much. My recommendation is not to abuse it and think twice about whether you really need to have a default implementation.Class can implement multiple interfacesOne class can implement multiple interfaces.class EmailNotification : INotification, ILogger { public void Send(string message) { // code responsible for sending email } public void Log(string message) { Console.WriteLine($”Email sent with message: {message}”); } } Interface can implement another interfaceinterface INotification : ILogger { void Send(string message); } Then every class implementing that interface needs to implement the other one as well.Ok, but how does it help me? Do I really need to split things into WHAT (interface) and HOW (class) to do my project? Well… Interfaces are part of something bigger. But to give you one small example. If you’ve heard about Dependency Injection you may recall that abstractions should not depend on details. For a simple example, think about architecture with layers. Let’s say that there are only two layers, outer and inner. The outer layer declares an interface saying that I need you (the inner layer) to do something. For example, send an email. An engine that is responsible for running the application starts executing a piece of code of the outer layer that declares the need to send an email. Then, it looks for implementation of that interface, so a class that knows how to send an email. How does the “engine” know what class to provide here? It’s all set up in something called dependency injection’s container, but that’s definitely for another topic.Those are the next steps. I hope I’ve been able to make interfaces at least a little bit more understandable.Is there something else that bothers you about interfaces? via /r/learncsharp https://ift.tt/3b0vH83

Interfaces explained

Recently I’ve posted a question – what is the most difficult for you to understand when you’re learning C#? https://ift.tt/3aYfyjC of the things that you guys have mentioned was interfaces. Let’s put some light on interfaces and their purpose.What is an interface?You can think about an interface as a contract that the class implementing that

Read More

https://ift.tt/2NDiJ7C via /r/interestingasfuck https://ift.tt/3q3T2dg

https://ift.tt/3sySHRz via /r/OldSchoolCool https://ift.tt/3aZxASv

https://ift.tt/37SgXpO via /r/funny https://ift.tt/3r1uBhR

https://ift.tt/3pVrCpT via /r/pics https://ift.tt/3su1kNl

https://ift.tt/3aZhrg3 via /r/DIY https://ift.tt/2NJsEs8

https://ift.tt/3sxKugp via /r/plantclinic https://ift.tt/3swzKir

Hi guys,Today I am writing about ML.NET and Model Builder in Visual Studio. I think every developer at least should be familiar with this tool. In 4 simple steps you can build up and train a model. Microsoft did a fantastic job in simplifying Deep Learning.AutoML automatically explores different machine learning algorithms and settings. This allows us to find the best possible model for our scenario. This way we don’t have to worry about NN Layers, architecture and hyper parameters.TF.NET is a C# wrapper class for Tensor Flow. Now we can import Tensor Flow models into our .NET environment with just couple of lines of code.I am very happy about this, and so I am writing this new blog post explaining all there is to build up a simple image classification model. The focus being on how to work with the Model Builder and explaining the things it does for us.How to use ML.NET Model Builder for Image Classification – CODE-AI (code-ai.mk)I did my best to explain all there is to know on the subject without going into too much detail. I will post more tutorials and more examples soon. I am working on a complete series on how to use ML.NET in different project scenarios and how to import Tensor Flow models in .NETThank You, via /r/csharp https://ift.tt/2ZU3KbA

Deep Learning with ML.NET and Model Builder in Visual Studio

Hi guys,Today I am writing about ML.NET and Model Builder in Visual Studio. I think every developer at least should be familiar with this tool. In 4 simple steps you can build up and train a model. Microsoft did a fantastic job in simplifying Deep Learning.AutoML automatically explores different machine learning algorithms and settings. This

Read More

https://ift.tt/3swu9sr via /r/interestingasfuck https://ift.tt/3dVUWdB

https://ift.tt/3sxKugp via /r/plantclinic https://ift.tt/3swzKir

https://ift.tt/2NNDZXW via /r/OldSchoolCool https://ift.tt/3sy9hRz

https://ift.tt/3aH6EH8 via /r/Damnthatsinteresting https://ift.tt/2NR5e3S

https://ift.tt/2ZyLrc7 via /r/reactiongifs https://ift.tt/3dvZ4AX

https://ift.tt/3uCZNq8 via /r/interestingasfuck https://ift.tt/3ktZSrt

https://ift.tt/3dO7TGr via /r/aww https://ift.tt/3uDHYr4

https://ift.tt/3891n9J via /r/aww https://ift.tt/3sv5sN1

https://ift.tt/3r2E3lo via /r/interestingasfuck https://ift.tt/3sIPRtx

https://ift.tt/3uBPC4T via /r/mildlyinteresting https://ift.tt/3uwcQcZ

https://ift.tt/3r2E3lo via /r/interestingasfuck https://ift.tt/3sIPRtx

https://ift.tt/2ZyLrc7 via /r/reactiongifs https://ift.tt/3dvZ4AX

https://ift.tt/3aGkmK4 via /r/mildlyinteresting https://ift.tt/3aEiC47

https://ift.tt/1HNeZPZ via /r/todayilearned https://ift.tt/2OTJfJV

https://ift.tt/3aYpCJw via /r/interestingasfuck https://ift.tt/3dJkNWa

https://ift.tt/2NIv1Lp via /r/mildlyinteresting https://ift.tt/3bpRYLB

https://ift.tt/3qOOzMN via /r/pics https://ift.tt/3usmayc

https://ift.tt/3qKHuNr via /r/Damnthatsinteresting https://ift.tt/3qP4I4M

https://ift.tt/37QeOv0 via /r/interestingasfuck https://ift.tt/3pP2d1a

https://ift.tt/2ZK2doD via /r/interestingasfuck https://ift.tt/3bB2QX0

https://ift.tt/1IEhODQ via /r/todayilearned https://ift.tt/3qJsFuk

https://ift.tt/3qJDXyF via /r/pics https://ift.tt/3aHIrjH

https://ift.tt/3dNt0st via /r/interestingasfuck https://ift.tt/3bIdpYj

https://ift.tt/1HNeZPZ via /r/todayilearned https://ift.tt/2OTJfJV

https://ift.tt/2ZJjUVp via /r/science https://ift.tt/2MjIp8o

https://ift.tt/3krAra7 via /r/Damnthatsinteresting https://ift.tt/3qMiDsu

https://ift.tt/3dJMePC via /r/pics https://ift.tt/3bCqzGt

https://ift.tt/3kma8lj via /r/funny https://ift.tt/3qSnU1M

https://ift.tt/3pFIRLY via /r/interestingasfuck https://ift.tt/3buhxeo

https://ift.tt/3pWCxQc via /r/interestingasfuck https://ift.tt/2NyU7wN

https://ift.tt/3stHWzT via /r/OldSchoolCool https://ift.tt/3kp17It

https://ift.tt/2ZVI8M2 via /r/ontario https://ift.tt/3bEzmYp

https://ift.tt/3bGh6xD via /r/worldnews https://ift.tt/2MrhpUF

https://ift.tt/3aTfMbA via /r/todayilearned https://ift.tt/3qYlOxd

https://ift.tt/2ZSy8U0 via /r/OldSchoolCool https://ift.tt/3ksvgq5

https://ift.tt/2O2SbfE via /r/ontario https://ift.tt/3uykoMf

https://ift.tt/3kq6x67 via /r/interestingasfuck https://ift.tt/3bUYvOP

https://ift.tt/3bA1ADC via /r/aww https://ift.tt/3qWzBo8

https://ift.tt/3aTfMbA via /r/todayilearned https://ift.tt/3qYlOxd

https://ift.tt/3swfQEl via /r/plantclinic https://ift.tt/3dHEGwR

https://ift.tt/2Mn7zmB via /r/mildlyinteresting https://ift.tt/2O2FJwj

https://ift.tt/3aPg2Z6 via /r/BuyItForLife https://ift.tt/3qUVHY1

https://ift.tt/2nhIdZf via /r/programming https://ift.tt/3pLNpk1

https://ift.tt/3pSSQO6 via /r/worldnews https://ift.tt/3ktvf5y

https://ift.tt/2ZKQ5ni via /r/canada https://ift.tt/2Pb5MSP

https://ift.tt/3ksBu9K via /r/BeAmazed https://ift.tt/3qWjaIg

https://ift.tt/3khaxpr via /r/graphic_design https://ift.tt/3kkxSXc

https://ift.tt/2NGg38W via /r/interestingasfuck https://ift.tt/37Ksl7o

https://ift.tt/3qXAixp via /r/interestingasfuck https://ift.tt/2P65EUp

https://ift.tt/3dI2S24 via /r/plants https://ift.tt/3dLMJbO

https://ift.tt/1NNikXF via /r/todayilearned https://ift.tt/3unOMJ4

https://ift.tt/3dGLNWc via /r/houseplants https://ift.tt/3uppRF0

https://ift.tt/2NTsQ7Q via /r/funny https://ift.tt/3dSHhEn

https://ift.tt/3pP77eD via /r/houseplants https://ift.tt/2MiPExl

https://ift.tt/3aP1LMf via /r/ontario https://ift.tt/3bDGaFs

https://ift.tt/3kkqLOg via /r/woodworking https://ift.tt/3brReFC

https://ift.tt/3dUmmkj via /r/houseplants https://ift.tt/3skPh4Q

https://ift.tt/2NYhm2M via /r/GetMotivated https://ift.tt/37F1skU

https://ift.tt/3aQdeuS via /r/houseplants https://ift.tt/3aQdf1U

https://ift.tt/2ZHCNIf via /r/funny https://ift.tt/3aLxApe

https://ift.tt/3dwg6yV via /r/funny https://ift.tt/3aGiotu

https://ift.tt/3qErJav via /r/funny https://ift.tt/3qBmics

https://ift.tt/3s4yNh0 via /r/funny https://ift.tt/2OM5p0C

https://ift.tt/3sfuz6e via /r/funny https://ift.tt/2M9AQ44

https://ift.tt/2MdIP0b via /r/funny https://ift.tt/37CMjAD

https://ift.tt/3bueRxB via /r/funny https://ift.tt/2NRcOeR

https://ift.tt/37vL7ip via /r/funny https://ift.tt/3uhgcjB

https://ift.tt/3b9GKuo via /r/funny https://ift.tt/2NfTCr7

https://ift.tt/3aBlwqe via /r/funny https://ift.tt/2ZAqrSi

https://ift.tt/3kd3Pkl via /r/funny https://ift.tt/37sU5wX

https://ift.tt/3scSfZb via /r/funny https://ift.tt/3sagjfk

https://ift.tt/3aINWPg via /r/funny https://ift.tt/3uwQyrw

https://ift.tt/3qRYhxU via /r/funny https://ift.tt/3aOWBjm

https://ift.tt/3s67PWw via /r/funny https://ift.tt/3s8GUZQ

I posted a few months ago about the Wrapt framework that I made to scaffold out web api’s using a single CLI command and a yaml or json file that describes the API. I’ve continued working on it over the past few months and wanted to share the latest with the community.I just pushed a new release last night that enables microservice and gateway scaffolding along with lots of clean up. Additionally, I added detailed Authorization scaffolding capabilities for both microservices and web apis. This includes updates to the wrapt docs to detail all of the new features and new a new repo of examples to augment those on the docs site.Of particular note, I spent a lot of time the past few months deep diving auth and put together a (living) docs page on working with auth in .NET 5 for anyone that’s interested. It obviously covers how to use Auth in Wrapt, but also hits on everything from basic jargon clarity to setting up an authentication server with Duende.Some upcoming updates:More auth enhancements (current user, auditable tracking, etc.)A cookie management BFF so you can use cookies with SPAsEasy deployment with Docker and moreComplementary front end scaffolding with React, NextJs, BlazorLots of new commands for easily managing your projects over time via /r/dotnet https://ift.tt/3dFkStV

I expanded my custom CLI to scaffold .NET 5 microservices, gateways, and Web APIs that includes easy JWT Authorization set up. It also includes a lot of doc updates, including how to work with auth in .NET 5

I posted a few months ago about the Wrapt framework that I made to scaffold out web api’s using a single CLI command and a yaml or json file that describes the API. I’ve continued working on it over the past few months and wanted to share the latest with the community.I just pushed a

Read More

Just a cross post of a thread I posted in r/realestateinvesting.Just wanted to counter the post from a few days ago.”This is becoming an everyday post with continued discussion so I wanted to address the macro factors playing into this.Assuming Biden’s $1.9t stimulus is passed ~40% of ALL US dollars in circulation will have been PRINTED in the last 12 months. It’s insane to think about how much capital has been injected into this economy.Now the obvious follow up question is well then inflation will be crazy, right? Short answer is no one really knows. The US Gov’t has openly said the that are unsure, exactly, how inflation runs. The idea is that it’s the correlation between the amount or dollars * the velocity of said dollar (how many times it’s spent).” – /u/SFRInvestmentsThe US Fed has said themselves that they will target an inflation % greater than 2% to hit a long term 2% average. I’m not the smartest but one thing I have learned is to never try and fight the Fed. If they say they want greater than 2% they have a variety of tools they can use to get there. Including the hundreds of billion from the treasury general account they are unleashing in the coming months. I also expect money velocity to pick up as the economy reopens and money start changing hands.A similar story is starting to unfold in CanadaStatistics Canada backtracked on its decision to revise down estimates of underlying inflation, raising questions whether the agency has a full grasp of the real state of price pressures in the economy.In a rare move, the agency said Monday it’s reversing a methodological change — unveiled only five days ago — that lowered some readings of core prices. After receiving negative feedback from economists over the change, Statistics Canada said it reverted to its old methodology and will study the matter further.Source: https://www.youtube.com/watch?v=QRTMuAjtfnESource: https://ift.tt/3usneSV thing I don’t see mentioned much around this sub is the fact the 10 year bond is starting to increase already. So what does inflation have to do with this? So let’s say you are about to lend the government money and inflation is 5%. Would you accept a 1.5% return on those bonds to be losing 3.5% overall or would you say fuck that I’m only buying them for 6.5%? This is what is causing the 10 yr yield bond to increase.It is believed by many that the government would never let it raise too far and would have to implement yield curve control due to all the debt they ran up. However, that is a logical fallacy. The debt they already issued is at a fixed rate and will not increase. There is no reason they cannot let the curve increase to 3-4-5-6% and just issue more short term T-Bills.”history shows that hard assets keep pace with inflation quite well in the long term, so if you think we will see higher inflation, RE should be a good hold as a wealth preserver.” – /u/gobsmashedThis is another common fallacy I see, hard assets don’t traditionally follow inflation. They follow the real bond yield (nominal yield minus inflation). Just compare gold prices to the following: https://ift.tt/37G4u8Q needs to ask themselves the implications 3-4% mortgage rates would have on real estate prices. I’m sure this thread won’t do as well here since anyone who says housing isn’t going up 20% yoy is labeled a nutter. However, I suggest everyone is careful and think of the bigger macro economic picture.https://ift.tt/37IrqUZ via /r/PersonalFinanceCanada https://ift.tt/2O0jirW

Housing prices are insane MY thoughts of where we are heading.

Just a cross post of a thread I posted in r/realestateinvesting.Just wanted to counter the post from a few days ago.”This is becoming an everyday post with continued discussion so I wanted to address the macro factors playing into this.Assuming Biden’s $1.9t stimulus is passed ~40% of ALL US dollars in circulation will have been

Read More

https://ift.tt/3qO5sY9 via /r/OldSchoolCool https://ift.tt/3sr8Atp

https://ift.tt/3aN7lyA via /r/funny https://ift.tt/3dGaCSj

https://ift.tt/37DuAsU via /r/pics https://ift.tt/37HiH5g

https://ift.tt/3usBvif via /r/aww https://ift.tt/3dAz1sm

https://ift.tt/3kg5sO3 via /r/pics https://ift.tt/2OSJHIn
1 94 95 96 97 98 169