MVC Navigation from one View to another

**HTML.ActionLink** We while creating MVC application need to navigate from one View to another. The usual and simple way that we use is to use HTML elements "a" with its href attribute set to a specific controller's action, this is most obvio...

Scripting Elements in JSP

Scripting Elements : In JSP every scripting element is written inside the <% %> tags. At the translation phase JSP engine reads the code inside the <% %> tags and processed it. In a JSP file outside this <% %> tag all code is t...

Use of all_of function in C++

all_of function is used to test condition on all the elements in a range[first,last), it will return true if the test condition is true for each and every element in the range or if the range is empty, else it will return false. Function Prot...

Prevent SQL Injection Attack

SQL injection is a technique that exploits a security vulnerability within the database layer of an application.Using this technique the attacker tries to run his own malicious query against the database.The key component of these malicious queri...

Multiple Combined Or Queries using Android Parse Android

To implement "OR" feature on the query we need to merge two queries. First, create a list of queries and add the queries that you want to implement. And then ParseQuery.or() methods to make a final query. Below is the code ParseQuer...

Swipe to delete to ListView items in android

In many situations, we need to add swipe menu functionality to make our listview attractive. Here I am using a library that makes it so simple. Firstly, we need to add a dependency to gradle file compile 'com.baoyz.swipemenulistview:libr...

Top 5 High Traffic Content Sharing Websites

Performing SEO tasks is not an easy job for any SEO specialist because it involves huge amount of research for finding new fruitful resources which are beneficial for the promotion of any ...

List of Important A to Z Windows CMD Commands

Hello All, In this Blog, I going to explain A-Z list of Windows Command Line Interface (CMD) used in day to day life of windows user. When you have problem in CMD , you ca...

How To Make Navigation Drawer in android.

Using below code you can create a android DrawerLayout, a FrameLayout and Linearlayout. The Linerlayout is divided in three linerlayout for using image and text. In this Navigation Drawer when I will click navigation menu the navigation menu w...

How to Sending a signal from a subflow in Odoo/OpenERP

When a workflow is embedded in an activity (as a subflow) of a workflow, the sublow can send a signal from its own activities to the parent workflow by giving a signal name in the attribute signal_send. Odoo processes those activities by sending ...

how to upload & save images into database In CakePHP

In this post, I am gonna give an example to upload Images and store its file path in the database with the help of custom component. Example: Add this UploadComponent class in app/controller/component folder. <?php class Upload...

SEO Steps to Follow When Domain Name is Changed

Being an SEO professional, you must always be ready to follow the right steps during the different stage of web development along with the major changes that is happening with the domain...

How to Work With mkdir() function in PHP ?

The mkdir() function is basically use for making a directory. Syntax of mkdir() function mkdir("dir_name"); You can see below example of mkdir() function. <?php // here call mkdir() mkdir("testdocs"); ?> In the above ...

Install new language package in magento

To create a multilingual ecommerce website we need to add language packages. So I am explaining how to add language pack in magento. We can install the language packs by following these steps - 1) Go to magentocommerce website and search the ...

How to make Animate a Bitmap app

In the below example I have created Animate Bitmap program. By using animated bitmap function we will get the position and distance along a path. In below, code will animate image on screen. In my below code I have clearly describe how to make A...

What is rand() function in php?

The rand() function is used to generate a random integer number. How to use rand() function? Syntax of rand() function:rand(); or rand(min,max); min:- min is use for Specifieing the lowest number that is retuned. Default min is 0. max:-m...

Access to Auth Componenet using session in CakePhp

To access the Auth component from view will give you error like you cant access the Auth component. Here is a way of accessing the Auth components from view which can be done using CakeSession in cakephp. to do so lets see the example : ...

How to create Custom Rom for Android

I wan to create a custom rom Can Someone guide mo on how to do this Please

How to use $_Get in php?

PHP $_GET can also be used to collect form data after submitting an HTML form with method="get". $_GET can also collect data sent in the URL. You can see below example of $_Get in php. <!DOCTYPE html> <html> <body> ...

How to upload a file in php ?

When you want to upload your curriculum vitae, Your Profile picture, on the server then you can use File uploading method in PHP. With php concept you can easily upload your resume and any other document. There are tow important propert...

upload file using CURL?

As we know that CURL is a library that allow us to make requests(HTTP requests) in PHP. We can upload a file as well using CURL. For upload a file using CURL must follow below points : Uploading file size is mandatory to be less than f...

JavaScript createElement() Method

createElement() Method in JavaScript is used to create a HTML element dynamically. lets take an example: var select = document.getElementById("selectbox"); //1 var option = document.createElement('option'); option.text = "XYZ"; select.a...

How to calculate number of days between two given date's in PHP

Hello Reader's! If you need to calculate the number of hours or days between two given dates then PHP offers you a lot of ways. But you can perform this task by the following way: Lets see the example below:- //Calculate number of hours betw...

How to upload image using simle Jquery and HTML5

Hello Reader's! If you are developing the html5 based ajax image uploader then you can look this jquery as the best and easy to use. Lets see how to upload images 1) include two JS file <script src="jslibs/jquery.js" type="text/javascri...

How to get the colomn name of table using MySql

Hello Reader's, If you have to get the only names of columns of table then see the code below:- You can use following query for MYSQL:- SHOW columns FROM your-table; Below is the example code which shows How to implement above syntax in ph...

