Need Graphics Help?

Not sure if this is the right forum. ><
Basically, I'm having problems with painting in Swing. This is for school, and I'd love to ask my teacher, but he states that he knows absolutely nothing about graphics. The textbook covers AWT only, and java.sun.com was less than helpful.
My problem is that I can't get the thing I'm painting (in the method paintComponent) to show up. The buttons and labels show up fine, but the line that I'm trying to paint doesn't. Am I doing something really moronic?
Thanks for any help. @.@ Code below.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class BarChart extends JPanel implements ActionListener {
   double[] numbs = new double[5];
   JTextField ichi = new JTextField(5);
   JTextField ni = new JTextField(5);
   JTextField san = new JTextField(5);
   JTextField shi = new JTextField(5);
   JTextField go = new JTextField(5);
   private static JComponent contents;
   private static JFrame start;
   public static void main(String[] args) {
      BarChart app = new BarChart();
   //   JFrame.setDefaultLookAndFeelDecorated(true);
      start = new JFrame("BarChart");
      start.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        contents = app.createComponent();
        start.getContentPane().add(contents, BorderLayout.CENTER);
      start.pack();
      start.setVisible(true);
   public JComponent createComponent() {
      JPanel pane = new JPanel();
        pane.setBorder(BorderFactory.createEmptyBorder(
                                        30, //top
                                        30, //left
                                        30, //bottom
                                        30) //right
        pane.setPreferredSize(new Dimension(500,500));
      JLabel entr = new JLabel("Enter pints of blood donated in each of five departments and press ENTER in box 5.");
      JLabel one = new JLabel("1",SwingConstants.LEFT);
      JLabel two = new JLabel("2",SwingConstants.LEFT);
      JLabel three = new JLabel("3",SwingConstants.LEFT);
      JLabel four = new JLabel("4",SwingConstants.LEFT);
      JLabel five = new JLabel("5",SwingConstants.LEFT);
      go.addActionListener(this);
      pane.add(entr);
      pane.add(one);
      pane.add(ichi);
      pane.add(two);
      pane.add(ni);
      pane.add(three);
      pane.add(san);
      pane.add(four);
      pane.add(shi);
      pane.add(five);
      pane.add(go);
      JPanel draw = new JPanel();
      draw.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
      draw.setPreferredSize(new Dimension(300,300));
      pane.add(draw);
      return pane;
   public void actionPerformed(ActionEvent e) {
      String[] strs = new String[5];
      strs[0] = ichi.getText();
      strs[1] = ni.getText();
      strs[2] = san.getText();
      strs[3] = shi.getText();
      strs[4] = go.getText();
      double max=0;
      for (int x=0;x<5;x++) {
         if (numbs[x] > max){
            max = numbs[x];
      double mult = 100/max;
      for (int x=0;x<5;x++) {
         numbs[x] *= mult;
      contents.repaint();
      System.out.println("here");
   class Chart extends JComponent{
      public void paintComponent(Graphics g) {
         System.out.println("blah");
         g.drawLine(10,10,100,200);
         g.drawLine(300,300,450,450);
         //g.drawLine(10,10,(int)numbs[0]+10,10);
}

Is bumping allowed? X.x

Similar Messages

  • I need your help with a decision to use iPhoto.  I have been a PC user since the mid 1980's and more recently have used ACDSee to manage my photo images and Photoshop to edit them.  I have used ProShow Gold to create slideshows.  I am comfortable with my

    I need your help with a decision to use iPhoto.  I have been a PC user since the mid 1980’s and more recently have used ACDSee to manage my photo images and Photoshop to edit them.  I have used ProShow Gold to create slideshows.  I am comfortable with my own folder and file naming conventions. I currently have over 23,000 images of which around 60% are scans going back 75 years.  Since I keep a copy of the originals, the storage requirements for over 46,000 images is huge.  180GB plus.
    I now have a Macbook Pro and will add an iMac when the new models arrive.  For my photos, I want to stay with Photoshop which also gives me the Bridge.  The only obvious reason to use iPhoto is to take advantage of Faces and the link to iMovie to make slideshows.  What am I missing and is using iPhoto worth the effort?
    If I choose to use iPhoto, I am not certain whether I need to load the originals and the edited versions. I suspect that just the latter is sufficient.  If I set PhotoShop as my external editor, I presume that iPhoto will keep track of all changes moving forward.  However, over 23,000 images in iPhoto makes me twitchy and they are appear hidden within iPhoto.  In the past, I have experienced syncing problems with, and database errors in, large databases.  If I break up the images into a number of projects, I loose the value of Faces reaching back over time.
    Some guidance and insight would be appreciated.  I have a number of Faces questions which I will save for later. 

    Bridge and Photoshop is a common file-based management system. (Not sure why you'd have used ACDSEE as well as Bridge.) In any event, it's on the way out. You won't be using it in 5 years time.
    Up to this the lack of processing power on your computer left no choice but to organise this way. But file based organisation is as sensible as organising a Shoe Warehouse based on the colour of the boxes. It's also ultimately data-destructive.
    Modern systems are Database driven. Files are managed, Images imported, virtual versions, lossless processing and unlimited editing are the way forward.
    For a Photographer Photoshop is overkill. It's an enormously powerful app, a staple of the Graphic Designers' trade. A Photographer uses maybe 15% to 20% of its capability.
    Apps like iPhoto, Lightroom, Aperture are the way forward - for photographers. There's the 20% of Photoshop that shooters actually use, coupled with management and lossless processing. Pop over to the Aperture or Lightroom forums (on the Adobe site) and one comment shows up over and over again... "Since I started using Aperture/ Lightroom I hardly ever use Photoshop any more..." and if there is a job that these apps can do, then the (much) cheaper Elements will do it.
    The change is not easy though, especially if you have a long-standing and well thought out filing system of your own. The first thing I would strongly advise is that you experiment before making any decisions. So I would create a Library, import 300 or 400 shots and play. You might as well do this in iPhoto to begin with - though if you’re a serious hobbyist or a Pro then you'll find yourself looking further afield pretty soon. iPhoto is good for the family snapper, taking shots at birthdays and sharing them with friends and family.
    Next: If you're going to successfully use these apps you need to make a leap: Your files are not your Photos.
    The illustration I use is as follows: In my iTunes Library I have a file called 'Let_it_Be_The_Beatles.mp3'. So what is that, exactly? It's not the song. The Beatles never wrote an mp3. They wrote a tune and lyrics. They recorded it and a copy of that recording is stored in the mp3 file. So the file is just a container for the recording. That container is designed in a specific way attuned to the characteristics and requirements of the data. Hence, mp3.
    Similarly, that Jpeg is not your photo, it's a container designed to hold that kind of data. iPhoto is all about the data and not about the container. So, regardless of where you choose to store the file, iPhoto will manage the photo, edit the photo, add metadata to the Photo but never touch the file. If you choose to export - unless you specifically choose to export the original - iPhoto will export the Photo into a new container - a new file containing the photo.
    When you process an image in iPhoto the file is never touched, instead your decisions are recorded in the database. When you view the image then the Master is presented with these decisions applied to it. That's why it's lossless. You can also have multiple versions and waste no disk space because they are all just listings in the database.
    These apps replace the Finder (File Browser) for managing your Photos. They become the Go-To app for anything to do with your photos. They replace Bridge too as they become a front-end for Photoshop.
    So, want to use a photo for something - Export it. Choose the format, size and quality you want and there it is. If you're emailing, uploading to websites then these apps have a "good enough for most things" version called the Preview - this will be missing some metadata.
    So it's a big change from a file-based to Photo-based management, from editing files to processing Photos and it's worth thinking it through before you decide.

  • Please I need some help with a table

    Hi All
    I need some help with a table.
    My table needs to hold prices that the user can update.
    Also has a total of the column.
    my question is if the user adds in a new price how can i pick up the value they have just entered and then add it to the total which will be the last row in the table?
    I have a loop that gets all the values of the column, so I can get the total but it is when the user adds in a new value that I need some help with.
    I have tried using but as I need to set the toal with something like total
        totalTable.setValueAt(total, totalTable.getRowCount()-1,1); I end up with an infinite loop.
    Can any one please advise on some way I can get this to work ?
    Thanks for reading
    Craig

    Hi there camickr
    thanks for the help the other day
    this is my full code....
    package printing;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.text.DecimalFormat;
    public class tablePanel
        extends JDialog  implements Printable {
      BorderLayout borderLayout1 = new BorderLayout();
      private boolean printing = false;
      private Dialog1 dialog;
      JPanel jPanel = new JPanel();
      JTable table;
      JScrollPane scrollPane1 = new JScrollPane();
      DefaultTableModel model;
      private String[] columnNames = {
      private Object[][] data;
      private String selectTotal;
      private double total;
      public tablePanel(Dialog1 dp) {
        dp = dialog;
        try {
          jbInit();
        catch (Exception exception) {
          exception.printStackTrace();
      public tablePanel() {
        try {
          jbInit();
        catch (Exception exception) {
          exception.printStackTrace();
      private void jbInit() throws Exception {
        jPanel.setLayout(borderLayout1);
        scrollPane1.setBounds(new Rectangle(260, 168, 0, 0));
        this.add(jPanel);
        jPanel.add(scrollPane1, java.awt.BorderLayout.CENTER);
        scrollPane1.getViewport().add(table);
        jPanel.setOpaque(true);
        newTable();
        addToModel();
        addRows();
        setTotal();
    public static void main(String[] args) {
      tablePanel tablePanel = new  tablePanel();
      tablePanel.pack();
      tablePanel.setVisible(true);
    public void setTotal() {
      total = 0;
      int i = table.getRowCount();
      for (i = 0; i < table.getRowCount(); i++) {
        String name = (String) table.getValueAt(i, 1);
        if (!"".equals(name)) {
          if (i != table.getRowCount() - 1) {
            double dt = Double.parseDouble(name);
            total = total + dt;
      String str = Double.toString(total);
      table.setValueAt(str, table.getRowCount() - 1, 1);
      super.repaint();
      public void newTable() {
        model = new DefaultTableModel(data, columnNames) {
        table = new JTable() {
          public Component prepareRenderer(TableCellRenderer renderer,
                                           int row, int col) {
            Component c = super.prepareRenderer(renderer, row, col);
            if (printing) {
              c.setBackground(getBackground());
            else {
              if (row % 2 == 1 && !isCellSelected(row, col)) {
                c.setBackground(getBackground());
              else {
                c.setBackground(new Color(227, 239, 250));
              if (isCellSelected(row, col)) {
                c.setBackground(new Color(190, 220, 250));
            return c;
        table.addMouseListener(new MouseAdapter() {
          public void mouseClicked(MouseEvent e) {
            if (e.getClickCount() == 2) {
            if (e.getClickCount() == 1) {
              if (table.getSelectedColumn() == 1) {
       table.setTableHeader(null);
        table.setModel(model);
        scrollPane1.getViewport().add(table);
        table.getColumnModel().getColumn(1).setCellRenderer(new TableRenderDollar());
      public void addToModel() {
        Object[] data = {
            "Price", "5800"};
        model.addRow(data);
      public void addRows() {
        int rows = 20;
        for (int i = 0; i < rows; i++) {
          Object[] data = {
          model.addRow(data);
      public void printOut() {
        PrinterJob pj = PrinterJob.getPrinterJob();
        pj.setPrintable(tablePanel.this);
        pj.printDialog();
        try {
          pj.print();
        catch (Exception PrintException) {}
      public int print(Graphics g, PageFormat pageFormat, int pageIndex) throws PrinterException {
        Graphics2D g2 = (Graphics2D) g;
        g2.setColor(Color.black);
        int fontHeight = g2.getFontMetrics().getHeight();
        int fontDesent = g2.getFontMetrics().getDescent();
        //leave room for page number
        double pageHeight = pageFormat.getImageableHeight() - fontHeight;
        double pageWidth =  pageFormat.getImageableWidth();
        double tableWidth = (double) table.getColumnModel().getTotalColumnWidth();
        double scale = 1;
        if (tableWidth >= pageWidth) {
          scale = pageWidth / tableWidth;
        double headerHeightOnPage = 16.0;
        //double headerHeightOnPage = table.getTableHeader().getHeight() * scale;
        //System.out.println("this is the hedder heigth   " + headerHeightOnPage);
        double tableWidthOnPage = tableWidth * scale;
        double oneRowHeight = (table.getRowHeight() +  table.getRowMargin()) * scale;
        int numRowsOnAPage = (int) ( (pageHeight - headerHeightOnPage) / oneRowHeight);
        double pageHeightForTable = oneRowHeight *numRowsOnAPage;
        int totalNumPages = (int) Math.ceil( ( (double) table.getRowCount()) / numRowsOnAPage);
        if (pageIndex >= totalNumPages) {
          return NO_SUCH_PAGE;
        g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
    //bottom center
        g2.drawString("Page: " + (pageIndex + 1 + " of " + totalNumPages),  (int) pageWidth / 2 - 35, (int) (pageHeight + fontHeight - fontDesent));
        g2.translate(0f, headerHeightOnPage);
        g2.translate(0f, -pageIndex * pageHeightForTable);
        //If this piece of the table is smaller
        //than the size available,
        //clip to the appropriate bounds.
        if (pageIndex + 1 == totalNumPages) {
          int lastRowPrinted =
              numRowsOnAPage * pageIndex;
          int numRowsLeft =
              table.getRowCount()
              - lastRowPrinted;
          g2.setClip(0,
                     (int) (pageHeightForTable * pageIndex),
                     (int) Math.ceil(tableWidthOnPage),
                     (int) Math.ceil(oneRowHeight *
                                     numRowsLeft));
        //else clip to the entire area available.
        else {
          g2.setClip(0,
                     (int) (pageHeightForTable * pageIndex),
                     (int) Math.ceil(tableWidthOnPage),
                     (int) Math.ceil(pageHeightForTable));
        g2.scale(scale, scale);
        printing = true;
        try {
        table.paint(g2);
        finally {
          printing = false;
        //tableView.paint(g2);
        g2.scale(1 / scale, 1 / scale);
        g2.translate(0f, pageIndex * pageHeightForTable);
        g2.translate(0f, -headerHeightOnPage);
        g2.setClip(0, 0,
                   (int) Math.ceil(tableWidthOnPage),
                   (int) Math.ceil(headerHeightOnPage));
        g2.scale(scale, scale);
        //table.getTableHeader().paint(g2);
        //paint header at top
        return Printable.PAGE_EXISTS;
    class TableRenderDollar extends DefaultTableCellRenderer{
        public Component getTableCellRendererComponent(
          JTable table,
          Object value,
          boolean isSelected,
          boolean isFocused,
          int row, int column) {
            setHorizontalAlignment(SwingConstants.RIGHT);
          Component component = super.getTableCellRendererComponent(
            table,
            value,
            isSelected,
            isFocused,
            row,
            column);
            if( value == null || value .equals("")){
              ( (JLabel) component).setText("");
            }else{
              double number = 0.0;
              number = new Double(value.toString()).doubleValue();
              DecimalFormat df = new DecimalFormat(",##0.00");
              ( (JLabel) component).setText(df.format(number));
          return component;
    }

  • In Need of Help Creating an Action

    Hello,
    I need to create several thousand QR codes and I am trying to work out how to automate it so that I don't have to make them one at a time.
    My idea was to download the EVEnX QR Code plugin for Photoshop and then make an action, or series of actions, to make the codes en mass. The information I need in each QR Code is a URL, with each code having a unique one that links to the products serial number.
    So, I created a file roughly the size of the QR codes I needed and used vairables to insert the URL on text layer. I was hoping to be able to create an action that would copy that text, open the plugin (which works like a filter), paste the text, create the code and save/close the image.
    However, I can't seem to get it to work. I don't know how to make an action to have it highlight the text layer or an action to paste it into the plugin.
    Also, the plugin allows you to make a variable of certain information it pulls from the file but the closest I can get to what I need is file name, however I can't make the files named for the URL because of the slashes. They allows you to use file name, file path and the information like size and date.
    Sorry for the long post but I HAVE to get this figured out as this project is for work and I am on a time limit. I don't have to use an action, any other way would be fine! I don't have much experience with scripts but if you can walk me through one that would work then I would be happy to try! PLEASE HELP!!!
    Thanks!
    In Need of Help Creating an Action

    Have you checked out Image > Variables and the Help chapter »Creating data-driven graphics« yet?

  • Slow Loading On iWeb Pages - Really in Need of Help! (Thanks!!) :o)

    Hi Everyone!
    I have been a lurker here, learning from reading other's posts. I am in serious need of help, as I have been struggling with this issue for over a week and I can't move forward to other things until I get it resolved...
    Here's what's up: I am creating a single-page website as a landing page for a product I offer. (These are very common now in product marketing). The page is here: http://www.howtogetamazingrelationships.com.
    The page that is there is about the 4th iteration of the page in the quest for a faster-loading page. Everytime I test it - no matter what I do - it ends up being about a 24 second load time. Here's a sample test for review: http://tools.pingdom.com/?url=howtogetamazingrelationships.com&treeview=0&column =objectID&order=1&type=0&save=true
    Here are the things I have done to try to speed this baby up:
    1. Took my youtube video off auto-play.
    2. Optimized the site using Web Site Maestro. 27% decrease in size; no load time difference.
    3. Took out shapes and graphics.
    4. Rebuilt the site on a blank template - now it is actually a little worse!
    5. Took out the website.js file - totally messed things up.
    6. Eliminated the navigation.
    Nothing is even showing the least bit of difference in speed...and it is driving me crazy.
    Here's the thing - I have also contacted Web Site Maestro's support for help, and they said that the problem was the size of the site and the length of the page. But here's the thing - I checked the load speed of a page that is about double my page size and length, and it loads in like 4 seconds: http://tools.pingdom.com/?url=http://www.wealthbeyondreason.com/page2.php&treevi ew=0&column=objectID&order=1&type=0&save=true
    Anyone have help/advice for me? I am so frustrated with this, as the iWeb is crazy-easy to build, but I can't have a simple one-page product page load that slow. No one is going to stay around for 24 seconds!
    I just am at the end up my rope and don't know anything else to do. I really don't want to rebuild the site again and still not see results, so any help would be hugely appreciated.
    Thanks so much in advance, and I hope you are all having a beautiful day -
    :o) Tara

    Okay, more info -
    I checked my site on a different web analyzer, and it does seem to be loading quickly - 15.66 seconds for a 56 k, but only 3.6 for T1. So that is good -
    One thing I noticed in the recommendations is that there are 6 scripts that are running, that can slow things down. I don't really know how to change that (I am pretty web-savvy, but far from a developer) Here's what they recommended on the page -
    Analysis and Recommendations from webanalyzer.com:
    TOTAL_OBJECTS - Caution. You have 18 total objects on this page. From 12 to 20 objects per page, the latency due to object overhead makes up from 75% to 80% of the delay of the average web page. See Figure II-3: Relative distribution of latency components showing that object overhead dominates web page latency in Website Optimization Secrets for more details. Consider reducing, eliminating, and combining external objects (graphics, CSS, JavaScript, iFrames and XHTML) to reduce the total number of objects, and thus separate HTTP requests. Consider using CSS sprites to help consolidate decorative images.
    TOTAL_IMAGES - Caution. You have a moderate amount of images on this page (10 ). Consider using fewer images on the site or try reusing the same image in multiple pages to take advantage of caching. Using CSS techniques such as colored backgrounds, borders, or spacing instead of graphic techniques can help reduce HTTP requests.
    TOTAL_SCRIPT - Warning! The total number of external script files on this page is 6 , consider reducing this to a more reasonable number. Combine, refactor, and minify to optimize your JavaScript files. Ideally you should have one (or even embed scripts for high-traffic pages) on your pages. Consider suturing JavaScript files together at the server to minimize HTTP requests. Placing external JavaScript files at the bottom of your BODY, and CSS files in the HEAD enables progressive display in XHTML web pages.
    HTML_SIZE - Caution. The total size of this HTML file is 60492 bytes, which is above 50K but below 100K. With 50K of images and multimedia this means that your page will load in about 20 seconds. Consider optimizing your HTML and eliminating unnecessary features. To give your users feedback, consider layering your page or using positioning to display useful content within the first two seconds.

  • Need some help after inserting CMS system

    Hi on my site ive inserted an CMS system from Cushy. It all work that isnt the problem. The problem is that my page is a mess now.. The only thing ive addes is a cms code so im hoping the solution isnt hard to do.
    There are three pages that are complete changed.
    The home page
    http://www.vakantiewoningeninsuriname.nl/index.html
    The text colomn right under is moved.How can i place this back?
    on http://www.dorff.nl/ you can see how it was before i add the CMS.
    The next page is:
    http://www.vakantiewoningeninsuriname.nl/bezienswaardighedenparamaribo.html
    You can see there is a lot extra space between the head and the text. And you see that the text is not only at the right side anymmore.
    This is how it should be:
    http://www.dorff.nl/bezienswaardighedenparamaribo.html
    The same goes for this page:
    http://www.vakantiewoningeninsuriname.nl/prijzen.html
    And this is how it have to be:
    http://www.dorff.nl/prijzen.html
    Hope you can help, thank you for looking..
    Regards Brian

    Dear Nancy,
    Thank you for your response,
    I will try to explain again what is wrong. On my site you see this page:
    http://www.vakantiewoningeninsuriname.nl/prijzen.html
    Problem is that the picture below is on the right side of the page instead of the left like the other pictures.
    On:
    http://www.dorff.nl/prijzen.html
    You can see how it should looks.. Pictures to the left and text on the right. Dont know what happened when im adding the Cuschy CMS. Hope you can see what is wrong.
    Regards Brian
    Date: Wed, 2 May 2012 13:04:14 -0600
    From: [email protected]
    To: [email protected]
    Subject: Need some help after inserting CMS system
        Re: Need some help after inserting CMS system
        created by Nancy O. in Dreamweaver - View the full discussion
    Change this:
    Prijzen
    Bij ons kunt u terecht met elk budget. Wij hebben woningen voor mensen die een langere tijd blijven maar ook voor vakantiegangers. Daarom hebben wij verschillende prijzen gehanteerd.
      to this: <!Begin CushyCMS>
    h2. Prijzen
    Bij ons kunt u terecht met elk budget. Wij hebben woningen voor mensen die een langere tijd blijven maar ook voor vakantiegangers. Daarom hebben wij verschillende prijzen gehanteerd.
    <!end CushyCMS>   Nancy O.Alt-Web Design & PublishingWeb | Graphics | Print | Media  Specialists  http://alt-web.com/http://twitter.com/altweb http://alt-web.blogspot.com/
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4374962#4374962
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4374962#4374962. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Need algorithm help

    I need some help with my 3 class hangman program.
    whenever the program is run, it doesn't function as intended when a letter is entered. Any advice is greatly appreciated.
    Here's what I have so far:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    //<applet code="Hangman.class" width=400 height=400>
    //</applet>
    public class Hangman extends JApplet implements ActionListener
         private final int WIDTH = 400;
         private final int HEIGHT = 400;
         private JPanel panel,tools;
         private JLabel inputLabel;
         private Hang drawing;
         private JTextField guess;
         RandomWord t = new RandomWord();
         public String answer = t.getWord();
         public void init()
              tools = new JPanel();
              tools.setLayout(new BoxLayout(tools,BoxLayout.X_AXIS));
              tools.setBackground(Color.yellow);
              tools.setOpaque(true);
              guess = new JTextField(1);
              guess.addActionListener(this);
              inputLabel = new JLabel("Enter Guess:");
              tools.add(inputLabel);
              tools.add(guess);
              drawing = new Hang();
              panel = new JPanel();
              panel.add(tools);
              panel.add(drawing);
              getContentPane().add(panel);
              setSize(WIDTH,HEIGHT);
         public void actionPerformed(ActionEvent event)
              String g = guess.getText();
              int incorr = 0;
              int c = 0;
              int i;
              for(i = 0;i<answer.length();i++)
                   if((answer.substring(i,i+1)).equals(g))
                        c++;
                        drawing.setLetter(i,g);
              if(c == 0)
                   incorr++;
                   drawing.setIndex(incorr);
              repaint();
    // class number 2:
    import java.awt.*;
    import javax.swing.JPanel;
    public class Hang extends JPanel
         private final int PAN_HEI = 400;
         private final int PAN_WID = 400;
         private int index;
         private int posNum,corr = 0;
         private String print;
         public Hang()
              setBackground(Color.black);
              setPreferredSize(new Dimension(PAN_WID,PAN_HEI));
         public void setIndex(int v)
              index = v;
         public void setLetter(int y,String s)
              print = s;
              posNum = y + 1;
         public void drawBase(Graphics page)
              setBackground(Color.white);
              page.setColor(Color.black);
              page.fillRect(0,350,150,50);// base
              page.fillRect(0,150,25,200);
              page.fillRect(0,125,100,25);
              page.setColor(Color.gray);
              page.fillRect(84,125,7,50);// rope
              page.setColor(Color.black);
              page.drawOval(75,175,24,25);// head
              page.drawLine(250,55,255,55);
              page.drawLine(260,55,265,55);
              page.drawLine(270,55,275,55);
              page.drawLine(280,55,285,55);     
              page.drawLine(290,55,295,55);
              page.drawLine(300,55,305,55);
              page.drawLine(310,55,315,55);
         public void paintComponent(Graphics page)
              super.paintComponent(page);
              this.drawBase(page);
              if(index == 1)
                   page.drawLine(84,200,84,250);
              if(index == 2)
                   page.drawLine(84,215,34,175);
              if(index == 3)
                   page.drawLine(84,215,116,175);
              if(index == 4)
                   page.drawLine(84,250,50,300);
              if(index == 5)
                   page.drawLine(84,250,100,300);
                   page.drawString("You Lose",250,75);
              if(posNum == 1)
                   corr++;
                   page.drawString(print,250,50);
              if(posNum == 2)
                   corr++;
                   page.drawString(print,260,50);
              if(posNum == 3)
                   corr++;
                   page.drawString(print,270,50);
              if(posNum == 4)
                   corr++;
                   page.drawString(print,280,50);
              if(posNum == 5)
                   corr++;
                   page.drawString(print,290,50);
              if(posNum == 6)
                   corr++;
                   page.drawString(print,300,50);
              if(posNum == 7)
                   corr++;
                   page.drawString(print,310,50);
              if(corr == 7)
                   page.drawString("You Win",250,75);
    //last class :
    import java.util.Random;
    public class RandomWord
         Random g = new Random();
         String w1;
         String w2;
         String w3;
         String w4;
         String w5;
         String w6;
         String w7;
         String w8;
         public RandomWord()
              w1 = "freedom";
              w2 = "justice";
              w3 = "impulse";
              w4 = "destiny";
              w5 = "celsius";
              w6 = "ignited";
              w7 = "believe";
              w8 = "realize";
         public String getWord()
              String x = " ";
              int a = g.nextInt(6);
              if(a == 0) x = w1;
              if(a == 1) x =  w2;
              if(a == 2) x =  w3;
              if(a == 3) x = w4;
              if(a == 4) x = w5;
              if(a == 5) x = w6;
              if(a == 6) x = w7;
              if(a == 7) x = w8;
              return x;
    }I'm a very inexperiencd programmer as you can see.

    Darn, I thought you actually needed algorithm help. But instead all I see is:
    "Here's all my code. It doesn't work right. Let me plop it onto your virtual desk and ask that you just fix it for me. I'm going shopping (or whatever) and will be back soon."

  • Very slow performance running Mavericks - need troubleshooting help

    Hello folks:
    I have a MBP 2011 which was upgraded to Mavericks from Mountain Lion about 6 weeks ago. Since then I have had a major performance drop - slow machine, very slow window renderings, etc. I know a number of people have been facing these issues and have been recommended to clean up 3rd party extensions/agents. I ran Etrecheck (report below) and I need some help with fixing the failed kernel extensions and launch daemons. Thanks much!
    Pavan
    Hardware Information:
      MacBook Pro (13-inch, Late 2011)
      MacBook Pro - model: MacBookPro8,1
      1 2.8 GHz Intel Core i7 CPU: 2 cores
      4 GB RAM
    Video Information:
      Intel HD Graphics 3000 - VRAM: 384 MB
    Audio Plug-ins:
      BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
      AirPlay: Version: 1.9 - SDK 10.9
      AppleAVBAudio: Version: 2.0.0 - SDK 10.9
      iSightAudio: Version: 7.7.3 - SDK 10.9
    System Software:
      OS X 10.9 (13A603) - Uptime: 6 days 4:6:6
    Disk Information:
      TOSHIBA MK7559GSXF disk0 : (750.16 GB)
      EFI (disk0s1) <not mounted>: 209.7 MB
      Hurricane (disk0s2) /: 749.3 GB (257.76 GB free)
      Recovery HD (disk0s3) <not mounted>: 650 MB
      MATSHITADVD-R   UJ-8A8 
    USB Information:
      Western Digital My Book 1148 3 TB
      EFI (disk4s1) <not mounted>: 209.7 MB
      disk4s2 (disk4s2) <not mounted>: 3 TB
      Boot OS X (disk4s3) <not mounted>: 134.2 MB
      Apple Computer, Inc. IR Receiver
      Apple Inc. FaceTime HD Camera (Built-in)
      Memorex TRAVELDRIVE 005B 16.01 GB
      EFI (disk2s1) <not mounted>: 209.7 MB
      Untitled (disk2s2) /Volumes/Untitled: 15.67 GB (15.63 GB free)
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Inc. BRCM2070 Hub
      Apple Inc. Bluetooth USB Host Controller
    FireWire Information:
    Thunderbolt Information:
      Apple Inc. thunderbolt_bus
    Kernel Extensions:
      com.wdc.driver.USB_64HP (1.0.0 - SDK 10.6)
    Problem System Launch Daemons:
      [failed] com.apple.AOSNotificationOSX.plist
      [failed] com.apple.installd.plist
      [failed] com.apple.softwareupdated.plist
      [failed] com.apple.wdhelper.plist
    Problem System Launch Agents:
    Launch Daemons:
      [loaded] com.adobe.fpsaud.plist
      [loaded] com.adobe.versioncueCS3.plist
      [loaded] com.barebones.textwrangler.plist
      [loaded] com.cisco.anyconnect.vpnagentd.plist
      [loaded] com.google.keystone.daemon.plist
      [loaded] com.microsoft.office.licensing.helper.plist
      [loaded] com.oracle.java.Helper-Tool.plist
      [loaded] org.macosforge.xquartz.privileged_startx.plist
    Launch Agents:
      [loaded] com.cisco.anyconnect.gui.plist
      [loaded] com.google.keystone.agent.plist
      [loaded] com.oracle.java.Java-Updater.plist
      [loaded] org.macosforge.xquartz.startx.plist
    User Launch Agents:
      [failed] com.apple.CSConfigDotMacCert-[redacted]@me.com-SharedServices.Agent.plist
      [loaded] com.google.Chrome.framework.plist
    User Login Items:
      Flux
      iTunesHelper
      Google Drive
      Google Chrome
      AdobeResourceSynchronizer
    3rd Party Preference Panes:
      Flash Player
      Java
    Internet Plug-ins::
      o1dbrowserplugin: Version: 4.9.1.16010
      Default Browser: Version: 537 - SDK 10.9
      Flip4Mac WMV Plugin: Version: 2.2.0.49
      Loki: Version: 3.0
      net.juniper.DSSafariExtensions: Version: (null)
      RealPlayer Plugin: Version: Unknown
      FlashPlayer-10.6: Version: 11.9.900.170 - SDK 10.6
      DivXBrowserPlugin: Version: 1.3
      Silverlight: Version: 5.1.20513.0 - SDK 10.6
      Flash Player: Version: 11.9.900.170 - SDK 10.6
      AmazonMP3DownloaderPlugin: Version: Unknown
      googletalkbrowserplugin: Version: 4.9.1.16010
      npgtpo3dautoplugin: Version: 0.1.44.29 - SDK 10.5
      iPhotoPhotocast: Version: 6.0
      QuickTime Plugin: Version: 7.7.3
      SharePointBrowserPlugin: Version: 14.3.9 - SDK 10.6
      JavaAppletPlugin: Version: Java 7 Update 45
    User Internet Plug-ins::
      Picasa: Version: 1.0
      Google Earth Web Plug-in: Version: 7.1
    Bad Fonts:
      None
    Old applications:
      Audacity: Version: 1.3.14.0 - SDK 10.4
      /Applications/Audacity/Audacity.app
      Hugin: Version: 2011.4.0 - SDK 10.4
      /Applications/Hugin/Hugin.app
      Keynote: Version: 5.3 - SDK 10.5
      /Applications/iWork '09/Keynote.app
      Microsoft Alerts Daemon: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Alerts Daemon.app
      Microsoft AutoUpdate: Version: 2.3.6 - SDK 10.4
      /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
      Microsoft Chart Converter: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Chart Converter.app
      Microsoft Clip Gallery: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Clip Gallery.app
      Microsoft Database Daemon: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Database Daemon.app
      Microsoft Database Utility: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Database Utility.app
      Microsoft Document Connection: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Microsoft Document Connection.app
      Microsoft Error Reporting: Version: 2.2.9 - SDK 10.4
      /Library/Application Support/Microsoft/MERP2.0/Microsoft Error Reporting.app
      Microsoft Excel: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Microsoft Excel.app
      Microsoft Graph: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Graph.app
      Microsoft Language Register: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Additional Tools/Microsoft Language Register/Microsoft Language Register.app
      Microsoft Office Reminders: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Office Reminders.app
      Microsoft Outlook: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Microsoft Outlook.app
      Microsoft PowerPoint: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Microsoft PowerPoint.app
      Microsoft Ship Asserts: Version: 1.1.4 - SDK 10.4
      /Library/Application Support/Microsoft/MERP2.0/Microsoft Ship Asserts.app
      Microsoft Upload Center: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Upload Center.app
      Microsoft Word: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Microsoft Word.app
      My Day: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/My Day.app
      Open XML for Excel: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Open XML for Excel.app
      PTBatcherGUI: Version: 2011.4.0 - SDK 10.4
      /Applications/Hugin/PTBatcherGUI.app
      Picasa: Version: 3.9.16 - SDK 10.4
      /Applications/Picasa.app
      SLLauncher: Version: 1.0 - SDK 10.5
      /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
      Solver: Version: 1.0 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Add-Ins/Solver.app
      Spotify: Version: 0.8.4.107.g4fa0003f - SDK 10.5
      /Applications/Spotify.app
      SyncServicesAgent: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/SyncServicesAgent.app
      calibrate_lens_gui: Version: 2011.4.0 - SDK 10.4
      /Applications/Hugin/calibrate_lens_gui.app
    Time Machine:
      Skip System Files: NO
      Mobile backups: ON
      Auto backup: YES
      Volumes being backed up:
      Hurricane: Disk size: 697.84 GB Disk used: 457.78 GB
      Destinations:
      Gasolina [Local] (Last used)
      Total size: 3 
      Total number of backups: 18
      Oldest backup: 2013-07-09 19:11:24 +0000
      Last backup: 2013-12-13 19:35:36 +0000
      Size of backup disk: Excellent
      Backup size 3  > (Disk size 697.84 GB X 3)
      Time Machine details may not be accurate.
      All volumes being backed up may not be listed.
    Top Processes by CPU:
          22% storeagent
          2% WindowServer
          1% backupd
          1% Google Chrome
          1% EtreCheck
    Top Processes by Memory:
      119 MB Google Chrome
      102 MB Google Chrome Helper
      82 MB mds_stores
      57 MB Finder
      33 MB WindowServer
    Virtual Memory Statistics:
      45 MB Free RAM
      792 MB Active RAM
      748 MB Inactive RAM
      1.06 GB Wired RAM
      37.63 GB Page-ins
      1.98 GB Page-outs

    Here’s your report with some comments:
    Hardware Information:
      MacBook Pro (13-inch, Late 2011)
      MacBook Pro - model: MacBookPro8,1
      1 2.8 GHz Intel Core i7 CPU: 2 cores
      4 GB RAM
    Video Information:
      Intel HD Graphics 3000 - VRAM: 384 MB
    Audio Plug-ins:
      BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
      AirPlay: Version: 1.9 - SDK 10.9
      AppleAVBAudio: Version: 2.0.0 - SDK 10.9
      iSightAudio: Version: 7.7.3 - SDK 10.9
    System Software:
      OS X 10.9 (13A603) - Uptime: 6 days 4:6:6
    Disk Information:
      TOSHIBA MK7559GSXF disk0 : (750.16 GB)
      EFI (disk0s1) <not mounted>: 209.7 MB
      Hurricane (disk0s2) /: 749.3 GB (257.76 GB free)
      Recovery HD (disk0s3) <not mounted>: 650 MB
      MATSHITADVD-R   UJ-8A8
    USB Information:
      Western Digital My Book 1148 3 TB    WD drives are one of the worst things that can happen to a mac. They have software on the drive and also in the firmware of the drive enclosure that is incompatible with Mavericks. The software that they also want you to install on your mac (to run the drive with the shitware on it that is incompatible with Mavericks) is also incompatible with Mavericks. The best thing to do with this drive is to open it and remove the hard drive and put it into a new (non-WD) enclosure. Then smash the WD enclosure into little bits with a sledgehammer and mail it back to WD.
      EFI (disk4s1) <not mounted>: 209.7 MB
      disk4s2 (disk4s2) <not mounted>: 3 TB
      Boot OS X (disk4s3) <not mounted>: 134.2 MB
      Apple Computer, Inc. IR Receiver
      Apple Inc. FaceTime HD Camera (Built-in)
      Memorex TRAVELDRIVE 005B 16.01 GB
      EFI (disk2s1) <not mounted>: 209.7 MB
      Untitled (disk2s2) /Volumes/Untitled: 15.67 GB (15.63 GB free)
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Inc. BRCM2070 Hub
      Apple Inc. Bluetooth USB Host Controller
    FireWire Information:
    Thunderbolt Information:
      Apple Inc. thunderbolt_bus
    Kernel Extensions:
    com.wdc.driver.USB_64HP (1.0.0 - SDK 10.6)     This would be part of the shitware that you installed from WD. I would  uninstall the WD application that installs this driver. If the driver is still there after that, I'd look for the extension in /System/Library/Extensions and delete it from there. This may have damaged your kernel, though. If your performance is not improved after removing the WD app and this extension, you should probably back up your documents, erase your HD, and do a clean reinstall of Mavericks.
    Problem System Launch Daemons:
    [failed] com.apple.AOSNotificationOSX.plist    
    [failed] com.apple.installd.plist
      [failed] com.apple.softwareupdated.plist
      [failed] com.apple.wdhelper.plist    These four are all apple software. I would try repairing your hard drive: Boot into your recovery partition (restart, hold down ⌘R until you see the Apple logo), and use Disk Utility to repair your hard drive. Repair permissions too while you're there. OS X: About OS X Recovery . Then restart, reassess your mac’s performance, and rerun Etrecheck. If that doesn’t work, I’d reinstall Mavericks over your current installation. If that doesn’t work, I’d do a clean install.
    Problem System Launch Agents:
    Launch Daemons:
      [loaded] com.adobe.fpsaud.plist
      [loaded] com.adobe.versioncueCS3.plist
      [loaded] com.barebones.textwrangler.plist 
      [loaded] com.cisco.anyconnect.vpnagentd.plist
      [loaded] com.google.keystone.daemon.plist    spyware from google
      [loaded] com.microsoft.office.licensing.helper.plist
      [loaded] com.oracle.java.Helper-Tool.plist
      [loaded] org.macosforge.xquartz.privileged_startx.plist
    Launch Agents:
      [loaded] com.cisco.anyconnect.gui.plist
    [loaded] com.google.keystone.agent.plist
      [loaded] com.oracle.java.Java-Updater.plist
      [loaded] org.macosforge.xquartz.startx.plist
    User Launch Agents:
    [failed] com.apple.CSConfigDotMacCert-[redacted]@me.com-SharedServices.Agent.plist   see the suggestions above.
    [loaded] com.google.Chrome.framework.plist    This is why I prefer Safari. It doesn’t install all this extra junk.
    User Login Items:
      Flux
      iTunesHelper
    Google Drive   Last I heard Google drive was incompatible with Mavericks.
      Google Chrome
      AdobeResourceSynchronizer
    3rd Party Preference Panes:
      Flash Player
      Java
    Internet Plug-ins::   Way too many of these. If you have poor browser performance, get rid of these, and then only reinstall ones you absolutely need, and make sure they are mavericks compatible and up-to-date.
      o1dbrowserplugin: Version: 4.9.1.16010
      Default Browser: Version: 537 - SDK 10.9
      Flip4Mac WMV Plugin: Version: 2.2.0.49
      Loki: Version: 3.0
      net.juniper.DSSafariExtensions: Version: (null)
      RealPlayer Plugin: Version: Unknown
      FlashPlayer-10.6: Version: 11.9.900.170 - SDK 10.6
      DivXBrowserPlugin: Version: 1.3
      Silverlight: Version: 5.1.20513.0 - SDK 10.6
      Flash Player: Version: 11.9.900.170 - SDK 10.6
      AmazonMP3DownloaderPlugin: Version: Unknown
      googletalkbrowserplugin: Version: 4.9.1.16010
      npgtpo3dautoplugin: Version: 0.1.44.29 - SDK 10.5
      iPhotoPhotocast: Version: 6.0
      QuickTime Plugin: Version: 7.7.3
      SharePointBrowserPlugin: Version: 14.3.9 - SDK 10.6
      JavaAppletPlugin: Version: Java 7 Update 45
    User Internet Plug-ins::
      Picasa: Version: 1.0
      Google Earth Web Plug-in: Version: 7.1
    Bad Fonts:
      None
    Old applications:
      Audacity: Version: 1.3.14.0 - SDK 10.4
      /Applications/Audacity/Audacity.app
      Hugin: Version: 2011.4.0 - SDK 10.4
      /Applications/Hugin/Hugin.app
      Keynote: Version: 5.3 - SDK 10.5
      /Applications/iWork '09/Keynote.app
      Microsoft Alerts Daemon: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Alerts Daemon.app
      Microsoft AutoUpdate: Version: 2.3.6 - SDK 10.4
      /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
      Microsoft Chart Converter: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Chart Converter.app
      Microsoft Clip Gallery: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Clip Gallery.app
      Microsoft Database Daemon: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Database Daemon.app
      Microsoft Database Utility: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Database Utility.app
      Microsoft Document Connection: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Microsoft Document Connection.app
      Microsoft Error Reporting: Version: 2.2.9 - SDK 10.4
      /Library/Application Support/Microsoft/MERP2.0/Microsoft Error Reporting.app
      Microsoft Excel: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Microsoft Excel.app
      Microsoft Graph: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Graph.app
      Microsoft Language Register: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Additional Tools/Microsoft Language Register/Microsoft Language Register.app
      Microsoft Office Reminders: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Office Reminders.app
      Microsoft Outlook: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Microsoft Outlook.app
      Microsoft PowerPoint: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Microsoft PowerPoint.app
      Microsoft Ship Asserts: Version: 1.1.4 - SDK 10.4
      /Library/Application Support/Microsoft/MERP2.0/Microsoft Ship Asserts.app
      Microsoft Upload Center: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Microsoft Upload Center.app
      Microsoft Word: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Microsoft Word.app
      My Day: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/My Day.app
      Open XML for Excel: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Open XML for Excel.app
      PTBatcherGUI: Version: 2011.4.0 - SDK 10.4
      /Applications/Hugin/PTBatcherGUI.app
      Picasa: Version: 3.9.16 - SDK 10.4
      /Applications/Picasa.app
      SLLauncher: Version: 1.0 - SDK 10.5
      /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
      Solver: Version: 1.0 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/Add-Ins/Solver.app
      Spotify: Version: 0.8.4.107.g4fa0003f - SDK 10.5
      /Applications/Spotify.app
      SyncServicesAgent: Version: 14.3.9 - SDK 10.5
      /Applications/Microsoft Office 2011/Office/SyncServicesAgent.app
      calibrate_lens_gui: Version: 2011.4.0 - SDK 10.4
      /Applications/Hugin/calibrate_lens_gui.app
    Time Machine:
      Skip System Files: NO
      Mobile backups: ON
      Auto backup: YES
      Volumes being backed up:
      Hurricane: Disk size: 697.84 GB Disk used: 457.78 GB
      Destinations:
      Gasolina [Local] (Last used)
      Total size: 3
      Total number of backups: 18
      Oldest backup: 2013-07-09 19:11:24 +0000
      Last backup: 2013-12-13 19:35:36 +0000
      Size of backup disk: Excellent
      Backup size 3  > (Disk size 697.84 GB X 3)
      Time Machine details may not be accurate.
      All volumes being backed up may not be listed.
    Top Processes by CPU:
          22% storeagent
          2% WindowServer
          1% backupd
          1% Google Chrome
          1% EtreCheck
    Top Processes by Memory:
      119 MB Google Chrome
      102 MB Google Chrome Helper
      82 MB mds_stores
      57 MB Finder
      33 MB WindowServer
    Virtual Memory Statistics:
      45 MB Free RAM
      792 MB Active RAM
      748 MB Inactive RAM
      1.06 GB Wired RAM
      37.63 GB Page-ins
      1.98 GB Page-outs  This is the highest amount of page-outs I have ever seen. I'd get rid of Chrome and Google Drive. Dropbox works fine and doesn't screw up my mac.

  • Need some help with ".png" image.

    Good day everyone. Here's the run down. I need to add an
    image (image "A") ontop of another image (image"B"). Image "B" is a
    paterned background. And Image "A" a logo with a transparent
    background.
    As it stands I have image "A" as a "png" and as you know....
    they are fri**ing huge! Haveing it as a "gif" only presents me with
    the IE6 problem of it adding a colored background to the image.
    So I'm stuck! Can any one tell me or point me in the
    difection of a tutorial to tell me the best way to add an image
    with a transparent background in Dreamweaver.
    Really need some help with this!
    Thanks all!

    >Right you can see the work in progress here>
    http://www.stclairecreative.com/DoughBoys_Site_Folder/home.html
    Before going much further I'd recommend reconsidering the use
    of a textured background. They are usually included for the benefit
    of the site owner only, and likely to annoy visitors. Studies on
    the subject suggest they often lead to usability problems. I do
    like to header graphic, but at 200K it's kinda heavy and can
    probably be optimized.

  • Need some help learning cue points, etc

    I need some help with a Flash project I'm working on. If any
    Flash junkies out there are up for sitting down with me through
    email or IM and helping me get to the point where I have a template
    FLA doing what I want to do, I'd be willing to pay you. It wouldn't
    be much, but it would be something. Here's what I'm trying to do:
    I need to create an interactive talking-head style flash
    presentation with a number of progressive download externally
    linked FLV files, playing in succession, supported by movie-clip
    text animations and supporting graphics which are triggered by cue
    points in the video. I also need a simple navigation menu linking
    to the FLV files. I've got some of this down already, namely, I've
    laid the FLVs in and they are playing in succession. I'm stuck on
    the cue point part. At this point I really just need some hands-on
    help. I've bought books, I've scoured the web.
    I'm easy to communicate with, and I'm good with computers and
    comfortable in many multimedia design programs. Flash is very
    powerful, but tougher to learn than I expected, and I'm at the end
    of my rope =P

    My advice... start with a very simple "proof of concept" project before you attempt the entire package.
    It will be much easier to scale up if you first have a very good understanding of what's going on.
    So one simple video with just one cuepoint and only one button and additional display. You'll also have to work out the interaction of pausing the video when a cuepoint is reached or button pushed to display the graph, giving the viewer time to read the graph... then when the viewer closes the graph, the video should "resume".
    Start very simple and build on that only after you understand the fundamentals.
    Second, you mention "video reports"... plural. So that most likely means that you will need a video player with a "playlist".
    This may mean that you'll need to learn to use a little .xml to bring in the playlist data. You may also find xml an excellant way to bring other data into you project.
    At the link listed above there is an excellant tutorial on "Integrating Flash and XML"
    "Flash and XML"
    "XML Video Playlist"
    "ActionScript 3 XML Basics"
    "ActionScript 3 Advanced XML"
    Personally I would not even begin a project like this without considering how I could use xml to feed data into the project.
    Here's an example of a video player I created that has a playlist, thumbnails, categories, transcipts, "Now Playing" etc. All that data comes into the main .swf via various xml files. Super good way in input data into Flash.
    http://www.drheimer.com/video/
    Yours is a rather ambitious project and will take awhile to gain the skill and assemble the pieces. So when you come to a new part... first create a real simple "proof of concept" model so you can learn how that section works. Don't expect to be able to assemble the entire project all at once.
    Best wishes,
    Adninjastrator

  • Absolue beginner need your help with basics of shell / applescript and xode

    Guys,
    I'm an absolute beginner in both xcode and applescript trying to wrap a few shell commands with some basic graphical elements.
    I will need your help after 2 days of tests and un-successful trials.
    Trying to display "$ifconfig en0" shell results into a text box.
    Here is what I'm doing:
    property networkif : missing value
    property dhcpview : missing value
    set the dhcpview to do shell script "/sbin/ifconfig " & networkif
    I can't have this accepted:
    set contents of text field "hmmm" to "DHCP " & dhcpview
    hmm is the name I have set under Interface Builder to a text box (NSTextView object)
    Xcode compiler returns me an error :
    ToolAppDelegate.applescript:99: error: A “"” can’t go after this identifier. (-2740)
    Command /usr/bin/osacompile failed with exit code 1
    while doing this is absolutely working but on a separate popup window:
    display dialog " Here is your IP address in ALU's network: " & dhcpview
    I have no clue what I'm doing wrong.

    It looks like you are trying to use *AppleScript Studio* syntax in an AppleScriptObjectiveC project - the way you connect the user interface items to your script is different in the new framework. If you are creating a new ASOC project, take a look at MacScripter's entry level tutorial AppleScriptObjC in Xcode for some examples.

  • Need some help, system won't boot now.

    Yesterday, I was having trouble getting WinXP installed on my SATA drive...after I tried some stuff to no avail, I decided to call it a night.  When I got up, I went to boot up the system and now all that happens is the 1 LED light flashes and the CD-ROM LED light flashes(and even these don't happen all the time).  Nothing else happens, fans don't start etc.  So I need some help on troubleshooting this prob.  When I do start it up, the D-bracket LEDs flash 4 red also, just flash like the other LED lights.  My first guess would be that the PSU is dead?  My PSU is a Antec Truepower 380W.  Any help is much appreciated.

    Believe Bas; As he is 100% Correct, as even 18 Amps is not anywhere enough on the +12V Rail nowadays, I mean I think the New "Minimum" Should be No Less than 25 Amps on the +12V Rail, With these new Powerful Vidio Cards, that Require thier own "Molex" Power Supply Connected to them (As most of these Top Nvidia FX, and ATI Pro's) Need and they can demand up to 6 Amps themselves, I mean, these Cards Have 400 and 550MHZ GPU's on them with over 100 Million Transistors, Not to mention the Extra 256MB of High Speed Graphics memory, Add this with a New 64BIT CPU, and a Sound Card, and a Couple of S-ATA's in RAID, And the 1GIG of High Speed System RAM, and you Are At or Over 18 Amps Already , And we are not even talking CD and DVD's or the At least 4 Fans that you should have ...Yep I for one say the Day's of the 18 Amp Min. Rating for the +12V Rail are Gone Forever...Why do you think that all the Really Good PSu's have At Least 30 Amp Ratings on thier +12V Rails......And in the Case of Enermax, They even went as Far to Start Building thier PSU's With 2 (Dual) +12V Rails ...Thats right, Now they have a +12V-1, and a +12V-2 , Now the CPU gets it's OWN Dedicated +12V Rail, and the System Gets the +12V-2 Rail.......I just got the new Enermax for my 3RD Rig that I'm Building (Dual Opteron 248) Rig , with Bas's Help of Coarse.....But For $99.00 US  It was the Best Money spent yet, so much, for a little Price, as the Antec Units are More expensive...And I hear that they are doing a little Cheating on thier Amp Ratings these Days ..Ask "Wonk" he will tell you...  ..............Sean REILLY875

  • Basic Output program need some help...Please

    import java.io.*;
    class FileOutputDemo
    public static void main(String args[])
    int one=1, two=2, three=3;
         FileOutputStream out; // declare a file output object
         PrintStream p; // declare a print stream object
         try
              // Create a new file output stream
              // connected to "myfile.html"
              out = new FileOutputStream("myfile.html");
              // Connect print stream to the output stream
              p = new PrintStream( out );
              p.printf ("This is written to a file %d", one);
              p.close();
         catch (Exception e)
              System.err.println ("Error writing to file");
    }Hello I am new to java, and I hope someone help me to modify the above code in order to make it work as the following:
    I have a list of integer values like 1, 2, 3, 4? 10
    And I want the program to substitute the integer values (the integer declared list) subsequently one by one to output a new html file as the following output:
    This is written to a file 1
    This is written to a file 2
    This is written to a file3 ?etc
    Also this substitution has to be outputted to a new file every time.
    Thank you very much in advance for your kind help
    if i have to post this anywhere else please advise me..
    Adam

    import java.io.*;
    public class FileOutputDemo
        public static void main(String[] args) {
             FileOutputStream out; // declare a file output object
             PrintStream p; // declare a print stream object
             try
                  // Create a new file output stream
                  // connected to "myfile.html"
                  out = new FileOutputStream("myfile.html");
                  p = new PrintStream( out );
                  int[] arrayOfInts = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
                for (int element : arrayOfInts)
                     p.printf (element + " ");
                  p.close();
                  // Connect print stream to the output stream
             catch (Exception e)
                  System.err.println ("Error writing to file");
    }ok .... guys i really understand what do you mean,
    i only need your help to make the program print one integer at a time from the array to a seprate file ....what do you suggest ... any hints
    Thanks

  • Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute then turn on wifi on iMac before it can reconnect. Need some help please.

    Remote App on iPad connects but drops after about  20 mins. Need to turn  off wait about 1 minute, then turn on wifi on iMac before it can reconnect. Need some help please.
    Already gone through troubleshooting guide a zillion times. Thanks.

    This worked for me... A little time consuming but once you get rolling it goes GREAT... Thanks....
    I got my artwork and saved it to my Desktop
    Opened up Microsoft Paint and clicked on "File" and "Open" and found it to get it on the screen to resize it
    Clicked "resize" and a box for changing it opened up
    Checked the box "Pixels" and "Unchecked maintain aspect ratio"
    Set Horizontal for 640 and Vertical for 480
    Clicked on "OK" and went back to "File" and did a "Save As" and chose JPEG Picture
    It came up "File Already Existed" and clicked "OK" (really did not care about the original artwork I found because wrong size)
    Went to iTunes and on the movie right clicked on "Get Info", clicked on "Details", then "Artwork"
    Go to the little box on the top left that shows your old artwork and click on it to get the little blue border to appear around it and hit "Delete" to make it gone
    Click on "Add Artwork" and find it where you put the one from above on your Desktop and hit "Open" and OK and your new artwork is now there and all good.
    Sounds like a lot of steps to follow but after around 5 or so you will fly through it. This worked perfect on my iPhone 6 Plus and I have artwork on my Home Videos now.

  • Need your help in Remodeling concept

    Hi Gurus need your help in time estimations
    I have a cube with data and now I need to add 10 new info objects to the cube which are including Date fields (BUDAT, BLDAT) these 10 fields will be populated to the cube from a Z table in ECC as we donu2019t have these fields in the cube we have to go for remodeling of the cube
    My client requires how much time it will take to complete this
    Now I want to know how much time it would take to do this (if any customer exits and user exits are required) and addition if new fields will have any effect on the current queries
    Please advice in this
    Thank you

    The time taken will depends on a lots of factor like server speed, available memory, background jobs etc. Apart from this, the time will also depends on how much the cube is filled i.e. the no. of records in the cube. Its very abstract to tell you the exact time taken for this. But, please make sure that you have the backup of the cube which you are going to re-model. T0 say, I think 3-4 hours should be ok for the remodelling.
    Thanks.
    Shambhu

Maybe you are looking for

  • Changing iTunes account

    I have just had a replacement iPad 1 as my last one packed up. I set it up on my husbands mac and it has added all his email/iTunes to it. I want to use my iTunes account and email but cant work out how to change it now. Any help greatly appreciated.

  • A purchased downloaded tv show says it's playing but screen is blank..how do I get it to play?

    I downloaded a tv show from the iTunes store . I started to play it and put it on pause and then when I tried to play it later the screen is blank. Other downloaded shows will play but not that one...please help.

  • Audio hum in Photobooth videos on iMac

    This just started happening on my Mom's computer, here's a demo video: http://www.youtube.com/watch?v=OPCNV588m2Y The audio was always totally clear in videos prior to today. It's a 21" 3.06GHz running 10.6.4.

  • Suggestion: Invert shading that reflects active document tab

    It's a pretty minor thing, but I'd suggest flipping how you distinguish between the active document tab vs the inactive ones when using the dark interface. I can get the logic of having the brightest tab representing the one you're actually working o

  • Mailman vs. https?

    On a 10.5.2 server, the web server has SSL enabled, and thus only answers on port 443. Then, mailman mailing lists were enabled, and the initial mailing list (Mailman) was created. The initial welcome messages (and subsequent welcome messages) contai