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 ArticleWhat 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 ArticleAvoid 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 ArticleGot 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 ArticleERROR 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 ArticleHow 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 ArticleHow 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 ArticleHow 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 ArticleCannot 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 ArticleHow 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 ArticleBest 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 ArticleHow 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 ArticleBest 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 ArticleSpring 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 ArticleEclipse 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 ArticleBest 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 ArticleWhen 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 ArticleError 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 ArticleUUID, 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 ArticleIn 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