Sync Notebooks on OneNote Mac

I annoyingly had a OneNote notebook I used at work on a PC, but I couldn’t get it to sync into OneNote on my Mac.

Here’s the secret – it won’t automagically appear, you have to manually open the notebook.

Click on the plus sign in the Notebook dropdown.

Screen Shot 2016-01-28 at 7.16.47 AM

In the popup window that opens, click “Open”, then select OneDrive or wherever your Notebook is synced, and then choose the Notebook you want to open.

Screen Shot 2016-01-28 at 7.19.04 AM

That’s it! Kind of weird why Microsoft would not just make all Notebooks sync automagically, but well, its Microsoft.

Advertisements

How to Remove Old Car Registration Sticker From Your Windshield

Here’s what worked for me. Use a paper towel or rag, get it thoroughly wet with water, and press it onto the back of the sticker. Hold here for around 5 minutes. The sticker then should be able to peel off, even in the circular pieces that it is cut into.  If it still isn’t coming off easy, simply hold the wet paper towel on there longer. See credit here.

I imagine this problem will be obsolete eventually, as the new stickers I have seem to be easy to remove.  But somehow, our recently purchased car had one of the older registration stickers on it that are designed to self destruct upon removal. I assume this was meant to be some sort of security feature to prevent the stickers from being stolen. However, in my opinion this is a classic example of overdesign – the pain of removing these when you actually need to remove them verses the cost of having one stolen (they’re only worth like $50), is way out of balance in my opinion.

Add Git Autocomplete to Terminal

A nifty edition to the git command line is autocomplete. First, get the git completion script:

curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash

Then edit your ~/.bash_profile file to add the following code:

if [ -f ~/.git-completion.bash ]; then
  . ~/.git-completion.bash
fi

(go here for help on editing your .bash_profile)

That’s it. Now you can type git and press Tab twice to get an autocomplete list of commands.

credit:

http://apple.stackexchange.com/questions/55875/git-auto-complete-for-branches-at-the-command-line/55886#55886

http://code-worrier.com/blog/autocomplete-git/

How to Edit Your .bash_profile File

The bash_profile file is a hidden file that contains various settings and preferences that are run on startup for Terminal, including the PATH.

It’s actually super easy to edit. You simply need to open it in your favorite text editor. (I use Sublime Text) For example, if you are in your home directory, you can run

sublime .bash_profile

If you’re not in your home directory, add ~/ in front of it:

sublime ~/.bash_profile

Now you will have your .bash_profile file open in your text editor, and you can edit at will and save.

See, pretty easy!

credit: http://natelandau.com/my-mac-osx-bash_profile/

Find the Password for Saved or Connected To Wireless Networks on a Mac

I’ve wanted to do this at least a hundred times before, and finally looked it up.  Sometimes you have connected your computer to a network many times in the past and magically your computer remembers it.  But then you get a new phone and you want to connect your phone to that network, but you don’t remember the password, even though your computer is connected to it.

Certainly if your computer knows and remembers the password, it can show you what it is, right? Yep.  Here’s how.

Open the Keychain Access app, found in /Applications/Utilities/Keychain Access. Click on “System” on the left hand side in the “Keychains” section.
Sort the list by “kind”, and you will see the wireless networks that your computer has remembered. You can also use the search box in the upper right corner to type in the network name. Additionally, depending on your version of Mac OS, you might click on “Login” in the “Keychains” section, and the screenshots might look slightly different.
Screen Shot 2015-10-19 at 5.44.12 AM

Double click on the network you want, and a window will pop up with its details. Then click on “Show Password”, type in your system password (not the network password) to edit your keychain, and voila, there is the password.

Screen Shot 2015-10-19 at 5.53.37 AM

Nifty huh?

credit here

How to edit or update your Terminal Path

If you’re not super familiar with using the command line, Terminal, or editing the path of your Terminal session, then it can be a bit scary.  I know when I first tried it I was unsure even how to do it.  So here’s a real quick and simple way to edit the PATH.

First, switch into your home directory by typing the

cd

command. Then, you can open the .bash_profile file in your favorite text editor. I use Sublime Text.

sublime .bash_profile

Now you will see a file that has something like this in it:

export PATH=$PATH:/usr/local/bin

and possibly many other paths following that.  You can also print out the current path in the Terminal using the
echo $PATH command.

So now that you have your .bash_profile file open, you can edit it to add other paths if you need to. For example, if I wanted to add a ruby installation via rvm to my path, I could simply add it at the end of the path declaration like this:

export PATH=$PATH:/usr/local/bin:/usr/local/rvm/gems/ruby-2.2.0

I simply save this file, and you’re done!  You can verify that the new path has been added by going back to Terminal and using the echo $PATH command to print out what’s currently in the PATH.
credit here

Force Close a Tab in Google Chrome

Sometimes tabs stop working and will hang and not let you close them when you click on the ‘X’.  Usually Chrome is good at closing tabs that have crashed, but not always.  In case you need to manually close a tab that is not responding, here’s how you do it.

Go to Window -> Task Manager.  Find the misbehaving tab by its title, and click End Process.

Screen Shot 2015-08-30 at 2.35.58 PM

Pretty easy huh?

credit here.