BEFORE
AFTER
Hello Friends, In this blog i want to show you, how you can increase your Image quality with minimum Efforts.
ok so lets get started !!!
Steps
Open an image which you want to enhance.
Now make a copy of that...
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
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...
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...
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...
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
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
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 -...
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...
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)
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...
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...
Create simple Mysql connection with the help of PHP code
<?php
$hostname = 'localhost'; //define the hostname here
$username = 'root'; //define the username here
$password = ' '; ...
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]...
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...
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).
...
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...
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 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...
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 , ...
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')...
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...
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...
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...
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 ...
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...
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 ...
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
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...
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;
...
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...
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...
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...
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...
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...
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-...
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...
Using the following code we can calculate the distance between two CLLocationCoordinate2D.
+(double)calculateDistance:(CLLocationCoordinate2D) f to: (CLLocationCoordinate2D) t
{
// CLLocation *locA = [[CLLocation alloc] initWithLati...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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 ...
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, ...
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 ...