
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
Customize seekbar in android
If you want to customize seekbar in Android then follow the steps mentioned below:-
1) To customize seekbar background create a new xml file in your project's drawable folder .
seekbar_background.xml
<?xml version="1.0" encoding="utf-...
Call a procedure with in procedure in SQL server
Call a procedure with in procedure in SQL server :-
While working in sql Some times you need to Calling one stored procedure within another stored procedure. So you can implement this using below sample code:---
//Store Procedure 1
CREATE...
How to show and hide a pop-up div on a button click using jquery?
Showing a pop-up div on a button click is a very simple task. Below is the code for showing and closing(hiding) a div and use it like a popup using jquery.
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8...
How to make Toast with AlertDialog in android?
Here I have created Toast with alertDialog code function, according to below code both function runs in same time and display same time when we clicked listview item. In the below code I have explain how to make toast with AlertDialog function in...
Use of '@' in PHP
Hello Reader!, You might have seen people using the '@' in the PHP coding. The operator '@' is used when you don't want to show the error messages even if they occur.
By using '@' the errors will be hidden.
Let's see the two syntax below:-
...
How to reindex array in php?
Hello Readers!, If you have an array whose key index are missing then you could use the 'array_values' function to easily reindex the array.
Let's see the example below:-
<?php
$array = array( 0 => 'string1', 2 => 'string2',...
How to find OS version from web browsers using PHP
Hello Reader! If you want to detect the OS version of user though the web browser.
Then you can use the library code below:-
<?php
$OSList = array
(
// Match user agent string with operating systems
'Windows 3.11' => 'Win16',
'Wi...
SQL Like Operator
This operator is used when we want specific pattern from a column in a table .
% : This is called wildcards , it is used before and after the pattern .
Syntax :
select column_name1 .......column_nameN from table_name where column_name like p...
Javascript events in HTML
HTML events happen to HTML codes. When we add Javascript in HTML pages, Javascript then react to those HTML pages.HTML event does by the browser or a user.
Some common HTML events are -->>
Here is a list of some common HTML events:
1...
default keword in javascript
defautl keyword is used in two situations
1)switch statement.
2)export statement.
1) example of switch statement
switch (expr) {
case "Oranges":
console.log("Oranges are my 1st choice.");
break;
case "Apples":
console...
JQuery Chaining
For running multiple jQuery methods within a single statement,we make use of chaining.
here is the example:
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"...
Load custom cell(Xib) in UITableView in swift
hello friends,
if you would like to Load custom cell(Xib) in UITableView in swift ,you may use the following code ->
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return array.count; //...
test if an NSString is empty in Objective C
You can check if( [empName length]==0 || [[empName stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]==0) this will return 1 else 0
NSString *empName;
if ([empName length]==0 || [[empName stringByTrimmingCharac...
SQL And & Or Operator
These operators are used where we want to get records based on more than one condition .
And : From this operator we can get data if both the condition ( i.e first and second condition ) are true .
Or : From this operator we can get data if eit...
Adding Elements in JQuery
For adding new HTML elements, following methods are used:
1)append().
2)prepend().
1)append
This method is used to insert content at the end of the selected elements.
<!DOCTYPE html>
<html>
<head>
<script src=...
How to protect Joomla Administrator directory using htpasswd utility
.htpasswd file is just a simple text file which contains user name and encrypted password. It is Apache based login which protects and secure the specific directory on website and provide more security with the help of user name and password. ...
How to convert .ppk file into .pem file
If you would like to convert .ppk file into .pem file, the process are given below:
1) Open terminal and make your login
2) sudo apt-get install putty-tools
3) puttygen /var/www/html/abc.ppk -O private-openssh -o /var/www/html/abc.pem
4) c...
Convert local time to UTC format
Hello Guys,
Today we will learn how to convert the local time period into UTC format :
We will create a function with offset and time as parameter.Below is the code:
function
convertToUTC($DateTimeZone,$offset){
$DateTimeZone='201...
What is the require permission for ppk and pem files
If you are going to connect server via linux terminal or putty and you are getting error, "Permissions are too open" this mean your .ppk file have some wrong permission. You need to correct the file permission as below:
chmod 400 abcxyz.pem
Android Expandable ListView
Expandable listview is used to categorise data in some specific type. Expandable list can have a two level scrolling list. Using ChildDivider feature we divide list items with drawables or colors, and ChildIndicator & GroupIndicator is for st...
NSAppTransportSecurity to run API in iOS 9
Hello all ,
To run any API in ios 9 ,a key should be added in info.plist in supporting files folder in any project.
First select info.plist and open as source code and add this code starting of ...
<key>NSAppTransportSecurity</...
How to Search in a List using Search Button in ToolBar?
1)In your XML,make a ListView:
<ListView
android:id="@+id/mylist"
android:layout_width="match_parent"
android:layout_height="match_parent"></ListView>
2)Go to menu.xml and add a Search Button:
<item an...
Integrate jQuery fullcalendar in cakephp
This tutorial will help user learn how to integrate the jQuery fullcalendar in our web application blogs etc.Below are the steps to integrate the fullcalendar:
Step 1:Write an action in an Eventcontroller let us say, event_calendar
path...
overloading and overridding in php
Hello Readers
overloading and overridding in php
In php overloading define functions have similar signatures but thy have different parameters.
Overriding means one class may have override the another methods where the parent class defin...
How to make Toast in android ?
Here I have created Toast function in android. Toast function can be used to display information or message for the very short period of time. In the below code I have explain how to make Toast function.
lvList.setOnItemClickListener(new Adap...
What is WHM(Web Hosting Manager)
It is a web-based tool that is used by the server administrators to manage hosting accounts on a web server. Ports 2086 and 2087 are used for WHM.Some of the tasks that a Server administrator performs on WHM are as bellow:
1- It is accessible...
Using MySQL with node.js
Hello Everyone , In this blog we will discuss about how to use MYSQL in node.js.
node-mysql is one of the best modules which can be used for working with MySQL database.
To install the MySQL in node.js driver you have to follow up with the be...
SQL Min ( ) Function
This function is used to get the minimum value from the selected field .
Syntax :
select min ( column_name ) from table_name ;
Example :
Table name : Employee_Info
Id Employee_name Employee_Age Employe...
SQL Max ( ) Function
This function is used to get the maximum value from the selected field .
Syntax :
select max ( column_name ) from table_name ;
Example :
Table name : Employee_Info
Id Employee_name Employee_Age Employe...
How "this" keyword works in Javascript
The code example of this keyword in Javascript
var fullname = 'David';
var obj = {
fullname: 'john mars',
prop: {
fullname: 'Brett',
getFullname: function() {
return this.fullname;
...
How to apply Big View Style in notification in android
If you are looking to apply the big view style to a notification, here is the solution you are looking for:-
Uri notificationsound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
String notificationText;
NotificationMana...
7 important plugins to use before starting a wordpress site
If you are going to start a website a blog or website in wordpress must install these plugins .
1-Akismet This plugin comes inbuilt in wordpress. This plugin removes and secure your wordpress sites from spams comments.
2- BackUpWordP...
SQL LCASE ( ) Function
This function is used to convert , value of column in lowercase . If value of column already in a lowercase then it doesn't covert . It convert only if value of filed is in uppercase .
Syntax :
select lcase ( column_name ) from table_name ;
...
SQL UCASE ( ) Function
This function is used to convert value of column in uppercase . If value of column already in a uppercase then it doesn't covert . It convert only if value of filed is in lowercase .
Syntax :
select ucase ( column_name ) from table_name ;
...
Different Types Of Cloud
Clouds Types:-
There are mainly four distinct types of cloud schema. We can accede any one schema as per the requirement of the business. These are mentioned as below:-
1- Private Cloud
2- Public Cloud
3- Community Cloud
4- Hybrid Cloud
...
How to insert if not exists in Mysql
If you want to enter a new records that is not exits then you can use Mysql two methods
Method 1 'REPLACE' :-
REPLACE INTO `users`
SET `userid` = 65,
`username` = 'abc',
`useremail` = 'abc@gmail.com';
In this case if record exists...
Add items to RecyclerView at runtime
To add data to RecyclerView at runtime follow the steps mentioned below:-
1) Start a new project and add support library dependency <compile 'com.android.support:recyclerview-v7'>.
2) Declare layout for your activity(MainActiv...
How to replace only Year of a DateTime variable
How to replace Year of a DateTime variable with the Year of another DateTime variable in C#
While working in a project, I got stuck in the following issue :-
I have to compare the year of OldDateTime variable with NewDateTime variable. But ...
How to use iframe to open a website in it
You can use a perticlualr custom window on your website to open another website, Iframe gives you this feature to do. You can see the example below :-
<iframe id="if1" width="100%" height="254" style="visibility:visible" src="http://www.fin...
UnderLined TextField/UIView (to prevent unnecessary constraints..)
In your xcode project first create a UItextfield type of cocoa touch class in case of underlined view create a uiview type of class as UnderlinedTextField or watever name suits you.
In UnderlinedTextField.h file of your class create a property...
SQL Mid ( ) Function
This function is used to get the character from a text field .
Syntax In MySQL :
select mid ( column_name , start [ starting_length , ending_length ] ) from table_name ;
Starting length : It is mandatory .
Ending length : It is optional...
How to Change Language in Android Application Programmatically?
Sometimes We need to give options to the user to change language of application, regardless of the locale device. In this blog we are providing opportunity to the user to change language programmatically by press the button individually. Here are...
Why We Need Cloud Computing?
Why We Need Cloud Computing?
As we know nowadays there are very users which are using computers and mobiles, data repository is the main preference in all areas or domains. All the organizations, either big or small increased on their data or in...
How to get Latitude and Longitude On a button click using GPS?
1)Firstly in your XML,Make a Button and TextView :
<Button
android:id="@+id/btnMyLocation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/mylocation"/>
<TextView
...
Java Development Environment Installation
Java Is a platform Independent Language, but the JDK Java Development Kit is used to developed wide range of applications. Java Development Kit includes some other like JRE and JVM for the complete development.
JRE Java Runtime Environment as a...
Front-end Development With AngularJS
Front-end development is basically a mix of HTML, CSS and Javascript used to create websites or web apps that allow users to have direct interaction. Users grasp more information when they do not face hassles of slow pages and poor interfaces. Th...
Finding mouse cordinate by JQuery
By using jquery event.pageX and event.pageY we find the coordinate of mouse. The PageX event shows the edges from left and the PageY event shows the edges from top.
<!doctype html>
<html lang="en">
<head>
<meta cha...
How to make AlertDialog in android ?
Here I have created AlertDialog function in android. We can use alertdialog for choice to continue or discontinue. AlertDialog can be used to display the dialog message with OK and Cancel buttons. Android AlertDialog is the subclass of Dialog cla...
jQuery Selectors
jQuery selectors gives you the facility to select and manipulate HTML elements according to your needs and requirements.
The element Selector
Based on the element name,The jQuery selector element selects elements.
Example
<!DOCTY...
SQL Len ( ) Function
SQL Length ( ) function is used to get the length of the string .
In MySQL : Length ( ) ;
In Oracle : Length ( ) ;
In SQL : Len ( ) ;
Syntax :
select len ( column_name ) from table_name ;
Example :
Table name : Employee_Info
...