Pekwm menu action with spaces and commas

Hello,
          I have problems with few wine actions in pekwm menu.
The action path contains spaces, and wine syntax requires commas to correctly read it.
The problem is that pekwm syntax also requires commas, so the action doesn't work in the menu.
The same commands launched from terminal work flawlessly.
Does anyone know the correct syntax I should use?
Thank you in advance
Submenu = "Wine" {
    Entry = "FullTiltPoker" { Icon = "/home/nemesis/.local/share/icons/28F5_FullTiltPoker.0.png"; Actions = "Exec wine /home/nemesis/.wine/drive_c/"Programmi (x86)"/"Full Tilt Poker"/FullTiltPoker.exe &" }
    Entry = "PokerStars" { Icon = "/home/nemesis/.local/share/icons/663D_PokerStarsUpdate.0.png"; Actions = "Exec wine /home/nemesis/.wine/drive_c/"Programmi (x86)"/PokerStars/PokerStarsUpdate.exe &" }
    Entry = "PokerstarsIt" { Icon = "/home/nemesis/.local/share/icons/663D_PokerStarsUpdate.0.png"; Actions = "Exec wine /home/nemesis/.wine/drive_c/"Programmi (x86)"/PokerStars.IT/PokerStarsUpdate.exe &" }
nemesis@myhost ~]$ pekwm --info
pekwm: version 0.1.12 Built on Mon Apr 26 20:16:24 UTC 2010
features:  XShape Xinerama Xft image-xpm image-jpeg image-png Xrandr menus harbour
Last edited by Nemesis1963 (2010-10-27 11:30:46)

split takes a RegularExpression as parameter:String[] result = "Testing, one two, three four five".split("[, ]");
for (int x=0; x<result.length; x++)
     System.out.println(result[x]);

