Hello Readers !
Below is an example of sticky navigation with simple script which is compatible with internet explorer.
You can use this script for sticky header or sticky footer.
I hope it will be helpful for you.
Script:-
$(docume...
Hello Readers !
Here is an example of parallax scrolling with simple script and it is also compatible with internet explorer.
Parallax Scrolling :-
The parallax scrolling web design is in trend, Its shows the background moving at a slow...
Hello Readers !
Here is an example of parallax with simple script and it is also compatible with internet explorer.
Script :-
<script type="text/javascript">
$(document).ready(function() {
$(window).bind('scroll',funct...
Hello Readers !
Here is an example, how to make a div always center align using jquery. You can do this using css but this method will work with positions (absolute, fixed etc) and it is also compatible with internet explorer.
<script>...
Stored Procedures
stored procedures is the collection of Sql statements which is stored in data base .
below are the advantage of stored procedures :
1.stored procedures reducing network traffic and boost application performance. .
...
It is impossible to create error/bug free product from developer or an expert people in certain technology. There are some reason that cause major bugs in product.
1. Writing Initial Requirement Miscommunication is the major issue while writi...
When application enters in background the compiler stop working and it has to wait till application enter foreground. Use following code to compile some of your code even when application is in background
bgTask = [application beginBackground...
To create a new Facebook application, register on https://developers.facebook.com and make a new application that will generate a Facebook application id and secret key which you will use in your development.
After creating the application ope...
To create a custom spinner create a custom view with the following initialization method
- (id)initWithFrame:(CGRect)frame superViewFrame:(CGRect)superViewFrame
{
self = [super initWithFrame:frame];
if (self) {
// Initializ...
There are two ways to find current location (lat,long) of device : Using CoreLocation framework OR using Mapkit framework.
Here's how to get the location using CoreLocation framework :
1. Import CoreLocation/CoreLocation.h in h file of view...
This is very simple way to add list dynamically using jquery. In this first you have to give Id to select tag then add the script.
<html>
<select id="memoryCategories">
<option>Categories</option>
</select&...
How to show Rating Dynamically
If you want to show rating dynamically you can follow the code below. Here phone.rating contains rating and it comes dynamically.
<html>
<div class="rating-block clearfix" funboard-rating rating-va...
Sometimes, when we are working on CMS like Joomla, Drupal etc, we have such requirements for which we need to build our own component. On that component, we can add our logics for development.
Here are some basic steps to create you own Joomla...
There are some core plugins availabe in Joomla project for e.g. System, User, Search, authentication, content etc. Plugins provide a function which are associated with specific event trigger.
In one of my project, I had a requirement to add pa...
IPayy API is basically a payment gateway by which you can sell anything through your website. In brief, it just generates an OTP number which is called as One Time Password and will send number via msg to your mobile.
Here I am going to show t...
Below is a function that takes two images as parameter with their coordinates and Height Width and stitches both the images together with their respective coordinates and returns a new image.
public Bitmap StitchImages(Bitmap baseImage, int...
To remember few point in mind to make best design
Choose Best Color Theme. It would be necessary to select best color theme, because color theme is basic part of any design. We can choose eye caching color as per the industry standard.
C...
Hi all,for setting the amazon product API you will need amazon associates account and AWS account. Create the account using this link: http://aws.amazon.com/. After registration, generate `AWS_API_KEY` & `AWS_API_SECRET_KEY`.
Download the A...
If you want to make your website's default file you can do this by using Windows hosting accounts running IIS 7, hence you only have to specify your website's default file using a web.config file.
To change your website's default file, include...
Sometime you may need to prevent from text selection on double click of mouse button. You can use use the following css3 code for the same:-
.monthReport label {-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-mo...
Software Verification and Validation
Verification
Verification is the process which makes sure that the software product is developed in the right way. It is a disciplined approach to evaluate whether a software product fulfills the require...
Advantage of loadModel over uses
While using "$uses", many unrelated model gets loaded. So it's best practice to use it only when it is needed through out the controller. If you only need it randomly then loadModel(). Another way of loading a...
In one of the project, I needed to create the CSV file from the html using jQuery.
To make this possible, I created the below code to convert the html into csv file using jQuery.
<script type="text/javascript" src="jquery.min.js"><...
This tutorial show's how we can create a simple Html file through PHP script.
if($filename == ''){
$filename = 'demo.html';
$writefile = ($filename , 'w');
$content = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict...
In android there is no default text clear button functionality in EditText so here is a simple example of implementing text clear button in edit-text, You just have to follow instruction given below to make it in your edit-text.
1)- First you...
Containable behavior was introduced in CakePHP 1.0. It helps you out to find out the data from the associated models/tables in a consistent way.
Containable simplifies the binding operation in your model bindings. To use the new behavior, you...
AFNetworking is currently the most popular 3rd party networking library for iOS and OSX. The latest version of AFNetworking (2.0) is built on top of NSURLSession which is the new preferred method of networking introduced in iOS 7 (in place of old...
I came across to the many questions asking about to store some kind data in Shared-preferences such as String[] array. Many of these questions are answered with "Use a database".
But here i will show you a perfect piece of code by which you ...
Hello Friends,
If you want to import any excel sheet to your My SQL database you can use the following code below.
I have specified comments wherever needed.This is complete script and here you need to keep the classes directory with your cod...
Indexing is useful for faster searching of data. Suppose you have a product table in your database with more than 2,00,000 records, now when you search a record on basis of product name, it takes time too long. Now if you want to perform your sea...
Hello Friends,
Generally we need to do date based search in mysql like Get all the users registered in the last week, or last day, last month, last year. We have very good function of mysql DATE_SUB(). Lets get some the example below:
1) Se...
Hi Friends, Sometime in API responses we get html strings. To get pure string from html string this code will help you.
NSString *htmlStr = @"html String";
NSData *data = [htmlStr dataUsingEncoding:NSUTF8StringEncoding];
NSDict...
With the help of the notification "UIApplicationUserDidTakeScreenshotNotification" in our application we can detect the screenshot taken from iPhone.
Use the following line of code to generate notification for same.
[[NSNotificationCenter def...
Sometimes we do not get other label's contact number from the iPhone device. We only get "Mobile" labelled number or "iPhone" labelled number. Here is the code to get all type of labels contacts from an iPhone device.
Inside the loop where we ...
This tutorial show's how to create a new CSV file through PHP script.
This script is more helpful for php developer to create a new CSV file in array formate.
function functionname (parameter)
{
if (($handle = fopen("$data", "r")) !== ...
As the name suggested, Virtual Host is a technique to create a virtual URL of a website. For example on the local server we generally run a project like http://localhost/xyz but if you want to run this project like http://www.xyz.com on your loca...
MySQL is an open source database software which is used for storing data. Some time we need to run MySQL Server on safe mode. Please follow the below commands one by one to run MySQL server on safe mode.
1) First of all you have to stop MySQL ...
Hello all, I was facing problem with loading URL in UIWebVIew because of wrong encoding method. After that I tried this code. It helped me.
- (NSString*)encodeURL:(NSString *)string
{
NSString *newString = NSMakeCollectable([(NSString *...
Hello All,
Following lines of code will customize the delete button in UITableView editing style. This is an override method of UITableViewCell which is called when UITableView goes in editing mode. So to customize the delete button in UITable...
To make file access by permission in drupal 7, use 'private_files_download_permission' module. This module provide features to drupal developers to download files by specific roles. For example:- In my requirement,there are multiple resume in a f...
Hello All,
From the given blog below you will get to know about redirection of any form after submission or custom $form_state['redirect] in drupal 7:-
First you need to override form_alter by usind drupal hook function hook_form_alter. To...
INTRODUCTION:
Static import in Java allows to import static members of class and use them, as they are declared in the same class, means access any static member of class directly without using class name. Like regular import statements, stati...
INTRODUCTION:
The automatic conversion made by the Java compiler between primitive types and their corresponding object wrapper classes, is known as Autoboxing
It allows us to use primitive and object type interchangeably in Java on many p...
A code snippet for getting current location on browser using google map API
Here we are calling getLocation() on load of the page
getLocation();
function getLocation()
{
if (navigator.geolocation)
{
n...
Convert Java util.Date to sql.Date
This piece of code shows how to convert a java util Date into a sql Date for use in database.
java.util.Date util_date = new java.util.Date();
java.sql.Date sql_date = new java.sql.Date(util_date.getT...
Hello All,
To add product to cart I followed the below code and its work for me -
For this you need to pass parameter - product id as $param['pid'] & customer id as $param['customerid']
try
{
$product = Mage::getModel('c...
Xcode provides many keyboard shortcuts that can save our lot of time. Here is a list of few shortcuts that you might want to try out:
cmd+shift+o Open quickly
ctrl+cmd+left arrow Go Back
ctrl+cmd+right arrow Go Forward
ctrl+cmd+up Jump to N...
Run sql queries using SQL tag in JSP
We can run SQL queries directly in JSP page using "sql" tag.
Suppose we have a 'postgres' database, with below credentials:
db:'test'
user: root
password: 123
table name: user which have a column 'us...
Most of the apps or games allowed to the user to upload his screen shorts on the server for latter user.
Today I am going to show how to upload screen shot to server in Unity3D.
private string url = "www.mysiteURL";
Texture2D screenShot ...
Most of the Apps or Games required Login scene.
Login in any App or Game should be secure from the hackers.
Today I am going to show how you can use Login in Unity3D.
It is secure and very fast process for the login.
private string url...