Friday, September 30, 2011

Recursive removal

Remove all files and directories (recursive removal):
rm -rf /tmp/foo
Remove all files from current directory use this command:
rm -f *

Vim configuration

To use vim, you should install vim package:
sudo apt-get install vim

If you prefer to use GUI based vim, you should install vim-gnome package:
sudo apt-get install vim-gnome

vim is a highly configurable editor. A list of files and their locations are given below.

  • ~/.vimrc is the vim configuration file which vim reads on startup
  • ~/.gvimrc is the gvim configuration file which gvim reads on startup. It's best to keep only gui specific settings here, as it will take preference over the settings in your .vimrc file.
  • ~/.vim/ is the directory in which the user can add utility plugins, syntax highlighting plugins, and indent plugins.

Monday, August 15, 2011

Color

I prefer to use HSV color space instead of RGB because they better match how people perceive color. The HSV color space consist of three components: hue, saturation and value.

  • Hue: The basic color in the color wheel, ranging from 0 to 360 degrees where both 0 and 360 degrees are red.
  • Saturation: How pure (vs. dull) the color is, ranging from 0 to 100, where 100 is fully saturated and 0 is gray.
  • Value: How bright the color is, ranging from 0 to 100, where 100 is as bright as possible and 0 is as dark as possible (black).
An example where color's value reduced by 20 (100, 80, 60):


See also this article in msdn to get more details.

Sunday, May 29, 2011

Vim

Vim is a highly configurable text editor built to enable efficient text editing. Vim you can find here.

Learning

Read his book in Swaroopch website, it will help you to learn how to use the Vim.

See also this post in Kevin Berridge's blog to get more details how to use Vim in .NET development.

Wednesday, May 25, 2011

Observer Synchronization

In some applications you have multiple screens available that display presentations of a common area of data. If a change is made to the data through one of these screens, you want all the other screens to update correctly. However you don't want each screen to know about the others, because that would increase the complexity of the screens and make it harder to add new ones.

See also this post in Martin Fowler's website to get more details. Observer pattern is described here.

Saturday, May 21, 2011

Audit Log

A simple log of changes, intended to be easily written and non-intrusive.

See also this post in Martin Fowler's website to get more details.

Thursday, May 19, 2011

Fiddler

Fiddler is an HTTP Proxy running on your local PC. You can download it from here.

If you want to catch WCF messages with fiddler, then replace 'localhost' to 'ipv4.fiddler'.