Help using Stacks...

Apple should work on their keynotes a bit... I got the impression that stacks would quickly clean up my desktop. I slid a bunch of icons onto the Dock and I got a stack but they all stayed on the desktop too! OK - The Stack seems a bit counterintuitive because now the Dock seems like a storage place but it's not.
Anyway - is there a way to pick which image is on the top of a stack?
A guy at the apple store showed me how to put multiple apps into a stack, but I don't see how to do that now - can anyone direct me there? I think I'll have the same question there too... can you decide which one to put on the top?

Stacks are more a 'shortcut' rather than a 'location'. I.e you can turn any folder on your computer into a stack. In fact, any folder you drag to the dock will become a stack.
You can't manually pick what file/application will appear on the top of the stack; You can only sort by date modified, name etc.. [right click a stack].

Similar Messages

  • N-Queens Problem Using Stacks Help

    I'm trying to solve the N-Queens problem using Stacks. Quite frankly, I'm completely lost.
    Here's the pseudocode from the book:
    "Push information onto the stack indicating the first choice is a queen in row 1, column 1.
    success = false;
    while(!success && !s.isEmpty())
    Check whether the most recent choice (on top of the stack) is in the same row, same column, or same diagonal as any other choices (below the top). If so, we say there is a conflict: otherwise, there is no conflict.
    if (there is a conflict)
    -Pop items off the stack until the stack becomes empty or the top of the stack is a choice that is not in column n. If the stack is now not empty, then increase the column number of the top choice by 1.
    else if (no conflict and the stack size is n)
    -Set success to true because we have found a solution to the n-queens problem.
    else
    -Push information onto the stack indicating tat the next choice is to place a queen at row number s.size()+1 and column number 1.
    And here is my excuse for code so far. I have no idea how to check the diagonals, or how to even really make this work
    {code}import java.util.Stack;
    public class NQueens {
    int row, column, n;
    public NQueens(int n) {
    row = 0;
    column = 0;
    n = n;
    public Stack Solve(){
    boolean success, conflict;
    Stack<NQueens> Qs = new Stack<NQueens>();
    if (Qs.size() == 0)
    Qs.push(new NQueens(1));
    success = false;
    while (!success && !Qs.isEmpty())
    if (Qs.peek().row == row)
    conflict = true;
    if (Qs.peek().column == column)
    conflict = true;
    if (conflict = true)
    Qs.pop();
    Qs.peek().column += 1;
    else
    if (!conflict && Qs.size() == n)
    success = true;
    else
    Qs.push(new NQueens(Qs.size()+1));
    return Qs;
    {code}

    First off I'll address this:
        int row, column, n;
        public NQueens(int n) {
            row = 0;
            column = 0;
            n = n; //here
        }Notice the last line of that. I get what you're trying to do, but think about what the compiler sees there. If you have two variables called 'n', one at the class level, and one at the method level, the compiler must have rules so it knows which one you're talking about. And if it follows those rules, then saying 'n' inside that method must always refer to the same n. Otherwise, how would it decide which one you're talking about? The rule here is that it uses the most local variable available to it, which in this case is your method parameter. So 'n = n' is setting the parameter equal to itself. To refer to the class variable n, use "this.n", like so:
    this.n = n;Now that that's settled, let's address some logic. You'll need to figure out whether two Queens share a diagonal. I can think of at least a couple options for that. First, every time you look at a Queen you could loop through the entire board and make sure that if a piece is in r3c4, that no piece is in r2c3,r4c5,r5c6, etc. Or you could create a new variable for your class similar to your 'row' and 'column' variables that tracks the diagonal a piece is in. But that requires some calculating. And remember, there's 2 directions for diagonals, so you'll need 2 diagonal variables.
    If these are your Row and Column values:
    Row          Column
    00000000     01234567
    11111111     01234567
    22222222     01234567
    33333333     01234567
    44444444     01234567
    55555555     01234567
    66666666     01234567
    77777777     01234567And these are your diagonal values:
    Diag 1                    Diag 2
    0  1  2  3  4  5  6  7          7  6  5  4  3  2  1  0
    1  2  3  4  5  6  7  8          8  7  6  5  4  3  2  1
    2  3  4  5  6  7  8  9          9  8  7  6  5  4  3  2
    3  4  5  6  7  8  9  10          10 9  8  7  6  5  4  3
    4  5  6  7  8  9  10 11          11 10 9  8  7  6  5  4
    5  6  7  8  9  10 11 12          12 11 10 9  8  7  6  5
    6  7  8  9  10 11 12 13          13 12 11 10 9  8  7  6
    7  8  9  10 11 12 13 14          14 13 12 11 10 9  8  7Then examine the relationship between Row(R), Column(C), and Diagonals 1 and 2 (D1/D2):
    RC   D1,D2
    00 = 0,7
    01 = 1,6
    02 = 2,5
    03 = 3,4
    04 = 4,3
    05 = 5,2
    06 = 6,1
    07 = 7,0
    10 = 1,8
    11 = 2,7
    12 = 3,6
    13 = 4,5
    14 = 5,4
    15 = 6,3
    16 = 7,2
    17 = 8,1You'll notice that D1 is always the same as R + C. And D2 is always the same as C subtracted from 7 plus R, giving:
    int d1 = row + column;
    int d2 = (7 + row) - column;But remember, that 7 in the formula above, is based on how big your grid is. So whatever your 'N' is, whether its a 10x10 square or a 574x574 square, that 7 should be changed to (N-1)
    So those could be your variables to track diagonals. What I'm noticing in your current code, is that you never change your row and column variables...so every Queen is always at r0c0. You should probably put values for those in your parameters for the constructor, in addition to n. Then the diagonals can be calculated from those.
    Edited by: newark on Apr 17, 2008 10:46 AM

  • Do I need to create ip address to another switch when i use stack?

    Good Day!
    Please help me to answer this question in my title. I have 2 switches my old switch has configure ip address and i will use stack to my another switch the old one will be the primary and new switch is the secondary do i need to configure the ip address of the new 1 or  no need? i'm totally confuse on it. I hope you can help me regarding on this matter.Thank you.

    no Need.
    Here is the procedure:
    Tips to Add a Switch as a Slave to the Stack
    To add a switch, as a slave, to a stack, complete these steps:
    Note: Make sure the switch that you add into the stack has the same IOS version as the switches in the stack. Refer to Catalyst 3750 Software Upgrade in a Stack Configuration with Use of the Command-Line Interface to upgrade the IOS in a catalyst 3750 switch.
    Change the switch priority of the switch to be added to "1".switch stack-member-number priority new-priority-valueNote: This step is optional, but it will make sure that the switch has fewer chances to become a stackmaster in the future.
    Power off the switch that is to be added.
    Make sure that the stack is fully connected so that, when you connect the new switch, the stack will be at least in half connectivity and does not partition.
    Connect the new switch to the stack with the StackWise ports.
    Power on the newly added switch.
    After the new switch comes up, issue the command show switch to verify stack membership.
    HTH
    Regards
    Inayath
    ***********Plz dont forget to rate all usefull posts*********

  • How to use stack canvas in tab canvas in oracle forms

    hi all,
    how to use stack canvas in tab canvas in oracle forms. please if any one help out in this.

    Hi
    u can simply create a button in ur tab canvas in this button pls write the following as an example...
    SHOW_VIEW('STACKED_CANVAS');
    GO_ITEM ('SAL'); -- Pls note this item should be navigable and visible in ur stacked canvas form
    HIDE_VIEW('TAB_CANVAS');In order to return back to ur tab_canvas pls create a button in this button pls write the following...
    HIDE_VIEW('STACKED_CANVAS');
    SHOW_VIEW('TAB_CANVAS');
    GO_BLOCK('EMP');
    GO_ITEM ('EMPNO'); -- Pls note this item should be navigable and visible in ur stacked canvas form
    Hope this helps...
    Regards,
    Abdetu...

  • Problem Using Stacks

    I need help using the Stacks feature in the Dock. When I drag a document out of the Finder and move it into a folder in the Dock, the entire document is removed from the Finder. No trace of the document is left in the Finder. Then, if I delete the document from the folder in the Dock the document is lost - it does not reappear in the Finder. What am I doing wrong? I would like to be able to use Stacks without risking the loss of my documents.

    The folders (Stacks) in the Dock are just aliases to actual folders somewhere on your computers.
    When you move something from a Folder in the Finder to a folder (stack) in the Dock, the file gets moved to the folder that is represented by the Stacked folder.
    If you right-click (or ctrl-click) on the stack icon in the dock, you can choose "Show in Finder," and it will open the actual folder that is being aliased by the stack.
    So, if you've moved a file to a folder in the Dock, and then deleted it from the folder that is represented by the Stack on the Dock, you will have deleted the actual file.
    What is shown on the face of the Dock are aliases (shortcuts) to actual items. If you remove one of the aliases, the original is not deleted. If you remove what is in the aliases on the Dock, you will delete the original, as that is what is there.

  • PLEASE HELP ME! I need help with stacks.

    I need some insight on using stacks to evaluate logical expressions. Can someone please show me where I should begin? My program should convert infix expressions to postfix notation. The program will read from a file with logical expressions. Where do I begin? I desparately need your help!
    Thanks a million!

    I have never managed to find a really simple way of doing this, though I have implemented several
    expression parsers. If you are really desparate (and this is not a college project) I can mail you some code, that, while not doing what you want, will help you on your way.
    Rob

  • Having problem while using Stacked Column Chart.

    Hi,
    my result set is as below
    STAGE OPERATION
    TOTAL PCS
    1 SIDE SEAM
    6714
    2 BIND BOTTOM
    4522
    2 SLEEVE ATTACH
    6105
    3 BIND TOP(E/N)
    3781
    5 SLEEVE HEM
    3277
    6 BIND TACK-2
    1173
    6 TACK-2
    1277
    6 TACK-4
    268
    I need to display it on the screen by using stacked column chart. I mean XAxis as "STAGE" YAxis as "TOTAL PCS" and "OPERATION" as series. I used DataBIndCrossTable as 
    chProd.DataBindCrossTable(dtView, "OPERATION", "STAGE", "TOTAL PCS", "Label=TOTAL PCS");
    But, the results in the chart is displaying it in the first STAGE it self. I mean xaxis value 1 has all the yaxis value.
    Can anyone please help me to get the results as first image?
    I'm anable to attach the related images here.
    Thanks in advance.
    Regrds,
    Rajesh.

    Got the answer.
    Just added 
    chProd.AlignDataPointsByAxisLabel();
    Regards,
    Rajesh

  • What is the point of the download window if you use stacks?

    Greetings,
    One of the most annoying things about the download window was the fact that the window always hung around after completing dowloads in Tiger when using safari. To me, that was just a time waster of always pressing Apple+W to close that window.
    When Leopard was released, I was excited to realize that one function of the download stack was to recevie downloads from safari after completed. However, after completion, the download window still sticks around and I still have to close it... then navigate to my stack of downloads to mount the image. What is the point of the download window is I use stacks now? Why can't the window disappear after completion?
    //Cheers

    Aaargh!! Me too - it's so annoying! Firefox has a downloads window as well - I just don't see the point of it. I didn't like it in Tiger either.
    As a way to see the progress of downloads, it's fine, but it should at least close when all the downloads are finished, and completed downloads should not display.
    Ideally it should look & work exactly like the Copy window in Finder - the one that comes up when you are copying or moving a large file or number of files from one folder to another.
    Is there a hack that will make it work like that?

  • How to  show additional items in the same window using stacked canvas

    How to show additional items in the same window using stacked canvas.
    My content canvas has 14 items, and I have to include more.
    I want to know how I can use a stacked canvas to show these additional items in the same window, so that I can scroll through horzontally , as if all the items are on one canvas.

    Well, I intially navigate into my content canvas. At this stage the stacked canvas is not visible, then how should I navigate to an item on the stacked canvas to make it visible?

  • Help using jar file!

    Help using jar file!
    Hello
    I have created a jar file by using
    jar cvmf Manifest.txt myjar.jar 1.class Mydirectory
    In 1.java file :I have used
    JEditorPane editor;
    editor.setPage(getClass().getResource("/Mydirectory/default.htm"));
    If I am only giving myjar.jar file to the client without Mydirectory then also it is working fine by showing default.htm in JeditorPane.
    But my problem is I want to use
    Runtime.getRuntime().exec("cmd /c start IEXPLORE"+targetstr) ;
    targetstr will be the filename with path of the default.htm
    If I am giving myjar.jar file with Mydirectory to the client it is working but I don't want to give Mydirectory to the client .
    What should I do?
    Is there any solution for this?
    Using another jar file which will include mydirectory can solve this problem?
    Is there any othe concept in java so that I wll be able to hide Mydirectory from client?
    Please help.

    It seems like you could extract the .htm file from the jar, either with Runtime.exec or using the Jar API classes.

  • Help using file sharing with different users accounts on same Macbook

    Hi, I just wanted a little help using the file sharing option. My wife and I had different users accounts on the same MacBook, but when I am trying to share my baby's picture from my documents folder for my wife to have the same picture, I can't find the way to do that; I am not been able to find my pictures on my wife's account. Is there any way that I could share a folder from my account and my wife to have the same files at the same time on her account?
    I mean, something like the smart play list on the itunes?
    Thank you

    You can't do that directly unless you change permissions on your whole Documents folder which is not a good idea. Your wife can see your Documents folder from her account by going to Users/yourusername/Documents. However, this folder has no read privileges for others except yourself by default so she won't be able to open it.
    rather than changing permissions on your Documents folder, you can place the pictures you want to share in Public folder in your home directory or in Users/Shared folder.

  • How to assign search help using ovs for select options for ALV in web dynpr

    how to assign search help using ovs for select options for ALV in web dynpro

    Hi,
    refer http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
    http://www.****************/Tutorials/WebDynproABAP/OVS/page1.htm
    and http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproAbap-OVSsearch+help
    Thanks,
    Chandra

  • How to create Search Help using more than 1 table

    Hi all,
    I need to create a search help using more than 1 table.
    Eq:-   Itable1 contains the data and Table2 contains the description of a field.
    In my search help i require A field from Table1 and For the corresponding field description from Table2.

    Hi,
    You can do this with the help of collective search help.
    Collective search helps:- Combination of elementary search helps. When we need to fetch data based on multiple selection criteriau2019s. More than one tables are Selection from multiple tables 
    Steps for creating collective search help.
    1) Enter the search help name and click on create.
    2) Choose Collective search help radio button option as the search help type.
    3) Enter the search help parameters.
    Note that there is no selection method to be entered for a collective search help.
    4) Instead of the selection method, we enter the included search helps for the collective search help.
    5)We need to assign parameters for each of the included search helps.
    6) Complete the parameter assignment by clicking on the push button.
    7) Collective search help offers the user to obtain F4 help using any of the included search helps.
    Hope this will help you:
    Reagrds:
    Alok

  • How to use stacked canvas

    hi,
    i use oracle forms 10g ,win xp pack2 ...
    i want to elimine empty records in my forms using stacked canvas !!
    thnx
    show this image :
    http://nsa30.casimages.com/img/2012/12/30/121230071422805901.png
    Edited by: 979155 on 31 déc. 2012 10:01

    You have to define the number of records that you want to display - it is not dynamic so I doubt it could be done. You might be able to do something with visual attributes to make it more appealing to the eye, but you would still have empty cells displaying if there wasn't data for those records.

  • Problem using stacks in CS4

    So I want to try to edit in  stacks but cant seem to get it to work. my  understanding is the the usual command is file, scripts, load into stack  and then once your files load you go file, scripts, statistics, my  problem is that there is not file, scripts, statistics for me. I'm using  CS4 extended so I should have it. My layer, smart objects, stack mode  is always grayed out too. (weather I convert the top file to a smart  object, or all the files or select all and then convert to smart object,  which flattens the layers). So Im wondering if there is some setting I  have changed that would prevent me form using stacks? or if im just  missing something, thanks Im using windows 7, PS CS4 version 11.0.2
    Thanks ahead of time

    Are you using CS4, or CS4 Extended?  The stacks are only creatable in extended.

