Please help, print to file on xserve

Guys I am trying to setup a way to print ps files to a hotfolder.
Since I have access to a xserve I was trying to go that route. I know it can be done by changing the swb.conf file. I just do not know how.
Any feed back would be very appreciated.
Thank you for all the help in advance.
sam

Leif again thank you.
I must be doing something wrong.
Here is my backend command:
#!/bin/sh
cat $6 > "/Volumes/ServerHD/psfiles/"$3".ps"
Here is the permissions:
-rwxr-xr-x 1 root wheel 57 May 26 14:25 cbnpdffile
Here is the print.conf:
# Printer configuration file for CUPS v1.1.23
# Written by cupsd on Fri May 26 17:20:33 2006
<DefaultPrinter cbn_pdf>
Info cbn_pdf
DeviceURI cbnpdffile
State Idle
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
I can see the printer in the web config. I can even print a test page and it works.
Now when I go to Server Admin I only see that printer as a default printer.
When I go to a browser and hit the print button I see the printer but get an error: error while printing
How can I get other macs on the network to see that printer. I can not see it in the printer setup utility. If as add as a LPD printer, when I try to print I get an error: Network host '10.0.99.105' is busy, down, or unreachable; will retry in 30 seconds ...
Again thank you for all the help.
sam

Similar Messages

  • Kernel panic/invalid node structure; please help retrieving my files!!

    Hi everyone, thank you for your time in advance... if anyone has ideas about how to solve it, I appreciate this very much!
    OK, here is how it began: while I was working on the airplane using PowerPoint, the gray spinning wheel appeared after which PowerPoint stopped working. I pressed the power button to exit (all applications froze). (So much for trying to get more work done...)
    Next, I powered up the computer but it would not boot up, with only gray spinning wheel showing.
    Next, tried to boot up while pressing power button and holding shift key. After some time (10 minutes), an error message appears. Researching it on discussion forums, I found that it is called “kernel panic”. Here is beginning of the message:
    panic(cpu 1 caller 0x47f5ad): "Process 1 exec of /sbin/launchd failed, errno 8\n"@SourceCache/xnu/xnu-1504.15.3/bsd/kern/kern_exec.c:3145
    Debugger called: <panic>
    [additional information here]
    Also, message “You need to restart your computer. Hold down the Power button until it turns off, then press the Power button again” is shown transparently in the middle of the screen over the “panic” message output.
    I turned on and off the Power button many times, but I get the same error message.
    I also tried Apple Hardware Test but it did not work (it did not generate any messages).
    Next, I tried to use the Disk Utility using the Installation Disk that came with the computer. After I clicked “Disk Repair”, here is the log:
    Verify and Repair volume “Macintosh HD”
    Checking Journaled HFS Plus volume.
    Checking extents overflow file.
    Checking catalog file.
    Invalid node structure
    Rebuilding catalog B-tree.
    Invalid node structure
    [many repeats of “Invalid node structure”  ~ about 400 repeats]
    Rechecking volume.
    Checking Journaled JFS Plus volume.
    Checking extents overflow file.
    Checking catalog file.
    Missing thread record (id=18)
    Missing thread record (id=110)
    [many instances of “Missing thread record” ~about 200 repeats]
    Checking multi-linked files.
    Checking catalog hierarchy.
    Checking extended attributes file.
    The volume Macintosh HD could not be verified completely.
    Error: Disk Utility can’t repair this disk…disk, and restore your back-up files.
    At the end, a window presented over the error log stated :
    “Disk Utility stopped repairing “Macintosh HD”
    Disk Utility can’t repair this disk. Back up as many of your files as possible, reformat the disk, and restore your back-up files.
    I need to retrieve my recent files!! Please Help!! Argh!! I promise that I will promptly back up my files now! I did not use Time Machine, and only some of my files are backed up.
    From what I read on the discussion forum, I will probably need to erase the disk and then do a fresh installation, but could someone please guide me with regard to how to back up the data / retrieve the files? I may have access to another mac so I’m thinking that the FireWire Target Disk Mode may work. I also have spare external harddrive (formatted for mac) (not partitioned). Also, how do I retrieve the files from the other computer if the FireWire transfer works?
    Also, the second step is to do a new installation, but is there any reason why “Archive and Install” using Disk Utility won’t help? I have some additional programs installed (Illustrator, Photoshop) so this means if I do a new installation, I will need to re-install those as well?
    I did some investigation, and it looks like this problem is similar to this:
    https://discussions.apple.com/message/18098343#18098343
    But my main issue now is to retrieve the files!
    Also, how do I investigate whether this problem is due to a failing hard drive or a natural file system corruption ? (so should I get a new harddrive or do a new install).
    http://forums.macnn.com/t/459376/heart-attack-invalid-node-structure
    I don’t know what is the OS version;  it is Snow Leopard OS X ……. I bought it in September 2009.
    I appreciate any help, thank you so much for your time…

    Create a data recovery/undelete external boot drive
    Step by Step to fix your Mac
    Most commonly used backup methods

  • Please help printer wont print a legal document

    please help me printer wont print legal documents??? 

    Hi,
    which printer do you have is it an Officejet, laserjet or a Photosmart?
    I work for HP but my posts and replies are my own.
    Make it easier for other people to find solutions, by marking my answer with \'Accept as Solution\' if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"

  • Please help, very important file corrupt

    Hi,
    I am writing my final thesis, (more than 100 pages) and indesign crashed this moring while writing. Now the file can't open anyware anymore. I am using CS6 trial version, and even on other mac and pc it will not open anymore.
    How can I get my file back? Please help me..
    Thanks a lot!

    It's usually a bad sign when the file will no longer open even on another computer. Do you get any error messages?
    Find, and empty, the InDesign Recovery folder in your user library to keep ID from crashing over and over when it tries to open the bad recovery data. (The recovery folder is in the same folder where the InDesign SavedData file is stored, and the path information for your OS can be found in Replace Your Preferences Note that this folder is gong to be a hidden folder if you run Lion, so you need to display hidden folders in your search).
    Once that is done, start InDesign and use FIle > Open... to navigate to the original location where the file is saved. Tick the radio button to "Open as a COPY" and cross your fingers. If you are REALLLLLLY lucky it will open, and if it does, IMMEDIATELY export to .idml, then save the file with a new name as a backup, too. File > Open... and open the .idml file you just made, Save As to yet another name and you should be good to go.
    If it doesn't open, do you have any backup copies someplace? If not, you best hope is probably Markzware: Bad InDesign or Quark File Recovery Submission Form
    Now some advice on preventing this from happening again (though a crash is outside your control). First, never work directly off a removeable drive, if that's your habit. Copy the file to the hard drive, edit, then copy back to the removeable drive. Do a Save As from time to time to clear out the old, useless and inaccessible change data from previous sessions and reduce the file size. Make backup copies every day. If you do the save as each time you are done working, and add a versioning sequence to the name or something similar you take care of two birds with one stone.

  • Please Help Printer Problems

    I have just bought an Airport Extreme Base Station. I have a Mac Book, iBook G3 and a Win XP Laptop that I have so far connected to the network.
    On the base station itself I have a Western Digital My Book External Hard Drive and an HP Photosmart C4180 all in one printer connected via a USB hub.
    All the computers can see the external hard drive but I can only get the Win XP Laptop to print. The two Apple laptops will not print.
    One last thing all my computers connected to the internet wirelessly via my BT Fusion Home Hub before buying the base station. When I first installed the base station I connected the WAN port to the BT hub. As far as the base station is telling me everything must be setup right as I have the solid green light.
    What am I doing wrong. Please help I love Apple products and really do not want to send this back.

    I'd like to suggest you go to www.tune-up.com and download and install this program.
    You get a 30 day free trial to start. If you sign up as a reseller you can get the program for $29 after that.
    I'm not an employee of the company but I just recommend the program as it has fixed many a friends
    problems and has kept my computers and my familys computers running straight and clean with no problems.
    Even if you don't buy the program after using it and it fixes your problems you can uninstall it and consider it a blessing.
    I'm sure once you see what it can do you will think twice to buy it.
    Other than that, I don't know much about your system to even begin to try to tell you what to do as a troubleshooter.
    It could be any number of things that are wrong with it. Number one, the registry might be really messed up.
    Tune-up will fix that fix off for you. A computer is like a car, it has to be kept in tune in order to keep running right.
    Another problem area is malware and viruses. We all know about them but do we ever really know if we might have been bit
    by any of them. Most times not until something serious causes us problems. Can I suggest another program you might try?
    AVG Internet Security 2011 at www.avg.com.  It's another 30 day free trial program. I am also a reseller and have all my computers
    and family members registered and using it.
    I can tell you that with only these two programs installed on your computer you can rest easy and use your computer without any fears or problems.    Let me know how it goes for you. Good luck.
    Paul Streicher
    Tampa, FL

  • M new to this forum + new to java please help me with file handling program

    hi i want to make a file handling program where in i want to input a text file say f1 whose style is mentioned as below
    aaa...bcd
    aaabbc
    acdce
    a..dd
    abbcd
    now i want to write d out put of file f1 to file f2 but only those string entries widout any ... in them how to do that :-(( please help :((

    import java.io.*;
    import java.lang.*;
    class javcsse{
             void javsce (){
              BufferedReader in;
            PrintWriter out;
            String line;
            try
                in = new BufferedReader(new FileReader("e:\\cntcs\\n7.txt"));
                out = new PrintWriter("e:\\cntcs\\n8.txt");
               line = in.readLine();
               while(line != null)
                     if(line.contains("...") && line.contains("....")){
                         break ;                
                         else{
                               if(line.contains("cc"))
                              System.out.println(line+"\n");
                                      out.println(line);
                    line = in.readLine();
                in.close();
                out.close();
            } catch (Exception ex)
                System.err.println(ex.getMessage());
      public class javcse{
        public static void main(String[] args) {
            new javcsse();
    }hey i wrote this code yet could u tell y is it still not working :((

  • Please Help! .jar file don't work.

    Hi, I've written a swing program that works fine when run from command prompt but it doesn't work when I create a self executable jar file and run it.
    Here's the generated classes after compiling the source file:
    TheGMailClient.class (main class)
    TheGMailClient$1.class
    MailSender.class
    MyAuthenticator.class
    I also have a GIF image file.
    Here's what written in the manifest file:
    Manifest-Version: 1.0
    Created-By: 1.4.2_05 (Sun Microsystems Inc.)
    Main-Class: TheGMailClient
    I've created the jar file with the following command:
    jar cvfm TheGMailClient.jar MANIFEST.MF -C classfiles .And here's the exceptions shown after running the jar file (I've run the jar file from command prompt using the java -jar command to view the exceptions):
    java.lang.NoClassDefFoundError: javax/mail/MessagingException
            at TheGMailClient.actionPerformed(TheGMailClient.java:238)
            at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
            at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
    n Source)
            at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
            at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
    ce)
            at java.awt.Component.processMouseEvent(Unknown Source)
            at java.awt.Component.processEvent(Unknown Source)
            at java.awt.Container.processEvent(Unknown Source)
            at java.awt.Component.dispatchEventImpl(Unknown Source)
            at java.awt.Container.dispatchEventImpl(Unknown Source)
            at java.awt.Component.dispatchEvent(Unknown Source)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
            at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
            at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
            at java.awt.Container.dispatchEventImpl(Unknown Source)
            at java.awt.Window.dispatchEventImpl(Unknown Source)
            at java.awt.Component.dispatchEvent(Unknown Source)
            at java.awt.EventQueue.dispatchEvent(Unknown Source)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.run(Unknown Source)It seems to me that some classes are not found. How can I overcome this problem? Please help me guys! I'm really stuck in here.

    The error is occuring because the jar ignores the system classpath.
    You need to set your classpath in the manifest file to find the external jars.
    Otherwise the external jars will not be found.
    In your case class javax/mail/MessagingException
    For example:
    Manifest-Version: 1.0
    Created-By: 1.4.2_05 (Sun Microsystems Inc.)
    Main-Class: TheGMailClient
    Class-Path: . jars/mail.jar jars/activation.jar
    The path will need to be correct in the above related to your system.
    Also because you mention a gif image.
    You will need to add the image to the jar - you haven't.
    make sure you are loading the GIF image file in a manner that can be used from a jar.
    Image image = null;
    try {
      image = ImageIO.read(getCkass().getResource("logo.gif"));
    catch {
      // what ever
    }You may need a relative path to the image in the jar depending on where the gif is.
    For example image = ImageIO.read(getCkass().getResource("images/test.gif"));
    rykk

  • Need help printing tiff files

    I have written some code that prints any file that can be opened using JAI and the ImageIO Tools. The code works good for me but I have some special cases where I am having some difficulty. Some files I need to print are TIFF files with many pages. Some are compressed using Fax Group 4 encoding and others are compressed using OLD jpeg-in-tiff. I can read and print the files just fine, but it takes about 2 seconds to print each page. Also the spooling data for 88 pages is 900 MB in size. Printing the same files using IrfanView takes <1 seconds and the spool file is much smaller (equivalent to the size of the uncompressed tiff) The speed and size issues are problems for me because I am working on a print web service. My code to render each page is below. So far I have tried rendering hints and such to increase speed, but I think the problem is that when I read the image it takes up a lot of space in memory.
    Here is the overall requirements for what I am doing: A use will request that the server print a set of files (mixed image formats, restricted to TIFF, JPEG, and GIF) be printed to specific printer as a single print job. They can specify copies and collation only. The service will open each file in order and send its data to the printer. I have created a custom class that implements the Printable interface to handle the multiple files. The class below is created for each file and handles the printing of the image file.
    I am using JDK 1.4.2 and WebSphere. I am stuck with these options b/c I have to use some IBM API's (IBM Content Manager 8.3) that are not compatible with 1.5 or higher.
    Is there any way to speed up my code. Possibly load the image differently?
    import java.awt.Graphics2D;
    import java.awt.RenderingHints;
    import java.awt.geom.AffineTransform;
    import java.awt.image.BufferedImage;
    import java.awt.print.PageFormat;
    import java.awt.print.Printable;
    import java.awt.print.PrinterException;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import javax.imageio.ImageIO;
    import javax.imageio.ImageReader;
    import javax.imageio.stream.FileImageInputStream;
    import javax.imageio.stream.ImageInputStream;
    public class ImagePrinter2 implements Printable
       public static final int PAPER_SIZE_LETTER = 0;
       public static final int PAPER_SIZE_LEGAL = 1;
       private final ImageReader reader;
       private final int _pageCount;
       private final File imageFile;
       private int _pageOffset;
       public ImagePrinter2(File imageFile) throws IOException
          this.imageFile = imageFile;
          ImageInputStream fis = new FileImageInputStream(this.imageFile);
          reader = (ImageReader) ImageIO.getImageReaders(fis).next();
          reader.setInput(fis);
          _pageCount = reader.getNumImages(true);
       public int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)
          throws java.awt.print.PrinterException
          BufferedImage image = null;
          int currentPage = pageIndex - getPageOffset();  //pageIndex is for the overall job, I need the page in this file
          int imgWidth = 0, imgHeight = 0;
          int drawX = 0, drawY = 0;
          double scaleRatio = 1;
          try
             image = reader.read(currentPage);
             imgWidth = image.getWidth();
             imgHeight = image.getHeight();
          catch (IndexOutOfBoundsException e)
             return NO_SUCH_PAGE;
          catch (IOException e)
             throw new PrinterException(e.getLocalizedMessage());
          if (imgWidth > imgHeight)
             pf.setOrientation(PageFormat.LANDSCAPE);
          else
             pf.setOrientation(PageFormat.PORTRAIT);
          Graphics2D g2 = (Graphics2D) g;
          g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_SPEED);
          g2.translate(pf.getImageableX(), pf.getImageableY());
          g2.setClip(0, 0, (int) pf.getImageableWidth(), (int) pf.getImageableHeight());
          scaleRatio =
             (double) ((imgWidth > imgHeight)
                ? (pf.getImageableWidth() / imgWidth)
                : (pf.getImageableHeight() / imgHeight));
          //check the scale ratio to make sure that we will not write something off the page
          if ((imgWidth * scaleRatio) > pf.getImageableWidth())
             scaleRatio = (pf.getImageableWidth() / imgWidth);
          else if ((imgHeight * scaleRatio) > pf.getImageableHeight())
             scaleRatio = (pf.getImageableHeight() / imgHeight);
          //center image
          if (scaleRatio < 1)
             drawX = (int) ((pf.getImageableWidth() - (imgWidth * scaleRatio)) / 2);
             drawY = (int) ((pf.getImageableHeight() - (imgHeight * scaleRatio)) / 2);
          else
             drawX = (int) (pf.getImageableWidth() - imgWidth) / 2;
             drawY = (int) (pf.getImageableHeight() - imgHeight) / 2;
          AffineTransform at = AffineTransform.getTranslateInstance(drawX, drawY);
          if (scaleRatio < 1)
             at.scale(scaleRatio, scaleRatio);
          g2.drawRenderedImage(image, at);
          g2.dispose();
          image = null;
          return PAGE_EXISTS;
        * <br><br>
        * Created By: TSO1207 - John Loyd
        * @since version XXX
        * @return
       public int getPageCount()
          return _pageCount;
        * <br><br>
        * Created By: TSO1207 - John Loyd
        * @since version XXX
        * @return
       public int getPageOffset()
          return _pageOffset;
        * <br><br>
        * Created By: TSO1207 - John Loyd
        * @since version XXX
        * @param i
       protected void setPageOffset(int i)
          _pageOffset = i;
          * Release the reader resources
          * <br><br>
          * Created By: TSO1207 - John Loyd
          * @since version XXX
       public void destroy()
              try
                   ((ImageInputStream) reader.getInput()).close();
              catch (Exception e)
              reader.reset();
          reader.dispose();
        * Helps release memory used when printing (seems to be a 1.4.2 thing)
        * <br><br>
        * Created By: TSO1207 - John Loyd
        * @since version XXX
       public void reset() throws FileNotFoundException, IOException
          try
             ((ImageInputStream) reader.getInput()).close();
          catch (Exception e)
          reader.reset();
          ImageInputStream fis = new FileImageInputStream(imageFile);
          reader.setInput(fis);
    }

    I found a couple of issues. One was related to code the other to IBM. AS for the code I found an article about drawing scaled images here: http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html which was quite useful. My updated code is below. The second issues is that the JRE I am using is the IBM Websphere 5.1 JRE which pretty much sicks. I tested using a Sun statndard 1.4.2 JRE and the print was 5 times faster. Now I am looking to find a way around that issue, but it is not a questions for this form.
    public int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int pageIndex)
          throws java.awt.print.PrinterException
          BufferedImage image = null;
          int currentPage = pageIndex - getPageOffset();  //pageIndex is for the overall job, I need the page in this file
          int imgWidth = 0, imgHeight = 0;
          int drawX = 0, drawY = 0;
          double scaleRatio = 1;
          try
             image = reader.read(currentPage);
             imgWidth = image.getWidth();
             imgHeight = image.getHeight();
          catch (IndexOutOfBoundsException e)
             return NO_SUCH_PAGE;
          catch (IOException e)
             throw new PrinterException(e.getLocalizedMessage());
          if (imgWidth > imgHeight)
             pf.setOrientation(PageFormat.LANDSCAPE);
          else
             pf.setOrientation(PageFormat.PORTRAIT);
          Graphics2D g2 = (Graphics2D) g;
          g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_SPEED);
          g2.translate(pf.getImageableX(), pf.getImageableY());
          g2.setClip(0, 0, (int) pf.getImageableWidth(), (int) pf.getImageableHeight());
          scaleRatio =
             (double) ((imgWidth > imgHeight)
                ? (pf.getImageableWidth() / imgWidth)
                : (pf.getImageableHeight() / imgHeight));
          //check the scale ratio to make sure that we will not write something off the page
          if ((imgWidth * scaleRatio) > pf.getImageableWidth())
             scaleRatio = (pf.getImageableWidth() / imgWidth);
          else if ((imgHeight * scaleRatio) > pf.getImageableHeight())
             scaleRatio = (pf.getImageableHeight() / imgHeight);
          //find the scaled width and height
          int scaledWidth = imgWidth, scaledHeight=imgHeight;
          //center image
          if (scaleRatio < 1)
             drawX = (int) ((pf.getImageableWidth() - (imgWidth * scaleRatio)) / 2);
             drawY = (int) ((pf.getImageableHeight() - (imgHeight * scaleRatio)) / 2);
             //new code to set the scale
             scaledWidth = (int)(scaledWidth * scaleRatio);
             scaledHeight = (int)(scaledHeight * scaleRatio);
          else
             drawX = (int) (pf.getImageableWidth() - imgWidth) / 2;
             drawY = (int) (pf.getImageableHeight() - imgHeight) / 2;
    /*don't need transform
          /*AffineTransform at = AffineTransform.getTranslateInstance(drawX, drawY);
          if (scaleRatio < 1)
             at.scale(scaleRatio, scaleRatio);
          g2.drawRenderedImage(image, at);*/
          //use scale instance of draw image
          g2.drawImage(image, drawX, drawY, scaleWidth, scaleHeight, null);     
          g2.dispose();
          image = null;
          return PAGE_EXISTS;
       }Edited by: jloyd01 on Mar 7, 2008 1:35 PM

  • Please Help, Missing Project File and Discussion Advice Isn't Working.

    Here's the rundown:
    I was working in iMovie HD 5 when the power got cut out on my external hard drive. When I try to reload my project I got the 'Missing Project File' error that has been discussed by many on this board.
    There are two known fixes.
    1) Open the package and go back to the '~' version of the project.
    2) Use the MovieTimeline.mov in the Cache to import it back into a new project.
    Solution #1 simply didn't work.
    Solution #2 imports the full video as a single long clip but is significantly lower in quality than the original version.
    In addition, the movie was shot in true widescreen and plays in quicktime in 16:9 mode, but when I import that .mov file into iMovie HD for some reason bars are added on the sides and top and bottom of the frame, and the bars are thicker on the sides so it stretches the picture and makes everything look taller.
    Although I'd certainly much rather have my original project timeline back, I could still continue my work if I could figure out how to import the .mov so that it retains the quality and size that it had to begin with.
    Does anyone have any idea how to import it without losing the quality and size or how to gain back an earlier project save?
    Please help if you can, my grandfather's 83rd birthday gala celebration (2 days away!) depends on it!

    I know you're in a rush, so I'll mention a couple other possibilities.
    Solution #2 imports the full video as a single long
    clip but is significantly lower in quality than the
    original version.
    • You shouldn't see any difference. The video imported from the Timeline Movie.mov is exactly the same as the original video. My guess is you're seeing some side effect of the widescreen issue. That, or your iMovie playback settings have changed.
    In addition, the movie was shot in true widescreen
    and plays in quicktime in 16:9 mode, but when I
    import that .mov file into iMovie HD for some reason
    bars are added on the sides and top and bottom of the
    frame, and the bars are thicker on the sides so it
    stretches the picture and makes everything look
    taller.
    • Make sure you're importing to a DV Widescreen project.
    • It might work to open the Timeline Movie.mov in QT Player Pro and export to a DV stream set to 16:9, then import that to the new project.
    • It's curious solution #1 didn't work. What happened when you tried that?
    Karl

  • Please help - printing arrays problem

    Please help - i am currently loading data from a text file
    into flash using an array and loadVars......however when the data
    is loaded into the text box in flash there is a comma after
    it.......i tried using 'join()' but that didnt seem to work :( it
    just meant my variable was undefined. So any suggestions on how to
    delete commas from returned arrays would be great :)
    Thanks
    Jude

    this is the code i have atm..........i got help to remove the
    'undefined' off another post i had open..........and i finally got
    it working........will the removing comma's be along the same
    lines??
    _global.aone = new Array();
    _global.aone[0] = new Array();
    _global.aone[1] = new Array();
    _global.bone = new Array();
    _global.bone[0] = new Array();
    _global.bone[1] = new Array();
    _global.bone[2] = new Array();
    _global.cone = new Array();
    _global.cone[0] = new Array();
    _global.cone[1] = new Array();
    _global.done = new Array();
    _global.done[0] = new Array();
    _global.done[1] = new Array();
    function removeUndefined(inp:String):Array {
    var s = inp.split(",");
    var temp_array:Array = new Array();
    for (var i = 0; i<s.length; i++) {
    if (String(s
    ) != "undefined") {
    temp_array.push(s);
    return temp_array;
    var mydata:LoadVars = new LoadVars();
    mydata.load("answer.txt");
    mydata.onLoad = function(ok:Boolean) {
    if (ok) {
    _global.aone[0] = removeUndefined(mydata.QuestionOneA);
    _global.aone[1] = removeUndefined(mydata.QuestionTwoA);
    _global.bone[0] = removeUndefined(mydata.QuestionOneB);
    _global.bone[1] = removeUndefined(mydata.QuestionTwoB);
    _global.bone[2] = removeUndefined(mydata.QuestionThreeB);
    _global.cone[0] = removeUndefined(mydata.QuestionOneC);
    _global.cone[1] = removeUndefined(mydata.QuestionTwoC);
    _global.done[0] = removeUndefined(mydata.QuestionOneD);
    _global.done[1] = removeUndefined(mydata.QuestionTwoD);
    } else {
    trace("Failed to load text.");
    trace(_global.aone[0]);
    trace(_global.aone[1]);
    trace(_global.bone[0]);
    trace(_global.bone[1]);
    trace(_global.bone[2]);
    trace(_global.cone[0]);
    trace(_global.cone[1]);
    trace(_global.done[0]);
    trace(_global.done[1]);
    };

  • Please, help me with file access in Java Applet.

    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    public class ImageVi extends Applet {
         URL PicPath1;
         Image Img1;
         public void init()
              try
                   PicPath1 = new URL("http://nurchi.far.ru/pic/s08.jpg");
              } catch (MalformedURLException Excep1) {}
         public void paint(Graphics g) {
              Img1=getImage(PicPath1);
              g.drawImage(Img1, 10, 10, this);
    The error message is:
    Exception occurred during event dispatching:
    java.security.AccessControlException: access denied (java.net.SocketPermission nurchi.far.ru resolve)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:195)
    at java.security.AccessController.checkPermission(AccessController.java, Compiled Code)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java, Compiled Code)
    at java.lang.SecurityManager.checkConnect(SecurityManager.java:1019)
    at sun.awt.image.URLImageSource.<init>(URLImageSource.java:48)
    at sun.applet.AppletImageRef.reconstitute(AppletImageRef.java:40)
    at sun.misc.Ref.get(Ref.java:53)
    at sun.applet.AppletViewer.getCachedImage(AppletViewer.java:275)
    at sun.applet.AppletViewer.getImage(AppletViewer.java:270)
    at java.applet.Applet.getImage(Applet.java:190)
    at ImageVi.paint(ImageVi.java:24)
    at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:116)
    at java.awt.Component.dispatchEventImpl(Component.java:2452)
    at java.awt.Container.dispatchEventImpl(Container.java:1059)
    at java.awt.Component.dispatchEvent(Component.java:2312)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:301)
    at java.awt.EventDispatchThread.pumpOneEventForComponent(EventDispatchThread.java:120)
    at java.awt.EventDispatchThread.pumpEventsForComponent(EventDispatchThread.java:95)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:90)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

    Applets are not allowed to connect to other server
    than the one they were loaded from. This is probably
    the reason here.You mean that I can use the applet after uploading on my web-site and using "getDocumentBase()" only?
    OK.
    The applet works perfectly if I use that function, but I have another question.
    If I want to use something like:
    Img1=getImage(getDocumentBase(), "s01.jpg");
    it works perfectly.
    If I do the fillowing:
    Img1=getImage(getDocumentBase(), "pic/s01.jpg");
    it also works.
    But is it possible to go a level up?
    Like:
    Img1=getImage(getDocumentBase(), "../pic/s01.jpg");
    That is if an applet is in one folder and the pictures are in another, but to get to them I have to go a level up and then enter another folder.
    Please help.
    Thanks.

  • SOMEONE PLEASE HELP WITH MISSING FILES XP PROBLEM

    i recently purchased an ipod touch, and all i want to do is get some music on it, and update the firmware, but i cant use itunes, cuz im getting 'there are some files missing' problem.
    I swear to god, if i dont get this fixed by the end of the week, im gonna post the latest video on youtube... on how to smash up apple products.
    Ive been trying NOT to buy apple products since the first dawn of time, but i do actually like the ipod touch. But, low and behold... the very reason why i never buy apple products has been confirmed!
    can someone PLEASE tell me if there is a solid fix for this? i have literally tried EVERYTHING before you ask. im at my wits end.
    Using XP home, all updates installed... latest itunes,

    It will probably help if you'll post the exact error message and when it's occurring. Otherwise we'll just be guessing, not that someone here might not have a good guess. I'm going to guess that this thread might help:
    http://discussions.apple.com/thread.jspa?messageID=11161893&#11161893
    Regards.

  • Please help - printer jammed?

    I have an HP OfficeJet L7580 that i got through a grant at work. I need it to work to print out lesson plans, etc.
    It had a paper jam, I removed it, but the printer thinks it is still jammed. I have opened all doors on the printer multiple times to check, turned it on and off and unplugged it, even tried turning it sideways, to no avail. Is this a problem with the computer chips in the computer, or is there a miniscule scrap in there somewhere? I can try to take it to an office supply store to have it serviced or is there a place  online or method to reboot the circuits in the printer so it doesn't think it is jammed?
    Thanks,
    EG

    Try this:
    1. While the printer is still turned ON, unplug the power cord from the back of the printer and from the wall outlet.
    2. Wait for a minute or two.
    3. Reconnect the power cord to the wall outlet.
    4. While the power cord to the back of the printer is still unplugged, press and hold the POUND (#) and SIX (6) keys at the same time. While holding the two keys, reconnect the power cord to the back of the printer and after two seconds, release the two keys.
    5. Turn ON the printer if it won't turn ON automatically and then follow the on-screen instructions.
    Let me know if it helps you.
    Please click on KUDOS if you find my solution helpful.

  • Please help.  Music files missing from itunes and computer!

    I know that this isn't exactly a new issue, but I have scanned the discussions and nothing that I have read seems to help. My son has a nano (4th gen). He isn't sure but he thinks that maybe he disconnected his ipod before a sync was complete or something because all the music was deleted from it. He's not positive that's what happened but that's his best guess. No problem -- thought we'd just pull songs over again to it from our library. However, when we try to do this, on about 50% of the songs he wants (all were purchased, not from CDs) there are exclamation points next to the songs when we try to drag them and it says the file can't be found. I have looked in the itunes library on our computer and while I can find the libraries, they also don't have these specific songs we are looking for. I've tried to search and I just come up empty. Is there anything we can do beside buy the songs again? There are about 16 songs or so. A couple of them I have on my itouch. Could I somehow transfer the couple of songs to the computer? And would that work to get them to his ipod? Any help would be greatly appreciated.

    +It appeared to do that as there are now duplicates in our library, but when I tried to drag the new song to the ipod, that darn exclamation appeared again and the song wouldn't transfer.+
    It's easy to get rid of the duplicates. iTunes menu > View > View Options
    Check the Date Added box, then click on the column name Date Added twice. Eveything you added to day will be at the top.
    Then click File > Show Duplicates and only delte the one from today.
    Do NOT delete both duplicates, or the song will be entirely gone.
    As for dragging songs to the ipod, it has to be set for "manually manage music" for that to work. I don't understand about the exclamation point showing up again, unless you were dragging the 'old' reference that got deleted. Tyr dragging over the copy from today.

  • Please help opening pdf file from dropdown or listbox

    Have looked through most of the forums, don't think i missed the answer but here goes
    I have a form that includes 4 dropdown catagories; i am trying to have it so that when the friendly text is select from the dropdown it opens a new pdf file with the requested info.
    New to designer, in the past i would rely on bookmarks, so what can i do
    Thanks

    [email protected] wrote:
    > Have looked through most of the forums, don't think i missed the answer but here goes
    > I have a form that includes 4 dropdown catagories; i am trying to have it so that when the friendly text is select from the dropdown it opens a new pdf file with the requested info.
    > New to designer, in the past i would rely on bookmarks, so what can i do
    >
    > Thanks
    Here's a detailed explanation:
    - Create a dropdown list with your 4 categories as the text values
    - Go to the binding tab and check the checkbox that says "Specify Item
    Values". You will see your four categories and they each will have been
    assigned a number (0, 1, 2, 3). Change these number values to be the
    URL to the PDF that you want each category to be associated with.
    - Add a 'change' event to your dropdown list. Select Javascript as the
    scripting language. Put the following code in your change event:
    var selectedText = xfa.event.newText;
    var redirectURL = this.boundItem(selectedText);
    xfa.host.gotoURL(redirectURL);
    Hope this helps!
    Justin Klei
    Cardinal Solutions Group
    www.cardinalsolutions.com

Maybe you are looking for

  • What is this Host Error in file to file scenario ?

    Hi XI experts, We are trying to process file to file scenario in PI 7.0 System . All is configured perfect because same configuration of the scenario worked on different  XI 3.0 system FILE IS PICKED UP from the Server location ( I see that because f

  • Flash Player 10 not working in some sites, working fine in others

    Lately I've been having problems viewing videos with Flash Player on many sites in which they viewed fine previously. What I see is a solid black rectangle the size of the video screen. No Player controls. Nothing. I have looked at the page code, but

  • Trying to find ResultSet empty or not - Error - please help

    Purpose of the code : I am trying to see if the customer or user is in the database. Error : Cannote convert boolean to resultset <%@ page language="java" contentType="text/html; charset=ISO-8859-1"      pageEncoding="ISO-8859-1"%> <%@page import="ja

  • The order of result changed in oracle 10g after migration from 9i.

    i am using the below query to fetch data from two views. SQL: select distinct PVCID pvcid, PATH_ID pathId, fnn fnn, g.XDM_SERVICEID xdmServiceid, TC_SERVICETYPE tcServicetype, TC_PORTTYPE tcPorttype, TERMINATION_TYPE terminationType, TC_PRODUCTCODES

  • Offline program for google apps

    Hello guys, I'm using the google apps gmail, calendar and docs very intensively and would like to have an offline copy on my system. Is there a program that synchronises those data, primary my calendar? Regards Last edited by orschiro (2010-12-13 07: