I am trying to write this quick li'l thing to do an ls in a given directory and return the results (if any) to the screen. I thought I could use Runtime.exec but in reading up it says that should really only be used to run programs. What would I use instead?
Thank you in advance for your help :)
I have a delivery sheet being emailed. The first page is dynamic. That attaches fine. The second page has to be emailed with the first page also an attachment. They're both pdf files. When I try to attach it I get no errors but it creates an empty file. I don't want to recreate the second file...
I'm using Calendar to compare 2 dates to see their difference in time. I couldn't get the locale to set properly so I created a lookup of states to just give me the offset. The problem is that for states that don't observe daylight savings I need to set a different offset during dst. Is there a...
Okay who's a ftp wiz?! :)
We recently moved our servers behind a firewall and were told we had to change our feed programs to use a passive connection. I can get the mode changed to passive and it gets the file but then the connection hangs. Am I closing the connection incorrectly?
Here's a...
Hi,
I have a program that ftp's a file from a server that is outside our firewall. I'm told I have to send the "pasv" command in order to let the data connection bring the file back. I can see in the debugging that it's setting the connection as passive but it sets it back to active when I get...
There's a gettimeinmilliseconds which is protected. getTime().getTime() returns the milliseconds.
long, int, Integer, it doesn't matter what I use the result is the same. Even if the time difference is only an hour the output isn't correct.
Using this as an example:
compare1: 1077614100712...
I have a js function for a checkbox. It's on every row of my part detail so I could have 1 - ? rows If I have more than 1 rows then the checkbox works correctly. When a user checks it I open a new page. If, however, I only have 1 row then I get an error that the value doesn't exist. Why does...
The code originally was for multiple forms. Moving the form outside my loop is what broke this. I'm trying to change it to give me the value of the form elements for the row that was checked. I don't need the check box value, that's just set to the row index. I need the value of some other...
Hi!
I have a function that WAS working beautifully. I have a page that displays some query rows for me. I had a form for each row but it had to be changed when other form input was added. Now instead of the form being on each row it's just one form. I hope this makes sense!
What's happening is...
I have a form w/ 5 selects. When you first enter this page only the first select is filled. Once the user selects one of the options I want it to refresh the page so I can fill the next select based. And so on for each select list. I have a server side process that's called whenever the page is...
I'm getting the milli from 2 dates, current & a passed date. I want to know the difference in time down to the second between the 2 dates.
Given this date: 2004-02-05 18:25:00
and current of 2004-02-17 09:40:00
I get a time difference of 27:166:100. This is supposed to be hours min seconds...
I have 2 questions.
I have a query that I need to return the difference between 2 dates. One is a timestamp field the other is a char field but it's in timestamp format.
First question is, is the extend the way I have it correct? It works but only if there's a value.
Second question is...
I'm having issues setting a date and I'm wondering if someone could explain what I'm doing wrong. User enters a date/time. I need to compare that date/time to the current date/time and decide whether it meets criteria. The problem is that I have to assume the user entered the date/time based on...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.