How to set multiple values in a option box

Hello Reader's! If you need to set a option box with multiple select options then you can use the logic below:- Logic is to set the name of your option box in array format, Like <select name="flower[ ]" multiple> Lets see the...

How to check if uploading file is in .csv extension using PHP

Hello Reader!, If you are looking for verify the uploading file with the correct extension with .csv only. Then you use the PHP code as below:- $allowed = array('csv'); //you can mentions all the allowed file format you need to accept, like ...

Object Iteration?

In PHP we can iterate any object by using the list of items,for getting list of items we have foreach loop in php. So that there will only the visible properties is being listed. We have loops concept for iterating throughout data list in php....

How to do Link Building for your Website in SEO

What is Link building ? Link Building is a method of making links from the other live website via various technique. It is not easy task , It is most difficult but important strategies to rank your website in various Search engine SERP(Search ...

difference between event.preventDefault() and return false in Javascript?

In javascript , e.preventDefault() will always prevent the event from occurring which is default event. It simply means that If any method is called, then the default action of that particular event will not be triggered. Note: - We can't...

difference between call and apply in javascript?

call() and apply() are two predefined javascript methods. We use both of them to invoke a function & these method must have its own object as a first parameter. apply allow us to invoke the function with passing the arguments in the form...

5 Steps to Protect & Recover a Website From Phishing Attack

If you have a website and suddenly seen a drop in number of visitors towards your website then you must be very aware about this issue because it might be an spam attack or you can say y...

How to apply layout in CakePHP ?

In CakePHP, there is by default layout in (app/View/Layouts/default.ctp) file, But there are many cases in which we can apply different layout in pages as per our client requirement. Case- 1 If we dont want any layout for our controller metho...

Triggers in Odoo

Triggers are recorded in database as record IDs (together with the model name) and refer to the workflow instance waiting for those records. The transition definition provides a model name (attribute trigger_model) and a Python expression (attrib...

How to use $_POST in php.?

$_POST is basically used to accumulate form data after submitting an HTML form . $_POST is submit data with method="post". $_POST is also widely used to pass variables. You can see below example of $_POST. <!DOCTYPE html> <html&...

How to Add the Python function in odoo-9

Here is just one thing to do: create the Python function which is called by the automated action. The Python function process_demo_check_queue will automatically create and update the value called by automated action. So let us create this in t...

Signals in Odoo

In addition to a condition, a transition can specify a signal name. When such a signal name is present, the transition is not taken directly, even if the condition evaluates to True. Instead the transition blocks, waiting to be woken up. In orde...

MySQL join across three tables

To implement joins(inner join,outer,full) in three tables you need to execute following MySQL statements: select * from table1 as t1 join table2 as t2 on condition join table3 as t3 on condition Example: Suppose we have a database pr...

What is Accessibility Testing ?

What is Accessibility Testing?:- Normally accessibility testing is known as the subset of the usability testing where in the users present people with all talents and inabilities.The importance of this testing is to determine both accessibility...

Priority queue in C++

Priority queue is container adapter, designed in such a way that the first element is the greatest elements among it contains. In priority queue elements are popped from the back which act as top in the priority queues. In the below program w...

Calculator Application Using Angulor JS

Here we create small application which perform 'addition', 'subtraction', 'multiplication' & 'division' with the help of Angular JS. Application Code: ng-app in div tag: it means were setting the AngularJS name. <!DOCTYPE html...

trim() string function in php

trim is a function in php which removes the whitespaces from the beginning and end of a string. but if we want to remove them from one side specifically then we will use these trim function for the left side trim ltrim() and for the right side t...

How to display different sizes of div on clicking in the drop down using angularjs?

In the below code I have created a drop down list consisting of three different sizes. On clicking a particular size it will display that size div along with its name. Here is the HTMl: <html> <head> <title>C...

How to creating the views in odoo-9

If you have the database part ready it is time to create your view. Example:- I have created a simple form view and tree view which shows the fields name, numberOfUpdates and lastModified as created in our model: <record id="view_check_re...

How to implement custom GridView in Android with Images and Text

In this blog I am going to show how to make GridView or GridView function. In the below example I have created a adapter class , item class and Created another layout for GridView image. In values folder I have created color.xml file for color co...

cron jobs in Odoo

To run cron jobs for an Odoo deployment a WSGI application requires a classical Odoo (run via odoo.py) should connect to the database in which cron jobs have to be run (via odoo.py -d) And it should not be exposed to the network. To ensure cro...

How to Creating the new model and fields in odoo-9

First create a model (if you dont have one yet) then create some fields on this model: class check_demo(models.Model):     _name = 'check.demo'     name = fields.Char(required=True)    ...

How to serving static files in Odoo/OpenERP ?

Odoo directly serves all static files in running modules. This may not be ideal when it comes to performances. And static files should generally be served by a static HTTP server. Odoo static files live in each module's static/ folder, so stat...

How to make "Super-admin" password in Odoo/OpenERP ?

Step-1 Configuring Odoo after that we will provide admin_passwd . Step-2 Then use all database management screens (to create, delete, dump or restore databases). Step-3 If the management screens not accessible, then make it accessible from a se...

How to calculate area of a circle using .value and .service in angularjs?

Services in angular is the best way to put all your business logic. Two of the ways of creating of services is- value and service. I am showing you how you can calculate area of a circle by passing any value of radius in the text box using .va...
1 187 292