Anyone can compile this program?Duke will be rewarded

Anyone can help me compile this program..I try debugging a lot of time but it is not working!
import java.lang.*;
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
public class ChatApplet extends Applet implements ActionListener,Runnable
String user;
String msg;
     public void init() {
          super.init();
          //{{INIT_CONTROLS
          setLayout(new BorderLayout(0,0));
          addNotify();
          resize(518,347);
          setBackground(new Color(12632256));
msgbox = new java.awt.TextArea("",2,0,TextArea.SCROLLBARS_NONE);
          msgbox.setEditable(false);
msgbox.disable();
//msgbox.hide();
          msgbox.reshape(0,0,380,216);
          add(msgbox);
          idbox = new java.awt.TextField();
          idbox.reshape(84,288,284,24);
          add(idbox);
          button1 = new java.awt.Button("EnterRoom");
          button1.reshape(384,288,72,21);
          add(button1);
list = new java.awt.List();
//list.TOP_ALIGNMENT();
//list.disable();
list = new java.awt.List(5);
list.add("#Default User"+"\n");
list.reshape(384,24,128,196);
list.setFont(new Font("Helvetica", Font.BOLD, 12));
add(list);
          label2 = new java.awt.Label("Members");
          label2.reshape(396,0,100,19);
          add(label2);
          label1 = new java.awt.Label("UserName");
          label1.reshape(0,288,72,27);
          add(label1);
          textbox = new java.awt.TextField();
          textbox.reshape(84,240,431,44);
          add(textbox);
          label3 = new java.awt.Label("EnterText");
          label3.reshape(0,252,72,25);
          add(label3);
//uf = new UserFrame();
          button1.addActionListener(this);
idbox.addActionListener(this);
textbox.addActionListener(this);
list.addActionListener(this);
public void actionPerformed(ActionEvent ae)
          if(ae.getSource()==idbox)
user = idbox.getText()+"\n";
list.addItem(user.trim());
idbox.setText("");
                         msgbox.append(user+" HAS JOINED THE GROUP");
     if(ae.getSource().equals(button1))
user = idbox.getText()+"\n";
list.addItem(user.trim());
idbox.setText("");
                         msgbox.append(user+" HAS JOINED THE GROUP");
if(ae.getSource().equals(textbox))
msg = textbox.getText();
msgbox.append(msg+"\n");
textbox.setText("");
if(ae.getSource().equals(list))
String l = list.getSelectedItem();
                         //uf.setTitle(l);
                         //Frame i[] = uf.getFrames();
                         //uf.setVisible(true);
public void start()
if(vt == null)
vt = new Thread(this,getClass().getName());
vt.start();
public void run()
try{
for(int i=0;i<10;i++)
msgbox.append("One stop Java source code - www.globalleafs.com"+"\n");
msgbox.setForeground(Color.red);
vt.sleep(30000);
vt.resume();
}catch(Exception e){e.printStackTrace();}
     java.awt.TextArea msgbox;
     java.awt.TextField idbox;
     java.awt.Button button1;
java.awt.List list;
java.awt.Label label2;
     java.awt.Label label1;
     java.awt.TextField textbox;
     java.awt.Label label3;
private Thread vt;

The program compiles over here. It just has some deprecation warnings ...or is that what you wanted debugged?
Don't use reshape() ...I think in AWT you should now use setBounds();
Don't use list.addItem(); ...looks like the API steers us to list.add();
Don't use Thread.resume() ...I don't think there is a replacement (unneccessary?).
Gee, this program must have ran the chat program in Ford's old model T ... !! (??)

Similar Messages

  • Anyone can explain this program to me?

    import java.util.List;
    import java.util.LinkedList;
    import java.util.Iterator;
    public class Lab_02
         public static List getLinesOfText(int m)
    {      List lines = new LinkedList();     
              StringBuffer line = new StringBuffer();
              for( int i = 0; i < m; i++ )
    {         for( int j = 0; j < m; j++ )           
                   line.append( j < i ? " ": Integer.toString(i%10) );
         lines.add(line.toString());
                   line.setLength(0);
                   return lines;
         public static void main(String args[])
         int n = 15;
                   if( args.length > 0 )
                   try
         {            n = Integer.parseInt(args[0]);
         catch( NumberFormatException nfe )
         {        String msg = nfe.getMessage();
              System.out.println(msg);
         Iterator lineIterator = getLinesOfText(n).iterator();
         while(lineIterator.hasNext())
              System.out.println(lineIterator.next());

      public static void main(String[] args) {
        int n = 15;
        if( args.length > 0 ) {                     // if an argument was entered
          try { n = Integer.parseInt(args[0]); }    // change it to an int
          catch( NumberFormatException nfe ) {      // if bad format
         String msg = nfe.getMessage();          // print a message
         System.out.println(msg);
    //  call getLinesOfText(with the above number, it returns a List),
    //  get an iterator for that list, and
    //  assign that iterator to lineIterator
          Iterator lineIterator = getLinesOfText(n).iterator();
    //  loop through the iterator printing each value
          while(lineIterator.hasNext()) System.out.println(lineIterator.next());
      public static List getLinesOfText(int m) {   // m = count from call above
        List lines = new LinkedList();             // make a LinkedList, assign to lines
        StringBuffer line = new StringBuffer();    // make a StringBuffer, assign to line
        for( int i = 0; i < m; i++ ) {             // loop m times
          for( int j = 0; j < m; j++ ) {           // for each value of i, loop m times
    // append either a space or the string representation of i modulo 10
    // to the StringBuffer depending on whether j is less that i
    // (modulo = remainder after division by 10)
         line.append( j < i ? " ": Integer.toString(i%10) );
    // Add the string representation of line (a StringBuffer) to the linkedlist lines
          lines.add(line.toString());
    // Clear the StringBuffer
          line.setLength(0);
    // return the linked list
        return lines;
      }

  • Does anyone have a simple program that will return the size of a file

    Does anyone have a simple program that will return the size of a file?

    I quite hate it when I receive the incorrect amount of yoctocandela per metre squared. Swarthy people
    can't properly convert poundal feet to barleycorn; throws off the whole conversion! Aaah, you get what
    you paid for.I recognize those figures; you've got your outsourced file sizes from Zanzibar; admit it! I always apply
    the scientific approach when I've got file sizes back from Zanzibar: I simply divide those numbers by
    pi (very scientific) and drop the eleven (ueber scientific, because 11 is prime even when looked upon
    as a binary number) least significant bits. And remember: never compare two floating point numbers
    for equality. (<--- that's a free tip)
    Jos ;-)

  • Stacks - I don't know if anyone can figure this one out?

    Okay I just got a new MacBook Pro and it had the stack folders on the bottom of the dock (pre-installed) Download and Documents. Here's the problem, I hit and moved the Documents stack out of the area of the dock and it removed the stack. I know this seems simple but check this out. I tried to look up the files that were in the Document Stack and it wasn't on my computer at all. I used Spotlight and it didn't help at all. Here's something else, my VMware Fusion program had an error after I moved the Stack Folder. I had Windows Vista on the Virtual Machine before this happened with the Stack Folder. Now there's no Vista on record or ON MY COMPUTER! I had to re-install all programs..
    I didn't have time machine setup because I didn't think I needed it so soon.
    Can anyone help me find out where my files are in the Stack Folder that was removed from the dock....?
    Thanks!

    *Hi ruhig, Welcome* to Apple's Users Help Users Forums.
    It takes a while to figure out how the Apple Forums are organized.
    You have asked a technical question in an inappropriate place. You are forgiven as a newcomer.
    At the top of this page, or the topics list page one layer back, click on the "discussions" page. It will give you a list of Categories, including "Leopard." Click on it and you will see a set of files for various forums. Click on the most appropriate one and a Forum page similar to the one that got you here will open. As here, at the top left will be a button to "post new topic" or similar.
    In this forum you will find lots of threads re frustration with forum organization so don't feel bad it you didn't get it right the 1st time. Explore a bit and it will come to you.
    There is a wealth of knowledge in the forums. Come often, browse, read threads and learn. 99% of the threads I read I don't post on. On those for maybe 5~10 % I learn something. Now if half vast, see below, could just remember it.
    Enjoy, JP
    Good Luck, JP

  • If you can figure this out, I will pay $100,000,000!!!

    If anyone can figure out how to stream videos between itunes using the "shared library", I WILL PAY YOU 100,000,000!!!!! Any videos, even video podcasts. Stream between two itunes from mac to windows

    aapl.up wrote:
    If anyone can figure out how to stream videos between itunes using the "shared library", I WILL PAY YOU 100,000,000!!!!! Any videos, even video podcasts. Stream between two itunes from mac to windows
    The answer is both easy and frustrating.
    First the easy part.
    1. Add the videos to iTunes on the Mac (you did say from Mac to PC)
    2. If the video is a Music video, set the flag appropriately
    3. Tell iTunes on the Mac to share its iTunes library over the network
    4. Make sure either you share the entire library, or a playlist that includes the video(s)
    5. Set the PC to look for shared libraries on the network
    The above is probably obvious and you have probably done this. The next bit is to address the cause of the problem.
    First, I have various music videos acquired from different sources. Some from the iTunes Store before they started charging for them, some from other sites on the Internet. All are in QuickTime compatible format and hence all play locally in iTunes. However most of them do not work when I try and access them via iTunes Sharing.
    Now I had a strong idea what the cause was but here are possible causes that could be considered
    1. Its the wrong format (even if it can be played locally), i.e. not MPEG4 or H.264
    2. Its the wrong pixel size or bit rate
    3. It did not have the "Music Video" flag set
    4. Its too long in duration or file size
    5. It has not been prepared for streaming
    To put you out of your misery it appears to be number 5. Now I had already suspected this because I had previously seen reports that FrontRow (on a Mac) had problems playing videos from another Mac if the video had not been prepared for streaming.
    I have found two reasonably easy ways to convert videos so they are prepared for streaming.
    1. If you have QuickTime Pro (for Mac or Windows) you can export the video using the QuickTime Player and in options in the export dialog box, set it to enable the streaming option.
    2. If you select the video in iTunes itself, you can tell iTunes to convert it to iPod or AppleTV format, this will at the same time also set the streaming option
    I tested both methods using a video that previously would not work between Mac and Windows iTunes sharing and both these solutions worked. This was tested using iTunes 7.4.2 on Mac OS X 10.4.10 and iTunes 7.4.2 on Windows XP Pro.
    I look forward to receiving your cheque for $100,000,000

  • Why can't this program access the private class

    All,
    If you could give me some help I would appreciate it, as I have been worrying this issue for some time now and cannot figure out why this program will not compile. It tells me that there are a number of errors, and it appears that these errors are due to the fact that it will not allow me to reach from the private class to the primary for variables. Now, I have seen another program that is very similar and it does not have these issues. IF someone would explain to me what is going on here I think that I could fix it. Thanks
       import java.io.*;
       import java.awt.*;
       import java.awt.event.*;
       import javax.swing.*;
       import java.text.*;
       import java.util.*;
       import java.lang.*;
        public class MortgageGUIv4_1 extends JFrame
           public static void main(String[] args)
             new MortgageGUIv4_1();
          double MP, calcAPR, APR, adjustAPR, annualAPR;
          double monthTerm, userTerm;
          double userPrin;
          boolean user = false;
          String headers = "Payment No. \t\tRemainging Balance \tInterest Paid";
          String []loanRates = {"7 years at 5.35%,15 years at 5.5, 30 years at 5.75%"};
           public MortgageGUIv4_1()
             ButtonListener b1 = new ButtonListener();
             JPanel firstRow = new JPanel();
             JPanel fourthRow = new JPanel();
             JPanel fifthRow = new JPanel();
             JPanel sixthRow = new JPanel();
             JPanel seventhRow = new JPanel();
             JPanel fieldPanel = new JPanel();
             JPanel buttonPanel = new JPanel();
             JPanel buttonPanel3 = new JPanel();
             JLabel userPrinLabel = new JLabel("Principle:  ");
             JTextField userPrinvalue = new JTextField(10);
             ButtonGroup loanGroup = new ButtonGroup();   
             JLabel outputLabel = new JLabel("Click to see your payment");
             JButton buttonSubmit = new JButton("Submit");
             buttonSubmit.addActionListener(b1);
             JLabel outputLabel3 = new JLabel("Click here to clear Data");
             JButton buttonClear = new JButton("Clear");
             buttonClear.addActionListener(b1);
             JLabel mortgagePayment = new JLabel ("Your Monthly Payments are");
             JTextField totPayment = new JTextField(10);
             JComboBox termRateBx = new JComboBox(loanRates);
             JLabel termRateLbl = new JLabel("Select a Term and Rate from the options listed");
             JTextArea pymntTable = new JTextArea(headers, 10, 50);
             JScrollPane scroll = new JScrollPane(pymntTable, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
             try
                UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
                 catch(Exception e)
                   JOptionPane.showMessageDialog(null,"The UIManager could not set the Look and Feel for this applicatoin.", "Error",
                      JOptionPane.INFORMATION_MESSAGE);
             MortgageGUIv4_1 winPane = new MortgageGUIv4_1();
             winPane.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             winPane.setSize(300,300);
             winPane.setTitle("Dan's Mortgage GUI System");
             winPane.setResizable(false);
             winPane.setLocation(200,100);
             winPane.setVisible(true);
             Container cont = getContentPane();
             cont.setLayout((new BorderLayout()));
             fieldPanel.setLayout(new GridLayout(8,1));
             FlowLayout rowSetup = new FlowLayout(FlowLayout.CENTER, 5,3);
             firstRow.setLayout(rowSetup);
             fourthRow.setLayout(rowSetup);
             fifthRow.setLayout(rowSetup);
             sixthRow.setLayout(rowSetup);
             seventhRow.setLayout(rowSetup);
             buttonPanel.setLayout(new FlowLayout(FlowLayout.CENTER));
             buttonPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
             firstRow.add(userPrinLabel);
             firstRow.add(userPrinvalue);
             fourthRow.add(mortgagePayment);
             fourthRow.add(totPayment);
             fifthRow.add(termRateBx);
             fifthRow.add(termRateLbl);
             sixthRow.add(scroll);
             fieldPanel.add(firstRow);
             fieldPanel.add(fourthRow);
             fieldPanel.add(fifthRow);
             fieldPanel.add(sixthRow);
             fieldPanel.add(seventhRow);
             buttonPanel.add(buttonSubmit);
             buttonPanel.add(buttonClear);
             cont.add(fieldPanel, BorderLayout.CENTER);
             cont.add(buttonPanel, BorderLayout.SOUTH);
           private class ButtonListener implements ActionListener
              public void actionPerformed(ActionEvent e)
                Object source = e.getSource();
             //used the term user because this is the user input.  When the user inputs a correct value then the program moves on
                do
                   //captures the user data entered in the text field and converts it to double
                   String enterAmount = userPrinvalue.getText();
                   userPrin = Double.parseDouble(enterAmount);
                   if(userPrin <0)
                      JOptionPane.showMessageDialog(null,"The Principle value is out of range.  Please choose a value that is greater than 0", "Error",
                         JOptionPane.INFORMATION_MESSAGE);
                   else user=true;
                }while (!user);
                if(source == buttonSubmit)
                //captures the user data entered in the text field and converts it to double
                   String enterAmount = userPrinvalue.getText();
                   userPrin = Double.parseDouble(enterAmount);
                   if(selection.equals(loanRates[0]))
                      APR = 535 / (12 * 100);  //The APR is converted from whole number to % and reduced to the monthly rate
                      monthTerm = 7 * 12;  //The Term must be converted to months
                      adjustAPR= 1 + APR;
                      calcAPR = 1 - Math.pow(adjustAPR, -monthTerm);
                   if(selection.equals(loanRates[1]))
                      APR = 550 / (12 * 100);  //The APR is converted from whole number to % and reduced to the monthly rate
                      monthTerm = 15 * 12;  //The Term must be converted to months
                      adjustAPR= 1 + APR;
                      calcAPR = 1 - Math.pow(adjustAPR, -monthTerm);
                   if(selection.equals(loanRates[2]))
                      APR = 575 / (12 * 100);  //The APR is converted from whole number to % and reduced to the monthly rate
                      monthTerm = 30 * 12;  //The Term must be converted to months
                      adjustAPR= 1 + APR;
                      calcAPR = 1 - Math.pow(adjustAPR, -monthTerm);
                   MP = userPrin * (APR / calcAPR);
                   DecimalFormat twodigits = new DecimalFormat("#,###.##");
                //The system will now render the monthly payment amount
                   totPayment.setText("$" + twodigits.format(MP));
                   double loanBal, newLoanBal, mnthlyIntPd, mnthlyPrinPd;
                   for (int i = 0; i >= monthTerm;i++)
                      newLoanBal = loanBal;
                      mnthlyIntPd = loanBal * APR;
                      mnthlyPrinPd = MP - mnthlyIntPd;
                      loanBal = loanBal - mnthlyPrinPd;
                      pymntTable.append("\n"+i+ "\t\t" + twodigits.format(loanBal)+ "\t\t" + twodigits.format(mnthlyIntPd));
                if(source == buttonClear)
                   userPrinvalue.setText("");
                   pymntTable.setText(headers);
       }Dan

    Thank you one and all, in part to what you said here I when through and obviously had to make some serious changes to the code. Now it will compile however, when I try to run it I am getting the following error. do not use MortgageGUIv4_1.add() use MortgageGUIv4.1.getContentPane.add instead. I am at a loss for this one, as when I looked it up the only difference was that the one is awt and the other is swing. Could someone please let me know what I am missing.
    Thanks
    Dan
       import java.io.*;
       import java.awt.*;
       import java.awt.event.*;
       import javax.swing.*;
       import javax.swing.event.*;
       import javax.swing.border.*;
       import java.text.*;
       import java.util.*;
       import java.lang.*;
        public class MortgageGUIv4_1 extends JFrame
           public static void main(String[] args)
             new MortgageGUIv4_1();
          double MP, calcAPR, APR, adjustAPR, annualAPR;
          double monthTerm, userTerm;
          double userPrin;
          boolean user = false;
          String headers = "Payment No. \t\tRemainging Balance \tInterest Paid";
          String loanRates[] = {"7 years at 5.35%","15 years at 5.5", "30 years at 5.75%"};
              private JLabel userPrinLabel, outputLabel, outputLabel3, mortgagePayment, termRateLbl;
              private JTextField userPrinvalue, totPayment;
              private JButton buttonClear, buttonSubmit;
              private JComboBox termRateBx = new JComboBox(loanRates);
              private JTextArea pymntTable;
              private JScrollPane scroll = new JScrollPane(pymntTable);
           public MortgageGUIv4_1()
             ButtonListener b1 = new ButtonListener();
               this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             this.setSize(900,500);
             this.setTitle("Dan's Mortgage GUI System");
             this.setLocation(240,0);
             this.setVisible(true);
             JPanel winPane = new JPanel();
             JPanel userPrinciple = new JPanel();
             userPrinLabel = new JLabel("Principle:  ");
             userPrinvalue = new JTextField(10);
             userPrinciple.add(userPrinLabel);
             userPrinciple.add(userPrinvalue);
             ButtonGroup loanGroup = new ButtonGroup();
             outputLabel = new JLabel("Click to see your payment");
             buttonSubmit = new JButton("Submit");
             buttonSubmit.addActionListener(b1);
             outputLabel3 = new JLabel("Click here to clear Data");
             buttonClear = new JButton("Clear");
             buttonClear.addActionListener(b1);
               JPanel results = new JPanel();
               mortgagePayment = new JLabel ("Your Monthly Payments are");
             totPayment = new JTextField(10);
               results.add(mortgagePayment);
             results.add(totPayment);
               JPanel comboBx = new JPanel();
             termRateLbl = new JLabel("Select a Term and Rate from the options listed");
               comboBx.add(termRateBx);
             comboBx.add(termRateLbl);
             pymntTable = new JTextArea(headers, 10, 50);
             JScrollPane scroll = new JScrollPane(pymntTable, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
             try
                UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
                 catch(Exception e)
                   JOptionPane.showMessageDialog(null,"The UIManager could not set the Look and Feel for this applicatoin.", "Error",
                      JOptionPane.INFORMATION_MESSAGE);
             winPane.add(userPrinciple);
             winPane.add(comboBx);
             winPane.add(results);
               winPane.add(scroll);
               winPane.add(outputLabel);
               winPane.add(buttonSubmit);
             winPane.add(outputLabel3);
             winPane.add(buttonClear);
               this.add(winPane);
           private class ButtonListener implements ActionListener
              public void actionPerformed(ActionEvent e)
                Object source = e.getSource();
                String selection = (String)termRateBx.getSelectedItem();
             //used the term user because this is the user input.  When the user inputs a correct value then the program moves on
                do
                   //captures the user data entered in the text field and converts it to double
                   String enterAmount = userPrinvalue.getText();
                   userPrin = Double.parseDouble(enterAmount);
                   if(userPrin <0)
                      JOptionPane.showMessageDialog(null,"The Principle value is out of range.  Please choose a value that is greater than 0", "Error",
                         JOptionPane.INFORMATION_MESSAGE);
                   else user=true;
                }while (!user);
                if(source == buttonSubmit)
                //captures the user data entered in the text field and converts it to double
                   String enterAmount = userPrinvalue.getText();
                   userPrin = Double.parseDouble(enterAmount);
                   if(selection.equals(loanRates[0]))
                      APR = 535 / (12 * 100);  //The APR is converted from whole number to % and reduced to the monthly rate
                      monthTerm = 7 * 12;  //The Term must be converted to months
                      adjustAPR= 1 + APR;
                      calcAPR = 1 - Math.pow(adjustAPR, -monthTerm);
                   if(selection.equals(loanRates[1]))
                      APR = 550 / (12 * 100);  //The APR is converted from whole number to % and reduced to the monthly rate
                      monthTerm = 15 * 12;  //The Term must be converted to months
                      adjustAPR= 1 + APR;
                      calcAPR = 1 - Math.pow(adjustAPR, -monthTerm);
                   if(selection.equals(loanRates[2]))
                      APR = 575 / (12 * 100);  //The APR is converted from whole number to % and reduced to the monthly rate
                      monthTerm = 30 * 12;  //The Term must be converted to months
                      adjustAPR= 1 + APR;
                      calcAPR = 1 - Math.pow(adjustAPR, -monthTerm);
                   MP = userPrin * (APR / calcAPR);
                   DecimalFormat twodigits = new DecimalFormat("#,###.##");
                //The system will now render the monthly payment amount
                   totPayment.setText("$" + twodigits.format(MP));
                   double loanBal = userPrin, newLoanBal, mnthlyIntPd, mnthlyPrinPd;
                   for (int i = 0; i >= monthTerm;i++)
                      newLoanBal = loanBal;
                      mnthlyIntPd = loanBal * APR;
                      mnthlyPrinPd = MP - mnthlyIntPd;
                      loanBal = loanBal - mnthlyPrinPd;
                      pymntTable.append("\n"+i+ "\t\t" + twodigits.format(loanBal)+ "\t\t" + twodigits.format(mnthlyIntPd));
                if(source == buttonClear)
                   userPrinvalue.setText("");
                   pymntTable.setText(headers);
       }

  • If anyone can check this file for me

    Hi!
    Trying to print this ai file I had created. I can't open it now in CS6, CC or 2014? Says I don't have enough memory. (RAM). It is only 1.6mb. I'm running win 7 x64.
    Here it is on dropbox if anyone can opening it and save it say in a standard PDF or more compatible format?
    AI FILE
    When placing it I get this:
    Thank you
    Max

    I can't open the file.
    1) Tells me not enough memory?
    2) placing it in latest PS or AI I get the screen?
    I'll start from scratch, but if the file is okay, I'd rather use that. So if anyone can check it for me. Thanks

  • Problrm in compiling this program

    pLEASE LET ME KNOW WHERE i AM WRONG IN COMPILING THIS CODE....
    CAN WE CREATE A NEW PUBLIC STATIC OBJECT OF A CLASS UNDER MAIN??
    pLZ HELP
    import java.lang.*;
    import java.util.*;
    import realcom.real.*;//FORGET ABT THIS
    public class test{         //
    public static void main(Strings args[]){
    public static real r= new real();
    String abc="this is right" ;
    String result=r.taken(abc);
    System.out.println(abc);
    System.out.println(result);

    Whats the point of declaring a method scoped variable public - or static for that matter?
    public static real r = new real();
    Should be:
    real r = new real();
    Is this some kind of trick question?

  • HT1414 I am going through the process of unlocking my iphone 4 and have had all the go aheads from my service provider but i am still having problems when i plug the phone into itunes. Has anyone else had this program

    I am going through the process of unlocking my iphone 4 and have had all the go aheads from my service provider but i am still having problems when i plug the phone into itunes. Has anyone else had this problem??

    Umm, what problem?  What actually happens when you try to restore it in iTunes?

  • Help! I can't compile this program

    I copied the following program from E.Harold's book,Java Network Programming,online edition.The file name is SMTPClient.java.Its function is sending simple mails.
    When I compiled the file,there were 6 error messages indicating that the first 6 lines of code were wrong.The reasons are something like "class" or "interface" needed.
    Can anybody give me some advice?
    Source file:
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class SMTPClient extends JFrame {
    private JButton sendButton = new JButton("Send Message");
    private JLabel fromLabel = new JLabel("From: ");
    private JLabel toLabel = new JLabel("To: ");
    private JLabel hostLabel = new JLabel("SMTP Server: ");
    private JLabel subjectLabel = new JLabel("Subject: ");
    private JTextField fromField = new JTextField(40);
    private JTextField toField = new JTextField(40);
    private JTextField hostField = new JTextField(40);
    private JTextField subjectField = new JTextField(40);
    private JTextArea message = new JTextArea(40, 72);
    private JScrollPane jsp = new JScrollPane(message);
    public SMTPClient() {
    super("SMTP Client");
    Container contentPane = this.getContentPane();
    contentPane.setLayout(new BorderLayout());
    JPanel labels = new JPanel();
    labels.setLayout(new GridLayout(4, 1));
    labels.add(hostLabel);
    JPanel fields = new JPanel();
    fields.setLayout(new GridLayout(4, 1));
    String host = System.getProperty("mail.host", "");
    hostField.setText(host);
    fields.add(hostField);
    labels.add(toLabel);
    fields.add(toField);
    String from = System.getProperty("mail.from", "");
    fromField.setText(from);
    labels.add(fromLabel);
    fields.add(fromField);
    labels.add(subjectLabel);
    fields.add(subjectField);
    Box north = Box.createHorizontalBox();
    north.add(labels);
    north.add(fields);
    contentPane.add(north, BorderLayout.NORTH);
    message.setFont(new Font("Monospaced", Font.PLAIN, 12));
    contentPane.add(jsp, BorderLayout.CENTER);
    JPanel south = new JPanel();
    south.setLayout(new FlowLayout(FlowLayout.CENTER));
    south.add(sendButton);
    sendButton.addActionListener(new SendAction());
    contentPane.add(south, BorderLayout.SOUTH);
    this.pack();
    class SendAction implements ActionListener {
    public void actionPerformed(ActionEvent evt) {
    try {
    Properties props = new Properties();
    props.put("mail.host", hostField.getText());
    Session mailConnection = Session.getInstance(props, null);
    final Message msg = new MimeMessage(mailConnection);
    Address to = new InternetAddress(toField.getText());
    Address from = new InternetAddress(fromField.getText());
    msg.setContent(message.getText(), "text/plain");
    msg.setFrom(from);
    msg.setRecipient(Message.RecipientType.TO, to);
    msg.setSubject(subjectField.getText());
    // This can take a non-trivial amount of time so
    // spawn a thread to handle it.
    Runnable r = new Runnable() {
    public void run() {
    try {
    Transport.send(msg);
    catch (Exception ex) {
    ex.printStackTrace();
    Thread t = new Thread(r);
    t.start();
    message.setText("");
    catch (Exception ex) {
    // I should really bring up a more specific error dialog here.
    ex.printStackTrace();
    public static void main(String[] args) {
    SMTPClient client = new SMTPClient();
    // Next line requires Java 1.3 or later. I want to set up the
    // exit behavior here rather than in the constructor since
    // other programs that use this class may not want to exit
    // the application when the SMTPClient window closes.
    client.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    client.show();
    Message was edited by:
    oscarhua

    1:install Java SE,set the path variable to the directory of the bin folder(including bin).
    2:download the JavaMail 1.4 release from http://java.sun.com/products/javamail/downloads/index.html
    3:extract the downloaded file to any location and add the directory of its mail.jar file to classpath.
    4:download the JavaBeans Activation Framework 1.1release from
    http://java.sun.com/products/javabeans/jaf/downloads/index.html#download
    5:extract the downloaded file to any location and add the directory of its activation.jar file to classpath.
    then everything goes smoothly
    You inspired me and voronetskyy told me exactly what to do,so thak both of you again!:-)
    Message was edited by:
    oscarhua

  • I very much doubt anyone can do this within the next 24 hours

    PART 1
    Overleaf is the week by week winning numbers of the National Lottery that were drawn some time ago. This is found in the latter of this assignment.
    You are required to do the following:
    i)     Create an array of these winning numbers so that the first array element contains 3, the second contains 5, the third contains 14 and so on. There are 180 numbers in total and this number should determine the size of your array. Write java code to read the winning numbers from your file into a suitable array. To do this you are recommended to use a �Tokenizer� . Test your code by providing output of the winning numbers from the array to the screen, including the number of numbers read from the file.
    Note: The program must determine how many numbers were read from the file.
    Determine how frequently (i.e. how often) each of the winning numbers occurs. For this you will need another array (i.e. a �frequency array�) to store how often each of the winning numbers occurs. For example you can see from the data file that the winning number 9 has occurred 4 times, so that the frequency of 9 is 4. In this case the frequency array element 9 will contain 4. Write java code to determine an array of frequencies.
    ii)     Write java code that will draw a frequency diagram, which might look like:
    Lottery number     Frequency
    1           ***
    2           ***
    3           ***
    4           ***
    5           *****
    6           ***
    7           ***
    8           **
    9           ****
    10           * (e.t.c.)
    where for each winning number, there are printed the number of stars that correspond to how often it occurs (i.e. its frequency). We see that winning number 9 has 4 stars, one each of its occurrences.
    Combine i) � iii) into a Java program.
    PART 2.
    iii)     Each line of the file overleaf may be regarded as forming the numbers that belong to an object of class Lottery Ticket. Define such a class in java. Modify the program that you wrote in part 1, so that as each line of numbers is read, they form the data attribute of an object of class Lottery Ticket.
    Write java code, so that as each line of numbers from the file is read, they form the data attribute of an object of class Lottery Ticket. As each Lottery Ticket object is created it should be added to a linked list of Lottery Tickets. Test your code by printing the linked list.
    iv)     Finally write a method to test whether a particular lottery ticket (i.e. a particular set of six numbers) is present in the linked list of Lottery Tickets. Perform set of tests to demonstrate the correctness of your code.
    What to hand in for each part: (see Marking Scheme below)
    3 5 14 22 30 44
    6 12 15 16 31 44
    11 17 21 29 30 40
    26 35 38 43 47 49
    3 5 9 13 14 38
    2 3 27 29 39 44
    9 17 32 36 42 44
    2 5 21 22 25 32
    7 17 23 32 38 42
    6 16 20 30 31 47
    4 16 25 26 31 43
    1 7 37 38 42 46
    15 18 29 35 38 48
    16 19 21 29 36 45
    5 8 10 18 31 33
    11 12 17 26 32 42
    2 13 22 27 29 46
    9 18 19 24 31 41
    4 17 41 42 44 49
    22 25 30 32 41 43
    14 17 22 24 42 47
    1 4 6 23 26 49
    8 18 20 33 36 38
    9 15 22 31 34 48
    5 14 17 35 43 48
    7 16 25 26 28 41
    15 16 17 28 32 46
    12 13 25 37 44 45
    1 21 29 31 32 40
    12 15 26 44 46 49

    As I see it, your options are three-fold:
    1) Kidnap your teacher, tie them up with gaffer tape and then beat them with a rolled-up newspaper.
    2) Kidnap your teacher, tie them up with gaffer tape and then beat them with a rolled-up newspaper untill they give you a pass.
    3) Curl up into the foetal position and sob softly.
    Don't worry, a unit always seems easier the second, third..even fourth time around.

  • Anyone can test this...

    I thought of turning a reply post into a new post as I would like to see more opinions regarding the test I conducted this morning:
    http://picasaweb.google.com/104885826864232845203/IPhone4#5493714321485682290
    _Starting from the bottom my tests:_
    1st holding the phone with 2 fingers from the top, full 3G, tests x 3:
    1 at 11:35 am and 2 at 11:36 (PING's = 298ms, 262ms, 236ms)
    2nd touching the antenna split on the left with one finger(shorting them I can see bars going down) test x 3:
    all test at 11:37 (PING's = 768ms, 293ms, 1453ms)
    3rd cupping the phone with my left hand, I think anyone would(right handers) tap the screen with their right hand(finger) tests x 3:
    1 at 11:39 and 2 at 11:40 (PING's = 69504ms, 1615ms, 24057ms)
    Cupping the phone in some parts of the house will show No Service from full 3G reception.
    So far the way I hold my phone while having a conversation did not drop calls but sometimes the quality does suffer.
    Let me know what you think.
    Many thanks!

    aditz wrote:
    I was expecting a bit more input on the this. This test is not about voice quality/dropped calls that many people get(including me). This test proves that the update will be useless.
    How is my test relevant to your test? Even you stated in an above post that "maybe you're in an area that has strong signal". Unless we're sitting right next to each other and without a doubt on the same tower, one test is totally irrelavant to the other.
    And while, yes, I can duplicate the 'signal drop' issue on my iP4, I'll tell you right now mine works perfectly and I haven't had a dropped call yet -regardless how I hold it. My 3GS would drop calls all the time in certain locations around town (like my house), whereas, my iP4 has been stable in those same locations.
    Without a doubt some people are experiencing reception issues with this phone. But to say an update can't fix the issue is being presumptuous and naive, IMO. I deal support all our cell phones here at my work and have on numerous seen where a firmware update to the baseband/radio stack can greatly impact reception (good and bad) and dropped calls. I'm not saying this CAN be fixed with an update, but I would not go so far as to say it CAN'T be fixed with an update either.
    IMO, I think it's an issue with Apple AND the carrier.

  • Now I am tired of this Let's see anyone can solve this

    Hi all,
    I am having some serious trouble with JSP session. And i posted the problem but didn't find any solution.
    Now i am posting my code.
    The SITUATION IS: i am couple of JSP pages and THEY ARE NOT ALL LINKED TOGETHER. meaning that two of them is linked with sending data to another but the rest of them are just in one application but not connected. BUT in every page there is a separate link for all other pages AND this is not HTML FORM.
    Select_Database.JSP
    <!--Setting sessions-->
           <%
               String uname=request.getParameter("uname");
                String pass=request.getParameter("passw");
                session.setAttribute("user",uname);
            %>
    <!--Setting sessions-->Update_Para.JSP
    para_id=Integer.parseInt(category);
                         String username="";
                         username=(String)session.getAttribute("user");
                         //my new code
                     //File afile = new File(path);
                         BufferedWriter one = new BufferedWriter(new FileWriter(para_path));
                         one.write(para_data);
                         one.close();
                       out.println("<ul class='bullet'>");
                     out.println("<li><b>Successful Update</b></li><br>");
                     out.println("<br>");
                     out.println("</ul>");LogOff.JSP
    <% session.invalidate(); %>
    Here are three JSP pages pardon me i got rid of all the webdesign HTML codes for easy understanding.
    Now on the select _database.JSP file i am getting the user name and setting in sessions.
    Just reminding you all the pages got
    <%@page language="java" session="true" %>this on top.
    Now after i set the login name as a session value there is no connection between this page and any other page except the HREF links i mentioned above.
    On the Update_Para.JSP page as you can see i used that session variable. when they click LOGOFF HREF they are taken to the logoff.JSP and they are the session is killed.
    Now on the logoff.jsp page after loggin of if they click login again then they are taken to the login page and they login with a different id and when they goto Update_Para to update paragraph the user stored in JSP as the user logged in when the session was created two weeks ago meaning that that session is still alive after two weeks.
    Now i described the problem clearly here, Can anyone please tell me what is the problem. Thanks

    This may be caching on the user's browser. The user's browser may hold onto older web pages to make display quicker. This is usually only done for pages that are visited with normal links, rather than forms. The browser will look to see if the page has an expiration data, and then re-query the server if that expiration date has passed. Otherwise it will hold the same page in a cache on your hard-disk and display it from there when requested.
    You can try to solve this by forcing your page to expire as soon as it is created. See the following link:
    http://www.jguru.com/faq/view.jsp?EID=377

  • Anyone know why this program aint working

    i pretty much copied most of the code from an example program but this one doesnt seem to be working
    the error says i need another } but keeps saying the same thing when i add one
    import java.io.*;
    //this is a cprogram i have created so the users data entered into my main program can be read in a text file
    class cdetailreader
         public static void main (String args[])
              int input;
              try
                   // I have created a filereader to read the contents of the text file i created to hold customer data
                   // In my main program i named the text file to store customer details cdetails.txt
                   FileReader readcdetails = new fileReader("cdetails.txt");
                   input = reader.read();
                   While (input >=0)
                        System.out.print ((char) input);
                        input = reader.read();
              catch(Exception e){
              System.out.println("File does not exist"+e);
    }

    nice one mate it is actually a error in the program
    example but should have guessed. thanks for helpI suggest you ditch that source and find another one that doesn't suck.

  • Would anyone mind checking this program

    Perhaps telling me why I keep getting Out of Bounds Errors. I think (hopefully) that my coding here is pretty close, but I'm obviously missing something. The key is in my switch statement, I am attempting to check it before I do anything, so as not to get the Out of Bounds Error, but its not working. Can somebody maybe explain? Thank you.
    *   imports
    // include the Math import
    import java.lang.Math.*;
    import javax.swing.*;
    class DrunkWalker
         *      data items
        private static char ch[][] = new char[10][10];
        private static int  randNSEW;
        private static int  stopCode = 0;
        private     static int  row = 0;
        private     static int  col = 0;
        private     static int  alphaIndex = 0;
        private static char autoAlpha = 'A';
        public static void main(String args[])
              String inStrRow = JOptionPane.showInputDialog("Enter your starting row:\nAny number between " +
                                                                    "'0' and '9'");
             String inStrColumn = JOptionPane.showInputDialog("Enter your starting column\nAny number " +
                                                                    "between '0' and '9'");
              row = Integer.parseInt(inStrRow);
              col = Integer.parseInt(inStrColumn);
             loadArray();
             while (stopCode != 1)
                   System.out.println("[" + row + ", " + col + "]"); // added
                    getRand();
                      switch(randNSEW)
                     case 0:
                         if(ch[row-1][col] == '.' && checkNorth() == true)     //north
                             ch[row-1][col] = (autoAlpha);
                             row = row - 1;
                             autoAlpha++;
                             alphaIndex++;
                        else if(ch[row][col+1] == '.' && checkEast() == true)               //east
                             ch[row][col+1] = (autoAlpha);
                             col = col + 1;
                             autoAlpha++;
                             alphaIndex++;
                        else if(ch[row+1][col] == '.' && checkSouth() == true)                         //south
                             ch[row+1][col] = (autoAlpha);
                             row = row + 1;
                             autoAlpha++;
                             alphaIndex++;
                        else if(ch[row][col-1] == '.' && checkWest() == true)                         //west
                             ch[row][col-1] = (autoAlpha);
                             col = col - 1;
                             alphaIndex++;
                        else
                             stopCode = 1;
                             printArray();
                     break;
                     case 1:
                         if(ch[row][col+1] == '.' && checkEast() == true)
                             ch[row][col+1] = (autoAlpha);
                             col = col + 1;
                             autoAlpha++;
                             alphaIndex++;
                         else if(ch[row+1][col] == '.' && checkSouth() == true)
                             ch[row+1][col] = (autoAlpha);
                             row = row + 1;
                             autoAlpha++;
                             alphaIndex++;
                        else if(ch[row][col-1] == '.' && checkWest() == true)
                             ch[row][col-1] = (autoAlpha);
                             col = col - 1;
                             autoAlpha++;
                             alphaIndex++;
                        else if(ch[row-1][col] == '.' && checkNorth() == true)
                             ch[row-1][col] = (autoAlpha);
                             row = row - 1;
                             autoAlpha++;
                             alphaIndex++;
                        else
                             stopCode = 1;
                             printArray();
                     break;
                     case 2:
                        if(ch[row+1][col] == '.' && checkSouth() == true)                         //south
                             ch[row+1][col] = (autoAlpha);
                             row = row + 1;
                             autoAlpha++;
                             alphaIndex++;
                        else if(ch[row][col-1] == '.' && checkWest() == true)                         //west
                             ch[row][col-1] = (autoAlpha);
                             col = col - 1;
                             autoAlpha++;
                             alphaIndex++;
                         else if(ch[row-1][col] == '.' && checkNorth() == true)                         //north
                             ch[row-1][col] = (autoAlpha);
                             row = row - 1;
                             autoAlpha++;
                             alphaIndex++;
                        else if(ch[row][col+1] == '.' && checkEast() == true)                         //east
                             ch[row][col+1] = (autoAlpha);
                             col = col + 1;
                             autoAlpha++;
                             alphaIndex++;
                        else
                             stopCode = 1;
                             printArray();
                     break;
                     case 3:
                        if(ch[row][col-1] == '.' && checkWest() == true)                         //west
                             ch[row][col-1] = (autoAlpha);
                             col = col - 1;
                             autoAlpha++;
                             alphaIndex++;
                             else if(ch[row-1][col] == '.' && checkNorth() == true)                         //north
                             ch[row-1][col] = (autoAlpha);
                             row = row - 1;
                             autoAlpha++;
                             alphaIndex++;
                        else if(ch[row][col+1] == '.' && checkEast() == true)                         //east
                             ch[row][col+1] = (autoAlpha);
                             col = col + 1;
                             autoAlpha++;
                             alphaIndex++;
                        else if(ch[row+1][col] == '.' && checkSouth() == true)                         //south
                             ch[row+1][col] = (autoAlpha);
                             row = row + 1;
                             autoAlpha++;
                             alphaIndex++;
                        else
                             stopCode = 1;
                             printArray();
                        break;
                     default:
                     break;
                 } // end switch
                 if(alphaIndex == 26)
                    stopCode = 1;
             } // end while loop
             printArray();
         }  // end main
         public static void loadArray()
              int row;
              int col;
              for(row=0; row<10; row++)
                  for(col=0; col<10; col++)
                      ch[row][col] = '.';
         }// end loadArray
         public static void printArray()
              int row;
              int col;
              for(row=0; row<10; row++)
                  System.out.println();
                  for(col=0; col<10; col++)
                      System.out.print(ch[row][col]);
              System.out.println();
         }// end printArray
         public static void getRand()
              int x100 = 0;
              double randomNum = 0.0;
              randomNum = Math.random();
              x100= (int)(randomNum * 100);
              randNSEW = x100 % 4;
         public static int getRow()
              return row;
         public static int getCol()
              return col;
         public static boolean checkNorth()
              if(getRow() - 1 == -1)
                   return false;
              else
                   return true;
         public static boolean checkEast()
              if(getCol() + 1 >= 10)
                   return false;
              else
                   return true;
         public static boolean checkSouth()
              if(getRow() + 1 >= 10 )
                   return false;
              else
                   return true;
         public static boolean checkWest()
              if(getCol() - 1 == -1)
                   return false;
              else
                   return true;
    }

    ...it was Antipattern... wikipedia page is right that error handling would always be slower. I decided that I should also check how much slower the exception handling code is in comparison to normal one, and I was amazed to see that it was very very slow. According to some tests I performed, it was *7-8 times slower!!* So, this has further assured me, and I will never use this coding style, I will also change the code of my minesweeper game ;-)
    Here is the code which I used for testing:
    import java.util.Random;
    * @author talha
    public class DrunkWalkerTesting {
        private static char ch[][] = new char[10][10];
        private static int randNSEW;
        private static int row = 0,  col = 0;
        private static int alphaIndex = 0;
        private static Random random = new Random();
        final static int NORTH = 0;
        final static int EAST = 1;
        final static int SOUTH = 2;
        final static int WEST = 3;
        public static void main(String args[]) {
            long start = System.currentTimeMillis();
            long originalseed=start;
            for (int count = 0; count < 10000; count++) {
                for (int i = 0; i < 10; i++) {
                    for (int j = 0; j < 10; j++) {
                        loadArray();
            long end = System.currentTimeMillis();
            long timeTakenLoadingArray = end - start;
            start = System.currentTimeMillis();
            random.setSeed(originalseed);
            for (int count = 0; count < 10000; count++) {
                for (int i = 0; i < 10; i++) {
                    for (int j = 0; j < 10; j++) {
                        row = i;
                        col = j;
                        alphaIndex = 0;
                        loadArray();
                        drunkWalk();
            end = System.currentTimeMillis();
            long timeTakenNormal = end - start;
            printArray();
            start = System.currentTimeMillis();
            random.setSeed(originalseed);
            for (int count = 0; count < 10000; count++) {
                for (int i = 0; i < 10; i++) {
                    for (int j = 0; j < 10; j++) {
                        row = i;
                        col = j;
                        alphaIndex = 0;
                        loadArray();
                        drunkWalkException();
            end = System.currentTimeMillis();
            long timeTakenException = end - start;
            double secondsNormal = ((double)timeTakenNormal - timeTakenLoadingArray) / 1000;
            double secondsException = ((double)timeTakenException - timeTakenLoadingArray) / 1000;
            System.out.println("Time for 1000000 runs of normal case:" + secondsNormal +" sec");
            System.out.println("Time for 1000000 runs of exception case:" + secondsException +" sec");
            printArray();
        private static void drunkWalk() {
            while (true) {
                randNSEW = random.nextInt(4);
                boolean noWhereToMove = false;
                int counter = 0;
                while (!noWhereToMove) {
                    switch (randNSEW) {
                        case NORTH:
                            row--;
                            break;
                        case EAST:
                            col++;
                            break;
                        case SOUTH:
                            row++;
                            break;
                        case WEST:
                            col--;
                    if (row < 0 || row > 9 || col < 0 || col > 9) {
                        //hit the boundary...
                        tryAnotherDirection();
                    } else if (ch[row][col] == '.') {
                        //move
                        ch[row][col] = (char) ('A' + alphaIndex++);
                        break;
                    } else {
                        //can't move, already visited
                        tryAnotherDirection();
                    if (counter++ == 4) {
                        noWhereToMove = true;
                if (noWhereToMove || alphaIndex == 26) {
                    break;
        private static void drunkWalkException() {
            while (true) {
                randNSEW = random.nextInt(4);
                boolean noWhereToMove = false;
                int counter = 0;
                while (!noWhereToMove) {
                    try {
                        switch (randNSEW) {
                            case NORTH:
                                row--;
                                break;
                            case EAST:
                                col++;
                                break;
                            case SOUTH:
                                row++;
                                break;
                            case WEST:
                                col--;
                        if (ch[row][col] == '.') {
                            //move
                            ch[row][col] = (char) ('A' + alphaIndex++);
                            break;
                        } else {
                            //can't move, already visited
                            tryAnotherDirection();
                    } catch (ArrayIndexOutOfBoundsException ex) {
                        //hit the boundary...
                        tryAnotherDirection();
                    if (counter++ == 4) {
                        noWhereToMove = true;
                if (noWhereToMove || alphaIndex == 26) {
                    break;
        private static void tryAnotherDirection() {
            switch (randNSEW) {  //restore old index values
                case NORTH:
                    row++;
                    break;
                case EAST:
                    col--;
                    break;
                case SOUTH:
                    row--;
                    break;
                case WEST:
                    col++;
            randNSEW = (randNSEW + 1) % 4; //try other direction
        public static void loadArray() {
            for (int i = 0; i < 10; i++) {
                for (int j = 0; j < 10; j++) {
                    ch[i][j] = '.';
        public static void printArray() {
            for (int i = 0; i < 10; i++) {
                System.out.print("[");
                for (int j = 0; j < 10; j++) {
                    System.out.print(" " + ch[i][j]);
                System.out.println("]");
    }Thanks once again Mr.Warner, if you hadn't criticized me, then I would not have stopped using this darned coding style. I will try never to catch runtime exceptions, and code such that they are never thrown.

Maybe you are looking for

  • How to remove duplicate entries in about:config

    I've got duplicate listings for browser.cache.memory.capacity in about:config. I'd like to remove one and leave one, but I can't seem to do this, nor have I found any FAQ etc. with directions on how to do this. Please advise. Thanks very much

  • How to show pending transfers

    Hey, I recently upgraded my iTunes for Windows... but I cannot see how to show pending file transfers when moving music to my iPod. When I click on my device, it only shows the current music thats on it... and not the queue of files currently in rout

  • Purchased album...cannot access it other than through purchase history..

    Help. I purchased a new album...just received my nano for b'day...new to this. Purchased but it does not show up in my itunes list to sync. How do I get this onto the playlist to sync? I can only view it in purchase history.

  • Newbie question: how do I create a bokeh effect in PSE 8?

    I am having trouble getting a blurred background effect in a portrait.  Could someone please tell me how to do it. I've attached the example I am working on.  All I want to do is to blur down the bricks behind the man's head, but I cannot seem to do

  • Shared member equivalent to EssVGetMemberInfo?

    in excel - is there a way to do=EssGetMemberInfo([sheet];"value";8;TRUE/FALSE;[cell]) for shared members as well?i need the parent of a bottom level shared member but until now i have no clue how. there is no problem with the members, but i just coul