Monday, December 30, 2019

How to change the default location for Git Bash on Windows

Setting HOME environment variable in your Windows system can do the trick.  It works for not only Git Bash but also GNU Emacs.  I have used this HOME environment variable for many Linux-like applications since Windows XP and it always works.  The following steps are using Windows 10 as our example.

On Windows 10,

  • Type "edit env" at the desktop search box
  • Select and open Edit environment variables for your account
  • Select Environment Variables... on the "Advanced" Tab of System Properties popup (see the picture below)
  • Create either User or System variable; the example below is using User variable
  • Enter HOME in the "Variable Name" textbox; the name is case insensitive; thus home, HoMe and the like are the same.
  • Enter your path in "Variable value" textbox; the value is also case insensitive. 
  • Click OK twice to confirm and exit
Restart your Git Bash.  The home path will be updated accordingly as well as it will be shown in the title of Git Bash window.



Monday, December 16, 2019

Google Photo Collaboration Setting - Let others add their photos & videos

The following is only referring to "Create Link" in Google Photos for sharing.


Recently I've found that there are two issues with the collaboration option.
  1. The collaboration option is no longer available in the sharing pop-up dialog. You can only do the setting separately.  It means it needs additional steps to amend the settings.  You are no longer to do this in a single step within the sharing pop-up. 
  2. In addition, you can only create one and only one single share link which is either allowing all viewers to add photos or view only.  In the past, you could create two separate links one after another for the purposes; one is readonly while the other can allow people to view and add photos and videos.  
I am not sure if it is a bug in the recent changes (December, 2019) or it is an intent.

How to set collaboration for either "view only" or "Let others add their photos & videos"


By default, the setting is "Let others add photos & videos"  To change it, do the following:
  1. Go and access the "More options" icon at the top-left corner nearby your profile picture.


    This is applicable to the following two (2) situations
    • When you create an album before adding all photos, you can do the setting immediately.
    • After you have added photos to the album, you can change or amend the settings.
  2. Click or select the "Options" menu item to proceed.
    New album before adding photos An album after creation and having photos
  3. In "Options" pop-up, locate "Collaborate" section to enable or disable "Let others add their photos & videos".  Note the default setting is enabled.