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

Known bug of Temporary Table in MYSQL

Known Bug We cannot use temporary table twice in same query. http://dev.mysql.com/doc/refman/5.0/en/temporary-table-problems.html However if you have not required above condition then Temporary table is best to use rather than creating rea...

A Real Animated Story :)

Cartoon, a sophisticated creation yet simple character to define and understand that has artificial emotions incorporated in it. They can make us smile, laugh, weep or cry. They have the kind of power that brings out the emotions residing inside ...

How to create function for Split string in SQL

How to create function for split string in SQL Function accepts two parameters first the concatenated string and second the delimiter character. CREATE FUNCTION [dbo].[Split](@String nvarchar(4000),@Delimiter char(1)) RETURNS @Results TAB...

Android Screen recording using ADB shell in Android KitKat 4.4

The feature is available for devices running Android 4.4(API level 19) and higher. We use screenrecord command to perform this task. The screen activity is recorded to an MPEG-4 file, and the same can be downloaded from the device. Below is th...

Sorting an ArrayList by date

From here you can learn how to sort an Array List of a particular data type by one it date component. :- By calling the method below you can easily sort your array list. The format you put inside the SimpleDateFormat method is the format of...

Set Google Map API v2 in android

Set Google map in android application To get a google map view in your android application .First you have to create your Google Api Key on the following link https://code.google.com/apis/console/ . First make a project on t...

Load Image From Url

How To Load a Image Form a url You can use this class in your application to load image . It can be use by calling its DisplayImage(String url, int loader, ImageView imageView) function.This function there are three parameters first is Str...

Mandatory and optional methods in protocols

The methods and functions of the protocols can be categorized as, required or optional. The difference between these two specifiers is that, the programmer may or may not use the optional methods declared in the protocol, or may use some of them ...

GPS tracking in android tutorial

If you want to integrate GPS tracked latitude longitude to your application, then u need to add a GPS module to your program to make your app more smarter ,to automatically get the GPS tracked location in your app. In this tutorial ...

JavaScript Validation for User Name and Email Id in Asp.Net

JavaScript Validation for User Name and Email Id in Asp.Net Validate User Name and Email Id in a web page using JavaScript validation in ASP.Net. In this example I am using two TextBoxes. The first TextBox accepts user name and second textbox ...

Use existing sqlite database in android

I will show you the easiest solution, by far, is to use SQLiteAssetHelper. You add your existing sqlite database in a specified location in your project's assets/ directory, then use SQLiteAssetHelper to access your database (much same as you wo...

Extract method in PHP

Sometime we may need to use the same variable name that you are using in the query or simply in an associative array. Lets say you have an associative array : $arr = array( 'totalLimit' => 50, 'limit' => 10 ); The usually what we...

Using HeroDocs in php

Herodocs are useful for multi-line strings and avoiding quoting issues. It prevents from escapinging of characters in php EX1 ) $sql = <<<SQL select * from TABLE_NAME where id =1 and product_name = "widgets" SQL; O/...

Traceability Matrix

What is Traceability Matrix Traceability matrix is prepared in order to cross check the test cases designed against each product requirement. Why we use the Traceability Matrix? If you prepared your test cases completely & client cha...

Learn How To Do Logout using PHP Session

/* A PHP session variable is used to store information about, or change settings for a user session. Session variables hold information about one single user, and are available to all pages in one application.*/ Two things are to be kept in mi...

Cakephp - Using Auth