Maybe you are looking for

  • Convert from String data type to Character data type

    Hi..., I'm a beginner. I try to make a program. But I don't know how to convert from string to data type. I try to make a calculator with GUI window. And when somebody put "+" to one of the window, I just want to convert it to Character instead of St

  • Does Guitar Rig 3 work in Garage Band v1?

    Under mac osx 10.4 (G5 with dual 2.5 cpus), I can select Guitar Rig as an AU but then Garage Band crashes. One time it crashed, I chose 'Try Again' and when I selected the Guitar Rig, the GR interface came up without the amp profiles (which I manuall

  • Problem saving files as JPEGs after editing them as CR2 files

    I took some photos in RAW format and used Photoshop CS2 to make my lighting adjustments (in the Photoshop RAW viewer). For most photos, I just clicked the "Save" button, and I had the option to convert and save the file as JPEG, TIFF, etc. But I had

  • Add clause WHERE in Renderer

    Hi all: Anybody knows how can i add a clause WHERE in HTML Renderer?. For example, if a want to do a JOIN or make a row restrict?. In the "real world" is very necessary and Oracle Forms gives that functionality. Regards. Marco H.

  • Migrating all preferences/settings to another system.

    I'm about to switch to a new system. I've read some posts about transferring the actual library over and getting LR to "see" all the photos on the new drive, but I'm still unclear how to migrate the LR settings over to the new system. I want to trans