A headache problem.

I bought an iPhone 3GS from apple Hong Kong official website two months ago. I found a headache problem today. I usually use my iPhone as an alarm clock in the flight model. There was nothing strange happened until yesterday night. Before I turned iPhone to the flight model as an alarm clock, the percentage of battery displayed 68%, but when I wake up early in the morning, I was scared, the percentage of battery displayed only 30%! The same situation happened this afternoon. Before I made a phone call and sent a message, it displayed 29%, but when I unlocked my iPhone again a few minutes later, it displayed 14%! I was totally confused and scared. What’s the problem?
PS: My iPhone 3GS OS version is 3.1.2. And I always turn off the push mail, 3G, position service and Wi-Fi when I use my iPhone in order to save the battery life.
Thanks a lot.

HI and Welcome to Apple Discussions...
*"What’s the problem?"*
Lock Your iPhone - save battery charge.
It may seem obvious, but you should lock your iPhone when you aren’t using it. You will be able to receive calls and text messages while it is locked, but nothing happens if you touch the screen. To lock iPhone, press the Sleep/Wake button. You can also set the Auto-Lock interval so your iPhone will turn off more quickly after a period of inactivity. To set Auto-Lock, go to Settings > General > Auto-Lock and set the interval to a short time, such as 1 minute.
More ways to optimize the battery charge here.
http://www.apple.com/batteries/iphone.html
Carolyn

