What do these Reader command line parms mean?

--channel=4956.0037FA0C.303535326
--type=renderer
/o /eo /l /b /w 984644 /id 1476
TIA, Pete

That did the job!....Thanks so much!!!
seeren wrote:
Those indicate control surfaces.  Go into control surface setup to change color or delete those which you may have inadvertantly configured or don't use anymore.  Right click on the header to configure header and deselect the box that shows those, if you want.
Message was edited by: Torrid41

Similar Messages

  • I am trying to set an open DNS using the MacAir. But when I tried to flush the existing one at utilities/terminal, it will not work.  I am using Yosemite.  May I know what should be the command line so that I can shift to an open DNS?  Thanks

    I am trying to set an open DNS using the MacAir. But when I tried to flush the existing one at utilities/terminal, it will not work.  I am using Yosemite.  May I know what should be the command line so that I can shift to an open DNS?  Thanks

    >SystemPreferences>Network>DNS

  • Acrobat reader command line switch - password

    Hello everybody,
    I am a developer for macromedia director applications.
    I need to open a password protected PDF-file from within a
    director-projector-application with any suitable
    xtra-extension (not the
    problem discussed here!).
    all I would need is the complete command line for acrobat
    reader to do
    this.
    A complete list of command line switches for Acrobat Reader
    would be helpful
    in respect to further needs.
    where can i get this.
    By the way, the solution for Windows and Mac OS would be
    welcome. Are they
    the same?
    Thanks
    Peter Grambitter

    Hello everybody,
    I am a developer for macromedia director applications.
    I need to open a password protected PDF-file from within a
    director-projector-application with any suitable
    xtra-extension (not the
    problem discussed here!).
    all I would need is the complete command line for acrobat
    reader to do
    this.
    A complete list of command line switches for Acrobat Reader
    would be helpful
    in respect to further needs.
    where can i get this.
    By the way, the solution for Windows and Mac OS would be
    welcome. Are they
    the same?
    Thanks
    Peter Grambitter

  • Read command line arguments with an ActiveX step

    Hi
    I would like to read the command line parameters from TestStand startup. I did find an ActiveX resulting in a Object Reference (See Locals.CommandsRef). How do I use this reference to really get the arguments and their count? See also screenshot.
    Solved!
    Go to Solution.
    Attachments:
    Screenshot.jpg ‏160 KB

    Hi Paulus,
    Via this link, you find an forumthread that describes the same issue. testStand does not support this, but there is a workaround. Attached you find the code.
    The attachment includes a LV vi with the command line. If you doen't use Labview, here is the command line:
    C:\Program Files (x86)\National Instruments\TestStand 2012\Bin\SeqEdit.exe /goto "Parameter1 = test" /runEntryPoint "Test UUTs" D:\Testsequence.seq
    Regards,
    Bas
    Attachments:
    Command line TestStand.zip ‏10 KB

  • Acrobat Reader command line problem

    In windows xp professional I'm programatically creating a batch file and executing it (shell command in visual basic) to convert pdf files to Microsoft xps.
    The batch command looks like this one:
    "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" /t "D:\MyDir\Microsoft XPS Document\x.pdf" "Microsoft XPS Document Writer" /t "D:\MyDir\Microsoft XPS Document\x.xps".
    When the user logged in on the machine is an administrator, acrobat reader does the operation silently. When a normal user (not belonging to administrators group) is logged in on the machine, acrobat reader opens the save as dialog window requiring user interaction.
    The normal user has full control over the destination directory. I already tested giving the normal user full control over AcroRd32.exe and over cmd.exe with no success. I also tried in visual basic 2008 executing the command through System.Diagnostics.Process.Start with the exact same curious results.
    Can someone help.
    Thank you.

    Hi.
    I couldn't find a solution within Adobe for the problem I reported Oct 9, 2012, so I went to a fallback solution aimed to complete the needed stages. I'm posting here the visual basic 2008 code I wrote then. It is not a graceful solution and has some coarse code but was designed as part of an application that must keep processing files without user intervention. The procedure "followAcroRd32PDFtoXPS" must be called after the execution of a batch command like the described in the previous post:
    Module fallback
        Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
        Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hwndParent As Integer, ByVal hwndChildAfter As Integer, ByVal lpszClass As String, ByVal lpszWindow As String) As Integer
        Declare Function GetDlgCtrlID Lib "user32" (ByVal hDlg As Integer) As Integer
        Declare Function SendDlgItemMessage Lib "user32" Alias "SendDlgItemMessageA" (ByVal hDlg As Integer, ByVal nIDDlgItem As Integer, ByVal Msg As Integer, ByVal wParam As Integer, ByVal lParam As String) As Integer
        Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
        Const WM_SETTEXT = &HC
        Const BM_CLICK = &HF5
        Function FileInUse(ByVal filepath As String) As Boolean
            Dim f001 As Integer
            If System.IO.File.Exists(filepath) Then
                Try
                    f001 = FreeFile()
                    FileOpen(f001, filepath, OpenMode.Binary, OpenAccess.ReadWrite, OpenShare.LockReadWrite)
                    FileClose(f001)
                Catch
                    Return True
                End Try
            End If
        End Function
        'outpfile <-- path to the XPS Document to be created
        'starttime <-- system date and time when the batch command line was executed
        Sub followAcroRd32PDFtoXPS(ByVal outpfile As String, ByVal starttime As System.DateTime)
            Dim p As System.Diagnostics.Process, q As System.Diagnostics.Process, proc() As System.Diagnostics.Process
            Dim i As Integer, j As Integer
            Dim l As Long, memusage() As Long
            Dim t000 As System.DateTime
            Dim t999 As System.DateTime
            Dim hwnd As Integer, lObjhWndTB As Integer, lObjhWndBu As Integer
            Dim nIDDlgItem As Integer
            Dim resu As Integer
            dim maximumacrobatwaittime = 60 'seconds
            dim memoryusageinactivity = 12 'seconds
            dim acrord32pdftoxpstimelimit = 12 'seconds
            'Identify necessary Adobe Reader process
            t000 = DateTime.Now
            Do
                System.Threading.Thread.Sleep(1000)
                i = 0
                For Each p In System.Diagnostics.Process.GetProcesses
                    If LCase(p.ProcessName) = LCase("AcroRd32") Then
                        If Not p.StartTime < starttime Then
                            ReDim Preserve proc(i)
                            proc(i) = p
                            i = i + 1
                        End If
                    End If
                Next
                If i > 0 Then Exit Do
                t999 = DateTime.Now
                If DateDiff(DateInterval.Second, t000, t999) > maximumacrobatwaittime Then
                    Exit Sub
                End If
            Loop
            'Identify necessary window
            t000 = DateTime.Now
            Do
                System.Threading.Thread.Sleep(1000)
                hwnd = FindWindow(vbNullString, "Save the file as")
                If hwnd <> 0 Then
                    Exit Do
                End If
                t999 = DateTime.Now
                If DateDiff(DateInterval.Second, t000, t999) > maximumacrobatwaittime Then
                    Exit Sub
                End If
            Loop
            'Send click message to button save
            t000 = DateTime.Now
            Do
                System.Threading.Thread.Sleep(1000)
                lObjhWndTB = FindWindowEx(hwnd, 0, "ComboBoxEx32", "")
                If Not lObjhWndTB = 0 Then
                    nIDDlgItem = GetDlgCtrlID(lObjhWndTB)
                    resu = SendDlgItemMessage(hwnd, nIDDlgItem, WM_SETTEXT, 0, outpfile)
                    If resu > 0 Then
                        lObjhWndBu = FindWindowEx(hwnd, 0, "Button", "&Save")
                        If Not lObjhWndBu = 0 Then
                            resu = PostMessage(lObjhWndBu, BM_CLICK, 0, 0)
                            If Not resu = 0 Then
                                Exit Do
                            End If
                        End If
                    End If
                End If
                t999 = DateTime.Now
                If DateDiff(DateInterval.Second, t000, t999) > maximumacrobatwaittime Then
                    Exit Sub
                End If
            Loop
            'Adobe Reader eventually will enter inactivity after printing to XPS Document
            ReDim memusage(0)
            Do
                System.Threading.Thread.Sleep(1000)
                ReDim Preserve memusage(UBound(memusage) + 1)
                For Each p In proc
                    p.Refresh()
                    memusage(UBound(memusage)) = memusage(UBound(memusage)) + p.WorkingSet64
                Next
                If Not UBound(memusage) < memoryusageinactivity Then
                    j = 0
                    l = memusage(UBound(memusage))
                    For i = UBound(memusage) - 1 To UBound(memusage) - memoryusageinactivity + 1 Step -1
                        If l = memusage(i) Then j = j + 1
                    Next
                    Select Case j
                        Case memoryusageinactivity - 1
                            Exit Do
                        Case Else
                    End Select
                End If
            Loop
            'Wait for the new XPS Document
            t000 = DateTime.Now
            Do
                System.Threading.Thread.Sleep(1000)
                Select Case My.Computer.FileSystem.FileExists(outpfile)
                    Case True
                        If Not FileInUse(outpfile) Then Exit Do
                    Case Else
                End Select
                t999 = DateTime.Now
                If DateDiff(DateInterval.Second, t000, t999) > acrord32pdftoxpstimelimit Then
                    Exit Do
                End If
            Loop
            'Kill Adobe Reader process
            For Each p In proc
                p.Refresh()
                Try
                    p.Kill()
                Catch ex As Exception
                End Try
            Next
            'Kill eventual MS Windows error reporting system process
            For Each p In System.Diagnostics.Process.GetProcesses
                If LCase(p.ProcessName) = LCase("WerFault") Then
                    If LCase(p.MainWindowTitle) = LCase("Print driver host for 32bit applications") Then
                        For Each q In System.Diagnostics.Process.GetProcesses
                            If LCase(q.ProcessName) = LCase("splwow64") Then
                                Try
                                    q.Kill()
                                Catch ex As Exception
                                End Try
                            End If
                        Next
                        Try
                            p.Kill()
                        Catch ex As Exception
                        End Try
                    End If
                End If
            Next
        End Sub
    End Module

  • Adobe reader command line search

    Hello everyone,
    I am opening a PDF file using command line arguments and perform a search.
    My command looks like this:
    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /A search="word" "C:\File.pdf"
    The command is working, but I have the issue that it looks like the search is only performing with option "Match whole words only".
    Does anybody know if I can change this option for command line search to get all search results?
    Thanks in advance.
    Regards,
    ajay311

    Does anyone have an idea?
    Thanks!

  • Reading Command Line

    How to read the DOS command line by JAVA.
    for example when i type on DOS DIR, want to save all output to Text file.
    Thanks and best regards

    I found somthing to help, but i need to make a process which let me to type a command into the Concole and the output will appeare like i am working with Dos Wndows ( Start--> Run--> cmd)
    Thanks and best regards

  • What would these points and lines be?

    I saw someone use InDesign and they had blue lines and solid points set between their InDesign objects in a document. (to determine the placement of objects and text, probably.)
    But I have never seen this before!
    They were certainly not guides or frames,
    ...just point A to point B points and then one straight lines in between,
    so what could they be?

    no, thats weird, it wasnt either one of them, unless anchored objects show those kind of points and lines. but they usually just show other stuff.

  • Trying SSH CLI ,  reading command line method is infinte loop problem!

    I am trying excute command and reading result. but reading result part has problem.
    below source is a part of my method.
    try{
                   SessionChannelClient sessionChannel = ssh.openSessionChannel();
                   sessionChannel.startShell();
                   OutputStream out = sessionChannel.getOutputStream();
                   String cmd = s + "\n";
                   out.write(cmd.getBytes());
                   out.flush();
                   InputStream in = sessionChannel.getInputStream();
                   BufferedReader br = new BufferedReader(new InputStreamReader(in));
                   byte buffer[] = new byte[255];
                   String read= "";
                   while (true) {
                        String line = br.readLine();
                        if (line == null)
                             break;
                        str += line;
                        str += "\n";
                   System.out.print(str); //print result
                   sessionChannel.close();
                   in.close();
                   out.close();
              }catch(IOException ee){
                   System.out.println(ee);
              }finally{
                   System.out.println("=============end cmd=============");
    while loop has problem. While statement has infinite loop problem.
    why has this problem?
    anybody, help me please. Thanks for reading .
    Edited by: BreathAir on Aug 5, 2008 12:16 AM

    That loop will loop until readLine() returns null, which will only happen when the other end closes its end of the connection, and it will block while no data is available.

  • What does these Apple System Log entries mean?

    I have been reading the Apple System Log and the following entries have caught my attention. Can someone tell me what they mean?
    2011-08-31 12:55:07 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 12:55:08 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 12:55:09 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 12:58:39 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 12:58:54 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 12:59:03 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 12:59:11 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 12:59:21 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 12:59:30 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 12:59:52 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:01:08 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:01:24 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:06:24 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:06:43 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:07:12 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:07:32 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:07:36 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:07:39 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:08:09 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:08:17 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:08:25 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:08:33 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:08:50 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:08:56 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:09:04 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:10:21 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:10:22 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:10:22 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:11:11 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:11:12 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:11:13 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:11:13 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:12:03 -0400 kernel[0]: IOSurface: buffer allocation size is zero
    2011-08-31 13:12:07 -0400 kernel[0]: IOSurface: buffer allocation size is zero

    I find:
    kernel: IOSurface: buffer allocation size is zero
    appears a lot when I can barely get control of my iMac 27, with constant whirring disk sounds and also often with Pref Sync Client (even if no sync taking place) and Safari Web Content also frequently.
    Other alerts include:
    kernel: IOSurface: buffer allocation size is zero
    [0x0-0xda0da].com.apple.Safari: DVFreeThread - CFMachPortCreateWithPort hack = 0x182080, fPowerNotifyPort= 0x181910
    Imran

  • What is the Unix command line command to reformat the internal 3 tera fusion drive in my 5k retina 27 iMac ?

    there seems to be problems with Yosemite and boot camp assistant
    i'm cross posting this to the iMac forum but I spent hours online with apple tech today and none of the several foks I talked to there had even seen a 5k 27" yet and my call back from Cupertino and engineering is no till tomorrow so I thought I should post here too
    MMy bto 5k shipped from China sunday night and arrived in Maine this morning.... Amazing when you think about it for a bto
    iinstallation and set up we're going fine and I started up boot camp assistant to create  a temp boot camp while I wait for my thunder bay 4 box to take the drives for my old Mac pro when boot camp will have a1 tera SSD all to itself....
    so carved off a 700 gig boot camp partition which the assistant formatted fat I then plugged is the lighting to FW adapter in a LaCie 2 tera fw 800 drive to act as a bridge to my LaCie DVD burner which uses the old fw400 cables and inserted my new shrink wrap win 8.1 retail 64 DVD and up comes the win 8 install in very tiny type in a tiny window which got a bit of a laugh out of me.
    And I go through it to the point of selecting that boot camp partition and then said it could not use a fat partition and I should reformat it from the win 8.1 installer which I did and then it said it could not use and unknown partition so I said great and booted back to 10-10 and the boot camp tool to put things back and it said it could not I then went to disk tools and it also said the  3tera fusion could not be either reformatted or put back to a single partition I was on with tech support where I went up through 4 levels of support due to the 5k bto which most had no knowledge of. We tried the optioncommand r to get to DT and the same problem as did going to reinstall from the net which after a 30 min down load could not reformat either it is now kicked to Cupertino with a call back tomorrow
    ( At this point all I want to do is put the computer back in the condition it was in when i started with a plain Yosemite on an unpartitioned 3 tera fusion... Then deal with boot camp when it can have its own drive)
    am betting it will take a Unix comand line to reformat but be aware there may be boot camp issues with my configuration
    and  any help here will be great fully received

    Try booting into Internet recovery mode, ⌘⌥R, launch Disk Utility to erase the HD. If successful, reinstall the OS. If not, then return it (14 days with no questions asked) and get another machine. Apple sells it and they should know how to fix it.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • What is the command line equivalent of the *compress* tool in *Finder*

    I have an automatic build setup for our iPhone Apps. The one issue i face everytime is that the zip file that i create in the build using zip command is always rejected by iTunesConnect server as invalid binary. When i compress the .APP folder manually using Compress from the *Finder menu*, that archive is always accepted. The size of the zip files generated is slightly different.
    Does anyone know what would be the command line equivalent of the Compress used by the Finder ? I want to automate this process so that someone does not have to do a manual compress before uploading it to iTunesConnect.
    Thanks in advance,
    -TRS

    a Mac user wrote:
    That is odd, are you sure you are using the command line correctly then? Because zip-ing from the command line should be the exact same one as from the utility in OS X.
    It's not the same, though. As someone else pointed out, the Finder uses a program called "Archive Utility.app", found in "/System/Library/CoreServices". A quick look at the binary shows that it uses the following Unix command line apps:
    /usr/bin/macbinary
    /usr/bin/file
    /usr/bin/tar
    /usr/bin/applesingle
    /usr/bin/binhex
    /usr/bin/ditto
    /usr/bin/gunzip
    /usr/bin/bunzip2
    /usr/bin/uudecode
    /usr/bin/atos
    I would have to look into how iTunesConnect accepts files.
    iPhone apps are signed binaries, so if one byte is different when they arrive at the app store, they won't be accepted. The command line zip leaves out some information and so the package appears to have been tampered with and they're rejected.
    charlie

  • Invoke Labview applicatio​n from Command line

    hi,
    I have a labview program which does some analysis on my Test data.
    My application is that,i have a Test sequencer program(Different application) which collects data and stores it in .dat file.
    After this i invoke exe of Labview Analysis program from Test sequencer & i enter the Test data filename as a command line argument.
    My first step in  analysis program is read command line argument(thru App.Args property) & get filename(the command line gives array output , index 0 will be Labview,index 1 will show filename)
    This works absolutely fine.
    I made a copy of this analysis prog to include some more functionalities and renamed it as different Labview program(prog structure is same) & trying to do the same abovesaid process.
    But somehow im not able to get Command line arg(basically here filename) passed to labview.
    The error im getting is that it's showing the path of my application (say if my application is in C)."C:\xxxx.dat is not a LABVIEW data file".
    My question is:
    Is there any settings changes to be done for Command line args property node when we make a copy from one prog to other prog.? Im not having clue why this should occur?
    -Murali

    Just to confirm I understand what you are asking... you copied the App.Args property from one vi to another, compiled the new vi to an exe, new exe doesn't receive the command line parameters.
    Did you make sure the "Pass all command line arguments to application" check box (in the 'Advanced' category of the application builder) was checked for the new application?
    Troy
    CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
    I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
    Beware of the man who won't be bothered with details. - William Feather
    The greatest of faults is to be conscious of none. - Thomas Carlyle

  • Problem with tokenized  input from command line

    I am trying to take an input from the command line, parse it to tokens and perform whatever operation is needed depending on the name of the token, on a binary tree of stacks for example, if i type 1 2 1 3 printLevelOrder, then the root of the tree should have 3, 2,1 in the stack, the left child should have 1 and the right child should be empty. and then a level order print of the tree should be performed.
    however what is happening when i run this code is the numbers are being put into the right stacks of the tree, but any commands such as printLevelOrder or PrintPopRoot are entering the code that is for placing numbers onto the stack instead of executing that command and skipping past this piece of code.
    so my question is, why is the if statement if (word =="printLevelOrder") not being executed when thats whats in the word ?
    example input and output shown below code fragment.
              try {
                  BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
                 String line = "";
                 while (line != "***") {
                      System.out.print("> prompt ");
                      line = in.readLine();
                      StringTokenizer tokenizer = new StringTokenizer(line," ");
                      String word = new String();
                      while (tokenizer.hasMoreTokens()) {
                             word = tokenizer.nextToken();
                             boolean notCommand = true;
                             if (word =="printLevelOrder") {
                                  theTree.printLevelOrder();
                                  System.out.println("(word ==printLevelOrder)");
                                  notCommand=false;
                             if (word == "printPopLevelOrder") {
                                  theTree.printPopLevelOrder();
                                  notCommand=false;
                             if (word == "printPopInorder") {
                                  theTree.printPopInorder();
                                  notCommand=false;
                             if (word == "printPopPreorder") {
                                  theTree.printPopPreorder();
                                  notCommand=false;
                             if (word == "printPopRoot") {
                                  theTree.printPopRoot();
                                  notCommand=false;
                             if (word == "***") {
                                  notCommand=false;
                             if (notCommand == true) {
                                  System.out.println("(notCommand == true)");
                                  boolean notPlaced = true;
                                  int v = 1;
                                  while ((notPlaced==true) && (v < theTree.size())) {
                                       if (theTree.element(v).isEmpty()) {
                                            theTree.element(v).push(Integer.valueOf(word));
                                            System.out.println("Inserting"+word);
                                            System.out.println("in empty stack at location: "+v);
                                            notPlaced=false;
                                       if (notPlaced==true) {
                                            if (  Integer.valueOf(word) >= Integer.valueOf( theTree.element(v).top().toString() )  ) {
                                                 theTree.element(v).push(Integer.valueOf(word));
                                                 System.out.println("Inserting"+word);
                                                 System.out.println("in stack at location: "+v);
                                                 notPlaced=false;
                                       v++;
              }valid inputs: int value, printLevelOrder, printPopLevelOrder, printPopInorder, p
    rintPopPreorder, printPopRoot, *** to quit
    prompt 1 3 2 4 2 printLevelOrder(notCommand == true)
    Inserting1
    in empty stack at location: 1
    (notCommand == true)
    Inserting3
    in stack at location: 1
    (notCommand == true)
    Inserting2
    in empty stack at location: 2
    (notCommand == true)
    Inserting4
    in stack at location: 1
    (notCommand == true)
    Inserting2
    in stack at location: 2
    (notCommand == true)
    Exception in thread "main" java.lang.NumberFormatException: For input string: "printLevelOrder"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:447)
    at java.lang.Integer.valueOf(Integer.java:553)
    at TreeStack.main(TreeStack.java:73)
    Press any key to continue . . .

    lol aww, shame that you forgot to do that. i had 10 / 10 for mine, and seing as the deadline is now well and trully over,
    here is the entire source for anybody who was following the discussion or whatever and wanted to experiment.
    additional files needed >
    http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/Stack.java
    http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/ArrayStack.java
    http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/StackEmptyException.java
    http://users.cs.cf.ac.uk/Paul.Rosin/CM0212/StackFullException.java
    /*TreeStack.java - reads command line input of values and assigns them to stacks in a  binary tree and performs
    operations on the ADT. valid inputs: <int>,   printLevelOrder,   printPopLevelOrder,
    printPopInorder,   printPopPreOrder,   printPopRoot.         Terminates on invalid input.
    Written by George St. Clair.
    S/N:0208456         22/11/2005
    import java.util.Vector;
    import java.io.*;
    import java.util.StringTokenizer;
    public class TreeStack {
         private final int TREE_CAPACITY = 7 + 1;
         private final int STACK_CAPACITY = 10;
         Vector tree = new Vector(TREE_CAPACITY) ;
         //collect input from command line, add values to stacks at nodes of the teee
         //and perform required operations on the treestack
         public static void main (String [] args) {
              //create a tree of stacks
              TreeStack theTree = new TreeStack ();
              try {
                   //collect standard input
                  BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
                 String line = "";
                 while (line != null) {
                        System.out.print("");
                      line = in.readLine();
                      //tokenise input
                      StringTokenizer tokenizer = new StringTokenizer(line," ");
                      String word = new String();
                      while (tokenizer.hasMoreTokens()) {
                             //assign word to the token
                             word = tokenizer.nextToken();
                             boolean notCommand = true;
                             //perform operation on treestack depending on what word is
                             if (word.equals("printLevelOrder"))  {
                                  System.out.println("printLevelOrder");
                                  theTree.printLevelOrder();
                                  notCommand=false;
                             if (word.equals("printPopLevelOrder"))  {
                                  System.out.println("printPopLevelOrder");
                                  theTree.printPopLevelOrder();
                                  notCommand=false;
                             if (word.equals("printPopInorder"))  {
                                  System.out.println("printPopInorder");
                                  theTree.printPopInorder();
                                  notCommand=false;
                             if (word.equals("printPopPreorder"))  {
                                  System.out.println("printPopPreorder");
                                  theTree.printPopPreorder();
                                  notCommand=false;
                             if (word.equals("printPopRoot"))  {
                                  System.out.println("printPopRoot");
                                  theTree.printPopRoot();
                                  notCommand=false;
                             //if word was not a command it must be a number
                             if (notCommand == true) {
                                  boolean notPlaced = true;
                                  int v = 1;
                                  //starting at the root, find suitable place for number
                                  while ((notPlaced==true) && (v < theTree.size())) {
                                       //if the stack at v is empty, number goes here
                                       if (theTree.element(v).isEmpty()) {
                                            theTree.element(v).push(Integer.valueOf(word));
                                            System.out.println("inserting: "+word);
                                            System.out.println("in empty stack at location: "+(v-1));
                                            notPlaced=false;
                                       //if the stack is not empty
                                       if (notPlaced==true) {
                                            //if the value on the top of the stack is smaller than number, number goes onto the stack
                                            if (  Integer.valueOf(word) > Integer.valueOf( theTree.element(v).top().toString() )  ) {
                                                 theTree.element(v).push(Integer.valueOf(word));
                                                 System.out.println("inserting: "+word);
                                                 System.out.println("in stack at location: "+(v-1));
                                                 notPlaced=false;
                                       //if that node was no good, check the next one for suitability
                                       v++;
              catch (Exception e) {
                   //occurs when user inputs something that is neither a command, or a number, or upon EOF, or stack is full
         public TreeStack () {
              //create the TreeStack ADT by adding stacks in the vector, note vector 0 is instantiated but not used.
              for (int i = 1;i<=TREE_CAPACITY;i++)
                   tree.add(new ArrayStack(STACK_CAPACITY));
         public int size() {
              //return the size of the tree +1 (as 0 is not used)
              return tree.size();
         public ArrayStack element (int v) {
              //return the ArrayStack at v
              return (ArrayStack)tree.get(v);
         public int leftChild (int v ) {
              //return left child of v
              return v*2;
         public int rightChild (int v ) {
              //return the right child of v
              return v*2+1;
         public boolean children (int v ) {
              //search for children of v and return true if one exists
              for (int i =v;i<size();i++) {
                   if (i/2==v ) {
                         //left child found at i
                         return true;
                   if ((i-1)/2==v ) {
                        //right child found at i
                        return true;
              //no children found
              return false;
         public boolean isInternal (int v ) {
              //test whether node v is internal (has children)
              if (children (v)== true) {
                   //has children
                   return true;
              return false;
         //print the top value in each stack encountered on a level-order traversal of tree
         public void printLevelOrder() {
              //for every node of tree v
              for (int v = 1;v<size();v++) {
                   if (!element(v).isEmpty() ) {
                        //print the top value in stack v
                        System.out.println(" "+element(v).top());
                   else {
                        //stack at v is empty
                        System.out.println(" -");
         //pop off and print the top value in each stack encountered on a level-order traversal of tree
         public void printPopLevelOrder () {
              //pop off and print the top value in stack v
              for (int v = 1;v<size();v++) {
              //for each node of tree v
                   if (!element(v).isEmpty() ) {
                        //if v isnt empty print the top value in stack v
                        System.out.println(" "+element(v).top());
                        //pop the top value in the stack at v
                        element(v).pop();
                   else {
                        //stack at v is empty
                        System.out.println(" -");
         //pop off and print the top value in each stack encountered on an in-order traversal of tree
         public void printPopInorder () {
              printPopInorder (1);
         public void printPopInorder (int v) {
              boolean isInternal = false;
              if (isInternal (v)) {
                   //use a boolean for isInternal to save on running the method twice
                   isInternal = true;
                   //recursively search left subtree
                   printPopInorder (leftChild(v));
              //pop off and print the top value at v
              if (element(v).isEmpty() ) {
                   //stack at v is empty
                   System.out.println(" -");
              else {
                   //if v isnt empty print the top value in stack v then pop
                   System.out.println(" "+element(v).top());
                   element(v).pop();
              if (isInternal ) {
                   //recursively search right subtree
                   printPopInorder (rightChild(v));
         //pop off and print the top value in each stack encountered on an pre-order traversal of tree
         public void printPopPreorder() {
              printPopPreorder(1);
         public void printPopPreorder(int v) {
              //pop off and print the top value at v
              if (!element(v).isEmpty() ) {
                   //if v isnt empty print the top value in stack v then pop
                   System.out.println(" "+element(v).top());
                   element(v).pop();
              else {
                   //stack at v is empty
                   System.out.println(" -");
              if (isInternal (v)) {
                   //recursively search left and right subtrees
                   printPopPreorder (leftChild(v));
                   printPopPreorder (rightChild(v));
         //pop off and print all values from the stack at the root
         public void printPopRoot (){
              //while the root stack has values left
              while (!element(1).isEmpty()) {
                   //print, then pop
                   System.out.println(" "+element(1).top());
                   element(1).pop();
    }

  • Retrieving command line parameters

    How I can retrieve the command line parameters generated by following JSP?
    <HTML>
    <Head>
    <Title> Reading command line parameters </title>
    </head>
    <Body>
    <P><H1> Press here to try the test command line string</H1></P>
    </body>
    </html>
    Zulfi

    hi,
    ur url should have a name/value pair
    something like this
    thread.jsp?forum=45&thread=279067
    and then get these values from request object.
    vasanth

Maybe you are looking for

  • IMac/iTunes to Hi-Fi

    Does anyone have suggestions for connecting my (non-Airport) iMac to my Hi-Fi system so that I can play music from iTunes, other than using Airport Express. Has anyone used Xitel products with their iMac?

  • Incopy Crashes when placin docx

    Is anyone having trouble placing docx files in Incopy files linked to an Indesign file? I keep crashing.

  • TDM-Excel-Add-In controlled by vba

    Hello We've got an application that generates many TDMS-Files. Now I have to import these files to Excel. I use the TDM-AddIn and this works fine when I do the import manually. But I'd like to automate the import using VBA. I tried the trick with "Se

  • Array index out of range error in PCR!

    Hi All, I am trying to test the PCR forms in MSS in portal. When I click the "Edit Form" button in step 2, I am getting the following error. "java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1" I tried all the forms(Change Emp Gro

  • Why do the blues in my jpegs look purple?

    I always shoot in the raw + jpeg format. But on my computer, the blues in the jpeg files always look purple while in the raw files they appear correctly.  This happens even though I have used different cameras and my monitor has been calibrated.  Can