Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Example of Parallax Scrolling

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...

Example of parallax

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...

Make a div align center using jquery

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>...

Advantages of using stored procedures :

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. . ...

Why Bugs/Defect in Newly Developed Product?

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...

Compile your code even when application is in background

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...

How to create an application using Facebook 4.0 SDK

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...

How to create a custom Spinner

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...

How to find current location of device (using CoreLocation framework)

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...

How to add list dynamically

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 (Angular.js)

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...

Create custom component in Joomla 1.5

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...

Steps to create custom plugin in Joomla 1.5

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...

How to Integrate iPayy(Payment gateway) API

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...

Stitching two images together using Graphic class

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...

Best Way to Create Best Design

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...

Setting up the Amazon Product Advertising API based on PHP SOAP

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...

Changing Windows Hosting Account's Default File

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...

Prevent from text selection on double click of mouse.

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

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"

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...

Creating CSV from HTML using jQuery

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"><...

How to Create Simple Html File Through PHP Script

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...

Android create custom edittext with clear button.

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...

Using Containable in CakePHP

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...

Implementing AFNetworking

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...

Storing and retrieving String[ ] Array using SharedPreferences in Android.

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 ...

PHP Script to import any excel database in MySql

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 in Mysql

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...

Date base search in Mysql

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...

Convert HTML string to Plane NSString

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...

How to detect screenshot taken by user in iPhone.

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...

Get iPhone contacts for any label in Objective C

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 ...

How to Make a new CSV File Through PHP Script.

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")) !== ...

Setup Virtual Host

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...

How to Run Mysql Server on Safe Mode?

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 ...

URL encoding in ios

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 *...

Customize commit editing style delete button in UITableViewCell

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...

Make file private in drupal 7

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...

Custom redirection in drupal 7

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...

Static Import in Java

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...

Autoboxing & Unboxing in Java

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...

Get current location on load of a page using google map API

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...

6 useful code chunks for java coders.

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...

Add product to cart in magento programmatically

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...

Some keyboard shortcuts in Xcode

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...

How to run sql queries using JSTL

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...

Upload Screen Shot to server

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 ...

Login Scene With Unity3D

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...

Smoke Testing

Testing the basic and critical features of an application before proceeding with deep rigorous testing to make sure that there are no blocker bugs and the build is testable or not is known as smoke testing. Whenever a build is installed,its a go...
1 274 292
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: