How do I push a .rfu file to a HP Printer using Firefox?

To push a .rfu file to a HP Printer to update its firmware using IE7, I have to type in ftp://and the IP address of the printer. When I do that on Firefox and drag the file into the Port folder I am asked what do I want Firefox to do with this file. My question is what do I do with the file from this point?

I wrote this, but am getting a couple errors:
import java.util.*;
import java.io.*;
public class sort
     public static void main(String[] args)
          String fileName = "numsRandom1024.txt";
          Scanner fromFile = null;
          int index = 0;
          double[] a = new double[1024];Don't use double. You should use something that implements Comparable, like java.lang.Double.
          try
               fromFile = new Scanner(new File(fileName));
          catch (FileNotFoundException e)
System.out.println("Error opening the file " +
" + fileName);
               System.exit(0);
          while (fromFile.hasNextLine())
               String line = fromFile.nextLine();
               a[index] = Double.parseDouble(line);Don't parse to a double, create a java.lang.Double instead.
               System.out.println(a[index]);
               index++;
          fromFile.close();
          bubbleSort( a, 0, a.length-1 );No. Don't use a.length-1: from index to a.length-1 all values will be null (if you use Double's). Call it like this:bubbleSort(a, 0, index);
public static <T extends Comparable<? super T>> void
d bubbleSort( T[] a, int first, int last )
          for(int counter = 0 ; counter < 1024 ; counter++)
