Capabilites of a device can be known by using Capabilities class.
1.Capabilities class is used to determine in which environment swf is running.
2.By using Capabilities class we can know the resolution of the users system, language of the u...
When we show a profile image we get image path from database and show that image as a profile image. But if image not found or image path is not correct then we see a broken image. So we add a conditions there to show a defualt image. But if we u...
First of all load the component in the controller lets say UsersController using the below code
$this->uses=array(Auth);
login.view:
<?php
echo $this->Form->create('User', array('id'=>'signUpForm','name'=>'userSignu...
Foursquare authenticate API returns all the information related to user's fourSquare account. In this response under "user" tag there is a tag "photo" with two other tags "prefix" and "suffix" like below.
photo = {
prefix = "https...
Sometime there is a need to perform different operation on dates for ex:
You may need to :
1) Add two dates/time
2) Subtract two dates/times for ex- to calculate your age by deducting your date of birth from current date.
And many m...
Some time you may need to find the day, hour and min and seconds for ex:
*you entered a number 105
and you want 1h-45Min ago*
then you can simply use the following function although you can use your custom function as well depends on the...
Note- Facebook provides 25 latest message conversation.
To get Facebook chat messages in Android, following steps are used:
Define the 'read_mailbox' property as below:
private static final List PERMISSIONS = Arrays.asList("read_mailbo...
In Google+ IOS sdk activities API return the activity published date in following format.
"2013-11-22T11:31:47.269Z"
You can use below line of code to read this date in a NSDate object.
NSDate *activityDate = [[GTLDateTime dateTimeWithRFC333...
When the Build is deployed in QA Environment ,following are the checklist for verifying the build.
1.Interface Integrity
Internal and External interfaces are tested as each module or cluster is incorporated into structure.This is perform to e...
Push notifications are messages that allow an app to notify of a message similar to how a text message pops up on your screen with a sound.
Code for Android ,Iphone API push notification is given below by using urbanairship.
1.Android Push No...
Sending an e-mail with an attachment through a .net application include these simple steps:-
1)- Use the following namespaces -
using System.Net;
using System.Net.Mail;
using System.IO;
2)- Call the following function where you h...
In OnCreate() Method add addTextChangedListener(new TextWatcher() to an EditText View
example:
searchEditText.addTextChangedListener(new TextWatcher() {
@Override
public void onTextChanged(CharSequence s, int ...
We can change date format of a date as below:
Here, I have defined different date formats:
String FACEBOOK_DATE_FROMAT = "yyyy-MM-dd'T'HH:mm:ssZZZZZ";
String MESSAGE_DATE_FORMAT = "MM/dd/yyyy hh:mm a";
String MESSAGE_DATE_TIME_FORMAT = "M...
Gradient Mesh in Illustrator:
Gradient Mesh, is an advance tool that allows us to create gradients in any shapes. The result in artwork seems like as it come right from the Photoshop. Every designer have his/her own way that how they apply gra...
When we create our game, we might want to see how it looks when we build and run it outside of the editor as a standalone or web player. Today, I will explain how to access the Build Settings and how to create different builds of your games.
G...
Spring comes with a family of data access frameworks that integrate with a variety of data access technologies. Whether youre persisting your data via direct JDBC, iBATIS, or an object relational mapping (ORM) framework such as Hibernate, Spring...
Salesforce is becoming popular which is used for tracking sales leads, managing mailing lists etc.
Drupal webform is a bridge module that helps to feed submitted data into salesforce.
Salesforce Integration require following modules to be ins...
Working in software/IT companies we all come across a word that is coined rampantly - the Agile development. So what is this and why do you also need to understand this was what troubled me few years back and I went onto an Online search expediti...
Hello Readers!
This blog is about how to use SQLite in Flex.
Before proceeding a brief introduction to SQLite.
SQLite is a relational database management system contained in a small C programming library,it is an embedded SQL database engin...
Creating a module in OpenErp is very simple. All you need to know is the basic skeleton of any module to be used in the system. There are four major files that build up your module:
1.) init.py file
2.) openerp.py file
3.) mymod...
To get MMS conversation from an Android device, use the following code:
ContentResolver contentResolver = getActivity().getContentResolver();
Uri uri = Uri.parse("content://mms");
Cursor cursor = contentResolver.query(uri, null, "thread_id ...
How to create good original content for a technology blog seems to be the question on everyones mind. It is to be noted that just uploading codes doesn't count as good blogging. One needs to support the code with some content which highlights its...
Do you want to install paid application present in Google market without wasting your money? If "YES" then you can follow these steps.
Step 1: Open the Google Play in your android device.
Step 2: Search your desired app in search bar.
St...
Marker Interfaces or Null interface in Java are special type of interfaces in character as they have no methods declared in them which means that if any classes implementing these interfaces don't have to override any of the methods.
JDK provi...
Every XML has two elements i.e.
1) Attributes and
2) Value
SELECT magazineId AS '@id'
, magazineName AS '@name'
, CoverPage AS '@coverPage'
, isActive AS '@status'
, publishDate AS '@publishDate'
, expiryDate A...
Following is the XML which we want to create:
SELECT magazineId
, magazineName
, coverPage
, publishDate
, expiryDate
, isActive
,(
SELECT (
SELECT (
...
After requesting facebook permissions we can check facebook permissions status using following code.
[FBRequestConnection startWithGraphPath:@"/me/permissions" completionHandler:^(FBRequestConnection *connection,id user, NSError *error) {
...
We have BroadcastReceiver to listen to the system events. There are receivers like BOOT_COMPLETED, SCREEN_ON, USER_PRESENT which we can register to perform any specific task when phone boots or screen unlocks. The same we are using here to Launc...
By following these steps you can be able to generate MD5 and SHA1 fingerprint for your android application using command prompt.(It will surely work in windows7)
First of all you need to get the paths for keytool and keystore.
keytool you...
Scrollbar in Unity3D
Scroll bars let a user choose the direction and distance to scroll through information in a related window or list box.
Scrollbars are very common on all languages..
In Unity we can also build our own scrollbars. It...
What is :-
Regression testing ensures that quality of software is not disturbed because of the changes made..
Regression testing is used to ensure effectiveness of fixed bugs in the Application. Which means when a tester finds the bugs in t...
Every now and then the Xcode developers have to make use of the iPhone camera to click pics, photos and even different types of symbols and codes like bar code and more recently the QR Codes (Quick Response codes).
The primary problem faced by...
Skinning a Character in Maya using Component Editor
Tutorial #1
Intermediate
In the following tutorial we will learn the alternate way to skin the mesh in Maya apart from usual painting based skinning .
We will use Mayas multip...
If sign in bar is not visible in Skype, then you can follow the following steps:
Step 1 : Go to Windows Start
Step 2 : Select All Programs
Step 3 : Select Accessories
Step 4 : Right click on Command Prompt
Step 5 : Select "Run as a...
To get SMS conversation from an Android device we will use following code:
ContentResolver contentResolver = getActivity().getContentResolver();
Uri uri = Uri.parse("content://sms/conversations/");
Cursor cursor = con...
Write following code in .h file
Add first the assets library framework from BuildPhase -> Link Binary with libraries
import framework in .h
AssetsLibrary/AssetsLibrary.h
Declare properties
@property (nonatomic, retain) ALAsset...
Validation :
Determination of the correctness of the final program or software product from a development project with respect to the user needs and requirements. Validation is usually accomplished by verifying each stage of the software deve...
Google Kills Android Menu Button, Replaces It with Action Bar
But still so many devices have hardware menu button so now we can combine hardware menu button along with action bar option popup menu by just doinig a small trick.
When you clicks...
The following code is to convert day into specific day of week like Sunday , Monday , today , tomorrow etc. and after 7 days you want to show only that date, then this code will help you.
NSDateFormatter *formatter = [[NSDateFormatter alloc]...
When we have a client/server application. There is certificate(SSL installed) in server side. So In that case we have a problem , how to extract data.In this case we can by pass the SSL just writing few lines of code.
Write the below code b...
The following code changes the day from the given "date" for example: if you want to add or subtract 5 days from the date put a value 5 or -5 respectively for "timeSliceDay".
-(NSString *)getTimeSliceDate:(NSString *)date format:(NSString *)fo...
Hello readers !
This blog is about how to make a simple drop down navigation menu.
First of all you need an unorder listing(ul-li) in html page as I have taken in example below.
After this we come on css.
Here we define all classes with...
Sometimes we record audio from AudioRecorder and when we play the same audio, it runs with a quite low volume even if volume is set to 1.0 i.e maximum.
Use below lines of code to avoid such issues:
AVAudioSession* audioSession = [AVAudioSessi...
Method to get a value from plist
NSString *path = [[NSBundle mainBundle] pathForResource:@"PlistX" ofType:@"plist"];
NSDictionary *dict = [[NSDictionary alloc] initWithContentsOfFile:path];
int number = [[[[dict objectForKey:@"One...
The jQuery serialize()
method turns the form values into a valid querystring, as such you can simply append to the string:
firstName=Maurizio&lastName=Tarchini
Useful, right?
Lets take an example:
<p><em></em>...
The synchronization is the mechanism by which we can control multiple threads to access the shared resources. Without synchronization, it is possible for one thread to modify a shared resource while another thread is in the process of using or up...