Wednesday, 15 February 2017

How to name the domain?

How to name the domain?

If we can put the SEO keyword that related to our business is great. 
If you didn't find the good one and have no idea how to name the domain. 
This article is best suite s for you.

If we observe the Most of the successful companies like
1. microsoft
2. google
3. yahoo
4. twitter
5. facebook
6. netflix
7. infosys
8. wipro
9. salesforce



Common criteria of above names
1. easy to type
2. be memorable
3. pronounceable
4. two word pronunciation
  micro soft
  goo gle
  ya hoo
  twi tter
  face book
  net flix
  info sys
  wi pro
  sales force 

5. keep it short
  four letters to ten letter max.


To get the above common properties & to get the unique name I wrote the small snippet which prints the random name' s.



package hack.test.others;

import java.util.Random;

/** * Created by suresh on 14/2/17. */public class DomainSearch {
    public static void main(String[] args) {
        Random rand=new Random();
        int max=122;
        int min=97;

        int vowelMax=4;
        int vowelMin=0;

        char arr[]={'a','e','i','o','u'};
        for(int i=1;i<=1000;i++){

            System.out.println(arr[rand.nextInt((vowelMax-vowelMin)+1)+vowelMin]
                    +""+arr[rand.nextInt((vowelMax-vowelMin)+1)+vowelMin]
                    +""+(char)(rand.nextInt((max-min)+1)+min)
                    +""+arr[rand.nextInt((vowelMax-vowelMin)+1)+vowelMin]
                    +""+(char)(rand.nextInt((max-min)+1)+min)
                    +""+arr[rand.nextInt((vowelMax-vowelMin)+1)+vowelMin]
                    +""+arr[rand.nextInt((vowelMax-vowelMin)+1)+vowelMin]
                    +""+(char)(rand.nextInt((max-min)+1)+min));
        }
    }
}

Wednesday, 8 June 2016

How to generate GPG Key?

Prerequisites

packages to be installed

  1. rngd
  2. gpgv OR gpgv2
Step1: Create a Temporary Folder and CD to it
Step2: Generate GPG Key
  1. eval `gpg-agent --daemon --no-grab --write-env-file $HOME/.gpg-agent-info`
  2. export GPG_TTY=`tty`
  3. export GPG_AGENT_INFO
  4. gpg --gen-key
    1. Enter passphrase: ******
  5. Run in a Different terminal rngd -f -r /dev/urandom
Step3: read the key' s.

 gpg -k

Sample Output:

GPG Key o/p:
.......+++++
+++++
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
.+++++
.................+++++
gpg: key 50F6E79D marked as ultimately trusted
public and secret key created and signed.

gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
pub   2048R/50F6E79D 2015-08-14
Key fingerprint = 3C2C 81AA 5B9E 6772 1AEA  9AF3 78B2 D37D 50F6 E79D
uid ZeroOnePrograms  <developer@zerooneprograms.com>
sub   2048R/EA01868C 2015-08-14