Join Onbux For Free and Earn Money

Submit a Form Using Enter Key



I have a form like this






I want to submit this form after entering password field by pressing enter key. How can I do that?


Answer:



It's a very simple thing. You just need to call a javascript on 'onkeypress' event of the text box.



<td><input name="password" type="password" onkeypress="enableKey()" /></td>


If you're doing any client side validation on this page, you need to call that function inside enableKey().


My enableKey function looks like this.

function enableKey(){

if(window.event.keycode==13){

loginValidation();

}
}





Multitasking



Multitasking is a method with multiple processes share common resources like CPU. Multiprocessing is similar to multitasking, but in multiprocessing more than one CPU is involved. In multitasking only one CPU is involved, the CPU is switched from one task to another so quickly, so that each user gets the impression that CPU is used by him only.


There are two types of multitasking: Preemtive and Cooperative multitasking. In preemptive multitasking, operating systems assigns time slice to each processes that are waiting for the execution. When the time slice of an executing program has expired, that process is taken from the CPU and the waiting process gets a chance to use CPU. In cooperative multitasking, each program can control the CPU as long as it needs it. Unlike in preemptive multitasking, here program itself owns the control of CPU.

Process vs Threads


A process is an executing instance of an application. For example when you double click on a word program, a new process starts. When a process starts, a separate memory area is created for that process.

A process consists of several executable programs called threads, that works together as a whole. Process are heavyweight tasks and threads are light weight tasks. For example, when you start the word program, the autosave and spell check features are running in the background and these are called threads which operate on the same data set.

Threads with in the same process share the same address space. Therefore, this allows communication between threads and also allows thread to read and write to the same data structures.

Chrome OS Based Laptop Google CR-48, Specifications, Images



Few days ago, Google has unveiled world's first Chrome OS based laptop Google Cr-48. This laptop comes with a 12-inch display, Flash memory-based storage, Wi-Fi, 3G connections, a web cam, USB port, and VGA output. The keyboard on this laptop doesn't include function keys. Information about RAM and Processor is not available yet.


According to Google, this laptop boots in just 10 seconds and resumes from sleep mode instantly. The battery on this laptop provide 8 hours of usage and a standby time of one week. This laptop is expected to be available in the middle of next year.



IP Address and Various Classes of IPV4 Address


Every computer on the Internet is identified by a unique address called Internet Protocol ( IP ) address. This unique address is used to route packets across the Internet. Internet routing protocol uses this unique information to route packets to your computer just like the mailing addresses used in postal system.

An IPV4 address consist of 4 bytes (32 bits) of information and each byte is a number between 0 and 255. IPV4 address is expressed as four decimal numbers with dots act as separator between each one.


Example


Decimal192.168.0.1
Binary1000000 10101000 0000000 00000001


IPV4 address space is divided in to 5 classes - Class A,B,C,D,E. This division is based on the left most four bits of an IP address, when it's expressed as a binary number.


Class Leftmost bits Start address End address
A0xxx0.0.0.0127.255.255.255
B10xx128.0.0.0191.255.255.255
C110x192.0.0.0223.255.255.255
D1110224.0.0.0239.255.255.255
E1111240.0.0.0255.255.255.255



If you want to disguise your IP address you can use an anonymizer. I will disguess about anonymizer in my next article.










tags:ip address, format of an ip address, ipv4 address, ip address fields, various classes of ip address, what is ipv4 address, anonymizer, division of ipv4 address


Samsung N350 Netbook Specifications, Availability



Samsung has recently announced the availability of their latest netbook Samsung N350 in UK. This netbook is available for about $558. Samsung N350 comes with a 10.1 inch display, 1.83GHz Intel Atom N475 processor, Windows 7 Starter OS. This netbook is available in black color only.



Specifications


  • 10.1-inch (1024 x 600) Display
  • Intel Atom N475 Processor (1.83GHz)
  • Windows 7 Starter OS
  • 1GB DDR3 RAM
  • 250GB Hard drive
  • Intel GMA 3150 integrated graphics
  • Webcam
  • 4-in-1 card reader
  • WiFi, Bluetooth
  • 3-cell battery










tags:samsung n350 netbook spec, samsung n350 features, samsung n350 full spec, samsung n350 ram, samsung n350 os, samsung n350 windows, samsung n350 graphics, samsung n350 hard drive, samsung n350 availability, samsung n350 processor, samsung n350 display, samsung n350 netbook resolution

What is a PAN Card | Format of a PAN Card



PAN (Permanent Account Number) is a unique ten-digit alphanumeric number issued by the Income Tax Department in India in the form of a laminated card. PAN number is must for all those who file their income tax returns.

Also PAN card is necessary for all financial transactions such as opening a bank account, receiving taxable salary or professional fees, sale or purchase of assets above specified limits. It also serves as an important ID proof. PAN number is unaffected by a change of address, even between states.

PAN number is also equivalent to Social security number issued in United States.



PAN Number Format


PAN number is a ten-digit alphanumeric number. It's like 'AAAAA4444A'. The first 5 characters are letters, next 4 numerals and last character letter. If the PAN number doesn't follow this format, then it will be rejected.

The fourth Character can be any of the following letters


  • C — Company
  • P — Person
  • H — HUF(Hindu Undivided Family)
  • F — Firm
  • A — Association of Persons (AOP)
  • T — AOP (Trust)
  • B — Body of Individuals (BOI)
  • L — Local Authority
  • J — Artificial Juridical Person
  • G — Govt



In the case of personal PAN card, the fifth character is the first character of the surname/lastname.







tags:what is a pan card, format of a pan card, various characters in pan card, permanent account number, what is a pan card