G Svensson

Greenhorn
+ Follow
since Jul 26, 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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by G Svensson

We are two developers in the web department .
I am a java programmer and my college aims for php.
He argues that php is a better over all choice for us due to all plugins out there,
but he has almost no experience in programming php.

Our needs are to make it possible for our customers in a new web app to
- upload pdf documents
- submit meta data
- other users will login and read the pdf and metadata and then validate them

The web app will have to
- connect and use a database
- create a web service call (to an external ERP system) if the article numbers etc, are valid
- send relay smtp mail if errors exist
- move pdf files on an file server from one path to another

As I see it we need to make a choice between
- OpenCMS with customization, Apache, MySql
- Java, Stripes Framework, MySql, Tomcat (tailor-made from scratch with html/jsp templates)
- Php, plugins, Apache, MySql

Feel free to add more choices if needed

Cheers,
G
9 years ago
JSP
At work we need to set up a webb app for uploading pdf documents, user should add meta data to the posts, later to be searchable by the meta data.
More than 10000 pdfs per year and keeping 5 years of history/archiving.

I prefer java before php and now wonder what framework, database do you suggest? OpenCms, StripesFramework, MySql, ...

9 years ago
JSP


Turn it around. Ask him to provide a document or web URL that shows that java DOES use so much more memory and resources (and make sure it is a recent article).



I will do that. Thank you all for your answers and efforts.
cheers,
G Svensson
10 years ago

Karthik Shiraly wrote:JVMs occupy a little too much system memory; even the low signature ones like JRockit. Sometimes, this is acceptable; sometimes it's not.



So is it better to move to Scala? It uses jvm as well but occupies not so much system memory.

Cheers,
G
10 years ago
I understand. Thanks.

So what about the last part:


I am constantly beeing questioned at work by a colleague. He always tells me that java is no good since it consumes so much memory and resources.
Please give me a web URL (or arguments) that explains to him that small java applications are not more harmful than batch files or shell scripts. Both can of course contain bugs but java is not bound to clay down our servers.

10 years ago
Hi,

We are in a situation at work where we need to get away from having jobs executing on timer since there can be overlaps. We need to move towards having jobs executing based on events like if files exists in a given catalog.

Is it advisable to let a java loop run 24 hours a day - checking every 5 minutes if there exist files in a given catalog and only then do an external call to the actual job? In my opinion a loop using Thread.sleep(5*60*1000) is returning resources to the operating system (Idle process). Is this true or false?

I am constantly beeing questioned at work by a colleague. He always tells me that java is no good since it consumes so much memory and resources.
Please give me a web URL (or arguments) that explains to him that small java applications are not more harmful than batch files or shell scripts. Both can of course contain bugs but java is not bound to clay down our servers.

Cheers,

Mr G
10 years ago
I need help with a performance issue, loading many images to a jsp page.

Here is the work flow as of today:

- I have a web page with a search text box.
- The search string is passed to Google Image Search.
- The result web page is parsed for tags and images are downloaded for a more tailor made later presentation.
- One requirement is that the images should be renamed and linked as: http://www.MyDomain.com/images/image0001.jpg regardless of there former name and the final web page contains these links.

All the above works today but I have one performance issue here. If many images are found I will have to wait for all of them to be downloaded to the web server before they start to load to the browser. I want the first image to start load to the browser immediately after is has arrived to the web server.

My guess is that I will have to make some kind of servlet for sending images to a web page capable of receiving images dynamically. HERE is where you nice code ranch java cowboys come into the picture. Do you have any suggestion for the best practice on how to make this work. Feel free to ask anything that appears unclear.

Cheers,

Surrven
10 years ago
JSP
Ok. you are right. Environment instead of IDE
I will be using Java.
Do yout think Aptana plugin be well suited for my project?
Hi,

Yes I saw your example but by the context I didn't realize that it was jQuery. Nice. Thank you.
It will be very helpful.

My last question is about setting up an IDE for my project.
Suggestion:
- Eclipse, Aptana, Jaxter DWR

Will it be lots of unnecessary overhead? Can anything be replaced by a adequate product?

Best regards,

Surrven
Hi,

Thanks for the quick reply.
Do you have an example of a "reasonable JavaScript library". in this case?
I am very interested to learn new things but right now I need help to choose the solution that I do not have the time to first evaluate options.

Best regards,
I need to make a web application with a light-weight remote scripting solution where images are to be loaded dynamically.

The user clicks on categories and new images will load, without having the whole web page reloaded on each click.

I'd like some guidance about best practices for a solution. I'd rather not use heavy frameworks (Ajax, scriptacolus, prototype, gwt) for this single task. But if it is necessary i need help in finding the most light-weight one.

I have tried Remote scripting with IFRAME but I have a hard time figuring out if that solution will be sufficient. Can anyone with more experience tell me if I will turn up in a dead end.

Please feel free to ask questions since I am not sure that I have provided you with enough details.

thnx

/surrven

Rob Prime wrote:The class name is incorrect. The JVM tries to find class GcDiskUsage, but the real name is gc.GcDiskUsage.



Oh my... I just found out by experimenting with FatJar. See the screenshot again. I forgot to set the Class.
Sorry for taking your time with this. eehrmmm
12 years ago

Rob Prime wrote:I did a search for the class name but there is nothing on Google. Also, there is no package there. Are you sure it's not your own class?



GcDiskUsage is my project indeed.

the command:
jar tvf GcDiskUsage_unsigned.jar

...gives me:
12 years ago
I use Eclipse with the plugin "FatJar" see attachemnt for screenshot

This has been working like a charm for several months but now suddenly I get:
Exception in thread "main" java.lang.NoClassDefFoundError: GcDiskUsage

I am not sure what I changed to get this error so I have tried to manage it by hand with:
http://java.sun.com/docs/books/tutorial/deployment/jar/downman.html

But no luck I afraid.
12 years ago
You must have the Nobel Price if I am asked. Thank you so much.

I will definetly put some effort in understanding whats going on underneath the hood here.
Suns tutorial seems like a good place for me to hang out the next couple of hours.

Thanks again.

12 years ago