[ POPULAR STORIES ]

CATCH UP THE POPULAR STORIES

Java – Replace First Occurrence of String without Regular Expression

           The String class in Java has a method replaceFirst(String regex, String replacement) which replaces first occurrence of given regular expression with given replacement string. If you want to replace first occurrence of any given string (with Regular Expression), use the following code. Sample Code: package test; import java.util.regex.Pattern; public class test{… Read More »

Read more
Alternative text

Cannot delete folder: It is being used by another person or program – How to Solve this Issue

      Many of you might have faced this issue when ejecting pendrive or USB harddrive from the computer. This issue comes when the content of the pendrive pf the external drive being used by the system. For example, consider a word document from a pendrive is opened. Now you will not be able… Read More »

Read more
Alternative text

Spark Error – java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries

           The following error is due to missing winutils binary in the classpath while running Spark application. Winutils is a part of Hadoop ecosystem and is not included in Spark. The actual functionality of your  application may run correctly even after the exception is thrown. But it is better to have it… Read More »

Read more
Alternative text

Send EMail (GMail/Google Mail) using Java Mail API

           This article details on how to send mail (GMail/Google Mail) using Java API. Google by default does not allow any 3rd party applications to access GMail account from any programming language. Google provide an option to turn on Less secure apps to get access from external applications. The following program works if… Read More »

Read more
Alternative text

Ubuntu apt-get update problems”Something wicked happened resolving ‘extras.ubuntu.com:http [-5 – No address associated with hostname...

      This error “[-5 – No address associated with hostname]” is very common while installing or updating packages in Ubnutu Linux which is due DNS. To solve this issue change the “Download from” option in Update Manger. Select the option which has IP address its name. Follow the below steps to correct the… Read More »

Read more
Alternative text

[ LATEST STORIES ]

CATCH UP THE LATEST STORIES

[ SUBSCRIBE TO OUR BLOG ]