Similar Messages

  • Another headache - "problem during multiplexing/burning - buffer underun"

    Hello,
    After many iDVD issues, I finally got the burning process of my DVD project.. half way through it spit my DVD out and gave me these errors:
    "Errors were found during the burning process:
    The recording device reported the illegal request: Buffer underrun. (0x21, 0x02.)
    There was a problem during multiplexing/burning."
    What is this supposed to mean and how can I just burn my DVD?!
    Thank you
    Chris

    It's been awhile since I had this error crop up, but I know 2 things that caused it for me.
    1) Bad DVD media. It happened a lot when I was using some cheap, off brand DVD-R's. More expensive Sony DVD's (white) are much better and more consistent. The time wasted with bad burns from bad DVD media is not worth the time.
    2) It could even be a problem with your DVD burner going bad, but not as likely. I did have one SuperDrive replaced because I started having problems even with good, recommended brands of DVD media. However, try getting some better media first. Don't buy a lot. Try out a small package of DVD-R's or buy a disc from a friend to try out a brand.
    Another possibility: Lack of sufficient, free hard drive space. Here's what iDVD 6's help file states:
    "When you burn a DVD, iDVD needs temporary space on your hard disk to store the encoded files for your project. To burn your iDVD project to a single-layer DVD disc, you should have 8-10 gigabytes (GB) of free disk space on your hard disk, depending on the size of your project. For double-layer discs, you need 15-20 GB of free disk space."
    Apple's support forum describes "buffer underrun" in more detail at:
    http://docs.info.apple.com/article.html?artnum=25750
    You might also want to defragment your hard drive (with a 3rd party utiility such as TechTool Pro) so that you don't have a fragmented hard drive when burning a project.
    Speed rating of the DVD media- I've seen reports that some SuperDrives work best with media rated the same as it's maximum burn speed (e.g.- 4x, 8x, etc). I would recommend trying to find media that matches your SuperDrive burn speed, or no more than twice the burn speed.
    I hope this helps.
    You didn't mention which version of iDVD you were using or which operating system. Sometimes other users have tips for you based on that info.

  • PAYPAL $5: Debugging a runtime problem in my QuadTree inplementation...

    The following is a QuadTree implementation. It splits a map into four quadrants (and nodes) determined by a split point. The split point is the middle of two points clicked by the user. If a sub-quadrant (child node) already has a point, and you've selected another point in that quadrant, that quadrant is split into four quadrants (the kids on the tree).
    Almost Everything works fine except every once in a while you have to click twice to split a quadrant already containing a point (totally 3 points).
    I cannot figure out why it is skipping over a node that already contains a point, as if it doesn't exist. any help is appreciated, the one who helps me lose this headache/problem gets $5 cash through paypal.
    The insert method is the meat of what I'm doing. TIA.
    public class QuadTree {
        public QuadTree(Rectangle range) {
            mRoot = new QTNode(range);
         * insert the point into the tree
         * assume all inseted points are distinct
        public void insert(Point point) {
            mRoot.insert(point);
        } // insert()
    private QTNode  mRoot;
    } // class QuadTree
    class QTNode {
         * constructor
        QTNode() {
            mParent = null;
            mKids   = new QTNode[4];
            mDataPoint  = null;
            mRange      = null;
            mSplitPoint = null;
         * the constructor used by the QuadTree class
        QTNode(Rectangle range) {
            this();
            mRange = range;
         * inser the point to the subtree rooted at "this" node
         * @param  point the point to be inserted
        void insert(Point point) {
            int j;
            System.out.println(point);
            if ( mSplitPoint != null ) {
                 if ((point.getX()) >= (mSplitPoint.getX())){
                      if ((point.getY()) >= (mSplitPoint.getY())){ j=3; }
                      else { j=1; }
                 else {
                      if ((point.getY()) < (mSplitPoint.getY())){ j=0; }
                      else { j=2; }
                   mKids[j].insert(point);
                   System.out.println("Point inserted in" + j);
              else {
                   if ( mDataPoint != null ){
                      //sets the split point of the next layer of nodes    
                      Point tempSplit = new Point();
                      tempSplit.setLocation(((mDataPoint.getX()+(point.getX()))/2),((mDataPoint.getY()+point.getY())/2));              
                             setSplitPoint(tempSplit);
                      for (int k=0; k<4 ; k++){
                           mKids[k] = new QTNode();
                           mKids[k].setParent(this);
                           Rectangle tempRange = (getRange());
                           Rectangle tempRect = new Rectangle();
                           if (k == 0) {
                           tempRect.setRect(tempRange.getX(),tempRange.getY(),(mSplitPoint.getX()-tempRange.getX()),(mSplitPoint.getY()-tempRange.getY()));
                           mKids[k].setRange(tempRect);
                           System.out.println("rect0" + tempRect);
                           if (k == 1) {
                           tempRect.setRect(mSplitPoint.getX(),tempRange.getY(),(tempRange.getWidth()-(mSplitPoint.getX()-tempRange.getX())),(mSplitPoint.getY()-tempRange.getY()));
                           mKids[k].setRange(tempRect);
                           System.out.println("rect1" + tempRect);
                           if (k == 2) {
                           tempRect.setRect(tempRange.getX(),mSplitPoint.getY(),(mSplitPoint.getX()-tempRange.getX()),(tempRange.getHeight()-(mSplitPoint.getY()-tempRange.getY())));
                           mKids[k].setRange(tempRect);
                           System.out.println("rect2" + tempRect);
                           if (k == 3) {
                           tempRect.setRect(mSplitPoint.getX(),mSplitPoint.getY(),(tempRange.getWidth()-(mSplitPoint.getX()-tempRange.getX())),(tempRange.getHeight()-(mSplitPoint.getY()-tempRange.getY())));
                           mKids[k].setRange(tempRect);
                           System.out.println("rect3" + tempRect);
                           if ((mKids[k].getRange().contains(point)) == true){
                                     mKids[k].setDataPoint(point);
                   else { mDataPoint = point; }
        // FILL ANY METHOD AS NEEDED
        private void setSplitPoint(Point split) {
            mSplitPoint = split;
        private void setParent(QTNode parent) {
            mParent = parent;
        private void setRange(Rectangle range) {
            mRange = range;
        private void setDataPoint(Point point) {
            mDataPoint = point;
        QTNode getParent() {
            return mParent;
        QTNode getChild(int pick) {
            return mKids[pick];
        Point getDataPoint() {
            return mDataPoint;
        Rectangle getRange() {
            return mRange;
        private final int eTR = 0;  // index of the Top    Right  region/kid
        private final int eTL = 1;  // index of the Top    Left   region/kid
        private final int eBR = 2;  // index of the Buttom Right  region/kid
        private final int eBL = 3;  // index of the Buttom Left   region/kid
         * All the point data are stored in the leaf nodes of the quadtree.
         * That is, after a node splitted (then it has four kids)
         * the point data originally stored has been moved to one of its kid
         * whose range covers the point.
        QTNode    mParent;      // reference to the parent
        QTNode    mKids[];      // reference to the 4 kids
        Point     mDataPoint;   // the point data if any
        Rectangle mRange;       // the range covered by this node
        Point     mSplitPoint;  // where the vertical and horizontal
                                //   split lines meet
    } // class QTNodeThe area is question is in bold, it has been coded by myself.

    selfbump, please hellp me :-)

  • [SOLVED] 3.7 Kernel ALX driver problems

    I have a ASUS N56VZ laptop with Atheros AR8161 so I'm using new alx driver to use it. I was willing to upgrade to 3.7 series ,but now  that kernel is causing some headaching problems. When I was upgraded i also installed dkms-alx from AUR. Alx driver(alx-driver-legacy package on AUR, not compatible with 3.7.x) was working on 3.6.x perfectly, however; on 3.7 it raises errors such as:
    Jan 20 16:22:09 localhost kernel: [ 7.700029] alx 0000:04:00.0: DMA to 64-BIT addresses
    Jan 20 16:22:09 localhost kernel: [ 7.700170] alx 0000:04:00.0: (unregistered net_device): HW Flags = 0x415
    Jan 20 16:22:09 localhost kernel: [ 7.700590] alx 0000:04:00.0: (unregistered net_device): reset PHY, pws = 1, az = 0, ptp = 0
    Jan 20 16:22:09 localhost kernel: [ 7.702007] alx 0000:04:00.0: (unregistered net_device): speed = 0x2f, autoneg = 1
    Jan 20 16:22:09 localhost kernel: [ 7.703068] alx 0000:04:00.0: irq 43 for MSI/MSI-X
    Jan 20 16:22:09 localhost kernel: [ 7.703196] alx: Atheros Gigabit Network Connection
    Jan 20 20:12:36 localhost kernel: [ 8.644756] alx 0000:04:00.0: DMA to 64-BIT addresses
    Jan 20 20:12:36 localhost kernel: [ 8.644900] alx 0000:04:00.0: (unregistered net_device): HW Flags = 0x415
    Jan 20 20:12:36 localhost kernel: [ 8.645320] alx 0000:04:00.0: (unregistered net_device): reset PHY, pws = 1, az = 0, ptp = 0
    Jan 20 20:12:36 localhost kernel: [ 8.646613] alx 0000:04:00.0: (unregistered net_device): speed = 0x2f, autoneg = 1
    Jan 20 20:12:36 localhost kernel: [ 8.647669] alx 0000:04:00.0: irq 43 for MSI/MSI-X
    Jan 20 20:12:36 localhost kernel: [ 8.647828] alx: Atheros Gigabit Network Connection
    Jan 20 20:14:09 localhost kernel: [ 114.430555] alx 0000:04:00.0: eth0: speed = 0x2f, autoneg = 1
    Jan 20 20:14:23 localhost kernel: [ 128.312958] alx 0000:04:00.0: eth0: speed = 0x2f, autoneg = 1
    Jan 20 20:14:25 localhost kernel: [ 130.667436] alx 0000:04:00.0: eth0: speed = 0x2f, autoneg = 1
    Jan 20 20:14:32 localhost kernel: [ 137.981428] alx 0000:04:00.0: eth0: speed = 0x2f, autoneg = 1
    Jan 20 20:14:34 localhost kernel: [ 139.766346] alx 0000:04:00.0: eth0: speed = 0x2f, autoneg = 1
    Jan 20 20:24:39 localhost kernel: [ 744.748887] alx 0000:04:00.0: eth0: speed = 0x2f, autoneg = 1
    Jan 20 20:25:56 localhost kernel: [ 821.640197] alx 0000:04:00.0: eth0: speed = 0x2f, autoneg = 1
    Jan 20 20:26:08 localhost kernel: [ 833.346237] alx 0000:04:00.0: eth0: speed = 0x2f, autoneg = 1
    Jan 20 20:34:47 localhost kernel: [ 1352.073978] alx 0000:04:00.0: eth0: speed = 0x2f, autoneg = 1
    Jan 20 22:52:46 localhost kernel: [ 8.161784] alx 0000:04:00.0: DMA to 64-BIT addresses
    Jan 20 22:52:46 localhost kernel: [ 8.161931] alx 0000:04:00.0: (unregistered net_device): HW Flags = 0x415
    Jan 20 22:52:46 localhost kernel: [ 8.162379] alx 0000:04:00.0: (unregistered net_device): reset PHY, pws = 1, az = 0, ptp = 0
    Jan 20 22:52:46 localhost kernel: [ 8.163845] alx 0000:04:00.0: (unregistered net_device): speed = 0x2f, autoneg = 1
    Jan 20 22:52:46 localhost kernel: [ 8.164897] alx 0000:04:00.0: irq 43 for MSI/MSI-X
    Jan 20 22:52:46 localhost kernel: [ 8.165024] alx: Atheros Gigabit Network Connection
    Jan 21 19:47:22 localhost kernel: [ 8.051038] alx 0000:04:00.0: DMA to 64-BIT addresses
    Jan 21 19:47:22 localhost kernel: [ 8.051194] alx 0000:04:00.0: (unregistered net_device): HW Flags = 0x415
    Jan 21 19:47:22 localhost kernel: [ 8.051614] alx 0000:04:00.0: (unregistered net_device): reset PHY, pws = 1, az = 0, ptp = 0
    Jan 21 19:47:22 localhost kernel: [ 8.053021] alx 0000:04:00.0: (unregistered net_device): speed = 0x2f, autoneg = 1
    Jan 21 19:47:22 localhost kernel: [ 8.054081] alx 0000:04:00.0: irq 43 for MSI/MSI-X
    Jan 21 19:47:22 localhost kernel: [ 8.054212] alx: Atheros Gigabit Network Connection
    Jan 21 21:50:31 localhost kernel: [ 1402.590655] alx 0000:04:00.0: alx(10:bf:48:28:a0:01): Qualcomm Atheros Ethernet Network Connection
    Jan 21 21:50:31 localhost kernel: [ 1402.647179] alx 0000:04:00.0: irq 46 for MSI/MSI-X
    Jan 21 21:50:31 localhost kernel: [ 1402.647189] alx 0000:04:00.0: irq 47 for MSI/MSI-X
    Jan 21 21:50:31 localhost kernel: [ 1402.647195] alx 0000:04:00.0: irq 48 for MSI/MSI-X
    Jan 21 21:50:31 localhost kernel: [ 1402.647202] alx 0000:04:00.0: irq 49 for MSI/MSI-X
    Jan 21 21:50:31 localhost kernel: [ 1402.647208] alx 0000:04:00.0: irq 50 for MSI/MSI-X
    Jan 21 21:50:31 localhost kernel: [ 1402.647214] alx 0000:04:00.0: irq 51 for MSI/MSI-X
    Jan 21 21:50:31 localhost kernel: [ 1402.647221] alx 0000:04:00.0: irq 52 for MSI/MSI-X
    Jan 21 21:50:31 localhost kernel: [ 1402.647228] alx 0000:04:00.0: irq 53 for MSI/MSI-X
    Jan 21 21:50:31 localhost kernel: [ 1402.647234] alx 0000:04:00.0: irq 54 for MSI/MSI-X
    Jan 21 21:50:31 localhost kernel: [ 1402.647998] alx 0000:04:00.0: PHY SPD/DPLX unresolved :ffff
    Jan 21 21:50:31 localhost kernel: [ 1402.648004] alx 0000:04:00.0 eth0: task:alx_reinit
    Jan 21 21:53:08 localhost kernel: [ 1559.847675] [<ffffffffa068cc50>] alx_halt+0x30/0x80 [alx]
    Jan 21 21:53:08 localhost kernel: [ 1559.847681] [<ffffffffa068e629>] alx_reinit+0x69/0xa0 [alx]
    Jan 21 21:53:08 localhost kernel: [ 1559.847686] [<ffffffffa068e7d1>] alx_task+0x81/0x450 [alx]
    Jan 21 21:53:08 localhost kernel: [ 1559.847700] [<ffffffffa068e750>] ? alx_change_mtu+0xf0/0xf0 [alx]
    Jan 21 21:55:08 localhost kernel: [ 1679.786117] [<ffffffffa068cc50>] alx_halt+0x30/0x80 [alx]
    Jan 21 21:55:08 localhost kernel: [ 1679.786122] [<ffffffffa068e629>] alx_reinit+0x69/0xa0 [alx]
    Jan 21 21:55:08 localhost kernel: [ 1679.786127] [<ffffffffa068e7d1>] alx_task+0x81/0x450 [alx]
    Jan 21 21:55:08 localhost kernel: [ 1679.786141] [<ffffffffa068e750>] ? alx_change_mtu+0xf0/0xf0 [alx]
    Jan 21 21:56:33 localhost kernel: [ 1765.116261] WARNING: at /var/lib/dkms/alx/20121219/build/drivers/net/ethernet/atheros/alx/alx_main.c:1606 alx_stop+0x52/0x60 [alx]()
    ..... Other kernel messages
    Jan 22 23:09:51 localhost kernel: [ 371.264714] alx 0000:04:00.0 eth0: -----------------TPD-ring(0)------------------
    Jan 22 23:09:51 localhost kernel: [ 371.264723] alx 0000:04:00.0 eth0: F8: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264727] alx 0000:04:00.0 eth0: F9: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264730] alx 0000:04:00.0 eth0: FA: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264733] alx 0000:04:00.0 eth0: FB: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264737] alx 0000:04:00.0 eth0: FC: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264740] alx 0000:04:00.0 eth0: FD: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264743] alx 0000:04:00.0 eth0: FE: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264746] alx 0000:04:00.0 eth0: FF: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264749] alx 0000:04:00.0 eth0: 0: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264752] alx 0000:04:00.0 eth0: 1: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264756] alx 0000:04:00.0 eth0: 2: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264759] alx 0000:04:00.0 eth0: 3: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264762] alx 0000:04:00.0 eth0: -----------------TPD-ring(1)------------------
    Jan 22 23:09:51 localhost kernel: [ 371.264765] alx 0000:04:00.0 eth0: F8: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264768] alx 0000:04:00.0 eth0: F9: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264772] alx 0000:04:00.0 eth0: FA: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264775] alx 0000:04:00.0 eth0: FB: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264778] alx 0000:04:00.0 eth0: FC: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264781] alx 0000:04:00.0 eth0: FD: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264784] alx 0000:04:00.0 eth0: FE: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264787] alx 0000:04:00.0 eth0: FF: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264790] alx 0000:04:00.0 eth0: 0: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264793] alx 0000:04:00.0 eth0: 1: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264797] alx 0000:04:00.0 eth0: 2: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264800] alx 0000:04:00.0 eth0: 3: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264803] alx 0000:04:00.0 eth0: -----------------TPD-ring(2)------------------
    Jan 22 23:09:51 localhost kernel: [ 371.264806] alx 0000:04:00.0 eth0: F9: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264809] alx 0000:04:00.0 eth0: FA: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264813] alx 0000:04:00.0 eth0: FB: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264816] alx 0000:04:00.0 eth0: FC: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264819] alx 0000:04:00.0 eth0: FD: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264822] alx 0000:04:00.0 eth0: FE: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264825] alx 0000:04:00.0 eth0: FF: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264829] alx 0000:04:00.0 eth0: 0: W0=0000005A, W1=80000000, W2=17D5C802
    Jan 22 23:09:51 localhost kernel: [ 371.264832] alx 0000:04:00.0 eth0: 1: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264835] alx 0000:04:00.0 eth0: 2: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264838] alx 0000:04:00.0 eth0: 3: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264841] alx 0000:04:00.0 eth0: 4: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264844] alx 0000:04:00.0 eth0: -----------------TPD-ring(3)------------------
    Jan 22 23:09:51 localhost kernel: [ 371.264848] alx 0000:04:00.0 eth0: F8: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264851] alx 0000:04:00.0 eth0: F9: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264854] alx 0000:04:00.0 eth0: FA: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264857] alx 0000:04:00.0 eth0: FB: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264860] alx 0000:04:00.0 eth0: FC: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264863] alx 0000:04:00.0 eth0: FD: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264866] alx 0000:04:00.0 eth0: FE: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264869] alx 0000:04:00.0 eth0: FF: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264873] alx 0000:04:00.0 eth0: 0: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264876] alx 0000:04:00.0 eth0: 1: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264879] alx 0000:04:00.0 eth0: 2: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264882] alx 0000:04:00.0 eth0: 3: W0=00000000, W1=00000000, W2=0
    Jan 22 23:09:51 localhost kernel: [ 371.264885] alx 0000:04:00.0 eth0: ---------------dump registers-----------------
    Jan 22 23:09:51 localhost kernel: [ 371.264939] alx 0000:04:00.0 eth0: 1400: C0020CE0,00000000,00000064,00001C01
    Jan 22 23:09:51 localhost kernel: [ 371.264952] alx 0000:04:00.0 eth0: 1410: 00002804,474019AA,03FF000D,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.264966] alx 0000:04:00.0 eth0: 1420: 00000000,E03EBB60,00000240,CF01C831
    Jan 22 23:09:51 localhost kernel: [ 371.264979] alx 0000:04:00.0 eth0: 1430: 0000CC01,00000000,00000000,00000010
    Jan 22 23:09:51 localhost kernel: [ 371.264992] alx 0000:04:00.0 eth0: 1440: 8010020C,00000020,0007801A,00000180
    Jan 22 23:09:51 localhost kernel: [ 371.265005] alx 0000:04:00.0 eth0: 1450: 00000000,14700040,00000040,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265018] alx 0000:04:00.0 eth0: 1460: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265031] alx 0000:04:00.0 eth0: 1470: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265044] alx 0000:04:00.0 eth0: 1480: 6410DCEF,60405060,4828A001,000010BF
    Jan 22 23:09:51 localhost kernel: [ 371.265056] alx 0000:04:00.0 eth0: 1490: 80000000,40000000,07A1F037,000005F2
    Jan 22 23:09:51 localhost kernel: [ 371.265069] alx 0000:04:00.0 eth0: 14A0: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265081] alx 0000:04:00.0 eth0: 14B0: 3BED200D,14364D17,6A3E67EA,B855AABE
    Jan 22 23:09:51 localhost kernel: [ 371.265094] alx 0000:04:00.0 eth0: 14C0: E214AD3D,EA49AF7C,A54F2BEC,2A94B30D
    Jan 22 23:09:51 localhost kernel: [ 371.265107] alx 0000:04:00.0 eth0: 14D0: 1805EC6C,E291D73D,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265119] alx 0000:04:00.0 eth0: 14E0: 2258B000,2258A000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265132] alx 0000:04:00.0 eth0: 14F0: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265145] alx 0000:04:00.0 eth0: 1500: 05FF05E0,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265158] alx 0000:04:00.0 eth0: 1510: 00000020,00000000,0BDF0BC0,00000020
    Jan 22 23:09:51 localhost kernel: [ 371.265171] alx 0000:04:00.0 eth0: 1520: 05DF0000,000005E0,0BBF0600,000005C0
    Jan 22 23:09:51 localhost kernel: [ 371.265183] alx 0000:04:00.0 eth0: 1530: 06000BE0,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265196] alx 0000:04:00.0 eth0: 1540: 00000002,00000002,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265209] alx 0000:04:00.0 eth0: 1550: 2258E000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265222] alx 0000:04:00.0 eth0: 1560: 00000200,000005F8,2258C000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265234] alx 0000:04:00.0 eth0: 1570: 00000000,00000000,00000200,22589000
    Jan 22 23:09:51 localhost kernel: [ 371.265247] alx 0000:04:00.0 eth0: 1580: 22588000,00000100,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265260] alx 0000:04:00.0 eth0: 1590: 020000F5,000008BF,01800080,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265273] alx 0000:04:00.0 eth0: 15A0: AC8100BF,00001210,00C0044E,00000100
    Jan 22 23:09:51 localhost kernel: [ 371.265286] alx 0000:04:00.0 eth0: 15B0: CDE4CB23,00000001,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265299] alx 0000:04:00.0 eth0: 15C0: 04047C24,00030D40,00000055,000000C8
    Jan 22 23:09:51 localhost kernel: [ 371.265312] alx 0000:04:00.0 eth0: 15D0: 00214321,00000000,00438765,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265324] alx 0000:04:00.0 eth0: 15E0: 000001FF,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265337] alx 0000:04:00.0 eth0: 15F0: 00000000,00000000,000001FF,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265349] alx 0000:04:00.0 eth0: 1600: 01711059,7C0F96E7,00004E20,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265363] alx 0000:04:00.0 eth0: 1610: FFFFFFFB,00000000,00010000,00010000
    Jan 22 23:09:51 localhost kernel: [ 371.265376] alx 0000:04:00.0 eth0: 1620: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265388] alx 0000:04:00.0 eth0: 1630: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265401] alx 0000:04:00.0 eth0: 1640: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265414] alx 0000:04:00.0 eth0: 1650: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265427] alx 0000:04:00.0 eth0: 1660: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265440] alx 0000:04:00.0 eth0: 1670: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265452] alx 0000:04:00.0 eth0: 1680: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265465] alx 0000:04:00.0 eth0: 1690: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265478] alx 0000:04:00.0 eth0: 16A0: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265491] alx 0000:04:00.0 eth0: 16B0: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265502] alx 0000:04:00.0 eth0: 16C0: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265514] alx 0000:04:00.0 eth0: 16D0: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265527] alx 0000:04:00.0 eth0: 16E0: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265540] alx 0000:04:00.0 eth0: 16F0: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265553] alx 0000:04:00.0 eth0: 1700: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265565] alx 0000:04:00.0 eth0: 1710: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265577] alx 0000:04:00.0 eth0: 1720: 00000000,00000000,0000019B,00000012
    Jan 22 23:09:51 localhost kernel: [ 371.265590] alx 0000:04:00.0 eth0: 1730: 0000002C,00000001,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265603] alx 0000:04:00.0 eth0: 1740: 00000000,00000000,000001DA,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265615] alx 0000:04:00.0 eth0: 1750: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265628] alx 0000:04:00.0 eth0: 1760: 00000000,00000000,00000000,00000010
    Jan 22 23:09:51 localhost kernel: [ 371.265641] alx 0000:04:00.0 eth0: 1770: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265654] alx 0000:04:00.0 eth0: 1780: 00000010,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265667] alx 0000:04:00.0 eth0: 1790: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265680] alx 0000:04:00.0 eth0: 17A0: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265693] alx 0000:04:00.0 eth0: 17B0: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265705] alx 0000:04:00.0 eth0: 17C0: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265718] alx 0000:04:00.0 eth0: 17D0: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265731] alx 0000:04:00.0 eth0: 17E0: 00000000,00000000,00000000,00000000
    Jan 22 23:09:51 localhost kernel: [ 371.265744] alx 0000:04:00.0 eth0: 17F0: 00000000,00000000,00000000,00000000
    After these errors, I did some googleing and found this https://ask.fedoraproject.org/question/ … m43142-not and applied same instructions (commented lines below out) with benjaminfjones (The guy ,in 1st comment) and compiled. compat-wireless-3.6.8.1-snpc. It worked but now connection drops always after a while and It is not becoming OK unless I rmmod and modprobe it.
    The commented lines are:
    if (hw && hw->adpt && hw->adpt->netdev){}
    __netdev_printk(level, hw->adpt->netdev, &vaf);
    else
    And lastly my dmesg output now:
    [ 6504.338255] alx: Atheros Gigabit Network Connection
    [ 6504.412390] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 6505.924726] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    I've also tried 3.7.1, 2013-01-10-2u versions of compat-drivers same as top.
    Thanks for all replies.
    Last edited by 6ng4n (2013-01-26 18:58:16)

    Hello,
    I have same problem with alx driver.
    My kernel is 3.7.5-1-ARCH x86_64.
    I have selected alx using a driver_select script and compile compat-drivers-3.8-rc5-1-u from sources, modprobe alx driver. Till this everything seems to be fine.
    I have configure in /etc/network.d/wire
    CONNECTION='ethernet'
    INTERFACE='enp4s0'
    IP='dhcp'
    netcfg -u wire gave me the dump like from the first message.
    alx from compat-wireless-3.6.8.1-snpc worked without problems with 3.6 kernel.

  • Need help regarding graphics problem,!!​!

    Hi,
                    I’m a Customer of your prestigious Organization, recently I bought a HP Laptop MODEL-15 D-103TX , everything is fine with my Laptop and Feeling proud to use this HP product , But I’m facing strange problem that my Laptop Graphics are running smooth when I connect to my AC power Charger , but as soon as I Disconnect the Power Cord , I lose the Graphics performance as I was getting it when I was connected to Power, and it makes me feel Very annoyed  that HP product can give such a silly but headache problem,
                                    I had even downloaded the HP drivers from the Official HP Website and Installed them Correctly as per the STEPS given in your Website, and even tried by Configuring the POWER PLAN to MAXIMUM performance, and even Calibrated the Battery according to the HP SUPPORT ASSISTANCE and it shows that Battery status is OK, but too I’m facing the same problem,
                    I hope you respond to my mail ID as soon as possible, and help me to solve this problem and maintain the SERVICE STATUS and PRIDE of HEWLET-PACKARD, Please Don’t make me upset, and don’t make me to take any further sever Actions.
                                                      ​                                                  ​                                            Thank You

    Hi @Tajuddin_Hongal ,
    Welcome to the HP Forums!
    I would like to take a moment and thank you for using the forum, it is a great place to find answers. For you to have the best experience in the HP forum, I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that while connected to AC power your performance is good, but once you disconnect and run on battery the performance drops.
    You have updated the driver and checked the power plan.
    Your system has switchable graphics.   HP 15-d103tx Product Specifications.  Your processor has an integrated Intel 4600 and you have NVIDIA GeForce 820M (2 GB DDR3 dedicated).
    When you are connected to AC it uses the high end to deliver the best performance, when you switch to battery, to save power, it switches to the lower end.  You should be able to configure the graphics in the Catalyst Control Center  to change this behaviour.  Here is a link to assist you with that endeavor.
    Switchable Graphics on Notebooks Configured with Intel and ATI GPUs
    If you are still having an issue, I suggest contacting HP support for further assistance.
    Please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region Technical Support Sitemap .
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • Ask for ROI problem help urgently

    Hi,
    I have a very headache problem with ROI setting dynamically but I don't know how to do it so far.
    My device is being constructed and CCD camera has to be taken down away frequently present phase for other components tuning and adjustment. I have to retuning the optical system and collect a new reference image(background image) and reset ROI once more. It always makes my tested and workable vi become unworkable. I found, if I can set up a constant-size ROI dynamically in every new image which will be processed, this headche problem could be solved. I have studied the manual and website about the ROI but have no ideas to solve it yet and I need you help, the project will be closed 10 days later and it's very urgent to me.
    Take a look the images first please, the goal is for a vi to find the fibers in the glass tube. The ROI should be a rectagle zone exact as the inside space of tube. I can easily get the up-edge of tube with coordinates of its both endings and its angle in horizontal. How can I set up a constant-size ROI dynamically in every new image which will be processed?
    Of course it is very ease to get the ROI size in pixels by measuring under Vision Builder. I have done that the new image snaped shifts and rotates based on the reference image(background image).
    Comments and suggestion are highly appreciated!
    Best wishes to you for newly 2003!
    Swedlin
    Attachments:
    SentNiForumForROI_Help.zip ‏144 KB
    ForROI_Question.zip ‏332 KB

    Thank you very much, Bruce
    The problem right now becomes how to set up a zone by 4 points(their coordinates known!) as ROI.
    I tried to figure out what is your exact meaning in the procedure but still half understanding right now.About vision, I am much relying on the IMAQ Vision Builder, of course I will try to do it in labview when it's much simple. But I found some new factors and I'd like to solve my ROI problem in another way and maybe it is simpler and makes my vi work more reliable and stabler.
    I made a vi which creates a new image(bottom edge horizontal angle=0 or 360) from a previous reference image(used as background image, its related angle not =360 or 0)by rotating itself and this new image under Vision Builder was tested and it firmly proves both top and bottom edges are exactly horizontal. And at the same time I found that both top and bottom edges can be very easily and exactly found by " find straight edge:horizontal/edge" function and it indicates an exact zone to be ROI as desiration. But it shows the zone is not exact rectangle by glacing at their coordinates of 4 points. I used this script to test other images that are not exact horizontal and their results show both top and bottom edges are located badly. These promt something to me that it would be perfect if my ROI could be set up by the coordinates of these 4 points from both top/bottom edges found by vision vi and it exactly reflects the dynamically changes of ROI in real process operation. In another words, The ROIs are very tiny differnces and dynamically changed in machine-vision-view since settings up with device opticals,reflection of lightings are not exact the same each time and system vibration, and also the tube space is not exact rectagle due to its manufecturing tolorence, etc.
    Hence, the problem becomes how to set up the zone marked by these 4 points as ROI. I didn't find the related way to do this in Vision Builder but suppose it should be simple in labview. I still have no any idea of the function to do this now. Comments are still warm welcome, especially what functions to be used on this purpose.
    Thanks! Nice weekend!
    Swedlin

  • To Apple Engineer. I hear a high pitch noise when surf flash-intesive sites

    Hi. All.
    I have a Aluminum PowerBook G4 1.25Ghz SD. I agree this is a great machine. It has a somewhat out-dated G4 Chip in it, I can do almost everything I need.
    I've been using this powerbook for 2 years. Since sometime ago, I've heard very annoying "Hige Pitch Noise" from PowerBook. From further investigatin I found that this was a problem related to G4 CPU Processor throttling- so called "NAP" status. In Flash-intensive Web site, I clearly hear the noise.
    According to solution suggested by talented apple user, I did followings.
    1. Download or Install Developer Tools.
    2. Download and Install CHUD tools from ftp://ftp.apple.com/developer/ToolC...ormancetools/
    3. After installing chud tools, there maybe Processor pane in preference app.
    4. In that processor pane, you should uncheck "Allow Nap" to reduce the notorius High Pitch Noise.(warning: it may increase the power consumption and temperature of CPU a bit, and of course you would see more frequent activities of CPU fan than before)
    5. feel the silence.
    To Apple.
    I think this solution should be suggested from you not users.
    Why we investigate, search the web for thosand of bucks PowerBook. Please fix this annoying(yes, annoying enough to cause headache) problem in next OS update.
    To readers.
    Sorry to my poor English(I live in Seoul, Korea)

    These are user-to-user discussion boards. Apple employees do not take part in or respond to posts on these boards.

  • Too many flat files with different formats.

    Hi gurus,
    i have a headache problems. that is follows:
    We will upload data from flat files,but you know there are about 100 .xls files and with different formats.
    and as you know  the datasource of the flat file must correspond to every fields of the flat file.
    but you know there are 100 flat files and if we donot do any optimise,we will create about 100 transformation and 100 datasource to meet our requirements.
    but that seems impossible.
    is there any good idea to decrease the number of transfomation ?

    Hi AK1987,
    To import flat files with dynamic columns, we can use Script Task inside a Foreach Loop Container to parse the first row of the flat file to get the columns names and save them into a .NET variable, then, we can create “Create Table” script based on this
    variable, and then store the script into a SSIS package variable. After that, we create a staging table based on the package variable, load the flat file data to the staging table. Eventually, we load data from the staging table to the destination table. For
    the detail steps, please walk through the following blog:
    http://www.citagus.com/citagus/blog/importing-from-flat-file-with-dynamic-columns/ 
    Regards,
    Mike Yin
    TechNet Community Support

  • Java.lang.UnsatisfiedLinkError - Urgent please help

    Hi,
    I want to thank you for looking into this problem first.
    I have a very headache problem for the past week. I have an applet that uses JNI to call an existing dll to get the system resources. It works fine on windows 2000 server with IE 5.0. The dll get loaded fine and the function call is working fine.
    However, now I tried to move the applet to an application for me to test with jbuilder, I have problems and I get the error java.lang.UnsatisfiedLinkError: ooInit.
    Does anyone know why this is happening in Jbuilder. I traced to see if the dll get loaded with System.loadlibrary("dll"), and it seems to load the library. But when I call the ooInit() native method, it throws that exception.
    Please help. This will be greatly appreciated and I can do something for you guys in return.
    Thank you so much.
    Regards,
    guna

    Here, for the benefit of others who might search for this, is my approach to resolving this error.
    Two things to note:
    1. I didn't worry about paths, etc. - I was in a hurry so I just copied files into required directories.
    2. I named both the Java and C files "mainFrame". I have not subsequently checked to see if this is required, since it worked for me.
    Summary of getting jni routine to work with Jbuilder:
    created Java project mintest, two principle classes - mainFrame and WelcomeFrame
    key code fragments:
    --------------------------------------- mainFrame --------------------------------------------------
    package mintest;
    import javax.swing.JLabel;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    import java.awt.GridBagLayout;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseAdapter;
    public class mainFrame {
        boolean packFrame = false;
        WelcomeFrame frame = new WelcomeFrame();
        public static native int cRoutine(int value);
        static {System.loadLibrary("mainFrame"); }
    public mainFrame() {
        //Pack frames that have useful preferred size info, e.g. from their layout
        //Validate frames that have preset sizes
        if (packFrame) {
          frame.pack();
        else {
          frame.validate();
        // Center the frame
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        Dimension frameSize = frame.getSize();
        if (frameSize.height > screenSize.height) {
          frameSize.height = screenSize.height;
        if (frameSize.width > screenSize.width) {
          frameSize.width = screenSize.width;
        frame.setLocation( (screenSize.width - frameSize.width) / 2,
                          (screenSize.height - frameSize.height) / 2);
        frame.setVisible(true);
        try {
          jbInit();
        catch (Exception ex) {
          ex.printStackTrace();
    * Main method
    * @param args String[]
    static public void main(String[] args) {
      try {
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
      catch (Exception e) {
        e.printStackTrace();
      new mainFrame();
            cRoutine(1);     // this works at this point...
            System.out.println("cRoutine - should be 4: " + cRoutine(3));
      private void jbInit() throws Exception {
    }--------------------------------------- end of mainFrame --------------------------------------------------
    --------------------------------------- (portions of) WelcomeFrame --------------------------------------
    package mintest;
    import java.awt.*;
    ..... more imports, setting up of window, buttons, etc. .... iValue is an integer....
      public void jToggleButton1_mousePressed(MouseEvent e) {
          jToggleButton1.setText("cRoutine in: " + iValue + "  out: " + (iValue = 
                                   mainFrame.cRoutine(iValue)));
      }--------------------------------------- end of (portions of) WelcomeFrame -----------------------------
    mainFrame was compiled with Jbuilder into a class file, makeFrame.class. That was copied into
    the C:\Borland\JBuilder2005\jdk1.4\bin directory, and javah was run to create the C header file:
    javah -jni mainFrame
    This generated:
    --------------------------------------- mainFrame.h generated by javah ----------------------------------
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class mainFrame */
    #ifndef _Included_mainFrame
    #define _Included_mainFrame
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class:     mainFrame
    * Method:    cRoutine
    * Signature: (I)I
    JNIEXPORT jint JNICALL Java_mainFrame_cRoutine
      (JNIEnv *, jclass, jint);
    #ifdef __cplusplus
    #endif
    #endif--------------------------------------- end of mainFrame.h generated by javah -------------------------
    OKAY, HERE COMES THE CRITICAL STEP. DESPITE THE FACT THE COMMENT SAYS DO NOT EDIT, THIS FILE HAS TO BE EDITED TO INCLUDE THE PACKAGE NAME, LIKE THIS:
    --------------------------------------- modified mainFrame.h ----------------------------------
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class mainFrame */
    #ifndef _Included_mainFrame
    #define _Included_mainFrame
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class:     mainFrame
    * Method:    cRoutine
    * Signature: (I)I
    JNIEXPORT jint JNICALL Java_mintest_mainFrame_cRoutine
      (JNIEnv *, jclass, jint);
    #ifdef __cplusplus
    #endif
    #endif--------------------------------------- end of modified mainFrame.h -------------------------
    This file is then copied to the C:\Borland\BCC55\Include directory. The C code source is placed
    in the C:\Borland\BCC55\Bin directory. Here is the C code - note that it has the package name in
    the function name:
    --------------------------------------- mainFrame.c ----------------------------------
    #include <mainFrame.h>
    #include <stdio.h>
    #include <string.h>
    /* must link gpib-32.obj for Windows*/
    #include <windows.h> /*if using Windows */
    void main(){
    JNIEXPORT jint JNICALL
    Java_mintest_mainFrame_cRoutine(JNIEnv *env, jobject callingObj,jint invalue)
    return (jint) invalue+1;
    }--------------------------------------- end of mainFrame.c -------------------------
    This is now compiled on the command line (from the C:\Borland\BCC55\Bin directory) using:
    bcc32 -tWD -I\Borland\bcc55\include -L\Borland\bcc55\lib mainFrame.c
    Parameters: -tWD creates Windows DLL file
    -I is path to include directory (this is where mainFrame.h is located)
    -L is path to library directory
    Compilation produces mainFrame.dll in the C:\Borland\BCC55\Bin directory. This is copied to the C:\Borland\JBuilder2005\jdk1.4\jre\bin directory so Jbuilder can find it. Then it works.
    So, the key step is adding the package name after javah has generated the header file (and similarly using the package name in the .c source file.)
    Hope this is useful.

  • About data structure

    hi all,
    here i do have another data structure related question where is concerning the JTree i have asked before this. how do i define/design the data structure that will suite my JTree application?
    my JTree will take many information as the data that it has at most 4 level including the root. the data may pass from the server, and it may be not in order, how do i do that?
    thanks a lot

    hmm... i have modify a bit of the data structure class as describe below:
    i have done all of the JTree part of my applet, except now only headache problem is that how do i gonna define my JTree data structure efficiently? i mean that there are many possible of data that will pass through the applet to create my JTree, there may be not in order though, so how can i define a suitable data structure to handle the data that coming in to the JTree?
    what i have done so far is that i have created a class (consider the data object) to handle the data, whereby the server will pass the data according to the class structure, which then i get the data from there and create my JTree node. in the data object, for sure i put a parameter that will detect the level of the tree node, where i can successfully put it in the JTree, but is there any other better way?
    thank you

  • Computer Shuts down when on battery power at 80%

    The battery power indicates anywhere from 80% to 90% and will shut down the computer.
    No warning, No Low Battery indicator, No error messages.
    The only way to boot up is to use the power adapter.
    I have tried to reset the computer
    I have tried to update the latest battery update, but it tells me it is already installed.
    This computer is 8 months old.
    Is there anything else I can try?

    I had/have this exact same problem after I installed the battery update 1.3 on Macbook Pro a few days ago.
    I tried a SMC reset & a PRAM reset, all to no avail.
    I called Apple today & talked with 2 different agents explaining my problem. One askked me to do another PRAM reset, which I did, again, to no success.
    So, they are sending me a new battery, which I am really hoping will solve my problem (Macbook Pro shutting down instantly on an almost full battery at around 84% while not attached to the power cord).
    Thing is, I never had a problem with the battery before I installed this update, so this battery update 1.3 somehow corrupted my battery/settings, and unfortunetly once you run this update, your stuck.
    There is no way to undo this update as it changes the firmware permanetly.
    Ugh.
    Next time, I am not going to be so quick when installing "updates", I apparently really don't need. This battery update 1.3 has just caused me headaches & problems on my new Macbook pro.
    Heed my advice. Research firmware updates carefully before subjecting your computer to these unneeded "fixes".
    My advice is to call Apple & let them know of this problem. Get a new battery. They were apparently unware of this problem update when I called today, and more people need to be vocal about this & complain about this apparently corrupt battery update.
    Good Luck.

  • Mba shuts down when on battery

    My Mac Book Air 13", Mid-2011, had Lion 10.7.5 installed
    Then a few days ago I start seeing message that looked at first as virus, teling me I should shut down the machine.
    I shutdown and restart. This kept repeating.
    So I did a clean install of Lion Mountain 10.8.2. and then restored from my TimeMachine (no applications).
    Then the problem started repeating. This time with no message. Just randomly shuts down.
    So I reinstaled 10.8.2, and this time scanned for viruses before I restored anything back from the TM (I use Sophos AntiVirus)
    It works now.
    But when I disconnect the power cable, even though I see 98% full battery,
    the machine shuts down immediately.
    Any advise ?
    J

    I had/have this exact same problem after I installed the battery update 1.3 on Macbook Pro a few days ago.
    I tried a SMC reset & a PRAM reset, all to no avail.
    I called Apple today & talked with 2 different agents explaining my problem. One askked me to do another PRAM reset, which I did, again, to no success.
    So, they are sending me a new battery, which I am really hoping will solve my problem (Macbook Pro shutting down instantly on an almost full battery at around 84% while not attached to the power cord).
    Thing is, I never had a problem with the battery before I installed this update, so this battery update 1.3 somehow corrupted my battery/settings, and unfortunetly once you run this update, your stuck.
    There is no way to undo this update as it changes the firmware permanetly.
    Ugh.
    Next time, I am not going to be so quick when installing "updates", I apparently really don't need. This battery update 1.3 has just caused me headaches & problems on my new Macbook pro.
    Heed my advice. Research firmware updates carefully before subjecting your computer to these unneeded "fixes".
    My advice is to call Apple & let them know of this problem. Get a new battery. They were apparently unware of this problem update when I called today, and more people need to be vocal about this & complain about this apparently corrupt battery update.
    Good Luck.

  • Re install previous version

    I experienced headache problem after updating to 10.2 version,when i follow this forum,seems so many different problems with this update issue,just want to share,may be it will be helpfull for the flash player user,why don't just uninstall 10.2 version using FP uninstaller and then from the arcieve download the previous version (10.1 in my case),install manually,restart and the problem solved,again i'm not an expert,just wanna share,hopefully can help someone.My notebook running well now ,Tq

    Hi, ok thanks.
    Download and SAVE to your Desktop the Uninstaller:
    http://kb2.adobe.com/cps/141/tn_14157.html
    Download and SAVE to your Desktop the Installer for IE- use the EXE Installer
    http://www.adobe.com/products/flashplayer/fp_distribution3.html
    Close all browser windows, you only want to be looking at your Desktop.
    Disable any messenger services, as yahoo, msn, etc in the system tray(area near the clock)
    Be sure to use the Administrator Account.
    Run the Uninstaller and when finished, Reboot(restart) your computer.
    Run the Installer for IE, and when finished, Reboot.
    Then go to this test site and test your IE browser
    http://www.adobe.com/software/flash/about/
    You should be able to see the Flash logo animation(spinning) and version 10.2.152.26 displayed
    You may want to print these instructions to make it easier to follow. If you have any questions, let me know.
    Let me know if you have any questions,
    eidnolb

  • Re: Virtu MVP and why you should be using it!

    http://www.msi.com/product/mb/Z77A-G45.html here shows that this board have Virtu MVP support.
    How can I get mine?

    Quote from: marcoslei09 on 21-September-12, 15:41:17
    Dear Sir/Madam: Thank you for contacting MSI Technical Support. Regarding your concern, we are very sorry. This old version can't support Virtu MVP. We will release the new version of Z77A-G45 MVP to support this function in the near future. The old mainboard need rework the BOM in factory if you want it to support. Sorry for any inconvenience. Best regards, MSI Technical Support Team!
    Reply from MSI support.
    Be happy, Virtu is a headache problem creator, most compatibility issues and it really needs more versatility, maybe in 1 year if they still support the product it may be better i don't have much hope for it.

  • I am owning an Iphone 5 for a year now. Its battery problem is giving a lot of headache to me daily ! If I use internet for over 10 minutes continuously or play any game for 10 minutes, the battery is dropping by 15-30%.Please help me !

    Whenever I am browsing the internet or playing a game, the battery is dropping by 15-30 % daily. I am able to use only 70 percent of the fully charged Iphone battery in this way. ! It is very frustrating with this kind of thing from Apple. Can any body please help me out ! I love iPhone but this prolonged problem is giving me a lot of headache ! Any hellp will be appreciated. 

    How long are you using internet for? Are you using WiFi or mobile data? Are you watching video on websites? There are many variables that could explain a perfectly natural battery drain. As I said previously you should try recalibrating the battery. My phone used to drain by mid-afternoon with little to no use until I found out about recalibrating. Since then its been fine and its something I do at least once a month.

Maybe you are looking for

  • Replacement path with text variable

    Hi experts, My client requirement is " when he enters the current year or current day then it should display the Description of that particular year r month r day." Can anyone explain me in detail how to create replacement path with text variable on

  • HELP -- About a query design

    how to calculate a characteristic's  different value? let me give a example: i have a infocube, it has three characteristics: Grandfather, father, SonOrDaughter and one key figure : counter. from the data point of view, One Grandfather may have n(>=0

  • Hierarchy based on one dimension.

    Hi, How to create a hierarchy based on one dimension. For example: we have table: Category Category_ID Parent_Category_ID I want to create hierarchy, which like as: Category_Level_1 Category_Level_2 Is it possible without create new alias of table fo

  • Reminder Repeat

    I appologize if this is common knowledge or has been answered elsewhere but I've spent an hour trying to get the answer.  I am trying to understand how the repeat function works for reminders, and have read multiple different answers.  I'll layout th

  • Export to Encore cs4

    Hi, How to export to adobe encore cs4 from adobe premiere pro cs4 timeline? There is no encore export option in the file>export. Should I have to export to encore using File>Adobe Dynamic Link>Send To Encore? Also I am getting an error while starting