Wednesday, 22 February 2017

Password and Confirm Password validation through jQuery

Password and Confirm Password validation through jQuery.

In this article I will explain you how to match Password and Confirm Password by using jQuery 
in Html.The values of the Password and Confirm Password are compared by using jQuery.
 An OnClick event handler button has been assigned when the button is click the values of textboxes 
are compared with each other if values does not match an alert message box will display that there is
an error password not match.

<table border="2" cellpadding="5" cellspacing="2">

    <tr>
        <td>Password:</td>
        <td><input type="password" id="pass" /></td>
    </tr>

    <tr>
          <td>Confirm Password:</td>
          <td><input type="password" id="conpass" /></td>
    </tr>

    <tr>
           <td> </td>
           <td><input type="button" id="btnSubmit" value="Submit" /></td>
    </tr>

</table>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>

<script type="text/javascript">
    $(function () {
        $("#btnSubmit").click(function () {
            var pass = $("#pass").val();
            var conpass = $("#conpass").val();
            if (pass != conpass) {
                alert("Passwords do not match.");
                return false;
            }
            return true;
        });
    });
</script>

How to match Password and Confirm Password.

Match Password and Confirm Password validation through JavaScript.

In this article I will explain you how to match Password and Confirm Password by using JavaScript.
The values of the Password and Confirm Password are compared by using JavaScript.
If both values does not match an error message will displayed on the screen.First of all If you want
to try this code you can simply run in text file through html it really works.


<table border="2" cellpadding="5" cellspacing="2">
    <tr>
           <td> Password:  </td>
           <td><input type="password" id="pass" /></td>
    </tr>

    <tr>
            <td>Confirm Password:</td>
            <td><input type="password" id="conpass" /></td>
    </tr>

   <tr>
       <td></td>
       <td><input type="button" id="btnSubmit" value="Submit" onclick="return Validate()" /></td>
   </tr>

</table>


