This blog is about my history as a software engineer utilizing technologies C#, Java, React, JavaScript, .NET Core, SQL Server , Oracle, GIT, GitHub, Jira, Azure, AWS and HTML5. “I have not failed. I've just found 10,000 ways that won't work.” Thomas A. Edison. Please click on all my ADVERTISING links to help support this blog. Thank you.
Friday, September 20, 2019
Forgot your Wifi Password - Thank you Reddit
Wednesday, September 04, 2019
Wednesday, August 21, 2019
MEAN - MongoDB, Express, Angular, NodeJS
M - MongoDB - https://www.mongodb.com/
E - Express - https://expressjs.com/
A - Angular - https://angular.io/
N - NodeJS - https://nodejs.org/en/
IDE of Choice - https://code.visualstudio.com/
Extensions of Choice for VS Code
- Angular Essentials
- Material Icon Theme
Open VSCODE
Ctrl + Shift + ` Opens Terminal Window
Be sure you have installed NodeJS and Angular
Command for Angular is npm install -g @angular/cli
Use the Terminal to Navigate to cd c:/Users/UserName/Source/Repos
Run
https://angular.io/cli/new ng-new app-name
... More to come
Angular = Components and Components = Uncoupled and resuability
Always work from the ./src/app
Create new folders following the naming structure
+-app
- app.component.css
- app.component.html
- app.component.ts
- app.component.spec.ts
- app.module.ts
For new components create new subfolders in the app folder
+-app
|
|
+-my-dog
- app.my-dog.component.css
- app.my-dog.component.html
- app.my-dog.component.ts
- app.my-dog.component.spec.ts
Update the app.module.ts
Wednesday, July 17, 2019
Step by Step gmail filter
Tuesday, June 11, 2019
Thursday, May 09, 2019
How to clear SharePoint People Picker suggestion cache
How to clear SharePoint People Picker suggestion cache
One of the out of the box SharePoint People Picker features is that it auto caches all previous user entry entered/selected by you.
It would introduce invalid entry if there is cease of identity provider (for whatsoever reason that the decision made from the IT management needs us to swing the SharePoint identity provider to other platform).
If you fire up your browser development tool and type in “localStorage” (case sensitive) in the console. You would see the cache key/value for ClientPeoplePickerMRU.
1
| localStorage.clear(); |
The other possible way is to get them clear the Local Storage from their Browser. I couldn’t find where the IE local storage is. If you know, I will be more than happy if you can tell me.
1. Go to page with people picker
2. F12 Developer Tools
a. Console
b. localStorage.clear();
3. Close F12
4. Then refresh the web page to test it.
Wednesday, May 01, 2019
GitHub --set-upstream
git pull
git commit -m 'Another commit'
git push
Wednesday, March 20, 2019
Nice AdSearch by LanID to populate a form
$.ajax({
type: 'GET',
url: 'https://localhost:44364/api/v1/AdSearch?userId=rdanne1',
dataType: 'json',
error: function (xhr) {
alert("An error occured: " + xhr.status + " " + xhr.statusCode);
},
success: function (data) {
if (data) {
$('#Domain_ID').val(data.lanId);
$("#Name").val(data.name);
$("#Email").val(data.email);
}
}
});
});
Wednesday, February 27, 2019
SQL RAISEERROR and Log the error
Create an output parameter so the source code can log the error and you can check the DB table for the error.
@ELog_ID int = 0 OUTPUT
SET XACT_ABORT, NOCOUNT ON;
BEGIN TRY
BEGIN TRANSACTION
IF
IF EXISTS (SELECT 'x' FROM People_tbl WHERE Email_Address = @Email_Address)
RAISERROR (N'Person is already in the database.',11,11, 'usr_Person_Add')
--PRINT 'Person is already in the database!'
ELSE
-- CRUD work
END TRY
BEGIN CATCH
--PRINT 'In the Catch Statement'
IF @@trancount > 0 ROLLBACK TRANSACTION
PRINT 'Process has reached the CATCH'
EXECUTE dbo.[usr_InsertErrorInfo];
SELECT @ELog_ID = max(ELog_ID)
FROM ErrorLog_tbl;
END CATCH
Tuesday, February 26, 2019
PowerShell output to table and text file
https://docs.microsoft.com/en-us/powershell/scripting/overview?view=powershell-6
Monday, January 07, 2019
RoboCopy
example:
Go to cmd
Robocopy "C:\\SourceDir" "C:\\DestDir" \/E // adding escapes to see if sitemap.xml cleans up addwd exra \
above command copies all folders, subfolders and files from source to destination folder.
Happy Learning!
Read more about this here:
https://social.technet.microsoft.com/wiki/contents/articles/1073.robocopy-and-a-few-examples.aspx
MIR option. It can intelligently mirror source and destination, copying ONLY changed files and deleting files on the destination that are no longer on the source. Very useful when you need to maintain a backup|standby system. rsync is the unix equivalent to this command. I used rsync at home just yesterday. Great stuff!
Azure Cost Learning from Experience after Free Trial Expires
https://azure.microsoft.com/en-us/pricing/details/app-service/windows/
Another lesson by experience, I was wrong if you have a Plan aka S1 you will be charged even if you do not have one service running.
Set-AzureRmAppServicePlan -ResourceGroupName $rg -Name $AppServicePlan -Tier Free
Wednesday, December 19, 2018
Microsoft Word Navigation Pane (Keep It Open - TOC)
Friday, November 02, 2018
JavaScript Execution
Monday, October 08, 2018
How to delete or clear authentication, cache, and cookies
Tuesday, October 02, 2018
.NET Core 500 Exception how to see your errors
Tuesday, July 17, 2018
Windows 7 cannot delete folder
Wednesday, May 23, 2018
ID4014: A SecurityTokenHandler is not registered to read security token error
Server Error in '/' Application.
ID4014: A SecurityTokenHandler is not registered to read security token ('Assertion', 'urn:oasis:names:tc:SAML:2.0:assertion').
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.IdentityModel.Tokens.SecurityTokenException: ID4014: A SecurityTokenHandler is not registered to read security token ('Assertion', 'urn:oasis:names:tc:SAML:2.0:assertion').
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2623.0
I have the reply populated in Azure AD as https://projects-dev02-extranet.domain.com/_trust/default.aspx