[Solved] Two soundcards loading in random order

Hi,
I have two soundcards that I want to use for different purpose. I recently post this tread to resove my issue:
https://bbs.archlinux.org/viewtopic.php?id=102677
To resume, the onboard soundcard is connected to my pc speakers and is used to play every sounds like videos, etc. The second soundcard is connected to the speakers in my living room and is only used by mpd to play back music. So I can watch videos on my pc while my girlfriend listen to music in the living room and she does not hear the sound of the video. In mpd, I can select one or another output, or the 2 at the same time.
The solution works fine most of the time, but sometimes after reboots the two soundcards loads in a different order. So the videos play in the living room and mpd plays in my pc speakers.
I tried setting the orders of the sound cards in /etc/modprobe.d/modprobe.conf like this
option snd_ac97_codec index = 0
option snd_ca0106 index = 1
where snd_ac97_codec is my onboard soundcard and snd_ca0106 is the other one, but it does not seems to be taken in consideration.
I think it's udev that should be tell to load one before the other, but it is over my competences.
In case it helps, aplay -l returns this:
**** List of PLAYBACK Hardware Devices ****
card 0: SI7012 [SiS SI7012], device 0: Intel ICH [SiS SI7012]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: CA0106 [CA0106], device 0: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: CA0106 [CA0106], device 1: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: CA0106 [CA0106], device 2: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: CA0106 [CA0106], device 3: ca0106 [CA0106]
Subdevices: 1/1
Subdevice #0: subdevice #0
And /sys/module/snd/holders looks like this:
drwxr-xr-x 2 root root 0 2 sep 17:53 .
drwxr-xr-x 6 root root 0 2 sep 17:43 ..
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_ac97_codec -> ../../snd_ac97_codec
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_ca0106 -> ../../snd_ca0106
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_cs4236 -> ../../snd_cs4236
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_hwdep -> ../../snd_hwdep
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_intel8x0 -> ../../snd_intel8x0
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_mixer_oss -> ../../snd_mixer_oss
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_mpu401 -> ../../snd_mpu401
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_mpu401_uart -> ../../snd_mpu401_uart
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_opl3_lib -> ../../snd_opl3_lib
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_pcm -> ../../snd_pcm
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_pcm_oss -> ../../snd_pcm_oss
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_rawmidi -> ../../snd_rawmidi
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_seq -> ../../snd_seq
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_seq_device -> ../../snd_seq_device
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_seq_oss -> ../../snd_seq_oss
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_timer -> ../../snd_timer
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_wavefront -> ../../snd_wavefront
lrwxrwxrwx 1 root root 0 2 sep 17:53 snd_wss_lib -> ../../snd_wss_lib
But, while I'm writing this, the cards are correctly loaded, maybe the output would change in case the were loaded in different order. I dont know...
So, any ideas?
Last edited by k2000 (2010-09-04 17:45:54)

i have this issue as well but have been to lazy to do anything about it.  what i've been doing is whenever this happens to me i run a very basic script that removes both sound drivers and reloads them in the correct order:
#!/bin/bash
rmmod cx88_alsa snd_hda_intel
sleep 1
modprobe snd_hda_intel
sleep 1
modprobe cx88_alsa
sleep 1
alsactl restore
there seems to be a lot of suggestions for how to deal with this issue over at the alsa wiki, using udev should probably be a last resort.  here are two links that you may find useful:
http://alsa.opensrc.org/index.php/MultipleCards
http://alsa.opensrc.org/index.php/Udev
i'm going to go ahead and try the suggestion listed here.  however, i won't know right away if it's working, as my system seems to load the wrong driver at boot in default slot < 50% of the time.
edit1:
k2000 wrote:
It says to go to /etc/modprobe.d/alsa-base.conf and set the defaults with something like this:
install sound-slot-0 modprobe snd-card-0
install sound-slot-1 modprobe snd-card-2
but there is no /etc/modprobe.d/alsa-base.conf file in arch. Is this file located in another place?
if the file doesn't exist create it with just those commands in it, modprobe will automatically read the *.conf files it finds in /etc/modprobe.d/
Last edited by e_tank (2010-09-02 23:46:21)

