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
Slide-Out Navigation Panel
Slide-Out Navigation is quite popular nowadays. It enhances usability and gives a different look and feel to the app. Apps like Facebook, Path and many others use this feature. Attached with this blog is a nice library called SWRevealViewControll...
How to make http post request by passing xml using c#
Following function will expect a generic List and serialize into xml and make an http post request and after receiving response it will again deserialize xml into generic list:-
public customer CreateOrder(customer objCustomerRequest)
...
Form submit in javascript
I would like to share an interesting feature that I found as I was trying to submit form through JavaScript.
If you are trying to "form.submit()" through javascript and any form elements present with the name of "submit" in it, then in that case...
SEO Techniques and Its Business Value
What is SEO
A three letter word SEO, seems to be very short but having so much worth in its significance. SEO stands for Search Engine Optimization which means optimizing websites for the search engines so that they can match the exact guidelin...
Working with triggers in mySql Database
A trigger is SQL code which runs just before or just after an
INSERT, UPDATE or DELETE event occurs on a particular database table.
Creating a Trigger:
Consider we have two tables:
CREATE TABLE `blog` (
`id` mediumint(8) unsigned...
How to Add Selector to the Button in Android
Adding Button Selector
to add button selector to the button in the android xlm layout file, create a new xml file named button selector and use the following code :
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:andr...
UICollectionViews
A relatively new feature of iOS is the UICollectionViews.
The UICollectionView allows the programmer to arrange the data into cells, which in turn can be arranged in grids. The photos in the photo gallery of phone can be seen in thumbnails, a...
Time Difference between two timezones - Php
Many a times we need to take out time difference between two time zone using Date class in php. We can use the following code :-
$timeZone = ['Any Timezone'];
$default = date("Y-m-d h:i:s A");// UTC
$dateTimeZone =...
Internet An Effective Marketing Weapon
In the early stage of the nineties when the Internet has just reached our doorstep, then we considered it as much puzzled and useless thing, as it was a new technology to everyone and we all were not familiar with the basics of the interconnected...
How to download any CSV file while working with PHP
/* Header file to includes.
fopen is use to open a file in write mode here.
fputcsv function is use to output the CSV file having the name of columns and data coming from database. */
header('Content-Type: text/csv; charset=utf-8');
header('...
Knowing the "graph"
A histogram,
You might have seen after you open Photoshop, using camera raw. Its a graph playing with color highlights and tones of an image.
While it may be intimidating looking, histograms are nothing really all that complex. What they repres...
To add pause/stop functionality on mouse hover using easySlider1.7
To add pause/stop functionality on mouse hover using easySlider1.7
Step 1: Open easySlider JS file in editor like notepad, notepad++ etc.
Step 2: Go to line number 56, and add below bold marked line.
continuous: false,
numeric: ...
Forming Tree structure in cakephp
Sometime you may need to form a tree structure from the values of the database table.
For Ex-
You may need to form a hierarchy of categories and subcategories like this:
My Categories
Fun
Sport
Surfing
...
Understand Drupal patches and apply them using git
Hi All,
I was confused about how to implement patches into our Drupal modules or in other files. There is a way to apply these patches automatically. We have to install git bash and then we can apply available patches and as well as create new...
How to get Rounded Corner bitmap ?
In many android applications, we need to set rounded corner image in ImageView. The bad part is that ImageView does not provide any property for this. So for this the following method will help you get rounded corner Bitmap:-
public static Bit...
How to display phone book contacts in iphone through coding
The following code will present viewController which will show all the contacts of phone book
Please do add Addressbook.framework in your code. Also import AddressBookUI file to use the following code.
ABPeoplePickerNavigationController *pic...
Sending custom emails in Magento Without Template
*It's simple to send custom emails in magento by using zend mail function
with success and error messages see the following code *
public function postAction()
{
$params = $this->getRequest()->getPost();
$re...
Redirect urls in magento with parameters
we can redirect urls in magento with parameters by using magento's default
_redirect() function
you have to create an array for parameters you want to use in url
see the following example:
$param = array(
'_query'=&g...
How to Make A Simple DropDown in HTML With The Help of Jquery and CSS
You Can Use Below Code to Make A Simple Drop Down In HTML With The Help Of Jquery And CSS
***Jquery***
<script>
$(function(){
$('.DropDown > ul > li').on('click', function(){
$('.DropDown ul ul').slideUp();
...
Objective C coding style
Language
US English should be used.
Preferred:
UIColor *myColor = [UIColor whiteColor];
Not Preferred:
UIColor *myColour = [UIColor whiteColor];
Code Organization
Use #pragma mark - to categorize methods in functional groupin...
How to set default value of column with datatype varchar to empty string
We usually face this kind of issue when we are doing programing with respect to a column with varchar data-type. If we don't add any value to a particular column it takes it as NULL. Thus forcing the developer to check for NULL every-time other t...
How to Use Priority and Severity in Bug Tracking Tool
The terms Priority & Severity are used in bug tracking to share the importance of the bug among the team & to fix it.
Priority: The priority status set by the team lead & he is consulting with client as per project requirement.
Pr...
How to save file in document dicretory
Following code will help you to add or delete file from document directory.
-(NSString *)saveFileWithOldName:(NSString*)oldNameStr
{
NSArray *dirPaths;
NSString *docsDirs;
NSString *tempStr2;
dirPaths = NSSearchPathForDire...
Date difference between two timezones in PHP
Here is a short function to get the difference between two timezones in PHP:-
function diff(){
$date1 = "2014-02-27T20:00:00+04:00";
$date2 = "2014-02-28T07:20:00+08:00";
$diff = abs(strtotime($date2) - strtotime($date1));...
Get timezone from address or zipcode or address
Hi,
We can get user's timezone if we have only address or zipcode of that user. First of all we need to get latitude and longitude then using these lat and long we can get timezone. However this is 2 step approach but it is much accurate becau...
How to fetch data from XML file and insert into SQL Database
Fetch data from XML file and insert into SQL Database
Step1. Create a Stored procedure in Sql database which takes one input parameter and one output parameter which returns Success /Failure
Create PROCEDURE [dbo].[SP_Insert_...
How to filter hasMany related model records in cakePHP when using find function?
Lets say we have models User and Friend related by User hasMany Friend relation. If we are required to pull out all users along with their female friends then how do we do that?
Usually people think like this :
$this->User->find('all...
auto-fill drop-down options on basis of previous seclection
Following example illustrate filling state (province) drop-down on basis of country.
Drop-down HTML
<select id="countryDropBox">
<option value="">--Select Country--</option>
<option value="1">India</option...
Communicating with server via API to get data
Occasionally the programmer needs to communicate with the server to send and receive data from the iPhone. Usually the communication is done to get data from the database that is in the server. To communicate with the server the programmer has to...
Getting address and city from lot/long in Java
This blog will help you in getting geographical information of any location by using latitude/longitude.
By using Java API Geocoder, it is easy to get geographical information of any location. The response will be in JSON or XML format.
Wri...
What is Leverage Browser Caching and how to use it.
Here is the brief explanation of Leverage Browser Caching and how to use it to improve website performance.
When a web browser i.e. Chrome, Firefox, Internet Explorer, Safari etc displays webpage it has to load several things like css files, j...
zip/unzip file on linux server through command prompt
Create zip file of existing folder on linux server use below command -
"zip -r folder.zip target_foldername"
To unzip an zip file -
"unzip filename.zip"
Restart MySql on linux server through command
To restart MySql on Linux server through command prompt follow the below steps -
i) First go to root through -
"sudo -i "
ii) Then use the below command -
"service mysqld restart"
Saving an image into SDcard in Android
Sometime we need to save images on SDcard that we click or get from server in many applications, and you can do it very easily by using the below code.
To save Images on SDcard on Android Device, write the following code:
ByteArrayOutputStr...
How to rotate a image with the help of css
Image rotate with the help
of css3 Animation
HTML
<ul>
<li><span><img src="img/left.png"width="20"height="20" /></span></li>
</ul>
css
nav ul li span.animate{
...
Set column name for auth component of users table
When we use Auth component for login in cake php then we are restricted to use 2 column in users table 'password' and 'username' .If we want to use our own column name then follow these steps: Step 1: Include the below function in YoursController...
Basic understanding of MVC application
In the MVC application we have architecture with three main directories Model, View and controller. These sections are as follows:
Model: It contains the models or classes that we are going to use in our application. For eq. Person.cs class wi...
In cakephp different session timeouts for admin and front end users
In cakephp you can handle different session time outs for admin and front end users.I added the following lines in core.php file and it works for me.
if(strripos($_SERVER['REQUEST_URI'],"admin")) {
Configure::write('Session', array(
'd...
How to get Cookies from UIWebview
The following code will get the cookies form the sever and will store in the array.
Get the appropriate cookie from the array by its name.
- (void)webViewDidFinishLoad:(UIWebView *)webView {
NSHTTPCookieStorage *storage = [NSHTTPCookie...
Send iOS App request on Facebook in iOS
In terms of publicity or advertisement of an iOS app there is a feature where we can make our iOS app social or can share on facebook.
Accepting a request from a app will direct the person to the Canvas Page URL of the app that sent the Request....
Types of Regression Testing
Regression Testing
Re-executing the old test cases across multiple releases or built to make sure that changes or bug fixes has not affected the existing functionalities is known as regression testing.
Whenever some code changes or bug fixe...
Problem with required feed url fields in feeds importer
Feeds module provides functionality to import contents from feed urls.
We can setup feeds module according to:
https://drupal.org/documentation/modules/feeds
There are 2 ways to import feeds
1: attach to any content type
2: Use a sta...
Different location manager delegate methods of iOS 5 and iOS 6
The delegate method iOS 5 used was as follows
-(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
This delegate method used to access two locations name...
Why the Name Selenium?
Primarily, Selenium was created by Jason Huggins in 2004. An engineer at ThoughtWorks, he was working on a web application that required frequent testing.It came from a joke which Jason cracked one time to his team at that point of time another a...
NVL fuction in Oracle
NVL function helps you convert a null to an actual value.
Syntax:- NVL (expr1, expr2)
In the syntax:
expr1 is the source value or expression that may contain a null
expr2 is the target value for converting the null
Guidelines for N...
Make a good design
1. Have a professional logo--and link it to your home page. "Your logo is an important part of your brand, so make sure it's located prominently on your site. "Use a high-resolution image and feature it in the upper left corner of each of your p...
Access restriction: not accessible due to restriction on required library
When i was working on a class i have got the following error..
Access restriction: The type BASE64Encoder is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar
I resolved it by looking up on google, ...
How to make group by query in MongoDb
Making a group by query in traditional database like MySQL,MySQL etc in quite easy but when its come to NoSQL like MongoDb we have to twist it a bit to get result we want :
There are two ways in which you can do group by in MongoDb :
a) Usi...
Sample application of diffrent types of Android Animations
In this sample application you will find different types of animations. For example :- Bounce, Fade In/out, Blink, Sequential Animation etc. If you want to use any animation in your app you just have to add that particular piece of code in your ...
Synchronization in QTP
When you run a script in QTP , then it may be possible that application may not respond with the same speed of script. Synchronization is the process of adjusting the time gap between script speed and application speed .
Method that can be imple...