Newbie to programming - where to start?

Hi.
I'm very interested in programming and would like to just get myself familiar with the basics. It seems quite daunting and I was wondering if anyone could recommend any books that really do start from the beginning so I can see if it's something I could grasp and progress with.
Is objective C a good place to start?
All advice and help gratefully received.

My answer to your question might come from a surprising source---
http://msdn.microsoft.com/en-us/beginner/bb308760.aspx
Yes you read that correctly, its a Microsoft site. (Don't skip, keep reading, I'm NOT trying to convince you back to windows!) This is the beginner learning center microsoft provided, all the video tutorial is free while you don't plan to develop for Windows, you don't have to learn their framework, but on the Windows Development Track Tier 1, there are five lesson called Bits & Bytes, these lesson is basically teaching you the basic concept of programming, even if you have completely no knowledge on what programming is.
This is how I begin to learn programming actually, I did not finish all the lessons however, as my goal was not developing for Windows.
(an extra tip: If you enjoy watching video instead of crunching books, you can check out the "Absolute Beginners Series" in tier 2 as well, as that part introduce you to object oriented programming quite well. Since both Object-C and C# are all object oriented language based on C, the concept of objects are actually similar. Just that the actual code used is different. You don't have to look at any lesson beyond the last lesson from Tier 2, from that point on its getting into .Net framework which is strictly Microsoft stuff.)

Similar Messages

  • New to Programming: Where to Start?

    Hi
    I'm 15 and just want to get a small start in the programming area for mac and iPhone/iPod Touch. I heard to be able to make apps for the App Store I need to have knowledge in Objective-C. Could you recommend any good video tutorials, books or things i need to learn for someone who doesnt know anything about programming? Thanks, any help much appreciated.

    Start with a book and actually trying to write programs. Writing programs is the best way. If you strictly want to focus on iPhone development, you'll need two books, one on Objective-C and the another one to learn to use the different frameworks available on the iPhone. Objective-C is the language used to write iPhone programs.
    Before you invest in these books, do a search on google for something like "iphone sdk tutorial." Theres a few out there. Try to follow a long. If you're still interested after a couple of weeks, invest in the books. It's important to have good reference books.
    They way I go about it when I start studying a new subject and I want to find out what the best books are, I do a search on amazon.com. I just type in the subject of what I'm interested in. For example, I'll search for "objective c." Typically, the top results are the books that have sold the most. Most of the times these are the titles you want to check out. Read the comments people have. A good way to tell if a book is decent is by looking at the spread in the price of the book. If a new book is $50 and used is around $40, then it's a good sign the book has high demand and people tend to keep their copies and not sell them. If the new book is $50 and a used copy is $5 or $10 or something along those lines, then it might not be as good of a book since people are practically giving away their copies.
    Good luck.
    adolfo

  • Programming: Where to start

    Okay, i am a graphic designer, and an accountant. Always have been. Never wrote one line of code (unless you count HTML). I would like to get started in this area, and so would my son, and I was wondering what good tutorial would be good to start with, what language first (i would like to learn to program cross platform), and of course, how to use Xcode 1.5. Help is greatly appreciated!

    Hi Kelly!
    Have you ventured into this forum Software Development 101?
    Good Luck!
    ali b

  • From where to start android programming ?

    the question pretty much explains it. i have almost completed java programming. i have completed half of java essential classes from oracle java tutorials but what i mean is which ide should i download and from where should i learn it. for java programming i have been using netbeans and i think it also supports android programming. any suggestions would be appreciated.

    I would start from here: https://developer.android.com/training/index.html
    This is where I started 2-3 years ago, when Eclipse was the preferred (only?) IDE.
    I have no idea if they still base the tutorials on Eclipse only, but if it is so, I would not mind learning another IDE for the sake of learning Android programming.
    Advice: do not get too deep into Java GUI programming, because Android does not use AWT/Swing. Most of the rest of your Java background will be very useful.

  • I wanted to know explain my problem down package cc2014 where I put the serial number of the problem that I have is that when you open the program asks me start of session in which he put it and go but back inside and it drives me to request the start of

    I wanted to know explain my problem down package cc2014 where I put the serial number of the problem that I have is that when you open the program asks me start of session in which he put it and go but back inside and it drives me to request the start of session and I take 3 weeks or more with this problem if they can support me solve it was the number of seire wearing this being installed at a private university

    Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
    Some general information for a Cloud subscription
    Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    Does your Cloud subscription properly show on your account page?
    If you have more than one email, are you sure you are using the correct Adobe ID?
    https://www.adobe.com/account.html for subscriptions on your Adobe page

  • I have Labview 5.0 and I can't run a program it gives me a runrime error C++ relating to the Labview exe file. Do you know where to start to fix this?

    I've had this version for quite a long time and haven't had any problems with it. When I start Labview normally it seems to work fine I can look at individual Vi's and such but when I go to start a Vi program or even the tutorial it gives me a "Runtime error message C++ 
    C:\Program File\National Instruments\LabView\LabView.exe  abnmormal program termination." I'm not sure if it is a computer problem DAQ card (PCI 6023E) problem or a software glich. If you have any ideas of where to start tracking this down please let me know ASAP. It is a work stoppage situation.
    Thanks for your consideration
    Maurice Massey
    UES,Inc

    Have you tried doing a repair or reinstalling?

  • How do I remove programs from my start up disk? Where is my start up disk?

    How do I remove programs from my start up disk? Where is my start up disk?

    The start up disk is normally just the hard disk in your computer.  Where you normally keep all your files.  Technically, it is the disk that contains the operating system which is being used - from which the computer starts.
    Freeing space on your Mac OS X startup disk - The X Lab
    Mac Startup Disk Full - How to Free Up Space - YouTube
    Startup Disk Nearly Full? 6 Space-Saving Tips For Critically ...
    Clearing Disk Space on Your Mac - For Dummies

  • I have no idea where to start

    okay, hi! i'm trying to write a vending machine program for a class i'm taking. i have a text file with names, image URLs, and prices. I have a product class which is supposed to use filereader to read the fields in the text file. The product class is going to be loaded by the main VendMach class file, where i will have all of the main ui stuff written. The last file is the MoneyInOut class, which handles all of the money methods. i've got the majority of the UI file done, the text file is ready, and the money file is almost done...everything is hanging on whether or not i can write the product file. i have no idea where to start. any help would be greatly appreciated. i'm not looking for somebody else to write my code, but a point in the right direction would be great! here are the UI and text files:
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.text.NumberFormat;
    import java.util.StringTokenizer;
    // Still to be fixed:
    // 1. Purchase & Maintenance buttons.
    // 2. fix repaint of pictures, they don't display until a repaint is hit.
    // 3. fix the Quit from program, it doesn't work right.
    // 4. Put in the code for doing Maintenance.
    // 5. Button super.setSize
    // 6. Animate picture on selection.
    public class VendMach extends Applet implements ActionListener
    // Fonts for text and buttons.
    private Font boldSerif16 = new Font("Serif",Font.BOLD,16);
    private Font boldSerif24 = new Font("Serif",Font.BOLD,24);
    private Font boldItalicSerif24 = new Font("Serif",Font.BOLD+Font.ITALIC,24);
    private Font boldItalicSerif13 = new Font("Serif",Font.BOLD+Font.ITALIC,13);
    private Font boldItalicSerif40 = new Font("Serif",Font.BOLD+Font.ITALIC,40);
    //%% private Font boldItalicDialog16 = new Font("Dialog",Font.BOLD+Font.ITALIC,16);
    // Mode flag.
    private int mode = 0;
    // Panels for the buttons
    private Panel mainPanel = new Panel();
    private Panel cashPanel = new Panel();
    private Panel selPanel = new Panel();
    private Panel maintPanel = new Panel();
    // Product selection panel buttons
    private Button selBtn[] = new Button[6];
    // Cash customer puts in machine panel buttons
    private Button viewC = new Button("View The Products");
    private Button quit = new Button("Quit");
    private Button bNickle = new Button("Nickel");
    private Button bDime = new Button("Dime");
    private Button bQuarter = new Button("Quarter");
    private Button b$Paper = new Button("$1 Paper");
    private Button b$Coin = new Button("$1 Coin");
    private Label lCredit = new Label(" Credit:");
    private Label lMsg = new Label("");
    private Button bChange = new Button("Change Return");
    private Button purchase = new Button("Purchase");
    private Button maintenance = new Button("Maintenance");
    private Product productForSale [];
    private CashIn changeOH;
    private int $collected = 0;
    private double total$In = 0.00;
    private NumberFormat nf;
    private Image pic;
    private Image picAnim;
    private int prodSel = 999;
    private String line;
    private String f[] = new String[8];
    private int tokenCount;
    private int int3, int4, int5, int6, int7;
    private double dbl4;
    private StringTokenizer strings;
    private int dispense = 99;
    public void init()
    {  setLayout(new BorderLayout());
    productForSale = new Product[6];
    try
    {  BufferedReader inPut = new BufferedReader(new FileReader("Vend_Machine.txt"));
    while ((line=inPut.readLine()) != null)
    {  strings = new StringTokenizer(line,",");
    tokenCount = strings.countTokens();
    // Loop thru and retrieve each data element.
    for (int i=0; i<tokenCount; i++)
    f[i] = strings.nextToken();
    // Load the money.
    if (f[0].compareTo("M") == 0)
    {  int3 = Integer.parseInt(f[3]);
    int4 = Integer.parseInt(f[4]);
    int5 = Integer.parseInt(f[5]);
    int6 = Integer.parseInt(f[6]);
    int7 = Integer.parseInt(f[7]);
    changeOH = new CashIn(f[1],f[2],int3,int4,int5,int6,int7);
    // Load the products.
    if (f[0].compareTo("P") == 0)
    {  int3 = Integer.parseInt(f[3]);
    dbl4 = (new Double(f[4])).doubleValue();
    int5 = Integer.parseInt(f[5]);
    int6 = Integer.parseInt(f[6]);
    int7 = Integer.parseInt(f[7]);
    productForSale[int3] = new Product(f[1],f[2],dbl4,int5,int6,int7);
    inPut.close();
    catch(IOException e)
    {  e.printStackTrace();
    setBackground(Color.pink);
    setForeground(new Color(120,0,120));
    setFont(boldSerif16);
    cashPanel.setLayout(new GridLayout(10,1));
    cashPanel.add(viewC);
    cashPanel.add(quit);
    cashPanel.add(bNickle);
    cashPanel.add(bDime);
    cashPanel.add(bQuarter);
    cashPanel.add(b$Paper);
    cashPanel.add(b$Coin);
    cashPanel.add(lCredit);
    cashPanel.add(lMsg);
    cashPanel.add(bChange);
    add(cashPanel,"East");
    selPanel.setLayout(new GridLayout(1,6));
    for (int i=0; i<6; i++)
    {  selBtn[i] = new Button(productForSale.getName());
    selPanel.add(selBtn[i]);
    add(selPanel,"South");
    setBackground(Color.black);
    viewC.addActionListener(this);
    quit.addActionListener(this);
    bNickle.addActionListener(this);
    bDime.addActionListener(this);
    bQuarter.addActionListener(this);
    b$Paper.addActionListener(this);
    b$Coin.addActionListener(this);
    bChange.addActionListener(this);
    nf = NumberFormat.getCurrencyInstance();
    for (int i=0; i<6; i++)
    selBtn[i].addActionListener(this);
    } // =======>> END OF INIT METHOD
    // ** PAINT METHOD **
    public void paint(Graphics g)
    {  int xVal = 35;
    int yVal = 85;
    int xValAnim = 0;
    int yValAnim = 0;
    int c = 0;
    // Paint the product pictures on the vending machine.
    g.setColor(Color.cyan);
    g.setFont(boldItalicSerif24);
    g.drawString(changeOH.getLogo1(),115,40);
    g.setFont(boldItalicSerif13);
    g.drawString(changeOH.getLogo2(),200,60);
    for (int z=0; z<2; z++)
    {  xVal = 35;
    yVal = 85;
    c = 0;
    g.setColor(Color.black);
    g.fillRect(xVal,yVal,500,350);
    g.setColor(Color.yellow);
    for (int i=0; i<2; i++)
    {  for (int j=0; j<3; j++)
    {  g.setFont(boldSerif16);
    g.drawString(nf.format(productForSale[c].getPrice()),xVal+45,yVal-5);
    pic = getImage(getCodeBase(),productForSale[c].getPic());
    g.drawImage(pic,xVal,yVal,null);
    // If product is dispensed get ready to animate.
    if (c == dispense)
    {  xValAnim = xVal;
    yValAnim = yVal;
    picAnim = pic;
    xVal = xVal + 170;
    c++;
    yVal = yVal + 160;
    xVal = 35;
    // If product is dispensed, animate it.
    if (dispense < 99)
    {  for (int y=0; y<40; y++)
    {  g.setColor(Color.black);
    g.fillRect(xValAnim,yValAnim-9,125,125);
    g.setColor(Color.yellow);
    g.drawImage(picAnim,xValAnim,yValAnim,null);
    yValAnim = yValAnim + 10;
    pause(3);
    dispense = 99;
    if (mode == 0)
    {  pic = getImage(getCodeBase(),"OutStock.gif");
    g.drawImage(pic,300,300,null);
    g.setColor(Color.black);
    g.fillRect(1,1,500,300);
    g.setColor(Color.pink);
    g.setFont(boldItalicSerif40);
    g.drawString(changeOH.getLogo1(),10,150);
    g.setFont(boldItalicSerif24);
    g.drawString(changeOH.getLogo2(),160,250);
    mode++;
    } // =======>> END OF PAINT METHOD
    // ** ACTIONPERFORMED METHOD **
    public void actionPerformed(ActionEvent event)
    {  Object source = event.getSource();
    lMsg.setText(" Enter up to $1.00");
    // Customer puts money in the vending machine.
    // Customer paid a nickle
    if (source == bNickle && $collected < 96)
    {  changeOH.nickleIn();
    $collected = $collected + 5;
    // Customer paid a dime
    if (source == bDime && $collected < 91)
    {  changeOH.dimeIn();
    $collected = $collected + 10;
    // Customer paid a quarter
    if (source == bQuarter && $collected < 76)
    {  changeOH.quarterIn();
    $collected = $collected + 25;
    // Customer paid a paper dollar
    if (source == b$Paper && $collected == 0)
    {  changeOH.dollarPaperIn();
    $collected = $collected + 100;
    // Customer paid a coin dollar
    if (source == b$Coin && $collected == 0)
    {  changeOH.dollarCoinIn();
    $collected = $collected + 100;
    // Customer makes their product selection.
    for (int i=0; i<6; i++)
    {  if (source == selBtn[i])
    // Do nothing if customer selects item that isn't on-hand.
    if (productForSale[i].getOnHand() == 0)
    repaint();
    // We have product on-hand.
    else
    {  prodSel = i;
    // Tell customer to add more money if they don't have
    // enough in the machine to handle the purchase.
    if ($collected < (int) (productForSale[i].getPrice() * 100))
    { lMsg.setText("    Insert Money");
    // Customer has enough money in machine to cover purchase.
    else
    {  // Take cost of item from customer's money
    dbl4 = productForSale[i].getPrice() * 100;
    int4 = changeOH.giveChange($collected - (int)dbl4,0);
    // Tell customer to put exact amount in the machine
    // because there isn't enough change to handle purchase.
    if (int4 == 9)
    {  lMsg.setText("Exact Amount Only!");
    // **** Here the purchase was made and committed. ****
    else
    {  total$In = productForSale[i].getPrice() * 100;
    $collected = $collected - (int) total$In;
    productForSale[i].sellProduct();
    dispense = i;
    repaint();
    // If the last product item was sold, set picture to OutStock.gif.
    if (productForSale[i].getOnHand() <= 0)
    productForSale[i].setOutOfStock();
    if ((source == bChange || source == quit) && $collected > 0)
    {  $collected = changeOH.giveChange($collected,1);
    // Here we save the machine info file when customer asks
    // for their change back or quits the machine.
    // Customer has selected to Quit the vending machine program.
    // Quit the program.
    if (source == quit)
    System.exit(0);
    // These commands set up variables to show how much money
    // the customer has in the machine.
    total$In = $collected;
    total$In = total$In / 100;
    lCredit.setText(" Credit: " + nf.format(total$In));
    repaint();
    } // =======>> END OF ACTIONPERFORMED METHOD
    // ** PAUSE METHOD **
    public void pause(int i)
    {  for(long l = System.currentTimeMillis() + (long) i; System.currentTimeMillis() < l;);
    // =======>> END OF VENDMACH CLASS APPLET
    // ** CASHIN CLASS **
    class CashIn
    {  private String logo1;
    private String logo2;
    private int numProd;
    private int nickles;
    private int dimes;
    private int quarters;
    private int dollarsP;
    private int dollarsC;
    private int money;
    private double moneyVal;
    private int amtToChange = 0;
    private int hNickle;
    private int hDime;
    private int hQuarter;
    private int hpDollar;
    private int hcDollar;
    public CashIn(String l1, String l2, int p, int q, int d, int n, int dP)
    {  logo1    = l1;
    logo2 = l2;
    numProd = p;
    quarters = q;
    dimes = d;
    nickles = n;
    dollarsP = dP;
    dollarsC = 0;
    money = (n * 5) + (d * 10) + (q * 25) + (dP * 100);
    // Get total of money in machine.
    public double getCashIn()
    {  moneyVal = money;
    moneyVal = moneyVal / 100;
    return moneyVal;
    // Get machine record information.
    public String getLogo1()
    {  return logo1;
    public String getLogo2()
    {  return logo2;
    public int getNumProd()
    {  return numProd;
    public int getNickles()
    {  return nickles;
    public int getDimes()
    {  return dimes;
    public int getQuarters()
    {  return quarters;
    public int getDollarPaper()
    {  return dollarsP;
    public int getDollarCoins()
    {  return dollarsC;
    // Money comes into the machine
    public void nickleIn()
    {  nickles++;
    money = money + 05;
    public void dimeIn()
    {  dimes++;
    money = money + 10;
    public void quarterIn()
    {  quarters++;
    money = money + 25;
    public void dollarPaperIn()
    {  dollarsP++;
    money = money + 100;
    public void dollarCoinIn()
    {  dollarsC++;
    money = money + 100;
    // Give the customer their change.
    public int giveChange(int custMoney, int mode)
    {  hNickle   = nickles;
    hDime = dimes;
    hQuarter = quarters;
    hpDollar = dollarsP;
    hcDollar = dollarsC;
    amtToChange = custMoney / 100;
    for (int i=0; i<amtToChange; i++)
    {  // Give change in dollar coin if possible
    if (hcDollar > 0)
    {  hcDollar--;
    custMoney = custMoney - 100;
    // or else give change in paper dollar
    else
    {  if (hpDollar > 0)
    {  hpDollar--;
    custMoney = custMoney - 100;
    amtToChange = custMoney / 25;
    for (int i=0; i<amtToChange; i++)
    {  if (hQuarter > 0)
    {  hQuarter--;
    custMoney = custMoney - 25;
    amtToChange = custMoney / 10;
    for (int i=0; i<amtToChange; i++)
    {  if (hDime > 0)
    {  hDime--;
    custMoney = custMoney - 10;
    amtToChange = custMoney / 5;
    if (amtToChange > hNickle)
    {  mode = 9;
    for (int i=0; i<amtToChange; i++)
    {  hNickle--;
    custMoney = custMoney - 5;
    if (mode == 1)
    {  nickles   = hNickle;
    dimes = hDime;
    quarters = hQuarter;
    dollarsP = hpDollar;
    dollarsC = hcDollar;
    money = money - custMoney;
    if (mode == 9) custMoney = 9;
    return custMoney;
    } // =======>> END OF CASHIN CLASS
    // ** PRODUCT CLASS **
    class Product
    {  private String name;
    private String image;
    private String picUsed;
    private double price;
    private int onHand;
    private int sold;
    private int maint;
    public Product(String n, String i, double p, int o, int s, int m)
    {  name    = n;
    image = i;
    picUsed = i;
    price = p;
    onHand = o;
    sold = s;
    maint = m;
    // Reset picture used when product is out of stock.
    public void setOutOfStock()
    {  picUsed  = "OutStock.gif";
    // Get product information
    public String getName()
    {  return name;
    public String getImage()
    {  return image;
    public String getPic()
    {  return picUsed;
    public double getPrice()
    {  return price;
    public int getOnHand()
    {  return onHand;
    public int getQtySold()
    {  return sold;
    public int getMaintDate()
    {  return maint;
    // Sell one of the product.
    public void sellProduct()
    {  onHand--;
    sold++;
    // Set the product values.
    public void setName(String n)
    {  name = n;
    public void setImage(String i)
    {  image   = i;
    picUsed = i;
    public void setPrice(double p)
    {  price = p;
    public void setOnHand(int o)
    {  onHand = o;
    public void setQtySold(int s)
    {  sold = s;
    public void setMaintDate(int m)
    {  maint = m; }
    this is the text file
    p,Fritos,Images/FritoLay.gif,
    m,$.50,
    p,Dr. Pepper,Images/Dr.Pepper.gif,
    m,$.60,
    p,Pepsi,Images/Pepsi.gif,
    m,$.60,
    p,Coke,Images/CocaCola.gif,
    m,$.60,
    p,Seven-Up,Images/7-Up.gif,
    m,$.60,
    p,Sprite,Images/Sprite.gif,
    m,$.60,
    c,10,20,40,
    i know that the filereader is supposed to read the fields...i guess i just have a weak start on understanding and implementing arrays.

    I write this sample some time ago, you can use it to start a new project
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CVM extends JFrame 
         JTextField mw = new JTextField("0");     
         JTextField hf = new JTextField("0");     
         JTextField ds = new JTextField("0");     
         JTextField lr = new JTextField("0");     
         JTextField py = new JTextField("0");     
         JTextField tp = new JTextField("0");     
         JTextField ch = new JTextField("0");     
    public CVM()
         super("Chocolate Vending Machine");
         setBounds(0,0,500,400);
         addWindowListener(new WindowAdapter()
         {      public void windowClosing(WindowEvent ev)
                   dispose();
                   System.exit(0);
         JPanel pan = new JPanel();
    //     pan.setLayout(new GridLayout(0,2,4,4));
         JPanel lp = new JPanel();
         lp.setBackground(Color.pink);
         lp.setLayout(new GridLayout(16,2,4,4));
         addButton(lp,"Milky Way    20$",mw);
         addButton(lp,"Hot Fudge    40$",hf);
         addButton(lp,"Dandy Shandy 50$",ds);
         addButton(lp,"Lovers Rock  80$",lr);
         addClearButton(lp);
         lp.add(new JLabel(""));
         lp.add(new JLabel(""));
         addPayButtons(lp);
         addMoneyBack(lp);
         pan.add(lp);
         setContentPane(pan);
         setVisible(true);
    private void addPayButtons(JPanel pan)
         JPanel lp = new JPanel();
         lp.setOpaque(false);
         lp.setLayout(new GridLayout(0,2,4,4));
         JButton b1 = new JButton("Pay 5");
         addPay(b1,5);
         b1.setMargin(new Insets(0,0,0,0));
         JButton b2 = new JButton("Pay 10");
         addPay(b2,10);
         b2.setMargin(new Insets(0,0,0,0));
         lp.add(b1);
         lp.add(b2);
         pan.add(lp);
         lp = new JPanel();
         lp.setOpaque(false);
         lp.setBackground(Color.cyan);
         lp.setLayout(new GridLayout(0,2,4,4));
         JButton b3 = new JButton("Pay 20");
         addPay(b3,20);
         b3.setMargin(new Insets(0,0,0,0));
         JButton b4 = new JButton("Pay 50");
         addPay(b4,50);
         b4.setMargin(new Insets(0,0,0,0));
         lp.add(b3);
         lp.add(b4);
         pan.add(lp);
         pan.add(new JLabel("    Payd"));
         pan.add(py);
    private void addPay(JButton bt, final int i)
         bt.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
                   int n = Integer.parseInt(py.getText())+i;
                   py.setText(""+n);
                   calculate();
    private void addButton(JPanel pan, String s, final JTextField jt)
         JButton    bt = new JButton(s);
         bt.setHorizontalAlignment(SwingConstants.LEFT);
         bt.setMargin(new Insets(0,0,0,0));
         pan.add(bt);
         bt.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
                   int i = Integer.parseInt(jt.getText())+1;
                   jt.setText(""+i);
                   calculate();
         jt.setHorizontalAlignment(SwingConstants.CENTER );
         jt.setEditable(false);
         jt.setBackground(Color.white);
         pan.add(jt);
    private void calculate()
         int nwi = Integer.parseInt(mw.getText()) * 20;       
         int hfi = Integer.parseInt(hf.getText()) * 40;  
         int dsi = Integer.parseInt(ds.getText()) * 50;  
         int lri = Integer.parseInt(lr.getText()) * 80;  
         int t   = nwi+hfi+dsi+lri;
         if (t >= 100) t = t - (t/10);
         tp.setText(""+t);
         int n = Integer.parseInt(py.getText());
         int c = n-t;
         ch.setText(""+c);
    private void addClearButton(JPanel pan)
         pan.add(new JLabel("    To pay"));
         pan.add(tp);     
         JButton    bt = new JButton("Clear");
         bt.setHorizontalAlignment(SwingConstants.CENTER);
         bt.setMargin(new Insets(0,0,0,0));
         pan.add(bt);
         bt.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
                   mw.setText("0");       
                   hf.setText("0");  
                   ds.setText("0");  
                   lr.setText("0");  
                   tp.setText("0");  
         pan.add(new JLabel(""));
    private void addMoneyBack(JPanel pan)
         JButton    bt = new JButton("Money back");
         bt.setHorizontalAlignment(SwingConstants.CENTER);
         bt.setMargin(new Insets(0,0,0,0));
         pan.add(bt);
         bt.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
                   py.setText("0");
                   ch.setText("0");
         pan.add(new JLabel(""));
         pan.add(new JLabel("    Change"));
         pan.add(ch);     
    public static void main( String[] args)
         new CVM();
    }Noah

  • RAM and Activity Monitor questions M.B.P. Is sOoOoo slow and I just don't know where to start..RAM and Activity Monitor

       So I am really unsure where to start but I def need a little help getting to where I want to be or feel I should be.  I understand that I am pretty much filled when it comes to the RAM on this machine but I need to figure out how to lower it.  I back up my machine about once a week which is longer than I would prefer but due to the way Mavericks has been acting I cant deal with the long backup process.... WHY?!?? may be your response to that and I will fill you in.  My external Hard Drive is a 1tb Lacie and its about 2 years old.  In that time I have dropped, lost, threw and slept ontop of it.  Causeing minor damage (each time) to the casing.  So now becomes rather hot and I kinda dont want it to burn out.  When I first updated to Mavericks the backups were fast and went along mb by mb...now though, the updates drag out for 3-5 hours and update kb by kb.  Tried some of the "solutions" posted on here but none seem to work any more than me consistantly purging my system while the backup happens...kinda why I dont have time to do it everyday like I'd like.
         ANYWAY can someone please fill me in on a way, program, application, anything that will help me lower my RAM?  Because in the spirit of honesty I just dont have the extra funds to snag some new RAM or another HD.  I am almost at the point of saying "F**K IT" and wiping everything off the computer so its as close to empty as can be and manually, one by one redownloading what I want/need.  But I dont have the time to accomplish that either.  PLEASE lend me your ear and help a brudda out with some information from that exceptional brain of yours. 
         Below is a copy of my machines "report" from EtreCHECK and I am including screen shots of what the (Mavericks) Activity Monitor currently looks like in ALL PROCESSES.  PLUS it kinda seems that I have WAY TOOO MANY processes going on in the ACTIVITY MONITOR and have NO clue how to lower the amount.    Will truly appreciate any help anyone can toss my way. 
        THANK YOU
                  TommyTheTuna
    Hardware Information:
              MacBook Pro (15-inch, Mid 2010)
              MacBook Pro - model: MacBookPro6,2
              1 2.4 GHz Intel Core i5 CPU: 2 cores
              4 GB RAM
    Video Information:
              Intel HD Graphics - VRAM: 288 MB
              NVIDIA GeForce GT 330M - VRAM: 256 MB
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0
              AirPlay: Version: 1.9
              AppleAVBAudio: Version: 2.0.0
              iSightAudio: Version: 7.7.3
    System Software:
              OS X 10.9 (13A603) - Uptime: 0 days 0:12:4
    Disk Information:
              TOSHIBA MK3255GSXF disk0 : (320.07 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) /: 319.21 GB (194.65 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-898 
    USB Information:
              Apple Internal Memory Card Reader
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Inc. Built-in iSight
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
    Kernel Extensions:
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist
              [not loaded] com.adobe.SwitchBoard.plist
              [not loaded] com.google.keystone.daemon.plist
              [not loaded] com.livescribe.PenCommService.plist
              [not loaded] com.luthresearch.scservice.plist
              [not loaded] com.microsoft.office.licensing.helper.plist
              [not loaded] com.paceap.eden.licensed.plist
              [not loaded] PACESupport.plist
    Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist
              [not loaded] com.google.keystone.agent.plist
              [not loaded] com.luthresearch.savvyconnectmenu.plist
              [not loaded] com.wacom.pentablet.plist
    User Launch Agents:
              [not loaded] com.adobe.ARM.[...].plist
              [not loaded] com.facebook.videochat.[redacted].plist
              [not loaded] com.google.keystone.agent.plist
              [not loaded] com.Livestation.plist
              [not loaded] com.spotify.webhelper.plist
    User Login Items:
              iTunesHelper
    3rd Party Preference Panes:
              Flash Player
    Internet Plug-ins:
              AdobePDFViewer.plugin
              AdobePDFViewerNPAPI.plugin
              Default Browser.plugin
              Flash Player.plugin
              FlashPlayer-10.6.plugin
              Google Earth Web Plug-in.plugin
              googletalkbrowserplugin.plugin
              iPhotoPhotocast.plugin
              JavaAppletPlugin.plugin
              npgtpo3dautoplugin.plugin
              o1dbrowserplugin.plugin
              QuickTime Plugin.plugin
              SharePointBrowserPlugin.plugin
              WacomNetscape.plugin
    User Internet Plug-ins:
              Unity Web Player.plugin
    Bad Fonts:
              None
    Time Machine:
              Skip System Files: NO
              Mobile backups: OFF
              Auto backup: NO
              Volumes being backed up:
                        Macintosh HD: Disk size: 319.21 GB Disk used: 124.57 GB
              Destinations:
                        Tuna's MacBook Pro Hard Drive [Local] (Last used)
                        Total size: 999.86 GB
                        Total number of backups: 2
                        Oldest backup: 2013-11-07 13:34:08 +0000
                        Last backup: 2013-11-26 05:08:40 +0000
                        Size of backup disk: Excellent
                                  Backup size 999.86 GB > (Disk size 319.21 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                   2%          WindowServer
                   1%          EtreCheck
                   0%          SystemUIServer
                   0%          fontd
                   0%          Finder
                   0%          Microsoft Word
                   0%          aosnotifyd
    Top Processes by Memory:
              156 MB             com.apple.WebKit.WebContent
              111 MB             Finder
              106 MB             Microsoft Word
              94 MB              Safari
              82 MB              Preview
              74 MB              WindowServer
              61 MB              CalendarAgent
              57 MB              com.apple.IconServicesAgent
              57 MB              com.apple.internetaccounts
              53 MB              SystemUIServer
    Virtual Memory Statistics:
              1.07 GB            Free RAM
              1.92 GB            Active RAM
              237 MB             Inactive RAM
              662 MB             Wired RAM
              223 MB             Page-ins
              0 B                Page-outs

    Mavericks is designed to use as much RAM as possible. Free RAM is wasted RAM... it's RAM that's not working for you, not doing anything helpful. Seeing your RAM full is not an indication that there is a problem. Seeing your memory pressure graph spike would be.
    As for the performance issues, see my Mac Performance Guide.
    Note that you've got a lot of third-party software loaded:
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist
              [not loaded] com.adobe.SwitchBoard.plist
              [not loaded] com.google.keystone.daemon.plist
              [not loaded] com.livescribe.PenCommService.plist
              [not loaded] com.luthresearch.scservice.plist
              [not loaded] com.microsoft.office.licensing.helper.plist
              [not loaded] com.paceap.eden.licensed.plist
              [not loaded] PACESupport.plist
    Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist
              [not loaded] com.google.keystone.agent.plist
              [not loaded] com.luthresearch.savvyconnectmenu.plist
              [not loaded] com.wacom.pentablet.plist
    User Launch Agents:
              [not loaded] com.adobe.ARM.[...].plist
              [not loaded] com.facebook.videochat.[redacted].plist
              [not loaded] com.google.keystone.agent.plist
              [not loaded] com.Livestation.plist
              [not loaded] com.spotify.webhelper.plist
    You should probably try to weed some of that out, if possible, or at least make sure it's all updated and compatible with Mavericks.

  • When opening iTunes I continue to get the same messages, 'The program can't start because AVFoundationCF.dll is missing' and 'iTunes was not installed correctly. Error 7 (Windows error 126)' I've uninstalled, reinstalled many times - nothing! help please.

    When opening iTunes on my new Windows 7 PC I continue to get the same messages, 'The program can't start because AVFoundationCF.dll is missing' and 'iTunes was not installed correctly. Error 7 (Windows error 126)' I've uninstalled and reinstalled many times to no avail, even tried it on a different user account and still nothing. I recently installed Panda Internet Security 2012 (about 12 days ago), initially iTunes worked fine as usual but within the last few days I've been  unable to open it with the same messages appearing. I've read through some of these pages and tried everything that's been advised, uninstalling and reinstalling while internet and laptop security is swithched off, downloading tools to completely remove anything related to iTunes, tried it in Safe Mode, nothing has worked. I've also noticed that in the start menu when I click on iTunes, it says '(empty)' where it should have the logo and ability to start the program, does this mean it doesn't download + install properly each time I've tried? Any help would be enormously appreciated.

    Doublechecking. Have you also tried the following user tip?
    Troubleshooting issues with iTunes for Windows updates

  • Multiple problems with 80GB classic, don't know where to start.

    Hey guys,
    I got an Apple classic 80GB for my bday early August and lately i've been having so many problems i dont know where to start, i'll try to explain them as best as i can.
    *problem 1:* Whenever i plug my iPod into my PC, it locks up the system for about 5 minutes, then comes up with an error box saying that 'There is a problem with your iPod yadda yadda restore etc'.
    I proceed to restore the iPod, then once its restored and reconnects itself, it repeats the cycle by freezing then telling me to restore. The only way i can do a restore and have it not give me an error is if i reboot when it is disconnected.
    *Problem 2:* When i finally get it up and ready to sync, i go to sync all my files (About 2000 songs). It gets to around the 1500 song mark then says there is an error and the iPod disconnects itself.
    It then instantaneously reconnects itself and starts syncing from where it left off.
    Once it has then sync'd all of the music ad tells me its ready to be ejected. I eject the iPod and disconnected it.
    I then go into the iPod and it has no songs/videos/photos, yet it has still used up about 15gb. If i reconnect it, it will just sit there for 5 minutes not syncing, it will then randomly say the sync is done and it will eject itself.
    FINALLY after all that i have my music on there
    *Problem 3* Once the songs are on the iPod, it becomes insanely laggy. If i navigate to a song and press play, it will take about 10 seconds for the actual song to play. The delay is just as bad for next song, pause etc. Even using it in my cars head unit causes it to lag.
    *Problem 4* If i do get a song playing after all that, about 1/5 songs will just randomly skip to the next song without letting it play through.
    I have all the latest iTunes/Firmware/Drivers for everything on my PC and iPod.
    I have sent it back to Apple for repair yet they could not find anything wrong (Yeah right :|)
    If anyone out there could help me please, im at my wits end with this infernal machine.
    Thankyou

    *Outdated operating system:* Cant be, im running XP SP3 with the latest updates
    *Computer needs updates:* I've got the latest drivers for all of my hardware, including BIOS
    *Software interference:* THe only other program i have running in the background is Kaspersky Antivirus, but that is disabled when i try to sync
    *Damaged Files* Possibly, i played through the album where it froze at and even reo-imported it, it seemed to play and import fine
    *Unregistered .dll files (Windows):* Tried this fix, but it did the same problems as the original post. Such as freezing on a certain song, then reconnecting itself only to put the music on there, yet it is really laggy
    *Damaged disk structure:* Tried this fix, didn't help
    *Corrupt iPod photo Cache* I have never tried to put photos on it, so i dont see how this could be it.
    *Lost connection:* Checked it, it's very firm and unlikely to come loose.
    *Conflict with third-party hardware:* I dont have any connected, nor have i ever
    *Bad hardware:* I tried it on all of my 8 USB drives. I dont use any hubs or firewire cards so this couldn't be it.
    Also i forgot to add that 1/5 times i go to restore, it locks the computer up and windows gives me a 'delayed write failed' bubble

  • How difficult to create a user login area, and where to start?

    I have a website which I created in Microsoft Expression Web 4. I would like to add a user login area and tie it to an existing SQL database which is updated frequently. I am not sure where to start or how likely I am to succeed. It is for a client's
    website, so I am willing (and hopefully able) to learn, but do not want it to turn into a long drawn out project.
    I can code in html and css and use java scripts. I don't know visual basic or how to work within the database (it will be provided by the client). I'm open to any advice on how easy or difficult this will be without other forms of coding knowledge, and would
    love any advice on the best place to start.  I have found some tutorials and downloaded MS Visual Studio Express 2013, since it was coming up as the best program for this. 
    Thank you for any advice!

    You want to create a login in SQL? any way you need one to access the database. You may need to contact your DBA to do it as you maynot be authorized to do it. Use below link to know creating SQL logins/Users.
    http://www.blackthornesw.com/robo/projects/blackthornepro/HOWTO_-_Creating_a_SQL_Server_Database_Login_Account.htm
    Thanks
    Swapna

  • TS1717 My itunes won't open - it says: 'The program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem' I have tried un-installing then re-installing itunes and I still get the same message??

    My itunes won't open - it says: 'The program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem' I have tried un-installing then re-installing itunes and I still get the same message?? Can anyone help?

    I have the exact same problem.
    I have uninstalled the program, rebooted and downloaded the update again. Same problem, same message.
    Please, where is that missing MSVCR80.dll? I don't remember misplacing it.
    I'm a Windows 7 user.

  • The program can't start because api-ms-win-core-debug-l1-1-1.dll is missing

    I was recently asked to convert several APP-V 4.6 sequences to APP-V 5.0 SP2 sequences.  On a development workstation, I ran the Test-AppvLegacyPackage command against the APP-V 4.6 sequences to detect potential issues.  Next, I ran the
    ConvertFrom- AppvLegacyPackage command to create the APPV file for the APP-V 5 sequence. 
    I added the converted APP-V 5 sequence in Configuration Manager 2012 R2 as an APP-V deployment type.  For testing, I installed the Configuration Manager 2012 client on a test VM, installed Windows Management Framework 3.0 for PowerShell 3.0 support,
    and finally the APP-V 5.0 SP2 client.  I created a deployment to the test VM and after it installed, I got the following error on most of the sequences that I converted: "The program can't start because api-ms-win-core-debug-l1-1-1.dll is missing
    from your computer.  try reinstalling the program to fix this problem".
    I have very little application virtualization experience at this point so I do not know how to troubleshoot this issue.  Any help is appreciated.

    Hello,
    I would identify the following;
    1. Which applications are receiving the error?
    2. How where they sequenced?
    3. Where is that file coming from?
    4. Why do these applications require the file?
    5. Why is that file now missing?
    After answering these questions, finding a way forward will most likely be easier
    Nicke Källén | The Knack| Twitter:
    @Znackattack

  • What to check or can say from where to start?

    Hi Gurus,
    I've a situation, have been given a Dev db, a copy of their current Prod db, kind of a warehouse, not core and now my task is to check this db from all perspective and tell the application what is right or even wrong too.
    Can any one please assist, advice/guide here, how to move about it, kind of struggling.
    From where to start and what to look for, would like to start with parameters and the most important have to implement my suggested solution too on this Dev db and try to convince and coordinate with the Prod dba too, in order to implement there.
    Looking forward for a favorable response, thanks in advance.

    ''intr0uble wrote:''
    I came across information that Firefox has turned off the development for Windows 64-bit.
    That is incorrect. There is a plan to stop producing 64-bit nightly builds, which are tests versions of Firefox.
    You are using the release version of Firefox, which is 32-bit, and will continue working unaffected by the aforementioned change. 32-bit programs work without a hitch under 64-bit Windows. The default Start Menu shortcut for Internet Explorer points to the 32-bit version, and Firefox's main competitor Chrome is also available only in a 32-bit variety.
    Even if you were using the 64-bit test version — and you aren't — the plan is to silently move testers to the 32-bit version, so as long as you have automatic updates enabled, you wouldn't have to do anything.
    Technical details about 64-bit builds can be found below.
    * https://groups.google.com/forum/#!msg/mozilla.dev.planning/EmXonELGjVM/rchkN2iMdL8J

Maybe you are looking for

  • SSO from Microsoft to SAP portal

    Hi guys, I am stacked in something regarding SSO, the problem here is that I have to create and ASP.net application able to create the SAPLogOnTicket and bypass the SAP portal logon screen and everytime I am using may application I have not to log in

  • How to get WAN DNS when set up Airport Extreme on Windows

    I am trying to set up my home network by using Airport Extreme Base to connect DSL via PPPoE. Here's what I did: 1. Update firmware to latest version: V5.7; 2. Install Airport Setup 4.2; 3. Run Setup Assistant, enter the right DSL account and passwor

  • HT3847 how do you determine a file is "empty"?

    I have somehow duplicated all my iTunes files... thereby taking up valuable space on my harddrive. This was caused by moving my iTunes "music, etc" back to the harddrive after using an external HD for a long time. I have read the article saying somet

  • Install layer styles in effects in pse 8

    unable to install some layer styles in effects-please advise how I can complete installations.

  • Wire transfer missing?!

    I ordered a Y510p Lenovo laptop, I received a confirmation about this order and also the necessary information needed for a wire transfer (via a Lenovo REP).  I wire transferred a X amount of USD to Lenovo on 4 Feb. 2014. I suppose the amount should