Friday, September 11, 2020

Google API App Errors: Less Secure App Access setting

If you have an app that interfaces with Google or use a 3rd party API integration, for example sendEmail smtp utility, you may start receiving an error in scripts that worked previously,. The error may look like:

 

C:\Temp\Tools\sendEmail-v156>Synch.OneWay.MyDocs.GDrive.Zip.Email
Sep 11 15:06:19 doylejsurface2 sendEmail[16576]: ERROR => ERROR => SMTP-AUTH: Authentication to smtp.gmail.com:587 failed.

To resolve enabel the less secure app access toggle in your Google profile:

Update Less secure app access in google

normally the setting is located here

Friday, August 14, 2020

Covid Positive Diary: Our Daily Log of our activity, experiences and observations

My wife and I both tested Covid positive recently. Also, my wife and I both had bad Influenza late 2019. We were prescribed the antiviral Tamiflu (Oseltamivir ) & antibiotic azithromycin (ZPack) late 2019 to be taken on an as needed basis for flu symptoms. We had 2 weeks worth remaining of these meds.  Both are common meds to treat wide ranging symptoms. These are our observations ONLY & this is NOT medical advice in any way. Everyone is different.  Be well:

Some key takeaways we have observed:

  • 1) There is some overlap of symptoms between flu, ear infection and Covid
  • 2) The duration is unusual the severity was not for us.
  • 3) AntiViral and Zpack helped alleviating some symptoms we had.
  • 4) Red meat exacerbates symptoms. Red meat caused stomach inflammation & mucus build up. This makes t more difficult to breathe. Observed on day 2 & 8

Background:

Age: me: 45 M 5’10” / her: 50F 5'4" / Avg Weight

BMI: Normal / No major illnesses / No Comorbidity / Gym 2X per week / Surf / We work office

Pre Existing: No major/ former smoker 10 yrs ago

Starting 8/6 we were confirmed to be Covid positive, contracted illness 8/3. Current symptoms range slight fever, coughs, clogged sinus to sore throat. Later on shortness of breath

Beginning 8/7 we began taking our Oseltamivir, as the sinus pressure and headaches associated with Covid are very similar to a start of the flu. If we didn't know we had Covid we would assume this was either flu or a middle ear infection. This is not medical advice. Be well:

This is our daily treatment log :

Day 1 :

- Date: 8/7/2020

- Meds

  • o Oseltamivir : None
  • o ZPack: 300 mg

- Supplements: (taken daily)

  • o 4000 mg VitaminC / 2000mg VitD / Zinc: 200 mg
  • o Other: NAC/2000mg Bee Pollen/Mile Thistle/Probiotic

- Comments

  • o Day #5 of illness
  • o Awoke with Sore throat

Day 2:

- Date: 8/8/2020

- Meds

  • o Oseltamivir : 300 mg (100mg BEFORE Bed)
  • o ZPack: 200 mg (100mg BEFORE Bed)

- Supplements: (taken daily)

  • o 4000 mg Vitamin D + 5000 mg Vit C + 200mg Zinc
  • o Other: NAC/Bee Pollen/Mile Thistle/Probiotic

- Comments

  • o Day #6 of illness
  • o Awoke with BAD Sore throat, no other symptoms

Day 3:

- Date: 8/9/2020

- Meds

  • o Oseltamivir : 200 mg (100mg BEFORE Bed)
  • o ZPack: 200 mg (100mg BEFORE Bed)

- Supplements: (taken daily)

  • o 4000 mg Vitamin D + 4000 mg Vit C + 200mg Zinc
  • o Other: NAC/Bee Pollen/Mile Thistle/Probiotic

- Comments

  • o Day #7 of illness
  • o Awoke with NO Sore throat, tired, body aches, cough, feels like head cold, ear ache
  • o Taking Oseltamivir BEFORE bed certainly helps to awake with less symptoms!
  • o Symptoms worse me in AM, before bed and AFTER I eat red meat. Will reduce red meat intake

