I am opening the blog up to more topics. As I get older it is time to think about retirement. I received Kiplinger's new letter and this weeks issue has a great article - https://www.kiplinger.com/investing/stocks/blue-chip-stocks/605147/hedge-funds-top-blue-chip-stocks-to-buy-now?utm_term=48CF6E7A-0818-469C-8C1B-542EE879AF82&utm_content=4EDA771E-A95E-4A58-B7B9-916641B388CA
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.
Sunday, August 20, 2023
Thursday, July 27, 2023
BASH - VIM - Commit message on Windows 11
To write a git commit, start by typing git commit on your Terminal or Command Prompt which brings up a Vim interface for entering the commit message.
- Type the subject of your commit on the first line. ...
- Write a detailed description of what happened in the committed change. ...
- Press Esc and then type :wq to save and exit.
Sunday, July 16, 2023
Blog Comeback
Senior Software Engineer
Monday, July 10, 2023
Google AdSense help to increase revenue
Dear Visitor's, please click on an ad or two to help with creating residual income from Google. I would even be grateful to know if the Ads are tailored to your searches to ensure the Google Adsense are showing Ads related to your personal preference. Please add comments below.
Monday, January 16, 2023
Sunday, January 02, 2022
Happy New Year!
Happy New Year to all this year will be filled with React, Java, and Unit Testing. And first and foremost God, Family and Friends.
Friday, September 03, 2021
React, Java, Tomcat oh MY!
Well, it has been a long time since I have posted. Because this year I have been tasked with developing React and Java. This is a complete flip from the .NET Microsoft platform. It is an adventure and great to take on new technologies. Over my years of development, I have learned, "That to survive in this business you have to learn, unlearn and relearn", Doug Cain. What is crazy is that the king of all the languages is that JavaScript. Over my 20+ years of development it has always been the top language and they have always kept their promise to "Never break the web". Also, another reason I have not posted any posts is that my current employer has blogger BLOCKED for security purposes.
Saturday, June 13, 2020
Pagination in SQL Server (Thank you https://www.sqlshack.com/pagination-in-sql-server/)
DECLARE @PageNumber AS INT
DECLARE @RowsOfPage AS INT
DECLARE @SortingCol AS VARCHAR(100) ='FirstName'
DECLARE @SortType AS VARCHAR(100) = 'ASC'
SET @PageNumber=1
SET @RowsOfPage=50
SELECT LastName, FirstName FROM Person.Person
ORDER BY
CASE WHEN @SortingCol = 'Lastname' AND @SortType ='ASC' THEN LastName END ,
CASE WHEN @SortingCol = 'LastName' AND @SortType ='DESC' THEN LastName END DESC,
CASE WHEN @SortingCol = 'FirstName' AND @SortType ='ASC' THEN FirstName END ,
CASE WHEN @SortingCol = 'FirstName' AND @SortType ='DESC' THEN FirstName END DESC
OFFSET (@PageNumber-1)*@RowsOfPage ROWS
FETCH NEXT @RowsOfPage ROWS ONLY
SET @PageNumber=2
SET @RowsOfPage=50
SET @SortingCol ='LastName'
SET @SortType = 'ASC'
SELECT LastName, FirstName FROM Person.Person
ORDER BY
CASE WHEN @SortingCol = 'Lastname' AND @SortType ='ASC' THEN LastName END ,
CASE WHEN @SortingCol = 'LastName' AND @SortType ='DESC' THEN LastName END DESC,
CASE WHEN @SortingCol = 'FirstName' AND @SortType ='ASC' THEN FirstName END ,
CASE WHEN @SortingCol = 'FirstName' AND @SortType ='DESC' THEN FirstName END DESC
OFFSET (@PageNumber-1)*@RowsOfPage ROWS
FETCH NEXT @RowsOfPage ROWS ONLY
Sunday, April 26, 2020
Get Rid of Ants and other Insects and Win the War!!!
As other homeowners know you have two choices hire an exterminator $$$$$ or do it yourself. Well, I am here to tell you what is working for our home.
Disclaimer - Safety first, use a respirator, rubber gloves, and rubber boots.
1. Mix as instructed I did two full and an extra 1/2 squeezes to one gallon of water in a pump sprayer, fill slowly with water to get a good mix (stronger is better. Then spray your entire home around doors, windows, foundation one foot up and two to three feet out -
Bayer - 4031982 - Suspend SC -Insecticide - 16oz
https://amzn.to/3bYaDNG2. Sprinkle every 4 feet around the entire perimeter of your home.
Niban Granular Insect Bait
https://amzn.to/2YplKeA3. Inside the house issue purchase
Southern Homewares Pesticide Diatomaceous Earth Hand Bellows Powder Duster - Garden Powder Bulb Applicator - Great Against Bedbugs & Insects
https://amzn.to/3aXCJYb4. Sprayer I purchased and use a sharping and mark it for safety:
Chapin 20000 1 Gallon Lawn, Sprayer
https://amzn.to/35pKnJv
Sunday, December 29, 2019
Debug VS Code HTML5, CSS3 and JavaScript using npm http-server
- Windows 10
- VS Code - https://code.visualstudio.com/
- Node and NPM - https://www.npmjs.com/get-npm
Setup git Code repository:
- Setup folder for your project as for my preference I use
C:\Users\moojjoo\Source\Repos\[SolutionFolder] - I am a big advocate of git source control - https://git-scm.com/ and the great part is that it is packaged with VS Code so once you have your files setup be sure to
- git add .
- git commit -m 'Initial Commit'
// Using Terminal BASH run
npm install http-server -g
http-server ./
As a result you will get the url to run and debug your JavaScript // Once successfully running the code you can then create .vscode/lauch.json and
// update the highlight code. The great part with running npm http-server ./
// All changes are updated and reflected in the browser
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information,
// visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "chrome", "request": "launch", "name": "Launch Chrome against localhost", "url": "http://127.0.0.1:8080", "webRoot": "${workspaceFolder}" } ] }
Tuesday, December 17, 2019
Git exclude local developer files in exclude file
git add [filename] or .
and git commit -m 'User Story XYZ'
, then git push
to remote and create a PULL REQUEST. git checkout master
git pull
git status
- Add to the exclude file. If using windows open windows explorer and be sure to unhide hidden files and navigate to your repo location in windows we use:
C:\Users\USERNAME\source\repos\SolutionName\.git\info\exclude
git add
- Add the files you need to ignore only as you do the .ignore file, but this is used for your personal developer workstation. Give the full path to the file.
C:/Users/USERNAME/Source/Repos/SolutionName/{filename}
IF YOU ALREADY HAVE FILES THAT HAVE BEEN ADDED AND COMMITTED AS SHOWN BELOW FOLLOW THESE STEPS
C:\Users\USERNAME\Source\repos\SolutionName\.git\info\exclude
C:/Users/USERNAME/Source/Repos/SolutionName/{filename}
git add
git committed -m 'Committing my files to GIT index'
HOWEVER, GO BACK TO GIT AND RUN THE FOLLOWING IF THE FILES HAVE BEEN ADDED AND COMMITED BEFORE
git update-index --skip-worktree
git ls-files -i --exclude-from=C:/Users/USERNAME/source/repos/SolutionName
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