Skip to main content

Posts

Showing posts with the label Articles

Benefits of XML

The below article will explain the benefits of XML. Click here to open the article. Visit Articles page of learningmela.com to read more articles.
Click on the below links to get the articles to know more about the corresponding titles. ServletConfig Vs ServletContext URL Rewriting in Servlets Schema Vs DTD Visit articles page of learningmela.com to get more articles.

Finding text from files in Subdirectories

We can use grep command to find a string in files existed in subdirectories also. Syntax: grep -Rl <string> <directory path> Ex: grep -Rl "text" /var/tmp The above command greps the string "text" from all the files of the path /var/tmp and their subdirecoties, and prints the list of files that contains the string "text". Visit  articles page of the website learningmela.com

SOAP Errors with Service Center

Hi all, Click here to download the document. In this document, tried to explain different types of errors we face while connecting to Service Center using SOAP tool. We can also get these errors while using the tool to connect any other web services. Visit  articles page of the website learningmela.com

Using Properties in Java

Properties file is being used commonly in every project to get external or supported parameters like configurations, urls, port numbers and ids etc. We can handle these files using file stream APIs like FileInputStream, FileOutputStream etc, provided in java by treating these files as normal text files. But another way is also there to handle the property files, which is the best and efficient way to handle these by using the API java.util.Properties . The class Properties has few methods on which the below are very important and most useful. load(InputStream in): To load the external properties file loadFromXML(InputStream in): To load an XML file as a property file getProperty(String key): To read value of a property key from the property file getProperty(String key,String defaultValue): To read value of a property key from the property file. If the key doesn’t exist then it will return the defaultValue. Let us see an example to understand how to use the Properties class. Create a pr...

java.lang.OutOfMemoryError

This is a runtime error simply means that the JVM ran out of memory.  We can choose either of the below two solutions to fix it. 1)       Prevent memory leak: Yes. Preventing memory leak will also improve the performance of the application. A memory leak can be very latent. A memory leak occurs when the application creates more references to objects and never releases them. So the garbage collector will never collect those objects results less free memory will be available, hence not enough free memory is available for the application to function normally.  2)       Increase the heap size of the JVM. It can be done by using the VM argument –Xmx  Syntax : java -Xmx<size> <java class> -d<bit mode> Where, Size is the size of the memory asking JVM to take Java class is the program name to which memory is required Bit mode tells which bit mode of operating system is being used...

Creating a User form in MS-Excel

In this article, we are going to know how to create a user form in MS-Excel using VBA script. Download  the document to see the step-by-step procedure to know how to create a form in MS-Excel using VBA programming. Visit  articles page of the website learningmela.com for more details.

Primary Key Vs Unique Key

This post is to share my knowledge on how Unique key is differs from Primary key. As both are enforces uniqueness, why can’t we go for unique key instead of primary key. In this document I tried to give some features of primary key as well as unique key. Visit  articles page of the website learningmela.com to download the document and for more details.

Unalias ls

When unix ls command gives results in different colors, use the below command to make the ls normal. Which means ls will give the results in default color. Syntax:  unalias ls This command is valid till the session is valid. If you open new session, again we have to give the above command. Visit  articles page of the website learningmela.com for more details.