How to remove borders of a portlet in liferay

Hello Guys Now, We are removing borders of a portlet in liferay that added using tag as below : <liferay-portlet:runtime portletName="customSocialNotifications_WAR" /> You can use below attribute available in same tag as default...

How to generate the barcode for product in Odoo-9?

If you want generate the barcode for product in odoo You will need the following kind of python code declaration in your .py file: from openerp.osv import fields, orm from openerp.tools.translate import _ def isodd(x): return bool...

Temporary Tavles in SQL

Temporary tables in SQL are used for manipulation of data for a short period of time. It can be used as a accumulator like we have in microprocessor which acts as mediator to store and perform operations into it. Temporary table in ...

SQL : How to get Nth record in SQL Table ?

In the following article we will go through a solution to a very common requirement of getting Nth record in a SQL server table. Let us first create a table and add sample data to this table. Col1 in the table is an identity column. CREATE TA...

SQL : How to find all tables containing column with specific name ?

Many times we come across a requirement of finding names of all tables which contain specific columns. We can get the answer by using the below query: SELECT COL.name AS ColumnName, TAB.name AS TableName FROM sys.columns COL JOIN sys.tab...

SQL : Difference between UNION and UNION ALL

Both UNION and UNION ALL operators are used to combine the results of two or more SELECT statements. However the two differ as below: 1) UNION performs a DISTINCT on the result set, removing any duplicate rows.There is a performance hit when ...

Find Layouts with the specific JournalArticle in AssetPublisher portlets

Hello Guys Here, We find all layouts with the specific JournalArticle in AssetPublisher portlets. With easy requirements someone publish a JournalArticle with specific Tags i.e TagA, TagB. On the other pages (Layouts) of the liferay porta...

decodeURIComponent() function in JavaScript

JavaScript decodeURIComponent() function : The decodeURIComponent() function is used to decode the encoded URL components. Syntax of decodeURIComponent() function : decodeURI(uri) uri : Required. This is the encoded URL which need...

encodeURIComponent() function in JavaScript

JavaScript encodeURIComponent() function : The encodeURIComponent() function is used to encode the URL. It encodes the all special character including characters : , / ? : @ & = + $ # Syntax of encodeURIComponent() function : encode...

CURL setup in php

Welcome to FindNerd. We are going to discuss the curl setup in php. In php curl is not enabled bydefault. You need to enable it via php.ini file. curl_init and curl_setopt are the functions for main functionality. you can set the url by curl_ini...

Crop Image in iOS

