tag:blogger.com,1999:blog-112584572024-03-24T03:11:01.492-04:00Robert Dannelly Blog Senior Software Engineer - Dannelly SolutionsRobert Dannelly blog, Over the internet you can find me by "robert dannelly blog". The blog is an ongoing blog of my software engineering over technologies C#, VB.NET, Java, React, JavaScript, .NET Core Current, SQL Server 7 - Current Version, 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 links to help support this blog. Thank you. “As an Amazon Associate, I earn from qualifying purchases.”Moojjoohttp://www.blogger.com/profile/04859817038873556992noreply@blogger.comBlogger335125tag:blogger.com,1999:blog-11258457.post-38588405162123320022023-12-29T11:27:00.004-05:002023-12-29T11:27:40.903-05:00Merry Christmas and Happy New Year<p>Wishing everyone had a great Christmas and an upcoming Happy New Year. Next year will begin my goal of creating B2C and B2B services at least one domain a year till I can retire. Also selling a lot more on different platforms to clean our house up of things not longer used.</p>moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-64496115439943144602023-09-24T23:25:00.003-04:002023-10-16T23:50:21.334-04:00Best Cold Pack and Hot Pack for the money<p> On June 15th I had surgery to repair a torn quadriceps tendon from a fall on June 3rd. The best cold pack and hot pack I have used is the </p><h1 class="a-size-large a-spacing-none" id="title" style="background-color: white; box-sizing: border-box; color: #0f1111; font-family: "Amazon Ember", Arial, sans-serif; font-size: 24px; font-weight: 400; line-height: 32px; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px; margin-top: 0px; margin: 0px; padding: 0px; text-rendering: optimizelegibility;"><span class="a-size-large product-title-word-break" id="productTitle" style="box-sizing: border-box; line-height: 32px; text-rendering: optimizelegibility; word-break: break-word;">MEDVICE 2 Reusable Hot and Cold Ice Packs for Injuries, Joint Pain, Muscle Soreness and Body Inflammation Reusable Gel Wraps Adjustable & Flexible for Knees, Back, Shoulders, Arms and Legs, 2 Count - Pick them up at Amazon - <a href="https://amzn.to/3PRTR9t">https://amzn.to/3PRTR9t</a> #ad.</span></h1><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><p></p>moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-5048253341695645112023-09-06T02:47:00.001-04:002023-09-06T02:47:39.762-04:00ARE YOU READY FOR SOME FOOTBALL?<a target="_blank" href="https://www.amazon.com/gp/search?ie=UTF8&tag=moojjoo01-20&linkCode=ur2&linkId=4146e24aba4ad69a8fa1862d15561623&camp=1789&creative=9325&index=collectibles&keywords=nfl game day gear">NFL 2023 Game Day Gear</a>moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-75113041157628984162023-09-06T02:15:00.011-04:002023-10-16T23:50:53.206-04:00My Teenage 17 Year Old Daughter is Happy, thank you TP-Link Deco https://amzn.to/3P7bSyX!!!<p> </p><span id="docs-internal-guid-13ffb6e5-7fff-c349-d58c-8f17dfaab8aa"><h1 dir="ltr" style="background-color: white; line-height: 1.6; margin-bottom: 0pt; margin-top: 0pt;"><span face="Arial, sans-serif" style="color: #222222; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;">TP-Link Deco WiFi 6 Mesh WiFi System(Deco X20) - Covers up to 4000 Sq.Ft. , Replaces Wireless Internet Routers and Extenders, 2-Pack - </span><a href="https://amzn.to/3P7bSyX" style="text-decoration-line: none;" target="_blank"><span face="Arial, sans-serif" style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;">https://amzn.to/3P7bSyX</span></a><span face="Arial, sans-serif" style="color: #222222; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;"> </span></h1><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span face="Arial, sans-serif" style="background-color: white; color: #222222; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">is a very nice product. With a little time and patience the setup went smooth. First thing unplugged power from my incoming fiber modem then unplugged my Netgear Nighthawk R7000 </span><a href="https://amzn.to/3Z60qbc" style="text-decoration-line: none;" target="_blank"><span face="Arial, sans-serif" style="background-color: white; color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;">https://amzn.to/3Z60qbc</span></a><span face="Arial, sans-serif" style="background-color: white; color: #222222; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">. Still going for $89.00 (held resale value nicely) that we have had for 10 years. I then hooked up two ethernet cables for my 1 of 2 Deco(s) named "Office". With two ethernet ports on the back I inserted one line to the modem and another to a switch - </span><a href="https://amzn.to/3Z4pi32" style="text-decoration-line: none;" target="_blank"><span face="Arial, sans-serif" style="background-color: white; color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;">https://amzn.to/3Z4pi32</span></a><span face="Arial, sans-serif" style="background-color: white; color: #222222; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> in my office to power my NAS - </span><a href="https://amzn.to/3Pc3MoL" style="text-decoration-line: none;" target="_blank"><span face="Arial, sans-serif" style="background-color: white; color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;">https://amzn.to/3Pc3MoL</span></a>, d<span face="Arial, sans-serif" style="background-color: white; color: #222222; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">ocking station, and other ethernet supported technologies. Right away after setting up our Deco Login and Password by way of the application down loaded to my phone I plugged in "Office" deco right next to my cable modem on the far end of the house because that is where the entry point of the fiber comes into our home. At first I placed the “Office” Deco directly in front of the modem and BAM! The download was 300Mbps and the upload was 30Mbps. </span></p><br /><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span face="Arial, sans-serif" style="background-color: white; color: #222222; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Now it was time for the ultimate test. With excitement I plugged in the second TP-Link Deco named “Hall” right on the opposite side of the home upstairs in front of our daughter’s bedroom and across the hall from our bedroom. After plugging it in I waited and waited. The Deco app was not finding the second X20 :(- What to do? I read the instructions and read to not have the deco next to any electronics so I moved the “Office” deco up to the top of my desk where the NightHawk was before. I then went upstairs and like magic MESH Wifi 6 was active. YEAH!!! The last part was simply rebooting my NAS - </span><a href="https://amzn.to/3Pc3MoL" style="text-decoration-line: none;" target="_blank"><span face="Arial, sans-serif" style="background-color: white; color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;">https://amzn.to/3Pc3MoL</span></a><span face="Arial, sans-serif" style="background-color: white; color: #222222; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> to grab a new IP address and reconnect all our devices. Everybody is happy, especially Dad because no more unplugging the modem than the router, waiting for a minute and plugging the cable modem and then the router back in. Date 9/6/2023. I will return and update after a month to provide an update. #ad</span></p><div><span face="Arial, sans-serif" style="background-color: white; color: #222222; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"><br /></span></div></span>moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-6397542248824803382023-08-20T12:55:00.003-04:002023-08-20T12:56:41.949-04:00Investing in Blue Chip stocks<p> 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 - <a href="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">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</a></p>moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-17817464970744048512023-07-27T21:13:00.007-04:002023-09-06T05:00:18.224-04:00BASH - VIM - Commit message on Windows 11<p> <b style="color: #bdc1c6; font-family: "Google Sans", Roboto, arial, sans-serif; font-size: 16px;">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.</b></p><div class="RqBzHd" style="background-color: #202124; color: #bdc1c6; font-family: "Google Sans", Roboto, arial, sans-serif; font-size: 16px; padding: 0px 20px;"><ol class="X5LH0c" style="margin: 0px; padding: 0px;"><li class="TrT0Xe" style="list-style: inherit; margin: 0px 0px 4px; padding: 0px;">Type the subject of your commit on the first line. ...</li><li class="TrT0Xe" style="list-style: inherit; margin: 0px 0px 4px; padding: 0px;">Write a detailed description of what happened in the committed change. ...</li><li class="TrT0Xe" style="list-style: inherit; margin: 0px 0px 4px; padding: 0px;">Press Esc and then type :wq to save and exit.</li></ol></div>moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-58070429281416332302023-07-16T14:52:00.001-04:002023-08-20T13:00:55.119-04:00Blog Comeback<div dir="ltr">Been a long time since blogging mostly because security in business does not allow access to blogger, which is a good thing. Over my 20+ years of software development I have seen security to get it right. This prevents proprietary code details from being posted. <div><br></div><div>However, now I am coming back to write up my new adventure with Java, Spring Boot, React and various databases such as mongo or mysql. Also, on new tool sets such as JetBrains IntelliJ and Visual Studio Code. <br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Robert Dannelly, Jr. </div><div><p><span style="font-family:Arial,sans-serif"><font size="2" color="#000000">Senior Software Engineer</font><span style="color:blue;font-size:8pt"></span></span></p></div><div><a href="mailto:robertdannelly@gmail.com" target="_blank">robertdannelly@gmail.com</a></div><div><a href="http://moojjoo.blogspot.com" target="_blank">http://moojjoo.blogspot.com</a> </div><div>Twitter: @moojjoo</div><div>Skype: robert.dannelly</div><div> </div></div></div></div></div></div></div></div></div></div></div></div></div> moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-31945161280611505832023-07-10T00:19:00.003-04:002023-08-20T13:01:08.848-04:00Google AdSense help to increase revenue<p> 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.</p>moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-5252361152915980092023-01-16T14:08:00.006-05:002023-08-20T13:01:21.646-04:00Happy New Year 2023<p> Happy New Year 2023. Hope everyone has a wonderful year.</p>moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-33435254756544354692022-01-02T21:50:00.003-05:002023-08-20T13:01:33.595-04:00Happy New Year!<p> Happy New Year to all this year will be filled with React, Java, and Unit Testing. And first and foremost God, Family and Friends.</p>moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-43426978143154241742021-09-03T17:50:00.004-04:002023-08-20T13:02:01.036-04:00React, Java, Tomcat oh MY!<p> 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.</p>moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-4034845902803405732020-06-13T10:22:00.001-04:002020-06-13T10:22:18.874-04:00Pagination in SQL Server (Thank you https://www.sqlshack.com/pagination-in-sql-server/)Select TOP(100) LastName, FirstName FROM Person.Person ORDER BY LastName<br />
<br />
DECLARE @PageNumber AS INT<br />
DECLARE @RowsOfPage AS INT<br />
DECLARE @SortingCol AS VARCHAR(100) ='FirstName'<br />
DECLARE @SortType AS VARCHAR(100) = 'ASC'<br />
SET @PageNumber=1<br />
SET @RowsOfPage=50<br />
SELECT LastName, FirstName FROM Person.Person<br />
ORDER BY<br />
CASE WHEN @SortingCol = 'Lastname' AND @SortType ='ASC' THEN LastName END ,<br />
CASE WHEN @SortingCol = 'LastName' AND @SortType ='DESC' THEN LastName END DESC,<br />
CASE WHEN @SortingCol = 'FirstName' AND @SortType ='ASC' THEN FirstName END ,<br />
CASE WHEN @SortingCol = 'FirstName' AND @SortType ='DESC' THEN FirstName END DESC<br />
OFFSET (@PageNumber-1)*@RowsOfPage ROWS<br />
FETCH NEXT @RowsOfPage ROWS ONLY<br />
<br />
SET @PageNumber=2<br />
SET @RowsOfPage=50<br />
SET @SortingCol ='LastName'<br />
SET @SortType = 'ASC'<br />
SELECT LastName, FirstName FROM Person.Person<br />
ORDER BY<br />
CASE WHEN @SortingCol = 'Lastname' AND @SortType ='ASC' THEN LastName END ,<br />
CASE WHEN @SortingCol = 'LastName' AND @SortType ='DESC' THEN LastName END DESC,<br />
CASE WHEN @SortingCol = 'FirstName' AND @SortType ='ASC' THEN FirstName END ,<br />
CASE WHEN @SortingCol = 'FirstName' AND @SortType ='DESC' THEN FirstName END DESC<br />
OFFSET (@PageNumber-1)*@RowsOfPage ROWS<br />
FETCH NEXT @RowsOfPage ROWS ONLYmoojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-40385274428839663002020-04-26T17:23:00.007-04:002023-08-20T13:02:16.792-04:00Get Rid of Ants and other Insects and Win the War!!!<span style="font-family: inherit;">Ants (AGGGGGHHHH!!!) sugar ants, carpenter ants, or fire ants. At least I can identify fire ants because they are red or are they? Who knows what kind of ants. Who cares, you just don't want them or other insects in your home. PERIOD! </span><br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;">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.</span><br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;"><b>Disclaimer - Safety first, use a respirator, rubber gloves, and rubber boots.</b></span><br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;">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 - </span><br />
<h1 class="a-size-large a-spacing-none" id="title" style="background-color: white; box-sizing: border-box; color: #111111; font-size: 21px !important; font-weight: 400; line-height: 1.3 !important; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; text-rendering: optimizelegibility;">
<span class="a-size-large" id="productTitle" style="box-sizing: border-box; line-height: 1.3 !important; text-rendering: optimizelegibility;"><span style="font-family: inherit;">Bayer - 4031982 - Suspend SC -Insecticide - 16oz</span></span></h1>
<a href="https://www.amazon.com/gp/product/B002Y57MGE/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1"><span style="font-family: inherit;">https://amzn.to/3bYaDNG</span></a><br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;">2. Sprinkle every 4 feet around the entire perimeter of your home.</span><br />
<h1 class="a-size-large a-spacing-none" id="title" style="background-color: white; box-sizing: border-box; color: #111111; font-size: 21px !important; font-weight: 400; line-height: 1.3 !important; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; text-rendering: optimizelegibility;">
<span class="a-size-large" id="productTitle" style="box-sizing: border-box; line-height: 1.3 !important; text-rendering: optimizelegibility;"><span style="font-family: inherit;">Niban Granular Insect Bait </span></span></h1>
<a href="https://amzn.to/2YplKeA">https://amzn.to/2YplKeA</a><br />
<span style="font-family: inherit;"><br /></span>
<span style="font-family: inherit;">3. Inside the house issue purchase </span><br />
<h1 class="a-size-large a-spacing-none" id="title" style="background-color: white; box-sizing: border-box; color: #111111; font-size: 21px !important; font-weight: 400; line-height: 1.3 !important; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; text-rendering: optimizelegibility;">
<span class="a-size-large" id="productTitle" style="box-sizing: border-box; line-height: 1.3 !important; text-rendering: optimizelegibility;"><span style="font-family: inherit;">Southern Homewares Pesticide Diatomaceous Earth Hand Bellows Powder Duster - Garden Powder Bulb Applicator - Great Against Bedbugs & Insects</span></span></h1>
<a href="https://amzn.to/3aXCJYb">https://amzn.to/3aXCJYb</a><br />
<br />
<span style="font-family: inherit;">4. Sprayer I purchased and use a sharping and mark it for safety:</span><br />
<h1 class="a-size-large a-spacing-none" id="title" style="background-color: white; box-sizing: border-box; line-height: 1.3; margin: 0px; padding: 0px;">
<span style="color: #111111; font-family: inherit; font-weight: 400;"><span class="a-size-large" id="productTitle" style="box-sizing: border-box; font-size: 21px !important; line-height: 1.3 !important; text-rendering: optimizelegibility;">Chapin 20000 1 Gallon Lawn, Sprayer</span></span></h1>
<h1 class="a-size-large a-spacing-none" id="title" style="background-color: white; box-sizing: border-box; line-height: 1.3; margin: 0px; padding: 0px;">
<span style="color: #111111; font-size: small;"><span style="font-weight: 400;"><a href="https://amzn.to/35pKnJv">https://amzn.to/35pKnJv</a></span></span></h1>
<h1 class="a-size-large a-spacing-none" id="title" style="background-color: white; box-sizing: border-box; color: #111111; font-weight: 400; line-height: 1.3 !important; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding: 0px; text-rendering: optimizelegibility;">
<span style="font-family: inherit;"><br /></span></h1>
<div>
<span style="font-family: inherit;"><b>REPEAT EVERY 2 MONTHS TO ENSURE MAINTAINED DEFENSE.</b></span></div>
<div>
<br /></div>
moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-10749643948849562722019-12-29T01:15:00.004-05:002023-08-20T13:02:35.391-04:00Debug VS Code HTML5, CSS3 and JavaScript using npm http-server<b><u>Prerequisites tools needed:</u></b><br />
<ol>
<li>Windows 10</li>
<li>VS Code - <a href="https://code.visualstudio.com/">https://code.visualstudio.com/</a></li>
<li>Node and NPM - <a href="https://www.npmjs.com/get-npm">https://www.npmjs.com/get-npm</a></li>
</ol>
<br />
<b><u>Setup git Code repository:</u></b><br />
<ol>
<li>Setup folder for your project as for my preference I use<br /><span style="font-family: "courier new" , "courier" , monospace;">C:\Users\moojjoo\Source\Repos\[SolutionFolder]</span></li>
<li><span style="font-family: "arial" , "helvetica" , sans-serif;">I am a big advocate of git source control - </span><a href="https://git-scm.com/">https://git-scm.com/</a> and the great part is that it is packaged with VS Code so once you have your files setup be sure to</li>
<ol>
<li>git add .</li>
<li>git commit -m 'Initial Commit'</li>
</ol>
</ol>
<br />
<br />
<br />
<pre style="background: #ffffff; color: black;"><span style="color: dimgrey;">// Using Terminal BASH run</span></pre>
<pre style="background: rgb(255, 255, 255);"><pre style="background: rgb(247, 247, 247); border-radius: 2px; box-sizing: border-box; color: #333333; font-family: monospace, monospace; font-size: 16px; margin-bottom: 24px; overflow-x: auto; padding: 13px 15px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 2px; box-sizing: border-box; font-family: "Fira Mono", "Andale Mono", Consolas, monospace; font-size: 1rem; font-variant-ligatures: none; letter-spacing: 0px; line-height: 24px; padding: 0px;">npm install http-server -g</code></pre>
<pre style="background: rgb(247, 247, 247); border-radius: 2px; box-sizing: border-box; color: #333333; font-family: monospace, monospace; font-size: 16px; margin-bottom: 24px; overflow-x: auto; padding: 13px 15px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 2px; box-sizing: border-box; font-family: "Fira Mono", "Andale Mono", Consolas, monospace; font-size: 1rem; font-variant-ligatures: none; letter-spacing: 0px; line-height: 24px; padding: 0px;">http-server ./</code></pre>
</pre>
<pre style="background: rgb(255, 255, 255);"></pre>
<pre style="background: rgb(255, 255, 255);"></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="background-color: yellow;">As a result you will get the url to run and debug your JavaScript </span><span style="background-color: white;">
</span><span style="background-color: white;">// Once successfully running the code you can then create .vscode/lauch.json and </span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="background-color: white;">// update the highlight code. The great part with running <span style="font-family: "courier new" , "courier" , monospace;">npm http-server ./ </span></span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="background-color: white;"><span style="font-family: "courier new" , "courier" , monospace;">// All changes are updated and reflected in the browser</span></span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="font-family: "courier new" , "courier" , monospace;"><span style="background-color: white; color: purple;">{</span><span style="background-color: white;">
</span><span style="background-color: white; color: dimgrey;">// Use IntelliSense to learn about possible attributes.</span><span style="background-color: white;">
</span><span style="background-color: white; color: dimgrey;">// Hover to view descriptions of existing attributes.</span><span style="background-color: white;">
</span><span style="background-color: white; color: dimgrey;">// For more information, </span></span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="font-family: "courier new" , "courier" , monospace;"><span style="background-color: white; color: dimgrey;"> // visit: </span><span style="background-color: white; color: #5555dd;">https://go.microsoft.com/fwlink/?linkid=830387</span><span style="background-color: white;">
</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: #0000e6;">version</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: purple;">:</span><span style="background-color: white;"> </span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: #0000e6;">0.2.0</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: #808030;">,</span><span style="background-color: white;">
</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: #0000e6;">configurations</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: purple;">:</span><span style="background-color: white;"> </span><span style="background-color: white; color: #808030;">[</span><span style="background-color: white;">
</span><span style="background: rgb(221 , 0 , 0); color: white; font-style: italic; font-weight: bold;">{</span><span style="background-color: white;">
</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: #0000e6;">type</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: purple;">:</span><span style="background-color: white;"> </span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: #0000e6;">chrome</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: #808030;">,</span><span style="background-color: white;">
</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: #0000e6;">request</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: purple;">:</span><span style="background-color: white;"> </span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: #0000e6;">launch</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: #808030;">,</span><span style="background-color: white;">
</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: #0000e6;">name</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: purple;">:</span><span style="background-color: white;"> </span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: #0000e6;">Launch Chrome against localhost</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: #808030;">,</span><span style="background-color: white;">
</span><span style="background-color: yellow;"><span style="color: maroon;">"</span><span style="color: #0000e6;">url</span><span style="color: maroon;">"</span><span style="color: purple;">:</span> <span style="color: maroon;">"</span><span style="color: #0000e6;">http://127.0.0.1:8080</span><span style="color: maroon;">"</span><span style="color: #808030;">,</span></span><span style="background-color: white;">
</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: #0000e6;">webRoot</span><span style="background-color: white; color: maroon;">"</span><span style="color: purple;">:</span><span style="background-color: white;"> </span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white; color: #0000e6;">${workspaceFolder}</span><span style="background-color: white; color: maroon;">"</span><span style="background-color: white;">
</span><span style="background: rgb(221 , 0 , 0); color: white; font-style: italic; font-weight: bold;">}</span><span style="background-color: white;">
</span><span style="background-color: white; color: #808030;">]</span><span style="background-color: white;">
</span><span style="background-color: white; color: purple;">}</span></span><span style="background-color: white;">
</span></pre>
moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-69974327835597217412019-12-17T13:40:00.001-05:002023-08-20T13:02:47.197-04:00Git exclude local developer files in exclude file<div style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
The current <strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">git</strong> workflow my development team uses and most other teams are following is to use the <strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">master</strong> branch as the default and <strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">BUILD</strong> and <strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">DEPLOY</strong> aka <strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">CI/CD</strong> branch. However, only the <strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">TEAM LEAD</strong> has the authorization rights to PULL into <strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">master</strong>. So developers create all branches from <strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">master</strong> and perform the <code style="background-color: #f0f0f0; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-height: 300px; overflow: auto; padding: 0px; vertical-align: baseline;">git add [filename] or .</code> and <code style="background-color: #f0f0f0; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-height: 300px; overflow: auto; padding: 0px; vertical-align: baseline;">git commit -m 'User Story XYZ'</code>, then <code style="background-color: #f0f0f0; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-height: 300px; overflow: auto; padding: 0px; vertical-align: baseline;">git push</code> to remote and create a <strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">PULL REQUEST</strong>.</div>
<div style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
However, in this situation we have to ensure all developers have their own local configuration files and ensure they are not deployed. Better yet what happens if they were originally added and commited to the <strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">master</strong> branch? Hopefully this guide will help you.</div>
<div style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
The files in question are the .config files, which should not be ignored, but need to change per developer workstation.</div>
<hr style="background-color: white; border-bottom: 0px; border-image: initial; border-left: 0px; border-right: 0px; border-top-color: rgb(200, 204, 208); border-top-style: solid; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; height: 1px; margin: 1em 0px; padding: 0px;" />
<div style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
<strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">WARNING --- YOU WILL HAVE ISSUES GOING BACK AND FORTH TO PREVIOUS BRANCHES THAT YOU CREATED BEFORE YOU PERFORM THESE STEPS</strong></div>
<hr style="background-color: white; border-bottom: 0px; border-image: initial; border-left: 0px; border-right: 0px; border-top-color: rgb(200, 204, 208); border-top-style: solid; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; height: 1px; margin: 1em 0px; padding: 0px;" />
<div style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
The key is to ensure you are on your <strong style="border: 0px; box-sizing: inherit; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">master</strong> branch and run the following git commands.</div>
<pre style="background-color: #f0f0f0; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; max-height: 300px; overflow-wrap: normal; overflow: auto; padding: 10px; vertical-align: baseline;"><code style="border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-height: 300px; overflow: auto; padding: 0px; vertical-align: baseline;"> git checkout master
git pull
git status
</code></pre>
<div style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
You want to ensure you have a <em style="border: 0px; box-sizing: inherit; font-family: inherit; font-size: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">clean working tree</em>...</div>
<div style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
2 Steps - If the files you want to ignore have never been added to the GIT local repository</div>
<ol style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style-image: initial; list-style-position: initial; margin: 0px 0px 0.8em 2em; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; box-sizing: inherit; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><div style="border: 0px; box-sizing: inherit; font: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
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:</div>
<div style="border: 0px; box-sizing: inherit; font: inherit; padding: 0px; vertical-align: baseline;">
<code style="background-color: #f0f0f0; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-height: 300px; overflow: auto; padding: 0px; vertical-align: baseline;">C:\Users\USERNAME\source\repos\SolutionName\.git\info\exclude</code></div>
</li>
</ol>
<div style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
(Note: The exclude file needs to be open with a text editor of your choice Notepad or Notepad++)</div>
<div style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
The run</div>
<pre style="background-color: #f0f0f0; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; max-height: 300px; overflow-wrap: normal; overflow: auto; padding: 10px; vertical-align: baseline;"><code style="border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-height: 300px; overflow: auto; padding: 0px; vertical-align: baseline;"> git add <filename>
</filename></code></pre>
<ol start="2" style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; list-style-image: initial; list-style-position: initial; margin: 0px 0px 0.8em 2em; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; box-sizing: inherit; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><div style="border: 0px; box-sizing: inherit; font: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
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.</div>
<div style="border: 0px; box-sizing: inherit; font: inherit; padding: 0px; vertical-align: baseline;">
<code style="background-color: #f0f0f0; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-height: 300px; overflow: auto; padding: 0px; vertical-align: baseline;">C:/Users/USERNAME/Source/Repos/SolutionName/{filename}</code></div>
</li>
</ol>
<h2 style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 19.5px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 0.8em; padding: 0px; text-shadow: rgb(255, 255, 255) 0px 2px 0px; vertical-align: baseline;">
IF YOU ALREADY HAVE FILES THAT HAVE BEEN ADDED AND COMMITTED AS SHOWN BELOW FOLLOW THESE STEPS</h2>
<div style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
ADD THE FILES To ---</div>
<pre style="background-color: #f0f0f0; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; max-height: 300px; overflow-wrap: normal; overflow: auto; padding: 10px; vertical-align: baseline;"><code style="border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-height: 300px; overflow: auto; padding: 0px; vertical-align: baseline;"> C:\Users\USERNAME\Source\repos\SolutionName\.git\info\exclude
</code></pre>
<div style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
Following the same format as above: (Note exclude is a file you need to open with NotePad or NotePad++)</div>
<pre style="background-color: #f0f0f0; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; max-height: 300px; overflow-wrap: normal; overflow: auto; padding: 10px; vertical-align: baseline;"><code style="border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-height: 300px; overflow: auto; padding: 0px; vertical-align: baseline;"> C:/Users/USERNAME/Source/Repos/SolutionName/{filename}
git add <filename>
git committed -m 'Committing my files to GIT index'
</filename></code></pre>
<h2 style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 19.5px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 0.8em; padding: 0px; text-shadow: rgb(255, 255, 255) 0px 2px 0px; vertical-align: baseline;">
HOWEVER, GO BACK TO GIT AND RUN THE FOLLOWING IF THE FILES HAVE BEEN ADDED AND COMMITED BEFORE</h2>
<pre style="background-color: #f0f0f0; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; max-height: 300px; overflow-wrap: normal; overflow: auto; padding: 10px; vertical-align: baseline;"><code style="border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-height: 300px; overflow: auto; padding: 0px; vertical-align: baseline;">git update-index --skip-worktree <filename>
</filename></code></pre>
<div style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
Reapeat as needed for the files you want to ignore.</div>
<div style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
Start branching and all should be good in the world. I will come back and provide an update based on this discovery work.</div>
<div style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
Happy GIT'ing........................</div>
<div style="background-color: white; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 0.8em; padding: 0px; vertical-align: baseline;">
To validate you can run the following Git Command</div>
<pre style="background-color: #f0f0f0; border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; max-height: 300px; overflow-wrap: normal; overflow: auto; padding: 10px; vertical-align: baseline;"><code style="border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; max-height: 300px; overflow: auto; padding: 0px; vertical-align: baseline;"> git ls-files -i --exclude-from=C:/Users/USERNAME/source/repos/SolutionName</code></pre>
moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-28855287769073151172019-09-20T13:07:00.001-04:002019-09-20T13:07:56.067-04:00Forgot your Wifi Password - Thank you Reddit <span style="background-color: #1a1a1b; color: #d7dadc; font-family: IBMPlexSans, Arial, sans-serif; font-size: 20px;">If you ever forget your WiFi password or you want to get your school WiFi password etc. Just type this command into the command line of a computer already connected to that WiFi: netsh wlan show profile WiFi-name key=clear</span>moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-88983425421642066092019-09-04T10:40:00.002-04:002019-09-04T11:09:57.852-04:00<span style="background-color: lime; font-size: large;">Automated test gives us greater confidence that the software is working as it should!</span><br />
<span style="background-color: lime; font-size: large;"><br /></span>
<span style="background-color: white;">Tools needed for Visual Studio for proper testing with NUnit</span><br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white;">1. NUnit3TestFramework </span><span style="background-color: white;">(Core or .NET Framework)</span><br />
<span style="background-color: white;">2. NUnit3TestAdapter (Core or .NET Framework)</span><br />
<span style="background-color: white;">3. Microsoft.NET.Tests.SDK</span><br />
<span style="background-color: white;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkF1W51bF0PyTxsbXsryMCDEc3hj8I3hiL83vH2szWvvJe1p3CDAvBulKq3LoF1Ppo9Aowbs7JrArAqk3T5YuEgl9h5mmioYFpV9uaG2Kl9eVxoPrmtsJVp9ahMXHl8WOmD1VUGw/s1600/2019-09-04_11-07-32.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="303" data-original-width="601" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkF1W51bF0PyTxsbXsryMCDEc3hj8I3hiL83vH2szWvvJe1p3CDAvBulKq3LoF1Ppo9Aowbs7JrArAqk3T5YuEgl9h5mmioYFpV9uaG2Kl9eVxoPrmtsJVp9ahMXHl8WOmD1VUGw/s400/2019-09-04_11-07-32.jpg" width="400" /></a></div>
<span style="background-color: white;"><br /></span>moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-86958630680313576372019-08-21T11:22:00.006-04:002023-08-20T13:03:03.467-04:00MEAN - MongoDB, Express, Angular, NodeJSMEAN Development<br />
<br />
M - MongoDB - <a href="https://www.mongodb.com/">https://www.mongodb.com/</a><br />
E - Express - <a href="https://expressjs.com/">https://expressjs.com/</a><br />
A - Angular - <a href="https://angular.io/">https://angular.io/</a><br />
N - NodeJS - <a href="https://nodejs.org/en/">https://nodejs.org/en/</a><br />
<br />
IDE of Choice - <a href="https://code.visualstudio.com/">https://code.visualstudio.com/</a><br />
<br />
Extensions of Choice for VS Code<br />
<br />
- Angular Essentials<br />
- Material Icon Theme<br />
<br />
Open VSCODE<br />
<br />
Ctrl + Shift + ` Opens Terminal Window<br />
<br />
Be sure you have installed NodeJS and Angular<br />
<br />
Command for Angular is <span style="background-color: yellow; font-family: "courier new" , "courier" , monospace;"><span style="color: #6a6a6a; font-size: 14px; font-weight: bold;">npm install</span><span style="color: #545454; font-size: 14px;"> -g @</span><span style="color: #6a6a6a; font-size: 14px; font-weight: bold;">angular</span><span style="color: #545454; font-size: 14px;">/</span><span style="color: #6a6a6a; font-size: 14px; font-weight: bold;">cli</span></span><br />
<span style="background-color: #ffd966; font-family: "courier new" , "courier" , monospace;"><span style="color: #6a6a6a; font-size: 14px; font-weight: bold;"><br /></span></span>
Use the Terminal to Navigate to cd c:/Users/UserName/Source/Repos<br />
<br />
Run<br />
<br />
<a href="https://angular.io/cli/new">https://angular.io/cli/new</a> <span style="background-color: yellow; font-family: "courier new" , "courier" , monospace;">ng-new app-name</span><br />
<br />
<br />
... More to come<br />
<br />
Angular = Components and Components = Uncoupled and resuability<br />
<br />
Always work from the <span style="background-color: yellow;"><span style="font-family: "courier new" , "courier" , monospace;">./src/app</span></span><br />
<br />
Create new folders following the naming structure<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">+-app</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> - app.component.css</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> - app.component.html</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> - app.component.ts</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> - app.component.spec.ts</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> - app.module.ts <span style="background-color: yellow;"></span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="font-family: inherit;">For new components create new subfolders in the app folder</span><br />
<span style="background-color: #ffd966; font-family: "courier new" , "courier" , monospace;"><span style="color: #6a6a6a; font-size: 14px; font-weight: bold;"><br /></span></span><span style="color: #6a6a6a; font-family: "courier new" , "courier" , monospace;"><span style="background-color: white; font-size: 14px;"><b>+-app</b></span></span><br />
<span style="color: #6a6a6a; font-family: "courier new" , "courier" , monospace;"><span style="background-color: white; font-size: 14px;"><b> |</b></span></span><br />
<span style="color: #6a6a6a; font-family: "courier new" , "courier" , monospace;"><span style="background-color: white; font-size: 14px;"><b> |</b></span></span><br />
<span style="color: #6a6a6a; font-family: "courier new" , "courier" , monospace;"><span style="background-color: white; font-size: 14px;"><b> +-my-dog</b></span></span><br />
<span style="background-color: white; font-family: "courier new" , "courier" , monospace;"> - app.my-dog.component.css</span><br />
<span style="background-color: white; font-family: "courier new" , "courier" , monospace;"> - app.my-dog.component.html</span><br />
<span style="background-color: white; font-family: "courier new" , "courier" , monospace;"> - app.my-dog.component.ts</span><br />
<span style="background-color: white; font-family: "courier new" , "courier" , monospace;"> - app.my-dog.component.spec.ts</span><br />
<span style="background-color: white; font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="background-color: white; font-family: "courier new" , "courier" , monospace;">Update the app.module.ts </span><br />
<span style="background-color: white; font-family: "courier new" , "courier" , monospace;"><br /></span>
<br />
<div style="background-color: #1e1e1e; font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 19px; white-space: pre;">
<div style="color: #d4d4d4;">
<span style="color: #c586c0;">import</span> { <span style="color: #9cdcfe;">BrowserModule</span> } <span style="color: #c586c0;">from</span> <span style="color: #ce9178;">'@angular/platform-browser'</span>;</div>
<div style="color: #d4d4d4;">
<span style="color: #c586c0;">import</span> { <span style="color: #9cdcfe;">NgModule</span> } <span style="color: #c586c0;">from</span> <span style="color: #ce9178;">'@angular/core'</span>;</div>
<span style="color: #d4d4d4;"><br /></span>
<div style="color: #d4d4d4;">
<span style="color: #c586c0;">import</span> { <span style="color: #9cdcfe;">AppComponent</span> } <span style="color: #c586c0;">from</span> <span style="color: #ce9178;">'./app.component'</span>;</div>
<div style="color: #d4d4d4;">
<span style="color: #c586c0;">import</span> { <span style="color: #9cdcfe;">PostCreateComponent</span> } <span style="color: #c586c0;">from</span> <span style="color: #ce9178;">'./posts/post-create/my-dog.component'</span>;</div>
<span style="color: #d4d4d4;"><br /></span>
<div style="color: #d4d4d4;">
@<span style="color: #dcdcaa;">NgModule</span>({</div>
<div style="color: #d4d4d4;">
<span style="color: #9cdcfe;">declarations:</span> [</div>
<div style="color: #d4d4d4;">
<span style="color: #9cdcfe;">AppComponent</span>,</div>
<div>
<span style="color: #d4d4d4;"> </span><span style="color: #9cdcfe;">MyDog</span></div>
<div style="color: #d4d4d4;">
],</div>
<div style="color: #d4d4d4;">
<span style="color: #9cdcfe;">imports:</span> [</div>
<div style="color: #d4d4d4;">
<span style="color: #9cdcfe;">BrowserModule</span></div>
<div style="color: #d4d4d4;">
],</div>
<div style="color: #d4d4d4;">
<span style="color: #9cdcfe;">providers:</span> [],</div>
<div style="color: #d4d4d4;">
<span style="color: #9cdcfe;">bootstrap:</span> [<span style="color: #9cdcfe;">AppComponent</span>]</div>
<div style="color: #d4d4d4;">
})</div>
<div style="color: #d4d4d4;">
<span style="color: #c586c0;">export</span> <span style="color: #569cd6;">class</span> <span style="color: #4ec9b0;">AppModule</span> { }</div>
</div>
<br />
<br />
<br />
<span style="color: #6a6a6a; font-family: "courier new" , "courier" , monospace;"><span style="background-color: #ffd966; font-size: 14px;"><b><br /></b></span></span>
moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-60585553550442268452019-07-17T18:58:00.001-04:002023-08-20T13:03:17.150-04:00Step by Step gmail filter<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">
<b><span style="font-size: medium;">How to setup Filters in gmail the easy way.</span></b><br />
<div>
<br /></div>
<div>
1. I will use "Vail Resorts Talent"</div>
<div>
<br /></div>
<div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAXXxO1MnrqoHbyAsvkmHtO7_D36UrLgi4-os4BWdf1xohc-dZvxjtnOx6VpWbzxqXRPWJLfO5vJ3V1uTL32wcZBZtrX14fd0Ct3RPyRqQqV3xeaLSWtLniPZL9M-5BteNf9XpeA/s1600/image-741364.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_6714770519741296034" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAXXxO1MnrqoHbyAsvkmHtO7_D36UrLgi4-os4BWdf1xohc-dZvxjtnOx6VpWbzxqXRPWJLfO5vJ3V1uTL32wcZBZtrX14fd0Ct3RPyRqQqV3xeaLSWtLniPZL9M-5BteNf9XpeA/s320/image-741364.png" /></a></div>
</div>
<div>
<br /></div>
<div>
2. Copy the email for this demo:</div>
<div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlH5ffWOmpgUtX4Xiv3UooramkTHsokNlQQYTjbmNMN6D_9rYF7vX-vxGzX6Z38NuTDE6sI2uFWbn0o_DKa4x1ZY8BLm_NjCAT2OGiHtnW7HzglbIvPrAgYz_4SeSSTIZ8qqrYRw/s1600/image-744013.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_6714770531493407522" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlH5ffWOmpgUtX4Xiv3UooramkTHsokNlQQYTjbmNMN6D_9rYF7vX-vxGzX6Z38NuTDE6sI2uFWbn0o_DKa4x1ZY8BLm_NjCAT2OGiHtnW7HzglbIvPrAgYz_4SeSSTIZ8qqrYRw/s320/image-744013.png" /></a></div>
</div>
<div>
<br /></div>
<div>
3: search what every in my example I am using in:inbox <a href="mailto:from%3Arecruiting@vailresorts.com" target="_blank">from:recruiting@vailresorts.com</a></div>
<div>
<div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMFyxzmTLj6JtQIKlKECQhji1ucPurP8Aj0miOfz-FPHMUJQ1WZF5t2OEx3Oo8lV7D8OaVEtNdLDFVHQkyKUZW_2yV6HU2V2pWslLBFJcqh3RxZOPnhnbqFyR1GutDXWY4VLnS2g/s1600/image-745820.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_6714770537890831618" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMFyxzmTLj6JtQIKlKECQhji1ucPurP8Aj0miOfz-FPHMUJQ1WZF5t2OEx3Oo8lV7D8OaVEtNdLDFVHQkyKUZW_2yV6HU2V2pWslLBFJcqh3RxZOPnhnbqFyR1GutDXWY4VLnS2g/s320/image-745820.png" /></a></div>
</div>
</div>
<div>
<br /></div>
<div>
4. Click Create filter</div>
<div>
<br /></div>
<div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7EIu6w0pwaEBZAep1LrxLfMOWENblR-7jLbyBb5gXk-pkPox4H341MqoJ-rYAx2VIq2cQgtOFlcGi1P7m268jy9sCLRwP8zHN6sXJiKmuIx7WHS5oWXxvvJlHr-Sl-O0R_KUCcQ/s1600/image-747160.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_6714770545056831282" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7EIu6w0pwaEBZAep1LrxLfMOWENblR-7jLbyBb5gXk-pkPox4H341MqoJ-rYAx2VIq2cQgtOFlcGi1P7m268jy9sCLRwP8zHN6sXJiKmuIx7WHS5oWXxvvJlHr-Sl-O0R_KUCcQ/s320/image-747160.png" /></a></div>
</div>
<div>
<br /></div>
<div>
5. It will show the emails and then like magic they are archived to their folders.</div>
<div>
<br /></div>
<div>
That is how I do it. </div>
<div>
<br /></div>
<div>
<br /></div>
</div>
</div>
</div>
moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-77354763600245022722019-06-11T10:34:00.002-04:002023-08-20T13:03:32.234-04:00Azure In a Month of Lunches - New Book I am reading<a href="https://azure.microsoft.com/en-us/resources/learn-azure-in-a-month-of-lunches/">https://azure.microsoft.com/en-us/resources/learn-azure-in-a-month-of-lunches/</a>moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-33817976703676284942019-05-09T11:34:00.003-04:002023-08-20T13:03:45.062-04:00How to clear SharePoint People Picker suggestion cache<h1 class="entry-title" style="background-color: white; border: 0px; clear: both; color: #444444; font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: 1.57143rem; font-weight: normal; line-height: 1.2; margin: 0px; padding: 0px; vertical-align: baseline;">
How to clear SharePoint People Picker suggestion cache</h1>
<div>
<br /></div>
<div>
<div class="entry-content" style="background-color: white; border: 0px; color: #444444; font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.71429; margin: 0px; padding: 0px; vertical-align: baseline;">
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
If you have been SharePoint Site owner long enough, you would have definitely bumped into task like assigning document permission using SharePoint People Picker.<br />One of the out of the box SharePoint People Picker features is that it auto caches all previous user entry entered/selected by you.</div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
<br /></div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
This cached people picker entity is meant to help you to quickly find the user and assign the permission.<br />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).</div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
Things could get messier for those who frequently accessing people picker, to be seeing the old cached user.</div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
Another situation that introduce inconsistency is when there is change of user name/job title etc for which is cached and not reflecting the correct info to the end user.</div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
<br /></div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
SharePoint People Picker uses <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">LocalStorage</strong> to cache the people picker entity. In order to flush the cache, you would need to run a JavaScript to clear the cache. What’s worst is that there is no expiration set.<br />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 <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">ClientPeoplePickerMRU</strong>.</div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
hit <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">F12</strong>: For Chrome, IE and Firefox (Note:You must be firing up the developer tool at the SharePoint Page)</div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
<br /></div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
<strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Chrome – Resource tab</strong></div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
<br /></div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
<br /></div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
So what can we do?</div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
If you are developer and techie, you can easily fire up the developer console of your browser and run the below JavaScript</div>
<div style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<div class="syntaxhighlighter jscript" id="highlighter_542950" style="border: 0px; font-size: 1em !important; margin: 1em 0px !important; overflow: auto hidden !important; padding: 0px; position: relative !important; vertical-align: baseline; width: 624.984px;">
<table border="0" cellpadding="0" cellspacing="0" style="background: none !important; border-collapse: collapse; border-radius: 0px !important; border-spacing: 0px; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: #757575; direction: ltr !important; float: none !important; font-family: Monaco, Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; table-layout: auto !important; top: auto !important; vertical-align: baseline !important; width: 624px;"><tbody style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<tr style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><td class="gutter" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: rgb(120, 120, 120) !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;"><div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-bottom-color: initial !important; border-bottom-style: initial !important; border-image: initial !important; border-left-color: initial !important; border-left-style: initial !important; border-radius: 0px !important; border-right-color: rgb(212, 208, 200) !important; border-right-style: solid !important; border-top-color: initial !important; border-top-style: initial !important; border-width: 0px 3px 0px 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
1</div>
</td><td class="code" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: 592px;"><div class="container" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">
<div class="line number1 index0 alt2" style="background-attachment: initial !important; background-clip: initial !important; background-image: none !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre !important; width: auto !important;">
<code class="jscript plain" style="background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; color: black !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;">localStorage.clear();</code></div>
</div>
</td></tr>
</tbody></table>
</div>
</div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
If you are helping your end user to flush the cache, one possible way is to provide them a quick custom web part using javascript above to flush their cache. Alternatively, creating a custom JS with leveraging Cookie as expiration check, put it into your home page. Whenever user accessing to your home page, this JS will check from Cookies to see if it is time to Refresh (or clear) the local storage.<br />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.</div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
For <strong style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">IE Users </strong>who wish to clear the people picker. Here are the steps you may follow<br />1. Go to page with people picker<br />2. F12 Developer Tools<br />a. Console<br />b. localStorage.clear();<br />3. Close F12<br />4. Then refresh the web page to test it.</div>
<div style="border: 0px; line-height: 1.71429; margin-bottom: 1.71429rem; padding: 0px; vertical-align: baseline;">
[Credit goes to Chris for the steps above]</div>
</div>
<footer class="entry-meta" style="background-color: white; border: 0px; clear: both; color: #757575; font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: 0.928571rem; line-height: 1.84615; margin: 1.71429rem 0px 0px; padding: 0px; vertical-align: baseline;">This entry was posted in <a href="http://wp.ahcheng.com/category/sharepoint-2013/" rel="category tag" style="border: 0px; color: #757575; font-size: 13px; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;">SharePoint 2013</a> and tagged <a href="http://wp.ahcheng.com/tag/cache/" rel="tag" style="border: 0px; color: #757575; font-size: 13px; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;">cache</a>, <a href="http://wp.ahcheng.com/tag/javascript/" rel="tag" style="border: 0px; color: #757575; font-size: 13px; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;">JavaScript</a>, <a href="http://wp.ahcheng.com/tag/people-picker/" rel="tag" style="border: 0px; color: #757575; font-size: 13px; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;">people picker</a> on <a href="http://wp.ahcheng.com/2015/07/14/how-to-clear-sharepoint-people-picker-suggestion-cache/" rel="bookmark" style="border: 0px; color: #757575; font-size: 13px; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;" title="2:56 pm"><time class="entry-date" datetime="2015-07-14T14:56:12+00:00" style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">July 14, 2015</time></a>.</footer></div>
moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com1tag:blogger.com,1999:blog-11258457.post-76211104158584588432019-05-01T13:37:00.001-04:002023-08-20T13:03:59.964-04:00GitHub --set-upstreamgit push --set-upstream <b>https://github.com/moojjoo/PlunkerNGClick.git</b> master<br />
<br />
git pull<br />
<br />
git commit -m 'Another commit'<br />
<br />
git pushmoojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-43929395120935383492019-03-20T11:46:00.001-04:002019-03-20T11:46:20.522-04:00Nice AdSearch by LanID to populate a form$('#Domain_ID').focusout(function () {<br />
$.ajax({<br />
type: 'GET',<br />
url: 'https://localhost:44364/api/v1/AdSearch?userId=rdanne1',<br />
dataType: 'json',<br />
error: function (xhr) {<br />
alert("An error occured: " + xhr.status + " " + xhr.statusCode);<br />
},<br />
success: function (data) {<br />
if (data) {<br />
$('#Domain_ID').val(data.lanId);<br />
$("#Name").val(data.name);<br />
$("#Email").val(data.email);<br />
}<br />
}<br />
});<br />
});moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-90664754387355854672019-02-27T17:46:00.004-05:002023-08-20T13:04:19.986-04:00SQL RAISEERROR and Log the errorPut all SQL Stored Procedures in BEGIN TRY > BEGIN TRANSACTION > IF ELSE blocks and use the following as a TEMPLATE<br />
<br />
Create an output parameter so the source code can log the error and you can check the DB table for the error.<br />
<br />
<br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;">@ELog_ID int = 0 OUTPUT </span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;">SET XACT_ABORT, NOCOUNT ON;</span><br />
<span style="background-color: #f3f3f3; white-space: pre;"><span style="font-family: "courier new" , "courier" , monospace;"> </span></span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;">BEGIN TRY</span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><span style="white-space: pre;"> </span>BEGIN TRANSACTION</span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;">IF</span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"> IF EXISTS (SELECT 'x' FROM People_tbl WHERE Email_Address = @Email_Address)</span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><span style="white-space: pre;"> </span>RAISERROR (N'Person is already in the database.',11,11, 'usr_Person_Add')</span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><span style="white-space: pre;"> </span>--PRINT 'Person is already in the database!'</span><br />
<span style="background-color: #f3f3f3; white-space: pre;"><span style="font-family: "courier new" , "courier" , monospace;"> </span></span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;">ELSE</span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;">-- CRUD work</span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;">END TRY</span><br />
<span style="background-color: #f3f3f3; white-space: pre;"><span style="font-family: "courier new" , "courier" , monospace;"> </span></span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><span style="white-space: pre;"> </span>BEGIN CATCH</span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><span style="white-space: pre;"> </span>--PRINT 'In the Catch Statement'</span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><span style="white-space: pre;"> </span>IF @@trancount > 0 ROLLBACK TRANSACTION</span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><span style="white-space: pre;"> </span>PRINT 'Process has reached the CATCH'</span><br />
<span style="background-color: #f3f3f3; white-space: pre;"><span style="font-family: "courier new" , "courier" , monospace;"> </span></span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><span style="white-space: pre;"> </span>EXECUTE dbo.[usr_InsertErrorInfo];</span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><span style="white-space: pre;"> </span>SELECT @ELog_ID = max(ELog_ID)</span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><span style="white-space: pre;"> </span>FROM ErrorLog_tbl;</span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="background-color: #f3f3f3; white-space: pre;"><span style="font-family: "courier new" , "courier" , monospace;"> </span></span><br />
<span style="background-color: #f3f3f3; font-family: "courier new" , "courier" , monospace;"><span style="white-space: pre;"> </span>END CATCH</span><br />
<br />
<br />moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com0tag:blogger.com,1999:blog-11258457.post-43908231475213090332019-02-26T13:17:00.001-05:002023-08-20T13:04:33.048-04:00PowerShell output to table and text fileGet-SPUser -Web "https://subdomain.domain.com" | format-table -autosize > e:\spusers.txt<br />
<br />
<a href="https://docs.microsoft.com/en-us/powershell/scripting/overview?view=powershell-6">https://docs.microsoft.com/en-us/powershell/scripting/overview?view=powershell-6</a><br />
<br />moojjoohttp://www.blogger.com/profile/05301245537022471911noreply@blogger.com2