Saturday, November 5, 2011

New law eases job market for immigrants in Germany

This move is very much welcome as highly skilled immigrants can get respectable position in Germany due to skilled labour shortage. There was support and protest for this laws but A new law designed to force German employers to recognize foreign qualifications passed its final hurdle in the German parliament, the Bundesrat, on Friday. :)


For detailed information, Please follow the source link: http://www.thelocal.de/national/20111104-38665.html

Thursday, October 20, 2011

How to see/use Macbook Pro Hidden keys (character) on Keyboard

I already wrote about this in my OLD POST for finding hidden characters which are not directly visible on Macbook. These characters are frequently used by programmers or writing some technical things.

I received a wonderful advice which made things very very simpler. I am going to just elaborate his comments.

Here are the following steps for finding the keys:

1. Goto "System Preferences"
2. Select "Keyboard"
3. Check the box that says "Show Character & Keyboard Viewer in menu bar".
4. Once this is selected you can click on the icon in the menu bar next to your battery status.
5. select "Show Keyboard Viewer".

This will give you an onscreen keyboard that shows what symbols are available when you push special keys like the "alt", "command" and "control" keys.

Tuesday, July 26, 2011

Increase/Decrease LCD Brightness using Linux shell/commandline

You can increase your laptop brightness using Linux shell/commandline. There are some brightness levels predefined. You have to use these values for increasing or decreasing brightness from shell/commandline.

Brightness levels: 4 16 28 40 52 64 76 88 100

The command for increasing the brightness is

echo -n 88 > /proc/acpi/video/VGA/LCD/brightness

You can select other brightness levels according to your preference instead of 88 from above lists.

I also wrote a small shell script for making it more convenient . Give your own fancy name for this shell script. My given name is 'set_brightness.sh'

-----------------------------------------------------------------------------

#!/bin/bash
#
# Copyright (C) 2011, Ankit Singh
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# SHELL SCRIPT TO INCREASE BRIGHTNESS LINUX (UBUNTU)
#
# NOTE: You can only use this script as super user i.e $sudo su

if [ $# -lt 1 ] ; then
echo
echo "Please Choose Brightness levels 4 16 28 40 52 64 76 88 100"
echo
exit 1
else
VALUE=$1
fi

set_brightness()
{
VAL=$1
echo -n $VAL > /proc/acpi/video/VGA/LCD/brightness
echo
echo " *** [SUCCESS] Set Brightness to value to " $VAL
echo
return 0
}

set_brightness $VALUE

---------------------------------------------------------------------------------

Monday, June 20, 2011

Not showing TABs on SAFARI Browser of Mac OS X 10.6.7

If you are not able to see your opened TABs on your safari Browser of Mac OS X 10.X then please follow the steps:

  1. Close all windows of SAFARI browser
  2. The type the following command on your Mac OS Terminal:-
$ defaults write com.apple.Safari AlwaysShowTabBar -bool YES

3. Re-open your Safari Browser. And you are done! It will work normally. :)

Wednesday, June 15, 2011

Installation Guide for IF-MAP Server And Client

IF-MAP is a standard interface between the Metadata Access Point and other elements of the Trusted Network Connect (TNC) architecture. You can find documents define and specify IF-MAP HERE: 
IF-MAP Server (Java) 
--------------------------- 
- Install http://trust.inform.fh-hannover.de/joomla/index.php/projects/iron  
IF-MAP Client/Library (C/C++) 
---------------------------- 
- Install http://code.google.com/p/libifmap2c/
Download one zip file from project iron (SERVER): irond-0.2.2-bin.zip 
Download two zip file from libifmap2c (CLIENT):- "libifmap2c-0.2.0.tar.gz" & "libifmap2c-examples-0.2.0.tar.gz".
-------------------------------------------------------------------------
I will provide Installation steps for above downloaded file on Ubuntu Linux.
The following are the files or dependencies required before starting Installation/build process:-
  1. g++
  2. cmake
  3. libxml2-dev
  4. libcurl4-gnutls-dev
For SERVER Installation:
The server file is already pre-build i.e binary file. You just have to extract And run it.
  1. Extract file irond-0.2.2-bin.zip
  2. cd irond-0.2.2-bin (Go inside the directory)
  3. run the shell script name ./start.sh
  4. and your server will start giving first message "0 [main] INFO - Starting irond version 0.2.2..."
For CLIENT Installation:
You need to build the library source and please install all dependencies mentioned above before proceedings.
  1. Extract file libifmap2c-0.2.0.tar.gz
  2. $cd libifmap2c-0.2.0/build/ (Go inside the directory named 'build')
  3. $cmake ../
  4. $make
  5. $sudo make install
  6. And you are DONE!
Now, Building the IF-MAP examples:-
  1. Extract file libifmap2c-examples-0.2.0.tar.gz
  2. $cd libifmap2c-examples-0.2.0/build/
  3. $cmake ../
  4. $make
  5. $ls ./ (list current directory build)
After listing your current directory, you will see many binary executable files are present.
These are the examples which you will run for testing the IF-MAP Client Server interaction.
Now, lets test some examples given in the WIKI and see the messages on the server of IF-MAP which we started earlier.
  1. $mkdir capath (in the current directory 'build')
  2. you need to copy a valid server certificate i.e $cp /path/to/servercert.pem capath
  3. If you have no valid certificate no need to panic if you get the error message given below when running the module with given parameters.
  4. $./ip-mac update 192.168.0.1 11:bb:cc:dd:ee:ff https://localhost:8443 test test capath/
Doing newSession... CommunicationError: server certificate verification failed.
CAfile: none CRLfile: none
There is a SMALL TWEAK which will help you testing your module without verification of valid certificate:
You have to edit the following file given in:
libifmap2c-0.2.0/communication/lowlevelcurlcommunication.cpp
"#define CURL_VERIFY_PEER 1L" Change to "#define CURL_VERIFY_PEER 0L"
'0L' will skip the verification of certificate.
Again build the Client Library as shown above. Now, run again the module like this
$./ip-mac update 192.168.0.1 11:bb:cc:dd:ee:ff https://localhost:8443 test test capath/
Doing newSession... Ok! SessionID="990489538-1344493087-220289568-279621823" PublisherID="test-18160887771"
Doing publish... Ok!
Doing endSession... Ok!
Baaamm!!! The module is executed successfully and you can also see the event messages on Server debug console. :)