Day 4:

- Date: 8/10/2020

- Meds

  • o Oseltamivir : 200 mg (again 1 before bed)
  • o ZPack: 200 mg (again 1 before bed)
  • o Mucinex + 3 tylenol + 3 motrin

- Supplements: (taken daily)

  • o 4000 mg Vitamin D + 3000 mg Vit C + 200mg Zinc
  • o Other: NAC/Bee Pollen/Mile Thistle/Probiotic

- Comments

  • o Day #8 of illness
  • o Awoke with stuffy nose, tired all day, body aches, slight cough, feels like it has moved to my chest
  • o I ate red meat on Day 3 and I felt like CRAP after easting (pork). I am switching to ONLY fish and chicken + veggies. Red meat contributes to inflammation and congestion.
  • o Ate corvina fish + rice tonight
  • o Had diarrhea due to VitC, I am reducing Vitc to 3000mg

Day 5:

- Date: 8/11/2020

- Meds

  • o Oseltamivir : 200 mg (again 1 before bed)
  • o ZPack: 200 mg (again 1 before bed)
  • o Mucinex + 3 tylenol + 3 motrin

- Supplements: (taken daily)

  • o 4000 mg Vitamin D + 3000 mg Vit C + 200mg Zinc
  • o Other: NAC/Bee Pollen/Mile Thistle/Probiotic (Corganic!!!)

- Comments

  • o Day #9 of illness
  • o Awoke with only slight stuffy nose and slightly tired. Not sure if tiredness is caused by Covid. My appetite is normal, however desire for alcohol is very low, since alcohol accentuates the tiredness
  • o Today is best I have felt in 5 days. Don’t feel as tired
  • o Plan to eat grapefruit in AM, Chicken and Fish for lunch/dinner!

Day 6:

- Date: 8/12/2020

- Meds

  • o Oseltamivir : 200 mg (again 1 before bed)
  • o ZPack: 200 mg (again 1 before bed)
  • o Mucinex + 1 tylenol + 3 motrin

- Supplements: (taken daily)

  • o 4000 mg Vitamin D + 4000 mg Vit C + 200mg Zinc + Selenium
  • o Other: NAC/Bee Pollen/Mile Thistle/Probiotic

- Comments

  • o Day #10 of illness
  • o Awoke with no symptoms, however as day went on felt a little tired. Went to sleep feeling a slight shortness of breath, worried a little
  • o Wife has consistent cough shortness of breath thru the day, he symptoms are worse than mine.
  • o Ate starbucks, fruite, light meals
  • o Noticed that small meals do not result in tiredness, no desire for alcohol

Day 7:

- Date: 8/13/2020

- Meds

  • o Oseltamivir : 100 mg (again 1 before bed)
  • o ZPack: None
  • o Mucinex + 2 tylenol + 2 motrin

- Supplements: (taken daily)

  • o 2000 mg Vitamin D + 2000 mg Vit C + 200mg Zinc + Selenium
  • o Other: NAC/Bee Pollen/Mile Thistle/Probiotic/Astragulus/Tumeric

- Comments

  • o Day #11 of illness
  • o I awoke slight shortness of breath, took Astragulus+ Tumeric this helped!
  • o Wife symptoms are lingering longer than mine, cough & shortness of breath
  • o Ate pork, BAD IDEA!. I could feel inflammation & mucus 1 hour after eating.

Day 8:

- Date: 8/14/2020

- Meds

  • o Mucinex + 2 tylenol + 2 motrin

- Supplements: (taken daily)

  • o 2000 mg Vitamin D + 2000 mg Vit C + 200mg Zinc + Selenium
  • o Other: NAC/Bee Pollen/Mile Thistle/Probiotic/Astragulus/Tumeric

