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
Clean Up In Illustrator
Clean up option,as the name suggests,is used to Clean up the files by Removing Unwanted points,Empty text paths or objects from the file.
It is one of the Illustrator's powerful option,which can save a lot of time &manual work efforts.
When...
Color range: Selection Command
Color Range: Selection Command
In Photoshop we often use several methods for selecting a particular portion of the layer or image. Color range is one such method through which we can select a specific portion of an image.
It is quiet good w...
Inverse Mask
Sometime we need to use an inverse mask in flash ( like a normal mask but it was just inverse )
Here's an example of an inverse mask, We can achieve that using Blendmodes.
We will use ERASE blendmode to get a nice inverse mask effect. But th...
Dynamic horizontal scroller
Hello All,
The following code will help you to make dynamic horizontal scroller. This means that on adding content or images the width of the container automatically increases using jquery.
If anyone wants to make horizontal scroller which is i...
Break up database for a financial year in OpenERP
Create backup for the database first.
Restore again in a new database, with whatever name or with new financial year succeeding the name.
Now perform the following tasks:
delete all the sales order from the sale_order table.
...
add 'in stock' filter in product collection in magento
Add 'in stock' filter in product collection in magento
To get product that is in stock apply the below filter to your product collection -
$productDetails = Mage::getModel('catalog/category')->load($cat_id)->getProductCollection()...
Another mysql daemon is already running with the same unix socket
Another mysql daemon is already running with the same unix socket
You got the above message from server, when are trying to restart the MySql from command promt. SO, to avoid the above error and start the MySql follow the below steps -
1 -...
DoubleClick for Publishers
Types of line Items in DFP:
Sponsorship: A sponsorship line item is high priority line item sold on the basis of (CPM) Cost Per Thousand/Mile impressions, (CPC) Cost Per Click and (CPD) Cost Per Day.
These line items are always goal based an...
Renaming a database in PostgreSQL
For renaming a database in pgAdmin:
Go to pgadmin and select 'postgres' database and click on the query tool; run the query:
ALTER DATABASE old_dbname RENAME TO new_dbname
Example:
ALTER DATABASE test_ky RENAME TO kwality(14-15)
Password hasing in CakePHP
CakePHP uses a Security class for hashing the passwords.
I am writing some examples below that will definitely help you out in understanding the different ways of password hashing in CakePHP:
echo "I am md5 CAKE:".Security::hash("dinesh","md5...
Making 'sales' module load quicker
A company which is using OpenERP for their sales operations may face the problem of loading sales module quite slow. It can be difficult to handle a situation where there can be many sales counters, the customer and salesman waiting for more than...
How to connect to your MySQL database from a PHP Script
Create simple Mysql connection with the help of PHP code
<?php
$hostname = 'localhost'; //define the hostname here
$username = 'root'; //define the username here
$password = ' '; ...
How to add Twitter account in your iPhone
The following code will help you to create your twitter account in your iPhone through coding. Also please note this code will only run in ios7 or later.
-(void)createTwitterAccount{
ACAccountStore *store = [[ACAccountStore alloc]init]...
How to export PSD layers to separate files
Hi Guys, This is a simple tip related to the Photoshop scripting power which can help you in many situations to complete your task faster and smartly.
I am going to tell you how to export several layers of a PSD document to the respective s...
Find controls of master page on child page
We can easily fetch controls of master page on child page.
Consider the following example:-
In online shopping site you need to add or remove items which shows on master page based on added items in cart page (Cart page is a child page).
...
Problem with password encryption when moving from core php to cakePHP
Hi all,
I had a requirement to move a project from core php to cakePHP framework. Migrating code was clear as I had to just modify syntax of code-base. But the problem came, when I had to implement login authentication with username and passwo...
Smoke Font Animation
Hello Friends,
The following codes below is an animation effect of css3 by implementing this code the fonts will comes in smoke style.
HTML
<h1><span>C</span><span>S</span><span>S</span><span&g...
Levels in photoshop: Removing color cast
Levels in photshop: Removing the color cast
Within photographs or in film sometimes we gets a color cast effect which departs the image from being Natural. Color cast is nothing but a tint of specific color over the image making it look like a...
Rigid Body in Maya - Dynamics
Hey Guys ,
In the following tutorial , I am gonna try something fun , i will try to animate a classic leg spin delivery that bowlers bowl in the game of Cricket , using Rigid Body solver of Maya .
Before we get our hands dirty in Maya , ...
How to make use of corcdoc API
Below is a sample code base to convert PDF files to HTML5 template making use of well known tool Crocdoc :
$_product = $observer->getProduct();
$productid=$_product->getId();
$read = Mage::getSingleton('core/resource')...
Marshalling and Unmarshalling in Java
JAXB is Java Architecture for XML Binding which allows to map Java objects to XML and XML to Java objects.
Marshalling example : Converting a Java object into a XML file.
import java.io.File;
import javax.xml.bind.JAXBContext...
Print multiple copies of an OpenERP OpenOffice report
Sometimes we require to print more than one copies of any report for example an invoice which may have two or three copies, one for customer, one for salesman and one for Accounts department or a payment voucher to be printed twice.
I got the...
Password Recovery in OpenERP
Can't log in? Forgot Password? Many users and many passwords?
All these questions are very common in daily operations of your OpenERP. If you are admin then you have all the access to change or recover passwords for other users as well.
Thi...
Backup and Restore Database Using OpenERP
The easiest solution to create backup and restoring you database in OpenERP is itself provided by OpenERP.
To create backup and restore for your OpenERP database, you have two options: 1.) PostgreSQL 2.) OpenERP.
The first one is simple and ...
Clean ugly HTML
CakePHP do help us a lot with its own 'Form' and 'HTML' helpers but it often outputs some very ugly and hard to read HTML.
This little trick will make it a lot cleaner.
Create a file named app_helper.php in your app's root directory.
Ne...
Calculate the distance between two locations through HQL in Java
Sometimes we need to calculate the distance between two locations. And to save the time of iteration we can get filtered results through query by apply functionality of calculating distance in the query.
Suppose we have two tables Events and ...
How to get complete address from latitude/logitude
Let's find out the latitude/longitude first to find out the address.
1) Add CoreLocation.framework under Targets -> Build Phases -> Link Binary With Libraries
2) Import in your view controller where you need to find out the address.
3)...
Implements Runnable Vs extends Thread in java
Implements Runnable Vs extends Thread in java
There are two ways by which we can create custom java thread class
1. By using Runnable interface (implements Runnable)
2. Extending Thread class (extends Thread)
I read a statement for T...
Finding address from latitude longitude in ios using CLGeocoder
CoreLocation framework of iOS provides method for finding address of a location using its latitude and longitude (also known as ReverseGeocoding). Following code snippet explains how to use it :
CLLocation *location = targetlocation;
...
How to display a single text view in different colors
It can be done simply by setting your text as below :-
textView.setText(Html.fromHtml(getString(R.string.starting_up_message)));
And in your in your string file define that test say like this
<string name="starting_up_message">&l...
Inheritance in Hibernate
Sometimes we need to apply inheritance in Hibernate as per our requirement. Here I'm explaining the Hibernate Inheritance using "Table per subclass: using a discriminator".
Suppose we've a class User with subclass Student. And in this approach...
Curves Adjustments: Quick review
We often use curves adjustment within the Image menu in Photoshop for changing the contrast of colors within the layers or image. This option is quite good to Enhance the overall contrast and the tonal range for getting a quick result in small ti...
Spring 3 MVC configuration.
Introduction to Spring 3 MVC Framework
The Spring web MVC framework provides model-view-controller architecture and ready components that can be used to develop flexible and loosely coupled web applications. The MVC pattern allow us in separa...
Best way to create a singleton class in Objective-C
There are different ways to create a singleton/shared instance of a class in Objective-C.
Here I have explained two most preferred methods for it and both are thread safe.
1) Using "@synthesize"
#define SINGLETON_FOR_CLASS(yourclassname...
UITableView or UIScrollView scrolls to top not working.
UIScrollView has a property called scrollsToTop which sets y of content offset of scrollview to zero on tapping the statusbar. But there might be situation when this functionality does not work.
According to apple documentation "The scroll-to-...
Parition of log files
Generally we got errors at the time of development so logs are the best place to find out the errors. Its easy to deal with log file on our local machine but if there is a live site and we have to check out for logs and logs are getting larger so...
How to calculate distance from CLLocationCoordinate2D
Using the following code we can calculate the distance between two CLLocationCoordinate2D.
+(double)calculateDistance:(CLLocationCoordinate2D) f to: (CLLocationCoordinate2D) t
{
// CLLocation *locA = [[CLLocation alloc] initWithLati...
Double Click for publisher
DFP(Double Click for publisher) previously or in past it is known as Google Dart, DFP Small Business is an advertisement service run by Google. It is freely hosted ad service provides divers features which is very useful for managing process of o...
ORM Methods in OpenERP
Every object in OpenERP is based on OSV i.e Object Service and this service implements full Object-Relational Mapping enabling developers not to worry for the simple SQL operations.
In OpenERP, we have such ORM methods that are very useful. He...
Events in OpenERP 6.1
On Change (on_change)
The on_change is the attribute that describes what will happen when a field value changes, what changes in other fields or an event will take place.
Syntax
<field name="field_name" on_change="function_name(field1...
Flaws of "and" and "or" operators in PHP
Today, When I was doing some programming stuffs and I found out that there is serious flaw in the and , or logical operator of PHP.
Im not talking about the symbol || and && logical operator. Im talking about the and and or logical op...
What you need to know to start Testing career ?
Before starting career as a tester, I think we should at least know the answers of the following.
Do you really want to make career as Tester?
What is testing?
Why we do testing?
What are the different types of testing?
What are differen...
How to test My SQL Injection
SQL injection attack can access the sensitive data from the database. The attacker can Insert, Update, Delete and execute the administration operation.
Detection:
Authentication Forms : When user enter the web form, chances are that the user...
Managing the two versions of OpenERP on the same machine
Sometimes you require to run two versions of any software on a same machine. To run OpenERP with two different versions, you can have issues even if you try to use different browsers or windows at the same time.
To run OpenERP 6.1 and 7.0 vers...
Get a many2one field in a list with domain
To get a many2one field of another model in your model as a drop-down list, you have to define a column or a field and a write a function for it.
Suppose, you want to get a list of invoices in a drop down list based on the customer selected o...
Technical Terms Used in Testing
Following are some of the technical terms used in Testing:
Acceptance Testing: Acceptance testing is a testing which is done to check whether or not the requirement of the specification are fulfill or not.
Alpha Testing: It is one of the mo...
Hurdles and Drawbacks in Automation Testing
Automation Testing is good for Regression Testing because after every sprint, testers have to test the whole application.
Automation testing although reduces the tester effort a much but still it has few hurdles and drawbacks.
Few of them are ...
Languages You need To know to learn Selenium
Selenium is a free open source automation testing tool Which is used for the automation testing also it is used for web based application. We can use Selenium in different types of browsers and platforms for testing.
Selenium is very strong, ...
Open Source Test Management Tools
Test Management Tools are very useful for Software Testing teams. If they use any test management tool then they can handle their testing process in a proper way. Test Management tools manages bug tracking, client's requirements, test plan, test ...
Automated Open Source testing tools Comparison
Selenium- Selenium is a testing framework for web applications. Selenium is a suit of tools for web browser automation and it is composed of:-
Selenium IDE
Selenium RC
Selenium Webdriver
Selenium Grid
It provides a test domain-speci...