We can use Auth component in cakephp for authentication and authorization objects. Since it easy and secure way to do this. Write following in your App controller public $components = array( 'Auth' => array('loginAction...

Single Row Function in Oracle (Character Function)

These functions operate on single rows only and return one result per row. There are different types of single-row functions. Character Number Date Conversion Single-row functions are used to manipulate data items. They accept...

Adding custom annotations to a map

Annotations are little images(pins by default) that are to used to mark a point of interest in a map. But occasionally the programmer might need to use custom views or images instead of boring pins. This can be easily achieved by creating a image...

Adjust Image view width dynamically according to the screen size in android.

It is very difficult to re-size the image-view width according to the screen without losing the quality of the image or you can say increase the width in proportionate to height of the image view. I will show you the trick how you can do tha...

Finding Current Location in Android

To find the current location, follow the steps below: Create a dialog box to display loading message while finding the location ProgressDialog dialog=new ProgressDialog(this); dialog.setMessage("Please wait while getting your location in...

Fun with Images !

Pictures.. Non- Abstract form of any particular incident, kind of a "concrete" form of our memories. Memories we cant hold on forever but we live in a world where we have devices that allow us to capture memories in form of pictures and cherish t...

Do clones make sense?

I need a website similar to Facebook with all the features exactly same as Facebook I need a TempleRun game clone I need a travel website similar to makemytrip.com Being in software services industry, one must have come across these kind of re...

Smoke Testing And Sanity Testing

SMOKE TESTING Smoke Testing term came from the Hardware Testing. Like in hardware testing, Tester Check whether or not it Catch fire and smoke. Same as in Software Smoke testing tester check that the main functionality of software is working f...

Make String with different colors in Android

We will use SpannableString to add different colors to a string and will use the setSpan(Object what, int start, int end, int flags) method of SpannableString to change the color for defined range of characters in that string. Here is the cod...

Introduction to php

<html> <head> <title>Example</title> </head> <body> <?php echo "Hi, I'm a PHP script!"; ?> </body> </html> PHP(Hypertext Prepr...

Char array is better than String for password prevention

Why Char array is better than String for storing secure data like Password in Java? As we know that String is immutable in Java if we store password as String, it will be available in memory (Heap) until Garbage collector clears it and since S...

Important Unity 3D Components

Unity 3D has number of useful tools which makes our game development easy and interactive,which we use through IDE.Some of the major components we will be using throughout game development in Unity include: 1)Toolbar-It remains at the top of...

Use of JSTL tag

1) Iterate List/HashMap in JSP using JSTL To use JSTL in your jsp file, you should first include below statements <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@taglib prefix="c" uri="ht...

Display all Simple Products Associated To Configurable Product

<?php $_cat = Mage::getModel('catalog/layer')->getCurrentCategory()->getId(); $_productCollection=$this->getLoadedProductCollection(); $_helper = $this->helper('catalog/output'); ?> <?php $cat = Ma...

How to create a class and object in php

class rect { public $length=0; public $width=0; public $area=0; public function getData() { $this->length=10; $this->width=20; } public function area() { $this->area = $this->leng...

How to Clearing floats

A common problem with float-based layouts is that the floats' container doesn't want to stretch up to accomodate the floats. If you want to add, say, a border around all floats (ie. a border around the container) you'll have to command the browse...

VariableSet() and variableget() in drupal

Creating a form which contains two text fields and a submit button.Main aim is to save data and get the sabed values when needed. variableset() and variableget() functions to store and retrieve data. /* * Create a form */ function mymenu_...

Gradient Annotator In Illustrator

Gradient Annotator in Illustrator : Hello all :-), I have been using the Gradient tool in my Illustrations for 2-3 years & many times I had faced the same problem that Gradient tool bar wasnt showing up on the object & I wouldnt know ...

Problem with foreach loop for updating array element

If we are traversing an array and need to update an element in some condition then it is quite tricky to do that in foreach loop. For example, if we need to increase each element by 2 of an integer array then we can do that using for loop in t...

Fragment Tutorial in Android

This tutorial helps you how to use Fragment Class in android Application the sample code give you the brief on how you can use an fragment class. In main Activity we have created four fragments. And use FragmentManager and FragmentTransaction...

Document type declaration

Document type declaration ( Or DOCTYPE ) What is Doctype ? The<!DOCTYPE> is not a HTML tag. It is an instruction to web browser about what version of HTML the page is written in. In HTML 4.0...

JavaScript Validation for Mobile Number in Asp.Net

JavaScript Validation for Mobile Number in Asp.Net Validate Mobile number in a web page using JavaScript validation in ASP.Net. In this example I am using one TextBox . The TextBox accepts Mobile number, it only allows 10 digit numbers. &...

Flat UI

Days are gone when web designers use to spend their time and effort creating Flashy animation and illustration filled with gradient and sparkling gif images and getting appreciation by audience, then came the trend bringing real life images wi...

Single sign on on sub-domain in drupal

We can use Bakery SSO module for single sign on in drupal 7. It works with portal or master site and sub-sites or slaves sites, it provides the following features:- 1) If login into the portal site and navigate to sub-site, user will be auto-l...

Jquery vallidator rule for filling at least one field between a group

<script type="text/javascript"> $(document).ready(function() { jQuery.validator.addMethod("require_from_group", function (value, element, options) { var numberRequired = options[0]; var selector = options...

Best way to configure hibernate 3 with spring?

Different way to configure hibernate 3 with spring? As per my knowledge There are 3 different way to configure Hibernate 3 with spring 3. Let us sort discuss on each of three configuration method and lastly conclude witch method is best. Me...

Difference between @"MM/dd/yyyy" and @"MM/dd/YYYY" in setDateFormat.

The difference may seem very small but it makes a lot of changes in the ways things work.The year when written in small letters (setDateFormat:@"MM/dd/yyyy") is the ordinary calendar and will return normal year, but in case of the capital YYYY, (...

Parsing CSV file using php SplFileObject class.

The SplFileObject class provides an object oriented interface for a file. $file="upload_file.csv"; //file to parse Steps: 1) Create SplFileObject class object to the csv file. $srcFile = new SplFileObject($file); 2)Now loop ti...

Cut image through code in mac os

Method to cut image in Objective-c/cocoa (OSX) -(IBAction)cutItem:(id)sender { hasBeenDragged = NO; NSImage *_sourceImage = [self image]; float width = selectedArea.size.width; float height = selectedArea.size.height; ...

Crop image in mac os

If you want to crop the image without changing its quality in Objective-c/cocoa (OSX) then you can use the following method -(IBAction)crop:(id)sender{ hasBeenDragged = NO; NSImage *_sourceImage = [self image]; float width = sel...

Check Null data parameter in json array or dictionary object in iPhone

If some parameter is missing in json or dictionary. For example- json = ( { "created_time" = "2013-11-18T14:40:37+0000"; from = { id = 15400100; name = "Alexandra"; ...

Create Ramdisk and take backup in oracle

Steps to create Ramdisk and take backup in oracle Install SoftPerfect Ram disk software(eg installed location is C:\Program Files\SoftPerfect) Create a .bat with following content and run it: REM stop db oradim -SHUTDOWN -SID DB_SID REM ...

Disable Auto Update of Mozilla Firefox

The steps below guide you through setting the configuration files required for Firefox to not only turn off updates, but deny the setting entirely. Also note, this is on a per computer basis. This process will need to be replicated on each compu...

How to Disable Ctfmon.exe at startup

Ctfmon.exe is a Microsoft Office process that works with the Windows operating system. This process activates the language bar and alternative user input. It is a non- essential system process which runs in the background even after quitting all ...

Generate random number of specific length in php

To generate random number of specific length let the length be 10 we write <?php $random_number = rand(1000000000,9999999999); echo $random_number; ?>
1 263 269
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: