One small problem

Program Description
There is a group of mountain climbers. This program shows all possible combinations of mountain climbers if they are put into teams of 3. The user inputs the number of mountain climbers. Output uses letters to represent each mountain climber.
Example:
user input = 5
output : ABC ABD ABE ACD ACE ADE
problem : it Outputs this instead:
ABC ABD ABE ACE ADE AEE
I TRIED VARIABLE TRACING BUT COULDN'T FIGURE OUT HOW TO FIX THE PROBLEM. PLEASE POST YOUR IDEAS AND SUGGESTIONS
import javax.swing.JOptionPane;
import java.awt.*;
class COMBO2
     public static void main(String  args[])
          String[]a={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
          int count=1;
          int count2=2;
          String firstmate=a[0];
          String secondmate=a[1];
          String thirdmate=a[2];
          String inputtwo= JOptionPane.showInputDialog(null, "Enter number of Mountain Climbers");
         int input=Integer.parseInt(inputtwo);
        while (count<=input-1)     
                  if (thirdmate==a[input-1])
                          System.out.print(firstmate+secondmate+thirdmate);
                          System.out.print(" ");
                          secondmate=a[count+1];
                          count+=1;
                   else if (thirdmate!=a[input-1])
                        System.out.print(firstmate+secondmate+thirdmate);
                        System.out.print(" ");
                      thirdmate=a[count2+1];
                      count2+=1;
         System.exit(0);
}