for(int counter2 = 1 ; counter2 < (1024-counter) ;
) ; counter2++)Don't let those counter loop to 1024. The max should be last .
                    if(a[counter2-1] > a[counter2])No. Use the compareTo(...) method:if(a[counter2-1].compareTo(a[counter2]) > 0) {
                         double temp = a[counter2];No, your array contains Comparable's of type T, use that type then:T temp = a[counter2];
// ...Good luck.

Similar Messages

  • How can I prevent a PDF file from being copied, printed or downloaded? Students should only be able to view the text and and not distribute it in any way.

    How can I prevent a PDF file from being copied, printed or downloaded? Students should only be able to view the text and and not distribute it in any way.

    You can prevent it from being printed by applying a security policy to it
    in Acrobat. The rest can't be prevented, unless you spend  a LOT of money
    on DRM protection.

  • How can one  read a Excel File and Upload into Table using Pl/SQL Code.

    How can one read a Excel File and Upload into Table using Pl/SQL Code.
    1. Excel File is on My PC.
    2. And I want to write a Stored Procedure or Package to do that.
    3. DataBase is on Other Server. Client-Server Environment.
    4. I am Using Toad or PlSql developer tool.

    If you would like to create a package/procedure in order to solve this problem consider using the UTL_FILE in built package, here are a few steps to get you going:
    1. Get your DBA to create directory object in oracle using the following command:
    create directory TEST_DIR as ‘directory_path’;
    Note: This directory is on the server.
    2. Grant read,write on directory directory_object_name to username;
    You can find out the directory_object_name value from dba_directories view if you are using the system user account.
    3. Logon as the user as mentioned above.
    Sample code read plain text file code, you can modify this code to suit your need (i.e. read a csv file)
    function getData(p_filename in varchar2,
    p_filepath in varchar2
    ) RETURN VARCHAR2 is
    input_file utl_file.file_type;
    --declare a buffer to read text data
    input_buffer varchar2(4000);
    begin
    --using the UTL_FILE in built package
    input_file := utl_file.fopen(p_filepath, p_filename, 'R');
    utl_file.get_line(input_file, input_buffer);
    --debug
    --dbms_output.put_line(input_buffer);
    utl_file.fclose(input_file);
    --return data
    return input_buffer;
    end;
    Hope this helps.

  • How do I save a pdf file to iphoto? I used to be able to do this in the "save as" option

    how do I save a pdf file to iphoto? I used to be able to do this in the "save as" option

    Save as is back again - available - in Mavericks by hitting the Option key while in the app's File menu (duplicate will change to save as).

  • Please help. my address bar has vanished. i have no idea how to retrieve it, so can only access bookmarked sites when using firefox.

    please help. my address bar has vanished. i have no idea how to retrieve it, so can only access bookmarked sites when using firefox.

    Make sure that you do not run Firefox in Full Screen mode with all toolbars hidden.
    * Press F11 to toggle full screen mode (Firefox/File > Full Screen)
    If the menu bar is hidden then press the F10 key or hold down the Alt key, that should make the menu bar appear.
    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    * If items are missing then open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout" (Linux, Windows)
    * If a missing item is in the toolbar palette then drag it back from the Customize window on the toolbar
    * If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up.
    See also:
    * http://kb.mozillazine.org/Toolbar_customization

  • When I try to install Firefox, I get a "can not open output file" error. I was using Firefox before and it stopped working, so I uninstalled. Cannot re-install now.

    When I try to install Firefox, I get a "can not open output file" error. I was using Firefox before and it stopped working, so I uninstalled. Cannot re-install now.
    == This happened ==
    Every time Firefox opened
    == I tried to download firefox. ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; AntivirXP08; GTB6.3; .NET CLR 2.0.50727; MS-RTC LM 8)

    When you click the download link on [http://getfirefox.com GetFirefox.com], you should be asked if you wish to Run or Save the file. If the described situation happens when trying to Run the download, try instead to Save it and put the file on your Desktop or a similar place where you are certain that you can find it again.
    When the download is complete, try double-clicking the downloaded file in the normal Windows Explorer (browse your way to the file from My Computer). This should start the installation.
    If you notice in the Explorer window that the file seems to be lacking the Firefox orange/blue icon, rightclick the file and select Properties. The picture should look somewhat like the attached picture (except that mine's in danish, but that is irrelevant) if saved correctly - if it does NOT look like this, please describe the contents or attach a screenshot of the box. Especially what it says under "File type" - it should be "Program"; if it's not, we'll have to look into what the problem could be here.
    Slightly off-topic, your Internet Explorer seems to be quite a bit out of date (IE 6, where current version is IE 8), so I would strongly recommend that you try to run Windows Update to get your system updated. If this is a company system (like a Terminal Server thin client machine), this may not be possible, and your system administrator will most likely have to help you.

  • How do you submit a pdf file in OS 10.9 via firefox browser?

    I received the following pop-up after receiving and following instructions on how to open a PDF file in OS 10.9 using a Firefox browser: 
    Adobe Reader cannot show documents in this browser.
    We are sorry, but Adobe Reader is unable to show documents in this browser configuration.
    Please use your browser to download this file and open it in Adobe Reader or Adobe Acrobat.
    To avoid  this message int he future, many browsers provide a way to turn off  certain add-ons, and some are able to show this document natively.  Please contact your browser vendor for more details.
    I saved the document to my desktop and tried to upload to my work website and received the following security warning: 
    This document is trying to connect to: file:///index.cfm?event=vendorsonly.submitEventForm&btnCloseEvent=
    I am presented with the options block, cancel, and allow. I of  course select allow but it still will not allow me to submit the  document after it has been completed. Can you please assist? 
    Thank you.

    Check your add-ons:
    Cmd+Shift+A
    Make sure the Adobe Acrobat NPAPI Plug-in is set to Always Activate.

  • [Win VC++ 6.0 ]How to get the number of files count in a folder using VC++ 6.0?

    Hi all,
    Can any one tell how to get the number of files(.EPS) count inside a folder when the folder path is specified in VC++ 6.0?
    Thanks in Advance.
    Regards
    myriaz

    I'm a little confused by the question, but it sounds like you're asking how to count the number of files with a particular extension in a given directory? That's not really an AI SDK question, but it's a fairly easy one to find if you google it. If you're trying to use Illustrator to do it, AI doesn't have a general purpose file API. It has a few functions to do some things that Illustrator needs, but I don't think enumerating directories is one of them.

  • How to write a Xml installation file to build  web installer using IzPack.

    Hai everyone,
    I have got a problem in building a web installer using IzPack.I am getting this exception,when I am compiling my install.xml using a compile tool provided by IzPack soft.Eventhough I have not mentioned "packsinfo.xml" in my Xml installation file.
    Fatal error :
    null\packsinfo.xml (The system cannot find the path specified)
    java.io.FileNotFoundException: null\packsinfo.xml (The system cannot find the path specified)
    What went wrong??
    It is very very urgent. Could anyone tell me how to write a Xml installation file for building web installer,please??
    any help will be highly appreciated....
    Thank you very much in advance

    Hi,
    that is not really a java related question. Have you tried to find some IzPack support forum? I've never heard about it, so I can't help.

  • Why can't I attach a file to an email when using Firefox 6.0.1? Works fine if using Explorer

    Using Firefox 6.0.1 browser and web mail service
    Compose email
    Click Add Attachment
    Select file to be attached
    Click Open File or double click file name
    File does not attach
    I do not have this problem when I use Explorer as the browser
    I do not have this problem with Firefox 3

    ''FredMcD [[#answer-718738|said]]''
    <blockquote>
    ''ajfollack [[#answer-718681|said]]''
    <blockquote>
    Disabling the adobe plugin . . . . did not resolve issue
    </blockquote>
    DO NOT disable old program. REMOVE them.
    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache and
    * Remove Cookies<br> '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
    Type '''about:preferences'''<Enter> in the address bar.
    * '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
    * '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
    If there is still a problem,
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    Then restart.
    </blockquote>
    I uninstalled Adobe reader, then did the rest of your suggestions but the problem remains. It is only with 3 emails that get resent daily with slight changes to the text. It is like most of the text has been removed from the email.
    Thanks for the suggestions and advice

  • HT1203 I am trying to restore my iTunes library after updating to latest version. How to I get to the iTunes library? I am using Firefox. users\username\Music\iTunes did not bring me there.x

    Just updated to latest iTunes. My library is missing playlists, some playlists are incomplete. User\username\Music\iTunes did not bring up a link to restore my library. Using Firefox, Windows Vista

    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • Suddenly I am unable to attach files in yahoo email while using firefox, but when I use IE, there is no problem in attaching files. The problem is existing for last 5 days.

    Even files of small size are not getting attached in yahoo mail when I use firefox. However there is no problem when I use IE.

    Thank you jscher2000. Yes my PDFs do contain the .pdf extension. I tried your excellent idea to utilize the drag and drop method, but I still get the same error message with PDFs. I have no problem attaching photos or Word documents with either method; just PDFs.
    For further diagnostics, I started composing my email in Safari, attached all my pdfs and saved my email as a Draft.  I then went to Firefox, opened the draft to continue working on it, and voila!  There are all the pdfs I attached previously while in Safari.  I was able to send the email with attachments through Firefox with no issues. The attachments went through and were able to be opened.
    I am mystified, as Firefox has been trouble-free with my email account, and I have never had this particular issue till today. I made no changes to anything else on my computer, but I did notice very late last night that Outlook had one of those typical messages at the top of my Inbox to refresh my browser since Outlook had been updated. I refreshed and shut down for the night, and when I rebooted this morning that is when I discovered this brand new glitch with attachments. I'm assuming this has something to do their last update.

  • How to resize a jpg/gif file to a fix size using jimi ?

    I have search from the web and didn't find any example on doing this.
    Can any one give example on how to resize a jpg image. let say 120x240
    to a fixed size 40x40 ?
    thank you

    Hi.
    When you got that image in form of a file, just load it and invoke the image's getScaledInstance(...)-method.
    Here's how it could work:
    import java.awt.*;
    public class Test {
    public static void main(String[] argv) {
      // define where the image comes from:
      URL toImage = new URL("file:/C:/test.jpg");  // or the like
      // get the image:
      Image image = Toolkit.getDefaultToolkit().createImage(toImage);
      // scale the image to target size (40x40 here):
      Image smallImage = image.getScaledInstance(40, 40, Image.SCALE_DEFAULT);
      // you might want to do other things like displaying it afterwards
    }HTH & cheers,
    kelysar

  • How to download a csv/excel file stored in a server using OA Framwork

    Hi All,
    We have a requirement where we have to generate a CSV file using PL/SQL block and the user shoul download that csv file to his client machine whenever it requirs to him. We have generated csv file and save the same in a particular location in the server. As the CSV file size may be around 10 to 15 MB we feel the storing and retrieving of the csv file in a BLOB object is a performance hit. Now we want to dowload the file from the csv file path without storing the csv file into database BLOB object.
    Is this possible using OA framwork? if so please guide me how to do this.
    Thanks in advance.
    Regards,
    Sathesh.

    If u know following details you can use below method to download any file ( XLS/any) its generic method I have used in one of my project-
    1. File Name with Extension
    2. File path at which it has been placed
    3. Page Context (you must know i assume)
    public void DownloadFileFromServer(OAPageContext pgeContext, String file_name_with_path,
    String file_name_with_ext)
    System.out.println("Filename path "+file_name_with_path + "File Name:" + file_name_with_ext);
    HttpServletResponse responseVar = (HttpServletResponse)pageContext.getRenderingContext().getServletResponse();
    if (((file_name_with_path == null) || ("".equals(file_name_with_path))))
    System.out.println("File path is invalid.");
    File fileToDwnld = null;
    try
    fileToDwnld = new File(file_name_with_path);
    catch (Exception e)
    System.out.println("Invalid File Path or file does not exist.");
    if (!fileToDwnld.exists())
    System.out.println("File does not exist.");
    if (!fileToDwnld.canRead())
    System.out.println("Not Able to read the file.");
    String MADfileType = getMADMimeType(file_name_with_ext);
    System.out.println("File Type - " + MADfileType);
    responseVar.setContentType(MADfileType);
    responseVar.setContentLength((int)fileToDwnld.length());
    System.out.println("File Size is " + fileToDwnld.length());
    responseVar.setHeader("Content-Disposition", "attachment; filename=\"" + file_name_with_ext + "\"");
    InputStream inStr = null;
    ServletOutputStream outStr = null;
    try
    outStr = responseVar.getOutputStream();
    inStr = new BufferedInputStream(new FileInputStream(fileToDwnld));
    int ch;
    while ((ch = inStr.read()) != -1)
    outStr.write(ch);
    catch (IOException e)
    e.printStackTrace();
    finally
    try
    outStr.flush();
    outStr.close();
    if (inStr != null)
    inStr.close();
    catch (Exception e)
    e.printStackTrace();
    Edited by: aprak on Oct 18, 2011 1:08 AM
    Edited by: aprak on Oct 18, 2011 1:09 AM

  • How to block writing to a file which is already in use?

    Hi all,
    There is a certain file on a network drive. Multiple users have the rights to read and write to this file.
    I want to acccess this file via a LabView VI.
    If someone is already accessing this file I want to create a message like "File is already in use by user XXX, therefore acccess is read-only".
    Something like this is implemented in Windows (e.g. Excel...).
    How can I implement this in LabView? The access from each user is done with the same VI running on different computers.
    Of course I can create an .ini file, where I write the user which is currently accessing the file and block write acces for others.
    Is there a better way to do this?
    Thank you for any hints,
    Tilman.

    Does Excel tell you who is using the other file?
    If yes, does it do this only for its own file types or also for files like CSV or TXT?
    If it only does it for its types, then this is probably built into the definition of the file somehow (although I would assume that would mean that everytime Excel opens the file it also needs to save it?).
    I would try checking in the MSDN whether this is something that Windows supports.
    If not, the only option that comes to mind is the INI file you suggested.
    Try to take over the world!

Maybe you are looking for