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
Spring @PostConstruct and @PreDestroy
Spring Framework @PostConstruct and @PreDestroy annotations are used to just like life cycle callback methods. @PostConstruct and @PreDestroy are used widely for the process of bean initialization and to free resources at the time of bean destruc...
Life Cycle and Callback Methods in Spring Bean
Spring Framework defines some callback methods at the time of bean life cycle. These callback methods are used to perform some useful operations between the bean initialization to bean destroy. Spring provide two interface InitializingBean and Di...
OpenERP module configuration file
How to Make an OpenERP module configuration file?:
It is very simple to Create a module in OpenErp. All you need to know is the basic structure of any module to be used in the system. So if you want to make a simple module in openerp, here ...
What is Glimpse in asp.net and MVC?
Glimpse is an open source tool to Check the performance of every page in asp.net OR MVC.
You can install it in very simple way.
1. search the key word Glimpse in NuGet and you will find different versions for Glimpe Asp.Net, Glimpe MVC, Glimpe ...
How to deal with Out of Memory Exception in Android ?
How to deal with Out of Memory exception in android:
In android we encounter with out of memory exception many times. The reasons are we don't have expanding memory and completely dependent on device
the memory available on phone. So we don't...
Auto detect Components in Spring.
When we define the annotations @Component, @Service, @Repository, @Controller with classes, Spring automatically scan and identifies those classes and register the Bean definition with the ApplicationContext.
The @Component annotations are:
...
Spring Collections Examples
Spring supports collection framework, the list of collections Spring framework supports are List, Set, Map, and Properties. Spring allow us to inject the values at the time of bean definition in XML configuration file.
Tags used to inject coll...
Spring Inner bean
Inner beans in spring are those beans which are under the scope of another beans. In spring framework normally to inject a bean, we define it first on container with some id and pass the reference of that bean wherever dependency is needed, using...
Block variable in objective C
Block access the data in normal way as the other normal function do. Block can access any class variable or function variable out side it but cannot modified it.
int x= 111;
void (^printXAndY)(int) = ^(int y) {
printf("%d %d\n", x, y);...
Delete all documents form solr
Hello all,
If you want to Delete all documents from solr, follow any one of the step given below.
There are 2 ways to do this.
1. http://localhost:8983/solr/update?stream.body=<delete><query>*:*</query></delete>&a...
idref Element in Spring
Spring idref Attribute : The idref is an attribute used in spring configuration. In spring, idref is used to pass the id or name of a bean as a string to other bean. Before using the idref, ensure that the bean must be defined in configuration w...
replacement of the deprecated sizeWithFont: method in iOS 7
we all know NSString method sizeWithFont
[@"abacfe" sizeWithFont:[UIFont systemFontOfSize:11] constrainedToSize:maximumLabelSize lineBreakMode:NSLineBreakByCharWrapping];
deprecated in iOS 7. So here is the replacement of this method.
...
@Resource annotaion in Spring
@Resource annotation allows you to specify a name of the injected bean. @Resource annotation takes a 'name' attribute which will be treated as the bean name we want to inject in the class. In other words we can say, it follows by-name autowiring ...
When to use copy Attribute in declaring a property in objective c
We all use attributes in Objective C to declare properties. Attributes commonly used are strong, nonatomic, weak, assign. But we never take it seriously why we are using these attributes.
One of the common mistakes I often see is the wrong us...
BeanPostProcessor in Spring
BeanPostProcessor :- It is an interface that defines callback methods by which you can provide your own instantiation logic and your own custom logic before and after the bean creation. along with this you can perform some additional logic or y...
What is use of synthesize?
The @property and @synthesize keywords simply automate the creation of getter and setter methods,
@interface MyClass : NSObject
@property int value;
@end
@implementation MyClass
@synthesize value;
@end
The @property keyword d...
depends-on attributes in spring
dependsOn attribute for loading the depended beans referenced by another bean. dependsOn is a bean tag that can indicate bean depends on another bean .
In this Example we can see when ApplicationContext Container is initialize first it...
How to use Autowire With Qualifiers?
In Spring we use @Qualifier to indicate which bean we want to qualify to autowired on a field.
when we create multiple beans of the same type( for example: Department) and want to autowire only one of them with a property in some other class (...
__weak and __unsafe_retained
__weak and __unsafe_unretained are the ownership qualifiers introduced by LLVM Compiler 3.0.
By default all pointers are __strong under ARC which means that when an object is assigned to a pointer, it is retained for as long as that pointer re...
Interface and Property
Interface
Interface is where you define the attributes and methods of class.
In objective C the file where the declaration of class is done is called the interface file and the file where the class is defined is called the implementation file...
XML Configuration based spring framework example
Hello guys
Bellow example will help you to develop XML configuration based spring framework project,here I have develop example to display "Hello Bhagwan" message using beans.
Please create project and follow bellow setps:
Step :1 Add ...
Social Single Design Effort
Assisting Pran with designing the PSDs of the Social Single Project.
Email from Pran below -
Hi Mayank,
I need Vickrant for approx. 5 hrs per day. Certain pages for socialsingle project need to be designed before Kushal can do the html de...
How to use Filters to Customize Scanning?
In Spring context XML file, Filter has a sub-element 'context:include-filter' having two attributes as 'type' and 'expression' attributes that indicate to Spring container that 'type' is of regular expression whose value is been provided by expre...
Mutable and Immutable Objects
Object which we create can either be mutable or immutable.
For example:
Immutable : NSString *str = [[NSString alloc]init];
Mutable: NSMutableString *str = [[NSMutableString alloc]init];
When we edit Mutable Object it will chang...
How to exclude a bean from auto-wiring?
When configuring beans in configuration file, set the "autowire-candidate" attribute of the bean element in .xml file to false, by doing this the container will exclude that specific bean from auto-wiring.
By using the below example we can eas...
Installing RMagic on Mac Mavericks and Issues explained
Installing RMagic 2.13.1 is generates issues on Mavericks when working with Brew...
The problem is that the latest version of ImageMagick on Brew repos conflicts with RMagic version..
So you need to build older versions of ImagicMagick like 6.8...
Basic Block Syntax using Objective C
Block are piece of code introduced in ios 4.0. Block are used to make code cleaner and reduce dependency from delegates.
To use the block first we have to declare the block and then its definition.
Here is the syntax to declare to the Block...
Restoring SQLServer Databases from backup files
There are many ways to restore MSSQL Server database from backup files(.bak) like using tools available in SQLServer Management tools. But we face problems when the backup was not created on the same machine or it was shared by someone else or i...
Logger class in PHP
Hi
This is a simple application logging class which you can use in your PHP project. It currently provides two methods, one for logging messages and another to log a dump with an optional message. I will add the streams support and stack tra...
How to Generate Excel file using Apache POI in java
Hello Guys
Bellow code will help you to generate excel file in java. Herebelow I have used apache poi jar file version: poi3.8.jar .
You can download jar file from given bellow link
http://poi.apache.org/download.html
Now Create ExcelExa...
Form Validations in HTML5
Different type of validation for HTML5:
1. Required Attribute: It is used when the value before submission of a form in not filled.
It is sometimes known as Mandatory or Compulsory field.
Use of "required" attribute.
Example:
<f...
How to display location on Google Map in JSP in JAVA?
Sometimes we need to display Google Map on a JSP page, for this you just need pass lat/long to JSP. Use below code to initialize map in script:
var marker = null;
var map = null;
var markers = [];
function initial...
Exploratory Testing
Exploratory Testing:-
Exploratory testing is about exploring, finding out about the software, what it does, what it doesnt do, what works and what doesnt work.
The plainest definition of exploratory testing is test design ...
How to get aspect ratio of an Image in java?
Sometimes we need to get aspect ratio for an image in Java to fulfil our requirement. You can use the below code to get aspect ratio for an image in Java very easily:
Define the dimension boundary of which you want resized image as below ( h...
usr/bin Permission
Hello All,
Some time many of us get stuck in providing permission to folder usr/bin, for this first you need to go to the folder to provide permission.
We can find this folder by following steps:-
1. Open Finder
2. From menu bar Select ...
Best Marketing Plan for Mobile Gaming Application
This blog is the continuation series of Mobile Application or Game Marketing Techniques Part 1 in which I described brief information on the marketing techniques required for a mobile application or a gaming app. Here in this blog you will see t...
Mobile Application or Game Marketing Techniques Part 1
Hi guys, as you all know that developing a product and promoting it in the market are two different things. A product is useless until and unless it is accepted by the targeted audience for whom it has been developed. So whenever a product is lau...
HOW TO SET HR-Payroll IN OPENERP
Hi all,
To configure the setup in OPENERP, i have provided the method/solution below, you just need to follow the steps one by one.
SOLUTION
Go to Settings-> Configuration-> Human Resources (this will Install your countrys payroll.)
...
How to Create Google Analytics Account?
Google Analytic is one of the best tools for analyzing website's traffic data and also enables us to track the user's location. Its a powerful web and mobile analytic solution that is easy to use. With this powerful and free service of Google,we ...
What is Software Testing?
What is Software Testing?
Software testing can be considered as health checkup of any developed application or software. This can be achieved by investigating the application by executing it under some predefined conditions and/or by inspecti...
How to Create and Retrieve Array in Javascript?
If you want to store multiple values in a single variable javaScript arrays are used.
There are few ways to store values in array in javascript which are mentioned below.
First way:
HTML:
<div id="fruitList"></div>
Javasc...
REST API in joomla 3.4 with SLIM Framework PART 1
Say Hello to Slim World
Today I am going to reveal first part of building REST API in Joomla 3.4 with SLIM Framework. To get started with Slim, here is small introduction about slim framework that is written on SLIM official website.
"Slim is...
How to develop javascript pagination for web pages
Hello guys,
If you want to develop pagination for web pages using javascript, the below code will help you. So do not worry, just follow bellow mentioned steps todevelop pagination with HTML table.
Step 1:
Write CSS in style tag
<s...
eBooks : Part of Modern Lifestyle
EBooks are the modern way of learning and studying. Most of the students prefer eBooks because of their portability, easy to manage, read and more interactive features than printed books. eBooks are not only for students, rather it is also becomi...
How to optimize and repair all databases and tabels in mysql?
Optimization of database tables in mysql is a methodology which must be done frequently to make your database healthy.
As per mysql manual,
OPTIMIZE TABLE should be used if you have deleted a large part of a table or if you have made ...
Return To Merchant Error pay-pal
Hello Everyone,
I am using the express checkout recurring API for Paypal on my site. When I am using the live credentials on the API of pay-pal account, getting "return to merchant"-error and redirecting me to another window instead of the...
HTML5 Brings Future into Technology
HTML5 is the revolution which the web technology needs in today's competitive environment. If we look at the recently launched application in the market then we learn that HTML5 is the future platform for the web application development. Whether ...
Solution for MDM Error SIP-11008 and SIP-11141
If you are facing an error while executing batch for staging process in MDM Hub (Error executing job: SIP-11008, SIP-11141)
Error Description : SIP-11008 :Failed running Cleanse: com.siperian.mrm.cleanse.api.CleanseException: SIP-11141: Excep...
Error, When Installing module on Server openerp 6.1
Hello all,
When we install module in openerp version 6.1 we face the following error shown below and to resolve this issue I have provided the code below, mentioned in solution part.
Error look like this on terminal
<-----------------...
7 points every software developer should know about Linux administration
Linux is a particular field in itself, however, in the event as a developer you know how to handle some regular assignments. You can get great turn around and also can upgrade your application for execution. Simple and effective organization proc...