Here we will see some of the functions listed below that are removed in PHP7.
1- ASP-style tags ( <%, <%= and %> ), is removed.
2- Script tags "<"script language='php' ">" Note: always use "<"?php ?">".
3-Split func...
Hello Readers,
$('div') : In jquery this element selects all the div element present on the page.
$('< div />') : In jquery this element create the new div element and this div element is not added to DOM tree unless you dont't append...
call() and query() method are the odoo methods which are used in def function in .py file, it is used to call the value.
To call the Odoo server objects we use two primary methods which are call() and query(), for this see the code example bel...
If I'm using margin: 0 auto it will work as horizontally margin auto and vertically 0px.
Now question is if I'm using margin:auto why It is not working vertically.
Note:- No need alternate option, just want a solid reason behind it :)
Hello Readers,
In jquery both works and gives the same result but now the time in current version of jquery we use the jquery.length because jquery.size is depreciated.
Below is the some points about this properties :
jquery.size() an...
Hello Readers,
Jquery selectors is basically a key using with jquery library. Jquery selectors are one of the most important aspects of the jquery library. These jquery selectors are familiar with CSS and use with CSS syntax to allow page easi...
Local SEO is vital if you want add your business to appear in local search results when users make inquiries about products and / or services which your company offers. Improving your position on the results of the search engines will allow you ...
Hello Guys,
Serpent Consulting Services Pvt. Ltd. has extensive experience in the field of ERP implementation and consulting. We present you the module that allows the user to select the Lab to get the lab test done.
GNU Health is a health ...
TO Generate all the objects from the templates in wizard follow below given point in openerp
1-param company: It refers company the wizard is running for.
2-param code_digits: It is a number of digits that accounts code should have in the COA
...
Hello friends,
Many times while doing a calculation in excel we got stuck with errors such as, #N/A, #REF!, #NAME?, #DIV/0!, #NULL!, #VALUE! or #NUM!.
So here in this blog I am picking up #NUM! error and providing you the solution for this,...
To Recursively load the template objects and create the real objects in openerp show detail given below.
1-param company: company the wizard is running for
2-param code_digits: number of digits the accounts code should have in the COA
3-par...
Hello Reader's! If you are stuck in a condition where you need to redirect old url. Then the quickest way to get previous url is by Javascript.
By using the document.referrer function.
Let's see the example below:-
<script>
var oldU...
source: webneel.com
The concept of 3D modeling is extensively used nowadays in movies, videogames, architecture, publishing, geology, medical science etc. 3D modeling in simple words can be described as creation of a 3D image...
HttpSessionListener in Servlet : We all know that user state is maintained in almost all the web applications like you have seen in shopping websites or banking websites etc. In java we mostly use application server's session handler. But what if...
Subclassing widget is most important for Odoo.With the help of subclassing Widget() we can change the standard manner with the extend() method, and provides a number of abstract properties and concrete methods .Subclassing Widget looks like this...
Hello Reader's! If you want to change your web background image automatic on the day time basis, i.e. for day it will show pic 1 and in night it will show pic 2 as background.
Lets see the full example below:-
</bo...
Hello Reader's, If you have an array having the multiple duplicate key values then by using Javascript you can make them skip.
Let's see the example below:-
Lets say an array full of duplicate data.
var axes2=[1,4,5,2,3,1,2,3,4,5,1,...
After designing a number of magazine covers, I realized that it is a work of complete vibrancy & use of colors in an aesthetic way along with a artful finish. Here we'll go through the creative process of designing a fashion magazine cover.
...
Hello Reader's If you want to show image on a click event. Then using javascript you can use this in real time.
Let's see the example below:-
<button onclick="add_google_logo();">Add Google Logo</button>
Now the JS will go li...
Hello Reader's If you want to show current date in a html div, Then you can genrate it in JS then show back to html. Here is the example below:-
<div id="Console"></div>
Now the script will go like this:-
window.onload = fu...
Clipboard is just a type of register where you can save some temporary data. you can't store data permanently here so its nice place to store temp data.
For this you have to create a edittext from where you will copy text and then you have to...
The column which now shows #NUM! had values like 20000, 4000.
It earlier had values like mentioned above.
I copied a row, pasted it in another row and darn! It got messed up...
FYI- This sheet uses Tables.
Hello readers, today we discuss about "Generate a random, unique password or alphanumeric string" using Php function.
function random_string($len) {
$key = '';
$keys = array_merge(range(0, 9));
for ($i = 0; $i < $len; $i++)...
Scaffolding is the automated creation of a skeleton structure to simplify bootstrapping (of new modules, in the case of Odoo). While not necessary it avoids the tedium of setting up basic structures and looking up what all starting requirements a...
Searching files in Ubuntu : Ubuntu is free open source operating system. Ubuntu has both the Graphical User Inerface (GUI) and the command line interface (CLI). In this article we are going to tell you how you can search for files and directories...
Most of the command-line options can be specified with a configuration file.
Most of the time, they use similar names with the prefix ( - ) removed and other ( - ) are replaced by _ for e.g. --db-template becomes db_template.ote-. Controllers ...
If you want to create a pending intent function check my below example. Here I have created MainActivity class and MyReciver class to show get data and in this class I have used toast function. Below code will clearly described you how to create ...
Controllers need to provide extensibility, much like Model, but can't use the same mechanism as the pre-requisites and database with loaded modules.
Controllers are provide their own extension mechanism, separate from that of models:
Controller...
Hello Reader's!
If you want to make a html page that based on user activity, As user clicks on div then JS will make that div highlight.
Let's say our div is -
<div tabindex="0">Hello World</div>
Here div with tabindex of...
Hello Reader's If you want o get the total counts of a views on youtube video by api, then you can use the following php code.
<?php
$video_ID = 'your-video-ID'; //set the id from url
$JSON = file_get_contents("https://gdata.youtube.com/f...
To animate a particular label in android we have to use TextSwitcher on screen. TextSwitcher layout is similar as the other layouts in android, like Textview and Edittext. TextSwitcher is used to swap current text with the new one. We can also pe...
Hello Reader's!
If you want to replace multiple sting with another multiple stings, then you use the JS function as below:-
Lets say a given sentence having strings.
var str = "I have a cat, a dog, and a goat."; //sentence to process
var ...
If you wish to turn on Bluetooth in android when your app run then use the code written below .This code will ask you to turn on your mobile Bluetooth if the Bluetooth is off.
BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAda...
SEO process not only starts after the website is live by the SEO experts, however there are certain other parameter which every web developer should know to avoid some of the SEO errors ...
Sometimes we need to check/unchecked checkbox based on some condition. We can do this easily by using "checked" attribute of a button.
Example:
<input type="checkbox" id="addressCheckBox" class="form-control">
<label>I confir...
Here is a way by which you can send the email via android-intent.
The below code opens a dialog showing email related apps e.g. Gmail, Yahoo Mail etc. if installed in your device. In case your device is not installed with mailing applications t...
Sometimes we need to implement autocomplete feature to input field for searching purpose. We can do this by using "autocomplete()" with jQuery.
Example: In the below example I have created an array of country names and passed that as source to...
IN Operator use:
It allows us to put multiple values in a where clause . With the help of this we can compare multiple values wtih where.
Syntax:
Select columnname(s) from Tablename where columnname IN(value1,value 2, .... value n);
...
You can use basic math operations to numerical values and colors. if we want to have two divs placed next to each other, the second one with a different background.
@div-width: 100px;
@color: #03A9F4;
div{
height: 50px;
display: inli...
In Android you can also use vibration method of android. There is an abstract class named Vibrator that helps you to implement vibrations in your own applications.
method vibrate will vibrate with a given pattern.
public class MainActivity...
If you want to create a function to Show SMS on your device check below simple example. Here I have created a ListAdapter, by using this class sms will be showing on list and in this I have also created a SmsFormat class In which I have set value...
Different between *table* and *div*
What is div ?
The DIV element can be called a block element. It can also be called a layer. Its use involves dividing a page into a logical section. One of its many advantages is the ability to hold what...
Its easy to make a phone call by using intent in android for this example we can user an editText and button with property of editText is set to inputType="phone" that ll accept only numbers.
On basis of intent an action to be performed i.e AC...
1> To go-to any particular page(i.e to search the files by name)
Ctrl + P (and then type the name of the page you want to navigate to)
2> To go-to a particular word in the file you are currently working on
Ctrl + ; (and th...
1> Go to your wordpress dashboard.
2> Go to plugins --> Add New
3> Type 'reset' in the search bar & click on "Search Plugins"
4> From the search results select "WordPress Reset" & click on "Install Now"
5> On...
Hello Friends,
If you are looking to create a custom select box, you can use below HTML and CSS code I have provided.
Below an example of custom select box.
HTML -
<div class="wrapper">
<input id="textfield" type="te...
Hello Reader's! if you have to get the smallest number from the array, Then you can use the JS for short calculation. And here is the example:-
Lets say the array is
[0] = 54.25
[1] = 536.2
[2] = 100.2
Now make a function and use th...
In the past year, We were using Javascript and jQuery for image slideshow(image Slider), But nowadays we can make slideshow easily with the help of HTML5. In this blog I am going to discuss about how to make slideshow in HTML5 with complete exp...
Hello Reader's If you want to make simple Javascript code to make mobile browser display either in portrait or landscape..
This will help you to make your required sreen
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "htt...