- Comments

  • o Day #12 of illness
  • o I awoke feeling back to 100% back normal! Will continue supplement regiment for 3 days. shortness of breath, took Astragulus+ Tumeric this helped!
  • o Wife symptoms are lessened, Astragulus+ Tumeric seem to help repertory area,
  • o Had small beef in AM (yuck) / Fish+scallops + rice for dinner

Tested Sunday

DIET is SO important!!

For us: Food and Vitamins are a HUGE influence on how your body deals with this illness!!!

If you are Obese or smoke, this should be a wake up call: GET FIT. I would not want to be obese or smoke with this illness.

For us, the duration of the illness was the only worry while the severity was never as bad as the flu

Also: DONT watch the news: it only makes you feel worse. Go out for a walk and get some light exercise!!!

Links to Resources that I used manage my health

Coronavirus, Precautions, and Strengthening the Immune System Urology
COVID-19 Supplements: Melatonin
COVID-19 Treatments: An Updated List of Drugs and Medications in Development - GoodRx
Azithromycin and SARS-CoV-2 infection: Where we are now and where we are going
Oseltamivir recipients recover faster from coronaviruses other than SARS-CoV-2
COVID-19 Research - Drug Target Review
Using vitamin C
VITAMIN C health

Thursday, May 21, 2020

Excel Tutorial for Christa NO EXCUSES 20 min per day

Plural Sight Videos !!!

Download each folder lesson and DO lesson:

https://drive.google.com/drive/u/0/folders/1aRM7mLY9v_I2vi3JlSiiirBirPfKBRDh

1. Beginner Lessons

Loading Data into Excel

Searching and Manipulating Data in Excel

 

2. Intermediate

Calculating Cell Values with Formulas

Recording and Managing Excel Macros

3. Advanced

Summarizing and Organizing Data in Excel

Exploring Data with PivotTables

Distributing Excel Workbooks

Charting Data with Excel

Original Plural sigh lesson is HERE

 

Youtube & Free!!!

Basic: Formulas and Functions

1. Excel Basic Formulas and Function

2. Sum all lookups

LookUps:

Lookups : Lookups will allow you to merge worksheets. E.g:  Match Invoices to Rates.

V Lookup : 30 min or less

Learn V Lookup for basic matching, e.g: match “Acme Inc” = “Acme Inc”

1. How to Do a VLOOKUP With Two Spreadsheets in Excel

Sample: VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup])

2. Excel VLOOKUP tutorial for beginners with formula examples

3. V Lookup Explained

Fuzzy Lookup : 30 min+

Learn Fuzzy Lookup for advanced matching, e.g: Match ACME Incand “Florida ACME Inc

1. Download Fuzzy Lookup Add-In for Excel

2. Watch Tutorial

 

Playlist Tutorials:

1. Excel Basics

2. Tips & Formulas 

 

 

 

Paid Courses:

1. Advanced Excel: Top 10 Excel Tips & Formulas

- $34.00 Video + includes sample workbook

Thursday, May 14, 2020

Entity Framework 6 : Default Code First Conventions

EF 6 Code First Default Conventions :

1) Default Inheritance Type: Table Per Hierarchy (TPH)

2) foreign key properties

- Any property with the same data type as the principal primary key property and

- with a name that follows one of the following formats represents a FK for the relationship:

  • <navigation property name><principal primary key property name>',
  • '<principal class name><primary key property name>', or
  • '<principal primary key property name>'

3) Primary Key Convention

-property is a primary key if a property on a class is named “ID” (not case sensitive), or the class name followed by "ID".

4) If FK on the dependent entity is not nullable, then Code First sets cascade delete on the relationship.

- Nullable:

public int? CountryId { get; set; }

5) Type Discovery:

- you define a context class that derives from DbContext and exposes DbSet properties for the types that you want to be part of the model.


6) exclude a type from the model

-use the NotMapped attribute or the DbModelBuilder.Ignore fluent

