Saturday, December 19, 2015

Convert *.jpg to *.ps on Mac OS

Firstly, install homebrew, then run the following command:

# brew install imagemagick

After the imagemagick is installed, run the following command to convert jpg to ps:

# convert picture.jpg picture.ps

Saturday, October 31, 2015

MacOS: Change [HOME] and [END] key to move to the begining or end of a line in a text editor

While writing code on Windows, the [HOME] and [END] key allow me to move to the begining or end of a line, but this is not the default behavior on MacOS while i am doing development at the moment. Since i love this feature and would like to have something similar, after digging i found the following way that works for me.

Download, install and run the Karakiner (https://pqrs.org/osx/karabiner/), In its "Change Key" tab, search for "Use PC style home/end", Now check to enable this feature, and there you have the PC style home/end shorts which allows to move to the begining or end of a line when pressing the [HOME] or [END] key

Friday, May 1, 2015

TortoiseSVN: recursively exclude bin, obj folders and other meta files from committing to SVN server

Suppose you use TortoiseSVN as SVN client and have a large project which contains many sub projects, and you want to exclude committing the "bin", "obj" folders to the SVN server, you can add a global ignore pattern to the root folder of the project by right-clicking the folder and selecting "Tortoise SVN --> properties" and add in a global ignore pattern such as in the following figure (remember to check the "Apply property recursively" if it is the first time to do so).


Wednesday, April 29, 2015

PluralSight Video Buffering problem

Recently i was having some problem with watching videos from pluralsight, the chrome i am using to watch their online videos stop buffering when continuing from one video to the next (only shows a progress circle in the middle of the black background), after contacting their support, the following workaround was offered, which seems to solve my problem:

"If you are running Chrome 42 or higher you will need to go to the URL [chrome://flags/#enable-npapi] and click “Enable” under Enable NPAPI. Click Relaunch Now at the bottom of the page"

Monday, February 2, 2015

Add or modify Text to the PDF in Adobe Acrobat

To add or edit text to a PDF file using the Adobe Acrobat, select "Tools->Advanced Editing->Touchup Text Control", Now select some text to modify, a rectangle will appear, and one can begin typing text, or modify the font by right -click the selected text and select "Properties".

To add a signature or draw something on PDF, select "Tools->Drawing Markups->Pencil Toos"

Tuesday, January 6, 2015

How to collapse all projects in the solution explorer of visual studio

The following link contains the visual studio extension which allows one to collapse the projects in the solution explorer of the visual studio. Very useful if a solution contains  a lot of projects: