Abhishek Gupta

The Sun won’t set at NIT Durgapur !

Archive for May 17th, 2009

OpenSolaris 2008.11 Mini-Book

Posted by abhiitechie on May 17, 2009

The Getting Started with OpenSOlaris 2008.11 mini-books were recentlyOpenSolaris released. They are available in English, Brazilian Portuguese, Spanish, Italian, German, Traditional Chinese, Simplified Chinese, Korean and Japanese.

You might notice that there is a difference between the content of these books. They are composed by three different documents, and only the ones in English, Simplified Chinese and Japanese have them all. All other languages have only one document.

The books have a pretty basic approach, so they are aimed at people who doesn’t have much experience with the OS. This makes them perfect to be indicated during basic courses and presentations.

It seems that the 2008.11 version of these mini-books will be available only in the digital format.

Download:

OpenSOlaris 2008.11 mini-book (English)

Advertisements

Posted in sun | Tagged: , , , , , , , , , , , , , | 1 Comment »

Regular Expressions in Javascript

Posted by abhiitechie on May 17, 2009

Here are some examples of using regular expressions for input validations in javascript.

var input = “hello222”;
var ok = false;

var dob_regex = /^([0-9]){2}(\/){1}([0-9]){2}(\/)([0-9]){4}$/;   // DD/MM/YYYY
var email_regex = /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/;  // email address
var username_regex = /^[\w.-]+$/;  // allowed characters: any word . -, ( \w ) represents any word character (letters, digits, and the underscore _ ), equivalent to [a-zA-Z0-9_]
var num_regex = /^\d+$/; // numeric digits only
var search_regex = “/hello/”;
var password_regex = /^[A-Za-z\d]{6,8}$/;  // any upper/lowercase characters and digits, between 6 to 8 characters in total
var phone_regex = /^\(\d{3]\) \d{3}-\d{4}$/;  // (xxx) xxx-xxxx
var question_regex = /\?$/; // ends with a question mark

1. Check that there are at least 3 numeric characters in input
if ( input.match(/d/g) == null ) {
ok = false;
} else if ( input.match(/d/g).length < 3 )  {
ok = false;
} else {
ok = true;
}
2. Check that the input has a minimum of 8 characters
if ( input.length >= 8 ) {
ok = true;
}
3. Check that the input is in a correct date format (DD/MM/YYYY)
if ( dob_regex.test(input) ) {
ok = true;
}
4. Check that the input is in a correct email format (username@example.com)
if ( email_regex.test(input) ) {
ok = true;
}
5. Check that the input matches the specified username format
if ( username_regex.test(input) ) {
ok = true;
}
6. Check that the input contains only numeric characters
if ( input.match(num_regex) ) {
ok = true;
}
7. Search for a specific word in the input
if ( input.search(search_regex) != -1 ) {
ok = true;
}
8. Check that the input matches the specified password format
if ( input.match(password_regex) ) {
ok = true;
}
9. Check that the input matches the specified phone number format
if ( input.match(phone_regex) ) {
ok = true;
}
10. Check that the input is a question (ends with a question mark)
if ( question_regex.test(input) ) {
ok = true;
}

Posted in Personal, web | Tagged: , , , , | 6 Comments »

Programming Forums that will always help

Posted by abhiitechie on May 17, 2009

Java  Forums

 

imageSun forums Sun’s official Java forums

imageDZone Forums 

PHP Forums

 

image  PHP freaks 

image PHP Builder forums

image  Devshed php development forums

image Weber forums

MySQL Forum

 

RoR  Forums

image Rails forum

 image  Ruby forum

For all kind of programming Q and A.

image

 

 

Posted in java, mysql, Personal | Tagged: , , , , , , , , , , , | Leave a Comment »

Developing iphone apps using Java

Posted by abhiitechie on May 17, 2009

It’s a channel on google about Education and Tech talks and in this tech talks will be talked about object c, java, apps and cross compiling. You can see the Google tech talk here

Posted in Uncategorized | Tagged: , , , , , , , , | 4 Comments »