zParacha.com

Effective programming and blogging tips by Zaheer Paracha

Subscribe:

Archive for the ‘Programming’ Category

Posted by Zaheer 1 COMMENT

0

If you need to search for a phrase or a string in a text file Java regular expression is the easiest way to accomplish this task. Here is a simple example that demonstrates how you can use Java regular expression to find a string or a phrase in a text Continue Reading »

categories: Java Programming
Posted by Zaheer 1 COMMENT

1

If you need to read properties file in your Spring application all you need is to configure a PropertyPlaceholderConfigurer bean in your application context.
Following example shows how to read property values from a properties file named config.properties. This file needs to be in your classpath so Spring can find it.
Let’s Continue Reading »

categories: Java Programming Spring
Posted by Zaheer 1 COMMENT

0Sometimes when you upload or FTP files from a Windows system to a UNIX box you will see ^M at the end of each line. ^M is the UNIX equivalent of DOS line break. Not only does it not look pretty, this extra character may break all sorts of scripts Continue Reading »

categories: Programming
Posted by Zaheer ADD COMMENTS

0For PL/SQL developers put_line is a quite useful method. I use it for logging purposes. Recently I found out that the method has an annoying limitation. You cannot print more than 255 characters per line!
Now that is a strange feature. I don’t know what is the reasoning behind this restriction Continue Reading »

categories: Programming

Search

Sponsors

Get Adobe Flash playerPlugin by wpburn.com wordpress themes