2010 in review

6th Jan 2011 at 6:40 PM | Posted in Uncategorized | Leave a comment

The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here’s a high level summary of its overall blog health:

Healthy blog!

The Blog-Health-o-Meter™ reads This blog is doing awesome!.

Crunchy numbers

Featured image

A Boeing 747-400 passenger jet can hold 416 passengers. This blog was viewed about 2,700 times in 2010. That’s about 6 full 747s.

In 2010, there were 57 new posts, not bad for the first year! There were 62 pictures uploaded, taking up a total of 38mb. That’s about a picture per week.

The busiest day of the year was February 20th with 65 views. The most popular post that day was AJAX Introduction.

Where did they come from?

The top referring sites in 2010 were sourav.co.nr, google.co.in, cgaskell.wordpress.com, theonlinegk.wordpress.com, and statistics.bestproceed.com.

Some visitors came searching, mostly for general knowledge about human body, countries capitals and currencies, name the company whose c.e.o was chosen as the manager of the century by fortune magazine?, and general knowledge human body.

Attractions in 2010

These are the posts and pages that got the most views in 2010.

1

AJAX Introduction January 2010

2

General Knowledge- Human Body February 2010

3

C Program-Call By value& Call By Reference(Swaping Program) March 2010

4

GK-CRICKET(India) February 2010

5

Drupal: Add module for Local languages March 2010

General Knowledge Question and Answer

1st Jan 2011 at 3:44 AM | Posted in General Knowledge | Leave a comment

Q. First Bowler In Test History To Take 700 Wickets?
A. Shane Warne(Australia)
Q. Which is the tallest animal?
A. Giraffe
Q. Which is largest Archipelago?
A. Indonesia
Q. Which is fastest bird?
A. Swift.
Q. Which is largest bird?
A. Ostrich
Q. Which is smallest bird?
A. Humming Bird
Q. Which is longest bridge?
A. Huey P.Long Bridge
Q. Which is tallest building?
A. Teipei 101, Taiwan
Q. which city is largest in population?
A. Tokyo
Q. which is largest Continent?
A. Asia
Q. which is smallest Continent?
A. Australia

To see more GK click on category link General Knowledge

Jquery Selectors Quick Quide

9th Sep 2010 at 8:08 AM | Posted in Jquery | 1 Comment
$('select.foo option:selected').val();    // get the value from a dropdown select
$('select.foo').val();                    // get the value from a dropdown select even easier
$('input:checkbox:checked').val();        // get the value from a checked checkbox
$('input:radio[name=bar]:checked').val(); // get the value from a set of radio buttons

Radio Button:

jQuery('#radio_form input:radio:checked').val();
$("#myform input[type='radio']:checked").val();
$('input:radio[name=bar]:checked').val();
$("input[@name='rdio']:checked") . Val();

Checkbox:

$('input:checkbox:checked').val();
$('#checkBox').attr('checked');
$('#edit-checkbox-id').is(':checked');

$("input[@type=checkbox][@checked]").each(
function(){
// Insert code here
} );

$("input[@name='chkBox']").click(function(){
// your code here
});

$("input[type='checkbox']:checked").each(function(){
//Insert code here
});

Drop Down:

$("select option:selected").each(function () {
/Insert cod here
});

Get Selected value:
$('#selectId :selected').val()

Get Selected value Text:
$(<'#selectId :selected').text()

Get Selected Values:
$(document).ready(function() {
$("#a").click(function(){
$("select option:selected").each(function(){
alert($(this).val());//you can create an array here
});
});
});

Drupal: Add module for Local languages

20th Mar 2010 at 12:08 PM | Posted in Drupal | 1 Comment

