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...
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 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 ...
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...
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...
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 ...
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...
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...
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...
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...
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....
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 (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...
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...
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 ...
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...
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', ...
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...
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
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...
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...
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 ...
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 :
...
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 ...
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...
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...
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...
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...
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.
...
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...
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...
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...
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...
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...
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...
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...
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().
...
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 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...
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...
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...
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...
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...
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...
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...
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...
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 {
...
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...