Friday 31 July 2015

Difference between update() and merge() in Hibernate

Hibernate has different methods to save, fetch, update and delete object. Commonly or the most popular methods to update the data are update() and merge(). The update() method is widely used to update the record while the merge() method is less, because very few users has knowledge about the merge() method. Some of programmers having confusions where to use update() and where should use the merge() method.
In this article we will show you how update() is different from the merge() method. Difference between update() and merge() is as follows:
update() and merge() both methods are used to update the db row if it already exist. But if object does not exist in db already then the update() method will throw the exception while merge() will create the new entry in db for that object.

For full blog about Difference between update() and merge() method visit FindNerd.

Findnerd allow users to ask questions on various programming languages for ex- java questions and answers is one of them, and the best thing about FindNerd is- its response time.The developer community of FindNerd consists of experienced developers in various fields and are ready to help you.

Thursday 30 July 2015

Important checkpoints before uploading the iOS App for Approval

Getting the approval from the Apple store for iOS App sometimes become a very difficult and long task. The reason for that is threefold:
  1. Due to Apple’s commitment to quality, they spend a lot of time to test and approve an App.
  2. The App’s lack of compliance on certain important guidelines laid out by Apple.
  3. The App’s lack of compliance on certain important guidelines NOT explicitly laid out by Apple but which still has a considerable impact on whether your App will be approved or not.
Here I’ll be focussing primarily on the third. From my experience, I’ve learnt that the following checkpoints need to be kept in mind before uploading an App on iTunes Connect.
To read this full blog on Important checkpoints before uploading the iOS App for Approval please visit FindNerd.
Apart from this you can also read such more important blogs in our Newest iPhone Development Blogs Section.

JQuery on() method

The on() method is used to attach one or more event handlers for the selected elements. It is designed to replace both the .bind() and .delegate() event handlers.
Syntax:
$(selector).on(event,childSelector,data,function,map)
where
PARAMETER
DESCRIPTION
Required/Optional
event
Can attach one or more events to the selected elements separated with spaces.
Required
childSelector
It determines that an event handler should attached to the specified child elements
Optional
data
For additional data
Optional
function
Specifies the function to run at the time when an event occurs
Required
map
Use to map one or more events to the selected elements and to run the function when events occur
Optional



To read full Article about JQuery on() method visit FindNerd.




Wednesday 29 July 2015

Image splitting in Android

Image split can be required by different android puzzle application where there is a need to divide the one complete picture into different pieces.
Here is the function that takes three argument one is the imageview that holds your complete image and the other two are the number of rows and columns.
To read this full blog on Image splitting in Android please visit FindNerd.
Apart from this if you have any query regarding Android Programming you can ask your query at our Android Developer Forum & your query will be resolved by the experts here, in a very short span of time.

Send Push Notification with Custom Data to iPhone device from Java Server Side

This blog will help you to send Push Notifications with Custom data to iPhone devices from server side where server side code is written in Java.
Follow the below code in order to send Push Notification:
  1. Define the below dependency in your pom.xml, if you are using maven:
<dependency>    <groupId>com.github.fernandospr</groupId>    <artifactId>javapns-jdk16</artifactId>    <version>2.2.1</version></dependency>
Otherwise, put the JavaPNS_2.2.jar into your lib folder of your project.
  1. Send Push Notification with Custom Data to iphone device:
Write the following metthod to send Pust Notification with Custom Data to iphone devices:
FindNerd, known for its quick response time, when people ask questions on various platforms, as it is a good resource of Android, C, iPhone, Javascript, HTML, Java Questions & Answers, etc.


Tuesday 28 July 2015

How to load a html page inside another html page in AngularJS

To load a html page inside another html page we usually go forhtml iframe tag in which we can either set HTML file path or any URL from different domain in src attribute. Ex.
<iframe src="http://findnerd.com"></iframe>
In AngularJS we can do that by using ng-include directive, where we can give the path of our HTML page and in will be rendered within the HTML page. Ex.
 <div ng-include="'myPage.html'"></div>
Here ng-include is expecting variable with the name of the file to include. To pass the name directly as a string, we use single quotes (' . . . ').
To view the full article about how to load a html page inside another html page in AngularJS Visit FindNerd.
FindNerd is providing programming queries solutions. Visit us to post your query of android, php, java, c,Javascript programming questions and answers etc., on ask question and get instant solution.



Monday 27 July 2015

Versioning of An Object in Hibernate

As we know that the Hibernate API provide us to save, retrieve, update and delete data features, but it's not just that it provides more than that. In traditional database
programming what we do to check the data is being modified, answer is that we need to create an extra column for the modify status and every time the data is changed we need to fire a update query to update the modify status.

When we use versioning using hibernate, the first time when the object will save in the database, hibernate inserts zero as a value in version number field. And after every time when the object will update, hibernate will increment that version number by one automatically.

To know more about Versioning of An Object in Hibernate visit FindNerd.

You can also ask questions at findnerd related to android, php, c, java programming questions and answers etc., and get instant solutions of these queries.

Thursday 23 July 2015

Binding JavaScript code to Android code

