
Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
How to convert string to binary and binary to string using PHP
Hello Readers if you want to convert your string into binary using PHP then you can use the code syntax as below:-
$value = unpack('H*', "This string is converting into binary");
echo base_convert($value[1], 16, 2);
Output:-
010100110...
RTRIM(str) mysql function
RTRIM(str)
RTRIM() mysql function returns the string str with trailing space characters removed.
In mysql if you want to remove a white space from the right side of a string then you can use this RTRIM mysql function. RTRIM mysql function re...
How to superimpose one image over another using PHP
Hello Readers if you have two images i.e. one png and one jpg, Then by using PHP you can merge both on a single one.
Lets see the example as given below:-
<?php
# If you don't know the type of image you are using as your originals.
$...
RPAD(str,len,padstr) mysql function
RPAD(str,len,padstr)
RPAD mysql function returns the string str, right-padded with the string padstr to a length of len characters means if you want to get a string to a given length and if the length of string is sorter than add the given cha...
RIGHT(str,len) mysql function
RIGHT(str,len)
In mysql, if you want some character from the right in a string then you can use RIGHT() mysql function means this function returns the rightmost len characters from the string str or returns NULL if any argument is NULL.
H...
REVERSE(str) mysql function
REVERSE(str)
If you want to reverse a string in mysql then you can use the REVERSE(str) mysql function. REVERSE() function returns the string str with the order of the characters reversed means if you want to reverse a string then you can pass...
How to delete table/database in MySQL?
We can drop table or database by using DROP keyword.
Syntax:
The DROP TABLE statement is used to delete a table.
DROP TABLE table_name;
The DROP DATABASE statement is used to delete a database.
DROP DATABASE database_name;
E...
How to delete an INDEX in a table in MySQL?
We can drop INDEX from table by using DROP INDEX statement, it is used to delete an index form a table.
Syntax:
ALTER TABLE table_name DROP INDEX index_name;
Example: Suppose you have created an INDEX named "person_user_name_idx" on th...
REPLACE(str,from_str,to_str) string function in MySQL
REPLACE(str,fromStr,toStr)
When you want to replace a string from other string in a string then you can use REPLACE function. REPLACE function returns the string str with all occurrences of the string from Str and replace it by the string to S...
How to create INDEXES in tables in MySQL?
We create INDEX in a table to find data data fast and efficiently. It allows the database to find data without reading all the records of the table. When we apply search and queries to table INDEX
are used to make them fast.
To create indexes i...
REPEAT(str,count) mysql function
REPEAT(str,count)
If you want to repeat a string str at given times then you can use the REPEAT mysql function. REPEAT function returns a string consisting of the string str repeated count times. It returns an empty string if count is less tha...
QUOTE(str) mysql string function
QUOTE(str)
Quotes function used to produce a result that can be used as a properly escaped data value in an SQL statement of a string. The string is returned enclosed by single quotation marks and with each instance of backslash (\), single q...
How to implode multi-dimensional array keys using PHP v5.5
Hello Readers, If you want to implode the array keys from multi-dimensional array then now PHP 5.5 offers you much easier way to do this.
Lets see the example as below:-
Array
(
[0] => Array
(
[studenID] =>...
MAKE_SET(bits,str1,str2,...) mysql function
MAKE_SET(bits,str1,str2,...)
MAKE_SET function returns a set of values which are from string containing substrings separated by , characters, consisting of the strings that have the corresponding bit in bits set. str1 corresponds to bit 0, str...
Jquery difference between .append() and .appendTo() method
Hello Readers,
If we want to insert any element or content within define particular element using jQuery, then we can use jQuery .append() or .appendTo() method.
jQuery .append() and .appendTo() both methods are doing the similar ta...
How to show custom lines on Google Map
Hello Reader's if you are integrating the Google Map in the website and you also want to show custom line on the map, Then this blog is very helpful you.
Lets see the working of this custom map.
<!DOCTYPE html>
<html>
<head&g...
What is mouse enter event in Jquery
Hello Friends,
Here I am discussing about mouse enter event in jquery. Mouseenter can call a specific action when your mouse cursor enter in a specific html entity like button,specific div id, class etc.
In the below example we are hiding sp...
How to show bounce effect on google map marker
Hello Reader's if you are integrating the google map with marker showing your address, Then you can also make the marker with bounce effect.
Lets see my code as below:-
<!DOCTYPE html>
<html>
<head>
<script
src="http:...
How to make gradient in backgound of a div
Hello Readers if you need to show mix colored in the background of the div then instead of using the photoshop images you can also do it by using CSS3.
Lets see the code css for this:-
background:-webkit-gradient(radial, 165 0, 0, 220 -257,...
How to get Clean URL in Drupal 7
Hello Friends,
In Drupal generally URL setup like "http://www.abc.com/?=node/38". If you are looking to setup clean URL like "http://www.abc.com/node/38". Please follow the below steps for the same::
1) Open administrative panel
2) After...
How to make 3d effect of a div using CSS
Hello Reader's if you want to make your html webpage to look like 3d image then you can use the code below.
Here in the code css will make the background shadow of div, Which will make it appear in 3d.
Let's see the code:-
-moz-box-shadow:...
How to put text align to veritcal using CSS 3
Hello Reader's if your are looking for the code to write the text with alignment upward, Then you can use the code css as below:-
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-o-transform: rotate(90deg);
writing-mode: tb...
How to make mouser hower motion on image using CSS
Hello Reader's if you want to make the animation in the image then you can use the cssmaker css. And here by using the css code below you can see and learn how to make this:-
.classname {
transition:All 1s ease;
-webkit-transition:All 1s eas...
Listing of record fields in Odoo9
When we are using list records field then it returns a large amount of meta-information (client programs also use list records field) which should be filtered before printing, string(the field's label) are the most interesting items for a human u...
Read records in Odoo9
When we face any issue in database records value at that situation we use read records value and record data is accessible with the read() method, which takes a list of ids (as returned bysearch()) and optionally a list of fields to fet...
Count records in Odoo9
Count record show the records value of database and retrieve a list of records and count them, search_count() can be used to retrieve only the number of records matching the query. It takes the same domainfilter as search()&nb...
Paginations in Odoo9
Paginations is the most important for odoo framework and its help to produce the inventory value of database and By default a search will return the ids of all records matching the condition, which may be a huge number. offset and ...
List records in Odoo9
List reord is the most important part of Odoo data base with the help of list records we can manage all database in odoo framework and search() takes a mandatory domain filter and returns the database identifiers of all records mat...
Calling methods in Odoo9
With the help of call method we have to create xmlrpc/2/object, it is used to call methods of odoo models and send value in database.
For example you can see below code and use in your odoo module.
models = xmlrpclib.ServerProxy('{}/xmlrpc/2/...
Jquery difference between .append() and .after() method
Hello Readers,
Often, we see that jQuery .append() method and jQuery .after() method work similarly, but there is a little bit difference between these methods.
Here we will discuss about functionality of following functions and it ...
How to make border with round radius for all the images in website
Hello Reader's you want to make the edges with border and round in shape for all the images in you website then you just need to put CSS3 to update as below:-
border:solid 5px #000000;
-moz-border-radius: 32px;
-webkit-border-radius: 32px;
...
How to show new messages in desing using CSS
Hello Reader's if you want to make nice view to show the messages and alert count then you can use the Badge of bootstap
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta c...
how to show color in button of html form using Bootstrap CSS
Hello Reader's if you want to show color in the buttons then you can use bootstrap css.
In this blog you can see and learn how to make them customize. Lets see my code as below:-
<!DOCTYPE html>
<html lang="en">
<head>
...
jQuery .append() and .prepend() method
Hello Readers,
Here we will discuss about jquery .append() and .prepend() methods.
jQuery .apend method: jQuery .append() method insert any content or data inside in sentence at the last index. In other word .append() method puts ...
How to put all the links target to sections of home
Hello readers if you want a single page website in which all the pages and links will be the sections of Home page. By using the bootstrap you can make it. Here you can see my code working as single page website.:-
<!DOCTYPE html>
...
How to make iconic hower on link using Javascript
Hello Reader if you want to make the nice and iconic hower on link then you can use Javascript as below:-
<!DOCTYPE html>
<html lang="en">
<body>
<div class="container">
<h3>Tooltip Example</h3>
...
How to make simple popup using Bootstrap
Hello Reader's if you are looking for nice and light design of popus, then bootstrap offers you much better way of doing this.
Lets see the code as written as below:-
<!DOCTYPE html>
<html lang="en">
<head>
...
LTRIM(str) Function mysql
LTRIM(str)
LTRIM(str) function returns the string str after remove the leading space characters means if you want to remove the all spaces from the left side of a string in mysql you can use this LTRIM mysql function.
Here I am giving a examp...
The best Carousel slider for website
Hello Reader's if you are looking for the simple and light Slider to integrate into your website then Carousel slider is the best. You can take my code as below:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta ch...
LPAD(str,len,padstr) function mysql
LPAD(str,len,padstr)
LPAD mysql funtion returns the string str, left-padded with the string padstr to a length of len characters means if you want to extend a string to a certain length and insert some character in left side of string at the p...
How to color to your alert message using Bootstrap
Hello Reader's If you want to print the alert messages in color, i.e. Red for danger and Green for success messages then Twitter Bootstrap offers you a good way to showing this.
Let's see the example as below:-
<!DOCTYPE html>
<ht...
LOWER(str) mysql function
LOWER(str)
LOWER(str) function returns the string str with all characters changed to lowercase according to the current character set mapping. The default character set is latin1 (cp1252 West European).
Here is a example of this function-
...
LOCATE(substr,str)/LOCATE(substr,str,pos) function mysql
LOCATE(substr,str), LOCATE(substr,str,pos)
LOCATE function returns the position of first occurrence substring in passed string. The second syntax returns the first occurrence of substring after the given position (the thirds parameter of secon...
LENGTH(str) MySQL function
LENGTH(str)
LENGTH(str) mysql function returns the length of the string str, measured in bytes. This function counts a multibyte character as multiple bytes. hence it means for a string containing 4(four) 2-byte characters then LENGTH() return...
LEFT(str,len)
LEFT(str,len)
The LEFT mysql function returns the leftmost len characters from the string str or returns NULL if any argument is NULL.
The LEFT function is multibyte safe.
Here are some example which will explain you this function-
...
INSERT(str,pos,len,newstr) MySQL function
INSERT(str,pos,len,newstr)
If you want to insert a string inside another string then you can use this MySQL INSERT function. INSERT returns the string str, with the substring beginning at position pos and len characters long replaced by the st...
HEX mysql function
HEX(str), HEX(N)
A hexadecimal string is returened by HEX(), it is a representation of str for a string argument str, where each byte of each character in str is converted to two hexadecimal digits ans multibyte characters are converted more ...
How to expand the div with a click using Bootstrap
Hello Reader's if you are new to Bootstrap, And you want to expand the div with a single click.
Lets see the example below:-
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-sc...
How to Dispatch postgres notifications to the relevant polling threads and greenlets in openerp
In openerp Dispatch PostgreSQL notifications to the relevant polling threads to Bus.loop listen imbus on db PostgreSQL and create the listen imbus and check the condition dispatch to local threads and greenlets in channel.
Example
use this code...
How to handle a longpolling request in openerp
In openerp to handle a long-polling request, we need to bypass private attribute access because we do not know before starting that the thread and handles a long-polling request and rename the thread to avoid tests waiting for a long-polling.
Ex...