Search This Blog

29 February, 2012

adding/inserting comment in Aptana studio 3

For inserting comment in Aptana Studio 3 check the menu Commands > Source > Comments. as seen below attached screencapture

Ctrl - /      to add/remove // for a single line of code, or for multiple selected lines.
Ctrl-shift-/ to add /* */ around selected code or inserting block comment
Ctrl-Shift-B  insert comment banner



26 February, 2012

diff, excluding files and directories

For excluding files and directories  while using diff, we can pass the exclude pattern in the command line.

Say for you  u want to exclude the below file and folders
config.txt
log.txt
logs -> Folder/Directory
error_log
uploads -> Folder/Directory

diff -Nru  -x 'config.txt' -x 'log.txt' -x 'logs' -x 'error_log' -x 'uploads' <folder-old> <fodler-new>



25 February, 2012

WiFi Soft AP - Virtual AP-Virtual Router - Windows 7 for internet sharing like wireless hotspot

hello all want to turn your laptop to a WiFi hotpsot. you can call it like Software AP, Soft AP, Virtual Access Point(VAP), virtual router. From Windows 7 onwards we can turn the WiFi adapter in the laptop or PC to work like an Access Point. So after turning on this feature your laptop/PC will act as an WiFi Access Point so that laptop/PC with wifi adapter can connect to it for browsing or you can do normal PC connectivity for data sharing

For this we need to configure the settings using netsh using administrator privilege and enable the internet connection for the interface which u want to share.

Follow the below steps to achieve it

1) Select the  network interface properties , say if you want to share the data card , select as shown below
2) Go to the Sharing tab and in the Internet Connection Sharing

check the checkbox Allow other network users to connect through this computers Internet connection as shown in the below figure

3) Now open the command prompt in administrator privilege, For this you can right click on the command prompt in the start menu right click on it and press Run as administrator


4) Now in the command prompt type the below two commands
netsh wlan set hostednetwork mode=allow ssid=test key=password
netsh wlan start hostednetwork


You can see the output for the commands typed

After this, you laptop/PC is ready as an WiFi Access Point (AP), and others can connect to it for internet browsing or transferring data between the computers





tmux enabling mouse interaction

Add the below line to the ~/.tmux.conf setw -g mouse on save the file and exit from the tmux shell, you should be able to use your mouse to ...