Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to send a Hash as an argument to a function in Ruby

In Ruby it is possible to send a Hash as an argument to a method. Suppose we have a method named conversion_method which has 4 default parameters(a,b,c,d). ex:- 2.1.5 :086 > def conversion_method(a:10, b:20, c:30, d:40) 2.1.5 :087?> puts

How to create a custom two-dimensional Array in javascript

Hello friends, Most of time we need to create 2-D array in javascript but javascript does not provide direct syntax of multidimensional array . But we can create custom two-dimensional array in javascript. For Example : var myarray=new Array(3) for

How to append elements to an array?

There are methods to add elements to the array using push method and concat method. The array push method adds element at the end of an array and returns its new length. *Syntax :- array.push(item1, item2, ..., itemX) Below is the example code :

How to reverse a number without using % operator?

#include<string.h> int main() { int number1, number2; char str[10]; printf("\nEnter a Number:::"); scanf("%d", &number1); sprintf(str, "%d", number1);//step 1 strrev(str);//step 2 number2 = atoi(str);//step 3 pri

OVERLOADING IN JAVA

In java we can define more than one method inside one class(same class), whose names are same until their parameters or signature are different. This process or method of having more than one method within same class with different parameters or sign

How to generate unique number for an email in JAVA?

Sometimes we need to generate a unique number for an emailId, for example when a user register then we need to generate a number by using that user can verify his EmailId. For this we can use SHA1 encoding method. Example - In the below method I'

Mysql: Compare two columns word and print total common words count

I am posting this blog because I was facing issue to show the total common counts in 3rd column from two columns. This is following table which contain these records: |==========title=================|======title================| |...Cat Dog.......

How to calculate distance from array of coordinates in iOS

If we want to calculate the distance from the array which contains the coordinates i.e Latitude and Longitude then use the following code- -(void) getDistanceFromArray { CLLocationDistance totalKilometers = 0; for (int i = 0; i < (self.arra

Event bubbling and capturing in javascript

There are two ways of event propagation in HTML DOM, when an event occur in an element with an element: 1. Event bubbling 2. Event capturing 1. Event bubbling : There are many times when we want to handle two or more event handlers at different leve

Hop Over Notification Badge

Hello Readers! We web designer can give new look and feel to any content of the div, We have numerous style, effects and animation including keframes which will result to get a graceful ambience to the content, Here in this blog i used same effects w

1 50 949
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: