peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Previously it was possible to copy text from Google books, but I think they had to give in to pressure from publishers (as google scanned millions of books without permission from publishers) and so from few months back it is not possible to do direct copy&paste, you have to manually retype it.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Any recommendation on Java books for starter?

Starting "Java" [Java tutorials / resources / faq] on top of this section is place to start

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Check solution here, the person had similar issue and solved by checking error line in build-impl.xml where there was issue with path name in windows

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Its paid library(as from what I seen on multiple links I had to go through to find some meaningful info), so you need to contact company for price list

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Check this entry from Linode

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Given that original poster account is registered for US how does helps him what is on demand in Pakistan? Besides he didn't bother to comment on this for last 7 days, so no blood on carpet for no reason....

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Haha 9 views (almost all from me) in 9 hours. These forums are officially DEAD!

Christmas period, everyone slows down. Secondly may happen that people are interested in what you are asking, but may not necessary know answer to this...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

And there is system path variable that you can set in system and no need for all this repetition.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

still i'm not getting

That is a helpful comment...

What you did?
What you are doing?
What exact errors you getting?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

PHP is most popular. So at first you should learn PHP and when you want to be a specialist then go for more.

Depends on what you based your popularity... Given your posting history I'm not surprised over your comment.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Philippe.Lahaie
1) Forum rules clearly state

Do provide evidence of having done some work yourself if posting questions from school or work assignments

which original poster ignored therefore you should not provided the code
2) Your code? Ouch what a mess that if/else statements and switch statements is something to kill for. Half of that mess can be reduced just by simple use of array or any other collection

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Java installation steps can be found here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Question is too generic, like if supermarket was robed how to secure it.
How did they get in(through unsecure coding of web application, lazy admin didn't change default database credentials etc)? Did they stole something(database, confidential data)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Doesn't work in what concept? An example?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No, I have not tried any Java framework for web development. There are also frameworks called Spring and struts to add to the list you had.

There are many frameworks, but I included the one I consider more flexible. Spring MVC is just big monster which beginners may have problem to conquer (given that you need to get first grasp of Spring core before you can attempt anything else), Struts doesn't look too bad, but I still believe Wicket is more simpler then Struts

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

if you have already taken java classes, then you should learn java, but market is all about Php, java is highly paid but with very less job market.
where as Php have a huge job market

Irrelevant as it is dependent on your geo-location

Both of them are FANTASTIC Languages. If you're developing highly dynamic websites, then PHP is your primary choice(NOTE that I'm not saying you can't develop websites in java , but java is a little harder than PHP to get your head around.) Each of them has its own use. Java is mostly used for developing applications. Do a bit of research and see what suits you most.

I'm learning both and finding PHP a lot easier than JAVA. it's just a personal opinion.

If you need any website or anything to get you started, then all you have to do is to give us a yell ;p...

Good luck, buddy.

You couldn't be more mistaken. There is a number of Java frameworks that let you build dynamic websites and have direct support of Ajax/jQuery. Did you ever tried Wicket or Tapestry?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I hope you have understanding of version control systems (SVN/git/Mercurial) as these are the sole bone of the whole idea. You would need to be able to communicate with chosen version control system. The website is just front end of it, that provides projects descriptions, history listing easy access to resources, comments, issue reporting and tracking system.

I suggest that you have look around (this article can give you some start on most commonly used version control systems)and decide what will be your back end and what sort of functionality you will provide for users on front end. After that decide which web technology will best suite you for this task

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Forum rules clear state Do provide evidence of having done some work yourself if posting questions from schoolwork assignments. If you not willing to actively participate in the process then it is not our fault that you get "F". We are not 24/7 coding service for lazy people

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Please check my answer here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sloppy is more suited to the design that was chosen for this. Sorry, but above is just absolutely messed up approach either of attempting to fix some bug or beginner not knowing what he is supposed to do. I may sound rude, but seriously till this minute I have no clear idea what you trying to do beside localized element/issue/idea on some supposedly Java web based project that for some reason wants to heavily relay on some JavaScript

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Then re-read what you posted
I have to create some kind of multithreaded bots for multiple account creations,Scraping etc. using proxies.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It's a paperback - not an ebook. There are a ton of copies for sale online.

He was more likely looking for "free" download and care not for legal side of it...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Then you should have this script populate some field of form that you can submit and in doing so you will retrieve these values. Shopping basket is good example, you have price, you know number of items and based on that you will calculate sum for all of them

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You aware that what you described sound as attempt to create spam software and members of this community my reject it?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

When i posted my question here,i had already did that.But it didn't worked...:(:(

Only thing left then, compress your project as ZIP and attach it in next post and let see how you did it...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. You just reopened 2 years old thread
2. You provided code that doesn't make any sense (what the hell is "sv" and is "DataMemebers" for)
3. You unlikely to do that with plain J2ME, maybe BlackBerry has more functionality due to it wide usage, but then it will only for BlackBerry platform and not other J2ME platforms

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Lets step back and please explain what is this script doing, in what context it is used and what is the final outcome of whole operation

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Now that sounds as completely different thing, more of the old way to build/render site with complex

public class MyServlet extends HttpServlet{
	public void doGet(HttpServletRequest request, HttpServletResponse response) throw IOException{
		PrintWritter out = response.getWritter();
		java.util.Date today = new java.util.Date();
		out.print("<html "+
			"<body> "+
			"<h1>"+
			"MY SERVLET"+
			"</h1>"+
			"</body>"+
			"</html>");
	}
}

This is long abandoned practice, and even then you would just render page through print but not try to execute JavaScript

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Is something unclear from their examples?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you want it to process in servlet then you shouldn't put it in JavaScript

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sound like you are using single db connection instead of pool that simple times out after certain time of inactivity and then a thread is trying to equerry DB but it is not aware that connection is down and it should create new connection.

PS: Without knowing what is in code hardly anyone will be able to advice

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I'm failing to understand a reason for this to be done, so not surprised that no one else replied. Why do you want to get JavaScript variables and returned value?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I don't know how to use this in my application.Please help me to solve this.

You do not know what? How to add this library to your project or how to use functionality of this library(write code with it)?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Not sure if you made a mistake with that URL (now snipped as it went to some dodgy advertising site) or tried to spam, but Installing the SDK and Hello, World articles on developer android explains all basic in very nice and simple way

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Dan Quadrozzi,

Do you think I don't monitor java forums? This could/will be classed as plagiarism if I find any of these suggestions in yours or any of your collegues code. You may want to warn other class mates of this. I can see that this is the second time now.

Regards,

Mark

@markdixon
Option A) Possible prank from fellow student that just now discovered there are site where people can advice, then you pathetic.
Option B) It is "the" teacher, but then I would be ashamed because why would one teach people DB connectivity from JSP which is bad thing to do. You should look back and reconsider your teaching curriculum, because you are wasting people time and teaching 10 years old techniques that are unwelcome

@TheQuad if you do not copy and paste solution, but based on provided examples workout your own solution you win. Follow also advice provided by adatapost

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

java csv library equal no messing with tokenizer ;)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

OK, looking at POI code XWPFTableCell consists of number of XWPFParagraphs of which you need to take care. So you need to remove all paragraphs in order to have text replace. You can do something like this

if ((cellNum + 1) == 2) {

      if (tableCellVal != null) {
        if (tableCellVal.length() > 0) {
          removeParagraphs(tableCell);
          tableCell.setText("CHANGE");
        } else {
          //tableCell.setText("NULL");
        }
      }
    }

where removeParagraphs can look like this

private static void removeParagraphs(XWPFTableCell tableCell) {
    int count = tableCell.getParagraphs().size();
    for(int i = 0; i < count; i++){
      tableCell.removeParagraph(i);
    }
  }
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Last option in Software Development, see here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Just split "Broadcast" and "test" into 2 files

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes, as I indicated in many other posts, it is best to keep it running instead of open/close on each recompile

BTW, post moved to mobile development

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@rotten69 was it worth to reopen 6 year old thread? (Created 02-05-05)

Thread closed, before another time-traveler arrival

rotten69 commented: Why the HECK was I given a -1? Because I added a reply in a too old thread!! +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You should check for network as soon as you start application. Sp somewhere between initializing "main" (not sure how it is called in Windows development) and showing first user interfaace

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well this is your project, so why don't you show what you learn so far and do some creative thinking...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

peter budo, this is in the right place, however he tagged his code as JSP, however it is JavaScript

Yes NOW it is in correct place, hence my comment Post moved

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Do you know any online resource that can help me to set up a web development server in my place, which our team can access.
>>It is unlikely you will find such document as everyone goes with tools he is more comfortable/efficient with. I have my server running on Ubuntu and use either Ubuntu desktop or Mac OS (I have MacBook Pro) to maintain it. Installation of Java is MUST (I expect you know that :) ), then you may add Ant and/or Maven, choice of Java container/server Tomcat/Jetty/JBoss App Server/GlassFish (I use Tomcat) and of course some continuous integration(CI) with Jenkins/TeamCity or such (no preference here, I used both), code quality tools either plugins in project pom that can be run on CI or something like Sonatype Sonar

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

As stultuske mentioned decision you need to make is front or back end. If you have choice you should learn little of Hibernate and Spring (core no additions) for back-end, just to have idea how you can apply them. Then maybe try something like Tapestry or Wicket for front end

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Dear tqmd1 either pay attention where you post or learn difference between JSP (Java Server Pages) where you posted this and JavaScript.

Post moved

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Have look at Java Web Development - Starting [tutorials / resources / faq] there are some books I used in past

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can you attach sample word document you trying to work on?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Do provide evidence of having done some work yourself if posting questions from school or work assignments