
Search In
Hi all,
I had a requirement to move a project from core php to cakePHP framework. Migrating code was clear as I had to just modify syntax of code-base. But the problem came, when I had to implement login authentication with username and password usi
Here is a way by which you can send the email via android-intent.
The below code opens a dialog showing email related apps e.g. Gmail, Yahoo Mail etc. if installed in your device. In case your device is not installed with mailing applications then i
Well, in Java technology an int is a primitive type while an Integer is an Object or wrapper class. Meaning, if you made a new Integer:
Integer integerObj = new Integer(6);
You could call some method on integerObj:
String str = integerObj.toStrin
Hi All,
Recently I needed to update, delete and select using RAW query in Laravel 5.0. When I searched the internet the only query I was able to find out is the select query but I need to accomplish both update and delete also.So after little more R
#include<stdio.h>
int maxDiff(int a[], int size)
{
int max_diff = a[1] - a[0];
int i, j;
for(i = 0; i < size; i++)
{
for(j = i+1; j < size; j++)
{
if(a[j] - a[i] > max_diff)
max_diff =
Recursion is the process which repeat itself until some condition is reached otherwise it gets repeated again and again.
In programming languages, if a program allows to call a function inside the same function, then it is called a recursive
If we want to calculate the distance from the array which contains the coordinates i.e Latitude and Longitude then use the following code-
-(void) getDistanceFromArray {
CLLocationDistance totalKilometers = 0;
for (int i = 0; i < (self.arra
I have an app and inside it only one activity (main activity) and layout XML of main activity have only
list view . This app will get restaurants near from my location and display it in list view.
What I need to do is add button to the main act
I am having a problem when I try to push value into a foreign key in MySQL table I don't know if it's correct but I have used the GET method to pass the primary key through a link but it didn't work so how can I use the right way to
I have a situation where I want to run an endless loop and I have to get data from there. For this, I have to make a Http call and then put the http response in a database, In each iteration, I have to wait for some second.
To solve this probl
