Some functions that are removed in PHP7

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...

What is the difference between $('div') and $('
') in jquery ?

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...

Calling Odoo models in call() and query() method

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...

Why does auto attribute not work vertically?

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 :)

What is the difference between jquery.size() and jquery.length ?

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...

What are selectors in jQuery and how many types of selectors are there ?

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 Strategies that Every Businessman Should Know

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 ...

Upgrade Lab module in GNU Health

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 ...

How to Generate all the objects from the templates in openerp

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 ...

How to solve #NUM! error in excel?

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,...

How to Recursively load the template objects and create the real objects in openerp

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...

How to get the last url using Javascript

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...

Different Techniques Used for 3D Modeling

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 Interface in Servlet

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 in Odoo

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...

How to change page background on the day time basis using Javascript

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...

how to remove duplicate key values from an array using Javascript

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,...

How to design a Magzine cover

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. ...

How show image on click event using Javascript

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...

How to print current date in html div using Javascript

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...

Copy to clipboard programatically

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...

My number value is overwritten by #NUM!

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.

Generate a random and unique password

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 in Odoo

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 the files and directories on Ubuntu

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...

Configuration file in Odoo

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 ...

How to create Pending Intent function in android

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 ...

Difference between pure virtual function and virtual function in C++

td p { margin-bottom: 0cm; }p { margin-bottom: 0.25cm; line-height: 120%; } Pure virtual function virtua...

Controllers in Odoo

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...

How to highlight a div using Javascript

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...

How to get the vedio views from youtube using API in PHP

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...

How to implement Animation using Android TextSwitcher

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...

How to replace multiple strings with another multiple strings

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 ...

How to turn on Bluetooth in Android app

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...

How Web Developers Can Avoid Common SEO Errors During Development

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 ...

How to check/uncheck checkbox with jQuery?

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...

how to send email via intent

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...

How to apply autocomplete feature to textbox with jQuery?

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

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); ...

Using Operations in Less

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...

Vibrate Phone programmatically

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...

How to show SMS in Device

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...

What is the diffrent between table and div ?

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...

Make phone call programmatically

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...

Some Useful shortcuts to be used in Sublime Editor

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...

How to reset wordpress back to its Original Settings

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...

Custom select box

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...

How to get smallest key from an array using JS

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...

How to Make SlideShow in HTML5

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...

How to make mobile browser display either in portrait or landscape?

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...
1 183 292