Quantcast
Channel: Crunchify
Browsing all 1037 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

List of all Social Sharing URLs for Handy Reference – Social Media Sharing...

Social sharing button loading is an extra overhead on your blog? Well, it should not be in any case. Number of WordPress Plugins out there may not have best way to load different java scripts for...

View Article


Image may be NSFW.
Clik here to view.

What is BlockingQueue in Java and when you should use it? Example Attached

So far I’ve written two articles on Producer Consumer concept on Crunchify. 1st one to explain Java Semaphore and Mutex and 2nd one to explain Concurrent Read/Write. In this Java Tutorial we will go...

View Article


Image may be NSFW.
Clik here to view.

Avoid Duplicate Content Issue while using Content Delivery Network (CDN) –...

At Crunchify we use MaxCDN as our Content Delivery Network partner. MaxCDN is one of the best Content Delivery Network (CDN) provider so far I came across. Last week I noticed some weird search result...

View Article

Image may be NSFW.
Clik here to view.

Got 404 (Not Found) Error? Try adding Redirect 301 (Moved Permanently) in...

Everybody in this world who uses internet must have faced 404 - Page Not Found error at any given time. HTTP error code 404 is the most common error code in WordPress. Being very powerful CMS with...

View Article

Image may be NSFW.
Clik here to view.

ERROR StatusLogger No log4j2 configuration file found. Using default...

Maven dependancies are magic. Are you running Maven Java Project and using log4j into your project? Have you added below to your project’s pom.xml file? Probably the easiest way to get logging into...

View Article


Image may be NSFW.
Clik here to view.

How to Install Maven on Mac OS X manually? Fix UnsupportedClassVersion Error:...

Do you have a new Macbook Pro and is your Mac running on OS X Yosemite version? If yes, it doesn’t come by default with Maven installed. Check this out:bash-3.2$ mvn -version bash: mvn: command not...

View Article

Image may be NSFW.
Clik here to view.

How to Check, Fix and Test Mobile Usability Error? Almost ~530 Errors Down To...

Mobile Usability is a big word now. On April 21st, 2015 Google has updated their Search Algorithm which include Mobile usability as one of the search criteria. If your site is not mobile friendly then...

View Article

Image may be NSFW.
Clik here to view.

How to import all Spring MVC Dependencies to your Maven Project?

Are you starting with your first Spring MVC example and wondering how to include all Spring MVC dependencies into your project? Sometime back I’ve written a complete article on HelloWorld Spring MVC...

View Article


Image may be NSFW.
Clik here to view.

Cannot be Read or is Not a Valid ZIP file – How to fix Maven Build Path Error...

Yesterday I was setting up my new Macbook Pro 15inch with all my Crunchify Tutorials. I usually use Maven all over the place. Without maven pom.xml file I can’t even start working on my project. Maven...

View Article


Image may be NSFW.
Clik here to view.

How to Install Apache Web Server, PHP, Perl on Mac OS X Yosemite

I mainly do web development on my 15 in Macbook Pro. Mac runs on base Unix foundation so mainly you could install almost all Linux/Unix software on Mac very easily. Mac OS X comes by default with...

View Article

Image may be NSFW.
Clik here to view.

Best Way to Append Data to File in Java – Apache commons.io.FileUtils and...

What is the best way to append live data to a file in Java? It’s very easy for developer to print output or some debug data to Eclipse Console using println(). But what if you would like to save data...

View Article

Image may be NSFW.
Clik here to view.

How to fix Cannot change version of project facet Dynamic Web Module to 3.0...

Today while converting Dynamic Web Project to Maven project I got below Error:Cannot change version of project facet Dynamic Web Module to 3.0  One or more constraints have not been satisfied What...

View Article

Image may be NSFW.
Clik here to view.

Best way to Find Duplicate Character from a String in Java

Java interview may surprise you sometimes. There are so many similar questions you may get in an Interview like Create your own contains() method in java, find duplicate char from String, etc. In this...

View Article


Image may be NSFW.
Clik here to view.

Spring MVC 4.1.X – Simple way to Send an Email using...

There are quite a few articles you might have read on Crunchify on Spring MVC like Introduction to Spring MVC Framework, Hello World Spring MVC, Upload Multiple Files using Spring MVC, etc. In this...

View Article

Image may be NSFW.
Clik here to view.

Eclipse Mars: version 4.5.0 Release on June 24th 2015 – Hands on

Hurray – Eclipse Mars release on 24th June – the big major Eclipse release. There are quite a few under the hood changes happened on Eclipse Mars project. Major changes into Eclipse Mars Project:...

View Article


Image may be NSFW.
Clik here to view.

Best Code Coverage Plugin you Should Use in Eclipse IDE & Complete Working...

Even though you are a hardcore Java Developer, you may need to have basic understanding on how to do Code Coverage testing with some standalone tool or with simple Eclipse Plugin. In this tutorial we...

View Article

Image may be NSFW.
Clik here to view.

When Should I use CopyOnWriteArrayList Vs. ArrayList in Java? Avoid...

java.util.List is an ordered collection also known as a sequence. Arraylist is a very basic implementation of List. There are number of articles I’ve posted on Crunchify before on ArrayList list...

View Article


Image may be NSFW.
Clik here to view.

Error Starting Apache Tomcat server? The JRE could not be found. Edit the...

On my personal Macbook Pro I changed the JDK location and installed version 1.7.0_79. Initial version I was using was  JDK 1.8. After changing JDK version when next time I opened my Eclipse Workspace...

View Article

Image may be NSFW.
Clik here to view.

UUID, UID, SecureRandom or MessageDigest? Number of ways to Create Unique...

Is your Enterprise project related to User Transaction? Is your Java Project processes money transaction? Is your Java Project involves DB transaction? Are you running multithreaded application? Well,...

View Article

Image may be NSFW.
Clik here to view.

In Java How to Find If Number is Prime or not + Best way to Generate Prime...

What is Prime number? As per definition, Number which is greater than 1 and has only 1 divider which is itself is called Prime number. Other numbers are called Composite Number. Let’s take a look: 3,...

View Article
Browsing all 1037 articles
Browse latest View live