No form at all... possible?

Is it possible to have no form open at all in runtime envoronment? The idea is to create an MDI with no such requirement that at-least one form has to be open all the time (similar to say MS word or excel).

The only way is to create a pseudo-empty canvas with an "micro"-button on it (size 0.001 * 0.001. It will be the active item, but the user cannot see it.

Similar Messages

  • Can I set up a review process in LiveCycle? Is what I want to do, at all possible? Anyone chime in.

    What is the best way to set up a review process, without violating the EULA and having a form that is editable by the end user AFTER it is submitted.
    Basically the process will go like this..
    1. A user will log onto our website and click a link where he or she downloads a dynamic form.
    2. The user will submit the form to multiple parties at once. (Conditional e-mail, depending on what sections in the form are filled out, different people will get the form)
    3. The form will get reviewed, and if any changes need to be made, the person that originally filled out the form will need to get it back and make the necessary changes. (The forms are long, so they can't start from scratch).
    4. After the changes have been made, the form will be re-submitted for final review.
    5. After the form has been finalized, the completed form will be distributed to about 80 people within the company (attached to an e-mail or something) and these people will use the data within the form to populate what they need to.
    Additional information:
    -I am the only one that has Acrobat 9 Standard OR Professional.
    -Everyone else has Reader only
    -The forms are dynamic
    -They have to be posted to a website
    Is this at all possible? I can't figure out how this can be done.
    I hope that was clear, please ask if you have questions.

    Hi,
    You can Reader Enable a form in Acrobat v9 Standard, however note the EULA with the restriction on 500 unique recipients. If it is going out to less than 500 you are not limited to the number of data processes that you undertake on the form.
    See discussion here on Reader Enabling a form: http://assure.ly/etkFNU.
    You would need to Reader Enable the form before you put it up on the web page.
    You can script a regular button to submit the form to user-entered email addresses. See here: http://assure.ly/eUR4wJ. The first email button could be used to send out the form for review. The last section in the form could be a text field to allow reviewers to add comments and a second email button that would issued the amended form back to the originator for further action.
    Both email buttons would get their email address(s) from completed fields in the form. In addition the email submission can be set up to return the PDF form and not just the data. IF the form is Reader Enabled then users with Reader will be able to complete this action.
    Hope that helps,
    Niall

  • All possible Strings of 1 and 0

    if i wanted to create all possible strings of n 1's and n 0's where there are never more 0's than 1's using 2 for loops and recursion how would i go about this? (the first for loop controlls how many 1's are in the string the second how many 0's up to the number of 1's) What would the recursive alogrithim have to look like inorder for me to create every possible string of n 1's and n 0's where there are never more 0's than 1's ?

    void spew(int c0, int c1, int bal, String soFar){
      if(c0 == 0 && c1 == 0)System.out.println soFar;
      if(c0 > 0 && bal >= 0) spew(c0 - 1, c1, bal - 1, soFar+"0");
      if(c1 > 0) spew(c0, c1 - 1, bal + 1, soFar+"1");
    void spew(int n){spew(n,n,0,"");}And for those of you that are interested, the ones and zeros were not really ones and zeros, they were open and close parenthesis. The reason for not allowing the zeros to ever outnumber the ones was so avoid a mis-balanced set of parenthesis in the initial portion of the string, and the reason to have the same number of ones and zeros was so that final string would have a balanced set of parenthesis.
    Once you cast the problem in it's proper form, you can see that the real question was how to emit Strings with exactly n balanced pairs of parens. The total number of strings of this form are known as the Catalan numbers and you can look them up in Sloan's list of integer sequences. And of course the Catalan numbers are also the way that you count the distinct number of binary trees that you can create with exactly n nodes.
    Of course, I don't know any of that, I am just guessing the intent from the otherwise peculiar clarification of the problem and from the other posts by the OP asking about binary trees. It is a pity that the OP felt a need to obscure the original problem, making it both harder to solve and less likely that anyone googling for similar help would ever find it here.

  • All possible combinations of 23 columns in a table.

    Hi,
    We have a table as follows;
    CREATE TABLE ALL_PROD_COMB_TMP
    HDLM_ID NUMBER(10),
    MULTIPATH_ID NUMBER(10),
    TRUE_COPY_ID NUMBER(10),
    UVM_ID NUMBER(10),
    TUNING_ID NUMBER(10),
    CLUSTER_ID NUMBER(10),
    MIDDLEWARE_ID NUMBER(10),
    TAPE_ID NUMBER(10),
    THIRD_PARTY_ID NUMBER(10),
    NAS_ID NUMBER(10),
    HBA_ID NUMBER(10),
    BCM_ID NUMBER(10),
    VOLUME_MIGRATION_VERSION_ID NUMBER(10),
    TIERED_STO_MGR_VERSION_ID NUMBER(10),
    HDPS_ID NUMBER(10),
    SERVER_ID NUMBER(10),
    OS_ID NUMBER(10),
    DWDM_ID NUMBER(10),
    EXTENDER_ID NUMBER(10),
    SWITCH_ID NUMBER(10),
    INTERFACE_ID NUMBER(10),
    HUR_ID NUMBER(10),
    STORAGE_FAMILY_ID NUMBER(10)
    The data in the table is as follows;
    For formatting purpose the table data is shown in transposed form.
    Serial No. Column Name Data Value
    1     HDLM_ID                    377     586               
    2     MULTIPATH_ID               142     357               
    3     TRUE_COPY_ID               1     87     12          
    4     UVM_ID                    89     79               
    5     TUNING_ID               10     9     8          
    6     CLUSTER_ID               3     327     638          
    7     MIDDLEWARE_ID                         
    8     TAPE_ID                    3     47     54          
    9     THIRD_PARTY_ID               3                    
    10     NAS_ID                    12     91     1          
    11     HBA_ID                    300     400               
    12     BCM_ID                    14                    
    13     VOLUME_MIGRATION_VERSION_ID     13     12               
    14     TIERED_STO_MGR_VERSION_ID     1     2               
    15     HDPS_ID                    10     100               
    16     SERVER_ID               3     4               
    17     OS_ID                    2     7               
    18     DWDM_ID                    1                    
    19     EXTENDER_ID               520                    
    20     SWITCH_ID               4                    
    21     INTERFACE_ID               2     1     3     4     
    22     HUR_ID                    2     1     3     4     5
    23     STORAGE_FAMILY_ID          2
    Now we have another table named ALL_PROD_COMB having the same structure as that of ALL_PROD_COMB_TMP. In this ALL_PROD_COMB we need all the possible combinations of all the column values from ALL_PROD_COMB_TMP.
    We tried the following thing;
    insert into
         all_prod_comb (
         hdlm_id           
                                       ,multipath_id           
                                       ,true_copy_id           
                                       ,uvm_id                
                                       ,tuning_id           
                                       ,cluster_id           
                                       ,middleware_id
                                       ,tape_id
                                       ,third_party_id
                                       ,nas_id
                                       ,hba_id
                                       ,bcm_id
                                       ,volume_migration_version_id
                                       ,tiered_sto_mgr_version_id
                                       ,hdps_id
                                       ,server_id
                                       ,os_id                
                                       ,dwdm_id           
                                       ,extender_id           
                                       ,switch_id           
                                       ,interface_id           
                                       ,hur_id                
                                       ,storage_family_id
    select distinct
         a.hdlm_id           
                   ,b.multipath_id           
                   ,c.true_copy_id           
                   ,d.uvm_id                
                   ,e.tuning_id           
                   ,f.cluster_id           
                   ,g.middleware_id
                   ,h.tape_id
                   ,i.third_party_id
                   ,j.nas_id
                   ,k.hba_id
                   ,l.bcm_id
                   ,m.volume_migration_version_id
                   ,n.tiered_sto_mgr_version_id
                   ,o.hdps_id
                   ,p.server_id
                   ,q.os_id                
                   ,r.dwdm_id           
                   ,s.extender_id           
                   ,t.switch_id           
                   ,u.interface_id           
                   ,v.hur_id                
                   ,w.storage_family_id
         from (select hdlm_id from all_prod_comb_tmp) a
    ,(select multipath_id from all_prod_comb_tmp) b
    ,(select true_copy_id from all_prod_comb_tmp) c
                   ,(select uvm_id from all_prod_comb_tmp) d
                   ,(select tuning_id from all_prod_comb_tmp) e
                   ,(select cluster_id from all_prod_comb_tmp) f
                   ,(select middleware_id from all_prod_comb_tmp) g
                   ,(select tape_id from all_prod_comb_tmp) h
                   ,(select third_party_id from all_prod_comb_tmp) i
                   ,(select nas_id from all_prod_comb_tmp) j
                   ,(select hba_id from all_prod_comb_tmp) k
                   ,(select bcm_id from all_prod_comb_tmp) l
                   ,(select volume_migration_version_id from all_prod_comb_tmp) m
                   ,(select tiered_sto_mgr_version_id from all_prod_comb_tmp) n
                   ,(select hdps_id from all_prod_comb_tmp) o
                   ,(select server_id from all_prod_comb_tmp) p
                   ,(select os_id from all_prod_comb_tmp) q
                   ,(select dwdm_id from all_prod_comb_tmp) r
                   ,(select extender_id from all_prod_comb_tmp) s
                   ,(select switch_id from all_prod_comb_tmp) t
                   ,(select interface_id from all_prod_comb_tmp) u
                   ,(select hur_id from all_prod_comb_tmp) v
                   ,(select storage_family_id from all_prod_comb_tmp) w;
    But after looking at the explain plan we had to discard this. Simply not possible. Please help us with some other feasible solution.
    regards,
    Dipankar Kushari.

    Hi,
    That's what I have written while posting. Cartesian is no way possible. But is there any way so that I can find out all possible combination of the following values which is there in a table.
    1 HDLM_ID 377 586
    2 MULTIPATH_ID 142 357
    3 TRUE_COPY_ID 1 87 12
    4 UVM_ID 89 79
    5 TUNING_ID 10 9 8
    6 CLUSTER_ID 3 327 638
    7 MIDDLEWARE_ID
    8 TAPE_ID 3 47 54
    9 THIRD_PARTY_ID 3
    10 NAS_ID 12 91 1
    11 HBA_ID 300 400
    12 BCM_ID 14
    13 VOLUME_MIGRATION_VERSION_ID 13 12
    14 TIERED_STO_MGR_VERSION_ID 1 2
    15 HDPS_ID 10 100
    16 SERVER_ID 3 4
    17 OS_ID 2 7
    18 DWDM_ID 1
    19 EXTENDER_ID 520
    20 SWITCH_ID 4
    21 INTERFACE_ID 2 1 3 4
    22 HUR_ID 2 1 3 4 5
    23 STORAGE_FAMILY_ID 2
    regards,
    Dipankar.

  • I just downloaded Mountain lion and I kind a wanted to listen to music on my computer screen then to my headphones and I also want to use the dictation Mic output so was wondering if it's at all possible to do those both of the same time, also using the s

    I just have just downloaded Mountain lion and I wanted to listen to music on my computer screen with my HDMI cable plug into my back of my screen and I wanted to talk to dictation on my regular standard iPhone headphone and I was wondering if it's all possible change your settings Mac Mini to set it so you can listen to those both like your headphones and use the mic in your headphones and there's no settings that would change in the Mac Mini so do there is a flaw in this system or I am just really really really really dumb.

    You computer is probably perfectly repairable, but if you want a new one anyway, it is perfectly possible to transfer the data from the faulty one.
    But it would be a mistake to simply put the old HD in the new computer.
    These are the steps:
    Remove Hard drive from faulty computer. (very easy on Unibody MBPs, do-able but not so easy on older MBPs)
    Put it in a cheap enclosure
    Connect it the new computer
    Boot up new computer.
    If the new computer has never been run before the Setup Assistant will ask if you want to import your apps, data, settings etc from either another mac, another HD connected to the Mac or a Time Machine back up.
    Obviously chose the second option (another HD connected to this Mac) and follow prompts.
    If the new computer has already been run (so Setup Assistant doesn't run when you boot it up), you will need to use Migration Assistant...or run the installer again so that Setup Assistant runs again.
    Message was edited by: Mike Boreham...added sec on line

  • Once completed the form, is it possible to receive the confirmation e-mail with a link addressing to a html archive?

    Once completed the form, is it possible to receive the confirmation e-mail with a link addressing to a html archive?

    I don't know if it is the best solution but you could filter the results to just that client's answers on the summary tab and then PDF that.

  • My 3G connection is not working after updating to iOS 6.1. I have tried all possible solutions like resetting the network, restarting the iPad

    My 3G connection is not working after updating to iOS 6.1. I have tried all possible solutions like resetting the network , restarting iPad , ...

    The same story. No 3G after updating to 6.1.  Told my daughter temporarily not to do an update on her iPad with 6.01. We've exchanged SIMs. I inserted her SIM in my iPad - 3G appeared immediately. And my SIM in her iPad with ios 6.01 also WORKS FINE. We use the same provider - Megafon Moscow. After attempting to revert SIMs to original configuration, 3G disappeared on my iPad again. Don't know what's going on with SIM during the update to 6.1

  • Dependent Values read only or all possible values

    Hello
    I have read the following instructions.
    [How to Configure Predefined Properties with Dependent Values (NW7.0)]|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30b1ec90-0201-0010-6192-d3de721f8ae4?quicklink=index&overridelayout=true]
    I need this scenario in the Portal search.
    So my question is:
    Is it possible, if Country is empty, that the field City is read only.
    In the How to guide you can see , if no city is selected the property city is a text field(not Dropdown) and you can enter a sting.
    Or it is possible, if no country is selected that the field city shows all possible cities, not restricted by countries.
    For example no country is selected and the field city shows all cities.
    or no country is selected and the field city is read only.
    The html code of dropdown list country is
    <option value="&lt;empty&gt;"><option value="Germany">Germany<option value="France">France
    Value of no selection
    &lt;empty&gt = <empty>
    If no country is selected the selected value is &lt;empty&gt or <empty>.
    I tried this:
    "dependon=Country,*=allcities,Germany=GermanyCity,France=FrenchCity" and so on.
    "dependon=Country,<empty>=allcities,Germany=GermanyCity,France=FrenchCity" and so on.
    "dependon=Country,&lt;empty&gt=allcities,Germany=GermanyCity,France=FrenchCity" and so on.
    without success
    Can some one help?
    Edited by: Dirk Wiegele on Jan 23, 2011 12:21 PM
    Edited by: Dirk Wiegele on Jan 23, 2011 12:22 PM

    Hi
    Yes, it is possible to generate an excel file in SAP. You can use any of the following FM's for the same:
    1. EXCEL_OLE_STANDARD_DAT
    2. GUI_DOWNLOAD
    3. XXL_FULL_API
    Hope it will help.
    Regards,
    Nikita

  • RSWUWFML2 sending mail to all possible agents

    I have configured RSWUWFML2 and it is sending mail to Notes fine just the wrong agents.  I am wanting to send workflow messages from tasks etc in Quality Notifications and I have created an org structure and just assigned this structure as the agent in the workflow config.  When I assign an individual in the notification to a task only that user is getting the actual workflow in SBWP, which is great,  however notes mails are being sent to all possible agents, i.e. those in the org structure.  Anybody encountered this before? and how to stop it?

    Please check in the workflow log which are the agents it is going to?
    I think it is going to all users and the user you are saying is also receiving at.
    Please make your agent assignment properly in order the workitem not being sent to all users.
    Thanks
    Arghadip

  • Query regarding the fields details in particular form for all the users in

    Dear All,
                  I have one query regarding the fields details in particular form for all the users in company.
    Let take an exapmle if i had created Purchase Order having fields in content tab as 1.Item No. 2.Quantity 3.Unit Proce   4.Total   5. Location.
    While Login in User manager i set these fields only for Purchase order , but when i login from other user and open the similar purchase order the defaults fields are also seen including  above 4 fieds .
    Now my question is how to set the User choice fiels for the particular form that are common to all users.
    Means whenever i login in any user and opens the same document the same fields should be seen....Thanksssss.........

    You have to login with each and every user and do the Form Settings of every forms, so that all the forms look same for all the users.
    This is a manual job and you have do do it with every user login.
    Alternately, you can try out this link that explains
    [How to Copy One Screen Layout to Another User|http://www.sbonotes.com/2008/03/how-to-copy-one-screen-layout-to.html]

  • Hello, I've just tested my form on all mac navigator (safari, google chrome, opera, firefox) everything works fin, but I've encountered a message error when i tested it on a pc (windows 8, explorer 11.0) : [ref: 4TjwhtHy2SB5C8LI-Eku2A, serverError]-

    Hello, I've just tested my form on all mac navigator (safari, google chrome, opera, firefox) everything works fin, but I've encountered a message error when i tested it on a pc (windows 8, explorer 11.0) : [ref: 4TjwhtHy2SB5C8LI-Eku2A, serverError]…

    Hello, I've just tested my form on all mac navigator (safari, google chrome, opera, firefox) everything works fin, but I've encountered a message error when i tested it on a pc (windows 8, explorer 11.0) : [ref: 4TjwhtHy2SB5C8LI-Eku2A, serverError]…

  • I  have  purchased   british library  apps.  but  unable  to  access   the  collection   even  i  bought one month  subscription.   done  all  possible   way .  .

    i  am  facing  a  real trouble  to use   British Library apps ,  i have  done   all possible  ways  to    rectify  but invain.  i  bought   one  month subscription as well.

    Well I got something going on here.   I opened Parallels > Windows 7.  Turned on and registered iTunes in Windows.  It asked for an Airplay pin number.   I put one in and I was able to pull up my iTunes library.   But the one in Windows was empty, so I dragged about a dozen movies over from my iMac iTunes into the movie library of the Windows iTunes.  And then I could watch the movies on my TV using ATV from Windows.   For the next couple of hours I kept messing with both iTunes, loosing Apple TV connection to my computer a couple of times.   Now, in order to see my IMac iTunes library, I have to open my iMac iTunes program, then open Parallels>Windows7>iTunes in order to view the videos in my iMac iTunes folder. What is this all about?  Pretty convoluted way to see a movie.
    Also, I cannot figure out how to see my iMac desktop (or drives) on Parallels, so I really don't understand the connection with the two iTune libraries.  Both Libraries do show up on my TV under Apple TV> Computers.
    When I open the Windows iTunes windows, a SHARED section opens  up in my Imac iTunes, on the sidebar.  When I close the Windows iTunes Window, it goes away.  How can I get it to stay on, without using the Windows partition?
    Why didn't the iMac iTunes ask for an Airplay pin?  What is that? 
    Didn't remember seeing anything like this in the Apple Support Communities.

  • Printing all possible combinations of a given word.

    Well I'm supposed to print all possible combinations of a given word(I'm writing this for the benefit of those who might not have guessed this from the subject). I've got some code but its horribly wrong. Could anyone point out any mistakes.
    public class Try
        public void display(String s)
            char ch[]=s.toCharArray();
            for(int i=0;i<ch.length;i++)
                String word="";
                word+=ch;
    char c[]=new char[s.length()];
    for(int j=0;j<ch.length;j++)
    if(ch[j]!=ch[i])
    c[j]=ch[j];
    for(int j=0;j<ch.length;j++)
    for(int k=0;k<ch.length;k++)
    if(c[j]!=c[k])
    word+=c[k];
    word+=c[j];
    System.out.println(word);

    Me and Lucifer have been workin on this program for ages.... we cant quite understand your pseudo code.. could you elaborate a bit more on how it works ??
    Meanwhile this is the dysfunctional program weve managed to come up with so far:
    public class SHAM
        public void display(String s)
            char c[]=s.toCharArray();
            for(int i=0;i<c.length;i++)
                String word="";
                char c1[]=new char[c.length-1];
                int a=0;
                for(int l=0;l<c.length;l++)
                    if(i!=l)
                        c1[a++]=c[l];
                for(int j=0;j<c.length-1;j++)
                    char c2[]=c1;
                    word=c[i]+word;
                    if(j+1!=c.length)
                        char t=c2[j];
                        c2[j]=c2[c2.length-1];
                        c2[c2.length-1]=t;
                    for(int k=0;k<c2.length;k++)
                        word+=c2[k];
                    System.out.println(word);               
    }And this is my coding of your pseudo code:
    public class WordCombo2
        public void combo(String s)
            getCombos(s.toCharArray(), s.length());
        private void getCombos(char[] c,int n)
            if (n==1)
                print(c);
                System.out.println();
            else
                for (int i=0;i<c.length;i++)
                    if (i==0 && i<n)
                        c=c[n-1];
    n--;
    getCombos(c,n);
    c[i]=c[n-1];
    private void print(char c[])
    for (int i=0;i<c.length;i++)
    System.out.print(c[i]+" ");
    I really dont understand how this is supposed to work so i dont know whats wrong :( Im sorry this program is just totally baffling me, and on top of that recursion kind of confuses me.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Getting all possible ordering of vector

    hello
    I need to find all possible order of a set of vector I mean if I have the following:
    0
    1
    2
    all posssible would be:
    0 1 2, 1 0 2, 2 1 0, 1 2 0, 2 0 1, 0 2 1
    I have tried to use the swap but I didn't get all possible set
    I have used the following code:
    Code:
    for( int x=0;x<vector.size();x++)     {            
    for ( int w=0;w< vector.size();w++){
    Collections.swap(vector, x, w);}}
    as I said before the swap method didn't provide me the result I want
    can somebody tell me how to do it please urgent

    warnerja wrote:
    rdkh wrote:
    Sorry I had to wait a few days to do this for you. Here is a "very creative" solution:
    ... (code snipped)If by "very creative" you mean "incorrect" or at least "convoluted", then you're right.As I always ask questions, I watch for any chance to contribute to the forum. But as I don't have confidence and knowledge, I only post info I read in a book or google, and code that compiles/works correctly. As far as I can test, my code works correctly.
    I was inspired by a "very creative" way to calculate "pi" using a circle in a square and random numbers. With modern processors, knowing where to start and end is sometimes enough. Let my CPU tear into the problem, keep guessing to get "pi" to infinite precision, let the computer keep guessing until the requested collection of Vectors is found. While not AI, I find elegence in this approach.
    P.S.
    if(!used.contains(rnd)) {
    used.add(rnd);
    v.add(rnd);What's the point of both "used" and "v" containing exactly the same set of values? One of these is redundant.
    And have you heard about Random.nextInt(int n)?I just know very basic APIs (thats why I hang-out only on "New to Java" forum). As you told me: "Set<Integer> used = new HashSet<Integer>();" was not needed.
    And a special "thank you" goes out to you for trying to do a lazy bum's homework for him/her. May you end up "working with" such a person.ok, but I warned that my code is "proof of concept" and I said I wrote it just for fun, and it works correctly.
    Edited by: rdkh on Jan 11, 2010 4:58 PM

  • Fill Array with all possible combinations of 0/1

    Hi,
    i'm looking for a fast way to fill an array, respectively an int[8], with all possible combinations of 0 and 1 (or -1 and 1, shouldn't make a difference).
    I kind of know how to do it using multiple loops but I assume there is a more elegant or at leaster "better" practice.
    Thanks,
    nikolaus
            static int cnt = 0;
         public static void main(String[] args) {
              int[] element = new int[]{1,1,1,1,1,1,1,1};
              Integer[] x = new Integer[2];
              x[0] = 1;
              x[1] = -1;
              for(int i7:x){
                   element[7] = i7;
                   for(int i6:x){
                        element[6] = i6;
                        for(int i5:x){
                             element[5] = i5;
                             for(int i4:x){
                                  element[4] = i4;
                                  for(int i3:x){
                                       element[3] = i3;
                                       for(int i2:x){
                                            element[2] = i2;
                                            for(int i1:x){
                                                 element[1] = i1;
                                                 for(int i0:x){
                                                      element[0] = i0;
                                                      cnt++;
              }Edited by: NikolausO on Oct 30, 2008 4:21 AM
    Edited by: NikolausO on Oct 30, 2008 4:22 AM

    pm_kirkham wrote:
    No I replied to message number 5. as the ' (In reply to #5 )' above my post indicates, which was in reply to (a reply) to Sabre150's post which wasn't using enhanced loops, nor has any obvious place where you could use that approach to fill the array.
    Though you could pass in an array of the values to fill the array with, and loop over those, instead of using 0 or 1, at which point Sabre's approach becomes the same as your OP, but without the manual unrolling:
    import java.util.Arrays;
    public class NaryCombinations {
    public interface CombinationHandler {
    void apply (int[] combination) ;
    public static void main(String[] args) {
    calculateCombinations(new int[]{-1, 0, 1}, 4, new CombinationHandler () {
    public void apply (int[] combination) {
    System.out.println(Arrays.toString(combination));
    public static void calculateCombinations (int[] values, int depth, CombinationHandler handler) {
    recursivelyCalculateCombinations(values, 0, depth, handler, new int[depth]);
    private static void recursivelyCalculateCombinations (int[] values, int index, int depth,
    CombinationHandler handler, int[] combination) {
    if (index == depth) {
    handler.apply(combination);
    } else {
    for (int value : values) {
    combination[index] = value;
    recursivelyCalculateCombinations(values, index + 1, depth, handler, combination);
    Which looks to use the same basic approach to the generalization I created shortly after posting the original.
    public class Scratch1
         * A 'callback' to be invoked with every combination
         * of the result.
        public interface Callback
             * Invoked for each combination.
             * <br>
             * Each call is passed an new instance of the array.
             * @param array the array containing a combination.
            void processArray(int[] array);
        public Scratch1(final int[] array, final Callback callback, final int... values)
            if (callback == null)
                throw new IllegalArgumentException("The 'callback' cannot be 'null'");
            if (array.length < 1)
                throw new IllegalArgumentException("The array length must be >= 1");
            if ((values == null) || (values.length < 1))
                throw new IllegalArgumentException("The 'values' must have be at least of length 2");
            callback_ = callback;
            values_ = values.clone();
            array_ = array;
        public Scratch1(final int order, final Callback callback, final int... values)
            this(new int[order], callback, values);
         * Generates every possible value and invokes the callback for each one.
        public void process()
            process(0);
         * Internal method with no logical external use.
        private void process(int n)
            if (n == array_.length)
                callback_.processArray(array_.clone());
            else
                for (int v : values_)
                    array_[n] = v;
                    process(n + 1);
        private final Callback callback_;
        private final int[] values_;
        private final int[] array_;
        public static void main(String[] args) throws Exception
            final Callback callback = new Callback()
                public void processArray(int[] array)
                    System.out.println(java.util.Arrays.toString(array));
            new Scratch1(6, callback, 2, 1, 0).process();

  • How do I safety dispose of an old, unusable time capsule? If at all possible, I would like to recycle.

    How do I safety dispose of an old, unusable time capsule?  If at all possible, I would like to recycle. 

    If the TC is dead.. then you need to open it to erase the hard disk..
    See http://www.ifixit.com/Device/Apple_Time_Capsule
    There is nothing you can do in a dead TC to delete your files and if you have info in a TM backup it is a risk.
    Apple will exchange the dead one if you buy a new TC.. but they have no return program for the TC itself.
    Once you wipe the disk it is safe to put it back and sell on ebay or wherever.

Maybe you are looking for

  • Create a classification view over bapi

    Hello, i start a vb Programm to create a material in sap. I get all views with material_savedata but the classification view is missing. Does anybody know if there exist a special bapi to create a classification view over the .net connector ? thanks

  • How to stop pages 5 update installing

    the Pages 5 update has somehow appeared in my itunes app list (the previous version is no longer there). However, as I have not yet updated my iPad to iOS7, when syncing I get the message 'Pages was not installed as it needs a newer version of iOS' N

  • APP-01508 Error

    Hi, While selecting a particular responsability i am getting the error window with the following error. APP-01508: Failed to connect Cause: Application Object Library was unable to connect to the ORACLE database. Action: Check for ORACLE errors to fi

  • I can't stop a subscription to the spectator mag from auto renewal. Why?

    I keep trying to delete the auto renewal to the specatator magazine. I only wanted one issue. Now the "stop auto subscription" button doesnt work. I want a refund and I want to stop the subscription. Any suggestions?

  • How to resize a StageWebView

    Hello, I'm searching for some assistance with StageWebView on Android. The code used to load the page is below. The code works everytime on my Android device and on the desktop emulator. I want to resize a View where is the StageWebView control, but