Pages

Monday, December 10, 2012

Adding a new blogspot from MarsEdit.

When you want to setup a new blog connection between blogspot and MarsEdit, this is how you can do it.

The basic idea is to make a setting from MarsEdit as follows:

Screenshot12%25253A10%25253A1212%25253A22PM-2-2012-12-10-12-23.png

Procedure

You start from “New Blog”.

PastedGraphic13-2012-12-10-12-23.png

Then, you are requested to add google account that relates to the bloodspot.

PastedGraphic14-2012-12-10-12-23.png

And that’s it. It automatically gets all the blogs from the blogger so that you can update or add some more.

git ignore using Tower.

Click the right button on the file you want to ignore.

ScreenShot2012-12-10at11.52.55AM-2-2012-12-10-11-53.png

You need to check “Only ignore locally”. It makes the change in .git/info/exclude file.

PastedGraphic9-2012-12-10-11-53.png

PastedGraphic10-2012-12-10-11-53.png

See the file is added.

PastedGraphic11-2012-12-10-11-53.png

The other option is storing the ignore files in .gitignore.

PastedGraphic12-2012-12-10-11-53.png

In this case, the ~/.gitignore file is updated to reflect the changes.

Symbolic link and alias in Mac.

In Mac OS X, you have two choices when you want to have a file that has a link to an exisiting file: alias (Command L), and symbolic link (Shift-Command L).

PastedGraphic-2012-12-10-10-25.png

Command line tools can understand a symbolic link, not an alias. For GUI tools, e.g., PathFinder, both an alias and symbolic link will work. Automator, however, works only with alias. It’s understandable because link is a legacy from UNIX; so is command line tools. Likewise Automator is a legacy from Mac; so is an alias.

You’ll notice that alias link is larger, which means has more information. An alias has two pieces of information: UID of the file that it links to, and the physical path and file name that it links to. As a result alias will understand the changes you make to the original file.

A symbolic link doesn’t contain the UID. As a result symbolic link will be shown as broken when you change the name of the file that it links to.

Demo

  1. Using “command-L”, I create an Alias. PastedGraphic1-2012-12-10-10-25.png
  2. Rename the progress directory as “progress_update”. PastedGraphic2-2012-12-10-10-25.png
  3. Click the “progress_update” to check Path Finder finds the linked directory correctly. PastedGraphic3-2012-12-10-10-25.png

And this is an example for symbolic link.

  1. Using “Shift-Command-L”, I create a symbolic link. PastedGraphic4-2012-12-10-10-25.png
  2. Change directory name. PastedGraphic5-2012-12-10-10-25.png
  3. Check Path Finder finds the link OK. PastedGraphic6-2012-12-10-10-25.png

For the command line tools, the alias is just a file (color in black), however the symbolic link is recognizable (color in pink).

PastedGraphic7-2012-12-10-10-25.png

And you can use command line tools for the change.

PastedGraphic8-2012-12-10-10-25.png

In short

  • Use symbolic link when you want to use command line tools, for example when you want to use Linux to login your mac account.
  • Use alias when you work with your mac, as it will understand your changes.

References