
Search In
Range operators in ruby are used to extract a sequence. Sequences have an initial point and end point by which we can generate consecutive values in the sequence. The values of a range may be objects, numbers, characters or strings.
There ar
if we want to break the execution of loop in while, do while and for loop and switch case we use break satement.
Syntax:
jump-statement;
break;
below are examples to illustrate break statement:
Example1
Example of C break statement with loop
Hi All,
If you want to show flags in using unicode hex coding (U+XXXX) than you can follow this code .
UNICODE:- Unicode is a computing industry standard for the consistent encoding, representation, and handling of text expressed in most of the wor
In openerp It will first clean the leave intervals, to have an ordered list of not-overlapping intervals and initiate the current interval to be the base interval then before finishing skip the current interval and go to next beginning after the curr
Delegation is most important for odoo module, it is the third inheritance mechanism which provides more flexibility (it can be altered at runtime) but less power: using the _inherits a model delegates the lookup of any field not f
Binding
Connecting two or more separate methods together is known as binding.
In Java there are two types of binding:
1. Early binding.
2. Late binding.
Early Binding
The binding which takes place at compile time is called early binding.
The e
Difference between HTTP 1.1 and HTTP/2
HTTP/2 is a new version of the Hypertext Transport Protocol. HTTP/2 is used to deliver pages to the browser from server on the Web. It is the first major update of HTTP. In 1999 HTTP was introduced, during this
Sometime we need two compare two dates like which Date object's time coming first or last.
Here is the code to compare two dates.
Date date1;
Date date2;
if(date1.before(date2)){
System.out.println("Date 1 is before date 2");
To convert the rows to column in MySQL
Sample query:
select column1, count((case when (column2 = 'M') then 0 end)) AS `males`, count((case when (column2 = 'F') then 0 end)) AS `females`,count(0) AS `Total` from table_name group by column1
RecordSet also support set operations you can add, union and intersect, ... recordset. For example you can see below code.
record in recset1 # include
record not in recset1 # not include
recset1 + recset2 # extend
recset1 | recset2
