Fabio Fonseca

Greenhorn
+ Follow
since Jan 19, 2006
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 Fabio Fonseca

Here is the catch, I've just graduated after some efforts and my first thought was to keep myself in the academia, but some troubles postponed that idea and I will have to wait some time and do some rethinking.

For the past 2 yrs I have been dealing with lots of Fortran and C++, all in a scientific environment, while not touching any single line of Java. Now I'm planning on getting back to a full time daily job and want to show possible employers something more tangible than some incomprehensible numerical methods implementations.

To cut the cheese, how much time do you think it would take me to get in shape to do the SCJP exam? I can get daily sessions of something like 3hs of studying everyday, but I'm at lost of how much time it will take to read through Berts & Sierra book and actually LEARN anything. After 4 yrs in college I realized that cramming just doesn't works.

Thanks for your attention!
Fabio
Bear,

memory solved the problem. Just to turn our app on costs 420MB. Yesterday, by using the old configuration we handled all incoming smoothly.

But I still want to understand the connector settings properly. I still don't get what those items stands for:

maxThreads
acceptCount
connectionTimeout
minSpareThreads
maxSpareThreads
minProcessors
maxProcessors
17 years ago
Hello everyone,

I'm having a hard time configuring Tomcat. Seems like all effort I do results in memory errors after some hours.

What I want to understand is what exactly all connector settings stands for.

i.e.

maxThreads
acceptCount
connectionTimeout
minSpareThreads
maxSpareThreads
minProcessors
maxProcessors

my current setting is:



<Connector port="80" maxHttpHeaderSize="8192"
maxThreads="30" minSpareThreads="10" maxSpareThreads="10"
enableLookups="false" redirectPort="8443" acceptCount="30"
connectionTimeout="8000" disableUploadTimeout="true"
compression="on"
compressionMinSize="12000"
compressableMimeType="text/html,text/xml"


/>



I used to use the setting above with only 500MB in our server. But we got this upgrade to 1GB of RAM. The config above handled 1 or 2 days of uptime, with some latency at the rush hour. So, I thought it would be nice to "tune up" our server in order to use the additional memory better.

So I tried the config bellow. The app runned smoothly and fast with this new configuration, but crashed after 8h of up time. Generating out of memory errors.




I'm starting the server with those options:


JAVA_OPTS="-Xms350M -Xmx750M -verbose:gc -XX:+PrintGCDetails";

17 years ago
Quite short and simple:

What is Database Refactoring? What it has to do with OO, Patterns and UML? Has hibernate anything to do with it?

thanks!
JSP - 2.0
JSTL - 1.1

[ July 20, 2006: Message edited by: Fabio Fonseca ]
[ July 20, 2006: Message edited by: Fabio Fonseca ]
17 years ago
JSP
Is it possible to search & replace line breaks using JSTL?

I want to populate a JS array with code coming from the database, but there is some text which comes with line breaks within it. Is there any way to search for the line breaks and remove then, so the JS can read it all alright??
17 years ago
JSP
Hey, Bear!

Seems like the other part of the code is gone:



I had no problem in reading the cookie, but in setting it. I had to use the scriptlet above in order to set it.

Is it possible to use JSTL and/or EL to get the same result?

But it is nice to see that I can use ternary operators in JSP. didn't know about that!
17 years ago
JSP
Hello all!

Is there any way to set cookies using scriptlets (nor custom tags) in JSP 2.0? Only using JSP and/or JSTL?

I got the cookies all alright, but I want to know if there is some easier way.

Please take a look on what I did:

to set:



Everything is running fine, but there *must* be some easier way!
[ July 17, 2006: Message edited by: Fabio Fonseca ]
17 years ago
JSP
Another question!

In the book, what is the choosen path to teach AJAX? Are you going to teach OO Javascript? In what fashion? You gonna start with the very basics of Javascript or just concentrate in what to use in order to parse XML?

thanks!
[Editted to provide meaningful subject line]
[ July 13, 2006: Message edited by: David O'Meara ]
Questions for the book's author:

I have been using ajax and XML in a Java environment by "brute force" for quite a time (Haven't been using this daily, but problems appears here and there to be solved). But what really bugs me is that the role of every tecnology involved is not always clear to me.

So, the question is, in the "grand view" of things, how each tecnology relates to AJAX, XML and Java and what is their paper and their future. What should we study and how the book relates to each of these tecnologies:

SOAP
XSLT
XPath
Xalan
Jakarta XTags
JSLT XML tags <-- actually, I was never successful in using this thing to parse XML.
[Editted to provide meaningful subject]
[ July 13, 2006: Message edited by: David O'Meara ]

Originally posted by William Brogden:
How much duplication is there in the page requests? Caching all or part of the generated HTML could be a BIG improvement by avoiding database round-trips.
Bill



he he. Seems like I'm discussing that in every single forum here. But, anyway, I'm desperate and I think it will help other ppl too.

There is a HUGE duplication in the page requests. Because we're dealing with news, but a new one come every 15 to 30 min. So we have this gap we're tomcat is serving like a mad a content that could be static. The question is: how do I do that in the fastest possible way? By using velocity?

Been reading the velocity documentation for a while, but I still haven't got a clue..
17 years ago

Originally posted by Jeroen T Wenting:
Let them try.
php scales poorly, hardly at all in fact.
Only advantage is that it's cheaper to host for a given traffic volume, because the cheap low quality providers don't host Java as it's more difficult to find people who can properly administer a Java application server than a plain old Apache with mod-php enabled (never mind that you need more to do it properly, but that's why they're low quality hosting providers).



That's a very good argument that I will in the meeting next Friday. Haven't really thought about that and you're right. What they will "save" for re-developing our application in PHP would be used to buy a better server.

What you think a good configuration would be ok for handling say, 1million page views daily? Today we're serving 200k page-views in a P4 with 512MB ram together with MySql in the same box...

But I haven't finished my studies on the Velocity yet
17 years ago
It should generate an error then?

The forum is trying to email someone which doesn't have any email!

I've corrected the "error". I would be waiting for those emails forever!

thanks!
17 years ago

Originally posted by Travis Hein:
I did a site once where the content was templated, not dynamic in the sense of user-specific, or time sensitive views, but the JSP pages were a complex set of includes, for headers, footers, and content that came from a database. The navigation was driven from the database too, so it was a dynamic site, but the content was constant at any given point of time.



Travis, you just read my mind all alright! This is exactly my problem. I have the content in a database, several JSP and I need static output for this content. And, yes, we're also thinking in distributing our content in other forms, not just web - in pen driver or so.


what we did was use the unix wget tool to 'spider' our test server and rewrite the paths to be self contained relative url like things.
we really only had a few template jsp pages, but we had hundreds of 'static' html output from it.



Gotcha! Correct me if I'm wrong. What you did was: called wget to, well, get all our content and save somewhere else following a definite order. I think that will do the trick, since our content is very manageable and uniform in it's URLs.




though the exact plethora of command line options we used for wget escapes me now. I guess other web crawler tools could be used too.



I will check more on that. Thanks very much for your reply.

I was considering also using tapestry or velocity from Jakarta. Velocity includes a tool called Texen, which saves the output of a servlet in any other format. Any clues on that? Should I ask in the Frameworks forum?

once again, thank you very much!
[ July 05, 2006: Message edited by: Fabio Fonseca ]
17 years ago
Hello guys,

I've submitted some new topics to some boards and have checked the option "Email Notification: emails sent to you whenever someone replies." in the options field below.

I've checked through my spam box and there nothing in there too. Could you please check on that?

thanks!
17 years ago