
Search In
Through this code we can use NSLOG whenever required. Write this snippet in some common file(say utility) so that it would be easily handled throughout the project. Make sure class should import utility class to handle NSLog.
All you need is to chang
Hi if you are using php version 5.3 or greater then some functions are really very quick to write and use.
In this blog I am calculating the days between your given two dates.
This is by far the most accurate way of calculating the difference:
This
Hello Readers
If you want to calculate difference between two dates using PHP , use below code.
comment: Suppose we have the two dates below date1 and date2
$date1 = "2014-06-11";
$date2 = "2015-07-16";
comment:then we get diffrence with absolute
If you want to run two server on a same machine at a same time in openerp-7 (Odoo)
follow these two simple step
1-Do this in your Terminal to run first server
`/workspace/openerp/openerp-6.1-1$` ---> (this is server location )
Now run the below
The syntax of the preg_match function is that:
preg_match (string pattern, string string [, array pattern_array],[, int $flags [, int $offset]]]);
In the above function first and second parameter are mandatory and the rest of the parameters are opt
The escape function returns a hexadecimal encoding of an argument in the ISO Latin-1 character set that contains the contents of charstring. The Syntax is:
escape("string")
String is a string in the ISO Latin-1 character set.
The value returned b
Set encoding to default and find value to get_encodings, ustr and exception_to_unicode were originally from tools.misc in openerp and use this method in openerp. Use this code in .py file in openerp
ef get_encodings(hint_encoding='utf-8'):
fallb
Hello Reader we almost have header about array_key_exits and isset but you need to know the diffrence between them.
Lets take an example below:-
array_key_exists will only work when your key have an element and doesnt matter it is null, but isset wi
How to customize a table to your requirement.
We can also apply specific characterstics for a table.To define special style for a table we can add id attribute to the table.
<table id="t01">
<tr>
<th>Firstname</th>
Let's create a table with duplicate rows in SQL.
create table CustomerDuplicate(customer_id int,customer_name varchar(20))
insert into CustomerDuplicate values(1,'Adam')
insert into CustomerDuplicate values (1,'Adam')
insert into CustomerDuplicate
