Shorthand lab problems...

ok were doing a shorthand lab in class using only the basic string and character commands and in the lab the user inputs a string like "This is FOR YOU TO try AND convert." and the output takes out all the vowels, and it replaces the word "for" with "4", and with "&", and two with "2".....now i had absolutely no trouble taking out the vowels, it's replacing the words thats the problem, my line of code takes out "and" and replaces it with "&" but it can only do it to the first and in the sentence so if the user put in "I went and shot a duck and dog" it would only change the first and "I went & shot a duck and dog" I need it to change both...here is the code
if (n>-1)
     while (chr<n)
     char ch = str.charAt(temp+1);
     temp += 1;
     str0=str0+ch;
     chr = chr+1;     
     len = str.length();
     System.out.println(len);
     str0=str0+"&";
     chr = n+3;
     temp = n+3;
     while (chr<len)
        char ch = str.charAt(temp);
        temp += 1;
        str0 = str0+ch;
        chr = chr +1;
}

anything i can do about the whole hand become h& thing? so it only accepts it?Look at the regex api, and find the regex pattern to identify a word boundary
http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.htmlI could give it to you, but you would be better off looking it up, and while you're there,
having a glance at the other patterns, just for future reference.
when you work it out - you have to cover before and after

Similar Messages

  • ARD 3.2.2 client update: new lab problems

    I've been using ARD for years to manage my Mac labs. Sometimes it worked well, sometimes it didn't. I even beta tested it once so I am aware it's not Apple's most glorious piece of software.
    My latest problems began after updating the clients to 3.2.2 (using ARD, of course). (Clients are running both 10.5.4 and 10.5.5.) I can see the clients in the Scanner list (without the ARD version listed for some reason), activate them in the list (after some difficulty), observe and control them -- but I CANNOT perform the other tasks listed under the Manage menu (copy items, empty trash, restart, etc.). If I attempt to do so, I am told they are Offline (when they obviously are not, since I can observe/control them) and that the task is not supported.
    Reinstalling the 3.2.2 client updater manually at a workstation does not fix the problem, nor does repairing permissions. Client settings under the Sharing System Prefs panel are the same as they ever were (ie, I am allowed to do the things I am attempting to do).
    I have tried this with ARD admin 3.2.2 from an Intel iMac set up as a Leopard Server, as well as from a station in the lab itself. Same problems.
    Other more advanced tricks have been discussed in other threads here, but I have never had to go to those lengths to get ARD to work. IMO the 3.2.2 updater messed something up.
    FWIW, here is the results of my permissions repair on a station where I used ARD to update the client:
    Repairing permissions for “COMMLAB 18”
    Reading permissions database.
    Reading the permissions database can take several minutes.
    Permissions differ on "private/var/log/secure.log", should be -rw------- , they are -rw-r----- .
    Permissions differ on "Library/Application Support/Apple/ParentalControls/ALRHelperJobs", should be drwxrwxr-x , they are drwxr-xr-x .
    Permissions differ on "System/Library/LaunchDaemons/com.apple.usbmuxd.plist", should be -rw-r--r-- , they are -rwxr-xr-x .
    User differs on "System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/jvm.cfg", should be 0, user is 95.
    User differs on "System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/classlist" , should be 0, user is 95.
    Permissions differ on "Library/Application Support/Apple/ParentalControls/ContentFiltering", should be drwxrwxr-x , they are drwxr-xr-x .
    Permissions differ on "Library/Application Support/Apple/ParentalControls", should be drwxrwxr-x , they are drwxr-xr-x .
    Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired.
    Group differs on "private/etc/cups", should be 0, group is 26.
    Permissions repair complete

    Hi,
    You mentioned the machines are all from a single image. I realize you are an experienced ARD user. However, there are quirks in this app at any stage of development. I'm sure you already applied a unique name to the shared network name and have no DHCP conflicts as well as checked that all the accounts, not just the admin account that permissions are checked. Although you may have all the correct ports addressed and configured, there is no accurate accounting for the gremlins. These play havoc across the network. Sometimes the only thing you can do is go to the machine and walk through the settings as if it was the first time. I can't tell you how many times a problem has resolved itself after just logging into the admin and redoing the settings. I mean the exact settings that are already selected. Sometimes the settings were actually wrong, even ones that came from an identical image. Like forgetting to select the observe and control selections in the sharing options for all the users. Other times it was simply deselecting and reselecting the options and restarting that snapped the machine out of the funk.
    Aside from the occasional discovery of admin setup issues, I live by the motto "the simplest solutions are usually the best, and should be tried first". Glitches do happen though. Sometimes running the scanner and reselecting and dragging the same machine into your user lists can refresh a connection that is not acting properly. I have detected countless quirks that cause strange side effects. Do a get info on the specific machine and delete the IP, then make sure you have the "name".local in the DNS name field. Re-enter the admin or try a user account name in this experiment and test this. This has given me clues to setup issues before having to go to the machine. I know this stuff sounds simplistic but it has solved most of my issues.
    Good Luck

  • Sony remote device lab problem

    Hello, Is there any problem with sony remote device lab ? installing an apk does not progress, it is stuck at half for almost 30 mins. It does not go further.  Regards,Shreyas.

    Hi All: We are aware of this issue and are working on a fix for it. In the meantime you can workaround this problem by uploading your APK to an external service such as Dropbox or Google Drive and download/install it through the phone for testing. We apologize for the inconvienience and will let you know when the upload functionality is working again. Regards,Marlin from Developer World

  • CSS shorthand background problem

    Like many of you I'm sure, I prefer to write shorthand CSS.
    In
    Preferences I have shorthand checked for all five options and
    "When
    editing CSS rules" set to "According to settings above."
    However when I try to write a shorthand background rule it
    doesn't work.
    I prefer to write my background as:
    background: #fff url(../images/quoteleft.jpg) left top
    no-repeat;
    I should be able to type:
    background: c
    ...and have DW's color swatch functionality kick in, then
    url, then
    browse, etc. But the only options it gives me are:
    background-color
    background-attachment
    background-image
    background-position
    background-repeat
    inherit
    Does anyone know how to get DW's CSS shorthand working
    properly?

    Have you tried right clicking at that point?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "ryansebiz" <[email protected]> wrote in
    message
    news:errb96$od$[email protected]..
    > Like many of you I'm sure, I prefer to write shorthand
    CSS. In Preferences
    > I have shorthand checked for all five options and "When
    editing CSS rules"
    > set to "According to settings above."
    >
    > However when I try to write a shorthand background rule
    it doesn't work. I
    > prefer to write my background as:
    >
    > background: #fff url(../images/quoteleft.jpg) left top
    no-repeat;
    >
    > I should be able to type:
    >
    > background: c
    >
    > ...and have DW's color swatch functionality kick in,
    then url, then
    > browse, etc. But the only options it gives me are:
    >
    > background-color
    > background-attachment
    > background-image
    > background-position
    > background-repeat
    > inherit
    >
    > Does anyone know how to get DW's CSS shorthand working
    properly?

  • CSS Code Hints

    I use Dreamweaver 8 at work and at home. The exact same
    version. However at work, when I type:
    background:[space]
    I get a Code Hint popup, allowing me to pick a color, URL, or
    several background options. Well at home, it works the same,
    however if i continue, like this:
    background: #FFFFFF[space]
    at work, I get the same popup again, but at home, it doesn't
    pop it up a second time. Same for borders and other shorthand
    items. I found an option in the Preferences called CSS Styles, and
    I checked all those boxes, but I think that just made matters worse
    and did not resolve my problem. I just checked and those options
    aren't even selected on my work computer. So what's different that
    would cause those code-hints not to pop up at home. Could it be a
    plug-in (or extension). This copy at work is a very new install,
    but mine at home is rather old. Any ideas?

    Maybe you misunderstood. I'm not having a problem writing in
    shorthand, my problem is if I try to add more than one attribute to
    property of a given style. For instance:
    .style {
    background: url(img/bg.jpg) repeat-y top center #EEEEEE;
    as opposed to
    .style {
    background-color: #EEEEEE;
    background-image: url(img/bg.jpg);
    background-repeat: repeat-y;
    background-position: top center;
    See, if i use each of those attributes, the dialog comes up
    fine, but when using shorthand, it's supposed to come up with all
    the available options, like:
    COLOR, -> Opens the Color Picker
    URL, - > Opens the Browse Dialog
    no-repeat, -> (option for background-repeat)
    repeat-x, -> (option for background-repeat)
    none, -> (option for background)
    transparent, -> (option for background)
    top, -> (option for background-position)
    left, -> (option for background-position)
    etc.
    Also, CTRL + SPACE only pulls up tags, not attributes.

  • Prints exported from Lightroom consistantly 1 stop dark!

    I calibrate my monitors regularly and currently have my two monitors set to the absolute lowest brightness point they'll go.
    Everything's calibrated and my histograms look good yet, every time I try to send something out for printing, it comes out at least a full stop dark.
    Conversely, if I print on my own Canon Pixma printer and allow the "printer to manage colors" - things are spot on.
    I don't want to always have to print every little thing at home.  I'd like to send things out sometimes. 
    I do not have this problem with files exported from Photoshop.  Only files exported from Lightroom.   Yes, I know I can fool around with making a brightness preset but why do I have too??  What is going wrong here?
    This is making me crazy.  Help Please!

    IF you're working with an outside lab that doesn't supply an ICC profile for soft proofing, you can pretty much forget about getting a match. Further, the lab has to be using that profile (or let you use it) or again, you're dealing with a lab that has a half baked color management workflow. No wonder you are having good luck printing yourself, you're probably doing everything correctly.
    That's absolutely right. The only consumer oriented big box local lab I have found that does this correctly is costcos and then I understand you need one where the operators have a clue and not every location is good and keeps their machines consistent. The other labs I mentioned all do a great job color managing and I have never had "too dark" prints. The fact that your own printer works fine makes me think that this is indeed very likely a lab problem (not at all uncommon). I would recommend that you print to your own printer while having Lightroom color manage as you should get better quality in subtle color gradients but only do this if you understand the weird codes Canon uses for their profiles and you understand how to turn off color management in the driver.
    That said, you can do a quick sanity check of your calibration by using a printer test file. Andrew has one on his site here that will work fine: http://www.digitaldog.net/tips/  and a nice one from inkjetart can be found here: http://www.kenleegallery.com/images/tech/4800test.jpg
    Load these into Lightroom. Do not touch any develop settings and see if the images make sense on screen. Skin color should look great (not too bright), you should see nice saturated colors and no plugged up shadows. Export these files to sRGB jpegs (they are in a different color space as downloaded so you need to convert for most labs) from Lightroom and send those to your lab. If your prints from these testfiles come back dark, stop using them as they don't calibrate their machines correctly. Well-calibrated machines should give very good prints with tone and color very close to what you see in Lightroom. You can get somewhat better results if the lab provides icc profiles but in my experience, if the machines are tuned correctly you will have a hard time distinguishing profiled images from sRGB images if you don't use a good viewing station.

  • I have a problem with running an EXE file on win2000, the Lab View is 5.1 and I do not know if it is 16 bit...

    I have a problem with running an EXE file on win2000, the Lab View is 5.1 and I do not know if it is 16 bit...what should I do?

    Hi Arika,
    The drivers that you need to install to make your executable work depends on what your executable is doing. To get started, you need to have the LabVIEW Run-Time Engine installed on your target machine (the Win2000 machine you are planning to use) in order to run your executable. Next, you need to determine what drivers your executable uses, if any. For example, if you are using GPIB instrument control, you will need to install the NI-488 drivers on your target machine. If you are performing data acquisition, you will need to install NI-DAQ drivers. If you are doing image acquistion, you will need to install NI-IMAQ drivers.
    All these drivers are available for downloading on ni.com. To get the drivers, go to ht
    tp://www.ni.com/support , click on the link that takes you to Drivers and Updates (under Option 3), and click on the links to get to the driver(s) you need. For example, if you need the LabVIEW 5.1.1 Run-Time engine, click on the All Drivers and Updates by Application link on the main page (http://www.ni.com/softlib.nsf/). Then click on the LabVIEW link, Windows 2000, Run Time Engine, and then you will see the link to get to the page to download the LabVIEW 5.1.1 Run-Time Engine.
    I hope this information helps.
    Best Regards,
    Wilbur Shen
    National Instruments

  • Problems with CMYK/LAB colors

    I'm independent and I send many print jobs to different print shops. I recently discovered to my horror that some color critical jobs have gone to press (to the same shop) with mismatched PMS colors. At first I blamed the print shop but they complained the CMYK values did not match. When I opened the two brochures in question, one had (for example) Pantone 288 C, color type spot, Color mode CMYK, 100/67/0/23 (dimmed because the colors came from an imported illustrator eps logo). The second (bad) brochure had the same color and color type, but in the mix it had Color Mode: Lab, L 8.039, a 8, b -50 - greyed out because again, the color came from the SAME eps file.
    My next step was to remove the logo file from the bad Indesign doc. Then I doublechecked the color - success, the color now says color mode: Pantone solid coated, 288 C (which is from the built-in indesign swatch book). Then I brought BACK IN the logo file from the brochure that printed correctly. The color reverts back to LAB again!
    When I import this same logo into a blank document, the colors are fine (CMYK with proper values).
    I'd seen in other forums suggestions to check or uncheck "Use Standard Lab Values for Spots" in the Ink Manager, however both documents have this unchecked. (Adobe seems to encourage checking LAB but I've never done this, I'm afraid to start now as it will probably give my print shops fits.) And both have "convert spots to process" checked, which I always thought was the cure-all: shouldn't PMS 288 (CMYK) always be PMS 288 (CMYK), as long as both are converted to process? Why would one being a LAB and the other NOT being a LAB make them different? 288 should be 288....? (but I guess not....)
    The good news is, the Zevrix extension "InPreFlight" will warn me if run on each document, so I don't have to drive myself crazy opening old files and doubleclicking every color. But I'm wondering what the heck is happening.
    CLUE: I believe this all stemmed from a "brilliant" idea I had to shorten the list of color types to choose from by going into Indesign>Presets>Swatch Libraries and removing libraries I'd thought I wasn't using - I left all my Pantones, but I must have deleted an important one, because it was after I'd done this that I had noticed the Lab colors rearing their ugly heads. However it didn't occur to me that LAB (CMYK) would be different from regular CMYK since they have the same name. When I replaced this folder with one from another mac, viola, the problems stopped. However it doesn't stop the old, previously created files from continuing to open wrong and be printed wrong, if I don't catch them.
    Any insight anyone could provide would prove most helpful. It would be nice to get a night's sleep for a change.....thanks!
    FYI I'm using Indesign CS3 5.0.4 (recently updated) with Color Settings CMYK: U.S. Sheetfed Coated v2 and color management policies-preserve numbers (ignore linked profiles).

    >one had (for example) Pantone 288 C, color type spot,
    Mike, you are implying in your post that your jobs are being output as CMYK, but your colors are set as spots. If that's the case your printer is converting the spot colors to process CMYK, which would cause the problem you are describingPantone Solid colors are converted to CMYK via color management when Use Lab is checked. The resulting output values would depend on the document's destination CMYK profile.
    If your job is indeed CMYK you should stop using the Pantone Solid library and use the Solid to Process library instead, which always output as Pantones CMYK builds.
    Use Lab is useful when a job is to be output as Spot color because you will likely get a more accurate preview of the color and a better proof to a composite printer. Many Pantone colors are out of the CMYK gamut. Lab can also be useful if you are sending a job to CMYK and you want to color manage the conversion of a solid color to CMYK, rather than using Pantones built formulas which are device dependent.

  • Problem in test lab

    Hi everyone,
    Just describe what i faced with.
    I solved to create CCR Exchange 2007 in my test lab, and faced with if i try to install these roles of exchange:
    cas1 - cas/hub
    mbx1, mbx2 - CCR MBXes 
    i got unwork configuration.
    Test users cannot send an email to himself, and inboud emails stuck in "Queue" "CAS1\Unreachable\XXX".
    But if i install all roles to cas1 and then create the cluster and migrate (or recreate mailboxes) all works find. 
    Unfortunatelly i cannot to solve that issue myself, i undesrtand that problem maybe in "routing group" or so on, but please show me right way if you know it. Thanks!

    Hi
    Are you running exchange 2007 with 2003 or 2010?
    Hope this helps. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    I am sorry, yes i use 2007 SP3 version.

  • Lab Manager to vCenter Host Migration Problem

    Ok I have a weird one for you hopefully someone can help and if so TIA!!!. I have Lab Manager 4.0 running and I am trying to move all my Hosts and VM's out and over to Vcenter 4.0 so I can shut down and quit using LM and some of my hosts are having problems. I have undeployed all my Vm's off the hosts and went thru the unprepare process and moved the hosts to a new cluster that was not created in Lab Manager and some of my hosts are fine but some are not. On the ones that are having issues when I migrate a Vm to it I cannot remote or ping the vm but I can ping the Host. Has anyone seen or had this happen to them? Again some of my hosts that I have migrated had no issue at all but some are. Should I go and add it back to LM and add the host then go thru the unprepare process again and see if that works? Any help would be much appreciated TIA.
    Thanks,
    JE

    can you try uninstall the lab manager agent manually from the host? Follow the KB for steps.
    http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1007029

  • Problems with CMYK Colours changing to LAB

    We have a problem at work.
    In our office we work with CS6(illustrator and indesign). We save our documents on a server so my colleague can see the things I design and change things. Here's our problem. When I save documents with the right pantone colors on my imac they change on my colleague's imac to LAB colors when he opens the documents. So he has to change the colors again to CMYK.
    Does this have anything to do with the differences between our color libraries or maybe updates?
    I hope someone can help us, it will save us a lot of changing colors!

    You have to create two documents. One Spot color. One CMYK Process color.  Distribute the CMYK Process version on the server and leave the Spot version on your local machine ( to be sent to the print vendor ). Another option is to distribute the CMYK version as a PDF.  Unfortunately, when you distribute to a server and other people have the opportunity to open and edit your documents, these type of deviations happen.  So, you have to play smart and distribute something everyone can read as accurate.  If I were you, in the copy of the original, create swatches using the CMYK conversion numbers you are accustomed to and comfortable with.  But, as previously posted, Spot color with remain Spot color and will print as Spot color.  It's just the color communication that is getting skewed by the software and different users, different systems, etc.  I hope you are the captain of the ship and noone else is dealing with the print vendor.  Otherwise, you might have a real mess on your hands.

  • Problem Lab color mode in Illustrator CC 2014

    What is the best way to choose a CMYK color mode in Illustrator? When I want to import a file from Illustrator to InDesign it will automatically be converted to a Lab color mode and I can not change the CMYK values. All colors from Illustrator are therefore in a Lab color mode. I work with Illustrator CC 2014, thank you very much!

    Thank you I think I understand what you mean. I added a Illustrator and Indesign picture to show you what happens. I made a file in Illustrator with the right values and saved it as a eps file. Then I imported in to Indesign and the second picture shows what happens. I never had this problem but since the new CC version I can't change it.

  • Computer Lab bluetooth problems

    We have a lab of 8, 27" iMac i5s that all came with bluetooth mice and keyboards. The tech department at my school have no idea of how to work with macs, and named all the computers similar, and with no uniformity whatsoever. Having 24 bluetooth devices in the same room is very problimatic, as one would assume.
    What would be the best way to keep the input devices paired with their computer and ONLY with their computer?
    I have full administrative privilages (another bumble by the techs) and have a bit of experience sorting out these bluetooth problems, but i'm tired of it.
    Thanks,
    -Superdave

    I recently began teaching in a middle school with 60 iMacs in one room.  We have a constant problem with mouse connections where one computer's mouse starts controlling another computer.  We go in and unmatch them but it is a constantly recurring issue. 
    I know it was said here that once a mouse is matched to a computer that it cannot match with another but that doesn't seem to be the case here. 
    I am suspicious that perhaps this is an issue of different mice being on the same frequency (or whatever bluetooth uses) and problems crop up when computers are started before others. 
    All computers and mice are numbered so there isn't an issue of confusion there. 
    I am wondering if there is a systematic way to go through all the computers and rematch them with the mice and ensure that they are all on completely different frequencies.  Is there a limit to the number of mice that can be in one room?
    Thanks!

  • Problem saving Output Settings in AV Lab

    I have a 'document' that starts up automatically when I boot my MBA.  The file name it opens is "Audio Dynamics Processor.trak".
    I am using this to compress audio output so that the sound volume is less dynamic.
    The problem is that there is no sound when I start up. To hear the sound, I have to open the "Studio" tab, and change the Output Settings from Soundflower (2ch) to Built-in Output.  I save the document again under the same name (and I've verifed that the new version is getting save), but for some reason when it next starts up the Output Settings are once again set to Soundflower.
    Any help as to how to make this change persist would be appreciated.
    Thanks,
    Jerry

    Cheekypaul -
    Thanks for the advice.
    I believe that AU Lab is a built in program from Apple.
    The URL given in the Help menu selection is:
    file:///Applications/Utilities/AU%20Lab.app/Contents/Resources/AULabDocs.html
    OS is:
    OS X 10.8.2 (12C3012)
    AU Lab is Version is: 2.2.2 (2.2.1)  Copyright 2010 Apple, Inc.
    Any advice appreciated.

  • Problem with OpenSSO Deployment WSPL-AM-3508-D lab

    I am working on the openSSO lab that utilizes a VM. I am to the point that I'm configuring the software load balancer. The pdf for the lab says to enter the following in the "Add Reverse Proxy URI" window:
    URI: Type a single forward slash character (“/”)
    Server URLs: Type
    https://zone1.example.com:10443,https://zone1.
    example.com:20443.
    My problem is the second entry in the window asks for "Server Names" not "Server URLs" and will not allow you to enter port numbers. Am I doing something wrong? Entering the server name will not let me load balance because both instances of tomcat are on the same server.
    Any help would be appreciated.
    Thank you,
    Matt

    Figured this out on my own. Just a stupid mistake on my part.

Maybe you are looking for