When Building a WebView based Web App in Android, you can communicate with your android client side code through your Javascript code.
You can call any method of Android client side code on any triggered event on JavaScript code.
For example, the following code will call the showAndroidDialog() in your Activity on an onClick event of a button in your JavaScript code.
To read this full blog on Binding JavaScript code to Android code please visit FindNerd.
Apart from this if you have any Android programming queries you can post your query at our Android Developer Forum & your query will be resolved within shortest possible time frame.

A Real Animated Story :)

Cartoon, a sophisticated creation yet simple character to define and understand that has artificial emotions incorporated in it. They can make us smile, laugh, weep or cry. They have the kind of power that brings out the emotions residing inside us.

We were little when our deep relation with cartoons spawned. Spending hours watching the animated characters doing funny activities, seeing them making weird moves that makes us laugh, keeping all the works aside and watching every single episode in lieu of completing the homework and seeing them running all day long :-)

Cartoons have always been an enjoyment and relaxation. The humour they create can release any kind of stress generated as a result of daily working hours, Like one can never get tired of watching Tom & Jerry :-) Every time it plays, it creates the same humour and a louder laugh than before.

But a person sitting on the either side television isn't familiar that how difficult it is for the creator to direct a well going soothing animation. To Read full blog about A Real Animated Story :) visit FindNerd.

You can also read such more blogs at our Startup Stories Development Blogs Section.

Wednesday 22 July 2015

Playing sounds in Android

Copy your sounds in raw/ folder in res/ . If you do not have raw/ folder then make one by right clicking on res/ folder, click on Android resource directory and then giving directory name as “raw” and selecting resource type as “raw” and then copy your sounds in this directory.
To read this full blog on Playing sounds in Android please visit FindNerd.
If you have any queries related to Android Programming than you can ask your query at our Android Developer Forum.

How talent is luring technology to smaller towns


Resources have to be made available for people to learn to adapt to them. In the past, people traveled by foot to major cities to get their hands on better seeds and fertilizers. The ones who took the pains, fared way better than the ones who dint, even if they ploughed their fields better and worked harder.

As progression refined us, we started moving to bigger cities for learning our trade with complicated machines, which guaranteed better jobs. The ones who stayed back in their smaller hometowns had fewer opportunities and hence lesser development.

As technology expands the digital dance floor, participants from the remotest of places are presented with an opportunity to boogie with the big league. Technology has essentially balanced the playing field by providing a ready-made stage for each and every one of us.Read more at FindNerd about How talent is luring technology to smaller towns.

Tuesday 21 July 2015

AngularJS Controller

AngularJS applications are controlled by controllers. A controller is a JavaScript Object, which is created by a standard JavaScript object called constructor. In below example lastName and firstName are two properties of controller object demonstrated below.
To read this full blog on AngularJS Controller visit FindNerd.
You can read such more hot and trendy topics on AngularJS at our Javascript Development Blogs section.

Tips for Offshore Partner Assessment

How to assess an Offshore vendor to Outsource your technology needs

Outsourcing refers to contracting a 3rd party organization to get work done whereas Offshoring refers to getting the work done in a different country.

So, here the context is Offshore Outsourcing where the company is looking to hire a vendor outside its country to get the work (here software project) done. The objective of this article is to educate the companies to finalize an offshore software vendor that it can outsource its technology work to.
Where does the research begin?
1)There are a number of freelancing websites like oDesk, Elance and Guru where one can search for a vendor. However, one needs to be cautious as the experience has not always been great there.
2) The company can leverage its contact network and see if someone can refer a vendor that is tried and tested.
3) The company can do an independent research on the internet and shortlist a few vendors. Once Shortlisted, how to choose the right partner?
These are some of the question that arises and to know the answers of all these questions, you can read Tips for Offshore Partner Assessment blog at FindNerd

You can also find such more blogs at FindNerd's Enterpreneur Development Blogs Section.

Monday 20 July 2015

Five Things An Entrepreneur Should Learn From Kids & Implement

“A child can teach an adult three things: to be happy for no reason, to always be busy with something, and to know how to demand with all his might that which he desires.” - Paulo Coelho
 
We, as adults, blissfully live under the illusion that it is us who teach a child the ways of the society and Life. How ignorant of us, don't you think? Kids have their own special ways to understand Life and know exactly how to live it. There are so many things that we could learn from these marvelous beings. My brief stay with my nephew and niece made me realize how effortlessly they taught me a few valuable lessons that could work really well for an entrepreneur.

So, whether you are a budding entrepreneur or a seasoned one, here are the top 5 reasons why kids would make for an excellent board of directors for you!

They’ll teach you to be curious: Kids are like small sized Sherlock Holmes. Always asking questions, challenging the limits, searching for alternatives, and accepting only self deduced theories. Tell a kid not to touch an electric socket; odds are that he/she will. Kids are somehow wired to be like this - curious, inquisitive - asking why, how and why not as frequently as a cat cleans itself.

Read more about Five Things An Entrepreneur Should Learn From Kids & Implement visit FindNerd.

You can also read such more blogs at our Enterpreneur Development Blogs Section.



Friday 17 July 2015