<script type="text/javascript">
    function Validate() {
        var pass = document.getElementById("pass").value;
        var conpass = document.getElementById("conpass").value;
        if (pass!= conpass {
            alert("Passwords do not match.");
            return false;
        }
        return true;
    }
</script>

Tuesday, 21 February 2017

How to Show Roman Number System.

                                                 Roman Number System 

Symbol    Symbol Name                                      Dec                  Hex
Ⅰ              Roman Number for One                     &#8544;          &#x2160;
Ⅱ             Roman Number for Two                     &#8545;          &#x2161;
Ⅲ            Roman Number for Three                   &#8546;          &#x2162;
Ⅳ           Roman Number for Four                     &#8547;          &#x2163;
Ⅴ            Roman Number for Five                      &#8548;          &#x2164;
Ⅵ           Roman Number for Six                        &#8549;          &#x2165;
Ⅶ          Roman Number for Seven                    &#8550;          &#x2166;
Ⅷ         Roman Number for Eight                      &#8551;           &#x2167;
Ⅸ          Roman Number for Nine                      &#8552;           &#x2168;
Ⅹ           Roman Number for Ten                        &#8553;           &#x2169;
Ⅺ          Roman Number for Eleven                   &#8554;           &#x216A;
Ⅻ          Roman Number for Twelve                  &#8555;           &#x216B;
Ⅼ            Roman Number for Fifty                      &#8556;           &#x216C;
Ⅽ           Roman Number One Hundred             &#8557;            &#x216D;
Ⅾ           Roman Number for Five Hundred        &#8558;           &#x216E;Ⅿ           Roman Number for One Thousand      &#8559;           &#x216F;

Currency Sign on Html pages.

                                        Currency Sign

To Show Dollar Sign on Html pages .

  • $  ---  For Dollar Sign     ---          &#36;
  • ﹩   ---  a small dollar sign  ---          &#65129;
  •  ---  Bold Dollar Sign   ---          &#128178;
  •  ---  A Dollar Note      ---          &#128181;


To Show Cent Sign on Html pages .

  • ¢    --- for small cent sign         ---            &#162;
  • ¢ --- for big cent sign            ---            &#65504;

To Show Euro Sign on Html pages .

  • €   ---   For Euro Sign            ----      &#8364;  
  •   ---   For Euro Bank Note  ----      &#128182; 

To Show Florin Sign(Italy) on Html pages .
  
  • ƒ    ---  Florin sign  ---  &#402;     

To Show French Franc Sign on Html pages .

  • ₣   ---   French Franc ---   &#8355;

To Show Pesto(Spain) Sign on Html pages .


  •  ₧  --- Pesto ---             &#8359;


To Show Peso(Philippines) Sign on Html pages .

  • ₱  ---Peso----                 &#8369;

To Show Pound Sign on Html pages .

  • £   ---   Pound Sign by Unicode          ---         &#163;
  • £ ---   A simple Pound Sign              ---         &#65505; 
  • £   ---   A simple html code for pound ---         &pound; 


To Show Indian Rupees Sign on Html pages .

  • ₨      ---For old Standard of Indian Rupees  -----  &#8360;
  • ₹       ---New Style for Indian Rupees           -----  &#8377;

To Show Russian rouble Sign on Html pages .

  • ₽   ---  Russian Rouble  ----- &#8381;

To Show Turkish Lira Sign on Html pages .


  • ₺  ---Turkish Lira           ---- &#8378;

To Show Yen(Japan) Sign on Html pages .

  • ¥     --- A small Yen Sign --- &#165;
  • ¥   --- A big Yen Sign    --- &#65509;

To Show Yuan(China) Sign on Html pages .


  • 元 ------ First Method        ---------  &#x5143;
  • 元 ------ Second Method   ---------  &#20803;

To Show Won(South Korea) Sign on Html pages .

  • ₩    ---- First Method        ------     &#x20A9;
  • ₩    ---- Second Method   ------    &#8361;

To Show New Shekel(Israel) Sign on Html pages .

  • ₪  ---- First Method             ------&#x20AA;
  • ₪  ---- Second Method        ------&#8362;

To Show Dong(Vietnam) Sign on Html pages .

  • ₫   ---- First Method                 ------&#x20AB;
  • ₫   ---- Second Method            ------&#8363;





What is Linux netstat command & How we can use it.


The Netstat command is used to display various network-related information such as network connection, routing table, interface statistics, masquerade connections, multicast group members, and so on.

On the whole, netstat output can be divided into two parts:

One is Active Internet connections, called active TCP connections, where "Recv-Q" and "Send-Q" means% 0A is the receive queue and the send queue. These numbers should generally be 0. If not, the package is being stacked in the queue. This can only be seen in very rare cases.

The other is Active UNIX domain sockets, called active Unix domain socket (and network socket, but can only be used for local communication, performance can be doubled).
ProtC shows the protocol used by the connection, RefCnt represents the process number connected to this interface, Types shows the type of socket, State displays the current state of the socket, and Path represents the pathname used by other processes connected to the socket.

Common parameters
-a (all) Displays all options, and LISTEN is not displayed by default
-t (tcp) Show only tcp related options
-u (udp) Show only udp related options
-n refuses to display aliases, can show all the numbers into numbers.
-l only lists the status of the service in Listen (listen)

-p Displays the name of the program that created the associated link
-r Displays the routing information and routing table
-e Displays extended information such as uid
-s Statistics by protocol
-c Execute the netstat command every other fixed time.

Tip: LISTEN and LISTENING state only with-a or-l can see

A practical command instance

1. List all ports (including listening and unregistered)
List all ports netstat -a
List all tcp ports netstat -at
List all udp ports netstat -au

2. List all Sockets that are listening
Only show the listening port netstat -l
Only list all tcp port netstat -lt

3. Display the statistics for each protocol
Display statistics for all ports netstat -s

4. Display the PID and the process name netstat -p in the netstat output
Netstat -p can be used with other switches, you can add "PID / process name" to the netstat output, so debugging time can be very convenient to find a specific port to run the program.

5. In the netstat output does not show the host, port and user name (host, port or user)
When you do not want the host, port and username display, use netstat -n. Will use numbers instead of those names.
The same can speed up the output, because no comparison query.

6. Continue to output netstat information
Netstat will output network information every second.

7. Show the system does not support the address family (Address Families)

Netstat -verbose
At the end of the output, the following information is available

8. Display the core routing information netstat -r
Note: Use netstat -rn to display the number format without querying the host name.

9. Locate the port on which the program is running
Not all processes can be found, there is no permission will not show, use the root privileges to view all the information.

10. Display the network interface list

11. IP and TCP analysis
View the maximum number of IP addresses that connect to a service port

Monday, 20 February 2017

ALT Codes List with Symbol.


ALT Codes List with Symbol by simply press alt key with numerical keys.

Alt + 1
Alt + 2
Alt + 3
Alt + 4
Alt + 5
Alt + 6
Alt + 7
Alt + 8
Alt + 9
Alt + 10
Alt + 11
Alt + 12
Alt + 13
Alt + 14
Alt + 15
Alt + 16
Alt + 17
Alt + 18  ↕
Alt + 19  ‼
Alt + 20  ¶
Alt + 21  §
Alt + 22
Alt + 23  ↨
Alt + 24  ↑
Alt + 25  ↓
Alt + 26
Alt + 27
Alt + 28
Alt + 29
Alt + 30
Alt + 31
Alt + 32 Space
Alt + 33  !
Alt + 34  "
Alt + 35  #
Alt + 36  $
Alt + 37  %
Alt + 38  &
Alt + 39   '
Alt + 40   (
Alt + 41   )
Alt + 42   *
Alt + 43   +
Alt + 44     ,
Alt + 45   -
Alt + 46   .
Alt + 47   /
Alt + 48   0
Alt + 49   1
Alt + 50   2
Alt + 51     3
Alt + 52   4
Alt + 53      5
Alt + 54    6
Alt + 55      7
Alt + 56      8
Alt + 57      9
Alt + 58       :
Alt + 59       ;
Alt + 60      <
Alt + 61      =
Alt + 62      >
Alt + 63      ?
Alt + 64  @
Alt + 65      A
Alt + 66  B
Alt + 67  C
Alt + 68  D
Alt + 69  E
Alt + 70  F
Alt + 71 G
Alt + 72 H
Alt + 73 I
Alt + 74 J
Alt + 75 K
Alt + 76 L
Alt + 77 M
Alt + 78 N
Alt + 79 O
Alt + 80 P
Alt + 81 Q
Alt + 82 R
Alt + 83 S
Alt + 84 T
Alt + 85 U
Alt + 86 V
Alt + 87 W
Alt + 88 X
Alt + 89 Y
Alt + 90 Z
Alt + 91 [
Alt + 92 \
Alt + 93 ]
Alt + 94 ^
Alt + 95 _
Alt + 96   `
Alt + 97 a
Alt + 98 b
Alt + 99 c
Alt + 100 d
Alt + 101 e
Alt + 102 f
Alt + 103 g
Alt + 104 h
Alt + 105 i
Alt + 106 j
Alt + 107 k
Alt + 108 l
Alt + 109 m
Alt + 110 n
Alt + 111 o
Alt + 112 p
Alt + 113 q
Alt + 114  r
Alt + 115  s
Alt + 116  t
Alt + 117  u
Alt + 118  v
Alt + 119  w
Alt + 120   x
Alt + 121   y
Alt + 122   z
Alt + 123  {
Alt + 124   |
Alt + 125  }
Alt + 126  ~
Alt + 127  ⌂
Alt + 128  Ç
Alt + 129  ü
Alt + 130  é
Alt + 131  â
Alt + 132  ä
Alt + 133  à
Alt + 134  å
Alt + 135  ç
Alt + 136  ê
Alt + 137  ë
Alt + 138  è
Alt + 139  ï
Alt + 140  î
Alt + 141  ì
Alt + 142  Ä
Alt + 143 Å
Alt + 144 É
Alt + 145 æ
Alt + 146 Æ
Alt + 147   ô
Alt + 148  ö
Alt + 149  ò
Alt + 150  û
Alt + 151  ù
Alt + 152  ÿ
Alt + 153  Ö
Alt + 154  Ü
Alt + 155  ¢
Alt + 156  £
Alt + 157  ¥
Alt + 158
Alt + 159  ƒ
Alt + 160  á
Alt + 161   í
Alt + 162  ó
Alt + 163  ú
Alt + 164    ñ
Alt + 165 Ñ
Alt + 166  ª
Alt + 167  º
Alt + 168  ¿
Alt + 169  ⌐
Alt + 170  ¬
Alt + 171  ½
Alt + 172  ¼
Alt + 173   ¡
Alt + 174    «
Alt + 175   »
Alt + 176   ░
Alt + 177   ▒
Alt + 178   ▓
Alt + 179  │
Alt + 180  ┤
Alt + 181  ╡
Alt + 182  ╢
Alt + 183  ╖
Alt + 184   ╕
Alt + 185  ╣
Alt + 186  ║
Alt + 187  ╗
Alt + 188  ╝
Alt + 189  ╜
Alt + 190  ╛
Alt + 191  ↕
Alt + 192   └
Alt + 193  ┴
Alt + 194  ┬
Alt + 195  ├
Alt + 196  ─
Alt + 197  ┼
Alt + 198  ╞
Alt + 199  ╟
Alt + 200  ╚
Alt + 201  ╔
Alt + 202  ╩
Alt + 203  ╦
Alt + 204  ╠
Alt + 205  ═
Alt + 206  ╬
Alt + 207  ╧
Alt + 208  ╨
Alt + 209  ╤
Alt + 210  ╥
Alt + 211  ╙
Alt + 212  ╘
Alt + 213  ╒
Alt + 214  ╓
Alt + 215  ╫
Alt + 216  ╪
Alt + 217  ┘
Alt + 218
Alt + 219  █
Alt + 220  ▄
Alt + 221  ▌
Alt + 222   ▐
Alt + 223
Alt + 224 α
Alt + 225 ß
Alt + 226 Γ
Alt + 227 π
Alt + 228 Σ
Alt + 229 σ
Alt + 230 µ
Alt + 231 τ
Alt + 232 Φ
Alt + 233 Θ
Alt + 234 Ω
Alt + 235 δ
Alt + 236
Alt + 237 φ
Alt + 238 ε
Alt + 239
Alt + 240
Alt + 241 ±
Alt + 242
Alt + 243   ≤
Alt + 244
Alt + 245
Alt + 246 ÷
Alt + 247
Alt + 248 °
Alt + 249  ∙
Alt + 250  ·
Alt + 251  √
Alt + 252   ⁿ
Alt + 253   ²
Alt + 254   ■



What is the Defination of Apache Solr ?


It is an open source search platform which is  built upon a Java library called Lucene.

Solr is a popular search platform for enterprise search because it can be used to index and search documents and email attachments also. It is a popular search platform for Web sites because it can index and search multiple sites and return recommendations for related content based on the search query’s taxonomy.

Solr also works with Hypertext Transfer Protocol (HTTP) & Extensible Markup Language (XML). It offers various application program interfaces (APIs) for Javascript Object Notation (JSON), Python, and Ruby. According to the Apache Lucene Project, Solr offers capabilities that have made it popular with administrators including:

  1.     Load-balanced querying
  2.     Geo-spatial searching
  3.     Automated fail over and recovery
  4.     Indexing in near real time
  5.     Rich document parsing and indexing    
  6.     Automated index replication
  7.     Server statistics logging
  8.     Design for high-volume traffic
  9.     Multiple search indexes
  10.     User-extensible caching
  11.     Scalability, flexibility and extensibility
  12.     Advanced full-text searching