Adding new ringtones without resyncing...

Is there a way to add new items such as ring tones without having to re-sync all the information on the iPhone. My desktop computer crashed a month ago so my iTunes music library went along with it. When I tried to add new ring tones it asked me if I want to erase all data and re-sync on my laptop. I really love the music that I have on my iPhone so erasing it is not a choice. I can live without the ring tones but it would be nice to have some because factory ring tones get pretty boring. Is this possible?

Doesn't seem like you can do it.
However, there might be a way : first get your music back to whatever computer you have right now. Then you can sync again with out any problem.
I remember there was post show you how to do it; don't know how to insert link to that post, but here is what it says
" if you have music or video on the iphone that you have purchased from the itunes store, you can copy this back to the computer. To do this, open itunes and at the top click on store and choose authorize computer. Put in your account name and password in the alert that comes up and choose authorize. Once the computer is authorized, connect your iphone. Once itunes shows your iphone, click on file at the top of itunes and choose transfer purchases from...
This will copy any purchases that you have on the iphone back to the computer.
However, if the music was copied from cd or other locations, it will have to be reimported into itunes.
Hope this helps. "
Hope the author of this post don't mind when I share this with you.

Similar Messages

  • Adding new users without restarting? OC4J (v9.0.2 prod)

    Hi all,
    Is it possible adding new customers using the
    jazn.jar utility and use them without having
    to restart the OC4J server?
    Regards,
    Giovanni

    This forum is for feedback about the OTN site, not for technical questions.
    Here is a link to the OC4J forum:
    OC4J

  • Adding new feature without recompiling

    i have a question
    i have this program in java that translates one language to another now i want to be able to add another translator later if i required at runtime without recompiling the whole thing.that is i should have the provision of adding new translators feature which i dont know now about, later without compiling.
    if anybody could guide me i will really appreciate that
    thanks

    A factory might do the job if you've organized your existing code properly.
    Assume an interface exists:public interface Translator {
       public String translate(String text);
    }Also suppose you already have a single translator:package my.package;
    public class EnglishToDutchTranslator implements Translator {
       public String translate(String text) {
          return translation;
    }Store this fact in a .properties file or preferences or whereever:ENDU= my.package.EnglishToDutchTranslatorHere's the factory:public final class TranslatorFactory {
       // contains the above name -> tranlator class name mappings
       private static Properties translators;
       // don't instantiate this class
       private TranslatorFactory() { }
       public static Translator getTranslator(String name) {
          String clazz= translators.getProperty(name);
          if (clazz == null) return null;
          try {
             return (Translator)Class.forName(clazz).newInstance();
          catch (Exception e) {
             e.printStackTrace();
             return null;
    }Basically all the factory does is 1) get the fully qualified class name
    given the name of the translator and 2) instantiate an object from that
    class. All that it cares about is that the object implements the Translator
    interface. You can build new translators and register them in that
    properties file. A caller should get a translator as follows:Translater t= TranslatorFactory.getTranslator("ENDU");kind regards,
    Jos

  • Adding new peer without removing cmap from interface.

    I have a frustrating issue with a dynamic VPN head end running IOS 15.2 on 2900's. I have existing keyrings, and isakmp profiles (both main and agressive) running. When I add in a new peer, by adding in a keyring prechared statement and a match identity in the isakmp profile, phase 1 biulds but phase 2 only gets right to the end and the Cisco side resets the connection because it did not get back a response to it's Phase 2 proposal.
    I have tried a number of soft clear commands to remedy this (I do have 16 other production tunnels I do not want to take down) and no avail. This is very consistent. We had this happen last week in the same manner, and the TAC finally said I must reboot the system. So I removed the cmap from the interface, and reapplied it (using notepad to do it all at once). All the tunnels dropped, and after a few manual restarts on the far end for thos etunnels that are tempermental, all tunnels came back up, including my new add.
    I have a pair of 3900's running 15.1 code in the US that terminate the same tunnels, and I can add and remove PEERS all day long without resetting anything. Has anyone one encountered this before? Could there be a more polite way of resetting what ever it is that removing the CMAP does to allow my new peer to get the full treatment here?
    (I am not asking for VPN peer config help, as I know this tunnel template I am using works, but if you want to see it)
    Nick
    crypto pki token default removal timeout 0
    crypto keyring Site-to-Site 
      pre-shared-key address a.a.a.a key lkdshjfhjkdsfkjfsjkddedswdes
      pre-shared-key address b.b.b.b key lkdshjfhjkdsfkjfsjkddedswdes
      pre-shared-key address c.c.c.c key lkdshjfhjkdsfkjfsjkddedswdes
      pre-shared-key address d.d.d.d key lkdshjfhjkdsfkjfsjkddedswdes <- old sonicwall VPN KEY
      pre-shared-key hostname BOB key lkdshjfhjkdsfkjfsjkddedswdes
      pre-shared-key hostname BILL key lkdshjfhjkdsfkjfsjkddedswdes
      pre-shared-key hostname JILL key lkdshjfhjkdsfkjfsjkddedswdes
    crypto keyring Site-to-Site_PAN 
      description Keyring used for AES256 Palo Alto config, using IP's
      pre-shared-key address e.e.e.e key uiopadsbfjkahfga;lkdj
      pre-shared-key address f.f.f.f key uiopadsbfjkahfga;lkdj
      pre-shared-key address d.d.d.d key uiopadsbfjkahfga;lkdj <- my new add for Palo
    crypto isakmp policy 5
    encr aes 256
    hash sha256
    authentication pre-share
    group 2
    lifetime 28800
    crypto isakmp policy 10
    encr 3des
    authentication pre-share
    group 2
    lifetime 28800
    crypto isakmp policy 20
    encr aes 256
    authentication pre-share
    group 2
    lifetime 28800
    crypto isakmp policy 30
    encr aes
    authentication pre-share
    group 2
    lifetime 28800
    crypto isakmp invalid-spi-recovery
    crypto isakmp keepalive 60 3 periodic
    crypto isakmp nat keepalive 20
    crypto isakmp profile Site-to-Site-Main
       keyring Site-to-Site
       self-identity user-fqdn ASIA
       match identity address a.a.a.a 255.255.255.255
       match identity address b.b.b.b 255.255.255.255
       match identity address c.c.c.c 255.255.255.255
       (Removed SonicWall peer match for d.d.d.d)
       keepalive 60 retry 3
    crypto isakmp profile Site-to-Site-Aggressive
       keyring Site-to-Site
       self-identity user-fqdn ASIA
       match identity user-fqdn BOB
       match identity user-fqdn BILL
       match identity user-fqdn JILL
       keepalive 60 retry 3
       initiate mode aggressive
    crypto isakmp profile Site-to-Site-Aggressive_PAN
       keyring Site-to-Site_PAN
       self-identity address
       match identity address e.e.e.e 255.255.255.255
       match identity address f.f.f.f 255.255.255.255
       match identity address d.d.d.d 255.255.255.255 <- My new add
       keepalive 10 retry 3
       initiate mode aggressive
    crypto ipsec transform-set CSC-TS1 esp-3des esp-sha-hmac
    crypto ipsec transform-set CSC-TS2 esp-aes 256 esp-sha-hmac
    crypto ipsec transform-set CSC-TS3 esp-des esp-md5-hmac
    crypto ipsec transform-set CSC-TS4 esp-aes esp-sha-hmac
    crypto ipsec transform-set CSC-TS5 esp-aes 256 esp-sha256-hmac
    crypto dynamic-map CSC-DMAP 5
    set security-association lifetime kilobytes disable
    set security-association lifetime seconds 28800
    set transform-set CSC-TS5
    set reverse-route distance 240
    set reverse-route tag 240
    set isakmp-profile Site-to-Site-Aggressive_PAN
    reverse-route
    crypto dynamic-map CSC-DMAP 10
    set security-association lifetime kilobytes disable
    set security-association lifetime seconds 28800
    set transform-set CSC-TS1 CSC-TS2 CSC-TS3 CSC-TS4
    set reverse-route distance 240
    set reverse-route tag 240
    set isakmp-profile Site-to-Site-Aggressive
    reverse-route
    crypto dynamic-map CSC-DMAP 20
    set security-association lifetime kilobytes disable
    set security-association lifetime seconds 28800
    set transform-set CSC-TS1 CSC-TS2 CSC-TS3 CSC-TS4
    set reverse-route distance 240
    set reverse-route tag 240
    set isakmp-profile Site-to-Site-Main
    reverse-route
    crypto map CSC-CMAP 20 ipsec-isakmp dynamic CSC-DMAP
    interface G0/0
    crypto map CSC-CMAP redundancy dmzvpn <-- I just negate this and re-add and new peers start working.

    This is where the connection sits...
    show crypto session detail
    Interface: GigabitEthernet0/0
    Profile: Site-to-Site-Aggressive_PAN
    Session status: UP-IDLE
    Peer: d.d.d.d port 4500 fvrf: (none) ivrf: (none)
          Phase1_id: d.d.d.d
          Desc: (none)
      IKEv1 SA: local 192.168.221.2/4500 remote d.d.d.d/4500 Active
              Capabilities:DN connid:1473 lifetime:07:31:02

  • I have a question regarding my txt/alert tones. I recently updated my iPhone 5's software without first backing it up on iCloud or my computer (oops). After my phone finished updating, i lost the new ringtones and txt/alert tones i had bought.

    I have a question regarding my txt/alert tones. I recently updated my iPhone 5's software without first backing it up on iCloud or my computer (oops). After my phone finished updating, i lost the new ringtones and txt/alert tones i had bought. I connected my iPhone to my computer and sync'd it hoping that it could download my purchases from the itunes store and then put them back on to my phone but no such luck. When i look at my iphone on my computer and look at tones, they do not show up at all. However, if i click on the "On This iPhone" tab and click on "Tones" the deleted ringtones and altert tones show up...they are just grey'd out and have a dotted circle to the left of them. I also tried to go to the iTunes store on my phone and redownload them and it tells me that i have already purchased this ringtone and asks me if i want to buy it again. I press Cancel. I know when i do that with music it would usually let me redownload the song without buying it again but it wont let me with the ringtones...so how do i get them back? any help would be greatly appreicated

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • How do I sync purchased ringtones to a new iPhone without the old iPhone

    Is it possible to sync purchased ringtones to a new iPhone without the old iPhone

    If you have copies of them on your computer's iTunes then you should be able to - if they show in the Tones part of your iTunes library then you should be able to sync them to your new phone. Or do you not have copies of them on your computer nor on your backup of your library ?

  • HT4527 I set up my iphone with my laptop but now its broken is there anyway of adding new song using anpther laptop/desktop computer without erasing everything currently on my phone?

    I set up my iphone with my laptop but now its broken is there anyway of adding new song using anpther laptop/desktop computer without erasing everything currently on my phone? I have no access to my old computer and the songs on it are from cds not itunes purchases
    Please help!!

    1) ensure iTunes is authorized for your iTunes store account(s)
    2) connect your device and right-click or control-click it in the iTunes Source list, then choose transfer purchases from the shortcut menu that appears.
    3) sync the device
    iTunes will wipe the iPhone but, since you transferred your purchases in the previous step, your content will be in your library and you can re-populate the iPhone with it.
    above works for purchases from the iTunes store. for everything else, check out this post by Zevoneer.

  • What is the default group id/ home /shell while adding new account with useradd without specifying these parameters?

    What is the default group id/ home /shell while adding new account with useradd without specifying these parameters?
    reagrds

    Hi,
    You can check the default values from the below file
    /usr/sadm/defadduser
    and from this command
    #useradd -D

  • I got a new computer recently and don't have my old laptop, which has all of the songs in my Itunes on it. I have all of the songs on my iPod touch, is there a way to transfer them to my new computer without having the old one?

    I would like to get the music from my iPod touch onto my new laptop (which a PC), but I am affraid that if I plug in my iPod then I will lose all of my music. Is there a way to transfer the music from my iPod to my new laptop without losing songs?

    If you do not have access to the iTunes Library on your Old computer... or its Backup...
    See these 2 Links...
    Syncing to a New Computer...
    https://discussions.apple.com/docs/DOC-3141
    Recovering your iTunes library from your iPod or iOS device
    https://discussions.apple.com/docs/DOC-3991
    If you do have access... See Here...
    iTunes: How to move your music to a new computer
    Or...
    From your OLD computer...
    Copy your ENTIRE iTunes FOLDER to an External Drive... and then from the External Drive to your New Computer..
    Full Details Here  >  http://support.apple.com/kb/HT1751
    An Added Bonus is that you will have a Backup of iTunes.

  • Adding new characteristics to cube with data

    Hi Gurus,
    i need to add some characteristics to a cube already in production, this cube is customized version of material stocks/movements cube (0ic_c03).
    i am looking for a way to add the new characteristics without having to do reinitialisation (opening stock,...), i am thinking about a loopback process but how do i manage to get the new characteristics populated for the historical data?
    Thank you.

    Hi,
    If you want to load historial data, you must take ECC down time and re-intialization is required.Becasue you are adding new object in Cube and for that you need to change the Update rules, then need to load historical data, so without down time and reinitialization it is not possible.
    Check like below.
    You have data in PSA, so try to delete data from Cube and then load from PSA. Because you may write code in Update rules on;y I think. So in that case, it may work.
    Thanks
    Reddy

  • TableSorter errors when adding new data

    so here is the deal:
    I am using the TableSorter.java helper class with DefaultTableModel
    from: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
    It works great when the data is static and I get it for the first time. however, occationally, when adding new data I get a NullPointerException error.
    in use:
    DefaultTableModel.addRow()
    DefaultTableModel.removeRow() and
    DefaultTableModel.insertRow() methods.
    Error:
    java.lang.ArrayIndexOutOfBoundsException: 5
         at com.shared.model.TableSorter.modelIndex(TableSorter.java:294)
         at com.shared.model.TableSorter.getValueAt(TableSorter.java:340)
         at javax.swing.JTable.getValueAt(Unknown Source)
         at javax.swing.JTable.prepareRenderer(Unknown Source)...
    code problem I:
        public Object getValueAt(int row, int column)
            return tableModel.getValueAt(modelIndex(row), column);
        }code problem II:
        public int modelIndex(int viewIndex)
                 return getViewToModel()[viewIndex].modelIndex;     
        }TableSroter class:
    package com.shared.model;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.util.List;
    import javax.swing.*;
    import javax.swing.event.TableModelEvent;
    import javax.swing.event.TableModelListener;
    import javax.swing.table.*;
    * TableSorter is a decorator for TableModels; adding sorting
    * functionality to a supplied TableModel. TableSorter does
    * not store or copy the data in its TableModel; instead it maintains
    * a map from the row indexes of the view to the row indexes of the
    * model. As requests are made of the sorter (like getValueAt(row, col))
    * they are passed to the underlying model after the row numbers
    * have been translated via the internal mapping array. This way,
    * the TableSorter appears to hold another copy of the table
    * with the rows in a different order.
    * <p/>
    * TableSorter registers itself as a listener to the underlying model,
    * just as the JTable itself would. Events recieved from the model
    * are examined, sometimes manipulated (typically widened), and then
    * passed on to the TableSorter's listeners (typically the JTable).
    * If a change to the model has invalidated the order of TableSorter's
    * rows, a note of this is made and the sorter will resort the
    * rows the next time a value is requested.
    * <p/>
    * When the tableHeader property is set, either by using the
    * setTableHeader() method or the two argument constructor, the
    * table header may be used as a complete UI for TableSorter.
    * The default renderer of the tableHeader is decorated with a renderer
    * that indicates the sorting status of each column. In addition,
    * a mouse listener is installed with the following behavior:
    * <ul>
    * <li>
    * Mouse-click: Clears the sorting status of all other columns
    * and advances the sorting status of that column through three
    * values: {NOT_SORTED, ASCENDING, DESCENDING} (then back to
    * NOT_SORTED again).
    * <li>
    * SHIFT-mouse-click: Clears the sorting status of all other columns
    * and cycles the sorting status of the column through the same
    * three values, in the opposite order: {NOT_SORTED, DESCENDING, ASCENDING}.
    * <li>
    * CONTROL-mouse-click and CONTROL-SHIFT-mouse-click: as above except
    * that the changes to the column do not cancel the statuses of columns
    * that are already sorting - giving a way to initiate a compound
    * sort.
    * </ul>
    * <p/>
    * This is a long overdue rewrite of a class of the same name that
    * first appeared in the swing table demos in 1997.
    * @author Philip Milne
    * @author Brendon McLean
    * @author Dan van Enckevort
    * @author Parwinder Sekhon
    * @version 2.0 02/27/04
    public class TableSorter extends AbstractTableModel
        protected TableModel tableModel;
        public static final int DESCENDING = -1;
        public static final int NOT_SORTED = 0;
        public static final int ASCENDING = 1;
        private static Directive EMPTY_DIRECTIVE = new Directive(-1, NOT_SORTED);
        public static final Comparator COMPARABLE_COMAPRATOR = new Comparator()
            public int compare(Object o1, Object o2)
                return ((Comparable) o1).compareTo(o2);
        public static final Comparator LEXICAL_COMPARATOR = new Comparator()
            public int compare(Object o1, Object o2)
                return o1.toString().compareTo(o2.toString());
        private Row[] viewToModel;
        private int[] modelToView;
        private JTableHeader tableHeader;
        private MouseListener mouseListener;
        private TableModelListener tableModelListener;
        private Map columnComparators = new HashMap();
        private List sortingColumns = new ArrayList();
        public TableSorter()
            this.mouseListener = new MouseHandler();
            this.tableModelListener = new TableModelHandler();
        public TableSorter(TableModel tableModel)
            this();
            setTableModel(tableModel);
        public TableSorter(TableModel tableModel, JTableHeader tableHeader)
            this();
            setTableHeader(tableHeader);
            setTableModel(tableModel);
        private void clearSortingState()
            viewToModel = null;
            modelToView = null;
        public TableModel getTableModel()
            return tableModel;
        public void setTableModel(TableModel tableModel)
            if (this.tableModel != null)
                this.tableModel.removeTableModelListener(tableModelListener);
            this.tableModel = tableModel;
            if (this.tableModel != null)
                this.tableModel.addTableModelListener(tableModelListener);
            clearSortingState();
            fireTableStructureChanged();
        public JTableHeader getTableHeader()
            return tableHeader;
        public void setTableHeader(JTableHeader tableHeader)
            if (this.tableHeader != null)
                this.tableHeader.removeMouseListener(mouseListener);
                TableCellRenderer defaultRenderer = this.tableHeader.getDefaultRenderer();
                if (defaultRenderer instanceof SortableHeaderRenderer)
                    this.tableHeader.setDefaultRenderer(((SortableHeaderRenderer) defaultRenderer).tableCellRenderer);
            this.tableHeader = tableHeader;
            if (this.tableHeader != null)
                this.tableHeader.addMouseListener(mouseListener);
                this.tableHeader.setDefaultRenderer
                        new SortableHeaderRenderer(this.tableHeader.getDefaultRenderer())
        public boolean isSorting()
            return sortingColumns.size() != 0;
        private Directive getDirective(int column)
            for (int i = 0; i < sortingColumns.size(); i++)
                Directive directive = (Directive)sortingColumns.get(i);
                if (directive.column == column)
                    return directive;
            return EMPTY_DIRECTIVE;
        public int getSortingStatus(int column)
            return getDirective(column).direction;
        private void sortingStatusChanged()
            clearSortingState();
            fireTableDataChanged();
            if (tableHeader != null)
                tableHeader.repaint();
        public void setSortingStatus(int column, int status)
            Directive directive = getDirective(column);
            if (directive != EMPTY_DIRECTIVE)
                sortingColumns.remove(directive);
            if (status != NOT_SORTED)
                sortingColumns.add(new Directive(column, status));
            sortingStatusChanged();
        protected Icon getHeaderRendererIcon(int column, int size)
            Directive directive = getDirective(column);
            if (directive == EMPTY_DIRECTIVE)
                return null;
            return new Arrow(directive.direction == DESCENDING, size, sortingColumns.indexOf(directive));
        private void cancelSorting()
            sortingColumns.clear();
            sortingStatusChanged();
        public void setColumnComparator(Class type, Comparator comparator)
            if (comparator == null)
                columnComparators.remove(type);
            else
                columnComparators.put(type, comparator);
        protected Comparator getComparator(int column)
            Class columnType = tableModel.getColumnClass(column);
            Comparator comparator = (Comparator) columnComparators.get(columnType);
            if (comparator != null)
                return comparator;
            if (Comparable.class.isAssignableFrom(columnType))
                return COMPARABLE_COMAPRATOR;
            return LEXICAL_COMPARATOR;
        private Row[] getViewToModel()
            if (viewToModel == null)
                int tableModelRowCount = tableModel.getRowCount();
                viewToModel = new Row[tableModelRowCount];
                for (int row = 0; row < tableModelRowCount; row++)
                    viewToModel[row] = new Row(row);
                if (isSorting())
                    Arrays.sort(viewToModel);
            return viewToModel;
        public int modelIndex(int viewIndex)
                 return getViewToModel()[viewIndex].modelIndex;     
        private int[] getModelToView()
            if (modelToView == null)
                int n = getViewToModel().length;
                modelToView = new int[n];
                for (int i = 0; i < n; i++)
                    modelToView[modelIndex(i)] = i;
            return modelToView;
        // TableModel interface methods
        public int getRowCount()
            return (tableModel == null) ? 0 : tableModel.getRowCount();
        public int getColumnCount()
            return (tableModel == null) ? 0 : tableModel.getColumnCount();
        public String getColumnName(int column)
            return tableModel.getColumnName(column);
        public Class getColumnClass(int column)
            return tableModel.getColumnClass(column);
        public boolean isCellEditable(int row, int column)
            return tableModel.isCellEditable(modelIndex(row), column);
        public Object getValueAt(int row, int column)
            return tableModel.getValueAt(modelIndex(row), column);
        public void setValueAt(Object aValue, int row, int column)
            tableModel.setValueAt(aValue, modelIndex(row), column);
        // Helper classes
        private class Row implements Comparable
            private int modelIndex;
            public Row(int index)
                this.modelIndex = index;
            public int compareTo(Object o)
                int row1 = modelIndex;
                int row2 = ((Row) o).modelIndex;
                for (Iterator it = sortingColumns.iterator(); it.hasNext();)
                    Directive directive = (Directive) it.next();
                    int column = directive.column;
                    Object o1 = tableModel.getValueAt(row1, column);
                    Object o2 = tableModel.getValueAt(row2, column);
                    int comparison = 0;
                    // Define null less than everything, except null.
                    if (o1 == null && o2 == null)
                        comparison = 0;
                    } else if (o1 == null)
                        comparison = -1;
                    } else if (o2 == null)
                        comparison = 1;
                    } else {
                        comparison = getComparator(column).compare(o1, o2);
                    if (comparison != 0)
                        return directive.direction == DESCENDING ? -comparison : comparison;
                return 0;
        private class TableModelHandler implements TableModelListener
            public void tableChanged(TableModelEvent e)
                // If we're not sorting by anything, just pass the event along.            
                if (!isSorting())
                    clearSortingState();
                    fireTableChanged(e);
                    return;
                // If the table structure has changed, cancel the sorting; the            
                // sorting columns may have been either moved or deleted from            
                // the model.
                if (e.getFirstRow() == TableModelEvent.HEADER_ROW)
                    cancelSorting();
                    fireTableChanged(e);
                    return;
                // We can map a cell event through to the view without widening            
                // when the following conditions apply:
                // a) all the changes are on one row (e.getFirstRow() == e.getLastRow()) and,
                // b) all the changes are in one column (column != TableModelEvent.ALL_COLUMNS) and,
                // c) we are not sorting on that column (getSortingStatus(column) == NOT_SORTED) and,
                // d) a reverse lookup will not trigger a sort (modelToView != null)
                // Note: INSERT and DELETE events fail this test as they have column == ALL_COLUMNS.
                // The last check, for (modelToView != null) is to see if modelToView
                // is already allocated. If we don't do this check; sorting can become
                // a performance bottleneck for applications where cells 
                // change rapidly in different parts of the table. If cells
                // change alternately in the sorting column and then outside of            
                // it this class can end up re-sorting on alternate cell updates -
                // which can be a performance problem for large tables. The last
                // clause avoids this problem.
                int column = e.getColumn();
                if (e.getFirstRow() == e.getLastRow()
                        && column != TableModelEvent.ALL_COLUMNS
                        && getSortingStatus(column) == NOT_SORTED
                        && modelToView != null)
                    int viewIndex = getModelToView()[e.getFirstRow()];
                    fireTableChanged(new TableModelEvent(TableSorter.this,
                                                         viewIndex, viewIndex,
                                                         column, e.getType()));
                    return;
                // Something has happened to the data that may have invalidated the row order.
                clearSortingState();
                fireTableDataChanged();
                return;
        private class MouseHandler extends MouseAdapter
            public void mouseClicked(MouseEvent e)
                JTableHeader h = (JTableHeader) e.getSource();
                TableColumnModel columnModel = h.getColumnModel();
                int viewColumn = columnModel.getColumnIndexAtX(e.getX());
                int column = columnModel.getColumn(viewColumn).getModelIndex();
                if (column != -1)
                    int status = getSortingStatus(column);
                    if (!e.isControlDown())
                        cancelSorting();
                    // Cycle the sorting states through {NOT_SORTED, ASCENDING, DESCENDING} or
                    // {NOT_SORTED, DESCENDING, ASCENDING} depending on whether shift is pressed.
                    status = status + (e.isShiftDown() ? -1 : 1);
                    status = (status + 4) % 3 - 1; // signed mod, returning {-1, 0, 1}
                    setSortingStatus(column, status);
        private static class Arrow implements Icon
            private boolean descending;
            private int size;
            private int priority;
            public Arrow(boolean descending, int size, int priority)
                this.descending = descending;
                this.size = size;
                this.priority = priority;
            public void paintIcon(Component c, Graphics g, int x, int y)
                Color color = c == null ? Color.GRAY : c.getBackground();            
                // In a compound sort, make each succesive triangle 20%
                // smaller than the previous one.
                int dx = (int)(size/2*Math.pow(0.8, priority));
                int dy = descending ? dx : -dx;
                // Align icon (roughly) with font baseline.
                y = y + 5*size/6 + (descending ? -dy : 0);
                int shift = descending ? 1 : -1;
                g.translate(x, y);
                // Right diagonal.
                g.setColor(color.darker());
                g.drawLine(dx / 2, dy, 0, 0);
                g.drawLine(dx / 2, dy + shift, 0, shift);
                // Left diagonal.
                g.setColor(color.brighter());
                g.drawLine(dx / 2, dy, dx, 0);
                g.drawLine(dx / 2, dy + shift, dx, shift);
                // Horizontal line.
                if (descending) {
                    g.setColor(color.darker().darker());
                } else {
                    g.setColor(color.brighter().brighter());
                g.drawLine(dx, 0, 0, 0);
                g.setColor(color);
                g.translate(-x, -y);
            public int getIconWidth()
                return size;
            public int getIconHeight()
                return size;
        private class SortableHeaderRenderer implements TableCellRenderer
            private TableCellRenderer tableCellRenderer;
            public SortableHeaderRenderer(TableCellRenderer tableCellRenderer)
                this.tableCellRenderer = tableCellRenderer;
            public Component getTableCellRendererComponent(JTable table,
                                                           Object value,
                                                           boolean isSelected,
                                                           boolean hasFocus,
                                                           int row,
                                                           int column)
                Component c = tableCellRenderer.getTableCellRendererComponent(table,
                        value, isSelected, hasFocus, row, column);
                if (c instanceof JLabel) {
                    JLabel l = (JLabel) c;
                    l.setHorizontalTextPosition(JLabel.LEFT);
                    int modelColumn = table.convertColumnIndexToModel(column);
                    l.setIcon(getHeaderRendererIcon(modelColumn, l.getFont().getSize()));
                return c;
        private static class Directive
            private int column;
            private int direction;
            public Directive(int column, int direction)
                this.column = column;
                this.direction = direction;
    }any input will be appreciated.
    thanks
    Peter

    The code you posted doesn't help us at all. Its just a duplicate of the code from the tutorial. The custom code is what you have written. For example do you update the TableModel from the Event Thread? Do you update the SortModel or the DefaultTableModel? If you actually provide your test code and somebody has already downloaded the sort classes, then maybe they will test your code against the classes. But I doubt if people will download the sort classes and create a test program just to see if they can duplicate your results (at least I know I'm not about to).

  • I can not delete my history and adding new bookmarks. Upgrading to later Firefox versions and/or re-installing didn't help. The address bar still shows the web addresses of old and whenever I make new bookmarks, it's always gone as if it was never made.

    I can not delete my history and adding new bookmarks.
    Upgrading to later Firefox versions and/or re-installing didn't rectify it either.
    The address bar still shows the web addresses of old and whenever I make new bookmarks, it's always gone as if it was never made.
    Also, I have noticed that every once in awhile you can not close tabs you've opened, either by pushing on the X button and/or clicking on the mouse to close it. Although closing the window and opening it again (without closing the Firefox application) seemed to rectify the problem in the short term, it's becoming quite annoying.
    == This happened ==
    Every time Firefox opened
    == the Firefox is being used

    I think I have a solution.
    First, download the add-on SQManager. This should be included with FireFox, it is really good.
    Look for the file '''moz_hosts''' in the folder '''places.sqlite'''.
    Don't delete the file, just delete the information in the file. My file has over 3600 websites, which go back years!! I did not know they were there, but I was frustrated about not being able to get rid of them. They popped up every time I used the address bar. Clearing my history would not get rid of them.
    This is where they are stored!! I found that by deleting the pesky web site from '''moz_hosts''', it does not appear in my address bar anymore!!!
    I think that if I just delete all the websites in moz_hosts....
    Wa-la...History Gone!!!
    As long as you don't delete the file, just empty it, FireFox won't know the difference. It will just keep adding websites to it until you empty it again.
    Why running "clear recent history" doesn't do this, I don't know. You are doing manually what "clear recent history" is not doing.
    Please tell me if you see any flaw in this.
    ''I think it's the solution we've all been looking for!''

  • Is there a way to use ipod with new computer without erasing entire library

    I'm not really tech-savvy, but I'm tossing my old computer and getting a new one - is there a way to use my ipod on my new computer without erasing my existing library? It won't let me make changes to my ipod and wants me to erase everything that is on there right now - HELP!

    Connect your iPod to your computer. When you get the message that it is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all the songs from your iPod. When your iPod appears in iTunes enable it for disk use, this is required for most if not all the utilities listed below so they can access the files: Using your iPod as a storage drive
    Once you are safely connected there are a few things you can do to restore your iTunes from the iPod. If you have any iTMS purchases the transfer of purchased content from the iPod to authorised computers was introduced with iTunes 7. A paragraph on it has been added to this article: Transfer iTunes Store purchases using iPod
    The transfer of non iTMS content such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. You'll find that they have varying degrees of functionality and some will transfer movies, videos, photos, podcasts and games as well. Have a look at the web pages and documentation, this is just a small selection of what's available, they are generally quite straightforward. You can also read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    TuneJack Windows Only
    iPod2PC Windows Only
    iGadget Windows Only
    iDump Windows Only
    iRepo Windows Only
    iPodRip Mac & Windows
    YamiPod Mac and Windows Versions
    Music Rescue Mac & Windows
    iPodCopy Mac and Windows Versions
    There is also a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows or a Mac. The procedure is a bit involved and won't recover playlists but if you're interested it's available at this link: Two-way Street: Moving Music Off the iPod
    Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync. I would also advise that you get yourself an external hard drive and back your stuff up, relying on an iPod as your sole backup is not a good idea and external drives are comparatively inexpensive these days, you can get loads of storage for a reasonable outlay.

  • Adding New Dimension In An Existing Cube (Block)

    Hi fellows,
    Im not an expert so need you feedback.
    I am supporting a cube that was built a decade ago using Essbase 6.5. It has 7 dimensions (3 dense, 4 sparse). With the new reporting requirement, I need to add a new dimension to be called "BaseTimePeriod" that seems like a Time dimension but will show the "Constant Dollar" amount calcuation for difference Scenarios.
    Since the cube has been there for so long, and the expert that has pioneered that cube is no longer in the company. All of our reports uses API being called in MS Excel to retrieve data from the cube and format it the way the users wanted it to be. As well as 75% of our data are user input using the Essbase Excel Add-in, "lock/send" commands.
    My problem now is that, since I need to introduce another dimension for the "Constant Dollar" calculation, is there any way that if I add a new dimension the existing process of uploading data by the users as well as retrieving data through Excel API will not be affected?
    I tried to add new dimension in the R&D server that we have when I try to retrieve historical data from the cube in the Excel since there is "BaseTimePeriod" dimension before, the Excel report layout gets affected and inserts a new row placing "BaseTimePeriod" in that cell since this not yet there before. And when I try to upload data through Excel Add-in "lock/send" action, it did allow me unless I put a member from the "BaseTimePeriod" to complete the dimension member combination.
    My questions now are:
    1) How can I add a new dimension without impact from the historical data?
    2) Is there any way to place a default value for the new dimension for the historical data so it would complete the dimension member combination, so whenever I retrieve and upload data there will be no problem?
    Any insights related to this questions is highly appreciated. Thanks!
    obelisk

    If you add the new dimension to a cube that already has data, you should get a prompt when you save the outline to associate the existing data with a member from the new dimension. You will then go into a dense restructure which could take a while, depending on the size of your database. Another option would be to export your data in column format and load it into a relational table in something like SQL or Access, you can then add the new dimension to the export in the relational tool, export it back out to a text file and use a load rule to reload it.
    As far as the lock & send and existing reports, in most cases, adding a new dim will result in all of those needing to be updated. This is why we try not to add new dims to existing cubes, especially ones that have been around a while.
    Another thing to consider is the impact of adding a new dim. I don't know the size of your existing database, but you are going to increase it by adding a new dim and things like consolidation time and retrievals can be impacted, so you need to test all of this.
    You should evaluate why you need a new dim and determine if you can achieve the same result without adding a new dim. While a new dim might be the preference in a new cube design, when dealing with something that has been around a while you might want to be creative and somewhat more compromising if it is the lesser of two evils. If everyone is committed to a rebuild then go ahead and rebuild especially if it's been around a while, there are probably other things that can stand to be cleaned up as well, but if nobody wants to deal with that, then look to see if you can get their without adding a new dim, perhaps a new roll up in a existing dim or an attribute dim. A more thorough explanation of what the business case is would help to provide an alternate solution.

  • Sync my ipod to a new computer without losing songs currently on ipod

    I had my itunes and ipod set up on a computer. Then I got a new computer and I had to reinstall itunes on that computer. But, I cant sync my iPod to my new computer because it will erase all the songs that are on it from my old computer, and replace them with the songs in my new library. I have been adding songs manually and that worked for a little but now my iPod is full and I can't take any songs off because my iPod isn't synced to my new itunes. Is there any way I can sync my ipod to my new itunes without losing all my old songs?

    Put the songs currently on your iPod back into iTunes.
    If you are using iTunes version 7 or later, then you can transfer purchased iTunes store music from the iPod to an authorized computer by using the "file/transfer purchases from iPod" menu. Note that the maximum of 5 authorized computers applies here.
    For all other non purchased music (your own CDs etc) try this method which works on some Windows PCs.
    Enable your iPod for disk use.
    See: iPod Disk Use.
    Open iTunes and select edit/preferences/advanced/general. Put a check mark in the box marked "copy files to iTunes music folder when adding to library" and also "keep iTunes music folder organized", then click 'ok'.
    Connect the iPod whilst holding down the shift/ctrl keys to prevent any auto sync, and if you see the dialogue window asking if you want to sync to this itunes library, click 'no'.
    Then go to file/add folder, open 'my computer', select your iPod and click 'ok'.
    The music files should transfer to your iTunes.
    If this doesn't work (and it may not because officially it's not supposed to), check out the instructions/suggestions here.
    Music from iPod to computer (using option 2). This a manual method using "hidden folders" and although it works, it can be messy.
    Much easier ways are to use one of the many 3rd party programs that copy music from the iPod to the computer.
    One of the most recommended is Yamipod. This is a free program that transfers music and playlists etc from iPod back to the computer. However, it does not transfer playcounts/ratings etc.
    Another free program is Pod Player.
    Then you can sync your iPod with iTunes as before.

Maybe you are looking for

  • How to disable sslv2 on windows server 2008 r2

    we are getting alerts from our third party application regarding the vulnerability error in our doamin.they mentiojn the following  vulnerability message Abp

  • APEX for XE and PL/PDF

    Hi All, I have started to test PL/PDF, and have it creating a BLOB etc in a table. My issues is with XE (as it is meant to be supported), is how to display the pdf (currently stored as a blob in the database). The blob table doesn't have any "ID" as

  • T410 lots of case problems

    Hi, in advance i'm sorry for my language misstakes, i'm from poland. I'm new user of ThinkPad T410. laptop got to my hands about 2 weeks ago and only few days ago I spotted that there are 2 or 3 places on the lower part of case that are flexing under

  • How to run an iPhone non-GUI application in background

    Hi All, While looking into the web fouond that only one application can be run at a time in iPhone. So is there any way or work around to run a non-GUI app in iPhone in Background. This app will continuously query certain requests to iPhone regardign

  • Need a Secure Reliable connection Using IDSL and dsl routers

    I need to get a fast secure remote connection to my database. I am using oracle 8i database and the 6i developer for my applications. I need to connect to from remote sites to my office using my internet dsl router. I managed to do this using the web