Suggestions to improve without break & continue? thanks

      label0:
         do
            do
               if (some condition)
                  if ( ! another condition)
                     break label0;
               else
                  if (some other condition)
                     continue label0;
            } while(true);
         } while (the final condition);

  do
               if (some condition)
                  if ( ! another condition)
                     break label0;
               else
                  if (some other condition)
                     continue label0;
            } while(true);is like
  do
                  if (some other condition)
                     continue label0;
            } while(!(another condition && some condition));

Similar Messages

  • How do I move a .fm to another folder without breaking the .book cross-references?

    Simplified situation:
    I currently have mybook.book containing:
       chapter1.fm
       chap2.fm
       appendixA.fm
       apdxB.fm
    I'd like to reorg the files such that mybook.book contains:
       chapters\chapter1.fm
       chapters\chap2.fm
       appendices\appendixA.fm
       appendices\apdxB.fm
    If I move the files into folders with Windows Explorer, it will of course break the cross-references.  I thought I could simply use right-click Rename on the file enteries within the book in FM to move them, but it won't allow the / or | chars.  How can I accomplish this reorg without breaking the cross-references?
    Thanks,
    Dave

    TWDaveWalker wrote:
    oh well, looks like I'll have to develop a procedure for the staff.  Does anyone have any non-mif suggestions for a smooth procedure?
    Not sure what the problem here is. You need neither a 3rd party plugin nor any MIF editing. Simply do it this way:
    Create the required folders (chapters/appendices) within your current book folder
    Open the book
    Open the chapter files and do a "Save as" into the \chapter subfolder
    Open the appendix files and do a "Save as" into the \appendices subfolder
    Delete the book file entries and re-fill the book with the newly saved files
    Every "Save as..." keeps xrefs intact, including the new path in the document's references. This reqires some steps, yes. But I think it's still better than doing edits to MIF files by someone who is not experienced doing this.
    Edit: Sorry, it's not a easy as I thought. I forgot that this is done in several steps, and previously saved files don't recognize path changes of files saved afterwards. So this is no solution.
    Bernd
    Message was edited by: Be.eM
    Reason: wrong approach, typing faster than thinking

  • Suggestion for Improving Number

    Hello Oracle Java community,
    I've recently encountered some difficulties using the abstract class java.lang.Number, and have a suggestion for improvement.
    I'm writing a class that computes statistical information on a list of numbers - it would be nice to not couple this class to Integer, Double, BigDecimal, or any other wrapper by using generics. I saw that there is a nice superclass that all Number objects inherit from.
    I came up with:
    public class Statistics<T extends Number> {
    private List<T> data;
    // statistical data that i wish to find and store, such as median, mean, standard dev, etc
    public synchronized void setData(List<T> data) {
    this.data = data;
    if (this.data != null && !this.data.isEmpty()) calculateStatistics();
    private void calculateStatistics() {
    // Welcome to instanceof and casting hell...
    h4. It would be nice to have richer functionality from the Number class, say to do mathematical operations with them or compare them.
    h4. After all, in the real world it is possible to do so.
    h4. Real numbers are much like BigDecimal. Why not take the idea of BigDecimal, and make that the parent of Integer, BigInteger, Double, Short, Byte, Float (I'm probably forgetting a few)? All of those are limited forms of real numbers. It would make comparison between Number datatypes easy, would probably remove all of that duplicated arithmetic code between all of the children of Number, and also allow Numbers to be used in powerful generic ways. The parent/replacement of BigDecimal could even be named RealNumber, which stays true to its math domain.
    As a side note, I'm solving this problem by taking an initial step to convert the List<whatever type of Number that the user enters> into a List<BigDecimal> by getting the toString() value of each element when cast as a Number.
    private List<BigDecimal> convertData(List<T> data) {
    ArrayList<BigDecimal> converted = new ArrayList<BigDecimal>();
    for (T element : data) {
    converted.add(new BigDecimal(((Number) element).toString()));
    return converted;
    Criticism is always welcome.
    Thanks for your time and thoughts.
    -James Genac

    How compareTo() came into existence is from Comparable interface. As I understand, Comparable came into existence since Collections API has sorting functions - which needs to be run with a matching Comparable object that knows how to determine which element is larger than the other (not limited to objects representing numbers, you might sort a list of Persons). Hence, compareTo() is not solely meant for the comparison of numbers. Existence of the method in BigDecimal is just one case.
    Subclasses can override the equals() method, but that cannot be implemented in a cleaner manner and leads to a very poor design. For example, you might want to compare an Integer and a Float. So the Integer class's equals() method need to have some if-else structure to determine the other type and then compare. Same holds true for the Float class's equals() method as well. Ultimately, Everything becomes a mess. All subclasses of RealNumber needs to know about all other subclasses of RealNumber. And you will not be able to introduce new subtypes and expect the equals() method to work correctly.
    To avoid this, you need to depend on a single representation form for all types of numbers. If that's the case, you might just live with something like BigDecimal and not use Byte, Float, Integer,... (which we kind of do in some cases - for example to represent monetary amounts). So we can live without Byte, Float, Integer,...
    Then we need some utility classes that would contain some number type specific functions to work with primitives. So we will also have Byte, Float, Integer... unrelated to BigDecimal.
    Clearly, the wrapper types are there not because of the need to represent real world number types, but because of the need to represent computer domain number types. Hence, they have been organized not according to relationships found in real world number types. Many of us find this way of modelling sufficient and have an understanding about the limitations. But if you need to model the real world number relationships for some special reason, you might write some new classes. Then again there will be real world aspects that you will not be able to model easily. So you will model some aspects and neglect the other.

  • FCP 10.1 slow timeline and editing - Any suggestions to improve speed?

    Recently updated to  OS X 10.9.1 and FCP 10.1. Now experiencing very slow editing and movement in timeline. FCP is responding some 2 to 5 seconds after providing an editing command. The slowest response is to scrolling in the timeline  - 2 finger scroll does not respond for up to 10 seconds after doing it.
    Render times are fine and similar to previous FCP X versions.
    Never had this problem in previous versions of FCP X.
    So far I have done the following things based on forums and a call to apple support(?).
    Deleted all plug ins.
    Started from scratch a project that I was half way through and imported all clips from scratch to a new Library (external Hard Drive).
    Deleted FCP and reinstalled including deleting all preferences.
    Timeline is quick in the early stages of the project but gets slower as I progress - about 3 minutes into my project now (approx 200 clips) and editing time is becoming impossible.
    Am using Mac Book Pro with 2.5 GhzIntel Core i7, 8GB 1333 MHz DDR3, Intel HD Graphics 3000 512 MB.
    Anyone able to assist with further suggestions?
    Thanks

    Hi Ian and Russ
    Thanks for your interest.
    Hard drive is 500GB of which I have used approx 300GB. I am using an external hard drive for this project.Footage is from Canon 7D/70D which is H.264 which is the same as other successful projects.
    Yes I do have a number of photos (say 30 @ 18mp) that I am using as part of the project although I have used these before in previous versions of FCP X without impact.
    Tried activity monitor (first time I had used it).
    When scrowling through time line (one of the problem activities) memory does not move much- Real memory approx 925mb, Virtual memory 6GB, shared memory 44mb, Private memory 75mb. Interstingly though when performing this task CPU usage goes > 100% and averages 130%.
    Does this help with any potential diagnostics and solutions?
    Thanks
    Re: FCP 10.1 slow timeline and editing - Any suggestions to improve speed? 

  • Does anyone have any suggestions to improve the performance to improve Firefox for andoid (more details).

    I'm using it on a Samsung Captivate SGHi-897 with Jellybean 2.2 (I'm unable to upgrade the OS @this time). Firefox was recommended by a freind, however, so far I've been very disappointed with it, as, it is extremely slow and constanly crashes. I've tried all of the suggestions provided, but there is no improvememt. I realize it may be not all that compatible with this properly working device or OS. I have Samsung Galxaxy SGHi-727 Skyrocket with IC 4.1, however, I've been waiting for a part for it coming from Aisa, which seems to be taking forever, so in the meantime I'm.stuck with this. I was wondering if you may have any suggestions on how to speed it up and prevent it from crashing so much, other than what's on your help guide since those changes I've tried make no improvement in it's performance. I would very much prefer to use Firefox on this device, as well as, after I repair my other device for a number of other reasons, but if I'm unable to improve it, I'll just go back to what I was using. Thank you and be well.
    twich83115
    [ed. removed email]

    Suggestion for improvement:
    I'd like <select size="1" multiple> to provide a dropdown with checkboxes like this:
    http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx
    Can that be done?
    Thanks

  • How do I use a path as an argument without breaking the -classpath option?

    How do I use a path as an argument without breaking the -classpath option?
    I have the following Korn Shell Script:
    #!/bin/ksh
        CSVFILE=/EAIStorageNumbers/v1/0001/weekly05222006.csv
        OUTPUTFILE=/EAIStorageNumbers/v1/0001/08000000.txt
        PAGEMBR=0800F341
        cd /EAIStorageNumbers/v1/bin/
        java -classpath com.dtn.refinedfuels.EAIStorageNumbers $CSVFILE $OUTPUTFILE $PAGEMBRWhen I run the shell script, I return the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: /EAIStorageNumbers/v1/0001/weekly05222006/csv
    Thus, the -classpath option sees the first argument as a classpath. When I remove the -classpath option, I get a different error, which is another issue:
    Exception in thread "main" java.lang.NoClassDefFoundError: au/com/bytecode/opencsv/CSVReader
    at com.dtn.refinedfuels.EAIStorageNumbers.main(Unknown Source)
    Thoughts or suggestions on how I can get the -classpath option to work with the defined Korn Shell Script variables would be greatly appreciated.

    I think you're misunderstanding the classpath argument. This tells java where to look to find your classes. The argument you're supplying looks like the class that you want java to run. Run something like this: java -classpath $MY_CLASS_DIR my.package.MyClass arg1 arg2 arg3.

  • Signal to phone varies between 4G and 1X. Can that be improved without using antennae.

    Signal strength varies from 4G to 1X, is there an adjustment in the phone to correct or is it necessary to buy xtra antennae.

    Thank you for replying.
    Signal varies in 61822 and 33917 zip codes. The incline plane emblem next
    to battery icon never shows strength greater than just the tip of the
    indicator except when I go to Verizon corporate store where they have a
    booster. It happens in and out doors. I have not removed the sim card. This
    is a Motorola RAZR M with a number on back - CEO 168
         [image: Verizon Wireless
    Community]<http://community.verizonwireless.com>
    <http://www.verizonwireless.com/b2c/index.html>
    <http://www.verizonwireless.com/b2c/explore>
    <http://www.verizonwireless.com/b2c/store/controller?item=phoneFirst&action=viewShopIndex>
    <https://wbillpay.verizonwireless.com/vzw/nos/topline.jsp>
    <http://support.verizonwireless.com/clc/>    Re:
    Signal to phone varies between 4G and 1X. Can that be improved without
    using antennae.  created by Verizon Wireless Customer
    Support<https://community.verizonwireless.com/people/vzw_customer_support>in
    Android - View the full
    discussion<https://community.verizonwireless.com/message/1026021#1026021>

  • My iPad 2 won't charge and it's completely shut down. I've tried pressing the two buttons simultaneously, but nothing works. It's driving me crazy! Any offers of suggestions would be greatly appreciated. Thanks!

    My iPad 2 won't charge and it's completely shut down. I've tried pressing the two buttons simultaneously, but nothing works. It's driving me crazy! Any offers of suggestions would be greatly appreciated. Thanks!

    1. The most efficient way to charge an iPad is with the charger that came with the iPad and having that plugged into a wall outlet. Trying to charge while connected to a laptop often doesn't work because the USB port may not provide enough power.
    2. Once an iPad battery has completely drained it may take an hour or more on the wall charger before the iPad responds. So after an hour on the charger reset the iPad. Press and hold both the Home button and the Sleep/Wake button continuously until the Apple logo appears. Then release the button and let the device restart. You will not lose data doing this. It's like a computer reboot.
    3. If the iPad still does not start up make an appt at the Apple store. It will be far better if you have an appointment rather than just walking in because those with appointments will be taken care of before you are.

  • Suggestions To Improve E90 Calendar

    Hi,
    I bought the E90 Communicator to replace my old PSION Series 3mx and I am quite happy with it.
    I use the calender application a lot, and that's were I'm missing a few features I used a lot on my PSION:
    - copy & paste an entry
    - repeat entry not only by date, but also by day of week (for example: every second Friday of the month)
    - search entries (for example: find the next appointment with my doctor)
    I hope to find these features in one of the next software updates.

    Thanks for the clarification - its nice to know I did not misunderstand your original intention.
    and I think the post and discussion was/is a good idea -
    regardless of whether Nokia wants to/will actually visibly follow up on whats discussed here -
    it seems - it seems to me that someone from there might well... just happen across this page (one reason for a forum in the first place - is to get a sense of what the users are talking about)... and make some notes.
    I believe that companies that dont communicate directly with their customers (but advertise that they do!).. will listen - they just dont want to COMMUNICATE.. (because there are just too many of us - with too many "good ideas" and too many clueless about what it would take to actually do what we want...
    So if anybody coming along wants to make suggestions to IMPROVE the native calendar... I think the suggestions should be made here - despite the fact that the other people -with far more experience (and frustration) are more interested in using this piece to compare someone else's product.
    We're on a Nokia site... Nokia is looking - whether we see immediate evidence of this or not...
    thanks for the post! its a good idea - no matter what "they" say! (smile)

  • Suggestions for improvements

    hello guys.can u give me small suggestions to improve this site?
    www.gogua.gr
    i cant change it a lot because the owner like it this way (buttons logo etc) but some lines here and there or something like that could be nice

    but i want the menu and the footer to be the same in my template.
    can i do that without having to change manually the code for every
    page? (to set the photo rollover image in the photo page for example) i
    dont know if this is possible.
    I offer a DW Extension that will automatically do this for you.  You can put identical menu code on each page on the site (in your case by using a Template) as well as the divaGPS Extension,  and then let divaGPS  handle the you-are-here menu highlighting for you.
    Usually on this forum I suggest the free version of divaGPS, however because you are using an image-based menu, you would need to buy the paid version.  It's not expensive and honestly would make your site more user-friendly. You can learn more about it here:
    http://divahtml.com/products/divaGPS/current_menu_location.php
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Is there a way to rename a template without breaking existing pages using the 'old' template?

    Hi guys,
    I am using CQ 5.4. and I want to refactor existing code of a project. Part of that involves renaming existing templates. Renaming one locally, I saw that existing pages break because they can't 'find' the old template. is there a way to rename a template without breaking those pages?
    Thanks,
    Alex

    I'm not aware of any GUI tool that does this in Leopard. you can change the names of the share points by hand by editing the appropriate plists located in /private/var/db/dslocal/nodes/Default/config/SharePoints/ but that's a pretty horrible way to do it and is the opposite of user friendly. don't know any other way though.

  • Where can i submit suggestions for improvement of email?

    I have a few suggestions to improve the email program used on the iPhone and iPad.  How do I get them to Apple to be considered in the next iOS update?  First suggestion is the ability to "mark" contacts when sending to multiple email contacts.  Currently you have to select one for the "to" field then return to contacts to select the next one. Should be able to bring up contacts list and place a check beside each one you want to send to and the hit "done" to populate the "to, cc, or bcc" fields.
    The second suggestion is the ability to create email groups directly on the iPad/iPhone for frequent lists I send to.
    The third suggestion is the ability to have a "read receipt" option so I know that the email was delivered and read.
    Thanks,
    Keith   

    Specifically for the iPad.
    http://www.apple.com/feedback/ipad.html

  • Resizing C:\ Without breaking One Key Recovery

    Hi just got a new G550 and i must say its a great laptop so far.
    My one main question is this is it possible to resize c:\ and d:\ without breaking the One Key Recovery system.
    I have made a backup of the Factory restore area but would like to decrease c:\ and increase d:\ so i can put all my 147+GB's worth of data into it so if C: is needing a reinstall i don't loose the d:?
    If not is it possible to insert my old laptop hard disc in this new laptop without voiding the warrenty. Thank you!

    You can use Norton Ghost or some other imaging product of your liking.  I use Acronis True Image - but Ghost should work as well.  Not sure what version you will need however.   Make sure you copy all of the partitions on the drive.  I know in True Image it will backup the hidden ones and show you what is out there. 
    After you do this your images will be safe on another dirve.  (Just in case you screw something up) 
    Now - you can use a partition manager to extend the size of the partition you want.  As long as you don't change the logical location or drive letter, it shouldn't care what size you make it.  The recovery program just needs to know where to go look for your backup. 
    I shrunk my backup partition because I don't plan on using it for recovery.  I will use the imaging software instead, and I would prefer to have more space on my "C" drive. 
    Hope this helps. 

  • Downgrading the kernel without breaking my system

    Hello,
    A few months ago, I was using a old (2011) version of the kernel, because of regressions in WiFi support and in sound quality. But when /lib became a symlink and the glibc update came ( http://www.archlinux.org/news/the-lib-d … a-symlink/ ), my system was broken, and I had to upgrade to a more recent version of the kernel using a LiveCD.
    So, is there a way to downgrade safely to an older version of the kernel without breaking my system?
    Thanks in advance.

    /lib is a symlink... what happens if you try to install the older kernel?
    Alternatively, re-build the package of an older kernel. (Though I doubt re-building is necessary, I offer it as a possibility.)

  • Suggestions for improving this update in batches of 100 records

    I'm currently using the following PL/SQL code to update batches of records in groups of 100 records at a time.
    - DB Version : Oracle9i Enterprise Edition Release 9.2.0.7.0
    - There is an index on columns : AHS_CONTACT_TYPE, SYNCSTATUS
    - I have to commit the records in batches of 100
    -- Mark all the Agents "In Process" (regardless of Owner)
    -- Update last_modified_by_id to 'SALESFORCE_LOADED' if the
    -- last_modified_by_id column is 'SALESFORCE_SYNC' and
    -- the ID column is NOT NULL
       ln_count := 0;
       FOR C IN (SELECT tmpsf_CONTACT.ROWID
                   FROM tmpsf_CONTACT
                  WHERE ( AHS_CONTACT_TYPE = c_sfContactType_AGENT ) AND
                         ( SYNCSTATUS <> c_sfsyncstatus_IN_PROCESS )
       LOOP
          UPDATE tmpsf_CONTACT
             SET SYNCSTATUS = c_sfsyncstatus_IN_PROCESS,
                 LAST_MODIFIED_BY_ID = decode( LAST_MODIFIED_BY_ID, c_username_SALESFORCE_SYNC,
                                                            decode( ID, NULL, LAST_MODIFIED_BY_ID,
                                                                        c_username_SALESFORCE_LOADED),
                                                            LAST_MODIFIED_BY_ID)
           WHERE ( tmpsf_CONTACT.ROWID = c.ROWID );
          -- Commit every 100 records       
          IF (ln_count >= 100) THEN
             COMMIT;
             ln_count := 1;
          ELSE
             ln_count := ln_count + 1;
          END IF;
       END LOOP;
    -- Catch last batch with any records less then 100
    COMMIT;Does anyone have any suggestions about further improving this performance?
    Thanks,
    Jason

    Okay, I have to do it batches per our DBA group.
    This is not up for debate...unfortunately. Their
    r reasons :
    - To keep the rollback segment small Very small apparently, in fact in this test, updating 100 rows of 2 varchar2(200) columns uses 56 KB of rollback. Updating the whole 10,000 rows uses 5 MB. Is this database running on a pocket USB flash drive? Currently costing $30 for 512 MB from Amazon
    http://www.amazon.com/gp/product/B0000B3AKR/qid=1136558252/sr=8-2/ref=pd_bbs_2/103-9580563-3995040?n=507846&s=electronics&v=glance
    SQL> create table t as select rpad('x',200,'x') a, rpad('y',200,'y') b
      2  from dual connect by level <= 10000;
    Table created.
    SQL> update t set a = replace(a,'x','y'),
      2    b = replace(b,'y','x')
      3  where rownum <= 100;
    100 rows updated.
    SQL> select
      2      used_ublk undo_used_blk,
      3      used_ublk * blk_size_kb undo_used_kb,
      4      log_io logical_io,
      5      cr_get consistent_gets
      6  from
      7      v$transaction, v$session s,
      8      (select distinct sid from v$mystat) m,
      9      (select to_number(value)/1024 blk_size_kb
    10          from v$parameter where name='db_block_size')
    11  where
    12      m.sid       =   s.sid
    13  and ses_addr    =   saddr;
    UNDO_USED_BLK UNDO_USED_KB LOGICAL_IO CONSISTENT_GETS
                7           56        337             227
    SQL> rollback;
    Rollback complete.
    SQL> update t set a = replace(a,'x','y'),
      2    b = replace(b,'y','x');
    10000 rows updated.
    SQL> select
      2      used_ublk undo_used_blk,
      3      used_ublk * blk_size_kb undo_used_kb,
      4      log_io logical_io,
      5      cr_get consistent_gets
      6  from
      7      v$transaction, v$session s,
      8      (select distinct sid from v$mystat) m,
      9      (select to_number(value)/1024 blk_size_kb
    10          from v$parameter where name='db_block_size')
    11  where
    12      m.sid       =   s.sid
    13  and ses_addr    =   saddr;
    UNDO_USED_BLK UNDO_USED_KB LOGICAL_IO CONSISTENT_GETS
              626         5008      31898             594
    SQL>>
    - To prevent tying up the entire table
    They don't know much about Oracle these DBAs do they, what exactly do they mean by "tying up the table"?
    Maybe they didn't get past the 2 Day DBA manual to the Concepts guide yet?
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14220/consist.htm#i13945
    >
    - And the most important, replicated transactions
    must be reasonably small for throughout across the
    WAN
    I don't know what replication engine is being used, but the loop approach uses a huge amount more of REDO than a simple set based update. Most replication applies the REDO to the remote database to synch it up. The loop will cause more data to be transferred over the WAN than a single update.
    >
    Either way, I want to optimize this code as much as
    possible. In fact, today I found a need to do a
    similar update again...
    Just do the update. It uses less resources and is faster becasue of it. The slow approach does not use fewer database resources because you are throttling it. It is slower because it requires more of everything.

Maybe you are looking for

  • Struts: getting multiple selected values from a select element

    Hi Friends, I am a total newbie with struts,I have manage to run a simple login script, Now I was wonderingif there is a select box and user has the ability to select multiple values from it how do I get those values in the *Form class my select tag

  • I need to allign my icloud account with my apple id account

    As a new iphone user I set up the icloud account with an email account that I shouldn't have. Then I found that I had an old appleid account, and I used another email. Now I discover a problem, when I try to log in with a pc using itunes and the iclo

  • HOW: File handling - Date and time of file created/modified

    Hi all, Is there any way by which we can find out the date and time of the file created in operating system using file handling through PL/SQL. Eg:- I have a directory in which I am storing some files, and for a given file name I must know when that

  • What are material movements

    hi,      i am from BI.. and i am creating a reports on production volumes.. in that i am nt able to get waht is material movements.. we have material movementa like 131/132...261/262....701/702...643/644...351/352...101/102...etc.. can u explain the

  • Unable to connect to the remote server error

    Hi All, I am new to visual studio web development. when I try to run my application  locally it is throwing the below error. I don't know exactly but I think it is unable to access webservice on my local machine. I have turned off all firewalls. Can