Sorting Issue Help Needed Badly

*+{color:#000000}*Hello All,*+*
I am having a small piece of code in my project that retrieves file names from a directory applying filename filter. Well i am happening to get them fine in sorted order. But when i implement that program in other machine it happens that all the file names are in unsorted order. I applied several sorting techniques Collator, SortedSet etc. no luck+</stro
Any could help me on this. By the way my development machine has JDK 1.6 while implementing system has only JRE1.5 which comes embedded with jBase. Consider i have nothing to do with jBase thats another team's project.{color}+*
FilenameFilter fileNameFilter = new SEPITFilenameFilter(".JPG");
String slideURLs[] = slideBase.list(fileNameFilter);
slideURLs = Storage.sortStringsInAscending(slideURLs);
public static String[] sortStringsInAscending(String[] array)
Collator collator = Collator.getInstance();
CollationKey collationKey[] = new CollationKey[array.length];
for(int k=0; k<array.length; k++)
collationKey[k] = collator.getCollationKey(array[k].trim());
int i=0;
boolean swapped = true;
while(swapped)
swapped = false;
i++;
for(int j=0;j<(array.length-i);j++)
int comparator = collationKey[j].compareTo(collationKey[j+1]);
if(comparator > 0)
String tempString = array[j];
array[j] = array[j+1];
array[j+1] = tempString;
swapped = true;
return array;
}

Well, if you simply want to sort the file names themselves, build a List and then call Collections.sort(). String already has a comparator built-in that will sort them ascending for you.
If you want to customize things, write a Comparator. Then call Collections.sort().
- Saish

