Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
Avoiding gap in ids for a table in OpenERP PostgreSQL
Sometimes when we delete few or all records from a table, we may want ids of records to be in sync with the last record or the first one, but what we get is that new ids with a significant amount of gap have been generated, for example if it shou...
What Is The Diffrence Between Do And Do While Loop
The Main Difference Between Do And Do While Loop Is :-
Do while Loop :- If we use "Do While" at least one time execute the loop and then check the Condition.
While Loop:- When we Use "While" then firstly check the condition after execute ...
Import Gmail Contact
Import Gmail Contact :
To import gmail contact you need to download the following DLLs :-
Google.GData.Contacts;
Google.GData.Client;
Google.GData.Extensions;
Google.Contacts;
Source code to import to import gmail contact shown ...
How to count the total number of buttons in a page using QTP .
A HTML button is identified as a WebButton object by QTP. Below is the script which you
Can run in QTP to find the total number of Buttons in the HTML page .
First Create a Button object
Set objButton = Description.create
objButton(micc...
Display UIWebView from HTML string with custom font and size
Following code can be used to change the font and size of UIWebView displayed from HTML string. To implement this first change the font and size of HTML string then load the UIWebView with this string like below.
UIFont *font = [UIFont fontWit...
Database Testing
Database : Database is a collection of data.
Database is a secure place to store all your important data. The data need to be stored in an effecient manner or secure ware because data is very important.Testing the backend databases, like compari...
ReadyState property in QTP
The readyState property in QTP returns the loading status of the current browser . This property
Will be of immense help if the AUT under test has a lot of sync issues while running the script .
This property returns one of four values :
...
How to get subscription information of chargify using .net
First we add dll of chargify
using ChargifyNET;
Create the object of subscription
ISubscription newSubscription;
newSubscription = new ChargifyNET.Subscription();
Connect to the chargify by giving URL,apikey and password
Char...
How to get the text of a checkbox using QTP .
In the below code you can automate the web page using QTP and can find the text with the checkbox adjacent to it .
Create a description property with micclass for web checkbox.
Set oDesc = Description.create()
Set oDesc = Description.creat...
Sending Email Using Send Grid for Window Azure Server
This is a function to send Email from Azure Server Using Send Grid.
public Dictionary FogotPassword(String Email)
{
Dictionary row = new Dictionary();
string Password = string.Empty;
DataTable dt...
How to convert NSImage to CIImage
To convert NSImage to CIImage following function can be used.
-(CIImage*)fromNSImage:(NSImage*)image
{
NSData * tiffData = [image TIFFRepresentation];
NSBitmapImageRep * bitmap;
bitmap = [NSBitmapImageRep imageRepWithData:tiff...
How to convert CIImage to NSImage
You can convert CIImage to NSImage by using the following function:
-(NSImage*)fromCIImage:(CIImage*)ciImage
{
NSCIImageRep *imageRep = [NSCIImageRep imageRepWithCIImage:ciImage];
NSImage *_image = [[NSImage alloc] initWithSize:[ima...
How to add Facebook contacts to your Gmail profile?
The social media saga
The previous year was distinctly different in the social media domain. Platforms like Pinterest, Instagram,Stumble Upon and a few others rose up to challenge the dominance of Facebook and Twitter. But the platform to gain...
Get current geo location from browser using html5
We can get our current geo location (latitude and Longitude.) from desktop browsers as well using html5 geolocation. We just needs to add script into our html page and it will ask you to share your location. After approve it will return you your ...
Get Location (Latitude and Longitude) of Gallery Image
If you are using ImagePickerController and wants to get selected Image location then use below code:-
- (void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
// Get the asset ...
Is custom Spring Web Context Configuration is required for any Spring application?
Is custom Spring Web Context Configuration (like applicationContext.xml) is required for any Spring application?
As per knowledge, necessarily no need it, but it is a good way to separate your application layers from front-end layer:
As we ...
Android Custom camera
This tutorial helps you how to create custom camera app, with the help of the following sample code.
The Custom camera capture the image with auto focus and flash on the click of the capture button.Some developers may require a camera u...
Change Spring Web Context Configuration Filename
Change Spring Web Context Configuration Filename
We know that if we want to implement the Spring MVC in our project then we should add DispatcherServlet into our web application deployment descriptor (web.xml) file like as below
<servlet...
Configure and customize leaflet map in Drupal 7
Hi,
Leaflet module provides a javascript library for mapping leaflet map into Drupal and can be downloaded from https://drupal.org/project/leaflet
We can initialize map from our custom module as follow:
$map_info = leaflet_map)get_info('...
Delete Category and Products by ids in magento Programming
Delete category and Products By Ids in Magento by following the steps:
1 - Deleting Category:
send category id with Query String to controller such as
getUrl('catalog/category/deletcat').'?id='.$catId; ?>" title="Delete">
...
Use of Delegate() Method in jQuery
The delegate method can be used in two ways:-
If we have a parent element, and we want to attach an event to each one of its child elements, this delegate() method is used.
Ex: Un-ordered List
Instead of attaching an event to each e...
document ready Vs onload function
Document.ready VS body.onload function
1 - Document.ready function is called as soon as HTML DOM is loaded, where Body.onload function is called when everything gets loaded on the page that includes HTML DOM, images and all associated resour...
Get Custom font name to be used in your xcode project
Sometimes we add custom fonts to our xcode project.
For example:- Suppose TwCenMT-Bold.ttf is the font name which you have added to your xcode project, but when you access this font, it does not reflects.
*Reason:- * This font does not cont...
Hibernate with multiple Databases/SessionFactory.
Hibernate with multiple databases/session factory :
To use Hibernate to support many databases, We have to follow following steps.
1 - We have to create multiple SessionFactory/cfg.xml files for each Database we want to use/connect.
2 -...
How to create Ruby hash in just one line ?
When we have to create a hash in just one line we can use this particular ruby code:
@users = User.find :all
user_hash = Hash[@users.map {|x| [x.id, x.name]}]
Here we created a hash in just one line with Id as the key of hash a...
How to enable slow query logs
For this we need to edit my.cnf file (This should be in /etc directory)
we need to enter following lines :-
log-slow-queries=/logs/mysql/slowQueries.log
long_query_time=30
This time is in seconds , so if any query wi...
How to use regular expression in mysql query?
By using REGEXP function of mysql.Below is the example via a MySQL Query
select empId,empName from tbl_employee where empName REGEXP [1-4]$;
This will select the data of all employees whose name ends with either 1 or 2 or 3 or 4
How to upload file in PHP
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<form action="upload.ph...
Web Based Mobile Testing
Website: http://www.keynotedeviceanywhere.com/
Keynote's DeviceAnywhere platform provides an end-to-end solution for testing and monitoring of mobile apps and websites to ensure the quality, performance and uptime of your products and service...
Adding tooltip on a div using built-in ellipsis
Here is a way of adding tooltip on a div using built-in ellipsis
$('.mydiv')
.bind('mouseenter', function () {
var $this = $(this);
if (this.offsetWidth < this.scrollWidth && !$this.attr('title'))
$this.at...
Migration in SQL Server
Migeration in SQl Server :
There are several options if one wishes to migrate a database from a SQL Server 2005 to SQL 2008 Server. First of all transferring a database from any version of SQL Server 2000 and above to 2008 version. This Wizar...
How add a toggle button for active inactive in Yii CGridView
How add a toggle button for active inactive in Yii CGridView
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'subject-grid',
'dataProvider'=>$model->search(),
'columns'=>array(
'id',
...
A Very Simple & Easy Javascript Form Validation
Here is a simple way to validate user name and password in an HTML form using java script.
<html>
<head>
<title>
Login page
</title>
</head>
<body>
<h1 style="font-family:Arial;text-align="center"...
Mirroring in SQL Server
Data mirroring refers to the real-time operation of copying data, as an exact copy, from one location to a local or remote storage medium. In computing, a mirror is an exact copy of a dataset. Most commonly, data mirroring is used when multiple e...
Snapshot of any website from its URL
Get the snapshot of any website in php without writting a script
<html>
<head>
<!--[if IE]>
<style>
#frame {
zoom: 0.2;
}
</style>
<![endif]-->
</head>
<body>
<div class="test...
Getting the Code of any site using php script
Open the code view of any site :
<?php
$lines = file('http://www.whoznext.com/'); //Site url
foreach ($lines as $line_num => $line) { // iterate through each line
echo "Line #{$line_num} : " . htmlspecialchars($line...
change time format from 24 hours to 12 hours
Following is the function to change time format from 24 hours to 12 hours, please take a look at input and output examples before you use it
/*
* Return: 24 hours format to 12 hours format
* Input example: 1400, 730, 1205, 0
* Ouput e...
New features introduced in iOS7
Apple has added many features to its iOS7 operating system. Few are mentioned below:-
Story Board in iOS7 app will have to ask user's permission to access the mic.
The user can use [NSArray firstObject]; just like lastObject in previous...
Hiding status bar in iOS 7
One of the changes in iOS 7 API's is hiding the status bar. Prior to iOS 7 we could hide status bar by using :
[[UIApplication sharedApplication] setStatusBarHidden:YES];
But now there is a slight change. We need to add a row "View contr...
How to find out the Coordinates of a page using jquery
Following steps are required to find out the coordinates on a page:
Step1: Download the file from the location
http://code.jquery.com/jquery-1.6.3.min.js
Step2: Write the script under the script tag of the aspx page
...
Appearance Panel In Adobe Illustrator
**Appearance Panel in Adobe Illustrator:**
Appearance Panel is one of the most important panel in Adobe Illustrator which used during in designing Illustrations. There are many things that Illustrator users can find in Appearance Panel. Even m...
How to show the default text on a form textboxes using jquery
Here, in this article when i click on one textbox the corresponding text in this textbox hides, and as soon as i click on another textbox the first textbox text appears.
The following steps are required to make the above task possible
Step1...
How to show popup on mouseover on a link using jquery
Following steps are required for showing a popup on mousehover on a link
Step1: Attach the javascript file from
http://code.jquery.com/jquery-1.6.3.min.js
Step2: Write the following internal stylesheet under the head secti...
Some necessary information to publish the application to app store
To submit an application to the App Store, you need to create an iOS provisioning profile for distribution (App should be signed with these certificate) for that you have to be a member of the iOS Developer Program.
Note: iTunes Connect does n...
How cooler is OpenERP 7.0 than 6.1?
With every new version of OpenERP there are always surprising changes visually or functionally. Lets discuss the very cool new features of OpenERP 7.0 and compare with those of 6.1.
Clean Views:
OpenERP has made the version 7.0 views very ...
Using different Storyboards for different iPhone sizes
If we are using storyboards we can handle different sizes by creating different storyboards for iPhone 4 and iPhone 5 and handle them in didFinishLaunching method of AppDelegate in this way :
Here for iPhone 4 we have storyboard named "Main_iP...
Getting roundedCorner for an Image in Android
Sometimes we need to display images with rounded corners in our several Applications, and this can be done very easily by writing some lines of code.
To get roundedCorner for an Image use the following code:
/**
* This method is used to ...
How to delete elements from array while iterating or delete multiple elements from array simultaneously
Sometimes we may face a situation when we need to remove objects from an array while iterating through the same array. We cannot remove elements from the same array on which we are fast enumerating (for in loop). And if we use the traditional "fo...
CSS Border-radius
The rounded corners are applied to the element's background area, the element's border, and the box-shadow if specified. The CSS3 border-radius property allows you to apply rounded corners to HTML elements without the need to use images or other ...
Access PostgreSQL using IP address
To add a new server connection using an IP address, you need to follow these steps:
Go to the folder PostgreSQL/data, and edit the file postgresql.conf, add the following line at the end of the file and save:
listen_addresses = '*' ...