Sunday, January 31, 2021

How do you react to Programming errors?

 How do you react to Programming errors?

Sometimes its easier just to "vent" the problem, and then come back to the issues at hand after you have released your stress. Preferably.. in a non-destructive way!

Check out this comedy of errors so to speak:




Saturday, January 23, 2021

How to Authenticate your new dotnet5 MVC app with Google (the EASY way)

 Follow these SIMPLE instructions to Authenticate your new dotnet5 MVC app with Google (the EASY way) :

Note: you might need to install the dotnet framework toolset first, and the dotnet framework development toolkit. I recommend the windows terminal which is basically powershell with a package manager inside of it.

And if you prefer to watch it in a video I made one of those as well here:



first go here and create your credentials...:  https://console.developers.google.com/apis/credentials


then commandline time:


dotnet new mvc -o MyApplicationName --auth Individual

dotnet add package Microsoft.AspNetCore.Authentication.Google

dotnet user-secrets init

dotnet user-secrets set "Authentication:Google:ClientId" <MyClientIDSecret>

dotnet user-secrets set "Authentication:Google:ClientSecret" <MyClientSecret>

dotnet add package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore

dotnet add package Microsoft.EntityFrameworkCore.SqlServer

dotnet add package Microsoft.AspNetCore.Identity.UI

dotnet tool update --global dotnet-ef

dotnet ef migrations add InitialCreate

dotnet ef database update


then open in visual studio or vs code and change the code:


just above addControllersWithViews:


services.AddAuthentication()

            .AddGoogle(options =>

            {

                IConfigurationSection googleAuthNSection =

                    Configuration.GetSection("Authentication:Google");


                options.ClientId = googleAuthNSection["ClientId"];

                options.ClientSecret = googleAuthNSection["ClientSecret"];

            });


add [Authorize] to home controller

add [Allowanonymous] to index


If you liked this video, be sure to bookmark my blog, and subscribe to my YouTube channel -> as of today (january 2021) I do more on YouTube than in blogs, but that is subject to change.



Saturday, September 19, 2020

Your boss just saw a dirty email! Oh snap! DataVids to make you laugh, and to prevent this!

Ok so your boss walks in, and your email is up on the screen!!!

If I have to say more, then you are super responsible with corporate tech and follow all the rules and blah blah blah.. well even if you are, keep reading this may help with a different / more applicable situation.

So, create folders (or if this is Gmail, then its called labels) to store personal emails related to football, and call that folder something that reminds you of football, like "4th Quarter" (sorry, I'm not a huge football fan, so let me know if I jacked that up !!!). Then, create a folder for your friend who sends you dirty jokes or nudes and call it 'Compliance / Regulations' (NOBODY is going to want to read those emails right??).

Ok so you have folders that have boring, business like names. So what right? Well lets get those dirty, inappropriate, condescending, HR Bombing emails OUT of your inbox before even you see them in the main box. Here's how you do it: Create filters that look for certain things such as the sender having a certain email address (like your always-inappropriate friend), the subject having certain words (like ****[Insert Explicative Here]), and tell it to Skip the inbox, then move immediately to a folder (or label) in your email account.

As to the specifics on HOW you do that, its actually really easy.

Here is a 100% free/ and a very short video on how to get it done, acted out by yours truly (me), with some COMEDY and HUMOR with a situation where my wife finds dirty emails from a girlfriend in my inbox. Then I show you how to make those filters and the labels/folders to go along with it:


Ok, so after you watch this - you should set your inbox up right away so it is fresh in your mind. Then, test it out by sending yourself an email from your phone or from your friends PC that has a subject like "Hey baby meet me behind the outhouse I want to show you something in my pants, I had a great time last night!" haha ok, doesn't have to be that dirty but you get the picture: it should go to a distinct folder if you followed the instructions in my video! Let me know how it goes in the comments :)

Thanks for reading! See you next time ~ ;-)

How do you react to Programming errors?

 How do you react to Programming errors? Sometimes its easier just to "vent" the problem, and then come back to the issues at hand...