
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
How to Import CSV File Data into Mysql
Hi,
In my previous post I have explained about How to Export MySQL table data to CSV File using PHP.
Now in this tutorial I am going to explain how to import CSV data file into mysql. Suppose that we have a CSV file with 3-4 entry,...
How to Add SEO Meta Tags in Wordpress without Plugins
Hello Guys,
There are number of click plugins available on internet for your seo needs but most of them have many complex function for simple needs. I am not saying that there is no good SEO plugins in the market but they are few like All ...
How to convert Javascript object into array
Let's see the example below:-
We have a numb as JS object
var numb = {
1: [22, 33, 44],
2: [11, 99, 66]
};
var DefineArray = $.map(numb, function(value, index) {
return [value];
});
console.log(DefineArray);
Ou...
date picker in place of keyboard in UITextField
The date picker is used to pick date for textfield. It is placed in textFieldDidBeginEditing (a delegate method of UITextField), so that the keyboard is replaced with date picker as soon as you enter into textfield. updateTextField will set the ...
Sort alphanumeric string with awareness of number using Java comparator
The java by default sorting is based on either number or string. If we try to sort a alphaneumeric it will be treated as an string so the sorting will come something like:
1abc
11abc
2abc
instead of
1abc
2abc
11abc
So in such cases w...
How to load header and footer using Javascript
Hello Reader's. If you have developed the header and footer of the website separatly then it's very easy to make them render on a webpage. By using the JS you can call them with a single line of code as written below:-
<html>
<head&g...
How to make RatingBar in android ?
Here I have created RatingBar function in android. In android RatingBar can be used to get the rating from the user, it is also used for creating RatingBar. Below code example will described you how to make RatingBar function in Android.
Step(...
How to detect the arrow key on press using Javascript
Hello reader's! If you are making the website based on user press key events. Then to detect the arrow key pressed by user we can code as below:-
document.onkeydown = function(e) {
switch (e.keyCode) {
case 37:
alert...
Why Mobile Commerce Is Rising In Popularity
Smartphones and tablets are increasingly becoming the medium of entertainment, shopping, social media engagement, gaming and many more. As users can carry smartphones anywhere, they like the idea of buying an item on...
What is mean by +_ in JS
Hello Reader's
Sometimes you might have seen " var = +_" syntax in JS. So this line is as simple as assiging the variable to another, Where + is transfering the value of _ to var and _ is just the variable.
var _ = "D5200";
var newVar = +_;...
Hide Columns and Rows in Excel
Hiding columns and rows is useful to intensify the appearance of Excel Worksheet as the columns and rows which contains data which are not useful to keep displaying every time.
So if you are looking to know how to hide the columns and rows i...
How to get the POST variable using Javascript
Hello Reader's!
If you have desinged the html form in PHP and want to receive the POST variables in JS then there is a method below:-
var PostVar = <?php echo $_POST['name'] ?>;
Like the way above the var PostVar will get the val...
How to get the variable by it's name using Javascript
Hello Reader's, Suppose you having a variable and you want to find it by it's name, See the example below:-
var MyVar = '12';
alert(window['MyVar']);
Output:-
12
No if you have variable like this way
var MyVar = {IND:'value12...
How to detect if web page is refreshed using Javascript
Hello Reader's! if you need to detect whether the webpage is being refreshed by using Javascript you can do this like the example below:-
function CheckRefresh() {
if(document.cookie.indexOf('mycookie')==-1) {
// cookie doesn't exist, ...
how to convert string into date format using Javascript
If you have a sting in the format of dd-mm-yyyy and you need to convert it into date format then you can see the operation below:-
var date1 = "07-11-2015";
var numbers = date1.match(/\d+/g);
var date = new Date(numbers[2], numbers[0]-1, n...
To create database and insert data in SQLite, in android
If you are looking for the code in android to create database and insert data in SQLite then follow the steps mentioned below:-
1) Create a layout in which the data will be filled that will be inserted into database.
activity_signup_form....
How to make CheckBox in android ?
Here I have created Checkbox function in android. In android CheckBox is a type of two state button either checked or unchecked. We can use checkbox to activate/deactivate the specific action. In the below code example, I have described how to ma...
How to make custom HTML 5 email validation
Hello Reader!
If you have been working with HTML 5 validation then on incorrect email address web broser will show the default error message "please enter a valid email address".
Now you can make it custom and write your own message. Lets see t...
How to sort alphanumeric string in JSONArray
Hello Guys
Here, I write blog for sort JSONArray using alphanumeric string.
Create JSONArray below :
JSONObject jsonObjupdate = JSONFactoryUtil.createJSONObject();
JSONArray jsonArrayupdate=JSONFactoryUtil.createJSO...
How to get month name from given date using Javascript
Hello Reader's! On a date given like (03/25/2014) if you want to get the month name from it then by using JS you can do this as follow:-
var objDate = new Date("12/12/2009"),
locale = "en-us",
month = objDate.toLocaleString(locale, { mo...
How to block enter button for submitting the form using Javascript
Hello Reader! If you want your html form that block the pressing action of enter button and accept only submit button then you can see how its working in the example below :-
$("FormSubmit").bind("keypress", function (e) {
if (e.keyCode =...
SQL Views
A view is a virtual table which is stored in database with an associated name .Using views query we can select specific data from a large table . Suppose there is large database of any college , so i want to view the records of any one branch fro...
SQL Between Operator
This operator is used to get the data from a combination of " greater than equal " and " less than equal " condition .
Syntax :
select column_name1.......column_nameN from table_name where column_name between value1 and value2 ;
Example ...
How to show the create table statement of a table in MySQL
To display the create table statement of a table in MySQL you need to execute the following command:
use dbname;
show create table tablename;
But to view this statement you must have the privilege to access the table.
End Editing From Textfield ,Textview by just clicking outside textfield or textview
Hi All,
If you want to hide keyboard by touching outside of UITextfield or UITextViiew, just copy this function in your viewcontroller.
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
[self.view endEdi...
How to pass value from one Activity to Another through Bundle Intent?
1)Suppose need to pass value from MainActivity to SubActivity.We will first make xml of both Activity:
activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android....
SQL Wildcards
This wildcards is used when we want to match a string pattern . And this can be do with the help of wildcards only .
In SQL there are two types of wildcards :
% : Percentage sign which represent 0 , 1 or more characters .
_ : Underscore whi...
How to get Package information programmatically in Android
In some cases we have to get global information about application environment programmatically. We will get package name, version name, version code, application info and last updated time using the PackageInfo class which contains all of the inf...
How to get the max value from given multidimensional array using PHP?
Hello Reader! If you having an multidiamensnal array and you want to get the max value from a single element key then you see the example below:-
[0] => stdClass Object
(
[id] => TRF1254
[cust] => CUST9897
...
How to Export MySQL table data to CSV File using PHP
In this blog I am going toexplain how to export mysql data to CSV file using php. CSV stand for comma separated values. Using the below code you can easily download CSV file and use anywhere.
<?php
function exportMysqlToCsv($table,$...
How to Authenticate user in PHP using PDO
Hi friends,
If you are using PDO in php , Now you can Authenticate user using simple code.
include 'conn.php';
try
{
$username = $_POST['user'];
$password = $_POST['pass'];
$smt=$conn->prepare("SELECT * FROM signup WHER...
How to detect UTF encoding using PHP
Hello Readers! if you want to find out the type of file encoding using php then the code below will help you:-
//check string strict for encoding out of list of supported encodings
$enc = mb_detect_encoding($str, mb_list_encodings(), tr...
7 Main Differences Between Web Apps and Native Apps
With more and more people now preferring to use smartphones over PCs, it often becomes a conundrum for businesses to choose between web apps and native apps to provide users a pleasing experience they always expe...
Clear Facebook Sharer Cache
Hello friend,
Whenever we share a any URL on our Facebook, Web crawlers will surely visit this website to get some specific information about the linked page (the page link which we have shared on FB wall), for example title, text and image.
...
How to change backgraund color View on select radio button in android?
Here I have created change backgraund color View app. when we select any radio button then it will change the backgraund color. In the below example i have use four radio button on diffrent colour id. You can use the below code to change backgrau...
Latest Social Media Facts & Statistics
[zipedit]Social media is the collection of many online websites & applications that allows people to share their ideas, career interest, pictures/videos and to create, exchange or share information in their social communities & networks. ...
How to get color of image for the background using PHP
Hello Readers! If you are developing the dynamic website in which the image color will be the background color then you can see it doing in PHP :-
<?php
$filename = $_GET['filename'];
$image = imagecreatefromjpeg($filenam...
How to make Popup function in android?
Here I have created Popup function , Popup function can be used to display menu item list, anchor text and listitem etc. In the below example when we clicked on menu button the popup will be open and if we click outside the popup it will disappea...
How to Find Facebook Profile ID Number
Hello Guys,
Facebook has provided us facility to custom profile URL but some time we need some Facebook ID number for any reason.
So, Below are the step by step procedure /screenshots to get your fb profile ID number:
Step 1:
Open the Pro...
How to display Full day of the week along with date month and year in windows 7?
It's very well said, sometimes easy thing are more strenuous to apply, this one is the same, ones I am trying to show the date format of on my system same like below screenshot-
on goggling I found the below tutorial... Easy and hel...
How to get Exact path of a photo saved in Mobile Gallery?
1)Suppose we have a Button and a TextView in XML:
activity_main.xml
<Button
android:id="@+id/btnGet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="GET IMAGES" />
<TextVi...
How to make text url to hyperlink using PHP
Hello Reader!, On printing the url in plain text, they do not appears as hyper linked but using PHP you can perform this.
Let's see the example below that takes a plan url as input and return the hyperlinked url:-
<?
function createHyper...
get Added accounts email from device Android
Blow code get list of Emails account from AccountManager.
AccountManager manager = (AccountManager) mActivity.getSystemService(mActivity.ACCOUNT_SERVICE);
Account[] list = manager.getAccounts();
if (list.length &g...
Difference in using session_unset() and session_destroy() in PHP
For just the functioning part both the syntax will work the same but by writing session_unset will clears the $_SESSION variable but will not destroy the variables and it will initialize to this stage:-
$_SESSION = array();
session_destro...
How to make a JSON call using jQuery?
To make JSON call we use getJSON method. Here is the syntax and description of it.
Syntax :
$.getJSON( url, [data], [callback] )
Description
1. url : It is URL where the request is send and which emits out JSON.
2. data : this ...
To call and send parameters to java Script function from Objective C
To call javascript function write the following lines :
NSString *getStringvalue=[webView stringByEvaluatingJavaScriptFromString:@"getName()];
Where getName() is a JavaScript function which return a String value.
and to send Objective C...
Social Media and SEO an Effective Business Solutions
As In my previous post I have already described How much SMO (Social media optimization) and marketing is important along with SEO, I just came across with this wonderful article describing how social media and search engine optimization can prod...
How to validate a given URL using PHP
Hello reader! If you have a to check the url is correct or not (not giving the status 404), Then you can get all the details of any url by using 'get_headers' in print_r.
Let's see the example below:-0
<?php
stream_context_set_default(
...
Date Picker Dialog and Time Picker Dialog in Android
Android provides Date and Time Picker dialog, user can select appropriate date and time as per his need.
With DatePickerDialog we can select date, month and year using Calendar class. setMaxDate(long maxDate) and setMinDate(long minDate) meth...
How to remove all special characters from a string using PHP
Hello Reader! If you want to remove all of the special charracter from a given string then PHP offers you to use 'preg_replace';
Lets see the example below:-
$GivenString = 'a2|"dM!@PO^&$f 12~';
$NewString = preg_replace('/[^A-Za-...