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 ...
hello, how do i find location on map by entering user id number in a text box on a web page and pull information from mysql database with corresponding coordinates in the table and is instantly displayed on a map on that page.
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:
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(
...
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...
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 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...
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...
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...
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...
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_...
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()
...
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...
Hello Friends,
If you are using multiple forms in symfony2 web page and getting issue to fetch data from multiple form. Please review the code below and make the adjustment accordingly. In the below example I am using two forms 1) $Kickedform ...
For creating Stages using CSOM, we have to use StageCreationInformation.
1. First of all, assign basic information to Stage.
Microsoft.ProjectServer.Client.StageCreationInformation stageInfo = new Microsoft.ProjectServer.Client.StageCrea...
In OpenERP, Tuple represents recursive relationship of type and the tuple models is a browsable model which start loading relationships type from and use it param ttypes which is a list of relationship types and follow 'one2many' and '...
A new res.users for email address is created for wizard_data. If users already exist then a new res.users will be ignored. New res.users also have a value for the password field, so that they can receive it by email and Returns the ids of the cre...
Hello Friends,
If you are looking to implement paging in Symfony2, please review the code below and adjust your code accordingly.
$data = $this->get('app_cam_taxsetting.taxsetting_repository.taxsetting')->getUserList();
// app_ca...
java.util.Scanner Class:
It is used to read input from keyboard. It breaks the input provided into tokens using a delimeter (Whitespace). It extends Object class and implements Iterator & Closeable interface. To use Scanner class we ...
To Create a alertView with textField in Xcode 7.2 we can Use the the code below to handle the Yes and no action.
and also get the text of the textField. You can show this on a viewController.
UIAlertController * alert= [UIAler...
Each project has its own documents in SharePoint.
For creating the Project documents, first of all we have to create context by passing the projectSiteUrl.
1. Create context of projectSiteUrl
using Microsoft.SharePoint.Client;
context =...
Hello Friends,
If you are looking to fetch request variable submitted through GET method in Symfony2. Suppose your URL :: http://www.abc.com/taxsetting/list?q=xyx
You are looking to fetch q value in your controller, please review code below...
SESSION-
A session contains user information on server side. When a user opens a page, then the information is first transferred to the server, then php will match that information to the server-side cookie.
If the browser is closed once, a...
Image cropping in Android, there is a support in some devices by default for cropping image but its not reliable, so here is some code to get rid of this problem.
Step 1. Declare crop activity in your manifest like this :-
<activity an...
Java Reflection
The run time behaviour of a class can be examined and modified at run time,this process is called java reflection. To examine and change the run time behaviour of a class java.lang.Class is used which provides many m...
javap tool
javap is a command which when used with a classname, disassembles that class file. This command displays fields,methods and constructors information which are present in the class file with which javap command is us...
Add to Cart Functionality using Ajax in MAGENTO : Hello Readers, In order to add Ajax add to cart feature in your product view page, first you should need to know how add to cart button is working. In magento add to cart button is a simple form s...
Hello,
I am making an online shopping app. I am storing user details in sqlite database( Name and Password). So at the the time of login i want to check weather username and password is correct or not. So in that case how to manage session.Bec...
There are three useful services provided by AngularJS for view rendering and evaluating expression which it uses internally.
$interpolate :- This service simply takes a string and is used to evaluate expressions. We can run the entire string...
Hello Friends,
If you are looking to fetch form posted values in symfony2. Please follow the below code and make adjustment accordingly:
Open your controller function where you would like to fetch the values::
$VendorForm->handleReq...
Hello Guys,
If you are looking to create form in symfony2 the below code might help you:
1) Open your controller file and function where you would like to define form and add below code with require modification:
//Define in Controller...
After creating a ViewPager (as I also described here ViewPager) we need to catch the changing of slides event.
To do this we have a listener OnPageChangeListener i.e, ViewPager.OnPageChangeListener that invokes whenever we chance the page or i...
Its usage: To break the barrier of apk size to upload on Play Store
Libraries needs to be installed: Google Play Licensing Library package
Google Play APK Expansio...
The toString() method can be used to convert an array into a string. It returs a result containing string and it will seperate the different elements in the array with commas.
var group = ['one','two','three','four'];
var conv = group.toS...
Phonegap is an open source framework that provides us to build mobile applications. It uses some web APIs for the different platforms like android, ios, windows, blackberry. We can add the specific platform in which we want to run the mobile appl...
Inheritance is one of the most important concept of OOP. In inheritance one class works as a base class for one more than one class. In this derived class inherits all the properties and methods of base class.
Inheritance makes our work easier...
Hello Friends,
If you are looking to implement routing in symfony2, like I have created a new controller like "listAction" in my controller file and now want to run this on browser. My controller file look like
<?php
nam...
In the below example I have created Overshoot animation function. Here I have added Button and ImageView in actvity_main.xml layout then I have created new directory (anim). In anim directory I have created overshoot.xml layout and In MainA...
In OpenERP first you have to create the product and price of the product and then relate both price and product to the event form and return the value of the product and validate it to database like as in param self and param cr. Param self ...
In OpenERP, first we create registration in event form and then pass the param ids like as list of event registration's IDs and also mapp to the standard dictionary for contextual values than we create email for users and validate to the even...
In the below example I have created linear animation function. Here I have added Button and ImageView in actvity_main.xml layout then I have created new directory (anim). In anim directory I have created linear.xml layout and In MainActivity I ha...
Hi Guys!!
As a graphic designer i know that while working on a project in Illustrator, sometime you definitely want to use the same colors which you are already using but in different tones (as per requirements ) for different objects or illus...
In the below example I have created a ListView in ListView I have added title, subtitle and image. Here first I have added ListView in activity_main.xml layout, then I have created new list_item.xml layout here I have created Relative...
Hello Friends,
If you are looking to create a new module in Symfony2 and want to integrate this with new bundle. Please follow the below steps:
1) Create your bundle folder under your_project_name/src/App/your_bundle_name
like ...
Hello all, I am unable to access my SQL database as I forgot the login details. I have tried with some but getting error "ORA -12560: TNS : protocol adapter error."
Kindly suggest me the way to retrieve the details. Is there any comm...
Hellow Reader's !, Before going to Discuss about __Call Function in PHP u should know about Magic Function in PHP. If you have ever looked at the source code of open source PHP projects, you might have noticed object methods that begin with a...
Before we create magento custom module, let’s have a look on code directory structure of magento where we create custom module. Here is only code folder structure.
- app (contains code pools, design, configuration, localization and Mage....
Completing things and excelling in your association is about utilizing the resources you have available to you to influence partners and influence outcomes. With the right mindset and abilities the task of influencing gets to be easy, with the wr...
Rush to judge but slow to act. Might that be an awesome logic for effective businesses? Ask yourself, does something should be changed? Rush to judge that changes should be made. On the other hand, be slow to act until you get adequate informatio...
Leadership. The word itself automatically evokes pictures of gallant/heroic figures, solid and capable, and a large portion of us don't see ourselves fitting all the necessary qualities. What does it truly mean to be a leader?
Have you...