Java Linear, Quicksort, Binary Time Calc Problems

Objective of program: Simple program demonstrating the time it takes to do each algorithm.
My approach:
1) Prompt a number
2) Make array of linear ints
3) Calculate time it takes for a linear search
4) Repeat for quick sort, and Binary search
Problems:
1) Linear search time is always 0
2) Quick sort never ends.
3) Don't know if binary works yet since it never goes beyond quicksort.
Any help or suggestions are greatly appreciated.
import java.util.Date;
import java.util.ArrayList;
import java.util.Random;
import java.util.Arrays;
import java.util.Scanner;
public class Driver {
     public static void main(String[] args) {
          Random generator = new Random();               
          int[] linear = new int[1000000];                           // Create Linear Array
          for(int i = 0; i < linear.length; i++)                 // filling up the array
               linear[i] = i;
          Scanner input = new Scanner(System.in); 
          System.out.print("Please enter number to search: ");       // Asks
          int search = input.nextInt();                              // Stores number
          Date end = new Date();                                   // Create Timer          
          long startTime1 = end.getTime();                           // Start Time
          for(int i = 0; i < linear.length; i++) {               // Linear Search
               if (linear[i] == search) {
                    long endTime1 = end.getTime();                 // If found, end time
                    System.out.println("Time of Linear search: " + (endTime1 - startTime1));          // Prints elapsed time
                    break;
          int[] quicksort = new int[1000000];                    // Creates quicksort array
          for(int i = 0; i < quicksort.length; i++)                // Initializes the array
               quicksort[i] = generator.nextInt(100000);
          long startTime2 = end.getTime();                         // Starts the time
          for(int i = 0; i < 1000000; i++)                         // Sorts...
               Arrays.sort(quicksort);
          long endTime2 = end.getTime();                         // Ends time
          System.out.println("Time of QuickSort: " + (startTime2 - endTime2));               // Prints elapsed time
          int[] binary = new int[1000000];                         // Creates binary array
          for(int i = 0; i < binary.length; i++)                    // Initializes binary array
               binary[i] = generator.nextInt();
          long startTime3 = end.getTime();                         // Start time
          Arrays.binarySearch(binary,search);                      // Binary Search
          long endTime3 = end.getTime();                         // Ends time
          System.out.println("Time of Binary Search: " + (endTime3 - startTime3));     // Prints out time
}Edited by: onguy3n on Mar 26, 2009 4:39 AM

ibanezplayer85 wrote:
Any help or suggestions are greatly appreciated.
Suggestion: Break your code up into different methods and even separate classes, if necessary; don't just use main for everything. Maybe you posted it this way to have it all in one class for the forum to read, but it's very confusing to look at it and understand it this way. I know that this isn't an answer to your question, but you did ask for suggestions :)Thanks, it was just a demonstration program in class so he didn't really care about readability, but yes I should have separated it in a different class.
>
Linear search time is always 0I'm not sure what the convention is, but whenever I needed to measure time for an algorithm, I used System.currentTimeMillis(); rather than the Date class.
e.g.
long startTime = System.currentTimeMillis();
long endTime = System.currenTimeMillis();
long totalTime = endTime - startTime;Although, I think if you're not printing anything out to the console, it will most likely print out 0 as the time (because most of the processing is working on printing out the data). That is, unless you're doing some heavy processing.Thanks! I tried System.currentTimeMillis() and it now works. I still don't understand your explanation why it prints out 0 though :(
>
Quick sort never ends.I think it's just taking a while. It's not an efficient algorithm with a worst case time complexity of O(n^2) and you gave it a very large array of random values to work with. I wouldn't be surprised if you ran out of heap space before it finished. If you knock off some zero's on the array size, you'll see that it does, in fact, finish.Ok, thanks! In class we didn't talk much about the heap. How do I calculate how much heap space my program will use and how to allocate more? I vaguely remember something like xmx512m or something as the parameter, but every time I get an error:
Unrecognized option: -xmx512m
Could not create the Java virtual machine.

Similar Messages

  • Can't install netbeans 8 on windows 7 ultimate 32 bit (Java Platform SE binary has stopped working), problem event name : BEX

    I can't install netbeans 8 on my windows  7 ultimate 32 bit. Please help me.. This is the error message :
    Java Platform SE binary has stopped working
    Problem signature:
      Problem Event Name:    BEX
      Application Name:    java.exe
      Application Version:    8.0.5.13
      Application Timestamp:    53280287
      Fault Module Name:    StackHash_2264
      Fault Module Version:    0.0.0.0
      Fault Module Timestamp:    00000000
      Exception Offset:    00000040
      Exception Code:    c0000005
      Exception Data:    00000008
      OS Version:    6.1.7600.2.0.0.256.1
      Locale ID:    1033
      Additional Information 1:    2264
      Additional Information 2:    2264db07e74365624c50317d7b856ae9
      Additional Information 3:    875f
      Additional Information 4:    875fa2ef9d2bdca96466e8af55d1ae6e
    Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt

    1. I had similar problem and upgrade of BIOS has helped.
    2. Try Oracle support forum if 1 does not help.
    Rgds
    Milos

  • Java Platform SE binary has stopped working

    I have a strange problem with my system. If I have a jar or an applet running, then try to launch a second jar or applet, I get an error stating:
    Java Platform SE binary has stopped working
    Details:
    Event: APPCRASH
    Application: javaw.exe (or java.exe)
    version: 6.0.260.3
    timestamp: 4dc1160c
    Fault Module: java.dll
    Fault Version: 6.0.260.3
    Fault TimeStamp: 4dc14bf1
    Exception Code: c0000005
    offset: 00004e2f
    OS version: 6.1.7600.2.0.0.256.48
    Locale ID: 1033
    Additional 1: 1ec0
    Additional 2: 1ec0fd70d07d06e5bfcf53c69ad1739
    Additional 3: 2c48
    Additional 4: 2c48940de5e7d1cb2e131ad6a0ca2feb
    My system is a MACbook Pro running Windows 7 64-bit via bootcamp (yes, I'm booting into Windows). I have both java 32-bit and java 64-bit installed on my system. The executables are located in all the correct paths (I think) C:\Program Files, C:\Program Files (x86), and C:\Windows\System32. I've uninstalled and reinstalled all java versions multiple times and have tried executing the installer as the Admin (I have full admin rights). I also tried disabling the Symantec Endpoint protection during installation. A few other users in my company are also using the exact same system set up as I am; however, they are not having this problem. We are releasing a Netbeans based development tool to our customers very soon (it's out in Beta form now), so I really need to get this issue resolved. Does anyone have an idea on how to fix this?
    Thank you!!

    I have the same problem. I have un installed and installed java jre n jdk 6 and 7 versions multiple times. I am also runing win 7 64bit OS on macbook. I am getting this problem at the time of installation and running of both oracle OBIEE and jasper BI suits. Because of this error I tried installation of these products even after formatting my pc several times with brand new installation of BI products.

  • How to use 2 webcam for java at the same time?

    hi there,
    I have a question to ask regarding webcam and java. Basically i want to know whether is it possible to have 2 web cam running in java at the same time? I have no problem when running one usb webcam since i m using "
    ml = new MediaLocator("vfw://0") ;
    what parameter must i use to specify when using 2 web cam
    many thanks
    sun

    Hi
    I am making a project in which i have to capture a image through webcam. How can I do it will you please guide me or if can provide me code. Many thanks for your support. My email id is [email protected]

  • I just updated my latest java but the update is causing problems with some externale devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device

    i just updated my latest java but the update is causing problems with some external devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device.
    Is this possible and how do i do that?
    Anyone who responds thanks for that!
    Juko
    I am running
    Hardware Overview:
      Model Name:          Mac Pro
      Model Identifier:          MacPro1,1
      Processor Name:          Dual-Core Intel Xeon
      Processor Speed:          2,66 GHz
      Number of Processors:          2
      Total Number of Cores:          4
      L2 Cache (per Processor):          4 MB
      Memory:          6 GB
      Bus Speed:          1,33 GHz
      Boot ROM Version:          MP11.005D.B00
      SMC Version (system):          1.7f10
      Serial Number (system):          CK7XXXXXXGP
      Hardware UUID:          00000000-0000-1000-8000-0017F20F82F0
    System Software Overview:
      System Version:          Mac OS X 10.7.5 (11G63)
      Kernel Version:          Darwin 11.4.2
      Boot Volume:          Macintosh HD(2)
      Boot Mode:          Normal
      Computer Name:          Mac Pro van Juko de Vries
      User Name:          Juko de Vries (jukodevries)
      Secure Virtual Memory:          Enabled
      64-bit Kernel and Extensions:          No
      Time since boot:          11 days 20:39
    Message was edited by Host

    Java 6 you can't as Apple maintains it, and Java 7 you could if you uninstall it and Oracle provides the earlier version which they likely won't his last update fixed 37 remote exploits.
    Java broken some software here and there, all you'll have to do is wait for a update from the other parties.

  • Java Audio Metronome | Timing and Speed Problems

    Hi all,
    I’m starting to work on a music/metronome application in Java and I’m running into some problems with the timing and speed.
    For testing purposes I’m trying to play two sine wave tones at the same time at regular intervals, but instead they play in sync for a few beats and then slightly out of sync for a few beats and then back in sync again for a few beats.
    From researching good metronome programming, I found that Thread.sleep() is horrible for timing, so I completely avoided that and went with checking System.nanoTime() to determine when the sounds should play.
    I’m using AudioSystem’s SourceDataLine for my audio player and I’m using a thread for each tone that constantly polls System.nanoTime() in order to determine when the sound should play. I create a new SourceDataLine and delete the previous one each time a sound plays, because the volume fluctuates if I leave the line open and keep playing sounds on the same line. I create the player before polling nanoTime() so that the player is already created and all it has to do is play the sound when it is time.
    In theory this seemed like a good method for getting each sound to play on time, but it’s not working correctly.
    At the moment this is just a simple test in Java, but my goal is to create my app on mobile devices (Android, iOS, Windows Phone, etc)...however my current method isn’t even keeping perfect time on a PC, so I’m worried that certain mobile devices with limited resources will have even more timing problems. I will also be adding more sounds to it to create more complex rhythms, so it needs to be able to handle multiple sounds going simultaneously without sounds lagging.
    Another problem I’m having is that the max tempo is controlled by the length of the tone since the tones don’t overlap each other. I tried adding additional threads so that every tone that played would get its own thread...but that really screwed up the timing, so I took it out. I would like to have a way to overlap the previous sound to allow for much higher tempos.
    I posted this question on StackOverflow where I got one reply and my response back explains why I went this direction instead of preloading a larger buffer (which is what they recommended). In short, I did try the buffer method first, but I want to also update a “beat counter” visual display and there was no way to know when the hardware was actually playing the sounds from the buffer. I mentioned that on StackOverflow and I also asked a couple more questions regarding the buffer method, but I haven’t received any more responses.
    http://stackoverflow.com/questions/24110247/java-audio-metronome-timing-and-speed-problems
    Any help getting these timing and speed issues straightened out would be greatly appreciated! Thanks.
    Here is my code...
    SoundTest.java
    import java.awt.*; 
    import java.awt.event.*; 
    import javax.swing.*; 
    import javax.swing.event.*; 
    import java.io.*; 
    import javax.sound.sampled.*; 
    public class SoundTest implements ActionListener { 
        static SoundTest soundTest; 
        // ENABLE/DISABLE SOUNDS 
        boolean playSound1  = true; 
        boolean playSound2  = true; 
        JFrame mainFrame; 
        JPanel mainContent; 
        JPanel center; 
        JButton buttonPlay; 
        int sampleRate = 44100; 
        long startTime;  
        SourceDataLine line = null;  
        int tickLength; 
        boolean playing = false; 
        SoundElement sound01; 
        SoundElement sound02; 
        public static void main (String[] args) {        
            soundTest = new SoundTest(); 
            SwingUtilities.invokeLater(new Runnable() { public void run() { 
                soundTest.gui_CreateAndShow(); 
        public void gui_CreateAndShow() { 
            gui_FrameAndContentPanel(); 
            gui_AddContent(); 
        public void gui_FrameAndContentPanel() { 
            mainContent = new JPanel(); 
            mainContent.setLayout(new BorderLayout()); 
            mainContent.setPreferredSize(new Dimension(500,500)); 
            mainContent.setOpaque(true); 
            mainFrame = new JFrame("Sound Test");                
            mainFrame.setContentPane(mainContent);               
            mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
            mainFrame.pack(); 
            mainFrame.setVisible(true); 
        public void gui_AddContent() { 
            JPanel center = new JPanel(); 
            center.setOpaque(true); 
            buttonPlay = new JButton("PLAY / STOP"); 
            buttonPlay.setActionCommand("play"); 
            buttonPlay.addActionListener(this); 
            buttonPlay.setPreferredSize(new Dimension(200, 50)); 
            center.add(buttonPlay); 
            mainContent.add(center, BorderLayout.CENTER); 
        public void actionPerformed(ActionEvent e) { 
            if (!playing) { 
                playing = true; 
                if (playSound1) 
                    sound01 = new SoundElement(this, "Sound1", 800, 1); 
                if (playSound2) 
                    sound02 = new SoundElement(this, "Sound2", 1200, 1); 
                startTime = System.nanoTime(); 
                if (playSound1) 
                    new Thread(sound01).start(); 
                if (playSound2) 
                    new Thread(sound02).start(); 
            else { 
                playing = false; 
    SoundElement.java
    import java.io.*; 
    import javax.sound.sampled.*; 
    public class SoundElement implements Runnable { 
        SoundTest soundTest; 
        // TEMPO CHANGE 
        // 750000000=80bpm | 300000000=200bpm | 200000000=300bpm 
        long nsDelay = 750000000; 
        long before; 
        long after; 
        long diff; 
        String name=""; 
        int clickLength = 4100;  
        byte[] audioFile; 
        double clickFrequency; 
        double subdivision; 
        SourceDataLine line = null; 
        long audioFilePlay; 
        public SoundElement(SoundTest soundTestIn, String nameIn, double clickFrequencyIn, double subdivisionIn){ 
            soundTest = soundTestIn; 
            name = nameIn; 
            clickFrequency = clickFrequencyIn; 
            subdivision = subdivisionIn; 
            generateAudioFile(); 
        public void generateAudioFile(){ 
            audioFile = new byte[clickLength * 2]; 
            double temp; 
            short maxSample; 
            int p=0; 
            for (int i = 0; i < audioFile.length;){ 
                temp = Math.sin(2 * Math.PI * p++ / (soundTest.sampleRate/clickFrequency)); 
                maxSample = (short) (temp * Short.MAX_VALUE); 
                audioFile[i++] = (byte) (maxSample & 0x00ff);            
                audioFile[i++] = (byte) ((maxSample & 0xff00) >>> 8); 
        public void run() { 
            createPlayer(); 
            audioFilePlay = soundTest.startTime + nsDelay; 
            while (soundTest.playing){ 
                if (System.nanoTime() >= audioFilePlay){ 
                    play(); 
                    destroyPlayer(); 
                    createPlayer();              
                    audioFilePlay += nsDelay; 
            try { destroyPlayer(); } catch (Exception e) { } 
        public void createPlayer(){ 
            AudioFormat af = new AudioFormat(soundTest.sampleRate, 16, 1, true, false); 
            try { 
                line = AudioSystem.getSourceDataLine(af); 
                line.open(af); 
                line.start(); 
            catch (Exception ex) { ex.printStackTrace(); } 
        public void play(){ 
            line.write(audioFile, 0, audioFile.length); 
        public void destroyPlayer(){ 
            line.drain(); 
            line.close(); 

    Thanks but you have never posted reply s0lutions before ?? And F 4 is definitely not 10 times faster as stated before I upgraded !!

  • JAVA(TM) SE binary has stopped working

    Dear Experts,
    We have JAVA SE 7 version and it was working fine earlier however from last week we could not use SAP PI in Internet Explorer due to the error JAVA(TM) SE Binary has stopped working.
    we have uninstalled all the JAVA from the desktop and re-installed but there was no luck.
    Please help me to sort it out this issue.
    in detailed view i got the below message.
    Problem signature:
    Problem Event Name: APPCRASH
    Application Name: javaw.exe
    Application Version: 7.0.250.17
    Application Timestamp: 51c4b1ff
    Fault Module Name: jvm.dll
    Fault Module Version: 23.25.0.1
    Fault Module Timestamp: 51c4bb9c
    Exception Code: c0000094
    Exception Offset: 00000000002970d9
    OS Version: 6.1.7601.2.1.0.16.7
    Locale ID: 6153
    Additional Information 1: 7fd2
    Additional Information 2: 7fd27114125d9a11bdaaf0a55d467c1e
    Additional Information 3: c523
    Additional Information 4: c5233889195b66df77e48e2eea95e687
    Read our privacy statement online:
    http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409 
    If the online privacy statement is not available, please read our privacy statement offline:
    C:\Windows\system32\en-US\erofflps.txt

    Hi,
    In order to narrow down the cause of the issue, would you please provide the complete error you received? In addition, have you tried to uninstall Java completely and download latest version
    from http://www.java.com/en/ to see if it could resolve the issue?
    Best Regards,
    Andy Qi
    Andy Qi
    TechNet Community Support

  • Linear and Binary Searching of Parallel Arrays

    I'm an AP student who used the "Fundamentals of Java" by Lambert/Osborne 3rd Edition. This text book has code that doesn't match anything else I've found in other how-to's, guides, or teach yourself books. Not even online can I find code that matches up with the format used in this book!
    I've got an assignment that wants me to read in a 4 digit account number of N number of customers, places them in two parallel arrays. Data found in two separate txt files. Create a prompt that ask's for customer's account number then displays account balance. Same program for both linear and binary search methods (2 programs).
    I know the search method and how to read the files with a scanner. It is the body of the program that is stumping me. How to call and search the arrays themselves. Any help would be great.

    First of all, you have posted this question in the wrong place. Please post these kinds of general questions in the New to Java forum.
    Second, if you're in an AP class, don't you have a teacher you can ask?
    But anyway, here's the idea
    For a linear search, you go thru the array element by element, and on each element you call equals(x) to see if that element is equal to what you're searching for (note that primitives use == rather than equals)
    For binary search, note first of all that your data MUST BE COMPARABLE (primative or implement the comparable interface) and MUST BE SORTED.
    Then what you can do if go to the middle of the list, and if what you are searching for is less than that element, go to the middle of the first half of the list (if it's greater, go the the middle of the upper half of the list) and keep breaking the list in half until you've found the element or you know its not there.

  • Time out problem while uploading large bpel processes into oracle soa suite

    Hi everyone,
    I'm using oracle soa suite 10.1.3.4.0 and I'm encountering time out problem while trying to upload a 5MB bpel process into my bpel process server located in the LAN network. The error is coming from apache common file upload.
    Is there a way to increate the connection time out for oc4j to avoid this problem?
    Thanks for any help.
    Regards
    Esfand

    Hi Marc.
    Thanks for your reply. I increased the transaction manager time-out but still I have the same problem. I believe this is something related to oc4j settings and related to upload bpel process. here is my stack trace output:
    79: A problem occured while connecting to server "192.168.0.12" using port "8888": bpel_JazbModaresJadidBPEL_1.0.jar failed to deploy. Exception message is: javax.transaction.RollbackException: Timed out
    at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:94)
    at com.oracle.bpel.client.BPELDomainHandle.deploySuitcase(BPELDomainHandle.java:324)
    at com.oracle.bpel.client.BPELDomainHandle.deployProcess(BPELDomainHandle.java:341)
    at deployHttpClientProcess.jspService(_deployHttpClientProcess.java:376)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:400)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:414)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.oc4j.rmi.OracleRemoteException: An exception occurred during transaction completion: ; nested exception is:
    javax.transaction.RollbackException: Timed out
    at com.evermind.server.ejb.EJBTransactionManager.end(EJBTransactionManager.java:152)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:57)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    at DomainManagerBean_RemoteProxy_4bin6i8.deploySuitcase(Unknown Source)
    at com.oracle.bpel.client.BPELDomainHandle.deploySuitcase(BPELDomainHandle.java:319)
    ... 25 more
    Caused by: javax.transaction.RollbackException: Timed out
    at com.evermind.server.ApplicationServerTransaction.checkForRollbackOnlyWhileInCommit(ApplicationServerTransaction.java:664)
    at com.evermind.server.ApplicationServerTransaction.doCommit(ApplicationServerTransaction.java:273)
    at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:162)
    at com.evermind.server.ApplicationServerTransactionManager.commit(ApplicationServerTransactionManager.java:472)
    at com.evermind.server.ejb.EJBTransactionManager.end(EJBTransactionManager.java:137)
    ... 33 more
    Total time: 4 minutes 30 seconds
    The bpel jar file is about 2MB and is uploaded from my machine located in the same LAN.
    Any hints?
    Thanks
    Esfand

  • Help, I am about to pull my hair out, can't get into a locked drive and Time Machine problem

    I've screwed everything up, I think.  I had Time Machine doing backups to an external 500Gig drive and somehow it got locked.  I went into Get Info to try and change the access but it won't allow me.  On top of this problem, my original drive died and I can't get into Time Machine to restore.  When I click "Enter Time Machine", nothing happens.  I created an eDisk and a startup disk to another external drive that I'm using now, but since everything that's been backed up is on the other drive that I can't access.  When I try accessing the drive it gives:  "The folder “G-DRIVE ” can’t be opened because you don’t have permission to see its contents."  I'm not knowledgeable enough to work from the command line, so if I need to do that to access the drive, please walk me though it.  As for the Time Machine problem, I have no idea how to recover anything since it won't even come up, it just sits there.  Outside of blowing my brains out, I don't know what to do.  Any help would be greatly appreciated as I can't afford to take it to Apple to let them try and fix it.

    Hello, not sure how this might affect a TM drive, or not, but...
    Here is what i needed to do for my drive "320GB HD", the last command is just for clean up
    Open Terminal and type these commands carefully with the spaces & change 320GB HD to the name of your drive.
    sudo chflags 0 "/volumes/320GB HD"
    sudo chown root "/volumes/320GB HD"
    sudo chmod 1775 "/volumes/320GB HD"
    sudo -k
    That said, these should be sufficient to do the job:
    sudo chflags 0 "/Volumes/320GB HD"
    sudo chmod a+rx "/Volumes/320GB HD"

  • Time out problem in BPS

    BPS friends,
    We have a planning function to copy Versions based with some filters. The copy function takes 5 hours and times out after that. The function is reaching max buffer size as recommended by SAP so we cant increase the buffer size anymore.
    We are on BW-BPS 3.5.
    How can I solve this time out problem? Please respond to me.

    Hi Pat,
    How many record did you copy ??
    Could you restrict the copy in not 1 package ??
    Package per package ...
    I suggest you ..
    e.g. you have restriction by a 0CALMONTH / something ..
    Then,
    You can copy e.g. for January to March, then March to August, etc.
    You can automate it by planning sequence.
    Hopefully it can help you a lot.
    Regards,
    Niel.
    thanks for the points you choose to assign.

  • When I tap the mail icon on my iPhone 4s, the menu of email servers pops up.  I already have a me acct that I check all the time, no problem.  So I choose iCloud, sign in and it tells me that I already have an acct-.so why can't I get to my emails then?

    When I tap the mail icon on my iPhone 4s, the menu of email servers pops up.  I already have a me acct that I check all the time, no problem.  So I choose iCloud, sign in and it tells me that I already have an acct….so why can't I get to my emails then?  I've turned the phone off and on twice....that has fixed it in the past but not this time....

    all fixed ha

  • I have the latest version of free Quicktime, Itunes  and unable to view video on my PC all i get is a pink screen the audio is OK i have uninstalled and installed several times same problem, i have a Iphone 4 and unable to view the content.

    i have the latest version of free Quicktime, Itunes  and unable to view video on my PC all i get is a pink screen the audio is OK i have uninstalled and installed several times same problem, i have a Iphone 4 and unable to view the content.

    Open your QuickTime control panel (either via the Control panels, or by going "Edit > Preferences > QuickTime Preferences" in the Quicktime Player). In the Advanced tab, uncheck Enable Direct3D video acceleration:
    ... and click OK. Quit and restart the QuickTime Player prior to checking to see if the settings change has had any effect.

  • Time offset problems with file i/o

    Hello everyone, I'm having a problem with the file i/o VI's. I require my application to save serial data at constant five minute intervals. The problem I'm currently seeing is that on each save to a file a time offset is being added which eventually becomes seconds, then minutes and so on. Since this application is meant to be run for a whole year this is a serious problem.
    Attached is the VI, an Arduino program simulating how the DAQ sends data and a file showing my time offset problem. 
    Any ideas/suggestions/fixes are appreciated.
    Thanks
    Jose Molina
    P.S.
    To run the VI upload the code to an Arduino, select it's serial port in the popup VI then click on Ok. The VI will wait for a time that is a modulo of 5 then create a folder structure inside the same location as the LLB. Inside this folder structure should be a file with the data which should be saved every five minutes if left at the default averaging time.
    Attachments:
    7-8-2012.txt ‏3 KB
    Daq_Simulator.zip ‏1 KB
    Weather_DAQ.zip ‏117 KB

    Sorry I forgot to mention that the averaging time is configurable in the pop up vi at the start. I tried 20 seconds because it's much faster for testing than 5 minutes. Timing is being done by a simple counter that increments each time data is received. So if I receive data the timer increments by 5 because data is sent every 5 seconds. Once the timer is equal to the averaging time the data is sent to the enqueue function and then the blocking dequeue function on the second loop sends the data to the file save vi which then saves the data to the file. 
    Attachments:
    counter.PNG ‏13 KB

  • 2004s Java Web vs. ABAP Web Problem

    Hi, I have a BEx Query that outputs a time field.  I'm using this time field to display an actual duration of how long something took to run.  Example:  HH:MM:SS  (I know it can't be over 24hrs in time)
    When I execute the report using ABAP Web it is appearing as I would like, but when using JAVA Web it's showing up wrong.
    ABAP Web Shows 00:00:30 for 30 Seconds
    JAVA Web Shows 19:00:30 for 30 Seconds.
    By default the Query builder executes the JAVA Web so I'm only seeing the incorrect results.  Any ideas what would cause this and/or how to get Query Builder to execute the ABAP Web?
    THanks!

    Murray,
    could it be that the WAS JAVA is showing the time of completion for the same ?
    Arun

Maybe you are looking for

  • How can you determine at runtime which libraries are attached?

    Hi I am wondering if there is a way to determine which libraries are currently attached to a form at runtime. My application is in forms 10g. I am hoping to get the full path so that it is possible to show this in an information type display. I am id

  • Calling a Web Dynpro Application from POWL feeder class

    Hi, I know this question is asked before but never answered, but I try again...... I have a own POWL feeder class where I defined a button in method IF_POWL_FEEDER~GET_ACTIONS. I know that this action can be handled in method IF_POWL_FEEDER~HANDLE_AC

  • ANY SPEAKERS WITHOUT FLIGHT MODE?

    I was thinking about getting the Harman Kardon Go+Play Boombox for iPod but I don't want to put my phone in flight mode. Now that the Iphone has the video out function does anyone know if I can dock my phone in these speakers and use the video out fu

  • Doubt in Client Proxies Report Pragram

    Hi all, Now i came upto Generation & Activation of the ABAP Proxies Now its the time to write the Report to initiate the proxy. 1) In my ABAP data Dictionary(SE11) i have the Standard table and from there i have to access the data & Push it to XI usi

  • Memory vs. Processor upgrade?  Processor upgrade requires OS 9?

    I have a Power Mac G4 QS with a 733 MHz processor and 640 MB of RAM. I plan to use it mainly for video editing, and was thinking about upgrading the processor or RAM or perhaps both. My first question is, should I should upgrade just one (processor O