Getting the WiFi password for a network you’ve connected to on Windows 10

Standard

One more hack/pro-tip for today. I needed to get the WiFi password for a network my PC was connected to because I wanted to add my phone to the same network.

In comes Google to the rescue. One search term and two clicks after, I found a neat trick I’m sure I’ve used before but just couldn’t remember.

So, to help myself out in future and any other person out there who may need it, here’s how you do reveal Network Passwords on a Windows 10 PC (should work on others too, but I can’t be sure).

Open up an instance of Command Prompt and type in:

You’d get a list of networks that you’ve connected to (and saved) in the past.

Next, type in:

be sure to replace <network name> with the name of a network from the previously displayed list. And that’s all!!!

How to set dynamic page titles in Angular 2/4

Standard

I’ve been creating projects using Google’s Angular frameworks for over 3 years now and in that time, I’ve needed to change the document title as the user moved through the app.

In Angular 1.x, I surmounted this challenge by moving my ng-app  declaration to html  tag (instead of the body  tag) and then controlled the page title by using $broadcast and $on  to determine when to change the $rootScope  property that I used to keep track of the page title.

Angular 2/4 has been a different beast entirely and I never gave it (setting dynamic page titles) much thought until I worked on a project that required it. I was fine with having a single page title (usually the application’s name) for the lifetime of the apps I’ve built.

I did a bit of googling and found an article by Todd Moto of the Angular Team that solved the problem in the cleanest way I’ve seen yet.

As I usually do, I’m writing this up here so I don’t go head-scratching at a later date when I need to do this again.

Here’s a link to the Github Gist.

For explanations, please refer to the original post from Todd Moto

 

Using Git Bash with PhpStorm

Standard

 

This morning I felt there should be more to the terminal in JetBrain’s PHPStorm IDE and it turns out I was right.

Full disclosure, I’ve come to prefer the *nix style command line interface to Windows and that’s reflected in my choice to continue using Git Bash on my work PC (it’s a Lenovo Thinkpad with 64-bit Windows 10).

So, back to the subject of this post, I did a bit of googling and full credit to https://bobsguides.com/blog.html/2014/10/23/git-bash-inside-phpstorm/ as I found the fastest way to switch the default terminal used by PhpStorm.

So make the switch, just go to:

Once here, change the “Shell Path” to:

For a 32-bit system, use

or the equivalent path to your git-shell installation.

The -login  switch informs the program to run it’s configuration files and the -i  switch informs the program that you want the interactive mode.

Thankfully, I won’t need to scratch my head searching for this anymore.