CheckBox reader and other bits

Hi
I'm a perl srcipter so I get the basics of programming even if I've got the java terminology wrong. I have a table with 4 rows 5 columns, I want to draw each row as a line on a graph and I want to be able to control which row(s) are displayed with checkboxes. The code below compiles as it stands so hopefully you can see what I'm trying to do. I have the following issues which I've been unable to sort and hope someone will point me the right way.
Reading the checkbox events. My plan was for a boolean array (checkBoxSetting[]) which recorded true/false for each line on the graph then I could print 'if true'. Do I need to somehow call the 'itemStateChanged' method (line 7 from within the arrayExp() method (line 112)? Do I need the block commented out at lines 60-65 and if so what causes the error "addItemListener(java.awt.event.ItemListener) in javax.swing.AbstractButton cannot be applied to (arrayExp)"? Am I any where close to getting this working?
Other problems...
Line 124 I changed from grid layout to box layout so I don't think I sould need this line but if I comment it out I get a very small panel with nothing on it. So what should I put insead?
Line 163 I need to scale the data by dividing the height of the y axis by the highest data value. With the test data that should be 200/400 = 0.5 but whatever I define scale as (double, float, int) I get zero as the result? (thus it's currently over written on line 164)
I find testing as an application easyer so I plan to convert this to an applet once I've got it working. Is that a bad plan, should I just make it into an applet now the worry about functionality later?
Any help on the above problems would be appreciated and if you want to advise on other glaring errors in my structure please do. Thanks Annie
  * 1.1 version.
import java.awt.*;
import java.awt.event.*;
import java.lang.Math;
import java.net.*;
import java.io.*;
import java.util.*;
import javax.swing.*;
public class arrayExp extends Frame
                        implements ActionListener {
     boolean inAnApplet = true;
     JCheckBox ATButton;
     JCheckBox CdButton;
     JCheckBox CuButton;
     JCheckBox PAHButton;
     boolean[] checkBoxSetting = {true,true,true,true};
     public static void main(String[] args) {
          arrayExp window = new arrayExp();
          window.inAnApplet = false;
          window.setTitle("expressions");
          window.pack();
          window.setVisible(true);
     public void actionPerformed(ActionEvent event) {
          //The only action event we get is when the
          //user requests we bring up a FileDialog.
          FileDialog fd = new FileDialog(this, "FileDialog");
          fd.setVisible(true);
     public JPanel CheckBoxPanel() {
          //Create the check boxes.
          ATButton = new JCheckBox("AT");
          ATButton.setMnemonic(KeyEvent.VK_C);
          ATButton.setSelected(true);
          checkBoxSetting[0]=true;
          CdButton = new JCheckBox("Cd");
          CdButton.setMnemonic(KeyEvent.VK_G);
          CdButton.setSelected(true);
          checkBoxSetting[1]=true;
          CuButton = new JCheckBox("Cu");
          CuButton.setMnemonic(KeyEvent.VK_H);
          CuButton.setSelected(true);
          checkBoxSetting[2]=true;
          PAHButton = new JCheckBox("PAH");
          PAHButton.setMnemonic(KeyEvent.VK_T);
          PAHButton.setSelected(true);
          checkBoxSetting[3]=true;
/*          //Register a listener for the check boxes.
          ATButton.addItemListener(this);
          CdButton.addItemListener(this);
          CuButton.addItemListener(this);
          PAHButton.addItemListener(this);
          JPanel p = new JPanel();
          p.setLayout(new GridLayout(4,1));
          p.add(ATButton);
          p.add(CdButton);
          p.add(CuButton);
          p.add(PAHButton);
          return (p);
// add a checkbox listener
     public void itemStateChanged(ItemEvent event) {
          char c = '-';
          Object source = event.getItemSelectable();
          if (source == ATButton) {
               checkBoxSetting[0] = false;
               c = 'T';
               System.out.println("CheckBox "+c);
          else if (source == CdButton) {
               checkBoxSetting[1] = false;
               c = 'd';
               System.out.println("CheckBox "+c);
          else if (source == CuButton) {
               checkBoxSetting[2] = false;
               c = 'u';
               System.out.println("CheckBox "+c);
          else if (source == PAHButton) {
               checkBoxSetting[3] = false;
               c = 'H';
               System.out.println("CheckBox "+c);
          //Now that we know which button was pushed, find out
          //whether it was selected or deselected.
          if (event.getStateChange() == ItemEvent.DESELECTED) {
               System.out.println("CheckBox "+c);
               c = '-';
          repaint();
     public arrayExp() {
          Panel canvasPanel = new Panel();
          JPanel cbp = CheckBoxPanel();
          setLayout(new BorderLayout());
          //layout area as boxes left to right
          canvasPanel.setLayout(new BoxLayout(canvasPanel, BoxLayout.LINE_AXIS));
          //Put a graph (MyCanvas) in the first box.
          canvasPanel.add(new MyCanvas());
          //Put checkboxes in the right box.
          canvasPanel.add(cbp);
          add("East", canvasPanel);  //why do I need this when I changed to a box layout?
          addWindowListener(new WindowAdapter() {
               public void windowClosing(WindowEvent event) {
                    if (inAnApplet) {dispose();}
                    else {System.exit(0);}
}//----------------end class arrayExp
//paint the graph on a canvas.
class MyCanvas extends Canvas {
     public void paint(Graphics g) {
          System.out.println("Paint");
          //tempory array of expression levels for four treatments X 5 exposures
          //to be read from database in future
          int[][] expLevels =      {  {0, 50, 120, 200, 200},
                                             {20, 200, 100, 300, 200},
                                             {100, 100, 100, 400, 200},
                                             {0, 150, 200, 150, 0}  };
          //find max expression to scale y axis
          int max=0;
          for (int i=0; i<4; i++) {
               for (int j=0; j<5; j++){
                    if (expLevels[i][j]>max) {max=expLevels[i][j];}
          //origin (form top left x right, y down)
//      int w = getSize().width;
//      int h = getSize().height;
          int originX=50;
          int step=100;  //distance between exposures on x axis
          int height=200;
          int originY=height+originX;
          double scale=height/max;
          scale=0.5;
          g.drawString("height"+height+"/ max"+max+" = scale"+scale, 0, originY+60);
          //set up an array of 5 colours
          Color[] EColor = new Color[5];
          EColor[0]= new Color(200,0,255); //magenta
          EColor[1]= new Color(0,0,255);      //green
          EColor[2]= new Color(0,255,0);      //blue
          EColor[3]= new Color(230,230,0); //yellow
          //draw axis
          g.setColor(Color.black);
          g.drawLine(originX, originX, originX, originY);
          g.drawLine(originX, originY, originX+(step*4), originY);
          //lable x axis
          g.drawString("LC0", originX, originY+20);
          g.drawString("LC12.5", originX+step, originY+20);
          g.drawString("LC25", originX+(step*2), originY+20);
          g.drawString("LC37.5", originX+(step*3), originY+20);
          g.drawString("LC50", originX+(step*4), originY+20);
          g.drawString("Exposure", originX+(step*2), originY+40);
          //lable y axis
          int xs=originX; int ys=originY; int zs=(int)((max/height)*0.25);
//          g.drawString("x"+xs+" y"+ys+" zs"+zs+" max"+max+" scale"+scale, 0, originY+60);
          g.drawString("0", originX-15, originY);
          g.drawString(""+(int)(max*scale*0.25), originX-20, originY- (int) (max*scale*0.25));//400*.5=200*.25=50
          g.drawString(""+(int)(max*scale*0.50), originX-20, originY- (int) (max*scale*0.5));
          g.drawString(""+(int)(max*scale*0.75), originX-20, originY- (int) (max*scale*0.75));
          g.drawString(""+max, originX-20, originY- (int) (max*scale));
          g.drawString("Expression", originX-100, originY-(int)(height*0.5));
          int x=originX; int y;
          for (int i=0; i<4; i++) {
//               if (checkBoxSetting) {
                    g.setColor(EColor[i]);
                    for (int j=0; j<4; j++){
                         y=j+1;
                         g.drawLine(x,originY-(int)(expLevels[i][j]*scale), x+step, originY-(int)(expLevels[i][y]*scale));
                         x=x+step;
                    x=originX;
     //If we don't specify this, the canvas might not show up at all
     //(depending on the layout manager).
     public Dimension getMinimumSize() {return new Dimension(550,300);}
     //If we don't specify this, the canvas might not show up at all
     //(depending on the layout manager).
     public Dimension getPreferredSize() {return getMinimumSize();}
}//end-------------class MyCanvas

To address some of your questions:
Do I need the block commented out at lines 60-65 and if so what causes the error
"addItemListener(java.awt.event.ItemListener) in javax.swing.AbstractButton cannot be applied
to (arrayExp)"?Uncommenting that block would seem reasonable. However, you then have to make arrayExp implement ItemListener and provide an itemStateChanged(ItemEvent) method.
Note that this advice only applies while you're learning. For production-quality code I wouldn't have a component also be a listener, but I'd use an (anonymous, generally) inner class.
Line 163 I need to scale the data by dividing the height of the y axis by the highest data
value. With the test data that should be 200/400 = 0.5 but whatever I define scale as (double,
float, int) I get zero as the result?The problem is on the right hand side of the = sign. You're dividing an int by an int, and that performs integer division. The tidiest way of fixing this is to cast the expression after the / to double:           double scale=height/(double)max;Whenever division produces suspicious zeroes that's something to check.
if you want to advise on other glaring errors in my structure please do.MyCanvas seems to do an awful lot of work in the paint method. All of the bits which set up data should be pulled out, probably into the constructor. (Some people would disagree with me and have an init() method instead. There are pros and cons).

Similar Messages

  • Having problems getting and installing Adobe reader and others

    i have had reader and other programs and never had trouble using them or getting updates until now. i go through the download process and get notice it is being installed then come to a step saying open with. i press adobe and a message comes up 'application not found'. do you have suggestions?

    What is your operating system & version?
    What do you mean by "press adobe"; can you provide a screenshot?  (See http://forums.adobe.com/thread/1070933)
    Try downloading the offline installer from http://get.adobe.com/reader/enterprise/

  • Configuring a Wvc2300 to work wiith an IR lamp (and other bits)

    Hi
    I've recently purchased a wvc2300, and i'm having a little trouble configuring it to do what I want it to. I've also purchased a nightime IR lamp to provide visibility in darkness. I want to be able to configure different "events" to run at different times, and store the media onto a NAS hard drive, I don't really want to have to use a PC, but have the camera store the images directly. So;
    1/. between 7am and 7pm, i'd like the camera to email me when it detects motion, but also record the whole footage onto a samba / Cifs share. (i've worked out the motion bit)
    2/. at 3.45pm i've set the camera to go into night mode, untill 7am the next day. I'd like to be able to configure one of the IO outputs to also come on at the same time, to power the Lamp. I thought you could configure the IR cut filter to do something like this (if not I could just set up another schedule to turn output 2 on at a certain time - i hope)
    Am I asking too much? I'd have thought the above woud be possible but the information for the events / IO ports isn't particularly easy to read. Well, I didn't understand it anyway.
    Thanks.
    Brian

    I think your first concern can be done. You can set up a “Trigger event” schedule which is discussed in the WVC2300 user guide. You can look at page 28 in the user guide you can download in this link: 
    http://www.sipura.cz/images_products/manualy/192_PVC2300_WVC2300_V10_UG_NC-WEB.pdf 
    For your second concern, I think there is a Day and night switching mode for the said camera. Try to look at page 26 in the said user guide of the WVC2300. 
    I suggest contacting Cisco Tech support to further look into your concern. I believe this unit belongs to the business series devices that Cisco is now supporting. Try to go to this link for the other business series devices and the site where you can get hold of Cisco for support: 
    http://www.cisco.com/web/products/linksys/index.html

  • Queue, Program speed on multiple Serial read and other problems

    Hi,
    Working on a relatively big program on Labview that makes
    1. data acquisition from 2xSerial devices
    2. Splitting the outputs,
    3. Showing the results
    4. Doing some alghorithms
    5. Outputing to CSVs.
    I have limited knowledge on serial methodologies and quequing in labview but through reading many posts in the forum i succeded to create this program which includes the above functions.
    Although that, I have several problems which I didnt solve:
    1. The quite button on the Graphs tab is not function correctly. This results in unabling to close the VISAs. How to handle the queques that in one button I can clear all the queques and exit the program correctly?
    2. While reading both serials, the program is going slow (I have i5 with SSD drive and 8gb RAM so I don't think its CPU problem). If I disable one of the serial or sending 'nothing' to one of the serials, the program going back to normal speed. Any suggestions in this issue?
    3. Both serials works with different configuration functions - I used that as I make a trial and error and this is the best operation for each of them. Is this correct or am I missing something?
    The main VI is "NVs_V1.6.vi"
    Thanks for your answers and feedback
    Sagi
    Attachments:
    Nvs.zip ‏973 KB

    You should only have 1 loop the dequeues from a specific queue.  Once an element is dequeued, that element is gone, meaning that no other loop can get that data.  You need to use a different queue for your two other loops.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Worried (Need advice on psus) for Neo2 Platinum and other bits

    Hi there again,i have this psu which is unused and is still boxed
    Antec TruePower550 uk version
    http://www.antec.com/uk/support_pro...p?ProdID=07551#
    i plan to use in this system the following:
    2x Vantec TD9238H Tornado 92mm fans
    BFG 6800 Ultra OC (agp)
    Athlon 64 4000+ (E4 version)
    Ricoh mp51225a dvdrom /dvd burner
    2x 1gb ddr400 (unshure of which brand yet)
    1 floopy drive
    some kind of Creative labs pci sound card(dunno yet)
    80GB SeaGate drive ide
    Neo2 Platinum mobo
    Atx case (unshure yet)
    im sorry if im asking lots of qestions as im a complete newbie at building anything and this will be my first built system from scratch, will my current psu be ok or will i need something better, if so could anybody advice me please on diffrent psu please
    Many thanks Blackrat7768

    Hi,
    Since your link does not work, don´t know which model you are referring to, but either way both models should do the job nicely for you.
    Truepower version 1 ( ATX 1.3 - 30amp single 12v rail with 20pin powerconnector )
    http://www.antec.com/us/productDetails.php?ProdID=20550
    Truepower version 2 ( ATX 2.x - 19+19amps dual 12v rails with 24/20 pin powerconnector )
    http://www.antec.com/uk/productDetails.php?ProdID=17551
    High power case-fans, usually are best to connect directly to a PSU 4-pin molex and not to the MoBo 3-pin connectors, which sometimes could overload the motherboard electrical circuit and give bootproblems or worse.

  • TS1292 itunes card codes - hard to read and parts missing

    I purchased a $30 itunes card for the special sale price of $24 from officeworks today and when I peeled the back sticker off some of the code when missing and other bits are very hard to read.
    How can I solve this problem.  I have my receipt and card with me.

    Hello Dizee001,
    If you're still unable to redeem your code after verifying the characters in the code, you'll need to contact iTunes Store Support for help. You'll need to provide a digital image of the front and back of the gift card as well as the sales receipt for the purchase of the gift card.
    Contacting iTunes Store Support
    Go to the iTunes support page and select your iTunes country.
    From the iTunes support page, choose Contact Support on the lower-left side of the page.
    Follow the instructions to get iTunes Store support assistance.
    -Derrick Lambert

  • 20gb iPod, error 1418, "disk cannot be read from or written to", and others

    I am having a series of serious issues with my 4th gen 20gb. I have tried restoring it several times, syncing if and when it restores, then restoring it again when it tells me "disk cannot be read from or written to". Sometimes when I try restoring it i get the "unknown error 1418" message, so I disconnect the iPod and try again; sometimes it restores, sometimes it doesn't. I have also tried plain resetting it (select+menu) and that either gives me the dead smiley ipod or a folder with an exclamation point.
    What can I do to salvage my beloved iPod?
    Thanks for any and all help.

    If a sad iPod icon or an exclamation point and folder icon appears on your iPod’s screen, or with sounds of clicking or HD whirring, it is usually the sign of a hard drive problem and you have the power to do something about it now. Your silver bullet of resolving your iPod issue – is to restore your iPod to factory settings.
    http://docs.info.apple.com/article.html?artnum=60983
    If you're having trouble, try these steps at different levels one at a time until the issue is resolved. These steps will often whip your iPod back into shape.
    Make sure you do all the following “TRYs”
    A. Try to wait 30 minutes while iPod is charging.
    B. Try another FireWire or USB through Dock Connector cable.
    C. Try another FireWire or USB port on your computer .
    D. Try to disconnect all devices from your computer's FireWire and USB ports.
    E. Try to download and install the latest version of iPod software and iTunes
    http://www.apple.com/itunes/download/
    For old and other versions of iPod updater for window you can get here
    http://www.ipodwizard.net/showthread.php?t=7369
    F. Try these five steps (known as the five Rs) and it would conquer most iPod issues.
    http://www.apple.com/support/ipod/five_rs/
    G. Try to put the iPod into Disk Mode if it fails to appear on the desktop
    http://docs.info.apple.com/article.html?artnum=93651
    If none of these steps address the issue, you may need to go to Intermediate level listed below in logical order. Check from the top of the lists to see if that is what keeping iPod from appearing on your computer in order for doing the Restore.
    Intermediate Level
    A. Try to connect your iPod with another computer with the iPod updater pre-installed.
    B. Still can’t see your iPod, put it in Disk Mode and connect with a computer, instead of doing a Restore on iPod Updater. Go and format the iPod instead.
    For Mac computer
    1. Open the disk utility, hope your iPod appears there (left hand side), highlight it
    2. Go to Tab “Partition”, click either “Delete” or “Partition”, if fails, skip this step and go to 3
    3. Go to Tab “Erase” , choose Volume Format as “MAC OS Extended (Journaled), and click Erase, again if fails, skip it and go to 4
    4. Same as step 3, but open the “Security Options....” and choose “Zero Out Data” before click Erase. It will take 1 to 2 hours to complete.
    5. Eject your iPod and do a Reset
    6. Open the iTunes 7 and click “Restore”
    For Window computer
    Go to folder “My Computer”
    Hope you can see your iPod there and right click on the iPod
    Choose “Format”. Ensure the settings are at “Default” and that “Quick Format” is not checked
    Now select “Format”
    Eject your iPod and do a Reset
    Open the iTunes 7 and click “Restore”
    In case you do not manage to do a “Format” on a window computer, try to use some 3rd party disk utility software, e.g.“HP USB Disk Storage Format Tool”.
    http://discussions.apple.com/thread.jspa?threadID=501330&tstart=0
    C. Windows users having trouble with their iPods should locate a Mac user. In many cases when an iPod won't show up on a PC that it will show up on the Mac. Then it can be restored. When the PC user returns to his computer the iPod will be recognized by the PC, reformatted for the PC, and usable again. By the way, it works in reverse too. A Mac user often can get his iPod back by connecting it to a PC and restoring it.
    Tips
    a. It does not matter whether the format is completed or not, the key is to erase (or partly) the corrupted firmware files on the Hard Drive of the iPod. After that, when the iPod re-connected with a computer, it will be recognized as an fresh external hard drive, it will show up on the iTunes 7.
    b. It is not a difficult issue for a Mac user to find a window base computer, for a PC user, if they can’t find any Mac user, they can go to a nearest Apple Shop for a favor.
    c. You may need to switch around the PC and Mac, try to do several attempts between “Format” and “Restore”
    http://discussions.apple.com/thread.jspa?messageID=2364921&#2364921
    Advance Level
    A. Diagnostic mode solution
    If you have tried trouble shooting your iPod to no avail after all the steps above, chances are your iPod has a hardware problem. The iPod's built-in Diagnostic Mode is a quick and easy way to determine if you have a "bad" iPod.
    You need to restart your iPod before putting it into Diagnostic Mode. Check that your hold switch is off by sliding the switch away from the headphone jack. Toggle it on and off to be safe.
    Press and hold the following combination of buttons simultaneously for approximately 10 seconds to reset the iPod.
    iPod 1G to 3G: "Menu" and "Play/Pause"
    iPod 4G+ (includes Photo, Nano, Video, and Mini): "Menu" and "Select"
    The Apple logo will appear and you should feel the hard drive spinning up. Press and hold the following sequence of buttons:
    iPod 1G to 3G: "REW", "FFW" and "Select"
    iPod 4G+ (includes Photo, Nano, Video, and Mini): "Back" and "Select"
    You will hear an audible chirp sound (3G models and higher) and the Apple logo should appear backwards. You are now in Diagnostic Mode. Navigate the list of tests using "REW" and "FFW". The scroll wheel will not function while in diagnostic mode. For further details on Diagnostic mode can be found at http://www.methodshop.com/mp3/ipodsupport/diagnosticmode/
    Try to do the 5in1, HDD R/W and HDD scan tests. Some successful cases have been reported after the running the few tests under the Diagnostic mode. In case it does not work in your case, and the scan tests reports show some errors then it proves your iPod has a hardware problem and it needs a repairing service.
    B. Format your iPod with a start disk
    I have not tried this solution myself, I heard that there were few successful cases that the users managed to get their iPod (you must put your iPod in disk mode before connecting with a computer) mounted by the computer, which was booted by a system startup disk. For Mac, you can use the Disk Utility (on the Tiger OS system disk), for PC user, you can use the window OS system disk. Try to find a way to reformat your iPod, again it does not matter which format (FAT32, NTFS or HFS+) you choose, the key is to erase the corrupted system files on the iPod. Then eject your iPod and do a Reset to switch out from Disk Mode. Reboot your computer at the normal way, connect your iPod back with it, open the iPod updater, and hopefully your iPod will appear there for the Restore.
    If none of these steps address the issue, your iPod may need to be repaired.
    Consider setting up a mail-in repair for your iPod http://depot.info.apple.com/ipod/
    Or visit your local Apple Retail Store http://www.apple.com/retail/
    In case your iPod is no longer covered by the warranty and you want to find a second repairing company, you can try iPodResQ or ifixit at your own risk
    http://www.ipodresq.com/index.php
    http://www.ifixit.com/
    Just in case that you are at the following situation
    Your iPod warranty is expired
    You don’t want to pay any service charges
    You are prepared to buy a new one
    You can’t accept the re-sell value of your broken iPod
    Rather than leave your iPod as paper-weight or throw it away.
    You can try the following, but again, only do it as your last resort and at your own risk.
    Warning !!!! – It may or may not manage to solve your problem, and with a risk that you may further damage your iPod, which end up as an expensive paper weight or you need to pay more higher repairing cost. Therefore, please re-consider again whether you want to try the next level
    Last Resort Level
    1. . Disconnecting the Hard Drive and battery inside the iPod – Warning !! Your iPod warranty will be waived once you open the iPod.
    In Hong Kong there are some electronic shops offering an iPod service for Sad iPod, the first thing they do is to open up the iPod’s case and disconnecting the battery and the Hard Drive from the main board of the iPod. Wait for 5-10 minutes and reconnecting them back. The reason behind which I can think of is to do a fully reset of a processor of the iPod. In case you want do it itself and you believe that you are good on fixing the electronics devices and have experience to deal with small bits of electronic parts, then you can read the following of how to open the iPod case for battery and HDD replacement (with Quicktimes)
    http://eshop.macsales.com/tech_center/index.cfm?page=Video/directory.html
    2.Press the reset button on the Hard Drive inside the iPod – Suggestion from Kill8joy
    http://discussions.apple.com/thread.jspa?messageID=2438774#2438774
    Have I tried these myself? No, I am afraid to do it myself as I am squeamish about tinkering inside electronic devices, I have few experiences that either I broke the parts (which are normally tiny or fragile) or failed to put the parts back to the main case. Therefore, I agree with suggestion to have it fixed by a Pro.
    2. Do a search on Google and some topics on this discussion forum about “Sad iPod”
    Exclamation point and folder and nothing else
    http://discussions.apple.com/thread.jspa?messageID=3597173#3597173
    Exclamation point and folder and nothing else
    http://discussions.apple.com/thread.jspa?messageID=2831962#2831962
    What should I do with my iPod? Send it or keep it?
    http://discussions.apple.com/thread.jspa?threadID=469080&tstart=0
    Strange error on iPod (probably death)
    http://discussions.apple.com/thread.jspa?threadID=435160&start=0&tstart=0
    Sad Face on iPod for no apparent reason
    http://discussions.apple.com/thread.jspa?threadID=336342&start=0&tstart=0
    Meeting the Sad iPod icon
    http://askpang.typepad.com/relevanthistory/2004/11/meeting_thesad.html#comment-10519524
    Sad faced iPod, but my computer won’t recognize it?
    http://discussions.apple.com/thread.jspa?messageID=2236095#2236095
    iPod Photo: unhappy icon + warranty question
    http://discussions.apple.com/thread.jspa?messageID=2233746#2233746
    4th Gen iPod Users - are we all having the same problem?
    http://discussions.apple.com/message.jspa?messageID=2235623#2235623
    Low Battery, and clicking sounds
    http://discussions.apple.com/thread.jspa?messageID=2237714#2237714
    Sad faced iPod, but my computer won’t recognize it
    http://discussions.apple.com/thread.jspa?messageID=2242018#2242018
    Sad iPod solution
    http://discussions.apple.com/thread.jspa?threadID=412033&tstart=0
    Re: try to restore ipod and it says "can't mount ipod"
    http://discussions.apple.com/thread.jspa?threadID=443659&tstart=30
    iPod making clicking noise and is frozen
    http://discussions.apple.com/thread.jspa?messageID=2420150#2420150
    Cant put it into disk mode
    http://discussions.apple.com/thread.jspa?messageID=3786084#3786084
    I think my iPod just died its final death
    http://discussions.apple.com/thread.jspa?messageID=3813051
    Apple logo & monochrome battery stay
    http://discussions.apple.com/thread.jspa?messageID=3827167#3827167
    My iPod ism’t resetting and isn’t being read by my computer
    http://discussions.apple.com/thread.jspa?messageID=4489387#4489387
    I am not suggesting that you should follow as well, but just read them as your reference. You are the person to make the call.
    Finally, I read a fair comments from dwb, regarding of slapping the back of the iPod multiple times
    Quote “This has been discussed numerous times as a 'fix'. It does work, at least for a while. In fact I remember using the same basic trick to revive Seagate and Quantam drives back in the mid to late 1980's. Why these tiny hard drives go bad I don't know - could be the actuator gets stuck in place or misaligned. Could be the platter gets stuck or the motor gets stuck. 'Stiction' was a problem for drives back in the 80's. Unfortunately the fix can cause damage to the platter so we temporarily fix one problem by creating another. But I know of two instances where a little slap onto the table revived the iPods and they are still worked a year or more later.”UnQuote

  • Issue with "read by other session" and a parallel MERGE query

    Hi everyone,
    we have run into an issue with a batch process updating a large table (12 million rows / a few GB, so it's not that large). The process is quite simple - load the 'increment' from a file into a working table (INCREMENT_TABLE) and apply it to the main table using a MERGE. The increment is rather small (usually less than 10k rows), but the MERGE runs for hours (literally) although the execution plan seems quite reasonable (can post it tomorrow, if needed).
    The first thing we've checked is AWR report, and we've noticed this:
    Top 5 Timed Foreground Events
    Event     Waits     Time(s)     Avg wait (ms)     % DB time     Wait Class
    DB CPU           10,086           43.82     
    read by other session     3,968,673     9,179     2     39.88     User I/O
    db file scattered read     1,058,889     2,307     2     10.02     User I/O
    db file sequential read     408,499     600     1     2.61     User I/O
    direct path read     132,430     459     3     1.99     User I/OSo obviously most of the time was consumed by "read by other session" wait event. There were no other queries running at the server, so in this case "other session" actually means "parallel processes" used to execute the same query. The main table (the one that's updated by the batch process) has "PARALLEL DEGREE 4" so Oracle spawns 4 processes.
    I'm not sure how to fix this. I've read a lot of details about "read by other session" but I'm not sure it's the root cause - in the end, when two processes read the same block, it's quite natural that only one does the physical I/O while the other waits. What really seems suspicious is the number of waits - 4 million waits means 4 million blocks, 8kB each. That's about 32GB - the table has about 4GB, and there are less than 10k rows updated. So 32 GB is a bit overkill (OK, there are indexes etc. but still, that's 8x the size of the table).
    So I'm thinking that the buffer cache is too small - one process reads the data into cache, then it's removed and read again. And again ...
    One of the recommendations I've read was to increase the PCTFREE, to eliminate 'hot blocks' - but wouldn't that make the problem even worse (more blocks to read and keep in the cache)? Or am I completely wrong?
    The database is 11gR2, the buffer cache is about 4GB. The storage is a SAN (but I don't think this is the bottleneck - according to the iostat results it performs much better in case of other batch jobs).

    OK, so a bit more details - we've managed to significantly decrease the estimated cost and runtime. All we had to do was a small change in the SQL - instead of
    MERGE /*+ parallel(D DEFAULT)*/ INTO T_NOTUNIFIED_CLIENT D /*+ append */
      USING (SELECT
          FROM TMP_SODW_BB) S
      ON (D.NCLIENT_KEY = S.NCLIENT_KEY AND D.CURRENT_RECORD = 'Y' AND S.DIFF_FLAG IN ('U', 'D'))
      ...(which is the query listed above) we have done this
    MERGE /*+ parallel(D DEFAULT)*/ INTO T_NOTUNIFIED_CLIENT D /*+ append */
      USING (SELECT
          FROM TMP_SODW_BB AND DIFF_FLAG IN ('U', 'D')) S
      ON (D.NCLIENT_KEY = S.NCLIENT_KEY AND D.CURRENT_RECORD = 'Y')
      ...i.e. we have moved the condition from the MERGE ON clause to the SELECT. And suddenly, the execution plan is this
    OPERATION                           OBJECT_NAME             OPTIONS             COST
    MERGE STATEMENT                                                                 239
      MERGE                             T_NOTUNIFIED_CLIENT
        PX COORDINATOR
          PX SEND                       :TQ10000                QC (RANDOM)         239
            VIEW
              NESTED LOOPS                                      OUTER               239
                PX BLOCK                                        ITERATOR
                  TABLE ACCESS          TMP_SODW_BB             FULL                2
                    Filter Predicates
                      OR
                        DIFF_FLAG='D'
                        DIFF_FLAG='U'
                  TABLE ACCESS          T_NOTUNIFIED_CLIENT       BY INDEX ROWID    3
                    INDEX               AK_UQ_NOTUNIF_T_NOTUNI    RANGE SCAN        2
                      Access Predicates
                        AND
                          D.NCLIENT_KEY(+)=NCLIENT_KEY
                          D.CURRENT_RECORD(+)='Y'
                      Filter Predicates
                        D.CURRENT_RECORD(+)='Y' Yes, I know the queries are not exactly the same - but we can fix that. The point is that the TMP_SODW_BB table contains 1639 rows in total, and 284 of them match the moved 'IN' condition. Even if we remove the condition altogether (i.e. 1639 rows have to be merged), the execution plan does not change (the cost increases to about 1300, which is proportional to the number of rows).
    But with the original IN condition (that turns into an OR combination of predicates) in the MERGE ON clausule, the cost suddenly skyrockets to 990.000 and it's damn slow. It seems like a problem with cost estimation, because once we remove one of the values (so there's only one value in the IN clausule), it works fine again. So I guess it's a planner/estimator issue ...

  • Hyperion Essbase on 64-bit and Other application are on 32-bit

    Hi
    I am going to Install Hyperion Essbase on AIX (Version: 6.1) on 64-bit and Other Hyperion application like EAS,EIS, calc manager, Foundation services, Financial report and planning on windows 2008 SP2 with 32-Bit.
    I future any connectivity issue will occur with two different bit type or there will no issue.
    Please guide me here, above combination is fine or not.
    Thanks
    Dharm

    Hi
    read support matrix :- http://www.oracle.com/technetwork/middleware/bi-foundation/hyperion-supported-platforms-085957.html
    regards
    alex

  • Adobe Reader and IE 64-bit

    Does anyone know of anyway to get Adobe Reader to work with 64-bit versions of Internet Explorer?  Thanks

    Adobe Reader and the browser add-on are 32-bit; there is no way it will run on a 64-bit browser.

  • Activation Limit for BlueFire, OverDrive and other reader apps.

    BlueFire, OverDrive and other reader apps for iPad uses Adobe ID authorization for each app.  There is a limit of only six activations and each reader app counts as a new activation and if I exceed six activations I would get too many activation error.  Does deauthorizing these apps credit back the activation count or only erase the activation from the device local storage?  If I install both BlueFire and OverDrive I'll burn two activations.  If I delete the app and then reinstall it I'll burn two more activations and if I hit the six activation limit I'll get too many activation errors.  Why does each reader app count separately even on the same iPad?  Why does Adobe count each separate IOS app as a separate device?

    Oh, yes, I am clear now. Thanks very much again.
    Perhaps the one we purchased has multiple user licenses?would you pls advise how to whether it is a multiple user license version or not?
    (It seems a bit silly that I asked this question as I had the CD. The fact is that the preious designer left the company, but he did not turn over this to me. I dont know the details of the software.)
    Thanks a lot.

  • Any known issues with Essbase 64 bit and other components as 32 bit

    Hi Everyone,
    Are there any known issues with 64 bit Essbase and other components (Planning, EAS, Provider services, EAS, Workspace and Reporting) in 32 bit?
    Version is EPM 11.1.1.3
    The reason for choosing ESSBASE 64 bit is of course performance. We decided to stick to 32 bit for the web applications due to some known issues and bitter experiences in past in this version with 64 bit web deployments.
    OS is Windows 2003 Server (64 bit for the ESSBASE server and 32/64 bit for the application server)
    Thanks,
    Sayantan

    Hyperion 32-bit Web Apps are fully compatible with Essbase 64-bit. Same with 32-bit Essbase client.

  • I need a read (Speak) app for iBooks, Subscriptions, Kindle and other book based information and web or instruction based books and articles.

    I have spent 3-4 months downloading, buying and searching for an app that would read my books, my magazine subscription based articles and other written information resources. I can NOT find 1 that works and the ones that are dedicated (like Kindle) will not work even on a book I bought from Amazon and chose to save to my iPad kindle app. Their is not even an app I can find for the books and manuals I purchased from my iBook account and the Subscriptions I have their. I can't even find an app that would read passages from my NEBible. Can anyone, anywhere from Earth to the farthest reaches of the Universe, advise me of an app, or apps, that I can Buy, Rent, Lease or anything else an app, or whatever, that would read my books etc. to me? This is very important to me as being disabled and having adjustments to make to get info into me is a bit harder than it used to be. I would really appreciate any and all help I can get.
    Thanks in advance - I know their has to be other people that would really appreciate and use any source for reading to help in everyday life.

    http://portables.about.com/od/ipadslatetablets/ss/More-Ipad-Tips-And-Tricks_2.ht m
     Cheers, Tom

  • Blu-Ray bit rate (and other questions)

    Hi, just getting ready to try out my new blu-ray burner and I had a couple quick questions regarding outputting via compressor, thanks for any help and advice:
    1) What's the recommended average and max bit rate assuming file size isn't an issue?
    2) Can I put multiple videos on one blu-ray? From what I can tell it's only one per disk...
    3) The blu-ray template wants audio and video from one source, correct? Or can I drop in a quicktime video and a separate audio track? (For instance, I have a surround sound mix that was done elsewhere while the video was edited and output from an Avid)
    4) Will compressor accept Avid DnxHD quicktimes?

    I assume you mean to create a BD with Compressor.
    1. 34mbps, if I remember, is the max. Just let Compressor calculate the average and max. With a good source, an average above 24mbps won't make a difference of quality, in my opinion.
    2. No; you have to have a single movie all assembled in FCP first. But you can use chapter makers to mark multiple original movies.
    3. One source only, correct.
    4. I don't know.

  • Why apple let to Mac Keeper to alert me fake that my mac book air infected by virus? when searching bit defender and others they said that i haven't any viruses in my computer!!

    Many times Mac Keeper alert me spontaneously that my mac book air infected by many viruses and force me that buy this antivirus program...Apple company know this or its fake alert or an advertisement. But its so disturbed me because of always force me that buy this program. So, bit defender and other virus scanners not find any viruses or malware...this alert from Mac Keeper are true or not? how i can know this is fake or true? thanks for your answers. The best regards

    The pop up messages are nothing more than annoying spam. Have you installed MacKeeper? Are you constantly seeing these popup messages? If so: 
    Please review the options below to determine which method is best to remove the Adware installed on your computer.
    The Easy, safe, effective method:
    http://www.adwaremedic.com/index.php
    If you are comfortable doing manual file removals use the somewhat more difficult method:
    http://support.apple.com/en-us/HT203987
    Also read the articles below to be more prepared for the next time there is an issue on your computer.
    https://discussions.apple.com/docs/DOC-7471
    https://discussions.apple.com/docs/DOC-8071
    http://www.thesafemac.com/tech-support-scam-pop-ups/

Maybe you are looking for