Similar Messages

  • XML - thumbnail scroller loading out of order on browser refresh

    I have a thumbnail scroller that is loading in random order
    on the browser refresh. I don't want
    it to do this. I have no clue what to change in the file to
    prevent it.
    Can I get some help?? ( Safari load it correctly each time.
    IE and Firefox renders wrong )
    www.crystalgraphix.net/test/scroll1.html

    In the top right of the media browser, there is a little icon called the flyout menu...  click it and choose 'Edit Columns'.
    Put a checkmark in the box called 'date Created'and then click ok
    Now, at the top of the media browser the columns 'Name', FilePath, 'DateCreated' should be listed.  You can sort your media by any of those columns by clicking on them.
    Not sure about bridge... maybe someone else can help you with that.
    David

  • I get a box with a grey line and a question (?) and am unable to use Firefox as if computer is locked frozen uped? Have had to load two(2) Firefox's in order to

    When I open Firefox I get a blank box in the middle of the screen with a grey bar and a (?) and the page is frozen as if the computer is frozen ~~~ I have to load two (2) Firefox pages in order to get Firefox to work? Any suggestion as to how to fix this problem?

    CS2 is very old and reached its "end of life" a while back.  So probably won't run on modern operating systems.  If you can still run it, you'll need to uninstall what you have and re-install with the download link below to activate it.
    Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3
    Nancy O.

  • I have 160gb of music on my Classic, 6th Gen (I think) I've just bought it. Is it possible for it to play my songs in a random order, one or two from different albums?

    I have 160gb of music on my Classic, 6th Gen (I think) I've just bought it. Is it possible for it to play my songs in a random order, one or two from different albums?

    To add to what Stonerock has mentioned, you can either create Playlists in your iTunes Library, containing exactly what you want, and then Sync them to your iPod, or you can use the iPod Classic's On-The-Go feature.
    Reading between the lines, I'm going to assume for now that you want to be able to create your preferred listening list while "out and about" - so not near your iTunes library. (You have posted in iPod Classic, after all.) You can do this with the On-The-Go Playlist.
    Look in the Playlists menu on the iPod. It probably contains the Recently Added, Recently Played and other pre-made Playlists that you see in your iTunes Library. At the bottom of the Playlists list, is the On-The-Go showing 0 Songs. Scroll down to it and press the Select (centre) button. The screen will give you instruction on adding songs to the On-The-Go Playlist.
    Basically, if you press-and-hold the Select (centre) button, while highlighting a song, the song title will blink as it is added to the On-The-Go Playlist. Try it, then go back to Playlists/On-The-Go and notice that it will now say 1 Song. (Note, you cannot add a "now playing" song to the On-The-Go Playlist.) Repeat this for every song you want to have in the list. You can also look in the Albums menu, highlight the album title and press-and-hold that to add the complete album to your On-The-Go Playlists with one press. So if you add the two albums to your On-The-Go Playlist, you can then listen to just those two albums.
    To shuffle the songs, turn on Shuffle on your iPod. Either, go into Settings/Shuffle and press the Select button to toggle between Off/Songs/Albums, or on the Now Playing screen, press the Select button three times to reach the Shuffle option, where you use the scroll wheel to move between Off/Songs/Albums, press the Select button to activate it.
    Having added songs to the On-The-Go Playlist, go into it and notice the list of songs and options to Save Playlist (New Playlist 1) or Clear Playlist. If you use Sync to manage your iPod (and that really is the best way by the way), the next Sync will transfer any unsaved On-The-Go and any New Playlist Xs that you have, back to your iTunes Library. You can even remove any song from the current On-The-Go Playlist by highlighting it (in the On-The-Go, obviously) and press-and-holding the Select button.
    If you need assistance in creating a Playlist in your iTunes Library, please ask.

  • HOW DO I KEEP AN ARRAYLIST IN RANDOM ORDER AFTER EXITING THE SUB ROUTINE CONTAINING IT

    PLEASE HELP!I am trying to go from VB4 which I loved to VB2010 which I find somewhat more challenging. I’ve searched the web for help and have adapted the following to my project. This code does
    rotate randomly through every card in the deck and displays unique cards until all have been drawn. BUT I want to draw one card
    only from the first “hat” of Boy’s names; then draw the second card from the second “hat” of Girl’s names and repeat this process until all cards in both decks have been drawn. How do I get the TextBox (OR any
    MsgBox) to display JUST ONE unique random card at a time so I can exit that deck and go to the next deck?
    On my form, I have two TextBoxes (to display the names (as drawn), two buttons (to re-load each deck once exhausted) and one command (&End)control (to end the process). I created two ArraysLists
    (to hold the Boys names and Girls names separately) and two ArrayLists to hold the cards for the random decks when created in code.
    I can
    NOT get this code to draw random UNIQUE names once I exit the deck. I have tried to ReDim the deck; randomly pull a card from the second (temp) deck, etc
    NOTHING seems to work.
    WHY does my deck lose randomness once I exit it?
    How can I fix it? I don’t understand this. Below is the code for the "hat" with the 10 girl's names.
    Also, when I don't loop through all the cards, I usually get "An Out of Index exception was not handled" error. Hope someone can help me with this problem. It seems like this should
    be easy BUT I'm baffled. Thank you for any help.
    Imports System.Collections.Generic
    Public Class Form1
    Dim Count As Integer
    Dim Rcard As New ArrayList
    Dim Dcard As New ArrayList
    Dim NewRDeck As New ArrayList
    Dim NewDDeck As New ArrayList
    Dim temp_Rnum As Integer
    Dim temp_Dnum As Integer
    Dim MyRand As New Random()
    Public Sub Rcards_Click(sender As Object, e As System.EventArgs) Handles Rcards.Click
    While Rcard.Count > 0
    Dim temp_Rnum As Integer = Int(MyRand.Next(Rcard.Count))
    NewRDeck(temp_Rnum) = Rcard(temp_Rnum)
    Rem Check that the ArrayLists work correctly and display properly
    MsgBox(Rcard(temp_Rnum), , "New random card selected is: ")
    Console.WriteLine(Rcard(temp_Rnum))
    Rcard.Text = (Rcard(temp_Rnum))
    REM Now remove the Rcard with the random number generated so it can't be drawn again
    Rcard.RemoveAt(temp_Rnum)
    End While
    REM When all 10 cards have been picked, alert player to re-load deck if desired.
    MsgBox("No new cards left in deck; please Re-Load the cards. Thank you.")
    EndSub
    End Class

    Hi Acamar,
    Thank you for such a fast response. Sorry if my text wasn't clear. I'm really struggling with creating unique random elements in Collections in VB2010 and feel I understand ArrayLists better than some of the other Collection types.The code works perfectly
    and generates unique random cards until the original deck is exhausted. Then it prompts the user to re-load the original deck so it can be reused if needed. But I need to draw one card only and exit the deck. Then when I click on the TextBox again, I want
    that deck to be in the same random order - just minus any cards I have already drawn and thrown away.  Thanks again for your help.
    Here's the rest of the code for just the girl's "hats" of names, if it helps:
    Private Sub btnShuffleRCards_Click(sender
    As System.Object, e
    As System.EventArgs)
    Handles btnShuffleRCards.Click
    Dim j As
    Integer
    For j = 1 To 10
    NewRDeck.Add(j)
    Next j
    Randomize()
    REM Create original Deck with names for the girls.
    Rcard.Add("1 HELEN”)
    Rcard.Add("2 OLIVIA")
    Rcard.Add("3 <st1:city w:st="on"><st1:place w:st="on">ALICE</st1:place></st1:city>")
    Rcard.Add("4 VALERIE")
    Rcard.Add("5 DONNA")
    Rcard.Add("6 ZELDA")
    Rcard.Add("7 MARGARIE")
    Rcard.Add("8 <st1:city w:st="on"><st1:place w:st="on">NANCY</st1:place></st1:city>")
    Rcard.Add("9 WANDA")
    Rcard.Add("10 IRENE")
    End Sub

  • Selector.selectedKeys() random ordering vs. fairness

    All Sun's selector implementations are based on SelectorImpl, which keeps selectedKeys in a classic HashSet with a random order of elements.
    Now, suppose I insist on processing the incoming requests in the exact order as they were received, to ensure fairness. The classic mechanism for ensuring fairness are threads, but this a single-thread solution, and even with threads, it would be more fair to dispatch firstly-received requests first.
    So far the only solution seems to be a dirty (should I say dodgy) replace (via reflection) of the aforementioned HashSet with a LinkedHashSet. (tested on Linux/epoll, works)
    If you know of any other solution please let me know.

    Hi, thanks for replying to both of my comments. (the other thread: http://forum.java.sun.com/thread.jspa?threadID=407203&tstart=0 )
    These two issues are correlated so I will sum it up here, as the other thread is old and in a wrong forum.
    I'm getting the following results:
    1. only a single OP_ACCEPT is signalled in any given select() operation
    2. OP_READs are grouped to a single select(), no matter what time intervals they came in
    Tested on Windows (sun.nio.ch.WindowsSelectorImpl) and Linux (sun.nio.ch.EPollSelectorImpl).
    The accepts are fired inside of 100ms (linux) and 50ms (windows). The reads are split into 3 groups separated by 5 second wait.
    I'm attaching my test program. The two tests are separated and must be manually switched on.
    import java.net.InetSocketAddress;
    import java.net.Socket;
    import java.nio.ByteBuffer;
    import java.nio.channels.SelectionKey;
    import java.nio.channels.Selector;
    import java.nio.channels.ServerSocketChannel;
    import java.nio.channels.SocketChannel;
    import java.util.Iterator;
    public class test2 {
         public static void main(String[] args) throws Exception {
              server server = new server();
              server.bind();
              int test = 1;
              p("running test " + test);
              if(test == 1) { //test the partitioning of read events into more select() operations
                   client cc[] = new client[30];
                   for(int i = 0; i < cc.length; i++) {
                        cc[i] = new client("" + i);
                        cc.connect_to_server();
                   while(server.process_a_single_loop()); //process all the accepts
                   for(int i = 0; i < cc.length; i++) { //send requests in 3 groups separated by 2 waits
                        cc[i].send_data_to_server("hello");
                        if(i == 9 || i == 19) {
                             p("waiting 5 sec");
                             Thread.sleep(5000L);
                   while(server.process_a_single_loop()); //now process the reads
                   p("done");
              if(test == 2) { //test the grouping of more accept events into a single select() operation
                   connect_thread tt[] = new connect_thread[30];
                   client cc[] = new client[30];
                   for(int i = 0; i < cc.length; i++) {
                        cc[i] = new client("" + i); //create new clients
                        tt[i] = new connect_thread(cc[i]); //create connector threads
                   //now quick-start the threads
                   long max = 0L, start = System.currentTimeMillis();
                   for(int i = 0; i < tt.length; i++)
                        tt[i].start();
                   Thread.sleep(1000L); //let the dust settle
                   for(int i = 0; i < tt.length; i++) { //gather client connect time statistics
                        if(max < tt[i].finished)
                             max = tt[i].finished;
                   p("all connections happened inside of " + (max - start) + " ms");
                   while(server.process_a_single_loop()); //now process the accepts
                   p("done");
              server.unbind();
         static class connect_thread extends Thread {
              client c;
              long finished;
              connect_thread(client c) {
                   this.c = c;
              public void run() {
                   try {
                        c.connect_to_server();
                        finished = System.currentTimeMillis();
                   catch(Exception e) {
                        e.printStackTrace();
         static void p(Object o) {
              System.out.println(o);
         static class server {
              ServerSocketChannel server_chan;
              Selector server_selector;
              int loop;
              void bind() throws Exception {
                   server_chan = ServerSocketChannel.open();
                   server_selector = Selector.open();
                   server_chan.socket().bind(new InetSocketAddress (8401));
                   server_chan.configureBlocking(false);
                   server_chan.register(server_selector, SelectionKey.OP_ACCEPT);
                   p("Used selector implementation: " + server_selector.getClass().getName());
              boolean process_a_single_loop() throws Exception {
                   boolean anything_done = false;
                   loop++;
                   p("server - processing loop " + loop);
                   server_selector.selectNow();
                   Iterator<SelectionKey> it = server_selector.selectedKeys().iterator();
                   while(it.hasNext()) {
                        anything_done = true;
                        SelectionKey key = it.next();
                        if(key.isAcceptable()) {
                             ServerSocketChannel server = (ServerSocketChannel) key.channel();
                             SocketChannel channel = server.accept();
                             channel.configureBlocking(false);
                             channel.register(server_selector, SelectionKey.OP_READ, channel);
                             p("server - accepted a new connection");
                        if(key.isReadable()) {
                             anything_done = true;
                             SocketChannel channel = (SocketChannel) key.attachment();
                             ByteBuffer bb = ByteBuffer.wrap(new byte[10000]);
                             channel.read(bb);
                             bb.flip();
                             String s = new String(bb.array(), bb.position(), bb.limit() - bb.position(), "UTF-16");
                             p("server - received data: " + s);
                        it.remove();
                   return anything_done;
              void unbind() throws Exception {
                   server_chan.close();
         static class client {
              String id;
              Socket socket;
              client(String id) throws Exception {
                   this.id = id;
              void connect_to_server() throws Exception {
                   socket = new Socket();
                   //s.setTcpNoDelay(true);
                   socket.connect(new InetSocketAddress("localhost", 8401));
              void send_data_to_server(String data) throws Exception {
                   String buf = "hello from " + s() + ": " + data; // + "\n";
                   socket.getOutputStream().write(buf.getBytes("UTF-16"));
              String s() {
                   return "client[" + id + "]";
    I think I can solve this "unfairness" problem by having a dedicated thread constantly transferring any new events from the selector to my own queue - the select() would be called frequently enough to get the events properly ordered.

  • When I listen to music on Apple TV 2 my pictures from iPhoto come in, but always the same album (which I nevr asked for), always in random order and always in a different format. How can I control what is going on and choose the album myself.

    When I listen to music on Apple TV 2 my pictures from iPhoto come in aafter about ten minutes, but always the same album (which I never asked for), always in random order and always in a different format. How can I choose a different album myself and control the order and format?

    Thank you Winston for a helpful response and for reminding me of something which I found nearly a year ago and then lost (in my mind) because I did not use it. I am grateful for a correct answer but it still only achieves part of what I wanted.
    I can now choose my photos, decide how long they stay on screen and choose one of a variety of presentations. Two things I still can't do.
    One is to get it to play the photos in the chronological order in which I have carefully set them in an album; it still tends to be random and repetitive. The other is that I cannot get any of them them to saty on screen for more than about 20 seconds. I guess this is all due to the way Apple TV is constructed.
    But still thanks, nevertheless.
    Alec

  • BUG: Playback Fails When Loading A Random Video - Firmware 1.2

    I've been looking all over on where to post a bug, and for a fix for this bug I found. Not many seem to be having this problem (I assume not many are trying to randomly play a video from a video playlist)
    BUG: Playback Fails When Loading A Random Video
    iPod FIRMWARE: 1.2
    PROBLEM (1): When pressing "Play" on a video playlist or on 'Music Videos' while the iPod is set to Random->Song, the iPod displays a white playback screen, displays song 0 of 0, empty duration bar and a duration time of 0:00/-0:00.
    PROBLEM (2): After successful playing a seleted video within a video playlist or music video list, the iPod attempts to play a randomly choosen video (HDD clicks abnormally) but times-out and returns the user to the Playlist selection screen.
    iPod MODEL: 60GB Video - Black [Bought in NOV 05]
    If anyone knows how to report a bug, or anyone else having this problem (Try it on you iPod, post your results!) let me know!

    I've been looking all over on where to post a bug...If anyone knows how to report a bug let me know!
    If you want to post a bug report for Apple to see, then this wouldn't be the place to post it (Apple employees rarely look on these forums; all other regular posters on here are just users that like to help others).
    To tell Apple about this, select "Bug Report" under "Feedback Type" on their Feedback form for iPods here -> iPod Feedback
    I hope this helps you,
    -Kylene
    If any post helps or solves your issue, please mark it that way accordingly. Thank you for helping the boards!

  • IPhone 3G displaying emails in random order / not displaying some at all

    My iPhone is displaying emails in random order - mainly oldest first at the moment. Since I can't set viewing preferences I would like to know how to get iPhone mail back to normal behaviour. For some reason it is not displaying emails from 5 December to 30 November as well.
    I have deleted my .mac mail account and re-instated it to no avail.
    I should add that my mac.com webmail is behaving similarly strangely. Instead of displaying emails by most recent first it decided to display them by oldest first.
    Since I have not done anything differently and this behaviour came out of the blue I am pretty puzzled.
    Mail.app on my Powerbook works fine btw.

    First try Resetting it: Hold down the home and sleep button, ignore the red OFF slider, wait for the Apple logo then let go.
    If that does not work, Restore your iPhone in iTunes from your backup.
    If that still does not fix it, Restore your iPhone and a new phone (not from backup) and see how it works. If it is doing fine you have a app you are using that is probably causing your problem. Load them one and a time until the problems recur and you will have found the one that is a problem.

  • Importing .dv clips from hard drive -- clips imported in random order

    I use Firewire DTE drives with my camera when filming. Previously I could connect the drives to my computer via firewire and then import the clips into iMovie HD and the clips would go into the clip sorter in chronological order.
    As of about two weeks ago my clips have started showing up in the clip sorter in completely random order. My projects are typically about 400 clips, so going through and getting them in order takes forever.
    Any ideas?

    See attached discussion:
    http://discussions.apple.com/thread.jspa?messageID=8997363&#8997363
    Instead of renaming them manually you can use a program such as namemangler: http://www.manytricks.com/namemangler/ to change the names at a batch

  • Safari 6.1 sends files in random order to flash uploaders?

    Here are two demo sites of popular flash uploaders where you can easily recreate the issue.
    http://img.hompee.com/fupload/simpledemo/
    http://www.uploadify.com/demos/
    If you upload 2 or more files you expect them to be uploaded in the order in which they display in Finder. This is the case for all versions of Safari apart from 6.1. Safari 6.1 sends the files in a random order. I have had 30+ reports about this. I don't have Safari 6.1. I accessed a clients computer and its bizzare. Safari 7 doesn't have this issue. Neither does Safari 6.05.
    Has anyone else experienced this problem? Does anyone know of any fixes or news of a fix?

    Hello,
    There are no files like that in that folder (com.apple.safari).  They all have long numbers with .jpeg or .png at the end.  That's what I meant by I cannot find any files like those mentioned in all the helps I read today.  BTW-it's still crashing - no particular pattern to it at all.
    The only two things I have downloaded recently is a new version of Flash and a Mac-driven update to Office.
    Thank you very much for your attempt to help us.
    J.

  • Playing tunes in a playlist in random order

    How does one set music in a playlist to play in random order (is that the same as 'shuffle'?)
    Within my various playlists I've set them all to be 'shuffle' by clicking on the shuffle button in the bottom-left of the itunes screen (the button turns blue to show it's been depressed). However, all the playlists still play in the default order. This also happens in the main music window.
    I get so bored with the same old tune starting each time I switch my ipod on! (It happens in both my ipod classic and my iphone 3GS)
    I'd also like to have my podcasts play automatically in the order they were added. Is that possible?
    Appreciate any help. Thanks.

    How they play and how they are displayed in iTunes are two different things.
    If Shuffle is turned On, the songs will play shuffled. If you sort on the first column (with the numbers), the songs will be sorted and displayed in the Shuffled order. (turn Shuffle off and on and songs will be displayed in different order)
    If you sort on any other column, the playlist will still be displayed in that order but the song playing song will jump around.
    If Shuffle is turned Off, songs will play in order of the column you are sorted on.

  • SQL Loader and record order

    I am using sqlloader utility to load data from a CSV file in to a table.
    My .ctl file looks as below
    ------- 8< -------
    options (errors=5,SILENT=(HEADER, FEEDBACK),direct=true)
    load data
    infile "mytest.csv"
    discardmax 0
    into table owneruser.MY_TABLE
    fields terminated by "," optionally enclosed by "##"
    (ID, ID1, VAL, VAL2)
    ------- 8< -------
    sqlldr tool is run with this ctl file by another database user who has sufficient privileges to insert this data in to mytest.csv has about 400000 entries each entry maps to one row in MY_TABLE. Before loading data using the sqlldr MY_TABLE is truncated.
    In mytest.csv, the value for ID field is a number starting at 1 which keeps incrementing by 1 for the next entry. The records are ordered by ID in the csv file.
    After loading the data using sqlldr, when we query MY_TABLE (select * from MY_TABLE), so far the records are returned in same order in which they were inserted (i.e. ordered by ID). But off late they are not being returned in random order. This happens only on one database instance. On other test instances the the resultset is ordered. I agree that the only way the order can be guaranteed is by using the ORDER BY clause.
    But, I was wondering why this has worked even when ORDER BY is not used.
    This is the only way in which MY_TABLE is manipulated. Rest all use it only for querying.
    ID is the primary key column in MY_TABLE and there is an index on (ID, ID1).
    Thanks in advance.
    S

    There are any number of reasons that the data would be coming back in a different order since you're not using an ORDER BY. My guess is that the most likely reason is that you have one or more extents in your table that is physically before another extent that it is logically after, in which case a full scan would read that extent first. You may also be seeing differences in how ASSM happens to choose which block to insert into, in the use of parallelism, etc.
    Justin

  • Random order of adverts in inDesign document

    Hi!
    I have a monthly publication with about 18 pages of adverts with two to 6 adverts on each page. Every month I have to randomly change the order to make sure sometimes people are towards the fropnt, sometimes near the back. Is there any plugin or way to automate the process and randomly change the order of the advert groups?
    Cheers,
    Matt

    Put the photos in an album and manually sort them in as a random order as you can. The in your iDVD project, create a slideshow, enter the slideshow mode and under the Media pane, select that album and drag it into the sideshow window at the left. The order will be the same that you created in the album.
    Or, if you click on the album and use the Share->Send to iDVD the order will be the same as the album.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Message was edited by: Old Toad

  • Podcasts syncing in random order

    I just downloaded itunes 9 and 3.1.1 for my second gen ipod touch. Now my podcasts appear to be in random order on the touch. They are in order in itunes. Any idea on how to sort them so they play by date episode?

    Just as an update, I did spend about an hour working with Apple Support and a product specialist going through this problem. We tried several things but bottom line this is a bug with the interface between iTunes and iPodTouch OS 3.1.1.
    If you create a manual play list - e.g. drag and drop items onto a playlist, then you can sort and manually drag it to the iPod under iTunes Devices and the sorted list shows up on the iPod correctly. When you create a Smart Playlist - say the most recently added 25 podcasts, and manually move it to the iPod the sort stays mostly correct, but in my case the playlist on the iPod correctly showed the sort for 23 of the 25 podcast, but two older podcasts from the drag-n-drop playlist showed up on the iPod instead of the other 2 that should have been there.
    Also, as soon as you use use the iTune Sync button, the list gets randomized again.
    I also asked about downgrading the iPod software back to 3.1.0, but was told that there is no way to go backwards once the update is on the iPod. It only authenticates if you are trying to put on the current or new release.
    So in the meantime, for me it means I won't be using my iPod Touch for any podcasts, but instead have blown the dust off my old 30Gb iPod (pre-classic), which does not have a problem with the playlist sort - but then again it doesn't use the same OS 3.1.1...
    Tom

Maybe you are looking for

  • Error when installing Oracle Identity Manager 9.1.0.1

    Hello friends, I installed Oracle Identity Manager 9.1.0.2 Oracle Weblogic Server on a cluster, at the time of treaties authenticated in the web console of Oracle Identity Manager, I get the following message: A system error was encountered. View the

  • Extract data from xml file and insert into another exiting xml fil

    hello, i am searching extract data from xml file and insert into another exiting xml file by a java program. I understood it is easy to extract data from a xml file, and how ever without creating another xml file. We want to insert the extracted data

  • Reservation not visible in MD04 but visible in MMBE

    Hi Everyone, I am facing a problem . Reservations of materials are visible in the Tcode MMBE but those reservations are not visible in Tcode MD04. Please help me in this Thanks Bijay Prasad

  • Which Color Wheel, please ?

    This matter has been bothering me for many years now. I wonder if and how many Kuler users are actually aware of this, but the Adobe Kuler color wheel is spatially based on some perceptual color theory and harmony, and not the color wheel for technic

  • How many have had only minor issues with ML?

    Since most of these threads are for relatively negative things and upgrade disasters, just curious how many folk's upgrades were smooth? Other than iPhoto stop working and needed to be reinstalled and updated I went from Snow Leopard to Mountian Lion