Agile Musings

Friday, June 01, 2018

Notepad++ Preferences

Configure to use spaces instead of tabs
Settings->Preferences->Language Check "Replace by space"
https://stackoverflow.com/questions/8197812/how-does-one-configure-notepad-to-use-spaces-instead-of-tabs

Show white space
View->Show Symbol->Show all characters ?

Set style of white space
Settings->Style Configurator->Global Styles->White space symbols

Git Visualizations


Here are some visualization tools for git repositories

For github, https://github.com/crc8/GitVersionTree/network for your project

Git GUI. It should already be installed on your machine with Git for Windows.
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Git
From Git GUI, go to the “Repository/Visualize All Branch History” menu item

GitVersionTree https://github.com/crc8/GitVersionTree/releases
uses https://graphviz.gitlab.io/download/

TortoiseGit does have a log functionality that is useful
https://tortoisegit.org/download/

Thursday, May 31, 2018

Beyond Compare: Insert spaces instead of tabs

To change the way Beyond Compare behaves when you enter a tab 
- Go to the menu \Tools\File Formats
- Select the "Everything Else" option that has a Misc tab
- Check the Insert spaces instead of tabs
- Change tab stops to 4 spaces





Saturday, May 19, 2018

How to setup Google Cloud Print

I spent several hours this morning trying to get a printer so that it would be available for other computers on my home network to print.

I have a desktop upstairs with a wireless connection. For whatever reason, it cannot connect consistently to my printer when set up through WiFi nor on the wired downstairs desktop when connected by USB. I have reproduced the problem when I sit next to the upstairs desktop using my laptop.

In short,
1 - Set up Google Cloud Print Service so that your printer will be available even if you are not logged into the computer that has your printer attached
  https://tools.google.com/dlpage/cloudprintservice
2 - Install Google Cloud Printer driver on the windows computers that you want to print from.
  https://tools.google.com/dlpage/cloudprintdriver
3 - Share the Google Cloud Printer with others you want to be able to print from a Chromebook.


For more detail, follow the video tutorial. It helped me get my printing up and running.
How to setup Google Cloud Print

You can get the Google Cloud Print Connector here

https://github.com/google/cloud-print-connector/wiki/Windows-MSI-Installation

https://github.com/google/cloud-print-connector/releases





Google Cloud Print Service
https://tools.google.com/dlpage/cloudprintservice


I also tried installing "Cloud Print for Windows". http://www.swdevs.com/cps.htm

It seems to do what the Google Cloud Print Service already does. But with some windows apps to configure it.

I also tried installing Google Cloud Printer driver.
https://tools.google.com/dlpage/cloudprintdriver

-

Sunday, April 29, 2018

Require HTTPS or SSL with URL Rewrite

Back in 2016, I was trying to get an IIS app to run locally

I got this error:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

I removed the content of the web.config inside the root node. I added them back in a section at a time. It was the node that caused the error.

I had to install https://www.iis.net/downloads/microsoft/url-rewrite
on my Windows 7 machine. Then the error went away.

Here is an example what to put in the node of your web.config

Saturday, March 31, 2018

Steps I took to install Windows 10 on a New Hard Drive

I am installing Windows 10 on a new machine. I used the "Create Windows 10 installation media" tool from https://www.microsoft.com/en-us/software-download/windows10
to create a USB to install Windows 10 from.

I had to press F12 while it was booting up while the USB was in the correct slot. The first slot I picked did not work.

I also had to disconnect the secondary hard drive.

I had to partition the hard drive and format it. I used method 3 from https://www.avoiderrors.net/unable-create-new-system-partition/. I found this from his video, https://www.youtube.com/watch?v=o4ilMAAk1Q8

Method 3
1. When you see the error in question, press Shift+F10 to open the command prompt.
2. In the command prompt type diskpart and hit Enter.
3. Then type list disk and hit Enter.
4. Type select disk  X (X being the local drive.), and then hit Enter. In my case the disk where I want to install Windows 7 is Disk 0, so the command would be “select disk 0”
5. Type clean and hit Enter.
6. Now type create partition primary size=5000 and hit Enter.
7. Now type format fs=ntfs quick and phit Enter. This command will format the partition using NTFS.
8. Type assign and hit Enter. This will assign a drive letter to the partition.
9. Type active and hit Enter.
10. Type list volume and hit Enter. To list the drive letters of the Windows installation media (USB/Disc).

I modified the steps above. I used the diskpart command line program to partition and format the whole SSD. I had the secondary hard drive plugged in. One of the other methods probably would have worked if I had disconnected it to begin with. Once I disconnected it and tried again, it was able to start the installation.

When the installation wizard asked, I entered my license key from the defective hard drive.

I did not have it use a Microsoft account. I used a disconnected one.


The first error was "We couldn't create a new partition or locate an existing one.". This was fixed by using diskpart to partition and format the disk.

The second error was "we couldn't install windows in the location you choose 0x80300001" I solved this by powering off the PC and disconnecting the secondary hard drive.