Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. bobrivers2003

    Problem extracting .jar and .zip with directory structure

    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...
  2. bobrivers2003

    2 FileFilter issues.

    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...
  3. bobrivers2003

    Hashtable ClassCastException

    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...
  4. bobrivers2003

    Automate command promt input

    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...
  5. bobrivers2003

    Working out time difference between now and 18:00

    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")...
  6. bobrivers2003

    Calculating Time Difference In Minutes between 2 times

    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...
  7. bobrivers2003

    FileWriter Wont Write To Directory

    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() + " : " +...
  8. bobrivers2003

    Find difference between two time enteries

    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...
  9. bobrivers2003

    Increase date by given int

    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...
  10. bobrivers2003

    Redirect to another page when radio button clicked

    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...
  11. bobrivers2003

    intype =&quot;image&quot; ... wont swap picture

    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...
  12. bobrivers2003

    CSS dissapears when I add DOCTYPE

    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...
  13. bobrivers2003

    Pear Package - Spreadsheet_Excel_Writer Append to file

    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...
  14. bobrivers2003

    Javascript world clock only flashes up

    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...
  15. bobrivers2003

    Zip will cannot be read from sql db

    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...
  16. bobrivers2003

    Can zip files be uploaded to a mysql server?

    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...
  17. bobrivers2003

    Check to see if another instance of IE is already open

    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()...
  18. bobrivers2003

    Advice with odbc alternatives

    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 '...
  19. bobrivers2003

    Saving file from server to client side - Automatically

    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")...
  20. bobrivers2003

    refresh child pop up from parent page

    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...

Part and Inventory Search

Back
Top