Abhi Venu

Ranch Hand
+ Follow
since Jul 09, 2009
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 Abhi Venu

Mates,

I was trying to load a html page via my java code. It is a eclipse project. When i run from IDE it works fine.
But when i export it as a jar it doesnt work. Please tell how this can be resolved

I tried to open the html page using this.
java.awt.Desktop.getDesktop().browse(new URI("images/NetWorking.html"));

The needed files are placed under this D:\WORKSPACE\myIPFinder\images


Regards
Abhi
5 years ago

Thanks for the reply. My doubt is that how to get this same look and feel of new version jcaptcha even if use java 5
6 years ago

I have added jcaptcha in a jsp page. I compiled the prject using java 6. But when i create a project using java 5.It gives exception doesnt work. Bad version number in .class file

java.lang.UnsupportedClassVersionError: Bad version number in .class file. How this can be fixed.

I revereted bak to another jar it seems and old version now i am getting black and whit captcha.How can this be made into beautiful ones as in new version.

I use following code

// create the image with the text
BufferedImage bi = service.getImageChallengeForID(httpServletRequest.getSession(true).getId());





ServletOutputStream out = httpServletResponse.getOutputStream();




Thanks
Abhilash
6 years ago


Hi,

My plans are as follows convert the two file(20 Mb) files and load data into DB. after another week i will have anothers set of files.The same process needs to be continued for them too..

File a1.txt -----> gets covereted to B1.txt after replacing the needed delimiter...use B1 data to load tables


Regards
Abhilash
i still didn't get diff between one time and multiple times..............for a 20 Mb file there may be 10 00 records ie rows...each having abt 7 cols ie 6 delimiters...in each roe the delimiter neds to be replaced....
again this repeats for other two files too... and regarding new DB a new Db needs to be created.....

William P O'Sullivan wrote:Is it a "one off", or multiple times?

Again, If you are converting to a new DB, then bite the bullet.

WP




hai WP can you clarify it a bit...what you meant by new DB?/ also what you meant by "one off"

sorry i dint get it earlier Now i got it...

but the conversion process will be time consuming and not a efficient one...i.e replace ~ with , in each of the 20 Mb files...whats the best way to do it
It work like this a set of files having data...each coloumn in file is seperated by a ~ whic is the delimiter.This acts as the source.

This file needs to be BCP ed into Derby DB... Any way WP
Thanks for the reply
Is there any way to BCP data like we do in SQLSERVER....i have 3 files about 20 MB size....but the delimiter here is ~. in some Derby doc it says the delimiter neeeds to be comma....But replacing all
~ with comma wont work for me.. because it needs to be done in a 60 MB file...whats the best work around....

Mates,

are these data stored in flat files or it can be read only thru application


Hi Mates,

I was trying a example downloaded from web .It is A derby database application.

I could see this code

String userHomeDir = System.getProperty("user.home", ".");
String systemDir = userHomeDir + "/.addressbook";
System.setProperty("derby.system.home", systemDir);

i could see a directory like this was created C:\Users\manu\.addressbook

But when i chek the directory assuming this is the location of the files. I couldnt find any.which is the acataualy physical location of the files?

I could find folders log,seg0 and a properties file which has some DAt files....How is data stored in the case of derby....?


Regards
Abhilash


Hi,

I have a doubt.I want to create an application that do following.I am not sure what is the best approach to be followed.

I have a sqlserevr DB. we have a set of files from which data is BCP ed into the tables.After that some validations written as stored proceedure is executed.

No i need to create an light weight app to which the db can be packaged;and as wel the sps be copied.

I am also fine if the sp can be convereted into some another format which can be used as a schema to validate data.


Thanks
Hi
Jon Can you post your code please. Also i would like to know how it is done in UNIX and if any windows eqiuvalent for the same.


Regards
Abhi
7 years ago
Hi All,


I need to read a large text file (90 MB) file da replace a pattern let be 'xyz' with 'PQR' .I need to create a new file with this change.

How can this be done in most efficent way in minimum time.

I did it in a way but it took 25 mnts Also i tried with BufferedInputStream and stringbuffer.But igot out of memory error.I dont want to increas the heap size and try it.

Please help me in the approach i should choose

Regards
abhi
7 years ago
Hi,


I have a requirement like this
I need to login to a website and generate a report based on some condition and save it as a file.How can i automate this process of logging and generation of the file.what are the possible ways of doing this.
7 years ago
JSP