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

How to handle UIPanGestureRecognizer and moving your all images w.r.t moving image.

The following code help your image to move using UIPanGestureRecognizer. While moving your selected image other images set there location automatically. -(void)addImageToScrollView { float x=5,y=40,width = 100,height = 100,spaceH = 5...

Adding a field to an existing module using Inheritance in OpenERP 6.1

To add a new field to an existing module, the best practice is to create a new module that inherits the model you want this field to add in. And your module will depend on the required module. For example adding field cartage to account.invoic...

getting contact information from contact list in Android

We can get a contact information for any contact from contact list of an Android Device easily. For this follow the steps below: Write the permission to read Contact's data into your AndroidManifest.xml <uses-permission android:name="a...

Using Ternary operator instead of If/Else in Php

Evaluating If Else statements is very common in programming paradigm. But 'If Else' statements are long and they can be easily replaced by simply using Ternary operators. Here is a tutorial on the usage of ternary operators and their implementati...

What does Virtual Machine (VM) means?

Virtual Machine (VM) Definition - What does Virtual Machine (VM) mean? A virtual machine (VM) is a software program or operating system that not only exhibits the behavior of a separate computer, but is also capable of performing tasks such...

ASIFORMADATA uploading Bar

Hello Guys, There are different issues while uploading a video to a server. -videoSize video Quality. Now uploading depends on internet speed and file sizes and it can take almost a minute to upload a video. Developers use Activity Indi...

NGUI: Custom Atlas

NGUI: Create Custom Atlas When we install NGUI in our game it contains some built in Atlas such as - Fantasy, Refractive, SciFi, Wooden. We use them to create buttons, image buttons, progress bar, popup list, scroll bar etc., in which we can o...

Get Familiar with Texture Packer

Texture Packer is a wonderful program to create Sprite Sheet with in seconds for different data format like, cocos2d & Unity3D. Its not a free program but Texture packer's demo version works pretty well too.If you are a 2d animator & cre...

Making Custom Select Box Using JQuery

While designing an HTML form, a lot of time there is a requirement of custom form elements. Below is a tutorial on how to create some nice custom select box with CSS and jQuery. <div class="selectBox"> <div c...

How talent is luring technology to smaller towns

Resources have to be made available for people to learn to adapt to them. In the past, people traveled by foot to major cities to get their hands on better seeds and fertilizers. The ones who took the pains, fared way better than the ones who din...

Get Date Interval in iPhone

Compare two dates to get number of days without calculation. 1 day = 86400 seconds.. NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; [dateFormat setDateFormat:@"EE LLL d,yyyy"]; NSString *dateStr = @"Tue Dec 17, 2013"; N...

NSSplitView delegate for controlling minimum and maximum sizes of views

NSSplitView have delegate methods where we control the minimum and maximum sizes of sections and which views expand or collapse by what amount. Constraining the coordinates in the splitView:constrainMinCoordinate:ofSubviewAt: sets the minimum ...

NSSplitView delegate for priority based resizing

The default resizing mechanism in NSSplitView is proportional resizing in which if the NSSplitView changes size, each column resizes by an equal percent. But it is not successful in case where the columns in a split view are used to separate a si...

UI Principles to keep

In our day to day life, we come across different interfaces. There can be several; One which eventually gains our admiration,the other may be kind what we become reluctant of using. Some are the interfaces that inspire us.. They itself give us a ...

Effortlessly managing your website using a Content Management System

The way that the internet has gripped the entire world compels every business to have a web presence. A web presence is a gateway to higher clients and in turn more business. Till not so long back creating and managing a website was like teaching...

Summing a column in an OpenERP report

Its is very obvious that you would need reports in accounting where you are supposed to analyse the sales, refunds, and many more accounting documents, this means you would require maths functions too while creating OpenOffice reports for OpenERP...

Changing the Behavior of a Dialog Box with Effects

The options used when creating the dialog box can be modified by the dialog ("option", param, value) method. The param parameter is the name of the option, while the value corresponds to its new value. lets change the effect for the opening and ...

The Art Of Animation

What is Animation? Animation is a simulation of movement created by displaying a series of pictures or frames. It is the process of creating a continuous motion and shape change illusion. The word animation is derived from animate, which mean...

Changing row color on clicking radio button

Consider an HTML table with multiple rows having radio button in first column of each row. Now, if we want to change the row color when radio button associated with it is clicked, we have to write following code. // HTML // Untitled ...

Finding the Dimensions of an Element

You want to determine the space occupied by an element. The width and height methods can be applied to any element, and they are useful for determining the computed width or height of an element. However, they fall short if you need to deter...

Finding the Dimensions of the Window and Document

You want to get the width and height of the window and document in pixels. jQuerys width and height methods provide easy access to the basic dimensions of the window or document: $(function() { alert('Window height:'+jQuery(window).height(...

DNN7 Common Error

DNN7 Common Error After installation of your DNN site sometime show given blow error on Default.aspx. HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. ...

Set predefault current date in datebox

How to set pre default current date in datebox before choose any other new date: We have to follow following steps. Step 1:- Download below 2 files. jquery.datepick.js jquery.datepick.css Call both file in HTML head <link ...

How to keep the order in ruby hashes

When we insert the data into a ruby hash it reorders the data in some other order when we use it in view file.So there are cases when we have to show the data in the same order in the order we are inserting the data into ruby hash.So in case wher...

Concept Of AJAX

AJAX----- Asynchronous JavaScript and XML. We use AJAX when we are using the concept of " B to B " or "B to C" B to B -- business to business ........................................// user to website. B to C -- business to costumers...........

How to convert ppt file to swf

If we want to convert a PPT (Powerpoint presentation file) into SWF we can use this system command system("java -jar /opt/jodconverter-2.2.2/lib/jodconverter-cli-2.2.2.jar " +pptpath+" "+ppt_convert) where pptpath is the path where PPT file...

Cakephp - Using multiple database

Many a times we need use multiple database as per the domain or some other reason . We can easily achieve it with the following code in cakePhp. Write the following code in app->config->database.php class DATABASE_CONFIG { publ...

How to restore backup from sql script through Postgre console

Restoring backup from sql script through Postgre console is just a 2 step process.They are as follows: Step 1: psql -h hostname -U username database_name Step 2: \i filename.sql

Using TTS(TextToSpeech) in Android

We have a feature called TextToSpeech and is available for Android 1.6 and higher. Usind TTS we can build an app that speaks the text of various languages. Below are the steps to do so: Simply create an xml layout that includes an input ...

Get user FB friends data by itsa access token in php

By knowing the token value and fbid we can get the data of friends in a file which we can use use further in our code. For example: $post_decode = $this->request->input ( 'json_decode', true) ; $fbid = $post_decode['fbi...

Call JavaScript function from C# in Unity3D

Call JavaScript function from C# in Unity3D Mostly developer use a particular language to do code in Unity3D. But some times you need to use two types of Scripts. At same point you also may required to call vise a versa functions of both scr...

Category Bit And Mask Bit Filter

In Cocos2d,when you define a world for a scene by default all object heaving body in scene will collide with each other.In order to make object collidable with specific one,simply set body mask and category bit at the time of defining fixtures,an...

Format floating number

"%g" % (float_number) Above function formats float number to natural number if it contains zero's after decimal point otherwise format float upto one decimal point Helpful in showing working days(like 22.5 days)

How to Use Services in Android Simple Example

Using Services In Android Service is an application component which runs in the background and do not have a user interface.Services can be of two forms:: Started Service can be started from an application component such ...

Saving layerstyles in photoshop

Saving layer styles in Photoshop: Layer styles are the layer blending and effects which are used in the photoshop for the purpose of shadows, gradients and creating depth within the images or illustrations. In this tutorial we are going to cre...

Upload image in ruby on rails through AJAX

Upload image in ruby on rails through AJAX This is HTML and JavaScript code. <% remote_form_for(:image_upload_form, :url => "/meeting/save_image/", :html => { :method => :post, :id => 'imgForm', :multipart => true }) do |f...

Web RTC : Strongest Api of HTML5 Part -ii

holla amigos In my last blog i shared the power of web rtc and the first api getUserMedia of the web Rtc . This article will be focus on the Peer to Peer connection of the Web Rtc. Let me explain you first what is Peer-to-Peer connection ex...

Sending private messages to Facebook users

Many of us have this requirement of sending private message to your facebook friends and we usally struggle to get it done. The main reason behind this is that graph api provided by facebook does not provide this. We have to look for other option...

Load And Parse XML in Action script

It is very easy to load and parse XML in Action Script 3.0 Suppose we have xml like this - <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <images> <image> <url>"first.jpg"</url> </image> &l...

How to check and uncheck all checkbox on single click?

When we have multiple check box to select then we need to check all these one by one it will take more time to check all so by using jsscript we can check and unchecked all check box on a single click. In the below script can check and uncheck al...

Image tag error- no image found

There was an error in img tag when no image source found. I used this below code to resolve this issue, if you are also facing the same issue, please go a head with this code. <img src="profileimage.png" onerror="this.src='noimage.png'">...

Make payment using PayPal MPL(Mobile Payment Libraries) in Android

There are certain applications in which we need to integrate the PayPal for enabling the user to pay certain amount to use further features of the app. Before starting, download the PayPal_MPL.jar file from PayPal developer's website and copy ...

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 ...
1 262 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: