Monthly Archives: August 2013

LogExpert. Just a great software!

LogExpert
How are we trac the logs? Go to folder -> open file -> see the logs -> close file -> go to next file and so on.
A long time i use a thing called LogExpert – is a tail analog tool for windows with tabs and sessions support. Also many features exist.
It is very convenient to observe many log files simultaneously!

Really heplful, thanx for developers! You’ve saved my time.

Official website: http://www.log-expert.de
Download: http://logexpert.codeplex.com

Digital Signature explanation

The security is very important concept today for all type of systems. So, we have to know how to protect your data from theft, hijacking, etc.
Encryption is reversible conversion of data to hide payload from other reading.

The are two types of encryption algorithms:
1. Symmetric Encryption (Private-key (or secret-key) cryptography).
priv-key
Uses the same key for encryption and decryption of message.

2. Asymmetric Encryption (Public-key cryptography).
pub-key
Uses public key for encryption and private key for decryption of message.

 

The payload messages usually use digital signature for protection. Explanation of how the digital signature works below in a few steps:

1. Angela wants to send a message to Hugo.
1

 

2. Angela request a certificate from Certification Center.
2

 

3. Certification Center sends a certificate with public-private key pair.
3

 

4. Angela calculates hash of message. Encrypts obtained hash with private key – this is a Digital Signature! And attach DS to message.
4

 

5. Angela sends DS, Message and certificate to Hugo.
5

 

6. Hugo decrypts digital signature with public key. Take a hash from Message. Then, he checks decrypted value and hash for equality. If values are equal – message is valid and it can be read, otherwise – message is invalid!
6

 

See also,
https://en.wikipedia.org/wiki/Symmetric-key_algorithm
https://en.wikipedia.org/wiki/Public-key_cryptography
http://en.wikipedia.org/wiki/Digital_signature
https://en.wikipedia.org/wiki/Hash_function

http://en.kioskea.net/contents/130-private-key-or-secret-key-cryptography
http://en.kioskea.net/contents/131-public-key-systems

Firefox home page opening in new tab configuration

4g15jq
To configure the firefox browser to open home page when new tab is opening, use next:

1. Type about:config in address bar.
Confirm next dialog:
ff_set_confirm
2. Add new string property (if not exists): browser.startup.homepage with value of your page.
3. Add new string property (if not exists): browser.newtab.url with value of your page.
The default valus is about:newtab

So, you’ll see next:
ff_set

Thats’s all!

JDK quick install on Ubuntu Linux

45351678
Quick reference to install JDK7 on Ubuntu.

1. Download the JDK7 from oracle.com
2. Create dir and unpack:

cd
sudo mkdir -p  /usr/lib/jvm/
sudo mv java-7-oracle/ /usr/lib/jvm/

3. Get script to change alternatives:

wget http://webupd8.googlecode.com/files/update-java-0.5b

4. Change exec permissions:

chmod 755 ./update-java-0.5b

5. Finally, execute it:

./update-java-0.5b

Select your JDK:
jdk

To check that’s all ok, use next:

java -version
javac -version

Source http://www.webupd8.org/2011/09/how-to-install-oracle-java-7-jdk-in.html
And http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html