this is the program with the 3 for loops
I didn't quite understand those hints. it is still not working properly
its even more jumbled now, and i can't variable trace with 3 loops so i'm gonna need some more ideas guys.
user input : 5
output: ABD BBD CBD DBD EBD
import javax.swing.JOptionPane;
import java.awt.*;
class COMBO2
     public static void main(String  args[])
          String[]a={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
          int count=1;
          int count2=2;
          String firstmate=a[0];
          String secondmate=a[1];
          String thirdmate=a[2];
          String inputtwo= JOptionPane.showInputDialog(null, "Enter number of Mountain Climbers");
         int input=Integer.parseInt(inputtwo);
          for (int i = 0; i < input;i++) {
  for (int j = 1; j<input-(input-2); j++) {
    for (int k = 3; k < input-(input-4);k++) {
      System.out.print( a[i] + a[j] + a[k] +" ");
         System.exit(0);
}

Similar Messages

  • Audio+Video Chat works but one small problem.Pls help.

    HI..
    as i had posted once before in a different query's thread, i have implemented audio and video chat using AVTRansmit2 and avreceive2.
    audio and video chat work well.By video chat i mean not only video but VIDEO+AUDIO as well.. just like usual yahoo video chat.
    But the problem is like this:-=
    I have given an option for user to switch from audio chat to video chat.
    now if a user first goes to audio chat and then switched to video chat,
    then the problem comes. When he's shifted to video chat i close down previous Audio chat by RTPManager.dispose() , i close the player and everything..
    and then i start Video transmit/receive "ALONG WITH" audio transmit/receive..
    No this time video starts but audio doesnt work ..
    it says"waiting for rtp data to arrive.... "
    The problem is that when this new stream of audio data comes, the receiver somehow thinks that its the same old stream since its from same transmitter IP.. and so it tries to UPDATE the previous stream.
    It means there is some problem with the close method or RTPManager.dispose() which should have disposed off all the stuff much before the new connection was made.
    PLS HELP ASAP>
    this is crunch time for my project.

    Hi anandreyvk . .
    well, i had tried doing removetargets and also, i had disposed RTPManager well. As it turns out the problem was not with any of it but it was the problem of me incorrectly passing RTPManager from AVReceive2 to AVTransmit2.
    Actually i am using just one RTPManager.. since i am receiving and transmitting on the same port.
    i've solved the problem but i am not sure if this is the right way .. what do you think ??
    is creating just one RTPManager {by that,i mean initializing it only once} a good idea ?? Since we are supposed to call both AVTransmit2 and AVReceive2 with the "LOCAL PORT" .. {which in itself is a matter of discussion though! } i and my project mate thought initializing RTPManager only once is a better option .
    Whats your take on all of this ?

  • Paging.  one small problem

    I know this question has been asked before, and hopefully this will be a quick one. anyways, I am trying to do paging and am stuck on this error... not sure what it means. (i have an idea what it means... just not sure how to remedy.
    ///////////// error ///////////////
    java.lang.NumberFormatException: null
    at java.lang.Integer.parseInt(Integer.java:373)
    at java.lang.Integer.parseInt(Integer.java:454)
    I've supplied my entire paging code, in hopes that somebody could also help with that. If I'm on the right track or not...
    ////////// code ///////////
    <%
    String sql; //SQL string
    int TitleID = 0;
    int IPNumber = 0;
    int k = 0;
    String LastIssue = "";
    String Language = "";
    String IPName = "";
    String CountryName = "";
    String Format_n = "";
    int rowPerPage=10; //Record size of one page
    int rowTotal = 0; //Total records
    int pageTotal = 0; //Total pages
    int pageIndex = 0; //Pages waiting for display, from 1
    pageIndex = Integer.parseInt( request.getParameter("page") );
    rowTotal= Integer.parseInt( request.getParameter("rowTotal") );
    String sql_2=request.getParameter("sql_2");
    String sql_1 = "SELECT t.TitleID, t.TitleName, t.LastIssue, t.Language, t.IPNumber, i.IPName, " ;
    sql_1 += "t.CountryName, t.Format_n " ;
    sql_1 += "FROM IPs i, Titles t " ;
    if (request.getParameter("MarketSector") != null)
    sql_1 += ", MarketSectors m " ;
    sql_1 += "WHERE i.IPNumber = t.IPNumber " ;
    if (request.getParameter("MarketSector") != null)
    sql_1 += "AND m.TitleID = t.TitleID " ;
    if (request.getParameter("TitleName") != null)
    sql_1 += "AND t.TitleName LIKE '%" + request.getParameter("TitleName") + "%'" ;
    sql=sql_1+sql_2 ;
    try {
         stmt = conn.createStatement (ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
         rset = stmt.executeQuery (sql_1);
         pageTotal = (rowTotal+rowPerPage-1) / rowPerPage; // Get total pages
         if(pageIndex>pageTotal) pageIndex = pageTotal;
    catch (SQLException e) {
    out.println (e);
         return;
    int absolute=(pageIndex-1) * rowPerPage;
    for(k=0; k<absolute; k++) rset.next();
    int i = 0;
    String LineColor;
         while( rset.next() && i<rowPerPage && (absolute+i)<rowTotal )
    TitleID = rset.getInt ("TitleID");
         IPNumber = rset.getInt ("IPNumber");
    TitleName = rset.getString ("TitleName");
         LastIssue = rset.getString ("LastIssue");
         Language = rset.getString ("Language");
         IPName = rset.getString ("IPName");
         CountryName = rset.getString ("CountryName");
         Format_n = rset.getString ("Format_n");
    if (i % 2 == 0) LineColor="#DBECFD";
    else LineColor="#C6E1FD";
    %>
    <TR bgcolor="<%= LineColor %>">
    <TD width="239" height="20"> <a href="JavaScript:OpenPopupWindow('details.jsp?TitleID=<%= TitleID %>') onMouseOver="window.status='Click To Get Publication Title Detail';return true" onMouseOut="window.status=''">
    <%= TitleName %></a></TD>
    <TD width="207" height="20"> <%= IPName %> </TD>
    <TD width="156" height="20"> <%= CountryName %></TD>
    </TR>
         <%
         %>
    </TABLE>
    Page <%=pageIndex%> / <%=pageTotal%>
    <%if(pageIndex<pageTotal){%>
    <a href="results_title.jsp?sql_2=<%=sql_2%>&rowTotal=<%=rowTotal%>&page=<%=pageIndex+1%>">Next
    </a>
    <%}%>
    <%if(pageIndex>1){%>
    <a href="results_title.jsp?sql_2=<%=sql_2%>&rowTotal=<%=rowTotal%>&page=<%=pageIndex-1%>">Previous
    </a>
    <%}%>

    yes, that is what I realized, by the error, but I'm not where the 'null' is originating.
    // in my code I have the variables set to zero
    int rowTotal = 0; //Total records
    int pageTotal = 0; //Total pages
    int pageIndex = 0; //Pages waiting for display, from 1
    pageIndex = Integer.parseInt( request.getParameter("page") );
    rowTotal= Integer.parseInt( request.getParameter("rowTotal") );
    i'm not sure what to make of it..

  • One small problem in partitioning

    The base table was created in a DMT and all the partitions were created in LMT.
    Now i want the table also to be in LMT.
    When attempted a move with alter table tablename move tablespace it's giving an error.
    SQL> ALTER TABLE HOLDINGDBO.POSITION_STAGE MOVE TABLESPACE HOLDING_GEN;
    ALTER TABLE HOLDINGDBO.POSITION_STAGE MOVE TABLESPACE HOLDING_GEN
    ERROR at line 1:
    ORA-14511: cannot perform operation on a partitioned object.

    I think this is posted in the wrong forum.

  • ARGH!  One small problem (I hope)

    Alright, I've gotten this beast to compile w/o error, but now when it runs in Applet Viewer, it doesn't print the results of the calculations to the applet surface. It does display the message in the dialogue box, but on the command prompt, it coughs out a number of errors. Anyway, hopefully someone sees where I've screwed up...
    Here's my code...
    /*      Daniel C. Warshaw
            143744498
            INFO 250 - 902
            Jeffrey Babb
            7 October 2002
            Assignment 4
    //Program to collect data from user and display processed information.
    import java.applet.*;
    import javax.swing.*; //import swing classes
    import java.awt.*; //import awt classes
    public class test extends JApplet {
           String message =""; //message to user about his/her age
    //Age statements  
      String eighteen = "You can vote, get drafted, and smoke legally";  
      String twentyone = "You can drink alcohol legally";  
      String twentyfive = "Car rental companies should probably stop penalizing you on rates";  
      String thirty ="Pete Townsend suggested that you are no longer to be trusted";  
      String sixtyfive ="You should be able to retire now";  
    //collect name from user
      String name = JOptionPane.showInputDialog("Please enter your name.");
    //collect age in years from user  
      String age = JOptionPane.showInputDialog( "Please enter your age in years." );
    //convert the age string to an integer  
      int year = Integer.parseInt( age );//convert the years to other units of time.
      int month = year * 12;
      int day = year * 4380;
      int hour = year * 105120;
      long minute = year * 6307200;
      long second = year * 378432000;
      public void init() {
        if (( year >= 18 ) && ( year <= 21 )) message = eighteen;
        if (( year >= 21 ) && ( year <= 25 )) message = eighteen + "\n" + twentyone;
        if (( year >= 25 ) && ( year <= 30 )) message = eighteen + "\n" + twentyone + "\n" + twentyfive;
        if (( year >= 30 ) && ( year <= 65 )) message = eighteen + "\n" + twentyone + "\n" + twentyfive + "\n" + thirty;
        if ( year >= 65 ) message = eighteen + "\n" + twentyone + "\n" + twentyfive + "\n" + thirty + "\n" + sixtyfive;
    //Display message
      JOptionPane.showMessageDialog(null, message, "What can you do at your age?", JOptionPane.PLAIN_MESSAGE );
    // System.exit( 0 ); //Exits program.
        public void paint( Graphics g) { //Draw strings on applet background
      //show the results.
      g.drawString( "Hi there " + name, 25, 0 );
      g.drawString( "You are at least " +year +" years old,", 25, 15 );
      g.drawString( " " +month +" months old,", 25, 30 );
      g.drawString( " " +day +" days old,", 25, 45 );
      g.drawString( " " +hour +" hours old,", 25, 60 );
      g.drawString( " " +minute +" minutes old,", 25, 75 );
      g.drawString( "or " +second +" seconds old.", 25, 90 );
    }Hope someone sees something...Thanx for all who help!
    Dan

    Heere you are darling all patched up and working fine
    - I think the word;-
    repaint()
    gets rid of all those horrid errors.
    Lady Thatcher to the rescue! (now a Baroness)
    Thank you darlings
    import java.applet.*;
    import javax.swing.*; //import swing classes
    import java.awt.*; //import awt classes
    public class AgeApplet extends JApplet {
    String message ="";
    String eighteen = "You can vote, get drafted, and
    nd smoke legally";
    String twentyone = "You can drink alcohol
    ol legally";
    String twentyfive = "Car rental companies should
    ld probably stop penalizing you on rates";
    String thirty ="Pete Townsend suggested that you
    ou are no longer to be trusted";
    String sixtyfive ="You should be able to retire
    re now";
    String name = JOptionPane.showInputDialog("Please
    se enter your name.");
    String age = JOptionPane.showInputDialog( "Please
    se enter your age in years." );
    int year = Integer.parseInt( age );
    int month = year * 12;
    int day = year * 4380;
    int hour = year * 105120;
    long minute = year * 6307200;
    long second = year * 378432000;
    public void init(){
    if (( year >= 18 ) && ( year <= 21 )) message =
    sage = eighteen;
    if (( year >= 21 ) && ( year <= 25 )) message =
    sage = eighteen + "\n" + twentyone;
    if (( year >= 25 ) && ( year <= 30 )) message =
    sage = eighteen + "\n" + twentyone + "\n" +
    twentyfive;
    if (( year >= 30 ) && ( year <= 65 )) message =
    sage = eighteen + "\n" + twentyone + "\n" + twentyfive
    + "\n" + thirty;
    if ( year >= 65 ) message = eighteen + "\n" +
    "\n" + twentyone + "\n" + twentyfive + "\n" + thirty +
    "\n" + sixtyfive;
    JOptionPane.showMessageDialog(null, message,
    ssage, "What can you do at your age?",
    JOptionPane.PLAIN_MESSAGE );
    repaint();
    public void paint( Graphics g) {
    g.drawString( "Hi there " + name, 25, 20 );
    g.drawString( "You are at least " +year +"
    ear +" years old,", 25, 35 );
    g.drawString( " " +month +" months old,", 25,
    ", 25, 50 );
    g.drawString( " " +day +" days old,", 25, 65
    25, 65 );
    g.drawString( " " +hour +" hours old,", 25, 80
    25, 80 );
    g.drawString( " " +minute +" minutes old,", 25,
    ", 25, 95 );
    g.drawString( "or " +second +" seconds old.",
    old.", 25, 110 );
    The program given as troublesome did not have any errors. Giving repaint also does not produce any errors.
    Is the giver and the taker the same person?
    Make many email id's and shower ur points on yourself?
    Otherwise what is the meaning of this fake question?

  • One 'small' problem - HELP!!

    When I installed the operating system for my K8N Diamond (Win XP Prof) - I set the boot sequence on the BIOS to be:
    CD-ROM
    HARD-DISK
    FLOPPY
    However when I completed the instalation and changed the sequence to
    HARD-DISK
    CD-ROM
    FLOPPY
    The system gives me a disk boot failure.
    Also if I press F11 for boot menu it has the + sign on Hard-Disk and won't change to anything else.
    The only way I can get it to boot into the Op system is to have it set the first sequence above
    and to have the Win XP Professional CD in the drive. Otherwise failure.
    BIOS is version 1.9
    Help!!! 
    Thanks
    Joakim

    Here is the spec:
    MSI K8N Diamond nF4 SLI Socket 939 Motherboard
    AMD Athlon 64 4400+ Toledo 2MB Cache Socket 939 Dual Core CPU
    Crucial 2 x 512MB 400MHz DDR Matched Pair Ram
    2 x Maxtor 160GB SATA II Hard Drives
    XFX GeForce 6800 GS 256MB DDR3 PCI-E Graphics Card
    1.44MB Floppy Disk Drive
    Samsung DVD-ReWriter Drive 16x Dual Layer
    Your help again much appreciated.
    Thanks & Regards
    Joakim

  • Many small problems in Mavericks

    When user experience many small problem in daily work, I feel the design is failed.
    Memory management has a lot of problem, I feel my macbook is abnormal slow after I upgraded to Mavericks. Sometime, I need to wait for several sec to get what I want.
    I think this problem is extreme important for OS.
    When I want to start a probelm, click once, no response, click twice, pop-up 2 times after 5 sec.
    Then i change my way of work, clock one time, work on other task. 5 sec later, multi desktop switch the desktop to the starting program. Then, I don't know what I was doing.
    Another is sound problem, sound doesn't work sometime and need some kind of procedure to get it back.
    Please don't ask me do something to solve the problem everytime when it happen. It is OS task to work it properly.
    Whatever how many great feature you added is meaningless if user daily experience is bad.

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve your problem.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. All it does is to gather information about the state of your computer. That information goes nowhere unless you choose to share it on this page. However, you should be cautious about running any kind of program (not just a shell script) at the request of a stranger on a public message board. If you have doubts, search this site for other discussions in which this procedure has been followed without any report of ill effects. If you can't satisfy yourself that the instructions are safe, don't follow them.
    Here's a summary of what you need to do, if you choose to proceed: Copy a line of text from this web page into the window of another application. Wait for the script to run. It usually takes a couple of minutes. Then paste the results, which will have been copied automatically, back into a reply on this page. The sequence is: copy, paste, wait, paste again. Details follow.
    4. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    5. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply.
    6. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking  anywhere in the line. The whole line will highlight, though you may not see all of it in your browser, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
    Triple-click anywhere in the line of text below on this page to select it:
    PATH=/usr/bin:/bin:/usr/sbin:/sbin; clear; Fb='%s\n\t(%s)\n'; Fm='\n%s\n\n%s\n'; Fr='\nRAM details\n%s\n'; Fs='\n%s: %s\n'; Fu='user %s%%, system %s%%'; PB="/usr/libexec/PlistBuddy -c Print"; A () { [[ a -eq 0 ]]; }; M () { find -L "$d" -type f | while read f; do file -b "$f" | egrep -lq XML\|exec && echo $f; done; }; Pc () { o=`grep -v '^ *#' "$2"`; Pm "$1"; }; Pm () { [[ "$o" ]] && o=`sed '/^ *$/d; s/^ */   /' <<< "$o"` && printf "$Fm" "$1" "$o"; }; Pp () { o=`$PB "$2" | awk -F'= ' \/$3'/{print $2}'`; Pm "$1"; }; Ps () { o=`echo $o`; [[ ! "$o" =~ ^0?$ ]] && printf "$Fs" "$1" "$o"; }; R () { o=; [[ r -eq 0 ]]; }; SP () { system_profiler SP${1}DataType; }; id | grep -qw '80(admin)'; a=$?; A && sudo true; r=$?; t=`date +%s`; clear; { A || echo $'No admin access\n'; A && ! R && echo $'No root access\n'; SP Software | sed '8!d;s/^ *//'; o=`SP Hardware | awk '/Mem/{print $2}'`; o=$((o<4?o:0)); Ps "Total RAM (GB)"; o=`SP Memory | sed '1,5d; /[my].*:/d'`; [[ "$o" =~ s:\ [^O]|x([^08]||0[^2]8[^0]) ]] && printf "$Fr" "$o"; o=`SP Diagnostics | sed '5,6!d'`; [[ "$o" =~ Pass ]] || Pm "POST"; for b in Thunderbolt USB; do o=`SP $b | sed -En '1d; /:$/{s/ *:$//;x;s/\n//p;}; /^ *V.* [0N].* /{s/ 0x.... //;s/[()]//g;s/\(.*: \)\(.*\)/ \(\2\)/;H;}; /Apple|SCSM/{s/.//g;h;}'`; Pm $b; done; o=`pmset -g therm | sed 's/^.*C/C/'`; [[ "$o" =~ No\ th|pms ]] && o=; Pm "Thermal conditions"; o=`pmset -g sysload | grep -v :`; [[ "$o" =~ =\ [^GO] ]] || o=; Pm "System load advisory"; o=`nvram boot-args | awk '{$1=""; print}'`; Ps "boot-args"; d=(/ ""); D=(System User); E=; for i in 0 1; do o=`cd ${d[$i]}L*/L*/Dia* || continue; ls | while read f; do [[ "$f" =~ h$ ]] && grep -lq "^Thread c" "$f" && e=" *" || e=; awk -F_ '!/ag$/{$NF=a[split($NF,a,".")]; print $0 "'"$e"'"}' <<< "$f"; done | tail`; Pm "${D[$i]} diagnostics"; done; [[ "$o" =~ \*$ ]] && printf $'\n* Code injection\n'; o=`syslog -F bsd -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|last value [1-9]|n Cause: -|NVDA\(|pagin|SATA W|ssert|timed? ?o' | tail -n25 | awk '/:/{$4=""; $5=""};1'`; Pm "Kernel messages"; o=`df -m / | awk 'NR==2 {print $4}'`; o=$((o<5120?o:0)); Ps "Free space (MiB)"; o=$(($(vm_stat | awk '/eo/{sub("\\.",""); print $2}')/256)); o=$((o>=1024?o:0)); Ps "Pageouts (MiB)"; s=( `sar -u 1 10 | sed '$!d'` ); [[ s[4] -lt 85 ]] && o=`printf "$Fu" ${s[1]} ${s[3]}` || o=; Ps "Total CPU usage" && { s=(`ps acrx -o comm,ruid,%cpu | sed '2!d'`); o=${s[2]}%; Ps "CPU usage by process \"$s\" with UID ${s[1]}"; }; s=(`top -R -l1 -n1 -o prt -stats command,uid,prt | sed '$!d'`); s[2]=${s[2]%[+-]}; o=$((s[2]>=25000?s[2]:0)); Ps "Mach ports used by process \"$s\" with UID ${s[1]}"; o=`kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1`; Pm "Loaded extrinsic kernel extensions"; R && o=`sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|post[fg]|x)/{print $3}'`; Pm "Extrinsic system jobs"; o=`launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'`; Pm "Extrinsic agents"; o=`for d in {/,}L*/Lau*; do M; done | grep -v com\.apple\.CSConfig | while read f; do ID=$($PB\ :Label "$f") || ID="No job label"; printf "$Fb" "$f" "$ID"; done`; Pm "launchd items"; o=`for d in /{S*/,}L*/Star*; do M; done`; Pm "Startup items"; o=`find -L /S*/L*/E* {/,}L*/{A*d,Compon,Ex,In,Keyb,Mail/B,P*P,Qu*T,Scripti,Servi,Spo}* -type d -name Contents -prune | while read d; do ID=$($PB\ :CFBundleIdentifier "$d/Info.plist") || ID="No bundle ID"; [[ "$ID" =~ ^com\.apple\.[^x]|Accusys|ArcMSR|ATTO|HDPro|HighPoint|driver\.stex|hp-fax|\.hpio|JMicron|microsoft\.MDI|print|SoftRAID ]] || printf "$Fb" "${d%/Contents}" "$ID"; done`; Pm "Extrinsic loadable bundles"; o=`find -L /u*/{,*/}lib -type f | while read f; do file -b "$f" | grep -qw shared && ! codesign -v "$f" && echo $f; done`; Pm "Unsigned shared libraries"; o=`for e in DYLD_INSERT_LIBRARIES DYLD_LIBRARY_PATH; do launchctl getenv $e; done`; Pm "Environment"; o=`find -L {,/u*/lo*}/e*/periodic -type f -mtime -10d`; Pm "Modified periodic scripts"; o=`scutil --proxy | grep Prox`; Pm "Proxies"; o=`scutil --dns | awk '/r\[0\] /{if ($NF !~ /^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./) print $NF; exit}'`; Ps "DNS"; R && o=`sudo profiles -P | grep : | wc -l`; Ps "Profiles"; f=auto_master; [[ `md5 -q /etc/$f` =~ ^b166 ]] || Pc $f /etc/$f; for f in fstab sysctl.conf crontab launchd.conf; do Pc $f /etc/$f; done; Pc "hosts" <(grep -v 'host *$' /etc/hosts); Pc "User launchd" ~/.launchd*; R && Pc "Root crontab" <(sudo crontab -l); Pc "User crontab" <(crontab -l); R && o=`sudo defaults read com.apple.loginwindow LoginHook`; Pm "Login hook"; Pp "Global login items" /L*/P*/loginw* Path; Pp "User login items" L*/P*/*loginit* Name; Pp "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed -E 's/(\..*$|-[1-9])//g'; o=`find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l`; Ps "Restricted user files"; cd; o=`SP Fonts | egrep "Valid: N|Duplicate: Y" | wc -l`; Ps "Font problems"; o=`find L*/{Con,Pref}* -type f ! -size 0 -name *.plist | while read f; do plutil -s "$f" >&- || echo $f; done`; Pm "Bad plists"; d=(Desktop L*/Keyc*); n=(20 7); for i in 0 1; do o=`find "${d[$i]}" -type f -maxdepth 1 | wc -l`; o=$((o<=n[$i]?0:o)); Ps "${d[$i]##*/} file count"; done; o=$((`date +%s`-t)); Ps "Elapsed time (s)"; } 2>/dev/null | pbcopy; exit 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    7. Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign ($) or a percent sign (%). If you get the percent sign, enter
    exec bash
    in the window and press return. You should then get a new line ending in a dollar sign.
    Click anywhere in the Terminal window and paste (command-V). The text you pasted should vanish immediately. If it doesn't, press the return key.
    If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know your password, or if you prefer not to enter it, just press return three times at the password prompt.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
    The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line "[Process completed]" to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report your results. No harm will be done.
    8. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    When you post the results, you might see the message, "You have included content in your post that is not permitted." It means that the forum software has misidentified something in the post as a violation of the rules. If it happens, please post the test results on Pastebin, then post a link here to the page you created.
    Note: This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
    Copyright © 2014 Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Terms of Use of Apple Support Communities ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

  • Small problem

    I am very new to java, and having a small problem:
    When i click on a button, i want the buttons name to be displayed
    in a text field, saying "You have pressed" then the name of the button.
    but i want to do this with multiple buttons and not just one button, so i want to be able to press any button and its name to be displayed in a text field.
    your help will be appreciated

    Sorry if i did not display code, thanks to all those who replied, heres some of the code, if i have gone wrong in any where could you please help me too correct, i think you will have a general idea of what i am trying to achieve:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Button;
    import java.lang.Object;
    public class Calculator extends Applet implements ActionListener
    Button b1 + b2 + b3 + b4 + b5 + b6 + b7 + b8 + b9 + b10 + b11 + b12 + b13 + b14 + b15 + b16 + b17 + b18;
    setLayout(new GridLayout(5,4));
    public void init( );
    Button b1 = new Button( "1" );
    b1.addActionListener ( this );
    add(b1);
    Button b2 = new Button( "2" );
    b2.addActionListener ( this );
    add( b2 );
    Button b3 = new Button( "3" );
    b3.addActionListener ( this );
    add( b3 );
    Button b4 = new Button( "4" );
    b4.addActionListener ( this );
    add( b4 );
    Button b5 = new Button( "5" );
    b5.addActionListener ( this );
    add( b5 );
    Button b6 = new Button( "6" );
    b6.addActionListener ( this );
    add( b6 );
    Button b7 = new Button( "7" );
    b7.addActionListener ( this );
    add( b7 );
    Button b8 = new Button( "8" );
    b8.addActionListener ( this );
    add( b8 );
    Button b9 = new Button( "9" );
    b9.addActionListener ( this );
    add( b9 );
    Button b10 = new Button( "10" );
    b10.addActionListener ( this );
    add( b10 );
    Button b11 = new Button( "+" );
    b11.addActionListener ( this );
    add( b11 );
    Button b12 = new Button( "-" );
    b12.addActionListener (this );
    add( b12 );
    Button b13 = new Button( "x" );
    b13.addActionListener ( this );
    add( b13 );
    Button b14 = new Button( "/" );
    b14.addActionListener (this );
    add( b14 );
    Button b15 = new Button( "MC" );
    b15.addActionListener ( this );
    add( b15 );
    Button b16 = new Button( "MR" );
    b16.addActionListener ( this );
    add( b16 );
    Button b17 = new Button( "M+" );
    b17.addActionListener ( this );
    add( b17 );
    Button b18 = new Button( "c" );
    b18.addActionListener ( this );
    add( b18 );
    after this i get stuck, i don't know how to create a small text field that syas you have pressed (then the button name) if this coding is wrong, can you please explain what i have done wrong!
    Thanks

  • Small problem led to big problem

    I had a few contacts that existed on my Centro which did not exist on my desktop.  So I contacted the Palm Chat Support.  The person who helped me had me perform several things which eventually led to my phone getting stuck in a loop.  Things were not getting better so I asked to be transferred to a supervisor.  The supervisor told me the only solution was a hard reset.  I finally agreed to this.  Now when I reinstall any applications (not third-party) such as calendar or address book, my phone won't come on.  I can see the calendar or the address book but when I go to turn on the phone, it goes back into the endless loop.  A soft reset will not take it out of the loop, only a hard reset.  When I do a hard reset, I then have the ability to use the phone again but I have no data in my calendar, address book, etc.  So essentially I have either a PDA or a Phone--but I can't have both.  This started as a very small problem (a few missing contacts which I could have probably/should have probably just manually entered into the desktop).  Now I have a very big problem, simply b/c of what I was directed to do by Support.  Is there any hope?
    Post relates to: Centro (AT&T)

    There could be to issues going on here that you are having this result. One thing could be corrupted data such as your contacts or calendar, the other could be corrupted programs that are coming back from a hotsync.
    The first I would like to troubleshoot as it is the easiest. To fix this what we need to do is hard reset your device. The instructions to do that is here http://kb.palm.com/wps/portal/kb/common/article/887_en.html this tells you how to do all types of resets. Also, what we need to do is rename your backup folder. What this folder is, it hold all your programs from the last time you synced your PC. On your computer go here
    Palm Desktop 4.2 and below
    My Computer--> C drive --> Program files --> Palm/PalmOne--> your hotsync username
    Palm Desktop 6.2.2
    My Documents/Documents --> Palm OS Desktop --> your hotsync username
    Right click on your backup folder and rename it to "backupOld". Resync your device to the same user name and you will get all your contacts, calendar, tasks, and memos.
    You can install the programs again but make sure they are compatible with the device. Also try one program again and wait 24 hours to see if the same thing happens again. This way you know what program is causing the issue.
    If you have any questions about this or if this does not work please post back.

  • A small problem with my Zen Xtra 60 turned into a bigger problem. Help me save it

    What started as a small problem has grown to a big mess. My Zen xtra 60 GB unit started going to "Rebuilding Library" often. With 5000 Wma's on it, this rebuild was taking 30 minutes. So what I attempted to fix with reloading firmware to recognize the new Windows Media Player version, has left me with a dead unit.
    I have followed many of the solutions, that have been able to fix other peoples units, but to no avail. While my computer sees the unit, none of the firmware loads will see the player. I fixed what was said in the register. Went through the 4 options of the "Rescue Mode" on the player, followed several of the knowledge notes on procedures, including hooking unit up to a new Dell Laptop. Exactly the same problem happens on a different computer.
    I guess my first step is to get the computer to see the MP3 player when I run a firmware install.
    Tell me what to do to save my little player.
    Thanks Scott

    peschli wrote:
    . . . if I don't use [my 30GB Zen Xtra] for day, it re-builds my library and half of the songs are disappeared and also so the "memoryplace" . . .
    I've had a similar experience, but to a degree. I've found that if I don't use my <EM>40GB</EM> Zen Xtra for more than one day the player will "re-build" the library... but in my case once the library has been re-built it plays just fine; none of my songs or memory are lost.
    Why does the player have to "re-build" the library if the player is not used for a period of time?

  • Some small problems. Is this the OS or my device?

    Hi all,
    I have a MS Surface 2 RT since half a year and I've been experimenting small problems that I wanna know if you know a solution or you think is a device problem and I should contact the vendor.
    Here are the problems:
    - Almost every time I start the Email app, it closes inmediately and I have to start it again
    - Most of the times, when I plug in a headsets, and then unplug it, the sound doesn't work from the speakers, and I have to re-start the device
    - Most of the times, when I unplug the keyboard/cover, the on-screen keyboard doesn't appear, and I have to re-start the device, or plug in / unplug the keyboard/cover again
    Do you think it's aproblem with the device? the OS? My WIndows 8.1 is up to date.
    Many thanks.

    Hi DanielHenry -
    I'll try to deal with your issues as best I can. I'm a designer too using CS3 applications the same as yourself, so have come across similar issues.
    Firstly, the display. There are many negative posts about the display on the 20inch iMac if you search these forums. The problem is that the display Apple have used has a much poorer viewing angle, hence the colour shifts you're seeing. I have a 24inch iMac at home and a 20inch iMac at work. The 24inch screen is far superior and great for graphics work. There really isn't anything you can do about the 20inch screen apart from plug in a second monitor or upgrade to a 24inch iMac.
    Secondly, I think all of the rest of your problems may be down to the 1GB of RAM you have. If you're using CS3, Quark etc then you'll have speed issues with only 1GB RAM. And that includes your Finder slowing down too. If you can, I'd recommend you buy a 4GB RAM upgrade kit from someone like Crucial [here|http://www.crucial.com/uk/index.aspx?cpe=CHAWKuk]. They are cheap and very easy to install. Just unscrew one screw, pop out the old RAM, put in the new RAM and screw the one screw back in. Easy. The instructions are [here|http://support.apple.com/kb/HT1760].
    I hope this helps.

  • ATV worked great one small glitch Question

    ATV update is great, however got one small glitch ?
    I have ripped a couple of movies prior to the update and they worked fine they still seem to work, however on the movie list one movie appears like 20-30 times. All of the other movies dont have a problem. Anyone know how I can eliminate the movie being repeated??? Thanks
    Oh it only shows up once on my computer.
    Ken

    Implementation:
    As per my knowledge implementation is first time the company is going to use (implement or install) SAP.SAP R/3 with all the module are which are the module business need depends on the business requirement.
    Normally the phases in a SAP R3 implementation project would be the following:
    Project Preparation
    Business Blueprint
    Realization
    Final Preparation
    Go Live (Pre go live ,Post go live)
    Upgrade :
    Version upgrade     
    Company is using sap already they are going for higher version of Sap example R/3 4.7 to ECC5.0/ECC6.0(R/3 Version upgrade)
    Other upgrades
    Database upgrade or Migration
    One data base to another database(Example SQL to ORACLE)(Oracle 8.0 to 10G)
    OS Upgrade or Migration
    One OS to another OS(Windows to UNIX)
    Sap Module Upgrade
    New sap module addition to existing R/3 which is not implemented later business improvement or going to some other new additional business (like PP,TPVS,HR)
    FMCG to Hotels,Packing division(SAP Company they are going to use the same server and R/3)
    Additional Sap Component
    Company may need additional SAP component like BW,CRM,SRM,APO this is also part of upgrade but this is not Full life cycle .
    Full lifecycle upgrade
    SAP R/3 version upgrade with all existing sap module with sap component.
    Basis:
    Every phase basis involvement must be there.

  • Hello J have small problems J have to change my login icloude on my PC and now I N do not arrive has to change it on my ipad and my iphone

    hello J have small problems J have to change my login icloude on my PC and now I N do not arrive has to change it on my ipad retina and my iphone 5.
    I will be able to have French answers.

    Sorry, there is no one from Twitter here. You need to contact Twitter support.
    This "may" be helpful:
    https://support.twitter.com/articles/20169405-re-entering-your-password-through- the-ios-settings

  • Mac mini single core + bootcamp first impressions:"That's one small step.."

    That's one small step for man; one giant leap step for mankind"
    Neil Amstrong
    Hi!
    First of all I have to say I'm a mac freak and i will never ever switch back to windows, but in some rare cases there is a lack of software, for example special software, like engineering software cad or fem software.
    In this cases, I need windows to continue working.
    Three weeks ago I sucessfully installed windows xp sp2 on my new mac mini intel single core, and the only thing I wanted to know was, could it be done -
    Yes , but it was nothing for standard user i would say.Main problem was that windows must be installed on the first partition, which slowed down os x on the second, not all drivers were available and bootmangement was not like i had expected - I deletet xp and restored my os x.Keeping in mind that xp could run on my mm -
    Today I installed win xp sp2 using bootcamp beta and i have to say that it was amazing, like landing on the moon.
    Bootcamp solves the main lack of the installation, which i was confronted 2 weeks before - partitioning on the fly out of os x !!! and it uses the 2. partition for xp , which results that os x is running on the fast first partition.
    These are the steps for the mac mini moonlanding:
    1x xp sp2 cd, 1x cdr
    1.) I did the firmware update
    2.) Started bootcamp and bruned driver cd (83MB)
    3.) Restarted into osx & started bootcamp again, clicked install xp again
    4.) booted into xp and installed +restarted to xp
    5.) installed all drivers from bruned cdr (auto)
    6.) yeah all drivers are avaiable , even analog sound
    7.) Restarted holding down option-key (alt-key)
    8.) restarted to os x
    10.) opened sys-pref in osx and marked osx as default startvolume
    11.) continued living with two os'es on my mac mini!
    Thanks Steve, for this amazing landing!!! There is no need of virtualpc or Q anymore,there is no need of microsoft at all !!
    Steve, how many worldwide % of computer users ,you want to come over to us? 35 %?
    This will knock out microsoft in its base,that's the best thing concerning software I have ever seen !
    Greetings Tobias
    mac mini intel / pb G3 wallstreet   Mac OS X (10.4.5)  

    Thanks Steve, for this amazing landing!!! There is no need of virtualpc or Q anymore,there is no need of microsoft at all !!
    Well, Microsoft does write Windows, you can't get rid of Microsoft all together and keep using Windows! If anything, this is a win against Dell or other vendors who sell hardware for Windows. It could be a boon for Microsoft to sell more copies of Windows, if anything.
    There is now a Boot Camp forum for trouble & questions.
    -Doug

  • Just updated my iPhone 4 from IOS 6.1.3 to 7.1.2, I know I am behind the times, but I got there eventually! All seems well but I have one specific problem and hope someone can offer a helpful suggestion.

    Just updated my iPhone 4 from IOS 6.1.3 to 7.1.2, I know I am behind the times, but I got there eventually! All seems well but I have one specific problem and hope someone can offer a helpful suggestion.
    On opening the app "Find my iPhone" I add my password and sign in, to be greeted with a screen that says;
    "Update Find My iPhone. A new version of Find My iPhone is available from the App. Store. You must install the update to continue using the app. Update now"
    On hitting the "Update now" button I'm taken to the relevant page on the App Store, to be told that I cannot update as it needs IOS8 to be able to continue and as my iPhone is only a 4 cannot install IOS8.
    I'm left going around in circles. The only thing would be to delete the app, but looks like I could not re-install the version I would need. Any body have any thoughts or suggestions? (Apart from updating my phone, I have a few months left on the contract!)
    Thanks in advance.

    Hi, thanks for the suggestion. I have tried as you suggested, and when opening the "purchased" apps some have the icloud logo next to them, but I only have "OPEN" against "Find My iPhone". When opening it up, it goes through the same routine; needs to be updated before proceeding, and wouldn't update because I don't have IOS8.
    Anything else I could try, or am I doomed!
    All of your help is much appreciated, thanks

Maybe you are looking for

  • Apple Mobile Device Service has stopped working. Vista SP2, iTunes 10.5

    Hi there. I've been having an issue syncing my iPhone to iTunes. Here's a description of the problem: -With an up-to-date Apple Mobile Device Service, error windows constantly pop-up saying that it has stopped working. If I close the error window, an

  • I want to write an IM program. Can u walk me through?

    I want to write my own IM program. Can you walk me through?

  • Iphone 4 dead black screen

    I was playing a game, then, i stopped because my class is about to start After the class i checked it and its dead. Its not low on battery, its 88% when i stopped playing I hold the lock button and home button, and it works. It opened again and im us

  • Header Repeats when table runs onto 2nd page

    I have a form with a dynamic table in which the user is allowed to add and remove rows to it as needed.  The table also has a column on the end of it that will become visible/hidden on the click of a button.  It also performs basic arithmatic (additi

  • Batch import of psd files

    I have 60 small psd files with only 4 to 6 layers each, but I want to import into Premiere. This is a common work flow for me, but each time I have to import the files one at a time and click the option to import as individual layers. I would like to