
Search In
If i have a User object say user, i.e
>> user = User.find(1)
=> #<User id: 1, login: "james.warner", email: "james.warner@evontech.com",created_at: "2013-11-18 07:12:45", updated_at: "2014-02-03 10:51:02", designation: "Programmer">
Program to sort elements in Ascending Order using Insertion Sort in C language
Insertion Sort
Definition:- It is a sorting which sort one number at a time & insert to its proper location in the array list until all the numbers are sorted from
Hello Readers,
last() is the jquery method which is used to select or returns the last element of the selected elements or the matched elements in jquery.
Syntax :
$(selector).last()
In the above syntax there is no parameter inside last() method
The jQuery append() method is used to insert specified content at the end of the selected elements in the jQuery collection.
Syntax :
$(selector).append(content, function(index, html))
Example :
<!DOCTYPE html>
<html>
<head&
In MySQL, the UPDATE statement is used to update existing records in a table.
UPDATE Syntax
UPDATE table_name
SET column1=value1,column2=value2,...
WHERE some_column=some_value;
In the above syntax, WHERE clause specifies which row or rows will b
Hello Readers if you are designing the html UI and you want to make div resizable by mouse then you can use the code as below:-
<!doctype html>
<html lang="en">
<head>
<link href="http://code.jquery.com/ui/1.10.4
Sometimes during application development we need to do case sensitive search. Let us see how we can do the same in SQL Server.
For illustration purpose we will use a table called Technology which has a column named Platform.Now let us say column pla
Sometimes we need to send data from one controller to another. There are services provided by AngularJS for communication(event-based) between the controllers. $on, $emit, $broadcast are the services for the communication between the controllers.
$o
$(“div[id*='box']”) in jQuery
The above expression mean selecting all div elements whose id attribute contain box word anywhere like firstbox, secondbox, box1, box2, middleboxexample etc.
Program to demonstrate above
To provide manipulation in a single bit of data or into the multiple bits we will use the things for these bit manipulation.
struct {
unsigned int widthValidated;
unsigned int heightValidated;
} status;
This will give you the
