Rahul Dhaware

Greenhorn
+ Follow
since Aug 13, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rahul Dhaware

I have tried using UTF-8 in constructor of InputStreamReader.
It it not works. it gives me same error.
15 years ago
I am parsing HTML page using some html parsing utility. i am using cobra.jar and js.jar for that.

There are some unreadable special charactor like ' � ' but when I compiled my program in windows it compile properly and run fine.

But when i compiled it in linux it gives me followig Warning:
unmappable character for encoding UTF8
String stateZipArray[] = stateZip.trim().split(" � ");

and then while accessing elements from stateZipArray array it gives ArrayIndexBounds exception.

In InputStreamReader class i am using 'ISO-8859-1' as a charsetname.

Can any one please tell me what is problem and how can i resolve it?

Thanks in advance.
15 years ago
I want to add some column data in existing column in xls.
so that, I want to open xls file in read-write mode.

How can i do this? any utility can i use?

can please any one give one code-example for above purpose?

thanks in advance,



Can any one please help me?
15 years ago
Hi All,

I want to rsync two folders which are on two different linux servers.
I want to rsync both folders on both way.

consider, i have on SRC server. on that there is a folder /home/username/src_folder
and there are 4-5 folders under /home/username/src_folder.
like

/home/username/src_folder
|
-->folder1/
|
-->folder2/
|
-->folder3/

On DEST server i have same folder structure as above.

Now if i have added any file like 'file2' in folder2 on SRC server then it should be automatically copied on folder2 of DEST server. same as vice-versa.

how can i do this?

Please help me.

Thanks advance.
15 years ago
I have Vector which copntains date object.
I want to sort that vector according to date.


How can i do that?


15 years ago
I am using jxl lib files.
if workbook1 contains pattern in some cell then in the copy workBook that pattern is getting copied
but pattern color is not getting copied.

Please see the code below.

File file = new File("C:\\New Microsoft Excel Worksheet.xls");
File file2 = new File("C:\\test1.xls");
Workbook workbook1 = Workbook.getWorkbook(file);
WritableWorkbook copy = Workbook.createWorkbook(file2, workbook1);

Please help me.

Thanks Rob and Ramya.
It works.
15 years ago
Hi,
I have a String str ="11/6/08";

and i want to convert it in mysql date format like '2008-11-06'.

How can i do this?

Please help me.

Thanks in advance.
15 years ago
Thanks Tim......

It's works.
15 years ago
Hi Charles Lyons,

I tried like

dir="/path/to/dir"
size=`du -bs "$dir"`

but then i got size = 843M .

but i can't understand why there is "."(dot).

Actually i want only 843M

like size=843M.

Please can you help me in that?
15 years ago
Hi Sondre Kval�,

It works. Thanks once again.
15 years ago
How to get Size of directory/folder in linux?

I want to store folder size in variable in shell script.

But how can i do this?
15 years ago
yes Charles, it works.

Thank you very much.

I have solved my critical problem.
Thanks once again
15 years ago