Similar Messages

  • Problem with sqlldr and commit

    Hi,
    i have a problem with sqlldr and commit.
    I have a simple table with one colum [ col_id number(6) not null ]. The column "col_id" is primary key in the table. I have one file with 100.000 records ( number from 0 to 99.999 ).
    I want load the file in the table with sqlldr ( sql*loader ) but i want commit only if all records are loaded. If one record is discarded i want discarded all record of file.
    The proble is that in coventional path the commit is on 64 row but if i want the same records of file isn't possible and in direct path sqlldr disable primary key :(
    There are a solutions?
    Thanks
    I'm for the bad English

    This is my table:
    DROP TABLE TEST_SQLLOADER;
    CREATE TABLE TEST_SQLLOADER
    (     COL_ID NUMBER NOT NULL,
         CONSTRAINT TEST_SQLLOADER_PK PRIMARY KEY (COL_ID)
    This is my ctlfile ( test_sql_loader.ctl )
    OPTIONS
    DIRECT=false
    ,DISCARDMAX=1
    ,ERRORS=0
    ,ROWS=100000
    load data
    infile './test_sql_loader.csv'
    append
    into table TEST_SQLLOADER
    fields terminated by "," optionally enclosed by '"'
    ( col_id )
    test_sql_loader.csv
    0
    1
    2
    3
    99999
    i run sqlloader
    sqlldr xxx/yyy@orcl control=test_sql_loader.ctl log=test_sql_loader.log
    output on the screen
    Commit point reached - logical record count 92256
    Commit point reached - logical record count 93248
    Commit point reached - logical record count 94240
    Commit point reached - logical record count 95232
    Commit point reached - logical record count 96224
    Commit point reached - logical record count 97216
    Commit point reached - logical record count 98208
    Commit point reached - logical record count 99200
    Commit point reached - logical record count 100000
    Logfile
    SQL*Loader: Release 11.2.0.1.0 - Production on Sat Oct 3 14:50:17 2009
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Control File: test_sql_loader.ctl
    Data File: ./test_sql_loader.csv
    Bad File: test_sql_loader.bad
    Discard File: none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 0
    Bind array: 100000 rows, maximum of 256000 bytes
    Continuation: none specified
    Path used: Conventional
    Table TEST_SQLLOADER, loaded from every logical record.
    Insert option in effect for this table: APPEND
    Column Name Position Len Term Encl Datatype
    COL_ID FIRST * , O(") CHARACTER
    value used for ROWS parameter changed from 100000 to 992
    Table TEST_SQLLOADER:
    100000 Rows successfully loaded.
    0 Rows not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Space allocated for bind array: 255936 bytes(992 rows)
    Read buffer bytes: 1048576
    Total logical records skipped: 0
    Total logical records read: 100000
    Total logical records rejected: 0
    Total logical records discarded: 0
    Run began on Sat Oct 03 14:50:17 2009
    Run ended on Sat Oct 03 14:50:18 2009
    Elapsed time was: 00:00:01.09
    CPU time was: 00:00:00.06
    The commit is on 992 row
    if i have error on 993 record i have commit on first 992 row :(
    Edited by: inter1908 on 3-ott-2009 15.00

  • Can I take a frame from my project and use it as a custom menu background with CS4 and its Encore

    My project is edited in CS4.
    I moved it to Encore CS4.
    I don't want to use any of the supplied menu templates in CS4 Encore.
    I was hoping CS4 would be all I needed to create custom menus using scenes from my project.
    My question is: Can I take a frame from my project and use it as a custom menu background with CS4 and its built in Encore or do I need some other element from the Adobe catalog to make these custom chapter menus and sub-menus?
    Thanks Jim

    OK, I'm back. Here are my steps for creating Custom Menus with PS, En and PrPro:
    In PrPro, move the CTI (Current Time Indicator) to the desired Frame. Check Frames on either side, with the Program Monitor’s Magnification to 100%, or maybe even 200% (you’ll need to scroll, but get a really clear picture). You want the clearest Frame in that area. With AME, in CS4, you’ll want to Export that Frame as .TIFF, or .BMP. I use .TIFF for this.
    Now, for a caveat. When you Import this Exported Frame into Photoshop, be sure to check the specs., especially the PAR. You may have to use Image>PAR to adjust this to match your Project’s specs. Or, all might be perfect - just check this out.
    Now, at this point, I choose the Library Menu, Blank, so that everything is setup. One can create the Menu from scratch, but careful attention needs to be paid to the exact naming conventions. At the very least, unless you’ve done this dozens of times before, use that Blank Menu, or similar as a guide, so you get things done, as they must be done.
    Using that Blank Menu, just drag the Layer from your Exported Frame to your Menu image. It will appear above the black Background.
    Add, or manipulate your Button Layer Sets, as is required, keeping them together. Remember that Button #1 will be the Button Layer Set, that is lower down in the Layers Palette. This can play a roll with Button Routing, back in Encore. Lower Button Layer Sets will have lower Button numbers.
    Now, I always rename my Button Layer Sets, keeping the required characters - just changing the name. I also do all of my Button text in PS, and make sure to turn OFF Sync Button Names.
    When done, Save_As .PSD, and then Import_As_Menu into Encore. Note: if you start with the Blank Menu, you can choose Edit in Photoshop, and then when done in PS, you just need to Save, and it will update in Encore. This is a personal workflow choice. I do the Edit in Photoshop route, but it is not necessary. One just needs to Import the resulting .PSD into Encore with Import_As_Menu, so that Encore does all the things that it needs to and recognizes the .PSD as a Menu.
    When deciding what to base your Menu on, remember that you can "populate" your Menu with Buttons from the Functional Content. I’d suggest studying these Assets, and picking the ones that work best for you. You can still alter/edit those back in PS, so you just need to "get close."
    Pay special attention to the required naming conventions. You cannot deviate from those first characters in the Button Layer Sets. They MUST be followed.
    If you have any questions, do not hesitate to ask.
    Good luck,
    Hunt

  • I cannot save a frame from a video following the recent Apple recall to replace my hard drive. There is no menu option with share  and save frame. Do I need to reinstall Final Cut Pro?

    Since the recent replacement of my hard drive, I cannot save a frame from a video. There is no menu option with share and "save frame"  I used to be able to do this.
    Please help

    In the Share popup select Add Destionation to go to the Destination preference. Drag still image to the sidebar to make it available in the popup.

  • [SOLVED] problem with spaces and ls command in bash script

    I am going mad with a bash script I am trying to finish. The ls command is driving me mad with spaces in path names. This is the portion of my script that is giving me trouble:
    HOMEDIR="/home/panos/Web Site"
    for file in $(find "$HOMEDIR" -type f)
    do
    if [ "$(dateDiff -d $(ls -lh "$file" | awk '{ print $6 }') "$(date +%F)")" -gt 30 ];
    then echo -e "File $file is $(dateDiff -d $(ls -lh "$file" | awk '{ print $6 }') "$(date +%F)") old\r" >> /home/panos/scripts/temp;
    fi
    done
    The dateDiff() function is defined earlier and the script works fine when I change the HOMEDIR variable to a path where there are no spaces in directory and file names. I have isolated the problem to the ls command, so a simpler code sample that also doesn't work correctly with path names with spaces is this:
    #!/bin/bash
    HOMEDIR="/home/panos/test dir"
    for file in $(find "$HOMEDIR" -type f)
    do
    ls -lh "$file"
    done
    TIA
    Last edited by panosk (2009-11-08 21:55:31)

    oops, brain fart. *flushes with embarrassment*
    -- Edit --
    BTW, for this kind of thing, I usually do something like:
    find "$HOMEDIR" -type f | while read file ; do something with "$file" ; done
    Or put those in an array:
    IFS=$'\n' ; files=($(find "$HOMEDIR" -type f)) ; unset IFS
    for file in "${files[@]}" ; do something with "$file" ; done
    The later method is useful when elements of "${files[@]}" will be used multiple times across the script.
    Last edited by lolilolicon (2009-11-09 08:13:07)

  • How make menu button with unrolling and rolling up thumbnails

    Hello
    I need help with doing a menu with unrolling and rolling up buttons woth thumbnails;  now I have this made by as 2.0 but I need help with changing this on as 3.0. or if samobody have some ideas how can I do this using as 3.0 I will be grateful

    The only way to convert it to AS3 is to go thru it and replace the code as needed.  While some code may not have to change, quite a bit of it will.  Your best bet for getting thru it is to build it up from scratch one object at a time and get each coded as you go.  Otherwise you will be overwhelmed with error messages.  Here's a few pointers.
    All code is AS3 has to be placed on the timeline.  You cannot place code "on()" objects.  So each object needs an instance name.
    Any interaction or event handling such as mouse controls and file loading involve event listener/event handler pairs.  So you will want to start with looking into the addEventListener() method, which is pretty much used globally for any/all event processing.
    When it comes to loading external swf files, you want to use the Loader class.
    To determinine how to make the code work, I recommend using a practice file.  A file that you can implement one codig sequence in at a time just to determine what works.
    Converting this to AS3 will be a good exercise for you on the road to learning it.  When I wanted to start learning AS3 that's pretty much what I did, though with the sole purpose of the learning as my goal.  I took a fairly complicated menu design that I had created first in AS2, and then rebuilt it from the ground up using AS3.

  • Dictation behaviour with spaces and sentence starts

    I have been using dictation for several months now with great success. Its behaviour has suddenly changed. It now insists on placing a space before every sentence, thus indenting the first sentence of each paragraph by one space, and defaulting to putting a double space between sentences; which I do not like. Further, the double space is often applied if I print whilst pausing for thought, mid-sentence.
    Has anyone else noticed this change in behaviour?
    I could not swear, but I suspect that it was triggered when I turned dictation off in system preferences, at that point not realising that this reset my cache on the server. Having said that, even when I first started using this system several months ago, it never did this.
    I have since tried toggling dictation off then on, and also trashing the relevant preferences:
    com.apple.speech.recognition.AppleSpeechRecognition.prefs
    com.apple.speech.recognition.feedback.prefs
    com.apple.speech.recognition.recognizer.prefs
    Does anyone have any thoughts or ideas around this?
    [In this post, I have left the one space paragraph indentations, but had to manually delete those between my sentences and clauses.]
    Best regards,
    Justin

    Polite Bump!

  • Special character : two materila with same no one with space and one withou

    Hi friends,
    in r/3 two material are created with same number one space atend of the number and one with out
    123 and 123space
    In psa material with space is throwing  error  .In r/3 we cant delete the materila no so flag for delteion .
    and my master data is full load because of that process chain failing daily .
    can you please advice with solution .Evern the material comes there is no problem.
    oes RSKC WORK IN THIS CASE?
    Regards
    shekar reddy

    You need to be careful while loading material by removing the space as it might overwrite the correct material. Therefore, you can
    put a filter on the wrong material if possible
    or change the space to some other character to differentiate

  • How do i convert a double array (with spaces and tabs) to a string?

    Hi
    In our files, we have a mixture of spaces and tabs as a delimeter. How do I convert a double array into a string?
    Thank you.

    Not sure about the last part of your question.
    The Search and Replace pattern can be better than the simple Search and Replace string when you have to do complex searchs, such as detecting multiple spaces.
    Have a look at the attachment.
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    ReplaceSpaces.vi ‏27 KB

  • Urgent!  fields of a table to be separated with space n comma

    Hi,
    I have a table in which the entries have to be separated by a comma n space.
    I have put the entries within an internal table.
    I used the concatenate to do this but its getting overwritten.
    Eg.I have atable with the field as name.
    The entries for this field r say aaa bbb ccc ddd.
    I have put these into an internal table itab.
    The required output is aaa, bbb, ccc, ddd
    For this I coded as
    loop at itab.
    concatenate itab-name ' ,'  into answer separated by space.
    endloop.
    answer is a string which gets overwritten with one entry.Finally answer is having only ddd.
    Please help me ASAP with the exact procedure and syntax.
    Thankyou

    Hi,
    try like this,
    data : wa(6) type c.
    DATA : BEGIN OF ITAB OCCURS 0,
           NAME(20) TYPE C,
           END OF ITAB.
    itab-name = 'aaa'.
    append itab.
      itab-name = 'bbb'.
    append itab.
    itab-name = 'ccc'.
    append itab.
    itab-name = 'ddd'.
    append itab.
    loop at itab.
    concatenate itab-name ' ,' into wa separated by space.
    write :  wa.
    endloop.

  • Problems with Spaces and System Preferences

    Hello all. I previously had setup my spaces so that when I opened certain apps, they would open in specific spaces (ex. Safari opened in upper left space, system preferences opened in lower right space etc.). I had spaces setup so that there were 9 spaces. Now somehow my spaces got reset so that I have only 4. Whenever I open system preferences, or even open spaces preferences to change it, it opens, but does not appear, and when I hit the spaces button, there it is, overlapping my spaces, but I cannot click on it to change the settings, only choose a space to go to.
    Heres what it looks like when i hit the spaces button:
    http://img408.imageshack.us/img408/5122/picture1bw3.png

    Hey guys i found a fix to this but its basically using System preferences blind, and toggling on and off the radio buttons for Expose and Spaces.
    So to really understand my jumble of words to make you understand my weird train of thought. Its The Master & the Grasshopper Lesson on _'Believing without Seeing.'_
    Young Apple Seed (aka Grasshopper), Just because one can not see what one is doing, does not mean one is doing nothing. This just means that the Mime is miming a mime action to a blind person.
    So if you wish to not be the blind mad and the mime, do as it is written, and as you think. For one who goes down a path they choose they will sure be the Mime. And if you are, then you need an Mime EGO check.
    _TO GET WHAT YOU CAN'T SEE_
    1. If you don't already have SP (System Preferences) running then you will need to start the Application named SP.
    2. When in SP, click on View | *Expose and Spaces*
    +(If your here and saying how the bleep do I do this step. Then you need to Bleepity make sure that right next to the Apple Icon in the top left corner reads+ *System Preferences*, +Mr/Mrs/Ms Mime.)+
    3. Press Tab +(ONE TIME)+
    4. Press *Right --> Arrow* +(ONE TIME)+
    *5. Press ⌘L +(ONE TIME)+
    *6. Press ⌘[ +(ONE TIME)+
    7. Press Tab
    8. Press Tab
    9. Press *Space Bar*
    +(Now if you were doing each step while reading it on the screen then right after you did that last step like magic it appears.)+ The space bar toggled Enable or Disable Check box.
    * These steps really should not be here but I noticed a bug that would make my steps not work correctly if these were not done. Usually when you press tab once in a 2 part option menu for SP its tabbed. And usually when you press the arrow key to go to the next tab, usually the focus is still on the tab for the next tab. But it doesn't and that isn't only on my system, its on many others i tried it on. So you Bug mashers or fixers this has been duped on several other systems that range from non-Intel, PowerMac, PowerPC, iMac, even non apple macs. but focus disappears and even if you pressed tab or the arrow keys nothing would happen and trust me you would be doing my steps over and over and then post something either on my profile that i'm a bleepity bleep bleep or something positive. But i'd like the positive comments, but hey if you want to leave me bleepity bleep bleep bleep bleep bleeps? Then i have one thing to say to you "BLEEP you!!"

  • Recording actions with zoom and screen mode

    PS CS6 under Win7 x64Pro
    Very long time Photoshop use and one-time programmer. OK with the process of creating actions, but haven't written any PS scripts.
    I do lots of retouching of old B&W photographs. My initial setup after opening a new image is always the same:
    Create new layer and assign same name each time.
    Zoom to actual pixels.
    Home key to move to top left.
    F key to set view to full screen with menu bar (to stop inadvertent scrolling when near the edge of the window).
    and finally select the Healing Brush.
    I have tried to create an action to do all the above, but when I try recording one (either using shortcut keys or menus) it only registers the create and name-layer elements and ignores the rest.
    How can I automate the whole set?

    akribie wrote:
    For completeness, it is only possible to include tool selections when recording an action if "Allow Tool Recording" is enabled in the Action panel flyout menu, which is not the default.
    All now working fine except for the final HOME step, which I haven't managed to record. But I can live with that.
    No some tools can be recorded being selected via using/recording their shortcut key.  However all can not perhaps because the shortcut key may be ambiguous because you can shift+Shortcut between a group of tools that have the same shortcut key so the shortcut by itself would select the last active one in the group whichever that happens to be. The tool bar tool Button Icon also changes with tool use.   However Tool presets are not ambiguous they identify the exact tool and the settings for the tool use.  That is why I wrote to create a tool preset and record selecting that preset in your action.
    "Allow Tool Recording" is not very useful, is not well implemented and in fact will be disabled if you install Adobe Scriptlistener Plug-in.  The "Allow Tool Recording"option  will record tool usage. ie record your brush strokes.  How much data get recorded seems to be a function of your machine processing power. So actions recorded on a powerful machine would swamp less powerful machines. Also brush stroke relate to document size and zoom level color etc. Some settings are not even captured and documents vary in size. So the feature would only work for documents the same size and when you record the  things and setting the option fails to capture in the recording. IMO Adobe wasted time and money developing that feature that is of so little use and value. I install the Scriptlistener Plug-in do not mind that allow tool recording is not an option I have.  For I have never use it or even downloaded a useful action that used the allow tool recording feature. I looked at tool recording when Adobe first announced the new feature recorded some actions then categorized the feature as useless.
    I don't understand your final Home step what you trying to do.
    Crafting Actions PackageUPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    More then a dozen Scripts for use in actions
    Example
    Download

  • Problem with space and toURI()

    Hi,
    My program is working #1 when I create a MediaLocator like that:
    mediaLocator = new MediaLocator(file.toURL());
    But I know that toURL is depreciated so I changed it to
    mediaLocator = new MediaLocator(file.toURI().toURL());
    And now, when my path contain spaces, it create a folder with %20 instead of space...
    For exemple:
    c:\Documents%20and%20Settings
    instead of
    c:\Documents and Settings
    Thanks for help!

    This works for me - with my videos in
    C:\Workspace\JMF\src\\jmf\My videos
         private void playFile(File f) throws Exception{
            System.out.println("file - '" + f.getPath()+ "'");
            MediaLocator mL= new MediaLocator("file:" + f.getCanonicalPath());
            DataSource dS = Manager.createDataSource(mL);
            Processor proc = Manager.createProcessor(dS);
            proc.addControllerListener(this);
            proc.configure();
         }

  • Program Help, working with spaces and only letters

    I'm writing a program that takes an input string and gets the length and/or gets the number of vowels and consonants in the string. I've gotten it working except for consideration of spaces (which are allowed) and error checking for input other than letters. Here is what I've got so far. ANY suggestions would be greatly appreciated. Thank You
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class LetterStringManip extends JFrame
    {//declaring variables
         private JLabel stringOfLettersL, lengthL, lengthRL, vowelsL, vowelsRL, consonantsL, consonantsRL;
           private JTextField stringOfLettersTF;
           private JButton lengthB,vowelB, quitB;
           private LengthButtonHandler lbHandler;
           private VowelButtonHandler vbHandler;
           private QuitButtonHandler qbHandler;
           private static final int WIDTH = 750;
           private static final int HEIGHT = 150;
           public LetterStringManip()
           {// setting up GUI window with buttons
               stringOfLettersL = new JLabel("Enter a String of Letters", SwingConstants.CENTER);
                   lengthL = new JLabel("Length of String: ", SwingConstants.CENTER);
                   lengthRL = new JLabel("", SwingConstants.LEFT);
                   vowelsL = new JLabel("Number of Vowels: ", SwingConstants.CENTER);
                   vowelsRL = new JLabel("", SwingConstants.LEFT);
                   consonantsL = new JLabel("Number of Consonats: ", SwingConstants.CENTER);
                   consonantsRL = new JLabel("", SwingConstants.LEFT);
                   stringOfLettersTF = new JTextField(15);
                   lengthB = new JButton("Length");
                   lbHandler = new LengthButtonHandler();
                   lengthB.addActionListener(lbHandler);
                   vowelB = new JButton("Vowels");
                   vbHandler = new VowelButtonHandler();
                   vowelB.addActionListener(vbHandler);
                   quitB = new JButton("Quit");
                   qbHandler = new QuitButtonHandler();
                   quitB.addActionListener(qbHandler);
                   setTitle("String Of Letters");//Window title
                   Container pane = getContentPane();
                   pane.setLayout(new GridLayout(3,4)); //Window layout
                   pane.add(stringOfLettersL);
                   pane.add(stringOfLettersTF);
                   pane.add(lengthL);
                   pane.add(lengthRL);
                   pane.add(vowelsL);
                   pane.add(vowelsRL);
                   pane.add(consonantsL);
                   pane.add(consonantsRL);
                   pane.add(lengthB);
                   pane.add(vowelB);
                   pane.add(quitB);
                   setSize(WIDTH, HEIGHT);
                   setVisible(true);
                   setDefaultCloseOperation(EXIT_ON_CLOSE);
           }//closes public LetterStringManip()
           private class LengthButtonHandler implements ActionListener
               public void actionPerformed(ActionEvent e)//Length Button is clicked, getLength() method is performed
                      getLength();
                   }//closes public void actionPerformed(ActionEvent e)
           }//closes private class LengthButtonHandler implements ActionListener
           private class VowelButtonHandler implements ActionListener
               public void actionPerformed(ActionEvent e)//Vowels Button is clicked, getVowels() method is performed
                      getVowels();
                   }//closes public void actionPerformed(ActionEvent e)
           }//closes private class VowelButtonHandler implements ActionListener
           private class QuitButtonHandler implements ActionListener//Quit Buttton is pressed
               public void actionPerformed(ActionEvent e)
                       System.exit(0);
                   }//closes public void actionPerformed(ActionEvent e)
           }//closes private class QuitButtonHandler implements ActionListener
                     public void getLength()//gets the length of the string
                       String letString = (stringOfLettersTF.getText());
                       String lengthString;
                 int length;
                         length = letString.length();
                         lengthString = Integer.toString(length);
                         lengthRL.setText(lengthString);
                    }//closes public void getLength()
                     public void getVowels()//gets the number of vowels in the string
                 String letString = (stringOfLettersTF.getText());
                       String vowString;
                         String conString;
                 int countVow = 0;
                         int countCon = 0;
                         int i;
                         int length = letString.length();
                         char[] letter = new char[length];
                 for (i = 0; i < letString.length(); i++)
                     letter[i] = letString.charAt(i);
                     if (letter=='a' || letter[i]=='e' || letter[i]=='i' || letter[i]=='o' || letter[i]=='u')
    countVow++;
                        }//closes for
                        countCon = letString.length() - countVow;
    vowString = Integer.toString(countVow);
                        conString = Integer.toString(countCon);
                        vowelsRL.setText(vowString);
                        consonantsRL.setText(conString);
                   }//closes public void getVowels()
         public static void main(String[] args)
         LetterStringManip stringObject = new LetterStringManip();
         }// closes public static void main(String[] args)
    }//closes public class LetterStringManip extends JFrame

    OK, per the instructions above: I will re-post my code that I have now. I have dealt with the space not being counted now, I only need to figure out how to validate my input so that only letters are allowed. If anyone has any suggestions, or can help me out in any way, it'd be great. The suggestions with creating word and sentence objects is still a little beyond what we have gone over thus far in my Java course, I feel like I can almost grasp it to code it, but end up getting really confused. anyways, hear is my 'crude' code so far:
                     public void getLength()
                       String letString = (stringOfLettersTF.getText());
                       String lengthString;
                          int finalLength;
                          int countSpace = 0;
                                int length = letString.length();
                       char[] letter = new char[length];
                        int i;
                                 for (i = 0; i < letString.length(); i++)
                                    letter[i] = letString.charAt(i);
                                    if (letter==' ')
    countSpace++;
              finalLength = length - countSpace;
                   lengthString = Integer.toString(finalLength);
                   lengthRL.setText(lengthString);
                   public void getVowels()
    String letString = (stringOfLettersTF.getText());
                   String vowString;
                   String conString;
    int countVow = 0;
                   int countCon = 0;
                   int countSpace = 0;
                   int i;
                   int length = letString.length();
                   char[] letter = new char[length];
    for (i = 0; i < letString.length(); i++)
    letter[i] = letString.charAt(i);
    if (letter[i]=='a' || letter[i]=='e' || letter[i]=='i' || letter[i]=='o' || letter[i]=='u')
    countVow++;
                   if (letter[i]==' ')
    countSpace++;
                   countCon = (letString.length() - countVow) - countSpace;
    vowString = Integer.toString(countVow);
                   conString = Integer.toString(countCon);
                   vowelsRL.setText(vowString);
                   consonantsRL.setText(conString);

  • To_number with period and comma

    As a part of a validation function I have to validate strings against a valid number format. The following weird behaviour I have spot during the implementation.
    SQL> select TO_NUMBER('1.1.1.1,11','9G999D99') from dual;
    TO_NUMBER('1.1.1.1,11','9G999D99')
    1111,11
    SQL> select TO_NUMBER('1.1.11,11','9G999D99') from dual;
    TO_NUMBER('1.1.11,11','9G999D99')
    1111,11
    SQL> select TO_NUMBER('1.111,11','9G999D99') from dual;
    TO_NUMBER('1.111,11','9G999D99')
    1111,11
    SQL> select TO_NUMBER('1111,11','9G999D99') from dual;
    select TO_NUMBER('1111,11','9G999D99') from dual
    FEHLER in Zeile 1:
    ORA-01722: Ungltige Zahl
    '1.111,11' should be valid only. Is it a bug or my misconception?
    These statements ran on Release 11.1.0.6.0.

    Sorry, I've I forgot to mention that my nls_numeric_characters parameter is set to ',.' already.
    SQL> select VALUE from NLS_SESSION_PARAMETERS where PARAMETER='NLS_NUMERIC_CHARACTERS';
    VALUE
    Anyway, with the nls_numeric_character parameter passed to the function these statements did not produce any error.
    SQL> select TO_NUMBER('1.1.1.1,11','9G999D99','nls_numeric_characters=,.') from dual;
    TO_NUMBER('1.1.1.1,11','9G999D99','NLS_NUMERIC_CHARACTERS=,.')
    1111,11
    SQL> select TO_NUMBER('1.1.11,11','9G999D99','nls_numeric_characters=,.') from dual;
    TO_NUMBER('1.1.11,11','9G999D99','NLS_NUMERIC_CHARACTERS=,.')
    1111,11
    I except an error to be thrown. Obviously both numbers '1.1.1.1,11' and '1.1.11,11' did not match the mask '9G999D99'.

Maybe you are looking for