Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!

Ashish Vegaraju

Ranch Hand
+ Follow
since Aug 19, 2004
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 Ashish Vegaraju

Hi

Check out this link :-- http://slacksite.com/other/ftp.html to get ur doubts cleared on Active and passive FTP.

Regards

Ashish
[ September 29, 2005: Message edited by: Ashish Vegaraju ]
16 years ago
Hi,

Their are lots of APIs which you can use to connect to FTP server, and do the FTP operations like "get" "put" etc. Try to ask the same question to google.

some of the APIs are
1. EnterpriseDt's EDTFTPj API
2. Jakarta Commons - Net class library

Ashish
16 years ago
hi all,

I am trying to copy a file from a ftp server and put it in my local computer using secured socket layer. i browsed the net for "ftp using ssl", but have'nt got much information. can anyone tell me how to start about it, is their any API for this? what are certificates, do i need them?

if anyone could tell me the procedure from scratch, it would be of great help for me.

thanks in advance.

Ashish
hi Ram,

Your code seems to be right, just check whether you have the following jar files in your classpath.

com.zip
smtp.jar
activation.jar
imap.jar
javax.zip
mail.jar
mailapi.jar
pop3.jar

Cheers

Ashish
[ August 26, 2005: Message edited by: Ashish Vegaraju ]
16 years ago
hi Vasim,

By saying "good programming practice", i dont mean to say that wait() should be used with while. u can use it even with "if" "else", its ur choice.

by saying "good programming practice", i mean that their is no other way to block a thread inside a while loop, so we can only use wait() for that, the question of good or bad programming practice doesnt arise here.

Ashish.
16 years ago
Hi Rathi,

u can log on to this siteactivetree. here u can find smartJPrint APIs, which can be used to print swing components.

No, Sainath Veepuri, without even testing i can say that...the components will not be printed, using that code.

cheers.
Ashish
[ December 06, 2004: Message edited by: Ashish Vegaraju ]
16 years ago
Hi,

Not sure, but the reason may be, that u dont have proper rights to access the excel file on the server. check the access control list of the server.

Ashish.
16 years ago
Hi Vasim,

we generally use wait() inside a While when we use threads in our programs.

obviously, if u want to block a process from being executed u have to use wait() method, and use notify() method to start the blocked thread again...hence it is a good and widely accepted programming practice.

Try the InterruptedException example urself...a good hint will be..."try to simulate a deadlock process"

cheers
Ashish.
16 years ago
hi Vasim,

yes the object is eligible for Garbage collection.
the Reason:

1. if any object is no longer referenced by the program, then such object become eligible for GC.

2.Paul, whatever alogithm the GC uses, the objective behind all those algorithms is to clean the heap that is occupied by unreferenced object...it doesnt matter if the algorithm is "tracing reference" algo or any other one.

hope it helps
Ashish.
16 years ago
hi Vidya,

its good to see that u atleast tried to do something

if u r finding any difficulties in the code u can follow the link provided below, here u can download a zip file in which sample java files r there which can extract data from a word file. the link is :
textmining

cheers
Ashish.
[ November 05, 2004: Message edited by: Ashish Vegaraju ]
16 years ago
hi,

their r some pure java APIs which can do it for u...log on to
http://www.activetree.com/

the name of the API is SmartJPrint...u can use these APIs to print any swing component....some additional features r also there..just checkout.

regards
Ashish
16 years ago
Hi Viv,

jTable.getValueAt(1,3) returns an "object".

u can convert this object to String by using "obj.toString();".

u can then also convert this String to Date (if the cell contains a date value) by using the valueOf(String str) method...

"dateObj.valueOf(obj.toString());"

Ashish.
16 years ago
hi,

i too worked on POI, but i m not getting what u want to say..can u explain it in detail?
Ashish.
17 years ago
hi,

if u want to read or write Excel or PowerPoint files log on to.

http://jakarta.apache.org/site/binindex.cgi

just select the mirror and start downloading.

and as far as M$ Word is concerned its in an early development stage..no jars r available right now...u have to download each and every file manually..

cheers
Ashish.

[ October 24, 2004: Message edited by: Ashish Vegaraju ]

[ October 25, 2004: Message edited by: Ashish Vegaraju ]
[ November 05, 2004: Message edited by: Ashish Vegaraju ]
17 years ago
hi,

check out the clipboard class in ur javadoc..there u will find getContents(Object objName) method. this method returns a "Transferable" object if the clipboard is empty it returns null.

use Transferable class to access the method getTransferData(DataFlavour dat); it returns an Object representing the data to be transfered.

u can use TextComponent class which is a super class of TextArea or TextField...a method named getSelectedText() is there use this method to get the selected text.

njoy
Ashish
17 years ago