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

Creating Search View in Openerp

Search views are very useful when it comes to exact data requirement. In OpenERP we can create such views very easily and quickly, just adding the few line of code in your view. You can add as many fields you wish and add buttons that do some sor...

Solution for Invalid Object ID in MongoDb

We usually have this kind of error while making query with mongodb "Uncaught exception 'MongoException' with message 'Invalid object ID'" , the main reason behind this kind of error is that :-> a) Id string for mongodb must be 24 hexadecim...

Create pie chart using jquery highchart and asp.net mvc

To create pie chart in asp.net MVC using jquery HighChart. step 1: Include latest jquery.min.js in your page. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> st...

How to create profile page hiding controller and action name in yii

How to create profile page hiding controller and action name in yii In url manager add this line '<username:\w+>'=>'site/index', username will be the parameter for name or id and site is controller name and the url will be...

Two different custom cells

Hi all, If you want to add two different xibs in a tableView you can check out the code here. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { if (tableView==carTable) { ...

Apatche JMeter-Listeners(Reports)

A listener basically captures results received from the server. We can capture individual results to consolidated results with the help of different listeners. The listener can be added at the test plan level, thread group level or even under ind...

Valid main methods in java

main() method in Java the main method in java is the first entry point of the program and the most familiar structures in the Java language. Following are some valid main() signatures in java: //Most common form of main method publi...

how to detect swipe left or right function on listview item in android

If you want to detect swipe gesture from left to right or right to left on the list view item in android. than you just have to add this Class in your activity and perform any task by detecting any type of gesture in your list item in android...

Cloning github repository in windows system

Hi All, I needed to clone one of my password protected repository from git into my windows machine. I googled it and found lots of help but I would like to wrap up things in very basic level. 1: You must have git account and repository whi...

Remove wrapper from HTML element in cakePHP

In cakePHP, if you are using default render elements of cakePHP, then wrappers are automatically add. For removing wrappers from HTML element use the following syntax:- Form->input('email_address', array( 'div'=>false, 'labe...

Remove all the previous activities from the back stack in android

Whenever you switch from one activity to another using intent and specially in the case of logout and sessions related android applications you will find activity back stack issue. Here i will show you a small piece of code which will help you...

Customizing UISegmented Control having 3 segments

A segmented control is a tool which provides segments as buttons. Each segment can be programmed to perform an action. Usually it is required to customize or modify the appearance of the UISegmentedControl in order to make it look like the rest o...

arranging the images at the center of the iPhone screen

It might be required to display a large number of images having different sizes, one by one on the screen. To make it look neat, all the images should be aligned at the center of the screen, irrespective of their size. So fixing the coordinates o...

How to resolve the error "The server response was: 5.5.1 Authentication Required"

Sometime the email is sending on local machine but not on the server machine it gives the error "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required" To resolv...

changing the size of the frame with image

To change the size of frame of the UIImageView as the image change can be done by getting the width and height of the UIImage. This can be done by declaring 2 float variables, storing the width and height of the image of the image in the respecti...

Can I use an enum type in Java switch statement?

The Answer to this question is yes, we can use enum in java with switch statement. the following examle shows how: enum Car{THAR,XUV,SCORPIO} class Cars { Car car; Cars(Car car) { this.car= car; } ...

Message posting in GooglePlus IOS sdk

If you integrating Google plus in your IOS app and want to post some message you can use share dialog. To post message first create an object of GPPShareBuilder then you can set the text or url in this object like below example. id<GPPShare...

Enum with a main method in java

Enum In java In java we use of enum is not confined to declaring set of constants , introduced in J2SE 5.0, is useful when you want a variable to hold only a predetermined set of values. Just like a class, an enum can have constructors, m...

How can you Create a inner class inside a method

In java can we create a inner class inside a method?? Answer to this query is yes . Example code : class Outer { String outerVar="outer Variable"; public void checkInner() { final Strin...

How to improve selection criteria of your app using Radio button?

Radio Button A radio button is a two-states button that can be either checked or unchecked. They are normally used together in a RadioGroup. When several radio buttons live inside a radio group, checking one radio button unchecks all the others....

Upload image through AJAX form in PHP

You can easily upload an image through form in PHP. You need to add JavaScript file for send image data on server side through AJAX. Please add query.form.js in your code. You may download this js file form following link: https:...

How to detect tapped word in UItextview

We might face a situation when we need to add action on tapping a particular word from a string on the iPhone screen like a link or a hashtag etc. Now though we can easily add a UITapGestureRecognizer on a UITextView or UILabel, finding the exact...

Responsive layouts to go !

The past year has seen significant increase in the number of people demanding for a responsive layout. This is because the user wants a consistent layout in varied screens of desktop,tab or an I- Phone. Why is it so? Web users expect a simi...

Posting on facebook through ios app

Hi all, If you want to share some useful information on facebook through iphone app then use this code. Download latest facebook SDK from https://developers.facebook.com/docs/ios/. #import <Social/Social.h> SLComposeViewCont...

Multiple Backgrounds with CSS3

Multiple Backgrounds:- We can use multiple background images in CSS background property using a comma-separated list of values. The the first value in the list represents the top layer, with subsequent layers rendered behind successively. Bel...

How to install meteor on windows

Meteor is a new javascript framework which is designed to simply the web development and automate the process. The best feature of meteor is real time communication. It acts in real time. Installation of Meteor on Windows: Download nod...

Fade-in effect using CSS3 @keyframes Rule

With CSS3 @keyframes rules, we can make a fade-in effect for any HTML element we want. In following code, we are just changing the opacity of an element on two different @keyframes states. We can increase the fade-in time by animation-duration pr...

Simple CSS3 Animation Example

Hi, Here is an example of a simple animation showing a tree growing on the field and then some rays coming over it. For this I will be using following images. bg.jpg treetrunk.png branches.png rays.png shadow.png ...

Aimated Text shadow by CSS 3

Hello, Bellow is a animation showing shadow of a text moving relative to the movement of the light. <!doctype> <html> <head> <style> @import url(http://fonts.googleapis.com/css?family=Anton); html { height: 1...

Software Testing Process

Following are steps to make software testing more easy & efficient: 1.Participation right from beginning:-It is a good practice, if tester has involved in starting from the project. Testers can acquire better understanding of project.Earl...

Cakephp - Using Config.php

We can use config.php in cakephp to define constant which need to be used in our whole project example we have different role id for different users.We can define those user corresponding to their role id and can easily access them through out ...

Image Rotation by image magic

Creating image rotation using Image magic by command line. Some time image taken from iphone when uploaded on the website gets rotated .We can easily find that the image is rotated and can rotate is back by using the following code. $rot...

How to use variable Argument in java

How to use variable argument Using variable argument in java method can be very important tool . As we can give multiple no of inputs to the methods using variable argument. The rules to define variable-length parameters in a metho...

Method eq() in jquery

Description: The eq ( index ) method reduces the set of matched elements to a single element or we can say that find the element that matches or equals the index provided. Syntax: Here is the simple syntax to use this method: selector.eq ( i...

How to use for each in java

Using for each In place of Normal loops in java for each can be used to display the all the elements of the array. Syntax : for(datatype variablename : array) { // Do the work with varialble } example publi...

How to copy image in NSPasteBoard

To copy the image on NSPasteBoard following code can be used: - (IBAction)paste:sender { NSPasteboard *pasteboard = [NSPasteboard generalPasteboard]; NSArray *classArray = [NSArray arrayWithObject:[NSImage class]]; ...

How to print an NSImage

The following code prints an image stored in a file: -(void)print:(id)sender { NSImage *image = [[NSImage alloc]initWithContentsOfFile:[imageEdWindowController getImageLocation]]; [image scalesWhenResized]; NSImageView *&#9...

Text-shadow

Text-shadow:- The text-shadow declaration allows you to create a text shadow. Each shadow is specified as an offset from the text, along with optional color and blur radius values. Syntax:- text-shadow: h-shadow v-shadow blur color; As you...

How to show ActivityIndicator before image load in iPhone

Show activity Indicator before image loads using SDWebImage SDK. UIView *myView; UIImageView *imgView; UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray]; ...

Add Section Index Title search in one section of UITableVIew in iPhone

Add Title search on UItableVIew - (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView { return [NSArray arrayWithObjects:@"A", @"B", @"C",@"D",@"E",@"F",@"G",@"H",@"I",@"J",@"K",@"L",@"M",@"N",@"O",@"P",@"Q",@"R",@"S",@"T",...

Show HTML formatted code on UIWebView in iPhone

Steps to create HTML file and display on UIWebView. Step1. Add New File -> Resource -> Rich Text File. Step2. Change .txt extension to .html. Step3. Enter your HTML code as written below. <html><head><style>{text-al...

Increase Label height according to Text in iPhone

On top header area #define kDefaultCellFont [UIFont fontWithName:@"HoboStd" size:10.0f] NSString *text = @"This is a simple example of the versatility of blocks, but the standard frameworks are chock-full of other use cases. NSArray lets yo...

Hide and Show TabBarController in iPhone

Sometimes we need to hide or show TabBarController from the bottom of the screen then we can just use following functions to do so... In AppDelegate or Singleton class for .h class :- - (void) showTabBar:(UITabBarController *) tabbarcontro...

How can use Regular Expressions in HTML?

We can use a Regular Expressions width the help of HTML 5. You can use this with "textarea" and "Input" tags. <form action="" method="post"> <label for="username">Create a Username: </label> <input type="text...

how to get remaining months between two dates in ruby

Below is the code to get remaining months between two dates date1 = '2011-03-31' date2 = '2011-02-25' (date1.to&#95;date.year * 12 + date1.to&#95;date.month) - (date2.to&#95;date.year * 12 + date2.to&#95;date.month) ...

Android how to send SMS

For sending SMS in Android, we have two different ways to do so, First is by using Android's built in SMS application and other is by using Android's SMS manager Api. Here is how we do that: 1: By using Android device's built-in SMS applica...

Bind Model in cakephp

In one of my project I have two table with simple relation Division (id, title) - hasMany Staff Staff (id, division&#95;id, name, jobtitle) So. Now I need to get some info like: I need to get all Staff where birthday today, and get r...

Naming convention in cakephp

Naming convention in cakephp To get Maximum advantages from Cakephp then we need to follow some basic naming convention that cakephp rules says. Naming convention follows principles of following section of cakephp Database name Contr...

CAST

The Term CAST Computer aided software testing refers to Techniques and tools are user used for testing software applications. CAST use the combination of Software and hardware based tools and techniques to perform the process of testing. Primar...

QA Metrics

Metrics are the most important responsibility of the QA team.Metrics allow for deeper understanding of the performance of the application and it's behaviour. The fine tuning of the application can be enhanced only with the metrics.In a typical QA...
1 256 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: