2,443 Posted Topics
Re: Uhhm, awk is a really large subject. O'Reilly publishing [url]http://www.oreilly.com/[/url] produces an entire book (and a good one at that) dedicated to sed and awk. Try that. | |
Re: sed -e 's/\+62018\([0-9]+\)\+\+/+62018\10++/' infile > outfile | |
Re: [QUOTE=Vinoth;303642]Since he is new, there is no need to go with servlets , you can search google to find some good codes to start with. when u think u are perfect then jump to what my friend said and also look over struts framework.[/QUOTE] As aniseed alluded to above, this … | |
Re: By assigning the date object to a session variable at login, then simply displaying that date at every other page load rather than creating a new date (as you are doing now). A new date object will always hold the current time at the time of construction (at least when … | |
Re: Oh, this is classic, posting a question onto a thread about projects in Java (in the Java Forum of course) that is two years dead, and asking for a project in VB. This question is just guaranteed to get a lot of responses, just none that the poster will want … | |
Re: Please don't cross post, it is considered rude. Please continue with the original thread: [url]http://www.daniweb.com/techtalkforums/thread77555.html[/url] And do what was asked of you there (namely repost your code using code tags, in that thread). | |
Re: Try using POI (it is an apache project) or JExcel. You won't be able to do it with the Jet engine AFAIK. You could always break up the spreadsheet (I know, this is not an option). | |
Re: Uhm, Ahem, there is a tutorial link pinned to the top of this forum. ;-) | |
Re: No, because in BlackJack (21) 10 - King are all 10 and an Ace is either 1 or 11. I would say, when an Ace shows up, total the rest of the cards, then decide how much to assign to the Ace depending on the difference between the current total … | |
Re: If you are writing to the logfile in the following manner [inlinecode]scriptname >> logfilename[/inlinecode] Then change it as follows (for a really quick fix): [inlinecode]scriptname | tee -a logfilename | mailx -s "scriptname" email@address[/inlinecode] | |
Re: Browser pointed at [url]http://java.sun.com/[/url]. Or, go there with the browser, download said documentation, unpack the resulting file, and (again) use the browser to view it (or "plug it into" your IDE, if you are using one). | |
Re: "Linking" 2 or more JSPs is not the problem. Most projects contain many JSPs, Servlets, Beans, Tags, Listeners, and other components. The problem is attempting to use them from two different machines. They need to be part of the same application. Eidt: But, as mentioned above, you can, using HttpUrlConnection … | |
Re: I'm sorry, but this ia a Java forum. JavaScript != Java. Please get this moved to a JavaScript forum. | |
Re: Well, start coding. If you have a problem post again, with your code and a description of your problem, along with any error messages (complete) and we will help, but we are not going to write it for you. | |
Re: As in? What is your problem? What are you attempting to do, and what is actually happening? Are you getting errors? Have you, as yet attempted to code anything? If you have any code, post it, and answer the questions above, then we can help you a bit more. If … | |
Re: What do you mena, to no avail? It definately should work. Vectors may not be the best choice (at least from an efficiency standpoint), but it should work. It would probably be helpful to show the code and provide the complete detils to any error you may ahve gotten. | |
Re: No, it will compile just fine without it. main, as far as the compiler is concerned, is a method just like any other, but when you try to execute a class and the method definition [inlinecode]public static void main(String[] args)[/inlinecode] does not exist, you will get the exact error message … | |
Re: Try this: [url]http://www.daniweb.com/techtalkforums/post250461.html#post250461[/url] | |
Re: A note on the file separator, the command line intrepreter is the complete reason why "\" is always used on Windows. Almost, if not, all programming languages can use "/" for paths in Windows, but the command line interpretor interprets "/" as the option argument indicator, so it needs something … | |
Re: $1 is the first command line argument givben when the script is called (i.e. if the command is [inlinecode]scriptname hello[/inlinecode] then $1 is hello). | |
Re: What it looks like is, either the user "postgres" doesn't exist in the DB, or the provided password is wrong. Edit: Or the provided user does not have permission to access the Tablespace/SID/whatever_it_is_called_in_PostGreSQL requested in the URL (the part after localhost). | |
Re: I haven't even looked at that code, because you haven't really asked a question. What part of this are you having problems with? Are you getting errors while compiling? If so, post them. Are you getting errors while running? If so post them. Are you seeing results other than what … | |
Re: What is "the necessary result"? Are you getting compile errors? If so post them. Are you getting runtime errors? If so, post them. Are the results you are getting something different from what you expect? If so, post exactly what it is expect, and, exactly what it is you are … | |
Re: I assume the error says that it does not implement some method or something to that effect, right? It would have really helped to know what the error was, but I believe I have found it anyway. This line [code] public void actionperformed(ActionEvent event) [/code] should be [code] public void … | |
Re: Or the "equals" method of String, in this case. | |
Re: At the moment, if you are just learning, neither. Learn how to write programs using a simple tet editor (with syntax highlighting, maybe), while compiling, executing, and packaging from the command line. Once you have a good grip on all of that, then it would be a good idea to … ![]() | |
Re: [url]http://java.sun.com/docs/books/tutorial/index.html[/url] | |
Re: You see the two Paths you listed? Those are not the same file. Take a close look at the actual Filenames, then delete the one in lowercase. | |
Re: It depends, on Linux play around for a while with rpm -qa, on Solaris play around with pkginfo, on AIX, HP, and SCO (as well as the FreeBSD/NetBSD deriviates) I can't really help you. I don't remember there software management commands. But as you can see, it depends on your … | |
Re: First of all, never place anyting into the "bin" directory of jdk (or really in any directory of the jdk/jre). Second of all, does your class contain the following method defintion: [code] public static void main(String[] args) { // your code here } [/code] and I mean that exact method … | |
Re: Well, I see no [inlinecode]<HTML> </HTML>[/inlinecode] or [inlinecode]<BODY> </BODY>[/inlinecode] tags, so, if that is suppossed to be a complete HTML document, it is not. I, myself, don't know how those OLE packages are suppossed to work, so I can't even begin to say whether this tip is correct or not. … | |
Re: In mysql you not only have to create a user and set a password, you also have to designate from where (and how) that user is allowed to connect the DB. Per default, root can only connect from localhost using the sock file, but, in Java, you will be attempting … | |
Re: [QUOTE=thekashyap;337632]Error you get is: "IOException returned is: (The filename, directory name, or volume label syntax is incorrect)" Did you check if you're giving the path correctly? May be it's some simple bug like [b]using "/" instead of "\"[/b] (/ is for Linux/Unix and \ for windows as you know)[/QUOTE] Just … | |
Re: We are not going to do your homework for you. Make an effort, then, when you have an actual problem, pst what you have up to that point and state, explicitly, what the problem is. | |
Re: [QUOTE=thekashyap;334507]Storage of the list of Username vs ID most probably has to be done persistantly. I would recommend not to use DB if this is the only reason you want to use it. Rather go for a simple flat/txt file would be easier.[/QUOTE] I don't know why you feel storing … | |
Re: Here [code] String name =JOptionPane.showInputDialog("Enter name of course: "); //downcast all strings into int float etc String inputMarks =JOptionPane.showInputDialog("Enter course marks: "); int marks = Integer.parseInt(inputMarks); String inputcHr =JOptionPane.showInputDialog("Enter course credit hours: "); int creditHr =Integer.parseInt(inputcHr); } Course c1 = new Course(name, marks, creditHr); courseResult.add(Course c1); [/code] I assume you … | |
Re: Error (since 1.5) is another "excpetion" class. Here a quote from the API [quote] An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch. Most such errors are abnormal conditions. The ThreadDeath error, though a "normal" condition, is also a … | |
Re: JavaScript != Java Find a JavaScript forum. But, if the page is generated, rather than static, than have that page include a hidden field containg the date at the time of the request. | |
Re: You type [inlinecode]javac config.java[/inlinecode] to compile and [inlinecode]java config[/inlinecode] to execute (not [inlinecode]java config.java[/inlinecode]). | |
Re: Just read the API for String. Once you have read the input there are two methods in String that do [b]exactly[/b] what you want. | |
Re: I don't think there is anything wrong with it. You said it yourself, it is for building enterprise applications. For building a 'simple website' use 'simple HTML', or PHP, or any form of CGI. JSP is not meant for a 'simple website' and that is actually all there is to … | |
Re: [url]http://java.sun.com/j2ee/1.4/docs/tutorial/doc/[/url] | |
Re: perlcc that comes with the perl distribution | |
Re: You should be overriding paintComponent, and not paint. You also need to call setOpaque on the component. | |
Re: You run a servlet through an application server, not from the command line. Do you have an application server? Tomcat, WebSphere AS, Bea WebLogic, Sun AS, etc, etc. Once you have one (you can download and use Tomcat for free), read its documentation to find out how you deploy an … | |
Re: [QUOTE=BadApples;332534]Use double for your fahrenheit and celsius and change celsius = (5 / 9) * (fahrenheit - 32); to celsius = (((fahrenheit - 32) / 9) *5)[/QUOTE] You do not need to change f an c to double, you just need to make sure that you do double math (if … | |
Re: Well, if the instances of the Buttons themselves are known to the ActionListener (i.e. they are instance variables that the ActionListener has access to) you can simply use getText() to get the displayed value on the button. | |
Re: [QUOTE=uswatun;331663]anyone can help me.. i have a task to coplete below is the question : create class called Arithmetic for performing arithmetic process. use two integer variables to represent the private data of the class. provide a constructor function that enables an object of this class to be initialized when … |
The End.