Help with sorting a list

Hi,
can anyone help me with sorting of a list by date?
I have like 5 objects in the list, 4 are string and one is list.
I want to sort them by Date..
How can I do that?
I don't know if I can use CompateTo?? I am new to programing, I would appreciate if anyone can explain with sample code.
Your help is appreciated.

ASH_2007 wrote:
Hey thanks for your response, but there is a little problem with what I said earlier.
Actually my List is a type of record (it's called Employee record)
Here what exactly I have:
for Iint i=0; i< employeeRecord.getList().size(); i++)
EmployeeRecord emp = employeeRecord.getList().get(i);
//so if I can not hold my date information in an object, coz it's says type mismatch
//I am not sure how can I do this?
}Can you please help with sample code?
Thanks tonsEither cast or learn about generics. Also, use an Iterator or a foreach loop, NOT get(i).
[Collections tutorial|http://java.sun.com/docs/books/tutorial/collections/]
[Generics intro|http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html]
[Generics tutorial|http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf]
Foreach

Similar Messages

  • Help with Sort function in Terminal

    Hello all... this is my first post on here as I'm having some trouble with some Termianl commands. I'm trying to learn Terminal at the moment as it is but I would appreciate some help with this one....
    I'm trying to sort a rather large txt file into alphabetical order and also delete any duplicates. I've been using the following command in Terminal:
    sort -u words.txt > words1.txt
    but after a while I get the following error
    sort: string comparison failed: Illegal byte sequence
    sort: Set LC_ALL='C' to work around the problem.
    sort: The strings compared were `ariadnetr\345dens\r' and `ariadnetr\345ds\r'.
    What should my initial command be? What is Set LC_ALL='C'?
    Hope you guys can help?

    Various languages distinct sorting - collation - sequences. 
    The characters can and variously do sort differently, depending on what language is involved. 
    Languages here can include the written languages of humans, and a few settings associated with programming languages.  This is all part of what is known as internationalization and localization, and there are are various documents around on that topic.
    The LC_ALL environment variable sets all of the locale-related settings en-mass, including the collation sequence that is established via LC_COLLATE et al, and the sort tool is suggesting selecting the C language collation.
    Here, the tool is suggesting the following syntax:
    LC_ALL=C sort -u words.txt > words1.txt
    This can also be done by exporting the LC_ALL, but it's probably better to just do this locally before invoking the tool.
    Also look at the lines of text in question within the files, and confirm the character encoding of the file.
    Files can have different character encodings, and there's no reliable means to guess the encoding.  For some related information, see the file command:
    file words.txt
    ...and start reading some of the materials on internationalization and localization that are posted around the 'net. Here's Apple's top-level overview.
    In this case, it looks like there's an "odd" character and probably an å character on that line and apparently the Svenska ariadnetrådens. 
    Switching collation can help here, or - if the character is not necessary - removing it via tr or replacing it via sed can be equally effective solutions. 
    Given it appears to be Svenska, it might work better to switch to Svenska collation thanto  the suggested C collation.
    I think that's going to be sv_SE, which would make the command:
    LC_ALL=sv_SE sort -u words.txt > words1.txt
    This is all generic bash shell scripting stuff, and not specific to OS X.  If you haven't already seen them, the folks over at tldp have various guides including a bash guide for beginners, and an advanced bash scripting guide - both can be worth skimming.  They're not exactly the same as bash on OS X and some specific commands and switches can differ, and as bash versions can differ, but bash is quite similar across all the platforms.

  • Help with UL navigation list

    Hello all, I need some help with a left navigation menu I
    have created, you can see the code below:
    the problem I have is when I am putting a link to the UL it
    doesn't work ( probably because I have a background image in my
    CSS) i was wondering if I can do it with another way..
    css code
    .treemenu {
    margin : 0px 20px;
    padding : 10px;
    list-style : none;
    width : 200px;
    .treemenu ul {
    list-style : none;
    margin : 0px 5px;
    padding : 0px 5px;
    .treemenu li {
    display : inline;
    .treemenu a {
    display : block;
    padding-left : 0px;
    text-decoration : none;
    .treemenu .treeopen {
    background-image : url('../img/open.gif');
    background-repeat : no-repeat;
    background-position : left;
    .treemenu .treeclosed {
    background-image : url('../img/closed.gif');
    background-repeat : no-repeat;
    background-position : left;
    UL

    Hello all, I need some help with a left navigation menu I
    have created, you can see the code below:
    the problem I have is when I am putting a link to the UL it
    doesn't work ( probably because I have a background image in my
    CSS) i was wondering if I can do it with another way..
    css code
    .treemenu {
    margin : 0px 20px;
    padding : 10px;
    list-style : none;
    width : 200px;
    .treemenu ul {
    list-style : none;
    margin : 0px 5px;
    padding : 0px 5px;
    .treemenu li {
    display : inline;
    .treemenu a {
    display : block;
    padding-left : 0px;
    text-decoration : none;
    .treemenu .treeopen {
    background-image : url('../img/open.gif');
    background-repeat : no-repeat;
    background-position : left;
    .treemenu .treeclosed {
    background-image : url('../img/closed.gif');
    background-repeat : no-repeat;
    background-position : left;
    UL

  • I need help with circular linked list

    Hi,
    I need help with my code. when I run it I only get the 3 showing and this is what Im supposed to ouput
    -> 9 -> 3 -> 7
    empty false
    9
    empty false
    3
    -> 7
    empty false
    Can someone take a look at it and tell me what I'm doing wrong. I could nto figure it out.
    Thanks.This is my code
    / A circular linked list class with a dummy tail
    public class CLL{
         CLLNode tail;
         public CLL( ){
              tail = new CLLNode(0,null); // node to be dummy tail
              tail.next = tail;
         public String toString( ){
         // fill this in. It should print in a format like
         // -> 3 -> 5 -> 7
    if(tail==null)return "( )";
    CLLNode temp = tail.next;
    String retval = "-> ";
         for(int i = 0; i < -999; i++)
    do{
    retval = (retval + temp.toString() + " ");
    temp = temp.next;
    }while(temp!=tail.next);
    retval+= "";}
    return retval;
         public boolean isEmpty( ){
         // fill in here
         if(tail.next == null)
              return true;
         else{
         return false;
         // insert Token tok at end of list. Old dummy becomes last real node
         // and new dummy created
         public void addAtTail(int num){
         // fill in here
         if (tail == null)
                   tail.data = num;
              else
                   CLLNode n = new CLLNode(num, null);
                   n.next = tail.next;
                   tail.next = n;
                   tail = n;
         public void addAtHead(int num){
         // fill in here
         if(tail == null)
              CLLNode l = new CLLNode(num, null);
              l.next = tail;
              tail =l;
         if(tail!=null)
              CLLNode l = new CLLNode(num, null);
              tail.next = l;
              l.next = tail;
              tail = l;
         public int removeHead( ){
         // fill in here
         int num;
         if(tail.next!= null)
              tail = tail.next.next;
              //removeHead(tail.next);
              tail.next.next = tail.next;
         return tail.next.data;
         public static void main(String args[ ]){
              CLL cll = new CLL ( );
              cll.addAtTail(9);
              cll.addAtTail(3);
              cll.addAtTail(7);
              System.out.println(cll);          
              System.out.println("empty " + cll.isEmpty( ));
              System.out.println(cll.removeHead( ));          
              System.out.println("empty " + cll.isEmpty( ));
              System.out.println(cll.removeHead( ));          
              System.out.println(cll);          
              System.out.println("empty " + cll.isEmpty( ));
    class CLLNode{
         int data;
         CLLNode next;
         public CLLNode(int dta, CLLNode nxt){
              data = dta;
              next = nxt;
    }

    I'm not going thru all the code to just "fix it for you". But I do see one glaringly obvious mistake:
    for(int i = 0; i < -999; i++)That says:
    1) Initialize i to 0
    2) while i is less than -999, do something
    Since it is initially 0, it will never enter that loop body.

  • Need help with drop down list in parameters

    Hi All,
    I have the following data set:
    DEPT1     DEPT2     DEPT3 DEPT4
    Commissioner's Office     Finance     Accounting     Accounts Payable
    Commissioner's Office     Finance     Accounting     Fiscal Analysis & Repo
    Commissioner's Office     Finance     Accounting     
    Commissioner's Office     Planning,Asset Mgt     Asset Management     Inventory & Tracking
    Commissioner's Office     Planning,Asset Mgt     Asset Management     Mobility & Congestion
    Commissioner's Office     Planning,Asset Mgt     Asset Management     Roadway Safety
    Commissioner's Office     Planning,Asset Mgt     Asset Management     
    Commissioner's Office     DesignProj Mgt & Tec     Bridge Dsgn Insp Hyd     
    In plus i have four parameters with searchlight options, the problem is when i select "Finance" from DEPT2 and in the next selection level i'm seeing all the departments "Accounting,Asset Management and Bridge Dsgn Insp Hyd" insted of just "Accounting". What i want is if i select a department in DEPT2, in the next drop down list(DEPT3) i want to see only the departement corresponding to the one i selected in dept2. Please need help.
    Thanks

    Hi
    First of all you need to be using Discoverer 10g or 11g Plus not 9.0.4. Assuming you have the right version you need to present the parameters in the correct order. You can change the order on the parameters screen by selecting Tools | Parameters from the toolbar. You then use the Move Up and Move Down buttons to place them in the right order so that DEPT1 is offered first, followed by DEPT2, then DEPT3 and then DEPT4.
    Next, you need to check the radion button on the bottom of the right-hand side that allows linking of parameters then you make DEPT2 dependent upon DEPT1, with DEPT3 dependent upon DEPT2 and so on.
    While this works without hierarchies it works best when you have a hierarchy in place and even better when there is a composite index on the 4 items.
    Best wishes
    Michael

  • Help with "Sort Artist" please

    Hi all
    What I'm trying to do is use iTunes to make it so that tracks that are by different artists appear under the same artist when I go through the "Artist" field on my iPod Touch.
    For example, I've got songs that are by Prince & the Revolution, songs that are by Prince & the New Power Generation, songs that are by Prince on his own, and songs that are by O(+>. I want iTunes to know that they are by different artists, but I want them to all appear under Prince in the alphabetical list on my iPod. Am I explaining this right?
    So, when I look at my iPod, I go to Prince, and everything by all those other "artists" are under that name, even though the iPod still knows they are credited differently.
    I thought the "Album Artist" field would do it, like you use for Various Artist albums. But the "Album Artist" field doesn't even appear as an option on my iPod screen, only in iTunes. So I tried the "Sort Artist" field, which put all the various versions of Prince together in the list but still listed them separately.
    I realize I could simplify my own life by just making the basic "Artist" field all the same, which would remove the problem. But that's not strictly accurate, is it? The NPG aren't the Revolution, and I should be able to credit them differently. But I also want, for convenience's sake, to be able to shuffle around all the various versions of Prince all together without having to create a playlist to do it.
    Assuming any of that makes sense, does anybody have any advice?
    thanks
    lvsxy808

    > No I cant thats why I am doing a course in it at the moment,
    I said, then at the end. So if mlk can't read, then you can't program. I also posted a smiley to emphasize it was more of a cynical remark of me.
    > I was not looking for someone to do my
    homework I had a question regarding a sorting
    problem.
    I'm sure you aren't, but I don't see a question in there. I can only see a bunch of lines without comments. You also didn't provide some sample in/output, but only wrote "I want to do Y, but are only able to do X...".
    I have told you this before:
    Try to look at your own post as if you had never seen it, and are not familiar with the exact assignment. Would you be able to post a meaningfull answer to your "question"? I don't think so.
    In previous posts you were given numerous links to basic tutorials (including sorting tutorials) which you apparently didn't read. That's too bad.
    > Im sure everyone wont be as ignorant
    What do you mean by that?

  • Help with sort on OLAP cubes

    Hi,
    I have a requirement to provide a D4O report where one of the cube measures is sorted desc. As I have explored on discoverer, I don't think my problem will be solved on the report side.
    Can I create a sort on the cube but this sort will not affect the cube's default sort? This a new report requirement on an existing cubes and I was thinking if I can have a sort in the cube where it will not affect any of the existing reports. Do I need to create a new measure for this? If so, how will I populate the measure?
    Example:
    Dimensions : TIME, GEOGRAPHY, CUSTOMER
    Cube Measures: Amount1, Amount2, TotalAmount
    Desired output on the report:
    Crosstab report where the rows are : Customer , Amount1, Amount2, TotalAmount
    PageItem: Time and Geography
    Sort on Total Amount desc.
    How to populate a new sort-measure such that it will be for all hierarchies of the dimensions in the cube?
    Any help will really be appreciated.
    Cheers,
    Gina

    Hi Gina,
    This can in fact be done using Discoverer, within the Query Builder. But you cannot sort the cube, this does not make sense from an OLAP perspective. You need to define a sort for each of your dimensions.
    In query builder, in the "Selected" panel on the right side of the dimensions tab there is a "Sort" button at the bottom of the selected list. Clicking on this button will launch the sort dialog. Click on the "Sort Members By:" radio button to enable the buttons on the right side of the dialog, then click on the "Add" button.
    In the "Sort By" pulldown, you will find a list showing the available sort options, such as: name, attribute values, measures included in the query, and a "more" option that will allow you to select any measure not currently included in the query. If you select the requiered measure "Total Amount", set the "Direction" to descending then the last step is to determine the QDR for the sort - that is the dimension selections for the other dimensions that make up the measure "Total Amount". For any dimensions that are on the page edge, or where the dimension is to the left of the dimension being sorted when more than one dimension is in the row edge, the QDR selector will allow a "For Each" selection which will make the sort dynamic for those dimensions. This "For Each" feature seems to be nicely hidden and not really covered in any of the documentation but is a very powerful feature and can be used in query filters as well, such as Top 10, Bottom 10 etc. In this case, using it in a sort, as the user selects a new page member, the sort will be re-applied. For other dimensions, such as the column edge you will have to pick a specific dimension member.
    You will need to repeat this process on each of your dimensions - Time, Geography and Customer (as an FYI, I would expect Customer and Geography to be the same dimension?). When you apply the sort, it will adhere to the hierarchy for your dimension, so as your drill down the members at each level will be correctly sorted using the measure "Total Amount".
    Hope this helps.
    Keith Laker
    Oracle EMEA Consulting
    OLAP Blog: http://oracleOLAP.blogspot.com/
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    DM Blog: http://oracledmt.blogspot.com/
    OWB Blog : http://blogs.oracle.com/warehousebuilder/
    OWB Wiki : http://wiki.oracle.com/page/Oracle+Warehouse+Builder
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • Help with sort please

    I have my first java assignment to hand in on monday and im having a few problems and was wondering if someone could help me solve the problem.
    I have to display the most frequently occuring double of a set of dice the problem is that I seem to be only able to display the amount of times it was rolled rather than the actually double.
    I would really appreciate some help in this matter.
    Thanks
    import cs1.*;
    import java.util.*;
    public class TestDice
              public static void p(String s)
                   System.out.print(s);
              public static int sort(int[] dubs)
                     int x,y,max=0,temp;
                     for (x = 0; x < 6 ; x++)
                       max = x;
                        for (y = x+1; y < 6; y++)
                              if (dubs[y] > dubs[max])
                                max = y;
                        temp = dubs[x];
                        dubs[x] = dubs[max];
                        dubs[max] = temp;                 
                   return max;
              public static void main(String[] args)
               PairOfDie dice; 
               int noRolls,x,doubles=0;
                 int [] dubs;
                 dice = new PairOfDie();                   
               dubs = new int[6];
                 p("\n\n");
               for (noRolls=0; noRolls < 1000; noRolls++)
                   dice.roll();
                   p("" + dice.getDice1() + "," + dice.getDice2() + "   ");
                      for (x=0;x<6;x++)
                           if(dice.getDice1() == (x+1) && dice.getDice2() == (x+1))
                                 dubs[x]++;
                 occurences(dubs);              
                 p("\n\n\n(B) Display the most frequently occuring double or doubles = " +  dubs[0]);
                 histogram(dubs);
            }//End of Main
              public static void occurences(int[] dubs)
                      int x,max;
                    p("\n\n(A) Count and display the occurences of each of the doubles");
                      p("\n\n Double\tOccurences\n ------\t----------\n");
                      for (x=0;x<6;x++)
                          p("\n   " + (x+1) +" \t\t    " + dubs[x]);
              }//End of Occurences
              public static void histogram (int [] dubs)
                   int y,x;
                   p("\n\n\n(C) Draw a Histogram of the occurences of each of the doubles");
                   p("\n\n Double\t    Occurences\n ------\t    ----------\n");
                   for(y=0;y<6;y++)
                        p("\n   " + (y+1) + "\t\t    ");
                        for (x=1; x<=dubs[y];x++)
                             p("*");
                   p("\n\n");
              }//End of Histogram
    }//End of Class

    > No I cant thats why I am doing a course in it at the moment,
    I said, then at the end. So if mlk can't read, then you can't program. I also posted a smiley to emphasize it was more of a cynical remark of me.
    > I was not looking for someone to do my
    homework I had a question regarding a sorting
    problem.
    I'm sure you aren't, but I don't see a question in there. I can only see a bunch of lines without comments. You also didn't provide some sample in/output, but only wrote "I want to do Y, but are only able to do X...".
    I have told you this before:
    Try to look at your own post as if you had never seen it, and are not familiar with the exact assignment. Would you be able to post a meaningfull answer to your "question"? I don't think so.
    In previous posts you were given numerous links to basic tutorials (including sorting tutorials) which you apparently didn't read. That's too bad.
    > Im sure everyone wont be as ignorant
    What do you mean by that?

  • Help with Sort sequence and reset preferences

    Hi,
    I have checked the "sort" checkboxes and the "sort sequence" in my first 5 columns of the sql report. The sequence are straight 1,2,3,4,5.
    I have also create two buttons. The first one that will trigger a pl/sql that would execute RESET_USER_PREFERENCES built-in package, and a second button that just submit. The page submit to itself by default.
    It appears that the Reset Preferences does not follow the "sort sequences". Take a look at: http://htmldb.oracle.com/pls/otn/f?p=15031:2:
    Check what happen with the second column OBJECT NAME: I expect to see CUSTOM_AUTH first and then CUSTOM_HASH second once you Reset User Preferences. Interesting is that when I just press the refresh button, then i get what I want, but i think that is just coincidence as there is not guarantee that the data are going to be displayed in that order once you start deleting and inserting in the middle.
    Any help in order to understand the "sort sequences" concept is appreciated.
    Thanks

    Anybody?

  • Help with copying SP List data to SQL Server

    I need to read some data from a SP list and copy it to a table in SQL Server.
    Visual Studio  BIDS 2013. SharePoint 2010. Planning to migrate to 2013 this year. I tried to use the
    SP Data source/destination adapter with SSIS, but learned that I can't with Visual Studio 2013. I'm really looking for any way to read data from a SP list and import it into a SQL database (SQL 2014). Haven't found anything online that has worked for me the
    way they say it should (such as OData connection in SSIS). Maybe it's version issues.
    Does anyone have a solid step-by step to do this? I am not a C# developer...

    Hi,
    According to your description, my understanding is that you want to read SharePoint list data and copy it to SQL Server table.
    Hatim's option is a way to achieve it manually.
    If you want to do it automatically, I suggest you can create a console application to read SharePoint list using CAML Query and Client Object Model, Then use SqlConnection object to connect database, then you can insert record using SqlCommand object.
    Here are some detailed code demos for your reference:
    http://www.codeproject.com/Articles/399156/SharePoint-Client-Object-Model-Introduction
    https://msdn.microsoft.com/en-us/library/ms233812.aspx
    Thanks
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jerry Guo
    TechNet Community Support

  • Help with Library link lists ..

    Hi ,
    I am working with Scott Mazur on a incorporating 8.1.7 in our code bace for our next product release. I am having problems with defining the library link list needed for builds. In the documentation it makes referance to $ORACLE_HOME/precomp/demo/proc which I cannot find. I have installed the 8.1.7 on 3 platforms (Solaris, AIX and NT ) and none of the system have this information. Can you please point me to where I may find some help in this area. We are in a critical path right now so I would appreciate any help you could give me. The sooner the better.
    Thank you for your time and help ,
    Cheryl Pollock
    Lockheed Martin Global Telecommunications .
    Formtek
    Pittsburgh office .
    (412) 937-4970
    null

    You actually shouldn't try to get the library link lists directly. Rather, you should use the $ORACLE_HOME/rdbms/demo/demo_rdbms.mk makefile like this:
    make -f $ORACLE_HOME/rdbms/demo/demo_rdbms.mk build EXE=yourexecutable OBJS="object list"
    where yourexecutable is the name for your executable and the OBJS= includes a quoted list of all your object and library files.
    null

  • Recommendations/help with  'Add Contact List'

    hello,
    i've run into a bit of a problem, need some expert advice
    before i lose my mind :)...
    i am trying to allow registered users to have a friend list.
    my problems:
    1) user is viewing their friend list and only their friends
    user_id shows up rather than their friends username...
    Here is the SQL i have as of now:
    SELECT userTable.user_id, userTable.username,
    friendTable.user_id, friendTable.them_user_id
    FROM userTable JOIN friendTable ON userTable.user_id =
    friendTable.user_id
    WHERE userTable.username = var1($_SESSION['MM_Username']
    2) when users click 'add friend' button (which is an insert
    form with 3 hidden fields, user_id, friend_id, MM_insertform), my
    code doesn't check if they are already friends with that person...
    not a huge deal, but i'd like to have this feature if i can...
    i'd be thankful for any advice, help, etc... thank you!

    > 1) user is viewing their friend list and only their
    friends user_id =
    shows up=20
    > rather than their friends username...
    > Here is the SQL i have as of now:
    > SELECT userTable.user_id, userTable.username,
    friendTable.user_id,=20
    > friendTable.them_user_id
    > FROM userTable JOIN friendTable ON userTable.user_id =3D
    =
    friendTable.user_id
    > WHERE userTable.username =3D
    var1($_SESSION['MM_Username']
    what happens if you include friendTable.username in the SQL
    statement?
    >=20
    > 2) when users click 'add friend' button (which is an
    insert form with =
    3 hidden=20
    > fields, user_id, friend_id, MM_insertform), my code
    doesn't check if =
    they are=20
    > already friends with that person... not a huge deal, but
    i'd like to =
    have this=20
    > feature if i can...
    There is a built in server behavior for Check Username that
    will check =
    for an existing user name. You might be able to modify that
    to meet =
    your needs. Keep in mind that modified code will work but
    disappear =
    from the Bindings/Server Behaviors panel.
    --=20
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: Dreamweaver CS3: The Missing Manual,
    DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide
    Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web =
    Development

  • Help with an access list please

    Hi guys, i have an access list applied inbound to an interface on a router at the edge of our LAN.Our LAN subnet is 10.10.x.x and the incoming subnet is 10.13.x.x both with a 16 bit mask. The ACL is applied inbound to the interface that the the 10.13.x.x subnet come in on. I want to only allow them to go to our internal webserver to run a corporate web app, resolve dns for this web server with our dns servers, and have full access to a server on the other side of our WAN for another 32 bit app they are running. Here is my ACL:(you will notice i have also configured a single ip full access in for us to use when we are on site)
    access-list 101 permit ip 10.10.0.0 0.0.255.255 any
    access-list 101 permit ip host 10.13.1.254 any
    access-list 101 permit udp 10.13.0.0 0.0.255.255 host 10.10.10.1 eq domain
    access-list 101 permit udp 10.13.0.0 0.0.255.255 host 10.10.10.2 eq domain
    access-list 101 permit tcp 10.13.0.0 0.0.255.255 host 10.10.10.2 eq domain
    access-list 101 permit tcp 10.13.0.0 0.0.255.255 host 10.10.10.1 eq domain
    access-list 101 permit ip 10.13.0.0 0.0.255.255 host 192.168.9.1
    access-list 101 permit tcp 10.13.0.0 0.0.255.255 host 10.10.10.24 eq www
    access-list 101 deny ip 10.13.0.0 0.0.255.255 10.0.0.0 0.255.255.255
    access-list 101 deny ip 10.13.0.0 0.0.255.255 172.16.100.0 0.0.0.255
    access-list 101 deny ip any any
    From the 10.13.x.x network this works like a charm but here is the key: i want to be able to remote admin their machines but cant. Even though the ACL is applied inbound only i cant get to their subnet, even with the first permit statement i still cant get to their subnet. I am assuming its allowing me in but the problem is lying with the return traffic. Is their a way for me to deny them access as in the list but for me to remote their subnet?
    Any help you could offer would be appreciated.

    I agree with you that the first line in the access list is incorrect. Coming in that interface the source address should never be 10.10.0.0. But if he follows your first suggestion then any IP packet from 10.13.anything to anything will be permitted and none of the other statements in the access list will have any effect.
    And I have a serious issue with what he appears to suggest which is that he will take his laptop (with a 10.10.x.x address), connect it into a remote subnet, and expect it to work. Unless he has IP mobility configured, he may be able to send packets out, but responses to 10.10.x.x will be sent to the 10.10.0.0 subnet and will not get to his laptop. He needs to rething this logic.
    I do agree with your second suggestion that:
    access-list 101 permit tcp 10.13.0.0 0.0.255.255 eq 5900 10.10.0.0 0.0.255.255
    should allow the remote administration to work (assuming that 5900 is the correct port and assuming that it uses tcp not udp).
    HTH
    Rick

  • I need help with drop down lists

    I have a form that does not have lots of space and I want to use drop down lists to fill in specific information that describes site conditions.  The problem I have is that the drop down list is only set up for a single line and that is not enough space for what I want in the drop down list.  In other words, I have items that are several sentences.   I have seen some descriptions of creating a drop down list that then fills in a text box that has multiple lines.  Unfortunately, that is not an ideal solution for me.  I just want the drop down list to select a single phrase.  Here is an example of what I want to be able to select in the drop down.
    The water heater spilled flue gases in excess of 5 minutes under worst case conditions.  The combusiton testing was completed with in 30 days of the invoice submittal. 
    The form does not allow me to create a field that goes all the way across the page so it needs to look something like this:
    The water heater spilled flue gases in excess of 5 minutes
    under worst case conditions.  The combusiton testing was
    completed with in 30 days of the invoice submittal.
    Any help is greatly appriciated.

    Thanks for responding.
    I have three items that are very similar in length and text for each drop down.  There are 9 drop downs right now.  I am using the drop downs to fill in a form that is used by several people and I want to keep things as simple as possible.  Associated with the drop down already is a check box.  When the check box is checked, it fills in a text box with a score (1 point, 5 points, etc).  That score then tallys for a total with all the other scores in another text box.  Using a drop box to fill in a text box is just getting to busy and than I have to distinguish each drop down item so it is clear which text you are selecting.

  • Help with "sorting by composer"

    Hello to all of you,
    I'm writing this subject to get some help. I'm trying to sort my music by composers on iTunes 11. So, I write down the "Composer" like "Johann Sebastian Bach", and everything is fine on the composer view : I have "Johann Sebastian Bach" :
    Then I'm going to the "Sort by composer" Field, and I write "Bach" for all the Johan Sebastian Bach Music. I'm closing iTunes and reopen it (or else, composer view is not refreshed - perhaps there is a trick to force refreshing ?) and TADAM, my Bach entry becomes two :
    I've tried to change the view with Option+J, but nothing works, I've got two Johann Sebastian Bach, and two Bach/Busoni.
    So I'm cleaning the "sort by composer" field, and the two Johan Sebastian Bach becomes one entry again.
    It does the same with a lot of others composers. Don't know how to get the things right...
    Could someone help me ?
    Thanks in advance.

    Hi,
    Try adding Bach, Bach Busoni, Bach Hess etc in sort by composer field. Does this help.
    Jim

Maybe you are looking for

  • I have installed an application on my iPad but Can not open it ?

    I Have an iPad mini. I have installed copilot  and Skype for iPad from the apps store but nothing happen when I click on the open button. What should I do ?

  • Airport prevents sleep

    I have a powermac G5 1.8ghz machine which will not sleep when using Airport networking. When I try to make tha machine sleep, the screen go dark for a moment, the hard drive seems to spin down and then within seconds, the fans all cycle on and the sc

  • BSP - Webdocuments

    <b>Webdocument is a BSP</b>,which is used to retrieve data from <b>SAP - DMS(Document Management System) which comes under SAP - PLM(Product Lifecycle Management).</b> Can anyone Help me out in how to call & activate the webdocuments. Awaiting your r

  • Why don't my library images show up in the develop mode?  There is a big blue space with an X through it.

    Why don't my library images show up in the develop module?  There is a big blue space with an X through it.

  • Oracle IAS 9i Client on Windows 7

    Hi, Is it can run correctly on Windows 7? Currently i use this configuration : - IAS Version => 9.0.4.0.0 - DB Version => Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit on Linux Redhat Enterprise 2.6.9-55.ELlargesmp - JInitiator ve