masijade 1,351 Industrious Poster Team Colleague Featured Poster

I'm sorry, but I don't know how much help you're going to be able to find here in Chinese.

Edit: Or is that Japanese (the closer I look at it, the more I want to say Japanese).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Because su opens an interactive shell you might try placing everything below the su command into a seperate script (lets imagine we call it newScript.ksh), then change this script to the following:

#!/bin/sh
su - postgres -c "/path/to/newScript.ksh"
masijade 1,351 Industrious Poster Team Colleague Featured Poster

What do you mean call a java constructor from a shell script? The only Java method you can call from a shell script is either main or a static block (and if it is a static block in a class with no main it will exit with an error). What, exactly, do you want to do?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Google for a third party program for doing this, but it is not recommended. Why take a language meant for creating cross-platform software, and take that exact advantage away by turing the product into a native executable which can then only be run on one platform?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

it should not matter if you put $yr or ${yr}.

Maybe not, but it is still a good practice to get into, especially when using variables mixed in with other characters where the variable does not have whitespace on both sides. But, considering that he is actually getting "-$yr-" (which is the first variable) tells me that the script is not recognizing those "strings" as variables, at all, which the braces can help with.

Edit: If it were that the variables were defined wrong, he would probably wind up with "Report---".

masijade 1,351 Industrious Poster Team Colleague Featured Poster

JavaScript != Java

This is the Java forum, not the JavaScript forum. The designers did not just simply forget to include "Script" in the name, they are really two different things.

Next time post into the JavaScript forum. I have already asked the moderators to move this thread.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Whether to use serialisation, and whether to use a DB, are not mutually exclusive. There is no reason why you cannot store a serialised object in a DB.

What, exactly, is you want to know? If it is how to se a DB, then consult the JDBC tutorials at Sun first.

parthiban commented: Thanks +2
masijade 1,351 Industrious Poster Team Colleague Featured Poster

What do you know about threads?

What exactly about adding threading to this program do you not understand?

After each connection, you need to start a new thread using the socket created by the connection. What else do you need to know?

If you don't know how to make and/or start the thread, then please consult the threading tutorials at Sun first, then come back and try this.

masijade 1,351 Industrious Poster Team Colleague Featured Poster
cat dailystatus.txt| mail -s "Daily Server Status Report-${yr}-${mm}-${dd}" root@ecms.co.in
masijade 1,351 Industrious Poster Team Colleague Featured Poster

Not willing to try? I am trying and have been for almost 9 weeks! You asked me for more than just the end and that is what I included. You seem to forget that not everyone is a programmer and that some of us are TRYING to learn, we won't get it immediately. I have checked every brace and can not find where you refer. You should be a little nicer when commenting instead of demeaning someone who is attempting to learn.

Why the hell should I try to sugarcoat what I tell you? And why the hell should I do your work for you? I not only told you that we would need the rest of the code, I also told you what the error meant, and how to fix it. Considering that, it was expected that you do that before posting the code, then only posting the code if there was still a problem (probably a different one), and you didn't, that is showing no effort. Checking the braces is easy. Simply count up for each opening and down for each closing, and you should end at 0. Then, if that's the case, and it still doesn't work, then start looking closer to ensure that none of the blocks "overlap". How is that so hard? And why should anyone have to it for you? And as far as showing no effort? Posting your code and saying do it for me, is showing no effort. And complaining when someone …

masijade 1,351 Industrious Poster Team Colleague Featured Poster

At the top of this forum is a fixed post to a tutorial. Read through some of that, try something out, if it doesn't work post your code and I'll help, but I'll not do it for you.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

are you using ksh or bash? if so

set -A aArray `print "$a" | sed -e 's/-/ /'`
set -A bArray `print "$b" | sed -e 's/-/ /'`
# now ${aArray[0]} and ${bArray[0]} contain the year
# and ${aArray[1]} and ${bArray[1]} contain the day
# and ${aArray[2]} and ${bArray[2]} contain the month

The comparison parts you can do yourself.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

There is no API in the world that will provide you with a users password (excpet for authentication modules that actively rectrieve the password from the user "manually", of course).

What is this currently? There have been, in the past few days, between here, Java World, and the Sun forums, about 50 questions by someone wanting to get the user password. Does no one understand that providing that is a huge, gaping, security hole? And because of that , no respectable software is going to provide it.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

vector -> multiple values (i.e. array, which this one is)
scalar -> a single value.

Read the tutorials laready linked to!

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Well, good luck with that. Most of us here, have told you, that that is not the way to go. So, if you decide to go that way (and seemingly you have), you won't find very many sympathetic voices here.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Simply try accessing the page over the server using wget, or netcat, or something similar, for a quick, easy, simple solution (although not necessarily the right one, but hey, if you don't want to use a tool specifically designed for the purpose, you will need to make due with whatever you can get).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Why did you send me this in a PM. This is the closest thread (in topic) started by you that might have something to do with this, so I will post it here for everyone to see, and benefit from the answer.

Hi,
I've downloaded fedora core 7 i386 from fedoraproject.com
how can i burn (bootable) on dvd?
plz help
there are lot of .img files

With nero or some other burn program? My God, read the documentation to whatever burn program you have, and look for tips at the website where you downloaded the image.

Why does no one ever do the obvious? Or, if they did, at least list the things they tried to avoid getting ripped like this.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

No, it is expected that the "client" (or to be installed on) machine already has a jdk/jre (which it probably does, just maybe not the right version).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