1. Download “Google AJAX Language Transliteration API” module (http://drupal.org/project/googleLanguageApi).
2. extract and copy it into your drupal installention folder/sites/all/modules.

3. Go to administrator -> Site Building ->  Modules.
Enable the “Google AJAX Language Transliteration API” and save configuration (screen shot below).

Enable Google AJAX Language Transliteration API

4. Then go to administrator -> Site Building -> Translate interface.
From “search”, “importe”, “export” tab you can select languages (screenshot below).

Iranslate Interface

Thats it.
5. Now create a page and select languae from drop down language list.

Create Content

PHP Class Example

6th Mar 2010 at 11:10 AM | Posted in PHP | Leave a comment

Create a simple class.

<?php
class validateClass
{
public function validatePass($pass,$pass1)
{
if($pass=='' || $pass1=='')
return("Enter in Both Pasword Fields.<br/>");
else
if($pass!=$pass1)
return "Two Passwords Are Not Same.<br/>";
}//End function
}//End class

$validate = new validateClass; //creating object of this class
$validate->validateName("abc","abc"); //calling the funtion
/* If passwords(the two parameter) are same it returns true else return false
*/
?>

Let Us C Download

3rd Mar 2010 at 9:59 AM | Posted in C-Language | Leave a comment

Download Let Us C

Pointer in C

3rd Mar 2010 at 9:16 AM | Posted in C - Pointer Concept, C-Language | Leave a comment

& – “address of” operator.
* – “value at address” operator.

main()
{
int i = 3 ;
printf ("\nAddress of i = %u", &i);
printf ("\nValue of i = %d", i);
printf ("\nValue of i = %d", *(&i));
}

The output of the above program would be:
Address of i = 65524
Value of i = 3
Value of i = 3

Explaination:
%u – is format specifier for unsigned decimal integer.
&i – is address of i

%d – is format specifier for signed decimal integer.
i – is variable of integer type. It contain value 3.

*(&i) – is value at adress (&i). More clearly value at adress 65524.

Now declearation of pointer:
int *alpha ; //alpha is a pointer of type integer
char *ch ; //ch is a character type pointer
float *s ; //s is a pointer of type float

The declaration float *s does not mean that s is going to contain a floating-point value. What it means is, s is going to contain the address of a floating-point value. Similarly, char *ch means that ch is going to contain the address of a char value. Or in other words, the value at address stored in ch is going to be a char.

int i, *j, **k ;

Here k is a pointer to an integer pointer.

main()
{
int i = 3, *j, **k ;
j = &amp;i ;
k = &amp;j ;
printf ("\nAddress of i = %u", &amp;i);
printf ("\nAddress of i = %u", j);
printf ("\nAddress of i = %u", *k);
printf ("\nAddress of j = %u", &amp;j);
printf ("\nAddress of j = %u", k);
printf ("\nAddress of k = %u", &amp;k);
printf ("\nValue of j = %u", j);
printf ("\nValue of k = %u", k);
printf ("\nValue of i = %d", i);
printf ("\nValue of i = %d", * (&amp;i));
printf ("\nValue of i = %d", *j);
printf ("\nValue of i = %d", **k);
}

The output of the above program would be:
Address of i = 65524
Address of i = 65524
Address of i = 65524
Address of j = 65522
Address of j = 65522
Address of k = 65520
Value of j = 65524
Value of k = 65522

C Program-Call By value& Call By Reference(Swaping Program)

3rd Mar 2010 at 9:02 AM | Posted in C - Pointer Concept | 1 Comment

Swap program:
Call By Value:


void swapv(int x, int y); //prototype declaration
main( )
{
int a = 10, b = 20 ;
swapv ( a, b ) ;
printf ( "\na = %d b = %d", a, b ) ;
}
swapv ( int x, int y )
{
int t ;
t = x ;
x = y ;
y = t ;
printf ( "\nx = %d y = %d", x, y ) ;
}

Outpot:
x = 20 y = 10
a = 10 b = 20

Call By Reference:

void swapr(int *x, int *y); //prototype declaration
main( )
{
int a = 10, b = 20 ;
swapr ( &amp;a, &amp;b ) ;	//sending the address of a and b
printf ( "\na = %d b = %d", a, b ) ;
}
swapr( int *x, int *y )	//*x is taking  value at address send by &amp;a, *y is taking  value at address send by &amp;b
{
int t ;
t = *x ;
*x = *y ;
*y = t ;
}

Outpot:
a = 20 b = 10

here we send the address of a and b.
Then just swap the value at these addresses.

GK-India States, Capitales & Language

2nd Mar 2010 at 10:33 AM | Posted in General Knowledge, GK-India States,Capitales & Languages | Leave a comment

INDIA STATES

States Capital Languages
Andra Pradesh Hyderabad Telugu and Urdu
Arunachal Pradesh Itanager Miji, Apotanji, Merdukpen, Tagin,Adi, Honpa, Bangini-Nishi.
Assam Dispur Assamese
Bihar Patna Hindi
Chhattisgarh Raipur Hindi
Goa Panaji Marathi and Konkani
Gujarat Gandhinagar Gujarati
Haryana Chandigarh Hindi
Himachal Pradesh Shimla Hindi and Pahari
Mizoram Aizawl Mizo and English
Jammu & Kashmir Srinagar (Summer)

Jammu (Winter)

Kashmiri,Dogri, Urdu, Ladakhi,

Pahari,Punjabi and Dadri

Jharkhand Ranchi Hindi
Karnataka Bangalore Kannda
Kerala Trivandrum Malayalam
Madhya Pradesh Bhopal Hindi
Maharashtra Bombay Marathi
Manipur Imphal Manipuri
Meghalaya Shillong Khasi, Jaintia and Garo
Nagaland Kohima Ao, Konyak, Angami, Sema and Lotha
Orissa Bhubaneswar Oriya
Punjab Chandigarh Punjabi
Rajasthan Jaipur Rajasthani and Hindi
Sikkim Gangtok Bhutia, Hindi, Nepali, Lepcha, Limbu
Tamil Nadu Chennai Tamil
Tripura Agartala Bengali, Tripuri, Manipuri, Kakborak
Uttar Pradesh Lucknow Hindi
Uttaranchal Dehra Dun Hindi
West Bengal Calcutta Bengali

GK- First Indian

2nd Mar 2010 at 7:27 AM | Posted in General Knowledge, GK-First Indian | Leave a comment

First in India Men

Field Person
First Indian to swim across the English Channel Mihir Sen
First to Climb Mount Everest Tenzing Norgay
First to climb Mount Everest without Oxygen Phy Dorjee
First Indian to join I.C.S. (I.C.S. now IAS) Satyendra Nath Tagore
First Indian to get Nobel Prize Rabindra Nath Tagore
First Indian in Space (first Indian cosmonaut) Sqn. Ldr. Rakesh Sharma
First British Governor General Warren Hastings
First Governor General of Free India Lord Mountbatten
First and the last Governor General of free India C. Rajagopalachari
First President of India Dr. Rajendra Prasad
First Vice-President of India Dr. S. Radhakrishnan
First Muslim President of India Dr. Zakir Hussain
First Sikh President of India Giani Zail Singh
First Prime Minister Pt. Jawahar Lal Nehru
First Speaker of Lok Sabha G.V. Mavlankar
First Chief Justice of India Justice H.L. Kania
First President of Indian National Congress W.C. Bannerjee
First Indian to become member of Viceroy’s Executive Council Lord S.P. Sinha
First Indian to become President of International Court of Justice Dr. Nagendra Singh
First Emperor of Moghul Dynasty Babar
First Field Marshal S.H.F.J. Manekshaw
First Indian Commander-in-Chief of India Gen. K.M. Cariappa
First Chief of the Army Staff (Indian) Sinhji
First Chief of the Naval Staff (Indian) Vice Admiral R.D. Katari
First Chief of the Air Force Staff (India) Subroto Mukherjee
First Indian in British Parliament Dada Bhai Nauroji
First Indian recipient of Victoria Cross (highest award before independence) Khudada Khan
First Indian to circumnavigate the globe Lt. Col K.S. Rao
First Indian to reach the South Pole Col J.K. Bajaj (1989)
First Indian to make a solo air flight JRD Tata
First Indian to visit England Raja Rammohan Roy (1832)
First Indian Member of House of Lords (British) Lord S.P. Sinha
First Bar-at-Law J.M. Tagore
First Chairman of Rajya Sabha Dr. S. Radhakrishnan (1952 – 62)
First Indian Test Cricketer K.S. Ranjitsingh
First Air Marshall Arjan Singh
First Judge to face impeachment in the Lock Sabha Justice V.Ramaswami (1993)
Fastest Shorthand writer Dr. G.D. Bhist (250 wpm)
« Previous PageNext Page »

Create a free website or blog at WordPress.com.
Entries and comments feeds.