
Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
Catching while showing images using ParseFile through parse.com
The problem that I encountered when showing images in ListView from Parse.com is catching because we get ParseFile from cloud.
So I first change ParseFile to byte[] and then use Glide library that allow byte[] also to load image.
Gl...
Credibility/Validity
There have been numerous studies on credibility in life and especially in administration/management. It appeared like an interesting subject to read and think about. I am not going into a tremendous criticism simply making a few observations.
...
How to add floating action button with RecyclerView xml layout
In the below xml layout first I have created Framelayout then I have added RecyclerView and FloatingActionButton within Framelayout. You can see below program it will clearly describe you to add floating action button with RecyclerView xml layout...
How to set default Controller in Codelgniter
Hello Friends,
If you are looking to set any controller as a default controller in your project like when open any website generally Index controller call automatically. For example you want to run "Project Controller" instead of &qu...
Customize one2many relational field in Odoo
If you want to customize one2many relational filed in Odoo. Then you have to go in .py file of that module then go to .xml file. For example see below code.
In xml you would have wrote code like this :
<field name="test" widg...
Count down timer that shows in HH:MM:SS format
If we need to show countdown till in some point of time in future then CountDown timer is the best solution
CountDown Timer sets countdown till in some point of time in the future, with regular interval.
CountDownTimer is the class that han...
Create multiple work-flows in a single module in Odoo.
If you want to create multiple work-flows in single module in Odoo for that you have to follow below code-
<!-- Activity -->
<record id="act_draft" model="workflow.activity">
<field name="wkf_id" ref="De...
Error loading class 'org.apache.solr.handler.dataimport.DataImportHandler'
After starting solr if you get the following error, that means you need to make some changes in solrconfig.xml(of the core in which error occurred).
Open the xml and correct the path for solr-dataimporthandler-.*\.jar as
<l...
How to Upload multiple images jQuery Ajax using PHP
Hello Reader's!Sometime you need to Upload multiple image in directory ,so in this blog I have wrote and explain jquery and PHP to upload multiple images at once. You can use this as a reference for your web projects, specially focused on new...
How to convert SOAP response to PHP Array?
Converting SOAP response to Array in php.
Dealing with a SOAP client response for a flight booking application or any other, This is how we get response from SOAP below:
<S:Envelope
xmlns:S="http://schemas.xmlsoap.org/so...
Important Factors, Required to Remember for Promotional Things/Items
Are you searching for the best marketing/promoting techniques? Would you like to ensure that the buyers/consumers will always remember your organization? Then, the promotional items can be the best option/choice. They are too successful in creati...
java.util.Random Class
java.util.Random Class:
java.util.Random class is used to generate random numbers. As we know random numbers are very useful especially in game development. In java we can generate random numbers in two ways either using java.lang.Math.random(...
Error: javax.servlet.jsp.PageContext cannot be resolved to a type
Running a Maven web project in eclipse was giving errors on jsp pages:
javax.servlet.jsp.PageContext cannot be resolved to a type
javax.servlet.jsp.JspException cannot be resolved to a type
The server was running fine, even the project w...
How to use ArrayAdapter class in android
In the below example, first I have created ArrayAdapter class and then extend ListActivity. In next line I have store ListItems in String then I have setListAdapter. ”ArrayAdapter class can handle a list item as input, By using this class w...
SEO Interview Question and Answers: Part 1
Hello Friends, In this tutorial I am providing you some important SEO interview question that you must prepare before you kickoff your interview.
1. What is SEO?
This is very basic question some interview might ask w...
How to create Swipeable View in android
In the below example I have created View Pager (View pager slider). Here I have added ViewPager in activity_main.xml layout, after that I have created slide_page xml layout, in that I have added a textview and in next step I have created fo...
jQuey scrollTop()
this method is used to set the position of vertical scroll bar for a particular element.
0 Position of scrollbar means it is at the Top.
In a web page, when ever we want to adjust the scrollbar according to its content, we make use of this ...
How to Share filter created by user in OpenERP?
In OpenERP first we create users and configure users access rights, then user will create a new filter, use filter group and also add a new ir.rule entry for model_id and domain on the target group_id. If restrict is True then instead of adding a...
On-page SEO Optimization Checklist
What is On-page Optimization?
On page optimization is an SEO technique that plays a very important role and have vital effect on your website listing on search result page, it refers to all steps and the factors considered within...
jQuery html() Method
The html() method is used to return the content of a particular elements and it returns the content of first matched element. It overwrites the content of matched elements.
<!DOCTYPE html>
<ht...
Infinity in Python
There can be positive infinity and negative infinity in python represented by Inf and -Inf. Positive infinity which is greatest of all numbers and negative infinity is least of all numbers.
Program to demonstrate infinity:
# Positive Infi...
What does $(div[id^='box']) in jQuery mean?
$(“div[id^='box']”)
The above expression mean selecting all div elements whose id attribute start with box like box1, box2 etc.
Program to demonstrate above expression:
<html lang="en">
<head>
<...
What is Keyword Prominence?
Prominence means the state of being important, hence Keyword Prominence refers to how prominent your keywords are within key elements of your web page, importantly how close your keyword or keyword phrase is placed to your title tag, and header t...
How to use conditions in query builder with Symfony2
Hello Friends,
If you are looking to use conditions in mysql query with query builder in Symfony2. Please review the below code and make the changes accordingly:
$qb = $this->getConn()->createQueryBuilder();
$qb->select("SUM( ...
Portlet Define Objects tag in jsp
We use Portlet Define Objects <Portlet:DefineObjects> tag in our JSP code, while developing a portlet in Liferay. We generally use this tag to inherit the predefined objects in our JSP. By doing this, we get escape to write the entire code ...
How to use mysql join in Symfony2
Hello Friends,
If your are looking to use join with query builder in Symfony2. Please review the code as below and make the changes accordingly:
$qb = $this->getConn()->createQueryBuilder();
$qb->select('ts.model_id,
...
How to use update query in Symfony2
Hello Friends,
If you are looking to use update query with query builder in Symfony2. Please review the below example and make the adjustment accordingly.
$sql = "update tbl_paymentmethod set pm_address = :address, pm_status = :status, up...
how to add access rights and group_id in object models in OpenERP
In OpenERP to add access rights and group_id in object models first we have to create users and users have many type of access rights and those access rights were provided by admin. object models reference in fields_relations intersects with acce...
How to add checkbox in products list to add to cart all checked products
In Magento e-commerce website we usually add products to cart through add to cart button, but if we are required to add many products to cart by selecting them with the checkbox. Then we can do this as,
Add checkbox input tag...
Encryption functions in PHP
If you are developing a website then you must have a login sign-up page that stores the users information in the database then it is responsibility of the person to make the database more secure i.e. the password must be secured so that nobody ca...
How to create RippleDrawable button in android
In the below example I have created Ripple Drawable clickable button. Here first I have created RelativeLayout In Relative layout I have added a Button, after then I have created two xml layout in drawable folder first is one.xml layout in ...
Keep the Screen On
There are certain situations when we need to turn screen ON such as live map games, routing, movie, tv apps.
Basically, to avoid battery draining android device fall asleep after some time, but to accomplish this task we have to keep screen ON...
Customize Magento Toolbar For List Page
Customize Magento Toolbar For List Page: Hello readers, Some times you need to show the toolbar as per client requirement ,But magento (default & rwd theme) show same tool bar at the top and bottom of listing page (List & Grid). You can C...
To Show Drop-Down Attribute Value on Product View Page
If you want to show a drop-down attribute value on product view page & product listing page in Magneto then follow below code.
Suppose, your attribute code is “color”
go to current theme/template/catalog/product/view.phtml
...
PHP Explode() Vs Split() Function
Hello Readers,
In this blog, I am going to tell a small difference between Explode & Split function in PHP. Both the function do the same thing i.e split a string into array.
But there is a minor difference that explode takes ...
How to use select query in Symfony2
Hello Friends,
If you looking to use "Select" query with query builder in Symfony2. Please review the below example and make the changes accordingly.
$qb = $this->getConn()->createQueryBuilder();
$qb->select('*')->f...
Enable remember me functionality in Magento
Hello Readers, If you are a newbie in magento, then you should know How to enable remember me functionality in Magento, since by default “Remember me” functionality is not enabled in magento.
To enable it, login to admin panel then...
How to Add Title, Subtitle and Image in RecyclerView
In the below example I have created a RecyclerView, in RecyclerView I have added three category (Image, Title and Subtitles). I have also added four diffrent item in RecyclerView. First I have added RecyclerView dependency to Grandle file. and in...
Multidex with Gradle
When our application and libraries references reaches their limits, then we get some errors that shows we reached the limit of built architecture.
Like this
trouble writing output:
Too many field references: 131000; max is 65536.
You may ...
Difference between mysql_connect() and mysql_pconnect()
Both mysql_connect() and mysql_pconnect() are used for database connection.
mysql_connect()
In mysql_connect() function opens and close the database connection, depending on the request. Every time a new connection is established, when usin...
Check Constraint
Check Constraint:
It is used to restrict the range of values that can be inserted in a column. If a column contain check constraint then only a particular range of values can be inserted in that column.
Example:
CREATE TABLE Employee(
...
Differentiate between array_combine and array_merge?
array_combine and array_merge are the array functions in PHP that are used for different functionalities both are different from each other both have different functions.
Merging the elements basically means to merge one o...
How to show the web page within your application using webview in android.
If you want to show web pages without opening browser application in your android application then make the use of webview as I have done below:-
1) to make your application access the internet use the permission"<uses-permission andro...
Generators in Python
Generators
In python reading items in a list one by one is iteration but when iteration on a list can be done once then iteration is known as generators. Generators does not allow all the iterable list values to be st...
Upload multiple images/files with multiple input type with single submit button
Create the html for multiple file upload.The form action would go to the "uploads.php" file.
<form action="upload.php" method="post" enctype="multipart/form-data">
Select Files:
<input name="blogimg[]" type...
Few Approaches For Security Testing
There are many approaches for the security testing purpose when scheduling and arranging for the security based testing. Few approaches are mentioned below:-
Security Architecture Survey
Categorize Security Testing
Security Ar...
Detecting camera hardware
If we don't specify we require camera using manifest declaration, so we can check it at runtime that the camera is available or not.
To do this task, we have PackageManager class.
PackageManager has hasSystemFeature() method to check it...
How to write insert query in Symfony2
Hello Friends,
If you are working on symfony2 and looking to implement insert query please review the below example and make the changes according:
Open your model/repository file
$sql = "insert into tbl_paymentmethod set pm_m_id =:pm_...
How to use calendar in symfony2
Hello Friends,
If you are looking to implement calendar in Symfony2 by FormBuilder(). Please use the code below and make changes accordingly.
Please open your controller function
$filterform = $this->createFormBuilder()
...
How to access repository function in Symfony2
Hello Friends,
If you want to access repository function in your controller file under Symfony2. Please review the below code.
To use repository function in Symfony2, first we need to include repository file in your controller file top abov...