The technique, would, obviously, be the same. You would just need to change what is being used to display it. Find out how to do it, in general, then adapt it for the platform you need. If it is possible on the web (where nearly everything is harder and/or more limited than in a standalone environment), then what makes you even consider that it would not be possible in a stand-alone environment?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Yes, it is possible (as evidienced by the fact that it is done by every internet search engine on the planet). There is loads of information out there on it as well, you just need to do a little legwork. As I said, Google "paging". If that is not enough, then Google "Java Paging".

masijade 1,351 Industrious Poster Team Colleague Featured Poster

No. Both of those APIs (you did Google them, right?) come with plenty of examples.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

JExcel or POI

Google those APIs

masijade 1,351 Industrious Poster Team Colleague Featured Poster

JExcel or POI

Google those APIs

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Use an ArrayList (this is dynamic whereas an array is fixed length).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

rather use php, try phpbb for free.

Whether that is the right answer or not is definately debatable, but it still doesn't answer her question as you have not given her teh codez!

masijade 1,351 Industrious Poster Team Colleague Featured Poster

So install Java as well, with the installer used to install your stuff. I can almost guarantee, however, that if they have a browser, they have Java installed, maybe not a "new" version, probably 1.4.2, but they probably have a Java installed.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

What part of no do you not understand? The N? Or the O?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Download, is of course a link, upload jusst like any other file upload, Google "Java File Upload"

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Google "paging"

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Don't tell me that you are not even capable of changing the numbers in that block of if statements. If that is the case then I want to know who you copied the code from, because you definately did not write it, in that case.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

It would seem logical to me, to read the API doc for the TimeZone class. Doesn't that sound reasonable to you?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

That is not Java. Java != JavaScript.

If you are to use JavaScript (not Java) then please click on the "Flag Bad Post" on one of these replies and ask the moderators to move this thread to the JavaScript forum.

And, next time, please, pay attention to what you are posting where. The people who post here do not want to waste their time reading a post that does not even belong there.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Of course. Never payed attention to that, as casting should no longer be needed when using Generics, but you're right, we have no idea how he defined "s". (And me, idiot, completely overlooked "Object" in the error message.)

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Thias sort of thing should not even be attempted by an applet (in most cases). This sort of thing expressly forbidden in most security policies. You may use a signed applet (Google that) and it will allow you some access. To get "full" access, the user using the applet would have to change his security settings (in the JVM not the browser, i.e. he won't find a "friendly" GUI element to do it with).

ajay_tabbu commented: this is really helpfull. +1
masijade 1,351 Industrious Poster Team Colleague Featured Poster

Start your own thread, but that "error" is always that the path is not set (not classpath, path).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Well, according to your other thread http://www.daniweb.com/forums/thread93550.html, you know how to do the Dialog part, and I believe that if you are smart enough to build a switch with properly alinged fall through cases, that you should be smart enough to append strings in a loop. Give it a try, and if it doesn't work, then post it here and we will help correct it. But judging by the fact that your code is always left-aligned, even though code tags are used, I have the feeling that most (if not all) of it, is simply copied of the forums anyway.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Rather than showing the message dialog in the loop. simply concatenate to a string, then show the message dialog once after the loop.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

@OP

Make a Dialog with a Label (or JTextPane would probably be better), then in the first switch you want to use component.setText("string") . Then, everyplace else you should add text, you want to use component.setText(component.getText() + "string") .

Give that a try, then, if you have problems, come back and post that code, and we will see if we can help you further.

Also, don't forget to add a "\n" to the end of each of those Strings (although I don't believe a Label honors those, but a "<BR>" would work in a Label). Then, maybe, add a short sleep after each text block (if you want to introduce a little pause between each line for effect).

masijade 1,351 Industrious Poster Team Colleague Featured Poster

He wants that, because the song goes

On the twelveth Day of Christmas
My true love gave to me
12 Drmmers Drumming
11 Pipers Piping
10 .....
masijade 1,351 Industrious Poster Team Colleague Featured Poster

By reading the documentation, maybe?

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Read the API for FileChannel. The source and destination directory does not make any difference whatsoever, as you are always dealing with two file (or file channel) objects. Where they are makes no difference (to a point). Stop focusing on this system and/or procedural type stuff.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

And you have your very own thread on this topic. Keep the discussion there. And once again, I do not know why you are so fixated on using expr.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Well that is my question. Why are you fixated on expr? Being so fixated on expr tells me that this is some kind of homework assignment where you expect someone to just give you the answer. Well, the closest I am going to come is to tell you that there is a tutorial at the top of the shell scripting forum, it may, then again it may not, cover expr. Then, there is always google.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Check the spelling of the method.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Well, it's bash, so as I said in my first post

for filename in *.cpp
do
  mv "${filename}" "${filename%cpp}out"
done

However, .cpp to .out usually means you want to compile the files, which has nothing to do with simply renaming them like this.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Give a better description of what it is you want to do. Have you even tried those things that were posted?

masijade 1,351 Industrious Poster Team Colleague Featured Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster

I still don't see what error is or is not happening.

What error are you getting? What is getting written into the file (soemthing is, if you are not getting an error.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

It's not suggested, but you didn't say whether your class was only servlets, only JSP with scriptlets (both of these first are not the correct way), or whether it is with full BEAN/tag/Whatever support (which is the correct way), or whether your class is a simple standalone and you should just produce a "sstatic" html page.

masijade 1,351 Industrious Poster Team Colleague Featured Poster

Do you know what an HTML table looks like?

Do you know how to receive a listing of the tracks using JDBC?

Well, get your listing and loop over it inserting the TD tags around each field and TR tags around each row.