To crop image in iOS use the following method. it will crop the image from the visible frame of the imageView. -(UIImage *)imageFromImageView:(UIImageView *)imageView rectFrame:(CGRect)frame{ UIGraphicsBeginImageContextWithOptions(frame....

CodeIgniter file structure

Right now that you've got CodeIgniter delivered electronically in addition to unzipped, create a second to think about the actual document design. Under shows the original folder design an individual ll see. You can see above three folder...

What Is Software Quality Management ?

What Is Software Quality Management (SQM) ? According to Quality Management Software provider Veeva, SQM (Software Quality Management) certifies that the essential layer of quality is accomplished by giving enhancements to the application deve...

Cron job process in wordress

Welcome to FindNerd. Today we are going to discuss the concept of cron in wordpress, how we can set up the cron in wordpress. We use the cron_schedules filter to set the time intervak to schedule, ewp_send_email_cron_hook function to check the n...

Different position values used in xpath

In Odoo/OpenERP many times we need to inherit views in order to add/remove/replace few elements of the original view. Simple use of `` can make that easier. With this tag we have to provide an attribute called "position". This attribute contains ...

What is chaining in jQuery?

Hello Readers, In jquery chaining is the technique and most poweful feature. It means we chain the one or more methods or events to one selectors or elemnts. Because of this it short the code level as well as its performance (means it gives...

What Are Meta Refresh or Re-direct Tags?

About Meta Refresh or Re-direct Tags   Meta Refresh is a process which gives instructions to a web browser to refresh the current web p...

serialize and unserialize function in php

Serialize is a function which is used to convert a storable representation of a value. It converts an array into string containing a byte stream representation of a value. <?php $serializeddata = serialize(array('apple', 'mango', ...

How to get the base url in cakephp ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to get the base url in cakephp ? If you want current base or Get current url. You can take reference of bellow example suppose your project URL is http://localhost/pro...

What is proccess to get the file extension in PHP ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss What is process to get file extension in PHP ? There are many ways for getting the file format or extension of any file. In bellow example you can see how to get the file forma...

Endpoints in SQL Server

Endpoints in SQL For providing TCP/IP communication between your SQL and other applications you need to create end point for that . Creating end points is a series of steps Message Contract Queue Service Route...

Ajax request in YUI

Here is the simple example of YUI ajax with Post and Get method: POST request: var callback = { success: function(o){ alert(o.responseText); }, fa...

How to make Sensor in android

If you want to create Sensor function you can use my below example code. The android platform supports three categories of sensors. 1st Motion Sensors, 2nd Environmental sensors and 3rd is Position sensors. In the below code I have used SensorEve...

Using Git Flow on a Drupal Project

Git is very useful in these days to manage your code repository. It is very useful when there are multiple repositories and multiple developers working concurrently. I found below content very useful. It is also assume that you are familiar with ...

How to delete cache in magento

We can remove the cache from the root folder of the magento in the root path by deleting the files in cache folder of the path /opt/lampp/htdocs/magento/var/cache The another way is to delete magento cache by usign magento admin panel as : ...

Joomla session

Sessions provide a very easy way to make data persistent without the need to constantly pass it through URL's or hidden form fields.It is used to store user data over certain period.It is stored on web server. create session object. Session ...

How to prevent model box to close box by screen click ?

If your model box getting close by some where click on screen outside of your popup box. You need add following attribute in your model box: data-backdrop="static" data-keyboard="false" your model box will appear like this <div class...

Convert string into lowercase and uppercase in PHP

Hello everyone, this article demonstrate some useful PHP functions which can be used to change string case into lowercase and uppercase. The article also demonstrate some other functions which can be used to convert first character of each word i...

Do We Need to Use Doorway Pages Strategy in SEO?

As an internet marketing expert we follow several SEO strategies in order to increase the number of visitors and to increase the ranking of keywords in the search results for certain set...

Dynamic Memory Allocation using malloc() in C

The malloc is an acronym of "memory allocation". This function allocates the requested size of bytes to a variable and return a pointer of type void. Syntax: p=(type cast *)malloc(size) Here p is a pointer. Example: Calculate the s...

How to use Net Beans with Ruby on Rails

Net Beans is an IDE which can be used with many programming languages. We can use it for coding in Ruby on Rails as well. You can follow the following steps to get started : 1) Download the sh file for the latest version of net-beans. ...

Secure file download in php

Welcome to FindNerd. Today we are going to discuss the concept to download a file securely in php. We all knows, we can not share a adjust file location to end user. We can set the header for file name, type and size. Please check the below code...

Sin Method in Javascript

The sin method of javascript defines a sin of a number. Where the number is a numeric expression, representing the size of an angle in radians. See the syntax below - Syntax: Math.sin(number) The sin method returns a numeric value betw...

How to create joomla plugins

Plugin is an extension which provides a function that is associated with any trigger events. Following are the files required for creating a simple custom plugin in Joomla. 1 myfirsttest.xml 2 myfirsttest.php 3 index.html First for creati...

event.PreventDefault, event.stopPropagation and return false in jquery

Hello Readers, event.PreventDefault() : In jquery event.preventdefault is used to prevent the current action or the default action event from occuring or happening or triggering. It does not stop the propagation to parent DOM elements. For...

How to remove parent theme Action and Filter in wordpress child theme

Hello readers, today we discussed about How to remove parent theme Action and Filter in wordpress child theme. Some theme have its own hook function that change theme behavior and functionality. Some example are below, Right now I am not goin...

CameraPreview problem.

Hello Everyone, I am working on iOS + Cordova platform. When i clicked on camera button ,the preview is not coming.. Any thing i Have to add in JS file or CameraPreview.m file to interact to each other... Please help. I am new in Cordova a...

jQuery add() Method

Hello Readers, We use add() method to add elements with a existing group of elements or selectors. Syntax: selector.add(selector) Parameters Please find the following description of all the parameters used by this add met...

IndexedDB

The indexeddb is used to store the data in the browser. It is not a relational database and stores values in the form of key-pair. There are different methods used for performing different actions for a database like add(), get(), remove(). ...

How to remove parent(or default) javascripts and css in WordPress child theme?

Hello readers, today I will guide you about How to remove parent(or default) JavaScript and css in wordpress child theme. There are 2 ways to add css and js in your wordpress project. header.php functions.php The below code defines ...

CTE in SQL

CTE Common Type Expression For providing pivoting in tables say you want to view your data in such a form such that rows comes in form of columns and columns in form of rows. For doing that SQL provide facility to use CTE in SQL Ex : Suppo...

How to run an application in background in appium ?

On some action there might a possibility that the application may take some extra time to execute. So, we may execute that application in the background. Appium provides a method through which we can run any application in background. runAppInBa...

How to check indexes for a database or table in mysql ?

There are chances that you want to check for the indexes that you created on the tables in past because there can be a large number of indexes on numerous of tables depending on the size of the database If you want to see the indexes for a par...

How to remove parent metabox in wordpress child theme

Hello Everyone, today I guide you to remove parent metabox in WordPress child theme. You can use remove_meta_box() function for removing parent theme metabox in WordPress child theme. Put the below code into your child theme functions.php...

Multiplication of integer values using shift operator (Binary multiplication)

There is an interesting way to multiply two positive integer values without using " * " operator and using binary shift operator. The complexity of the program will depends on the number of bits in the binary representation of the multiplier val...

How to read data from CSV file

In PHP it is very easy to read data from CSV file using fgetcsv(), which is used to read data from a CSV file. This function reads each line of a CSV file and assign values into an array. The function returns the array of CSV fields. It returns F...

How to validate an ORS in MDM Hub?

Below are the steps to validate an ORS: Step 1: Launch the jnlp file. Step 2: Enter you credential, select the ORS. Step 3: Under Workbench, select Repository Manager. Step 4: Connect to Master Database. Step 5: Select the repository to va...

How to change the background color on a input checkbox with css

Pseudo elements are useful for changing the background colour of the checkbox and radio buttons. We can use :before and :after to change the colour or appearance of the checkboxes. It can all work with css styling. Example: <div class="c...

How to print a List is Java?

There are different ways to print a List, below are some example to print a list using: 1. For loop 2. While loop, and 3. Iterator import java.util.Arrays; import java.util.Iterator; import java.util.List; public class printmyList { ...

What is diffrence between echo and print in PHP ?

Hello all, Welcome to FindNerd, today we are going to discuss the difference between echo and print statement in PHP ? echo and print both are used to printing a statement. So here are few important point given below to differentiate bet...
1 170 292