Spring MVC @PathVariable Uses

Sometimes we need to pass parameters along with the url to get the data. In Spring MVC framework, we can customize the URL in order to get data. For this purpose @PathVariable annotation is used in Spring framework.
For example you want to write a url to get user's details as below
http://localhost:8080/app/findMe/user@gmail.com
To view complete blog about Spring MVC @PathVariable Uses visit FindNerd.
You can read such more blogs on Java at our Java Development Blogs Section.
In FindNerd we are offering instant solutions of your programming queries such as android, php, java, c programming questions and answers etc., on ask questions section.

Thursday 16 July 2015

Objective-C Program Structure

In this video blog, you will learn Objective C program structure and line by line understanding of program. To view this Video Tutorial on Objective-C Program Structure please visit FindNerd.
If you have any queries related to Objective C Programming than you can ask your query at our C Programming Questions & Answers section.

Difference between @Secured and @PreAuthorize

@Secured vs @PreAuthorize : Spring Framework provides the different ways to secure the application. Spring Framework has lots of handy tools or methods to secure application. @Secured and @PreAuthorize are the two most popular annotations used to provide method level security. @Secured is used from a long time it is mature whereas @PreAuthorize is a bit new but becoming famous very fast.

These both are used by developer for security but most of developers are confused about these functionality because both are almost same. @Secured and @PreAuthorize are almost same there is very little difference between these two. Both @Secured and @PreAuthorize belongs to Spring Security. But @PreAuthorize is more powerful than the @Secured.

To view full blog about “Difference between @Secured and @PreAuthorize” visit FindNerd.

FindNerd is not only about blogs, forums and tutorials, it has much more than this. Video blogging can be done using FindNerd. We have researched a lot before posting this feature and it had been noticed that many people are learning things by watching videos, instead of reading blogs. After finding positive results towards video blogging than reading blogs, we decided to launch a Desktop Video Recording Tool.

Wednesday 15 July 2015

Using @PreAuthorize on Spring controllers methods



Authenticate controller method using @PreAuthorize annotation : @PreAuthorize annotation is used to provide the method level security. We can secure our methods by using @PreAuthorize annotation. It is very easy to use and it is always preferred over the @Secured annotation.
@PreAuthorize is different in a way that it is more powerful than the @Secured. We can use Spring expression language(SpringEL) to validate the method before calling.
For full Blog of Using @PreAuthorize on Spring controllers methods visit FindNerd.

FindNerd- a social platform for tech nerds allows you to ask questions of all your technical problems. Use FindNerd for the following, increase knowledge, ask tech query, blog post, video post etc.

Tuesday 14 July 2015

How to generate random number in Java?

Sometimes we need to generate random numbers to identify an entity uniquely. We can generate random number very easily by the below code:
/**
 *
 * @return a random confirmation code.
For full blog about to generate random number in Java please visit Findnerd.

You can find such more Java blogs at our Java Development Blogs Section.

Monday 13 July 2015

Spring MVC 3 and handling static content

We can handle static content for example: js,css,images in Spring MVC by using mvc:resources element.
mvc:resources element is used to point to the location of static content with a specific public URL pattern.

For example – define the below line in your application-servlet.xml file. This line will serve all requests for static content coming in with a public URL pattern like “/assets/**” by searching in the “/assets/” directory under the root folder in our application.:
<mvc:resources mapping="/assets/**" location="/assets/" />
Here you can find the complete example:
To Read more about Spring MVC 3 and handling static content visit FindNerd.

FindNerd also facilitate its users to ask questions section in which one can post his programming queries on android, php, java, c programming questions and answers etc. Also, we assure to reach you as soon as possible we see it.

Friday 10 July 2015

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 (for example: Employee). For full blog read here about  to use Autowire With Qualifiers.
You can also post your queries related to various technologies at our ask questions section. Findnerd platform not only allows to just ask questions, however its features are more than that, like you can post blogs, Manage projects, Manage employee’s productivity, share your desktop with others etc..



Thursday 9 July 2015

Do app. Clones make sense?

“I need a website similar to Facebook with all the features exactly same as Facebook…”
“I need a TempleRun game clone…”
“I need a travel website similar to makemytrip.com…”
Being in software services industry, one must have come across these kind of requests from clients at one point of time or another. But do clones really make sense?
To read this full blog about “Do app. clones make sense?” visit FindNerd. As it is an effective technology forum, so here you can also ask questions & look for various programming queries along with their solutions including Android, C, Php, Java Questions and Answers etc.

Monday 6 July 2015

FindNerd Project Management Tool- Comparison with Trello and Pivotal Tracker

There are many Online Project Management products available in the market. All these tools provide different set of features and target various industries.
These tools range from simple task management and list management features like those provided by Trello, which can be applied across a broad range of industries but have limited features. On the other hand, there are products like Pivotal Tracker which provide project management features focused on Agile software development following a rigid process.
View the full feature comparison of FindNerd Project management Tool with Trello & Pivotal Tracker here.
Manage your Projects, Teams, Issues easily and make your project planning much decisive & simpler with FindNerd’s Online Project Management Tool.