7) No PK or FK: Its a complex type. Complex Type rules include:

- type does not have properties that reference entity types and

- is not referenced from a collection property on another type.

Wednesday, May 13, 2020

.Net Database Connection String Samples

1. Web.Config Connection String

<configuration> <connectionStrings> 
<add name="myConnection" connectionString="server=localhost;database=mydatabase;" /> </connectionStrings> </configuration>

2. Get connection string using the ConfigurationManager class:
string conn = ConfigurationManager.ConnectionStrings["myConnection"].ConnectionString;
3. EF Reference Connection String in DB Context Ctor:
public class DatabaseContext : DbContext {
public DatabaseContext() : base("myConnection")
{ } }
4. SQL Server Connection String Integrated Security:
<connectionStrings>
<add name="sqlServer" providerName="System.Data.SqlClient" connectionString="Data Source=localhost;Initial Catalog=MyDatabase;Integrated Security=True;" /> </connectionStrings>
5. SQL Server Connection String SQL Authentication:
<connectionStrings>
<add name="sqlServer" providerName="System.Data.SqlClient" connectionString="Data Source=localhost;Initial Catalog=MyDatabase;User Id=user;Password=pwd;" /> </connectionStrings>

6. My SQL Connection String:
<connectionStrings>
<add name="mySql" providerName="MySql.Data.MySqlClient" connectionString="Server=localhost;Database=MyDatabase;Uid=user;Pwd=pwd;" /> </connectionStrings>

7. Oracle Connection String
Data Source=ABC.Company.OraDSName;User Id=myUid;Password=mypwd;
8. SQL Server by Database Name
<add name="MyDBStage" connectionString="Database=MyDBStage;Server=.\sql2012;Integrated Security=SSPI;"
      providerName="System.Data.SqlClient" />
9. Connection String using Model:
<connectionStrings>
    <add name="MyDBEntities" connectionString="metadata=res://*/Data.MyDB.csdl|res://*/Data.MyDB.ssdl|res://*/Data.MyDB.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=SP2013E\SPSQL;initial catalog=MyDB;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>
10. MS Dynamics Connection String
<add name="Xrm" connectionString="Server=http://myCompany.crm5.dynamics.com; Domain=myCompany; Username=myUserId@myCompany.com.au; Password=Secret0102"/>
  </connectionStrings>
11. Named Connection String Integrated Security:
<add name="MyDBConnString" connectionString="Database=MyDB;Server=MyServer;Integrated Security=SSPI;"
      providerName="System.Data.SqlClient" />
  </connectionStrings>
12. References:

Connection Strings Samples
MS Connection Strings

Guide to Connection Strings

Saturday, May 9, 2020

.Net Framework vs .Net Core vs .Net Standard

What is .Net Standard and why does it show as a project platform type in Visual Studio when I click New Project?
Well, .net Standard is NOT a platform, it is a standard. If we remember that, then it makes sense. Think of .net standard as the mesh that maps the various platform version together for interoperability. See the below table:


What is .NET Standard?

.NET Standard is a specification (not an implementation of .NET) which defines the set of APIs that all .NET implementations must provide. It addresses the code sharing problem for .NET developers across all platforms by bringing APIs across different environments.
We can think of it as another .NET Framework, except that we use it to develop class libraries only. .NET Standard is a successor of the portable class library.
Ok, so .NET Standard specifies the APIs that need to be implemented.
But which APIs does it cover?
To answer this question in short – there are multiple versions of .NET Standard. Each version includes a set of APIs which we are going to cover in a while.



Wednesday, May 6, 2020

Update Android Property File

1. Download .prop file from phone to computer

2. Edit the .prop file using a text editor

3. Upload .prop file from computer to phone.

See below example script:


1. adb pull /system/build.prop c:\Temp\Phone

2. Edit Props:using notepad

3. adb push C:\Temp\Phone\build.prop /system/

Tweaks: