In The below example I have created a recyclerview app, in this app I have used CardView. First I have added I have added first RecyclerView , CardView and design support library in build.gradle file .Now I have created RecyclerView a...
Hello All, In this blog i am going to show you how you can add search option in Drop down box.it is very helpful when u have large amount of list in drop down box.
INDEX.PHP
This file contain list of states
<html>
<head&g...
Modules are similar to classes basically every class object is ancestrally a module object.When you create a class you can create instance of that class through which you can execute class's method but this is not possible in modules as it do...
Hi friends ! I am writing this blog to guide you about pagination. Examples are written for MySQL and Hibernate framework to bring the data. This is not a limitation and you can use your own database and framework if you wish. The concept is almo...
Hello Reader's ! In this blog you will learn how to create store functions using CREATE FUNCTION statement in Mysql.
In Mysql we can create user user defined functions that returns a valid value. To process and manipulate data Mysql Stored...
Hello Friends,
If you are facing the issue "Fatal error: Call to a member function get() on a non-object...." in Codelgniter. Please make the below changes to solve this issue.
Please open "codelgniter/application/config/auto...
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...
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.
...
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...
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...
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...
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...
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...
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...
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...
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...
Hi
kindly help me to fix my issue.
i am using expandable listview to display data from SQLite Database.
in my database title,contents and favorite columns and some other columns. how I can display data to expandable listview
kin...
I am looking for a good approach to this problem.
I wish to build a PHP/MySQL app that maintains configurations in MySQL. Specifically, there will be projects that each contain a different web screen that includes a backgr...
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...
Hi Guys,
I am using twitter, Facebook, LinkedIn and Google+ for a while but new to Reddit- Front page of the internet. My profile link is Reddit Profile
Some how I am able to increase my Link Karma but my comment is Negative now.
Any one ...
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(...
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...
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...
HI
Can someone please take a look at my update password file?
It won't report any errors and won't make change on database. The file connects with database but falls over somewhere.
Thanks
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...
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...
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 ...
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...
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...
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...
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...
$(“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>
<...
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...
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( ...
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 ...
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,
...
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...
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...
I found it in the net and I want to know the explanation of it's algorithm. I'm having a hard time to understand this. thank you so much :)
import java.util.Scanner;
class BinarySearch
{
public static void main(String args[])
{
...
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...
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...
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 ...
Dear Members,
Is it possible for two apps to simultaneously access microphone under iPhone. We want to develop a Skype recorder for iPhone but need to determine the possibility.
In Android we were getting problem in shared ac...
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: 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...
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
...
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 ...
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...
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...
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...