Eduardo Cobian

Ranch Hand
+ Follow
since Nov 07, 2001
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 Eduardo Cobian

Hello all,

I would like to enter in the mobile phone world. I know nothing about it.

What should I study to be able to make phone applications like:
1.- Knowing if some phone is on or off
2.- Send sms messages
3.- Phone bluetooth appls.

thanks.
17 years ago
Hello,

thanks for answering.

I need to read these 500.000 to display 15 minutes bars for 3 years. I read the 1 minute bar and create 15 minutes bar.

When I say dos I mean a dos window (start-execute: cmd) and then I do: 2mysql -u root -p", "use dbName" and I do a select which doesn't display all the records but has to read them all. "select * from bars where time > xxxx and time < yyyyy and volume = 3333". I don't have an index on volume so the db has to read them all (I think).

The java part is:

String sql = "select * from bar1min_"+assetId+" where time >= '"+date1+"' and time <= '"+date2+"'";
Connection conn=DBUtil.getConnection(dbhost);
if(conn == null) return null;
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(sql);
while (rs.next()) {
bar.time = Long.parseLong(rs.getString("time"));
bar.O = rs.getDouble("open");
bar.H = rs.getDouble("high");
bar.L = rs.getDouble("low");
bar.C = rs.getDouble("close");
bar.V = rs.getInt("volume"); // util.pln( sdf.format(new java.util.Date(bar.time)));
marketStart=asset.thisDayMarketStart(bar.time);
OneMinuteBarLoader.createBars(barss, bar, newbar, lastBarTime,interval,marketStart,marketEnd,stra);
}



This takes ages. And it works with bars for two years (350.000 records) but not with bars for 3 years (500.000 records).

Can you help me???

Thanks.
Hello all,

I have a table with price bars: long time, double open, double, close, double high, double low, int volume;

If I do (from the dos window) a select * from bars where time>xxxx and time <yyyyy it takes 2 seconds for 500.000 records.

The same select from java takes minutes and if the time span is 3 yeras it crashes without any message.

Can anyone suggest something?

Thanks.
Hello,

yes I have no control over that page. Nothing to do then.

Thanks for your help.
Hello all,

I have included an iframe in my page. The problem is that it is creating unwanted pop ups.

How can I get rid of these pop ups?

My page does create other popups which I want to keep.
Is it possible just to avoid the iframe popups but to keep the other popups?

Thanks for your help.
Thanks.

that's it.
17 years ago
Hello all.

I am accessing a remote database from my applet. If I don't use the applet to access the databae it works ok (by doing it from main method). But when trying to access the DB from the applet it gives an error:
ExceptionInitilizerError.

This is the sentence I use:
conn = DriverManager.getConnection("jdbc:mysql://host/dbName?user=me&password=pass");

Why it works from main method but not from the applet?

Thanks.
17 years ago
Congratulations asha!!!
Well done!
you know? in my country we have a Fernandez surname. Your Fernandes sounds like americans' changing of our original Fernandez.
Where are you from? I am from Spain(Europe).
Keep it up!!
Hello all,
I have seen some comments about the certification exam asking something about servlets registration.
I don't know what is that.
Can anyone please tell me anything about it?
Thanks.
19 years ago
<b>What do u recomend me for SCWCD & Part I.How long it will take to me if i give 4hrs. daily?</b>
for SCWCD I studied core jsp & servlet (Marty) but the book was for servlet 2.2 and jsp 1.1.In theory this month should be available a new updated edition.
I also studied advanced jsp.(also with old versions).
See my thread on the exam:
http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=18&t=000457
About the time, it took 3 weeks studying the whole day.
for part I of architect I can't tell you more that what I have already said in this thread.Just to mention that I hope you have experience or the assigment will be quite difficult. I am very pessimistic about the project's result.
good luck.
[ January 31, 2002: Message edited by: Eduardo Apellido ]
Thanks for the answer.
It the servlet calls jsp pages to show output to the client, I guess that the applet can't use that servlet and a specific servlet has to be done.
Is that correct?
19 years ago
Thanks for the information.
This is what I was looking for.
Hello all,
I have the assigment more or less finished.The funny thing is that I don't know how to represent the components. If I try to represent every component with its dependencies It is impossible because there are too many dependencies lines and it it a mess.
Is there a way to represent the components like if they were packages, so I only show the dependencies between those packages?
I don't find a clue in UML distilled nor in the three amigos book.
Thanks.
Hello all,
I have to design a java based app that accesses a web-based app. I have decided to access a servlet through http rather than accessing the EJB tier.
Could anyone,please, explain to me how this can be done?
I guess the servlet must be a different one that the web customers are accessing.Right?
I would appreciate very much your help.
19 years ago
Hello all,
I have to design a java based app that accesses a web-based app. I have decided to access a servlet through http rather than accessing the EJB tier.
Could anyone,please, explain to me how this can be done?
I guess the servlet must be a different one that the web customers are accessing.Right?
I would appreciate very much your help.
19 years ago