I have created a class that extracts all files within a built EAR application, within this EAR there would be additional archives that exist that also would need extracting.
I am having trouble extracting jars and zip files that have files in multiple level of directories e.g...
I have a GUI application that includes a save file JFileChooser function. I have included a default save file name but everytime I click on a different directory to save the file in, the name in the save as text field dissapears (it doesnt do this in eclispe) forcing the user to type in a new...
Make a brew first!
I am creating some classes that calculate the checksum of all files within a ear archive and saves these results to a report.txt file. It works a treat and computes a checksum for all files even if there are within a directory, within a directry etc.
The problem I am having...
Hi,
I have created a class that executes an ant script. If the ant does not require an input it works fine. However, sometimes the script will ask a qustion from which the user must type either y or n followed by return.
When my class runs this file it hangs when it gets to this bit.
I...
I want to work out the time difference (in hours) between and and 18:00.
I have tried:
Date futDate = new Date("23/05/2006 18:00:00");
long currentTime = System.currentTimeMillis();
long futTime = futDate.getTime();
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss")...
I have two columns in a table start_time and end_time (stored as datetime). I wish to work out the time difference in minutes between these two values. If the difference is 1hr 30 minutes I wish to get 90 (mins)
I have tried:
SELECT TIME_FORMAT(TIMEDIFF(start_time, end_time), '%i') FROM table...
I wish to save a file if i put c:\\file.txt, the file is saved in the c: drive, however if i put c:\\dir\\file.txt it doesnt work. What am I doing wrong? (I am working on Windows 2000)
try {
out = new BufferedWriter(new FileWriter("c:\\file.txt, true));
out.write(new Date() + " : " +...
I have two field in a db, one called begin_time and one called end_time they are both stored as datetime types.
currently two entries are:
begin_time end_time
2007-04-12 12:18:00 2007-04-12 14:39:00
I need to work out the difference in hh:mm:ss between the begin and end times...
Hi there,
I have the following code:
DateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
System.out.println(sdf.format(new Date()));
that prints the date in a given format. In this class I have an intand based on that int I would want to increase/decrease the date by that value. E.g...
HI,
I have a simple form consisting of two radio buttons. When a radio button is clicked the user is redirected to a given url.
Javascript:
function radio_input(url)
{
// Re-direct the browser to the url value
window.location.href = + url
}
Form:
<form id="form" method="get">
<input...
I have a image for a button in a form. When the image is clicked I want the image to change. I have it working if the image is displayed as
<img name="IMG1" id="IMG1" src="images/on.gif" onClick="swapImage();"
alt="Auto Refresh">
however if the image in the form is displayed as
<input...
I have a simple html login form using css, but when i add
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
to the top of the page some of the css dissapears. WHy is this?
Any help would be greatly appreciated
<html>
<head>
<script...
I have fair knowledge of php but zero of a Spreadsheet_Excel_Writer PEAR package I am trying to use. It writes to excel files with formats etc. and works very well if you are creating an excel file from scratch. I need to append data to an existing file. Currently it overwrites (with blank...
I have been working on a world clock that use a gif of the world that has the major cities on the map set up as a clickable link that displays the time for that city. Default time is UK that shows when the page is first loaded. With my current set up when a city is clicked the time changes for...
I have a html form that allows files to be uploaded to a mysql server, max file size 2mb. I have a page that lists all the files as links and when clicked allows the files to be saved or opened.
It works a treat with all types of files and validates if over 2 mb.
However if I try to upload a...
I have a html form that allows files to be uploaded to a mysql server, max file size 2mb. I have a page that lists all the files as links and when clicked allows the files to be saved or opened.
It works a treat with all types of files and validates if over 2 mb.
However if I try to upload a...
I have a simple JFrame that includes a button that when pressed calls a method that opens Internet Explorer with a given url. It is possible to check if IE is already open and if so stops a new browser window from opening?
void openIE()
{
try {
Runtime rt = Runtime.getRuntime()...
I have made a little application on mylaptop (that I have full write access to) that connect to a database and prints a couple of lines from a sql database.
...
Dim cnMySql As New rdoConnection
Dim rdoQry As New rdoQuery
Dim rdoRS As rdoResultset
' set up remote data connection using the
'...
I have a php script that exports all the structure and data from a mysql db, the file is saved on the server, as it is a back up of the server db I wish to download it to a client when the back up file is created.
I have tried using
Header("Content-type: application/msword")...
Many threads I have checked ask for refreshing a parent from a child pop up, but I am after the opposite. I have a parent that could potentially open several popups.These pop ups query a database and display data.
If one pop up was open the user can simply press refresh to obtain the latest...
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.