Similar Messages

  • SQL Query Sorting Order issue - Help needed

    Hi All,
    I am using the following query in my project to display the records in the grid.
    /* Formatted on 04-09-2013 PM 8:01:51 (QP5 v5.149.1003.31008) */
      SELECT eol,
             status_msg,
             relation,
             building_name,
             device_id id,
             CEIL (SYSDATE - updated_date) duration,
             lab_id,
             aisle_id,
             aisle_location_id,
             ip_address,
             port,
             slot_num,
             hostname,
             pid,
             description,
             sl_num,
             eitms_code,
             status,
             dnd_flag,
             aisle,
             aisle_location,
             spname,
             os_version,
             user_id,
             TO_CHAR (updated_date, 'YYYY-MM-DD HH24:MI:SS') updated_date,
             isterm_svr,
             net_type,
             DEVICE_GROUP_REF,
             cmd_id_ref,
             LISTAGG (TESTBED_ID, ',') WITHIN GROUP (ORDER BY TESTBED_ID)
                AS testbeds_id_ref,
             LISTAGG (NAME, ',') WITHIN GROUP (ORDER BY TESTBED_ID)
                AS testbeds_names,
             spname || '-' || ip_address || '-' || port AS child_asset_group
        FROM DEVICE_TESTBED_VW
       WHERE lab_id IN
                ('7099849',
                 '10769617',
                 '4258712',
                 '10513562',
                 '10515074',
                 '5882676',
                 '8330925')
    GROUP BY eol,
             status_msg,
             relation,
             device_id,
             lab_id,
             aisle_id,
             aisle_location_id,
             ip_address,
             port,
             slot_num,
             hostname,
             pid,
             description,
             sl_num,
             eitms_code,
             status,
             dnd_flag,
             aisle,
             aisle_location,
             spname,
             os_version,
             user_id,
             updated_date,
             isterm_svr,
             net_type,
             DEVICE_GROUP_REF,
             cmd_id_ref,
             building_name
    ORDER BY building_name ASC,
             LOWER (child_asset_group) ASC,
             LOWER (relation) DESC
    The problem is , if any one sorting with any column  , the order is not correct
    In this below code , i have done sorting by port . But the result data order is not correct .
    /* Formatted on 04-09-2013 PM 8:07:02 (QP5 v5.149.1003.31008) */
      SELECT eol,
             status_msg,
             relation,
             building_name,
             device_id id,
             CEIL (SYSDATE - updated_date) duration,
             lab_id,
             aisle_id,
             aisle_location_id,
             ip_address,
             port,
             slot_num,
             hostname,
             pid,
             description,
             sl_num,
             eitms_code,
             status,
             dnd_flag,
             aisle,
             aisle_location,
             spname,
             os_version,
             user_id,
             TO_CHAR (updated_date, 'YYYY-MM-DD HH24:MI:SS') updated_date,
             isterm_svr,
             net_type,
             DEVICE_GROUP_REF,
             cmd_id_ref,
             LISTAGG (TESTBED_ID, ',') WITHIN GROUP (ORDER BY TESTBED_ID)
                AS testbeds_id_ref,
             LISTAGG (NAME, ',') WITHIN GROUP (ORDER BY TESTBED_ID)
                AS testbeds_names,
             spname || '-' || ip_address || '-' || port AS child_asset_group
        FROM DEVICE_TESTBED_VW
       WHERE lab_id IN
                ('7099849',
                 '10769617',
                 '4258712',
                 '10513562',
                 '10515074',
                 '5882676',
                 '8330925')
    GROUP BY eol,
             status_msg,
             relation,
             device_id,
             lab_id,
             aisle_id,
             aisle_location_id,
             ip_address,
             port,
             slot_num,
             hostname,
             pid,
             description,
             sl_num,
             eitms_code,
             status,
             dnd_flag,
             aisle,
             aisle_location,
             spname,
             os_version,
             user_id,
             updated_date,
             isterm_svr,
             net_type,
             DEVICE_GROUP_REF,
             cmd_id_ref,
             building_name
    ORDER BY PORT ASC
    Can some one help me to fix this issue?

    Hi,
    Sorry, it's not clear what you want.
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved, so that the people who want to help you can re-create the problem and test their ideas.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Simplify the problem as much as possible. For example, if you really need to GROUP BY 28 columns, post a problem where you need to GROUP BY only 2 or 3 columns.  (Just explain that you really have 28, so people will give solutions that are sure to work for all 28).)
    Always say which version of Oracle you're using (for example, 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Help needed badly for selection sort

    I posted this on the other forum but haven't gotten a reply. I have a class that compares the zip codes of a file that is read into the code and store as objects. Now I have to sort the information by the zip codes this is what I have so far and I do not know what I am doing wrong with the selection sort. This is the first time I am doing selection sort.
    Here is my .txt
    10
    Dillin Jake York PA 17409
    Valdir John Chicago IL 98098
    Morphy Bob Harrisburg PA 73829
    Spears Johnathan Chicago IL 09182
    Simpson Bloo Los Angeles CA 94840
    Griffin Taylor York IL 49283
    Cartmen Eric Philadelphia PA 28192
    Connaly Teds Springfield IL 12930
    Marsh Stan Miami FL 48392
    William Thomas Reno NV 39029
    and this is the code:
    import java.util.*;
    import java.io.*;
    import java.util.Scanner.*;
    public class TestCustomer6 {
      public static void main (String[] args) throws FileNotFoundException {
        Scanner scan = new Scanner (new File ("customerData.txt"));
        int numLines = scan.nextInt();
           Customer2[] customer;
         customer = new Customer2[40];
        for (int i = 0; i < numLines; i++) {
          String fName = scan.next();
          String lName = scan.next();
          String city = scan.next();
          String state = scan.next();
          int zip= scan.nextInt();
         Customer2 newObj = new Customer2(fName,lName,city,state,zip);
        customer=newObj;
    public static void selectionSort(int[] array)
    {int count;
       for (count = 0; count < array.length; count++)
          int indexOfMin = findMinimum (array, count);
           swap (array, count, indexOfMin );
         public static int findMinimum (int[] array, int startIndex)
    {int mycount;
         int indexOfMin = startIndex;
           for(mycount = startIndex + 1; mycount < array.length; mycount++)
              if (array[mycount] < array[indexOfMin]
    indexOfMin = mycount;
    return indexOfMin;
         public static void swap (int[] array, int preIndex, int nexIndex)
    double temp = array[preIndex];
    array[nexIndex] = array[preIndex];
    array[nexIndex] = temp;
    the class:
    import javax.swing.*;
    class Customer2{
        public static final int FNAME = 0;
        public static final int ZIP = 1;
        private static final int LESS = -1;
        private static final int EQUAL = 0;
        private static final int MORE  = 1;
        private static int compareAttribute;
         private String firstName;
         private String lastName;
         private String city;
         private String state;
         private int zip;
        static {
           compareAttribute = FNAME;
         public Customer2(){
         firstName = " ";
         lastName = " ";
         city = " ";
         state = " ";
         zip = 0;
         public Customer2(String f, String l, String c, String s, int z){
              this.firstName = f;
              this.lastName = l;
              this.city = c;
              this.state = s;
              this.zip = z;
              System.out.println(this.toString());
        public static void setCompareAttribute( int attribute ) {
            compareAttribute = attribute;
        public int compareTo( Customer customer, int attribute ) {
            int comparisonResult;
            if ( attribute == ZIP ) {
                int p2zip = customer.getZip( );
                if (this.zip < p2zip) {
                    comparisonResult = LESS;
                } else if (this.zip == p2zip) {
                    comparisonResult = EQUAL;
                } else {
                    assert this.zip > p2zip;
                    comparisonResult = MORE;
            } else { //compare the name using the String class�s
                    //compareTo method
                String    p2fname = customer.getFirst( );
                comparisonResult = this.firstName.compareTo(p2fname);
            return comparisonResult;
        public int compareTo( Customer customer ) {
            return compareTo(customer, compareAttribute);
         public String getFirst(){
              return firstName;
         public String getLast(){
              return lastName;
         public String getCity(){
              return city;
         public String getState(){
              return state;
         public int getZip(){
              return zip;
         public String toString(){
              return  getFirst() + ",  " + getLast() + "     " + getCity() + "     "
              + getState() + "     " + getZip();

    1) Your code doesn't compile;
    2) You don't call your selection sort method anywhere;
    3) Your selection sort attempts to sort an int array which doesn't make sense;
    4) You don't use the comparison methods defined in your Customer2 class;
    5) I think that you've just copied/pasted several code fragments;
    6) Your indentation style is highly inconsistent (also see 5).
    kind regards,
    Jos

  • Urgent Help needed - BADI's in Infospoke

    Hi,
    My Scenario:
    I am pulling data from master data using infospoke into Application server. I need some kind of easy transformations during this stage.
    I got ZSTATE field in my data and I need to restrict my output to only certain states(Ex: NJ,CA, TX , MNetc). Since I can't give those selection conditions in infospoke I need to try BADI. I created a BADI and have target and source structure. Can anyone write me small code for this to eliminate other states and allow NJ , CA, MN, TX etc.
    Source structure: /BIC/CYZZTEST
    target Structure: /BIC/CZZZTEST
    infospoke: ZZTEST
    Field: Zstate
    Class:ZCL_IM_ZZTEST
    Method:IF_EX_OPENHUB_TRANSFORM~TRANSFORM
    Full points to helpful answer!!
    Anil.

    The problem is cross user too - I have two user files on the machine and the same thing happens regardless of which user file I'm working in.
    That points to s 'system-wide' issue.
    Try resetting your SMC.
    Resetting the System Management Controller >>
    Also, you could try booting from your install DVD and see if it does it there. If it does not, it's more than likely a software issue and an Archive and Install should fix it.
    Mac OS X: About the Archive and Install feature >>
    -Bmer
    Mac Owners Support Group - Join us @ MacOSG.com
      Mac611 Mobile Mac Support - about.Mac611.com
       iTunes:MacOSG Podcast | YouTube.MacOSG.com
                       An Apple User Group 
    Have an iPhone or iPod touch? Enter Mac611.com in Safari on it for 'mobile Mac support.'

  • DVR/STB/Remote issues - Help Needed

    New to Verizon FIOS (Installed about 2 weeks ago).  Have a few issues. Any help is appreciated
    1) When im on the Home Media DVR and i fast forward through a program, when i stop or hit play, an extremely loud beep that lasts for 1-3 seconds comes from the speakers.  How do i get this to stop, what is causing it, etc?
    2) When i fast forward from one of the STB (regular HD box), if i hit FF once, it fast forwards pretty slow, if i hit it again, it goes somewhat faster.  The problem is.  When i hit it that 2nd time, it seems that 70-80% of the time, it jumps me back to an early portion of the program.  I.E.  Was watching the 2 hour episode of "24", was one hour and 20 min in, got to commercials, i hit FF twice and it jumped me back to 23 minutes in.  Tried again at next commercial break and it jumped me back to 11 minutes in.  What is the deal here?  How do i fix it?
    3) Are there only 2 fast forward speeds on STB?  I came from Brighthouse that had 4 speeds, im a little disappointed with only 2 speeds.  Can anyone verify?
    4) The remotes seem to take 2 seconds or so to register when performing any function other than changing channels.  When i hit FF or REW, DVR or Last, it seems to take a few seconds to kick in.  Is this a known issue, or possibly my box or remotes?
    Thanks for any and all help

    Sorry the ff speeds are the same. On the main MR-DVR there are 3 ff speeds, where the remote STB has 2 ff speeds. I think they did that because how the remote system works, it has slower responses being remote. But with the update you will not need to worry about the ff, because you will not get the hub error. I was one of the first people to get the update and I have not seen the hub error yet.
    As far as a time frame I don't believe there is any thing public about it, I think the only thing they have said is it is going to be rolled out per market, and one market a week. But nothing on the order of the markets.  

  • Ipod Touch: My Issues, help needed as fast as possible

    Well recently i got an Ipod Touch 2nd Generation for christmas, and i must say i love it. But i have got some serious problems. 1) all applications that were not standard on the itouch crash unexpectedly and the only way to rectify this issue is to download something from the app store and they work again :S. Yes that is as bizarre as it sounds. Sometimes it will work fine and i can use any of my apps whenever i like. But frequently(more frequently as time goes on) the applications dont open, i touch them they open the background for the app and they take me back to the main screen. I have tried the following: reseting the iPod, restoring it to factory settings, uninstalling apps and then re-installing and this issue is resolute. I also happen to know that some other 2nd Generation Touch owners at my school have the very same issue. I have seen some threads dotted about explaining their issues that are similar to this, meaning its fairly widespread.
    My second issue is really bugging me, i opened the itunes store for the first time on my iPod(i never get any of my music from itunes normally i detest the application.) and all of a sudden it downloaded a podcast without me telling it to. It was called Podhead: The DoorWhores Off to vegas. This is something i really do not wish to have on my iPod. So i synced it to my windows OS and tried to re-sync the iPod's podcasts with my library so that it would dissappear. But it didn't, i then tried setting it to manually putting files on my ipod and alas it doesnt show up in the podcasts sub section of the device. I tried playing the podcast and it takes me to the home screen of my ipod with the Play triangle flickering constantly in the top right of my ipod. I don't know what is going on with that but i havnt restored it to factory settings after this issue, mainly because my iPod refuses to accept that i own all of the apps i have backed up and i have no desire to manually re-download them to my ipod.
    3) That last scentence brings me nicely onto my final problem which is this: my computer tells me that i do not have the authority to put onto my ipod. Despite all of them being free and despite all of them having being backed up from my ipod.
    Any help with these issues would be much appreciated. I am in desperate need of assistance before i come to the end of my tether and resign myself to a long trip to the nearest apple store. thanks in advance

    Sanga wrote:
    1) all applications that were not standard on the itouch crash unexpectedly and the only way to rectify this issue is to download something from the app store and they work again
    Did you try to restore your iPod to factory settings and add your apps one by one to find out which app causes the crash? Try not to restore from a backup it may contain the corrupt parts you don't want to install again.
    3) That last scentence brings me nicely onto my final problem which is this: my computer tells me that i do not have the authority to put onto my ipod. Despite all of them being free and despite all of them having being backed up from my ipod.
    Deauthorize and authorize your computer in iTunes, here's how to:
    http://support.apple.com/kb/HT1420

  • Eclipse error | Help needed badly

    Hi,
    My Eclipse was working properly a couple of days back but suddenly It's stopped working and gives me an error : "workspace does not contain a main type,Do you have a public void run method"
    Now,I think the problem Is some how the jar's that I'm trying to upload aren't getting uploaded.
    I say this because a strange problem has arised and I think this might have to do with Eclipse giving the above error.
    This Is what I do to create a new java project
    -Open eclipse
    -save files to workspace
    -click on new > java project
    -Then,give the project a name and then click finish
    -after that I create a new class by right clicking on the project folder > new > class >give the class a name and then click finish.
    -after that I open workspace(thats on my desktop) click on the project folder make a new folder name It "lib" and upload the jar that I need for the project.
    -after this I go back Into eclipse and right click on the project folder and hit refresh,now I see the folder"lib" containing the jar Inside It.
    -I right click on the jar file and select "add to build path",and now theres the Issue comes In.
    I want the jar to Into the reference librarys,because the last time I got the jar In the reference library It worked.
    But this time I can't even manage to find where the reference library Is.
    so when I click on add to build path the jar Instead of appearing in the reference library (which Isn't there) just dissapears.
    I really need to fix this,because I cant test and write code until Its fixed.
    heres a snapshot of how my eclipse framework looks : [http://www.flickr.com/photos/38561743@N03/4122304046/sizes/o/]
    I tried to solve this on my own for hours and hours but It just Isn't working.
    please guys help,I need to solve this.
    Thanks,
    Edited by: Parastar on Nov 21, 2009 7:26 AM
    Edited by: Parastar on Nov 21, 2009 7:27 AM

    Parastar wrote:
    okay guys,I'v tried the eclipse forums for about 24 hours now.
    but no response,those guys are really really slow.
    please,some one here help me out.Quit begging. You've already been told this is not the place for this question. You're complaining about not getting an answer there, and begging people here to answer, as if that vindicates your decision to post here in the first place. But you haven't gotten your solution here either. Which is worse--no answer there, or a bunch of answers that don't help you here?

  • AD OID Synchronization searchfilter issue (help needed)

    Hi,
    I am trying to Synchronize AD and OID. I am running into an issues where users are being populated both in groups and users containers in OID even though I specified my
    searchfilter to put users under cn=users and groups under cn=groups. Following are the serch filters I am using and looks like it's not working. I want my users to be in cn=Users and groups in cn=Groups, but some how
    I always keep getting the users being populated in cn=groups and cn=users.
    Group filter:
    searchfilter=(|(objectclass=group)(objectclass=organizationalunit)(!(objectclass=user)(!(objectclass=computer))))
    User filter:
    searchfilter=(|(objectclass=user)(objectclass=organizationalunit)(!(objectclass=group)(!(objectclass=computer))))Following are my Attribute Rules that I have both in group and user profiles:
    AttributeRules
    # attribute rule for mapping windows organizationalunit
    ou: : :organizationalunit:ou: : organizationalunit
    objectguid: :binary:organizationalunit:orclobjectguid: : organizationalunit:bin2b64(objectguid)
    # attribute rule for mapping directory containers
    cn: : :container: cn: :orclContainer
    objectguid: :binary:container: orclobjectguid: :orclContainer:bin2b64(objectguid)
    # attribute rule for mapping directordomains
    dc: : :domain: dc: :domain
    # USER ENTRY MAPPING RULES
    # attribute rule for mapping windows LOGIN id
    sAMAccountName,userPrincipalName: : :user:orclSAMAccountName: :orclADUser:toupper(truncl(userPrincipalName,'@'))+"$"+sAMAccountname
    # attribute rule for mapping Active Directory LOGIN id
    userPrincipalName: : :user:orclUserPrincipalName: :orclADUser:userPrincipalName
    # Map the userprincipalname to the nickname attr by default
    userPrincipalName: : :user:uid: :inetorgperson:userPrincipalName
    # Map the SamAccountName to the nickname attr if required
    # If this rule is enabled, userprincipalname rule needs to be disabled
    #sAMAccountName: : :user:uid: :inetorgperson
    # Assign the userprincipalname to Kerberaos principalname
    userPrincipalName: : :user:krbPrincipalName: :orcluserv2:trunc(userPrincipalName,'@')+'@'+toupper(truncl(userPrincipalName,'@'))
    # This rule is mapped as SAMAccountName is a mandatory attr on AD
    # and sn is mandatory on OID. sn is not mandatory on Active Directory
    SAMAccountName: : :user:sn: : person
    # attributes to map to cn - normally this is the given name
    #name: : :person:displayname: :inetorgperson
    cn: : :person:cn: :person
    # attribute rule for mapping entry and to create orclUserV2
    # There should be a mapping rule with orcluserv2 objectclass
    # without which the PORTAL may not function properly
    givenName: : :person:displayName: :orclUserV2
    # mail needs to be assigned valid value for default settings ing DAS
    userPrincipalName: : :user:mail: :inetorgperson
    mobile: : :organizationalperson:mobile: :inetorgperson
    ObjectGUID:1:binary:user:orclObjectGUID: :orclADUser:bin2b64(ObjectGUID)
    ObjectSID: :binary:user:orclObjectSID: :orclADUser:bin2b64(ObjectSID)
    # GROUP ENTRY MAPPING RULES
    #name: : :organizationalunit:ou: : organizationalunit
    #name: : :container: cn: :orclContainer
    #name: : :domain: dc: :domain
    cn: : :group:cn: :groupofuniquenames
    # displayname needs to be assigned a valid value for default settings on DAS
    SAMAccountName: : :group:displayName: :orclgroup
    # Description needs tobe assigned a valid value for default settings on DAS
    Description: : :group:Description: :orclgroup
    member: : :group:uniquemember: :groupofUniqueNames
    managedby: : :group:owner: :orclprivilegegroup
    sAMAccountName: : :group:orclSAMAccountName: :orclADGroup
    ObjectGUID: :binary:group:orclObjectGUID: :orclADGroup:bin2b64(ObjectGUID)
    ObjectSID: :binary:group:orclObjectSID: :orclADGroup:bin2b64(ObjectSID)Any help is appreciated. For example I see my userid being under cn=groups and cn=users both, even though I am user not a group.
    Thanks

    Hi WhiteSox!
    I wounder if you ever solved this?
    I guess that
    Group filter:
    searchfilter=(|(objectclass=group)(objectclass=organizationalunit)(!(objectclass=user)(!(objectclass=computer))))
    User filter:
    searchfilter=(|(objectclass=user)(objectclass=organizationalunit)(!(objectclass=group)(!(objectclass=computer))))
    in both searchfilters you do search for the organizationalunit with a logical OR. as both users and groups can have this attribute they migth end up there.
    I have to confess that I have struggled lately with the searchfilters as I am now on a AD-OID sync project.
    cu
    Andreas

  • Responsive menu issue help needed

    Need some help trouble shooting an issue I'm having with a responsive menu not working. Use this link to see the website:  http://www.sherwoodcompanies.com/home
    When I test the menu for the smallest screen width, the menu is converting to the menu button like it's supposed to, but when you click on it, it does nothing. I'm sure this is a super basic thing I keep overlooking, but I can't seem to find the issue.  Any thoughts?

    No problem. We will figure this out. I am going to have you revert back to the way it was on a couple of things. Since this is foundation, I will study their docs a little and get this the way it is supposed to be. It has to be something simple.
    Starting with the scripts.js file. revert back to the following.
    Line 88 - $menuBtn = $('#menu-toggle'),
    Line 89 - $navUl = $("#window"),
    Line 107 - $navUl.toggle();
    Foundation.css
    On Line 1148 uncomment "overflow:hidden;"
    On Line 1244 revertback to  display:block instead of display:none;
    I also want you to place your script files in the footer in this order. Also leave modernizer at the top in the header.
    <script src="/_assets/js/vendor/jquery.js"></script>
    <script src="/_assets/js/foundation.min.js"></script>
    <script src="/_assets/js/vendor/fastclick.js"></script>
    <script src="/_assets/js/scripts.js"></script>
    This is the setup that it should be, but we know it still does not work. So I will look at it from another angle.

  • FLEX issue HELP needed

    I am in need of some quick help using Flex2. We are running a
    Flex w/Coldfusion, and I have a master page (products) that opens a
    detail page (product details) when you edit or double click a
    product on the master page. The issue that is hindering our entire
    process is, that the data shows up inconsistenly in the detail
    page. Sometimes that data will show up in the detail page and
    sometimes it will be blank for the same product. I used the
    coldfusion wizard to set up the entire application. The weird thing
    is that it works fine on my development machine, but when I moved
    it to the test machine the issue started happening there. I then
    installed FLEX builder on the test machine and did a build on the
    test machine so that it would mimic my dev machine, however the
    issue continues. ANY HELP WOULD BE GREATLY APPRECIATED!!
    Thanks in advance,
    AXK

    "dzinr38" <[email protected]> wrote in
    message
    news:gif80t$59p$[email protected]..
    >I hope I can explain this correctly. I have a Flex
    prototype in which I am
    > using viewstacks. I have some components within these
    viewstacks, and
    > those
    > components also contain viewstacks. So, if I have a
    component that has 5
    > viewstacks, and you click to another component, then
    back to the component
    > with
    > 5 viewstacks, instead of going to the 1st viewstack of
    that component, it
    > takes
    > you back where it was the last time you went to that
    screen. I want to set
    > it
    > up so that each time you go to a viewstack it goes to
    the default rather
    > than
    > the last screen you were on. Does anyone know how to do
    this? I hope it
    > makes
    > sense. Thanks!
    Use an event listener to listen for a change in the ViewStack
    and then set
    the child ViewStack index to 0.
    HTH;
    Amy

  • Help Needed Badly | BlackBerry INC000025111306 | BlackBerry PlayBook - Tablet button does not work, almost stuck, copper under screen, seventh repair

    I was really Humilitated my RIM on this Ticket whcih i rasied.
    1) I bought a new tablet in last november in 2 months i had a Charger issue 
    2) They said this charger issue we cannot replace with new tablet and gave me a refurbished Tablet to me .
    3) Which also had same charging issue and they exchanged 2 more tablets and the last tablet which was given to me by RIM have a safety concern
     - 1 Small mesh of wire is poping out from the Tablet 
     - Power Button is very hard and its not that easy to press,
    So i raised the above ticket and was esclated internally with RMA as well and i got an update from the esclation agents that we will reply back in 2 Days i waited almost 3 weeks and called 2 times in this 3 weeks for an Update asking for a new tablet so that atleast once in all i can jeep a good 1 Tablet.
    But they never bothered to call me and today i called them again and RIM gave me a call back mentioning we cannot give a new tablet we can again check this tablet repair it and give it back , If we cannot repir then give a replacement new/Old tablet,
    I was wondering how can a tablet from RIM can go out without such safety concern ? How a mesh of wire can comeout of tablet so what safety norms RIM is follwoing for customer.
    AM i not humilitated? since after taking all these struggle tto get a good tablet i have been considered as bad.
    What RIM have to say for this, I am planing to take this to Legal department to follow how i can get a justice for this.

    I would have deleted this but can't find a delete?
    At any rate. got the Blackberry going again but it reset it and lost all the info, pictures and so forth.. oh well. at least it is still working.
    Thanks.

  • Help Needed Badly. Troubles with exporting video...

    Hello, I created this account pretty much just for this problem, and I'm running under a very tight timeline so please if someone could give me an answer it would be very much appreciated. I have spent 8 hours over the past two nights as well as 4 hours today reworking, trying different things and combing the online community for any others experiencing these problems and/or solutions, so I am extremely stressed and tired if you could bare with me. So here it is:
    I am editing and compiling a theatre production into a movie. I shot the show three times using a Canon HV30, imported the footage on a school computer (iMac, using iMovie '06), exported it in quicktime onto an external HD, brought it onto my computer (which, stupidly, has no firewire). The total file size was 7 hours of footage (85GB), and as a result my HD has about 300MB left on it, and has been excruciatingly slow. I have finished editing the movie, and I am now attempting to share it. All of the sources I have read tell me to share it in Media Browser, which will be accessible from iDVD. I attempted this many times, however I received multiple different error messages, only after watching it 'working' for 4 hours. Some have said that there was no virtual memory left (even after emptying the cache), some said that there wasn't enough HD space left, the exporting had encountered an error, error messages -50, -49, -48, and -47, and the most prominent one that I have been receiving told me that there had been a "parameter error" or something.
    After researching online, I found that the '-50' error messages had to do with exporting to a MSDOS HD, which made sense because I was attempting to export to my iPod (formatted in Windows). My latest efforts have been trying to export it onto my HD, which is formatted for OSX, and has 350GB left on it. And yet, all of the problems persist (including error -50...?) any help would be greatly, greatly appreciated, as the DVD was due two days ago.
    -Sean

    +"Alright, so I moved over the footage and deleted it off the internal..."+
    Did you move the Events using iMovie? If not, the project pointers become invalid, and you would get the error you did. While moving the event using iMovie, you don't need to "delete" anything!
    Couple of options for you to recover from this.
    A> (Slower) Move the Events back to the internal HD, and use iM to move the Event to the Ext HD.
    B> (Faster, but convoluted) Create an alias for the specific Event folder (now on your ext HD/iMovie Events folder) under your local HD's iM Events folder. IM will now be able to "see" the files on the internal HD, even though they're stored on the Ext HD.
    From the Help File: "To keep an item at its original location and put an alias for it in a new folder, hold down the Command and Option keys while you drag the item."
    Sorry you're having to jump through hoops to get this working...

  • Connecting external audio interfaces?! Issues, help needed!

    Ok well basically i'v always used a pc to do music using cubase and a variety of hardware including a steinberg mi4 external audio interface connected via usb. Now on my pc which is actually less powerful than my new macbook (the 2.2ghz model) the interface works with out fault no latency, no distortion.
    However once used on my new shiny macbook, for which i'v purchased logic pro as opposed to cubase (felt like a change) when trying to use my interface via usb on the mac through logic i seem to have issues with recording and all sound comes through distorted with a great deal of latency. I'v tried altering the sample depth and the bit rate and nothing seems to work?
    I have downloaded mac specific drivers for the hardware so i'm sure its not a driver issue?
    Anyone with any suggestion, cos i'm a bit gutted really?
    P.s. Does anyone know if you can change the graphics card in a macbook?
    Ben

    Hi, im having the same issue, using garageband and logic pro. I used pc to make music with no problems at all with my Zoom g9.2tt guitar fx usb interface.
    Now with mac i get distorted and lots of latency.
    One way i found that can make this work with garageband is use the internal sound card to play sounds and the usb interface to record this helps a lot. This trick makes it for garageband but not for logic pro(still getting distortion/latency).
    By the way i used to have an emachines laptop with 512 ram memory and a 1,6ghz semprom processor, believe or not, easier to record on that one, with no latency and no distortion.

  • IS07 Car Music Bluetooth Streaming Issue - Help Needed

    I drive an Audi A1 which I have owned from new 11 months ago. I updated my iPhone 5 to the IS 7.0.4 around 1 month ago and since doing that I now have streaming issues in my car. The connection is via bluetooth, and the music is streamed from my iPhone, however since the update the music cuts out, skips and pauses............
    I took the car to a service centre today where it was confirmed a known issue within the Audi network.
    So how do we go around this? What do I need in order to stream music without the interference? I am pretty sure Apple wouldn't want to pay my car invoice for the added extras that I purchased in order for me to enjoy my music so surely there must be a way around this?
    Any advice is greatly appreciated.
    Thanks,

    This is not about law, it's about software/hardware. But since you're bringing it up, when Siri was introduced for the iPhone 4s, there was a man in a car using siri with his apple earplugs. I searched for law about this in my country (Netherlands) and it's not forbidden.
    Now back to my issue: I want to use a headphone to listen to music and I want to make a call through bluetooth. Iphone doesn't remember I was listening to the music through the headphone. Issue, right?

  • Major issue, help needed

    Hi there,
    Okay, I've got a problem, well a few of them actually, and I really needed to get some advice from others. So, I'm doing an HNC in Interactive Media at the moment in college. My class isn't exactly the best place to study, as its quite loud, but yet it's the only room (available on certain days at certain times) that I can use to get my work done because it has all the Adobe software I need.
    My problem is that the version of the software is only at CS4, which the exception of Photoshop CS6 Extended added in their too. Now, I have no clue as to why the software hasn't been updated and it's not causing me a bit of worry. I desperately want to my work outside of class, to work away from the noise where there is no distraction and so on. So, I had taken out a Student Loan to buy myself a MacBook Pro and I was dead-set on buying myself CS6. However, I quickly realized that CS6 wouldn't be backwards compatable with older versions, i.e. CS4, right?
    So I asked my lecturer, she advised me to buy the Adobe CS4 software package, which I was fine with. I had spent the last few days trying to find a Mac version, with the student discount (Like I could afford the full retail as a student), but I couldn't find one trace of it. I was always redirected to some fishy website that was able to crack it for me, which I didn't want - obviously.
    My problem is that I've seen on the community discussion that Adobe doesn't sell CS4 anymore - already I'm panicking - because I don't know what to do. I can only see the option of: buying CS6 and basically not being able to use it because my lecturers wouldn't be able to open any of those files.
    Please, I really need some help here. If you have any advice or knowledge on where I could possibly buy CS4 (if that is even possible) or maybe a method of saving CS6 files as CS4 files?
    Thanks,
    Andrew

    And what program are we actually talking about? PS files are always compatible when saved with the "Maximum Compatibility" option, Illustrator allows back-saving to older formats and InDesign can save to CS4-compatible IDML (an exchange format). For other apps it's not really relevant - HTML is HTML and which version of Dreamweaver you use to edit it doesn't matter. Conversely, pretty much all universally accepted media formats for audio, video and images can be opened in most versions as can PDFs. That leaves only the video applications and Flash, but I can't imagine your teacher looking at your Premiere Pro project file when all you have to deliver is an edited movie nor do I think it would be particularly relevant how you created a Flash or After Effects file. All that aside, things are as they are - unless you can find someone trustworthy willing to part with his used CS4, there is no legal way to get it. It's a moot point, though, 'cos no matter what, it won't work properly on your shiny new Mac and may not even install, so you are in a very dark place, either way....
    Mylenium

Maybe you are looking for