Temp Case

So far i love my macbook and it's a good laptop for the money and the look, but i'm just worry about how long it can last for...
i just got a replace from the apple store for a new serial number h24 macbook
due to the high temp of 79C regularly.
but the new one with h24 has 75C CPU degree with only safari and adium running...
should I go back to mac store soon... or call the apple care?
please give me an idea what should i do.
thanks.

Others may give you different opinions.
I noticed after a week, about a 5 degree drop in temperature.
Also adding 2g of RAM made a few degrees drop.
Your uneven RAM banks may have a subtle effect on usage and temperature.
If you are restricted by a 2 week return policy, don't wait until the final day to decide.
Your actual case temperature may not reflect the numeric processor temperature. (to your touch)
Sleeping your MacBook 5 minutes should cool it majorly.
Resetting the PMU helps some issues as well.
Study this list to see some of the variables: http://www.intelmactemp.com/list
MacBooks (2) 2gb RAM Mac OS X (10.4.6)

Similar Messages

  • Touch 2g cases, why the wait?

    Can someone please explain why cases for the new models are not released in conjunction with their launch dates? I can't even get a straight answer from anyone in a retail store as to when they'll be available. Is it some kind of logistics issue or just apple having control issues regarding third party firms and their products? I understand it was my choice to buy a new touch close to the release date but apple could have at least provided a temp case till something arrived.

    Product secrecy surrounding the new iPod is why you can't find many cases yet. Plus, the ipod touch is a small market when you can get the phone for the same price.
    Vaja is a fabulous case manufacturer and they'll inform you when the 2G cases are ready to order. Check them out. They're the Ferarri or Coach of gadget cases:
    http://www.vajacases.com/images/mp3/apple/ipodtouch2/formen.html

  • Importing gif file to ImageIcon

    Hi,
    I am trying to use a gif file that I have included in my project (using Windows XP). I am trying to stick the image from the gif file into a ImageIcon variable, and sticking the variable into a label. Here is the code that I am using to have the program access the gif file:
    private ImageIcon redX = new ImageIcon( " \\JAVA programs\\Week 8\\lab8_1a\\redshd.gif " );
    I have a classPath setup in my environment variables/system variables as follows:
    .;C:\Documents and Settings\Jim Roth\My Documents\Visual Studio Projects\Programs
    and the path to the gif file is as follows:
    C:\Documents and Settings\Jim Roth\My Documents\Visual Studio Projects\Programs\JAVA programs\Week 8\Lab8_1A\redshd.gif
    When I run the program, the screen comes up empty. I am using a basic frame, with a GridLayout. When I change the input into the label to a string, it shows up on the label when the program runs.
    In debug mode, I am not quite sure of what the values apply to, but oneonf them shows up as 'null'.
    I think my problem lies with the program just not finding the gif.file. Any suggestions?
    Thanks a lot!
    Jimbo

    OK, here is the program.....it is my very first stab at anything gui. We are supposed to display a tic tac toe grid, and have it randomly put x's and o's (or something simiilar) in a3x3 grid in a random fashion. Here it is:
    import javax.swing.*;
    import java.awt.*;
    import java.util.*;
    public class TicTacToe extends JFrame
    private ImageIcon redX = new ImageIcon("\\JAVA programs\\Week 8\\lab8_1a\\redshd.gif");
    private ImageIcon blueCirc = new ImageIcon("\\JAVA programs\\Week 8\\lab8_1a\\qmark.gif");
    /** Default constructor for TicTacToe */
    public TicTacToe()
    setLayout(new GridLayout(3,3,2,2));//sets grid layout for a 3x3 grid with 2 pixel spacing
    //add 9 JLabels to hold image icons
    for(int i =0; i < 10; ++i)
    add(this.generateJLabel());
    public static void main(String[] args)
    TicTacToe game = new TicTacToe();
    game.setTitle("Tic Tac Toe");
    game.setLocationRelativeTo(null);
    game.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    game.setSize(250, 250);
    game.setVisible(true);
    protected JLabel generateJLabel()
    Random rand = new Random();//instantiate random object to generate ints
    int randNum = rand.nextInt(4);//generate ints between 0 and 4 (exclusive)
    /*The following switch statement looks at random number generated by the Random
    object and assigns an image to a JLabel according to the int returned./
    switch (randNum)
    case 1:
    JLabel temp = new JLabel(this.redX);
    return temp;
    case 2:
    JLabel temp1 = new JLabel(this.blueCirc);
    return temp1;
    default:
    JLabel temp2 = new JLabel();
    return temp2;
    }

  • Plz go through the table stucture and query for the desired resultusing pos

    date           timespent project timesheetId
    2008-05-12      7.5000     2-NT 1
    2008-05-13     7.5000     2-0670A     1
    2008-05-14     5.5000     2-0671A     1
    2008-05-15     2.5000     2-0670A     1
    2008-05-15      5.0000     2-NF4 1
    2008-05-16     7.5000     2-0670A     2
    NF:---Non Billable
    NT:-- leave Taken
    Numbers:--- 1 TO 15 represnts date ,for paticular date i need the time spent by an employee for a particular project
    i am using postgre Sql where Decode function will not work,in stead of this i have used this query.but i did not get sesired result.
    num_phase=project
    timespent=temps
    date=jour
    select num_phase,temps, CASE to_char(jour,'dd')
         when '1' then temps
         else '0'
    end as "1" ,
    CASE to_char(jour,'dd')
         when '2' then temps
         else '0'
    end as "2",
    CASE to_char(jour,'dd')
         when '3' then temps
         else '0'
    end as "3",
    CASE to_char(jour,'dd')
         when '4' then temps
         else '0'
    end as "4",
    CASE to_char(jour,'dd')
         when '5' then temps
         else '0'
    end as "5",
    CASE to_char(jour,'dd')
         when '6' then temps
         else '0'
    end as "6",
    CASE to_char(jour,'dd')
         when '7' then temps
         else '0'
    end as "7",
    CASE to_char(jour,'dd')
         when '8' then temps
         else '0'
    end as "8",
    CASE to_char(jour,'dd')
         when '9' then temps
         else '0'
    end as "9",
    CASE to_char(jour,'dd')
         when '10' then temps
         else '0'
    end as "10",
    CASE to_char(jour,'dd')
         when '11' then temps
         else '0'
    end as "11",
    CASE to_char(jour,'dd')
         when '12' then temps
         else '0'
    end as "12",
    CASE to_char(jour,'dd')
         when '13' then temps
         else '0'
    end as "13",
    CASE to_char(jour,'dd')
         when '14' then temps
         else '0'
    end as "14",
    CASE to_char(jour,'dd')
         when '15' then temps
         else '0'
    end as "15",sum(temps) as Total
    from temps_passes_jour where id_feuille_temps =1
    AND num_phase not LIKE '%NF%' AND
    num_phase not LIKE '%NT%'
    GROUP BY num_phase,temps,jour order by num_phase,jour
    Result:---
    Disply form table
    Project 1 2 3 4 5 6 7 8 9 11 12 13 14 15 Total
    2-0670A                              7.5000 2.5000 10.0000
    2-0671A                                   5.5000     5.5000
    Edited by: user10193450 on Aug 27, 2008 9:38 PM
    Edited by: user10193450 on Aug 27, 2008 9:40 PM
    Edited by: user10193450 on Aug 27, 2008 9:43 PM

    And your query will be in this lines.
    select project, for_1, for_2, for_3, for_4, for_5, for_6, for_7, for_8,
                    for_9, for_10, for_11, for_12, for_13, for_14, for_15,
                    (for_1+ for_2+ for_3+ for_4+ for_5+ for_6+ for_7+ for_8+ for_9+ for_10+ for_11+ for_12+ for_13+ for_14+ for_15) total
    from (select project, max(decode(timesheetid, 1, timespent, NULL)) for_1
                  , max(decode(timesheetid, 2, timespent, NULL)) for_2
                  , max(decode(timesheetid, 3, timespent, NULL)) for_3
                  , max(decode(timesheetid, 4, timespent, NULL)) for_4
                  , max(decode(timesheetid, 5, timespent, NULL)) for_5
                  , max(decode(timesheetid, 6, timespent, NULL)) for_6
                  , max(decode(timesheetid, 7, timespent, NULL)) for_7
                  , max(decode(timesheetid, 8, timespent, NULL)) for_8
                  , max(decode(timesheetid, 9, timespent, NULL)) for_9
                  , max(decode(timesheetid, 10, timespent, NULL)) for_10
                  , max(decode(timesheetid, 11, timespent, NULL)) for_11
                  , max(decode(timesheetid, 12, timespent, NULL)) for_12
                  , max(decode(timesheetid, 13, timespent, NULL)) for_13
                  , max(decode(timesheetid, 14, timespent, NULL)) for_14
                  , max(de(timesheetid, 15, timespent, NULL)) for_15
          from your_table
          group by project
    order by projectCheers
    Sarma.

  • K8N Neo3 Issues (At the end of my rope)

    The parts I have are as follows:
    1x K8N Neo3 MOBO
    1x Sapphire x1600 Radeon Video Card 512MB PCIE
    1x AMD64 Sempron +3000 (Socket 754)
    1x WD 100GB HDD
    1x WD 250GB HDD
    2x DRAM Master PC3200 DDR400 Memory Modules
    1x DWL D-Link 11.0Mbps Wireless USB Adapter
    1x LiteOn 16X DVD Dual Drive (ATAPI/E-IDE)
    Some things to note:
    All of the parts have been tested in other machines and work perfectly. I'm currently running XP Pro on a 15gig partition on the 100GB HDD. All of the drivers are installed on this partition as well as firefox. On the other partition on that drive, I have 3DMark05 and windows media player classic installed. Both partitioned were made after formatting the entire drive. On the 250GB HDD, I have some anime and various wallpapers. Hardware acceleration currently set to two notches left of full. All of the drivers are up to date, and I have flashed the BIOS.
    The problems:
    First off, my CD driver could not read CDs all too well. In the middle of installation I'd get tons of errors which was odd considering the fact that the CD (XP Pro) worked in other comps. After I flashed the BIOS however, this problem was removed, or rather, it pops up less frequently.
    Another issue I'm having is with the memory. Both memory modules work well, and were memtested with no errors, however, unless I go to Advanced Chipset Features in the BIOS and enter into DRAM Configuration and change the timing mode to manual, set the Memclock Index Value to 250MHZ and the CAS# Latency to 3, I can't boot into XP. Instead, it'll clear POST, and then pretend like it's going to take me to XP, and then reboot. On the issue with memory, it's interesting to note that with my old sempron processor (AMD 3200+), I don't have to change any BIOS settings to get the RAM to work.
    The next problem on the list is with my video card. As mentioned previously, it's a Sapphire x1600 Radeon 512MB PCIE and I can't get it to work on this system for the life of me. I tested the card in a friend's computer (uninstalled his drivers and installed mine before attempting) and it worked like a dream. In mine however, whenever I go to run a graphic intensive program such as 3DMark05, it locks up after about 10 seconds, some times sooner. Occaisonaly VPU will kick in, but usually I have to perform a reboot. Even the little car animation in catalyst control center locks up my computer. It's interesting to note however that when watching anime, that I can usually go about 2 or 3 episodes before my computer freezes up on me, or just reboots.
    It's interesting to note that my computer has not rebooted on me while surfing the net, or typing stuff up.
    Another issue is that it seems like I can't go 10 or 15 minutes without something shutting down, such as firefox, or msn messenger due to errors. I've reinstalled windows and formatted twice now, and I'm still continually getting conflicts. I'm not sure if this issue might be tied into the ones I'm having with the motherboard, or if that even makes sense, but considering the fact I wasn't having these issues till I switched to this one, I'm ready to put the blame on it.
    My theories:
    My current theory is that there is a device driver conflict somewhere. After much searching, reinstalling, and a lot of crying, I've not been able to figure out what the video card is conflicting with. While this issue might be better dealt with on some ATI fourm, ATI has not such fourm I could find, and since I'm having issues with the board overall, I figured I'd post it here.
    I have no theory as to why one processor would have me to change bios setting to get the RAM to work, and why another wouldn't.
    I have no theory as to why I can watch anime, but not play games.
    What I'm hoping for:
    I'm open to any possible solutions to the problems I'm currently experiencing, and would even be grateful for possible causes if no solution can be met. If all else fails, and I can't get anything to work, (even though all the other parts work on other boards), I'll assume the board is faulty and just RMA it considering the fact that the people I bought it from don't accept returns.

    Quote from: Xfraze on 03-February-06, 19:26:38
    I plan to get a 450W PSU today and see if that helps, I have my fingers crossed though. Last time I though my computer had a power issue, it turned out the problem was somthing else and I forkedout some cash for nothing.
    Yep, that happens ... that is why I always recommend to try it out with a borrowed PSU first. Still, I have the feeling that things are moving in the right direction Maybe it is time to take a closer look at the videocard - you have any idea of the temperature of the card under stress - or about the temperatures in the computer in general? CPU temp, case temp, etc?

  • How to implement this interface using jsf

    This problem's been bothering me for serval days.
    Just a simple question, how to render the following case purely by JSF?
    http://www.hcj-sh.com/temp/case.gif
    case 1.
    It includes 2 radio button2, these 2 radios are in virtual layout, this is not different,
    but I need attach other items(such as input text filed, select menu... etc) after each
    radio button,,,,,
    case 2.
    5 raidos, 3 one the first row, and the others 2 on the second row....
    I had sleep on it for a long time, but still no answer...
    anyone can help me?
    Thanks a lot.

    I am not sure what you mean by case.? do you want to
    insert other components between the radio buttons ? in
    that case why don't you make them as two separate
    lists ?yes, I want to insert other components between the 2 radio buttons.
    the 2 raido buttons are in the same group, check one will auto uncheck another,
    so i think two spearate lists is not fit my require.
    For case 2, try using two SelectItemGroups, one for
    each set of radio buttons and see if that gives you
    the layout you want.SelectitemGroups? i donot found this tag in JSF, can you tell me more about it
    Thanks.
    David

  • Out of Memory Runtime Error

    Hello,
    I'm new to Java, this is only my third time using the language, and first time writing an applet. What I'm trying to do is create an applet that will plot 2D a set of coordinates based on an input string. Inexplicably, the VM gives an "<<Out of Memory>>" error while running. I urgently need a solution to this problem (as in, in the next two days... by August 9th, 2001). Any help or suggestions would be greatly appreciated.
    -Mark Radtke, radrik2001<REMOVE>@yahoo.com
    import java.awt.*;
    import java.applet.*;
    import java.io.*;
    import Orbit;
    public class TwoDApplet extends Applet {
         private Orbit stringHolder = new Orbit();
         public void init() {
              System.out.println("execution");
              stringToDraw();
              System.out.println("Done executing.");
         public boolean stringToDraw() {
              Graphics g = getGraphics();
              g.setColor(Color.black);
               StringReader sReader = new StringReader(stringHolder.case1);
               int XYline = 0, pArrayPlace = 0;
               int X = 0, Y = 0, last_x = 0, last_y = 0;
               float temp_x = 0, temp_y = 0;
               final char lineBreaker = '%', separator = ' ';     //These char's set the char that denotes line breaks and spaces between words, '\n' and ' ' by default
               StringBuffer buffer = new StringBuffer();
               final StringBuffer blankBuffer = new StringBuffer(" ");
              char temp;
              boolean flag = false;
              try {
                    temp = (char)sReader.read();
               } catch(IOException e) {
                    System.out.println("\n\n\tERROR: " + e);
                    return false;
         try {
              do {
                   switch(temp) {
                        case lineBreaker:
                             switch(XYline) {
                                  case 0:
                                       last_x = X;
                                       temp_x = Float.parseFloat(buffer.toString());
                                       X = (int)(temp_x * Math.pow(10.0,11.0));
                                       g.drawLine(last_x, 0, X, 0);
                                       break;
                                  case 1:
                                       last_y = Y;
                                       temp_y = Float.parseFloat(buffer.toString());
                                       Y = (int)(temp_y * Math.pow(10.0,11.0));
                                       g.drawLine(last_x, last_y, X, Y);
                                       break;
                                  default: //anything beyond 2 numbers in a row is ignored
                                       g.drawLine(last_x, last_y, X, Y);
                                       break;
                             } //end of nested switch
                             buffer = blankBuffer;
                             XYline = 0;
                             break;
                        case separator: //case separator:
                             switch(XYline) {
                                  case 0:
                                       System.out.print(buffer.toString());
                                       last_x = X;
                                       temp_x = Float.parseFloat(buffer.toString());
                                       X = (int)(temp_x * Math.pow(10.0,11.0));
                                       System.out.print("X = " + X + " ");
                                       break;
                                  case 1:
                                       last_y = Y;
                                       temp_y = Float.parseFloat(buffer.toString());
                                       Y = (int)(temp_y * Math.pow(10.0,11.0));
                                       System.out.print("Y = " + Y + " ");
                                       break;
                                  default:
                                       break;
                             } //end of nested switch
                             buffer = blankBuffer;
                             XYline++;
                             System.out.println("OK\n");
                             break;
                        default:
                             if(buffer.toString().equals(" ")) //i used to test is buffer == new StringBuffer(" "), but I figured that may have been part of the problem... it didn't help
                                  buffer.setCharAt(0, temp);
                             else
                                  buffer.append(temp);
                             break;
                   } //end of switch
                   try {
                         temp = (char)sReader.read();
                    } catch(IOException e) {
                         System.out.println("IOException caught... throwing...");
                         flag = true;
                         throw e;
                    } catch(NullPointerException e) {
                         System.out.println("Caught NullPointerException. You suck."); }
              } while(flag == false); //end of while
         } //end of try
         catch(NullPointerException e) {
              System.out.println("Caught NullPointerException.");
         catch(IOException e) {
              System.out.println("Caught IOException: " + e + "\n");
              return true;
    public class Orbit { //when totally completed, this class will just hold a few strings, most of which are much, much larger than this one
         public String case1 = "3.0745036727705142e-009 3.9417146050976244e-009%4.9852836681565192e-009 3.5573952047714837e-010%3.6200601148208685e-009 3.4445682318680393e-009%8.1006295549636224e-011 4.9953846385005008e-009%3.7105805578461100e-009 3.3440347969092934e-009%4.9772361223912569e-009 4.1037439683639425e-010%3.1322774963314919e-009 3.8884603960830088e-009%";

    Do you need to hold those values in a String? If not then simply store those values in a doubly-dimensioned array and avoid parsing the string altogether (see sample applet below). If you do need to store the values in a String consider using a StringTokenizer for parsing.
    import java.awt.*;
    import java.applet.*;
    import java.io.*;
    public class TwoDApplet extends Applet implements Runnable
    Thread th;
    int x;
    int y;
    int lastX;
    int lastY;
    double coordinates[][] = {{3.0745036727705142e-009,3.9417146050976244e-009},{4.9852836681565192e-009,3.5573952047714837e-010},{3.6200601148208685e-009,3.4445682318680393e-009},{8.1006295549636224e-011,4.9953846385005008e-009},{3.7105805578461100e-009,3.3440347969092934e-009},{4.9772361223912569e-009,4.1037439683639425e-010},{3.1322774963314919e-009,3.8884603960830088e-009}};
    final double operand = Math.pow(10.0,11.0);
    public void start()
      if (th == null)
       th = new Thread(this);
       th.start();
    public void stop()
      if (th != null)
       th = null;
    public synchronized void run()
      for (int z = 0; z < coordinates.length; z++)
       lastX = x;
       lastY = y;
       x = (int)(coordinates[z][0] * operand);
       y = (int)(coordinates[z][1] * operand);
       repaint();
       try
        wait();
        Thread.sleep(100);
       catch(InterruptedException ie)
    public void update(Graphics g)
      paint(g);
    public void paint(Graphics g)
      g.drawLine(lastX, lastY, x, y);
      synchronized(this)
       notifyAll();
    }

  • Question about "switch" statement

    hi all I am new to Java programming..
    I have one problem that is
    I would like to use switch statement like below
    in the switch statement can we use only integers ?
    but i am using string it is not supporting ..
    for strings like below what I have to do...
    String temp = "str2";
    switch(temp){
    case "str1":
    case "str2":
    case "str3":
    case "str4":
    please send the solution if anyone knows
    thanks

    What do you mean by a smart hash?At least smarter than String.hashCode ().
    Don't think so - char, byte, short, or int.You're correct - seems I've got to test things before I post. So it's safe to say that a switch works on anything that can be treated as an int?

  • Dynamic field catalog

    Hi all,
         i have a strange problem,
    in table WITH_ITEM the field ITT and wt_qbshh , we have different kinds of tax codes and tax amounts.
    i was displaying these as two columns in my report.
    but my client ask me to display the wt_qbshh field in different columns based on the witht value.
    i mean lets say for example there are 2 types of tax codes 1 and 2 in witht.
    and let  my report will display lik this
    tax amnt              tax code
    100.00 ;                   1
    150.00 ;                   2
    130.00 ;                   1
    120.00 ;                   2
    the client wants the report like this
    tax amnt-type1                      tax amnt-type 2
    100.00
                                                         150.00
    130.00 ; 
                                                         120.00
    is there any method for this kind of situation ?
    currently i defined all kinds of tax types as fields in my internal tables also in fieldcatalog
    and doing thie following
    loop at tbl into temp.
    case 'witht'.
        when '1'.
          temp-tax1 = temp-tax.
        when '2'.
          temp-tax2 = temp-tax.
    endcase.
    modify tbl from temp.
    endloop.
    i am asking for better way than this if exists
    thanks in advance.

    Hey check out this link
    http://wiki.sdn.sap.com/wiki/display/ABAP/DYNAMICFIELDCATALOGINALV
    May be you can modify your code lil bit.

  • DNF boolean expressions

    Hi folks,
    I would like to produce a "minimal" boolean expression in disjunctive normal form.
    Something like a AND b OR c to
    DNF: ab or ac
    Therefor i have developed a parser which produces that normal form, but the performance decreases very much if i parse expressions with lots of variables or nested expressions like:
    (a AND (b OR c OR d) AND (e OR f OR g)) OR ((b OR c OR d) AND (e OR f OR g) AND h) OR (i AND (e OR f OR g))
    It lastes up to 5 seconds.
    Do u know any free api, which i could use for this purpose?.
    Thanks in advance.

    Thats the code:
    package com.audatex.axn.ui.vsic.datamodel.util;
    import java.util.Vector;
    public class BooleanExpressionsParser
        private static final Logger _logger =  new Logger( JATOTest.class );
        public static int nVars;
        public static int nAmount;
        public static String sActiveVars;
        public static String sValidInput;
        public boolean isK0, isK1, isKsd, isKlinear, isKmonoton;
        public static boolean[] arResults;
        private static CBoolFkt cBoolFkt = new CBoolFkt();
        public static int format(String exp) {
            int result = cBoolFkt.format(exp);
            if (result == CBoolFkt.OK) {
                nVars = cBoolFkt.nMinVars;
                nAmount = 1 << nVars;
                sActiveVars = cBoolFkt.sActiveVars.toString();
                sValidInput = cBoolFkt.sValidInput.toString();
            return result;
        public static String doCalc() {
            arResults = new boolean[nAmount];
            for (int i = 0; i < nAmount; i++) {
                for (int run = 0; run < nVars; run++) {
                    cBoolFkt.Vars[cBoolFkt.sActiveVars.charAt(run)] = isBitSet(i,
                            nVars - run - 1);
                arResults[i] = cBoolFkt.evaluate();
            return doNF();
        public static String convertExpression(String boolExpression){
            _logger.debug(" " + boolExpression);
            int result = format(boolExpression);
            String res = "";
            if(result == CBoolFkt.OK){
                _logger.debug("The format is O.k ,doing calculation ");
                res = doCalc();
        return res;
        private static String  doNF() {
            StringBuffer sMDNF = new StringBuffer();
            return doQuineMcClusky( sMDNF);
        private static String doQuineMcClusky(StringBuffer sMDNF) {
            Vector arConjunctions = new Vector();
            Vector arUsedVars = new Vector();
            Vector arMarked = new Vector();
            int nUsedVarsMask = nAmount - 1;
            for (int i = 0; i < nAmount; i++) {
                if (arResults) {
    arConjunctions.addElement(new Integer(i));
    arUsedVars.addElement(new Integer(nUsedVarsMask));
    arMarked.addElement(new Boolean(false));
    _logger.debug("arConjunctions.size(): " + arConjunctions.size());
    for (int level = 0; level < nVars; level++) {
    int nConjunctions = arConjunctions.size();
    if (nConjunctions <= 1) {
    break;
    for (int checknr = 0; checknr < nConjunctions - 1; checknr++) {
    for (int comparenr = checknr + 1; comparenr < nConjunctions;
    comparenr++) {
    if (((Integer) arUsedVars.elementAt(checknr)).intValue() ==
    ((Integer) arUsedVars.elementAt(comparenr)).intValue()) {
    int checkval = ((Integer) arConjunctions.elementAt(
    checknr)).intValue();
    int compareval = ((Integer) arConjunctions.elementAt(
    comparenr)).intValue();
    int DifferMask = xOrBits(checkval, compareval);
    if (bitCount(DifferMask) == 1) {
    arMarked.setElementAt(new Boolean(true), checknr);
    arMarked.setElementAt(new Boolean(true), comparenr);
    int NewConj = andBits(checkval, compareval);
    int NewMask = xOrBits(DifferMask,
    ((Integer) arUsedVars.
    elementAt(checknr)).intValue());
    arConjunctions.addElement(new Integer(NewConj));
    arUsedVars.addElement(new Integer(NewMask));
    arMarked.addElement(new Boolean(false));
    nConjunctions = arConjunctions.size();
    for (int checknr = 0; checknr < nConjunctions - 1; checknr++) {
    if (((Boolean) arMarked.elementAt(checknr)).booleanValue() == false) {
    for (int comparenr = checknr + 1; comparenr < nConjunctions;
    comparenr++) {
    if (((Boolean) arMarked.elementAt(comparenr)).
    booleanValue() == false) {
    int checkval = ((Integer) arConjunctions.elementAt(
    checknr)).intValue();
    int compareval = ((Integer) arConjunctions.
    elementAt(comparenr)).intValue();
    int checkmask = ((Integer) arUsedVars.elementAt(
    checknr)).intValue();
    int comparemask = ((Integer) arUsedVars.elementAt(
    comparenr)).intValue();
    int maskand = andBits(checkmask, comparemask);
    if (checkmask == comparemask) {
    if (checkval == compareval) {
    arMarked.setElementAt(new Boolean(true),
    comparenr);
    } else {
    if ((maskand == checkmask) &&
    (andBits(compareval, maskand) == checkval)) {
    arMarked.setElementAt(new Boolean(true),
    comparenr);
    if ((maskand == comparemask) &&
    (andBits(checkval, maskand) == compareval)) {
    arMarked.setElementAt(new Boolean(true),
    checknr);
    for (int cleanup = nConjunctions - 1; cleanup >= 0; cleanup--) {
    if (((Boolean) arMarked.elementAt(cleanup)).booleanValue() == true) {
    arConjunctions.removeElementAt(cleanup);
    arUsedVars.removeElementAt(cleanup);
    arMarked.removeElementAt(cleanup);
    for (int i = 0; i < arConjunctions.size(); i++)
    int nUsed = ((Integer) arUsedVars.elementAt(i)).intValue();
    int nConj = ((Integer) arConjunctions.elementAt(i)).intValue();
    for (int run = 0; run < nVars; run++) {
    if (isBitSet(nUsed, nVars - run - 1)) {
    if (!isBitSet(nConj, nVars - run - 1)) {
    sMDNF.append("!");
    sMDNF.append(cBoolFkt.sActiveVars.charAt(run));
    sMDNF.append(" | ");
    // _logger.debug(arConjunctions.toString());
    //_logger.debug(arUsedVars.toString());
    //_logger.debug(arMarked.toString());
    sMDNF.setLength(sMDNF.length() - 3);
    return sMDNF.toString();
    public static boolean isBitSet(int Number, int Bit) {
    return (Number & (1 << Bit)) > 0;
    public static int andBits(int a, int b) {
    int Result = 0;
    int CurrBit = 0;
    while ((a > 0) || (b > 0)) {
    if (isBitSet(a, 0) && isBitSet(b, 0)) {
    Result += 1 << CurrBit;
    CurrBit++;
    a >>= 1;
    b >>= 1;
    return Result;
    public static int xOrBits(int a, int b) {
    int Result = 0;
    int CurrBit = 0;
    while ((a > 0) || (b > 0)) {
    if (isBitSet(a, 0) != isBitSet(b, 0)) {
    Result += 1 << CurrBit;
    CurrBit++;
    a >>= 1;
    b >>= 1;
    return Result;
    public static int bitCount(int Number) {
    int Result = 0;
    while (Number > 0) {
    if ((Number & 1) != 0) {
    Result++;
    Number >>= 1;
    return Result;
    * @return Returns the cBoolFkt.
    public CBoolFkt getCBoolFkt() {
    return cBoolFkt;
    * @param boolFkt The cBoolFkt to set.
    public void setCBoolFkt(CBoolFkt boolFkt) {
    cBoolFkt = boolFkt;
    public class CBoolFkt {
    // Constants to handle exceptions
    public static final int OK=0, NOTOKEN=1, UNKNOWNTOKEN=2,
    NOVARS=3, VAREXPECTED=4,
    BRACKETEXPECTED=5, BRACKETNOTALLOWED=6;
    // max. number of diferent vbles in the boolean expression
    public final int nMaxVars = 12;
    // Amount of current dif. vbles in the boolean exp.
    public int nMinVars;
    // Name of the current bool. exp sorted by alph. order
    public StringBuffer sActiveVars;
    public StringBuffer sValidInput;
    // Wertebelegung der Variablen by ASCII-Namen, also z.B. Vars['a']=true
    public boolean[] Vars = new boolean[128];
    // Name of the vbles.
    final char A='a', B='b', C='c', D='d',
    E='e', F='f', G='g', H='h',
    I='i', J='j', K='k', L='l',
    // operators
    OR='|', AND='&', XOR='+', EQU='=', _NOT='!',
    LOG='>', LB='(', RB=')', TRUE='1', _FALSE='0',
    _END=0;
    // Words that are replaced by the symbols behind
    final String[] arLongNames = { "or","oder","and","und",
    "xor","not","nicht","=>" };
    final char[] arLongToken = { '|','|','&','&','+','!','!','>' };
    private StringBuffer sExpression;
    private int iExpressionCount;
    private char cToken;
    // Detection of no valid syntax and integration of the expression with the language
    // of the parser
    public int format(String expression)
    boolean bForceVar = true;
    int nBracketCount = 0;
    sValidInput = new StringBuffer();
    if (expression.length()==0)
    return NOTOKEN;
    // convert to lower case
    expression = expression.toLowerCase();
    // for replacing the key words by symbols
    StringBuffer sNoLongNames = new StringBuffer(expression);
    // process de convertion
    for (int i=0; i<arLongNames.length; i++)
    while(sNoLongNames.toString().indexOf(arLongNames[i])!=-1)
    StringBuffer sTemp = new StringBuffer();
    // saveing word address
    int index = sNoLongNames.toString().indexOf(arLongNames[i]);
    if (index>0)
    sTemp.append(sNoLongNames.toString().substring(0,index));
    // replacing word
    sTemp.append(arLongToken[i]);
    if ((index+arLongNames[i].length())<sNoLongNames.length())
    sTemp.append(sNoLongNames.toString().substring(index+arLongNames[i].length()));
    sNoLongNames = sTemp;
    // convertion complete
    expression = sNoLongNames.toString();
    for (int i=0; i<expression.length(); i++)
    // Testing tokens
    switch(expression.charAt(i))
    case ' ': continue;
    // valid tokens
    case FALSE:; case TRUE:;
    case A:; case B:; case C:; case D:;
    case E:; case F:; case G:; case H:;
    case I:; case J:; case K:; case L:
    // every next token ist ok
    bForceVar = false;
    // ok
    sValidInput.append(expression.charAt(i));
    break;
    case _NOT:;
    // the next token must be vble
    bForceVar = true;
    // ok
    sValidInput.append(expression.charAt(i));
    break;
    case AND:; case OR:; case XOR:; case LOG:; case _EQU:;
    if (bForceVar)
    return VAREXPECTED;
    // the next token must be vble
    bForceVar = true;
    // ok
    sValidInput.append(expression.charAt(i));
    break;
    case _LB:;
    nBracketCount++;
    bForceVar = true;
    // ok
    sValidInput.append(expression.charAt(i));
    break;
    case _RB:;
    if (bForceVar||(nBracketCount==0))
    return BRACKETNOTALLOWED;
    nBracketCount--;
    // ok
    sValidInput.append(expression.charAt(i));
    break;
    // not valid token
    default: return UNKNOWNTOKEN;
    if (nBracketCount!=0)
    return BRACKETEXPECTED;
    if (bForceVar)
    return VAREXPECTED;
    // Counter of the number of vbles
    nMinVars=0;
    sActiveVars = new StringBuffer();
    // limitating pos vble names
    String sAllVars = "abcdefghijkl";
    // testing the vbles
    int i;
    for (i=0; i<nMaxVars; i++)
    if (sValidInput.toString().indexOf(sAllVars.charAt(i))!=-1)
    nMinVars++;
    sActiveVars.append(sAllVars.charAt(i));
    if (nMinVars==0)
    return NOVARS;
    expression = sValidInput.toString();
    sExpression = sValidInput;
    sExpression.append(_END);
    return OK;
    public boolean evaluate()
    sExpression = sValidInput;
    iExpressionCount = 0;
    return doEqu(true);
    private boolean doEqu(boolean get)
    boolean left = doLog(get);
    for (;;)
    if (cToken==_EQU)
    left=(doLog(true)==left);
    else
    return left;
    private boolean doLog(boolean get)
    boolean left = doOr(get);
    for (;;)
    if (cToken==_LOG)
    // a>b=!a|b
    left=doOr(true)||!left;
    else
    return left;
    private boolean doOr(boolean get)
    boolean left = doXor(get);
    for (;;)
    if (cToken==_OR)
    left|=doXor(true);
    else
    return left;
    private boolean doXor(boolean get)
    boolean left = doAnd(get);
    for (;;)
    if (cToken==_XOR)
    left^=doAnd(true);
    else
    return left;
    private boolean doAnd(boolean get)
    boolean left = doPrimary(get);
    for (;;)
    switch (cToken)
    case _AND:
    left&=doPrimary(true); break;
    case A:; case B:; case C:; case D:;
    case E:; case F:; case G:; case H:;
    case I:; case J:; case K:; case L:;
    case LB:; case NOT:
    left&=doPrimary(false); break;
    default:
    return left;
    private boolean doPrimary(boolean get)
    if (get)
    getToken();
    boolean temp;
    switch (cToken)
    case A:; case B:; case C:; case D:;
    case E:; case F:; case G:; case H:;
    case I:; case J:; case K:; case L:;
    temp = Vars[cToken];
    getToken();
    return temp;
    case _NOT:
    return !doPrimary(true);
    case _TRUE:
    getToken();
    return true;
    case _FALSE:
    getToken();
    return false;
    case _LB:
    temp = doEqu(true);
    getToken();
    return temp;
    default: return true;
    private void getToken()
    cToken = sExpression.charAt(iExpressionCount++);
    I try to convert the expression, not to evaluate it.
    For example:
    (a and b) or c and (d and b) ---> DNF: b & c & d l a & b

  • Master-Detail Problem -ASAP!!

    HI
    I have a problem that i hope someone can help me with.. I have one JSP page that displays a listing that will either add new,update or delete.. I am using the bc4juix:table tag but the problem that i am getting is that on the other page which is the detail, I have a drop down box that allows me to select a Term of Employment. IT is stored in the database as number.. My problem arises when I want to show on the List page the "string" value of the number. For example, on the list the Term of Employment value shows up in the column on the list page as being "2" BUT i want it to show up as "Unspecified" HOW DO I DO THIS!!!!???
    Anyone with any insight would be appreciative!!

    I am using the production release of JDeveloper..
    Here's a snippet of my code that i have done But it's not displaying properly in my grid.. In fact it's a mess
    <bc4juix:Table width="100%" datasource="dsWork" >
    <uix:columnHeaderStamp>
    <uix:styledText textBinding="LABEL" />
    </uix:columnHeaderStamp>
    <%-- The fields to be displayed in the list --%>
    <bc4juix:RenderValue datasource="dsWork" dataitem="JobTitle" />
    <bc4juix:RenderValue datasource="dsWork" dataitem="StartDate" />
    <bc4juix:RenderValue datasource="dsWork" dataitem="EndDate" />
    <%
    *******HELP WITH THIS PORTION********************
    for(int i=1;i <dsWork.getRowSet().getRowCount();i++)
    String c_temp;
    c_temp = (String)dsWork.getRowSet().getCurrentRow().getAttribute("TermOfEmployment");
    int temp=Integer.parseInt(c_temp);
    switch (temp)
    case 0 : %>
    <uix:styledText text="Unspecified"></uix:styledText>
    <%case 1: %>
    <uix:styledText text="Not Referred to Client Services"></uix:styledText>
    <%case 2: %>
    <uix:styledText text="Refer to CSO"></uix:styledText>
    <%case 3: %>
    <uix:styledText text="Refer to EAPD/CDS"></uix:styledText>
    <%case 4: %>
    <uix:styledText text="Refer to HRDC"></uix:styledText>
    <%} %>
    <jbo:RowsetNavigate datasource="dsWork" action="Next" />
    <%}%>
    <bc4juix:RenderValue datasource="dsWork" dataitem="Resume" />
    <uix:formValue name="RowKey" valueBinding="RowKey" />
    <% if (!dsWork.getRowSet().getViewObject().isReadOnly())
    {%>
    <uix:tableSelection>
    <uix:singleSelection >
    <uix:contents>
    <%-- The button name needs to be JboEvent so that it triggers the use of the OnEvent tag --%>
    <uix:submitButton name="jboEvent" text="Update" formName="form1" value="Update" />
    <uix:submitButton name="jboEvent" text="Delete" formName="form1" value="Delete" />
    </uix:contents>
    </uix:singleSelection>
    </uix:tableSelection>
    <%}%>
    </bc4juix:Table>
    Thanks for you help!! Greatly appreciative!
    Michelle

  • Can i Rma that card? 680 Twin Frozr

    Hi all.
    My card: Msi Gtx 680 Twin Frozr. I have max temp 70c while benchmarking and playing Crysis3. 65-68 C are in other games.
    Can i RMA that card? We all know that 70C is a first throttle point.
    On review sites , max load temps for that card are max 65.
    We all know that is Twin Frozr cooling and i should get little low temps even on Crysis 3 or benchmarks.

    Quote from: sew333 on 02-April-13, 16:20:36
    Last thing.
    But i am little worried , because i saw a few videos on youtube with that card, and there are max 59-61C on games. Not like mine 70C.
    Don't be worried.
    60-70C under load are normal temps for a GTX 680.
    Many things are involved here: ambient temp, case structure and airflow, number of case coolers, ...

  • MBM5 Settings/Readings

    I don't think I have MBM 5 set up correctly.
    I have made the following choices for the various sensors (using 3200+ Newcastle on K8N Neo Plat):
    For temps:
    Case: Winbond 1
    CPU: Winbond 2 Diode
    Sensor 3: Winbond 3
    Right now, the readings are:
    Case: 34C
    CPU: 52C
    Sensor 3: 36C (whatever that represents)
    For Voltages:
    Core 0: Winbond W83627THF-A
    Core 1: same
    +3.3: same
    +5.00: same
    +12.00: same
    Right now the readings are:
    Core 0: 1.54V
    Core 1: 3.17V
    +3.3: 3.31V
    +5.00: 5.03V
    +12.00: 2.18V
    (No, that's not a typo - the reading for 12.00 V is only 2.18V. However, in CoreCenter, it's 12.32V. Otherwise, CoreCenter and MBM 5 show the same voltages.)
    I certainly hope that the 12V line from the power supply isn't actually running at 2.18V, as per MBM 5.  Where did I go wrong when setting up MBM 5?

    Quote
    Originally posted by NiTrO bOiE
    Guys, choose Asus P4P800 for the voltages configuration.
    If I do that, then the voltages shown are:
    CPU       2.74v
    Core 1   0.00v
    +3.3      3.30v
    +5.00    5.03v
    +12.00  12.10v
    so the 12V line is more plausible, but the CPU voltage isn't 2.74V - CoreCenter shows it as 1.53V.
    Maybe the best thing to do is ignore the voltage readings  as long as the computer is running properly.  

  • New Case brings Better temps

    I just got a new case today and I was excited to see my system temps and CPU temps drop quite substantially.  When I bought my first case, I didn't notice that the PSU went directly in front of the the CPU cooler.  I was worried, but my temps were ok, so I didn't care much.
    My Original temps:
    50 Idle
    58 Load
    However, in my new case, the PSU is located higher up in the case and is no where near my CPU cooler. I have no case fans in the new case but the new temps are still much better.
    New Temps:
    CPU Idle  41
    CPU Load 49
    To improve my CPU temp even more, I've got a TT Volcano 12 coming in tomorrow (I hope).
    So, for all those out there experiencing high CPU temps, make sure your PSU is located high enough in the case that it is not covering your CPU fan intake.
    This may seem obvious, but I don't know anyone who has experienced such a drop in CPU temperature just by switching cases (and no change in case fans).
    Hope this is of some use to someone.  

    I agree that the case and case temp helps but you also have to make sure that you have good airflow and a top blowhole with a fan helps vent the case heat. Aluminum cases seem to work pretty good at keeping down the temps, it like having one big aluminum heat sink.

  • Post your MAXIMUM case temp

    All,
    For anyone/everyone with an IR thermometer and a MacBook Pro, please post the following:
    - notebook specs (processor, video card, hdd rpm)
    - serial # prefix (if MacBook Pro)
    - if it's been repaired (if so, include before/after temps)
    - highest temperature the case gets to (which should probably be above the F1-F3 keys)
    I would like to collect this data into a spreadsheet/graph. Ideally, I hope to see some posts of people with MBPs that are not hot, or are just warm.
    I'll start us off:
    - MBP 2.0 GHz, 256M Video, 7200rpm HDD
    - W86120BD
    - 141.5 F (60.83 C) before repair
    - 149 F (65 C) after repair
    Let's see just how "normal" these temperatures are. If you have a later-model Powerbook G4, it'd be interesting to compare to that as well!
    MBP 15" 2.0GHz Mac OS X (10.4.6)

    No IR thermometer here, but as indicated by CoreDuoTemp (http://macbricol.free.fr/coreduotemp/) the die temperature goes up to 83°C when both processors are fully loaded, after that the fans kick in and keep the temperature below 80°C
    (Terminal: yes >dev/null& twice, use kill 999 to stop, where 999 is the number returned when you started the processes.)
    Marc
    12" PB G4/1.2GHz- Mac Book Pro - 12" iB G3/500 MHz - PowerMac G4/450 MHz   Mac OS X (10.4.6)  

Maybe you are looking for

  • Query Help required

    HI Experts , Could you please help me in getting below output , My Input Table : Number Loc_A LOC_B PARENT_NUMBER A-01 Ind Aus A A-02 Fra NZ A A-03 Ind SL A A-04 USA Aus A A-05 Pak WI A A-06 Fra Ag A A-07 Rus Ban A A-08 SA Ind A A-09 Ind Ind A My Req

  • Release of system DSM could not be determined

    We have set up charm and created projects, corrections and transports. all seems fine until we try to pass correction to test. the transport is shown in the pop up box and we can select it. but when we hit ok, it seems to hang for several minutes the

  • How to change IP address and hostname in solaris 9

    Hi experts, I want to change IP address and hostname of the server , Plese give steps, or any precise document . Thanks Mohan Message was edited by: mohan_sr

  • SQL query/report for "count of specific file type"?

    I figured this would be a good first post, as I have found every question I have had to date by browsing the forums, but I am stumped with this one. I recently expressed some concern to HR regarding the use of...lets call it "unauthorized content" on

  • TextEdit - RTF Files Don't Display Accurately

    Hi there I noticed that, when opening rtf files composed in MSWord (on Windows machines) the highlighted text does not appear as highlitghted when opening on TextEdit. Any tips or solutions? Thanks!