Something is wrong with my Internal Mic. Please help?

Hello!
I have a Toshiba Satellite P505-S8020, I have used my Mic for Skype and other uses. All of a sudden, my mic stops working. Though, if I put my laptop lid down a bit it starts working again. When the lid of the laptop is in a down position, the Internal Mic starts working again, but when I put the lid back up in its normal, upright position it stops working again. How do I fix this? Please help!

. my zen froze
2. i put it in recovery mode by pressing the reset button
3. i try to format and reload the firmware but it keeps saying "Harddisk problem" everytime. i cant seem to do anything from there

Similar Messages

  • Something is wrong with my vision:M, please help

    my mom recently bought me a blue zen as a present from amazon.com, it was around november 27,2006 and it worked just fine, but just today it started to act weird. It froze while i was listening to music, so i reset it. right now its stuck on recovery mode and when i try to clean it up, format it or reload the firmware, it says that "harddisk Problem." I cant seem to fix the probelm no matter how many times i try to reboot the thing. Does this mean that i have to buy a new one becuase i dont understand how this "warranty" thing is working. can someone please help me becuase i actually grew attached to my zen and it's killing me becuase i cant use it.

    . my zen froze
    2. i put it in recovery mode by pressing the reset button
    3. i try to format and reload the firmware but it keeps saying "Harddisk problem" everytime. i cant seem to do anything from there

  • Something very wrong with my computer screen, please help!

    Hello all,
    Hopefully someone can help me!! I just got this Mac about 3 months ago, it is my first Mac. It is a MacBook Pro 15". Anyway, last night when I opened it up the screen has gone all funny & seems to be getting worse. It is kind of like on the TV when you get bad reception.
    Does anyone know why it has done this? I took it with me in the car, but I don't think it got bumped around or anything like that.
    i have attached some photos
    thank you everyone for your help in advance!!
    http://www.flickr.com/photos/55180164@N05/5122340102/
    http://www.flickr.com/photos/55180164@N05/5122335136/

    I think mine has got the same problem, I’m not 100% because I can’t see your problem properly because my screen is dodgy too :-p
    http://www.thefootdown.co.uk/images/temp/screen-full.jpg
    http://www.thefootdown.co.uk/images/temp/screen-cu.jpg
    MIne is well out of warranty though, is it possible for me to fix this myself?
    Thanks
    Ty

  • "Something went wrong with your request. Please try again later."?

    I ordered a Retina MacBook Pro on the 24th. Today, I went to check the status of the order and it redirected me to https://secure1.store.apple.com/ie/order/sorry saying:
    Something went wrong with your request. Please try again later.
    The only place I can get to is the account homepage. Anyone have any idea whats wrong?
    Cheers.

    Hi Fionnr,
    If you are in USA then you can call them their toll free number 1-800-275-2273 or otherwise if you have an Apple ID then you can raise a request on https://expresslane.apple.com/GetproductgroupList.action
    They will help you further. 

  • I got this message when I just finished my online ordering. "We're Sorry. Something went wrong with your request. Please try again later." and I didn't get confirmation email yet but I've been charged from my credit card already. Any suggestion please?

    I got this message when I just finished my online ordering. "We're Sorry. Something went wrong with your request. Please try again later." and I didn't get confirmation email yet but I've been charged from my credit card already. Any suggestion please?

    I am having the same issue. When I try to update my payment information I receive an error that states, "We're sorry, something seems to be wrong on our end. Please try again later.
    After Adobe's servers were breached I received a phonecall from my bank, stating that someone had used my credit card at a hotel in Mexico (I live in Ohio). I closed that credit card and was issued a new card. I want to update my card information on my Creative Cloud subscription. I chatted via the web with a customer service rep today. He was anable to help me. He suggested I call the Care Center. The hold was estimated at 2 hours. All I want to do is update my card information so the next time Adobe automatically bills for my subscription the transaction doesn't bounce.

  • We're Sorry. Something went wrong with your request. Please try again later.

    We're Sorry
    Something went wrong with your request. Please try again later.
    I meet the problem above when i click the button 'Check Older Status'? Who can help me?

    We have the same problem here in Australia too. I haven't been able to cancel my iPhone 4s I ordered online. I was able to purchase one from a retail store the last thing I need is two iPhone 4s :P

  • What's wrong with my code? please help....

    when display button is clicked it must diplay the remarks but it didn't happen...
    what's wrong with my code? please help
    here is my code.....
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    public class Area extends Applet implements ItemListener,ActionListener
         {Label arlbl = new Label("AREA");
          Choice archc = new Choice();
          Label extlbl = new Label("EXPENDITURE TYPE");
          CheckboxGroup extchk = new CheckboxGroup();
              Checkbox fchk = new Checkbox("FOOD",extchk,true);
              Checkbox schk = new Checkbox("SHELTER",extchk,false);
              Checkbox echk = new Checkbox("EDUCATION",extchk,false);
              Checkbox uchk = new Checkbox("UTILITIES",extchk,false);
          Label exalbl = new Label("EXPENDITURE AMOUNT");
          TextField exatf = new TextField("",20);
          Label remlbl = new Label("REMARKS");
          TextField remtf = new TextField("",30);
          Button disbtn = new Button("DISPLAY");
          Button resbtn = new Button("RESET");
          String display;
          public void init()
              {add(arlbl);
               archc.add("MANILA");
               archc.add("MAKATI");
               archc.add("QUEZON");
               archc.add("PASAY");
               add(archc);
               archc.addItemListener(this);
               add(extlbl);
               add(fchk);
               fchk.addItemListener(this);
               add(schk);
               schk.addItemListener(this);     
               add(echk);
               echk.addItemListener(this);
               add(uchk);
               uchk.addItemListener(this);
               add(exalbl);
               add(exatf);
               add(remlbl);
               add(remtf);
               add(disbtn);
               disbtn.addActionListener(this);
               add(resbtn);
               resbtn.addActionListener(this);
         public void itemStateChanged(ItemEvent ex)
              {int n = archc.getSelectedIndex();
               if(n==0)
                   {if(fchk.getState())
                         {exatf.setText("10000.00");
                         display = archc.getSelectedItem();
                   if(schk.getState())
                        {exatf.setText("15000.00");
                        display = archc.getSelectedItem();
                   if(echk.getState())
                        {exatf.setText("24000.00");
                        display = archc.getSelectedItem();
                   if(uchk.getState())
                        {exatf.setText("8500.00");
                        display = archc.getSelectedItem();
              if(n==1)
                   {if(fchk.getState())
                        {exatf.setText("5000.00");
                        display = archc.getSelectedItem();
                   if(schk.getState())
                        {exatf.setText("11000.00");
                        display = archc.getSelectedItem();
                   if(echk.getState())
                        {exatf.setText("7500.00");
                        display = archc.getSelectedItem();
                   if(uchk.getState())
                        {exatf.setText("24000.00");
                        display = archc.getSelectedItem();
              if(n==2)
                   {if(fchk.getState())
                        {exatf.setText("13000.00");
                        display = archc.getSelectedItem();
                   if(schk.getState())
                        {exatf.setText("7000.00");
                        display = archc.getSelectedItem();
                   if(echk.getState())
                        {exatf.setText("27000.00");
                        display = archc.getSelectedItem();
                   if(uchk.getState())
                        {exatf.setText("6000.00");
                        display = archc.getSelectedItem();
              if(n==3)
                   {if(fchk.getState())
                        {exatf.setText("6000.00");
                        display = archc.getSelectedItem();
                   if(schk.getState())
                        {exatf.setText("9000.00");
                        display = archc.getSelectedItem();
                   if(echk.getState())
                        {exatf.setText("15000.00");
                        display = archc.getSelectedItem();
                   if(uchk.getState())
                        {exatf.setText("19000.00");
                        display = archc.getSelectedItem();
         public void actionPerformed(ActionEvent e)
              {if(e.getSource() == disbtn)
                    {String amtstr = exatf.getText();
                     int amt = Integer.parseInt(amtstr);
                        {if(amt > 8000)
                             {remtf.setText(display + " IS ABOVE BUDGET");
                        else
                             {remtf.setText(display + " IS BELOW BUDGET");
              if(e.getSource() == resbtn)
                   {archc.select(0);
                   fchk.setState(true);
                   schk.setState(false);
                   echk.setState(false);
                   uchk.setState(false);
                   exatf.setText("");
                   remtf.setText("");
    Edited by: lovely23 on Feb 28, 2009 11:24 PM

    Edit: thanks for cross-posting this question on another forum. I now see that I wasted my time trying to study your code in the java-forums to help you with an answer that had already been answered elsewhere (here). Do you realize that we are volunteers, that our time is as valuable as yours? Apparently not. Cross-post again and many here will not help you again. I know that I won't.

  • What is wrong with this!! please help

    Hello friends,
    I'm a learner and I have done lot of JDBC connectivity with Acess database, and now I want to connect java program with oracle database, but the problem is I have downloaded the oracle driver, set the classpath, and I have created the DataSource Name with MS-ODBC, I could able to compile but I'm getting run time exception, please help me with this. regards, shabeer.
    the program is
    import java.sql.*;
    public class ShabeerJdbc {
    public static void main(String args[]) {
    // String url = "jdbc:oracle:thin:@imran:3339:shabeerjdbc";
    Connection con;
    String createString;
    createString = "create table COFFEES " +
    "(COF_NAME VARCHAR(32), " +
    "SUP_ID INTEGER, " +
    "PRICE FLOAT, " +
    "SALES INTEGER, " +
    "TOTAL INTEGER)";
    Statement stmt;
    try {
    System.out.println("shabeer1");
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    System.out.println("shabeer2");
    } catch(java.lang.Exception e) {
    System.out.println("shabeer3");
    System.err.print("ClassNotFoundException: ");
    System.out.println("shabeer4");
    System.err.println(e.getMessage());
    try {
    System.out.println("shabeer55");
    con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:shabeerjdbc", "system", "mehar");
    System.out.println("shabeer6");
    stmt = con.createStatement();
    System.out.println("shabeer7");
    stmt.executeUpdate(createString);
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    the run time error is ......
    C:\JavaPractice>java ShabeerJdbc
    shabeer1
    shabeer2
    shabeer55
    Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Savepoint
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at ShabeerJdbc.main(ShabeerJdbc.java:38)
    ****************************************

    HI Deriderj, thanks for your response, well I have changed the Datasourse name to SID which is "Imran" and still it is not working....do I need to download anymore driver or whether they be bundled with the ojdbc.jar, please advice me. What if I want to use another driver as you mentioned...not to use thin: what other drivers will be available for the Oracle9.2.0.1.0 please advice me, thanks a lot
    My SID name is "Imran"
    listening port is is 1521
    odbc datasource name is "shabeerjdbc"
    I'm a very biginner and I'm facing too much problem, please help me. Well I have got Oracle9.2.0.1.0 loaded as the database and soon after I intstalled it I have copied ojdbc14.jar into my java classpath and I'm trying to connect to this data base. I dont know what driver I should use, neither I downloaded any. I'm just mentioning thin: in my URL. But It is giving error, can u please tell me what driver should I mention in the URL, and why I'm getting this error, Here is the code that is compiling without errors.
    import java.sql.*;
    public class ShabeerJdbc {
    public static void main(String args[]) {
    Connection con;
    String createString;
    createString = "create table COFFEES " +
    "(COF_NAME VARCHAR(32), " +
    "SUP_ID INTEGER, " +
    "PRICE FLOAT, " +
    "SALES INTEGER, " +
    "TOTAL INTEGER)";
    Statement stmt;
    try {
         System.out.println("shabeer1");
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
         System.out.println("shabeer2");
    } catch(java.lang.Exception e) {
         System.out.println("shabeer3");
    System.err.print("ClassNotFoundException: ");
         System.out.println("shabeer4");
    System.err.println(e.getMessage());
    try {
         System.out.println("shabeer55");
    con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:Imran", "system", "mehar");
         System.out.println("shabeer6");
         stmt = con.createStatement();
         System.out.println("shabeer7");
         stmt.executeUpdate(createString);
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.println("Sql Exception" + ex.getMessage());
    ************The runtime Error it is giving is *********************
    C:\JavaPractice>java ShabeerJdbc
    shabeer1
    shabeer2
    shabeer55
    Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Savepoint
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at ShabeerJdbc.main(ShabeerJdbc.java:38)
    ***************************** please help me....

  • My ipod's screen went all fuzzy! Then it came on with black and white stripes/lines (vertical). Now it won't come on! What's wrong with my ipod? PLEASE HELP!

    PLEASE HELP!!!!

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • Whats wrong with these joins? Please help

    I have 2 tables
    EXAM_QUESTIONS: question_Id, language_id, category_id, question_text, is_active
    EXAM_RESPONSES: question_Id, chosen_answer, is_correct
    and I am trying to get report in following columns
    QUESTION ID | TIMES ASKED | TIMES CORRECT | CORRECT % | OPT A CHOSEN | OPT B CHOSEN
    and I am trying to use following query without luck (although query runs but numbers are not summing up!)
    select eq.question_id,
    count(er1.QUESTION_ID) as times_asked,
    count(er2.QUESTION_ID) as times_correct,
    count(er3.QUESTION_ID) as Answer_A_Selected,
    count(er4.QUESTION_ID) as Answer_B_Selected,
    eq.language_Id,
    eq.category_Id
    from exam_question eq left join EXAM_RESPONSE er1 on (eq.QUESTION_ID = er1.QUESTION_ID)
    left join EXAM_RESPONSE er2 on (eq.QUESTION_ID = er2.QUESTION_ID AND er2.IS_CORRECT = 'T')
    left join EXAM_RESPONSE er3 on (eq.QUESTION_ID = er3.QUESTION_ID AND er3.CHOSEN_ANSWER = 'A')
    left join EXAM_RESPONSE er4 on (eq.QUESTION_ID = er4.QUESTION_ID AND er4.CHOSEN_ANSWER = 'B')
    WHERE eq.IS_ACTIVE = 'T'
    group by eq.QUESTION_ID, eq.CATEGORY_ID, eq.LANGUAGE_ID
    order by eq.language_id, eq.category_id
    someone please help. Am i joining tables correctly?
    Thanks in advance

    Hi ,
    As i know oracle has left/right outer joins , not simply as left join.
    Left outer join: Oracle8i
    select
    last_name,
    department_name
    from
    employees e,
    departments d
    where
    e.department_id = d.department_id(+);
    Left outer join: Oracle9i
    select
    last_name,
    department_name
    from
    employees e
    left outer join
    departments d
    on
    e.department_id = d.department_id;

  • What is wrong with this class? Please help

    I'm trying to sort a dynamically created JComboBox into Alphabetical order. However, the class below is the result of my coding and there is a problem. the code can sort only two(2) item in the JComboBox and no more which is wrong. I do not know where i'm going wrong in the selectionSort(JComboBox cmb) method. the getLargest(JComboBox cmb) method works perfectly because i have tried it. Can somebody please take a look at my codes and help me modify it.
    Thanks
    James
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class SortCombo extends JFrame implements ActionListener{
    JButton btnAdd, btnSort;
    JComboBox cmbItems;
    JTextField text1;
    public SortCombo(){
    super("Sorting Demo");
    this.getContentPane().setLayout(new GridLayout(4,1));
    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    btnAdd = new JButton("Add Item to Combo Box");
    btnSort = new JButton("Sort Items in ComboBox");
    text1 = new JTextField(20);
    cmbItems = new JComboBox();
    btnAdd.addActionListener(this);
    btnSort.addActionListener(this);
    this.getContentPane().add(cmbItems);
    this.getContentPane().add(text1);
    this.getContentPane().add(btnAdd);
    this.getContentPane().add(btnSort);
    this.pack();
    this.show();
    public void actionPerformed(ActionEvent e){
    if(e.getSource() == btnAdd){
    String s = text1.getText();
    if (!s.equals("") && !isDuplicate(s,cmbItems))
    cmbItems.addItem(text1.getText());
    }else if(e.getSource() == btnSort){
    selectionSort(cmbItems);
    // int i = getLargest(cmbItems);
    // System.out.println(i);
    public boolean isDuplicate(String stationName, JComboBox cmb){
    int j = cmb.getItemCount();
    boolean result = false;
    for (int i = 0; i < j; i++){
    String s = (String)cmb.getItemAt(i);
    if (stationName.trim().equalsIgnoreCase(s.trim()))
    result = true;
    return result;
    public int getLargest(JComboBox cmb){
    int indexSoFar = 0;
    int size = cmb.getItemCount();
    for(int currIndex = 1; currIndex < size; currIndex++){
    String strSoFar = (String)cmb.getItemAt(indexSoFar);
    String currStr = (String)cmb.getItemAt(currIndex);
    char charSoFar = strSoFar.charAt(0); charSoFar = Character.toUpperCase(charSoFar);
    char currChar = currStr.charAt(0); currChar = Character.toUpperCase(currChar);
    if(currChar > charSoFar){
    indexSoFar = currIndex;
    return indexSoFar;
    public void selectionSort(JComboBox cmb){
    int n = cmb.getItemCount();
    for (int last = n-1; last >=1; last--){
    int largest = getLargest(cmb);
    String temp = (String)cmb.getItemAt(largest);
    String temp2 = (String)cmb.getItemAt(last);
    cmb.removeItemAt(largest);
    cmb.insertItemAt(temp2,largest);
    cmb.removeItemAt(last);
    cmb.insertItemAt(temp,last);
    public static void main(String[] args){
    new SortCombo();
    }

    I beleive what is wrong is that your getLargest method returns the largest to your selection sort.The selectionSort places the largest at the end.On the next iteration it finds the largest again. this time at the end where you put it.Now it just does the same thing over again placing the same item at the end until the loop runs out.What you are left with is only one item it the right spot(sometimes 2).I could not get it to work the way you had it here so I tried a rewrite.It seems to work ok but it won't sort two words that start with the same letter properly.You may have to insert an algorithm to fix this.I got rid of the getLargest method and did everything in the selectionSort method.I used what I think is called a bubble sort but I'm not sure.
    I hope this is what you were looking for:)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class SortCombo extends JFrame implements ActionListener{
         JButton btnAdd, btnSort;
         JComboBox cmbItems;
         JTextField text1;
         public SortCombo(){
              super("Sorting Demo");
              getContentPane().setLayout(new GridLayout(4,1));
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              btnAdd = new JButton("Add Item to Combo Box");
              btnSort = new JButton("Sort Items in ComboBox");
              text1 = new JTextField(20);
              cmbItems = new JComboBox();
              btnAdd.addActionListener(this);
              btnSort.addActionListener(this);
              Container pane = getContentPane();
              pane.add(cmbItems);
              pane.add(text1);
              pane.add(btnAdd);
              pane.add(btnSort);
              pack();
              show();
         public void actionPerformed(ActionEvent e){
              if(e.getSource() == btnAdd){
              String s = text1.getText();
              if (!s.equals("") && !isDuplicate(s,cmbItems))
              cmbItems.addItem(text1.getText());
              }else if(e.getSource() == btnSort){
              selectionSort(cmbItems);
         public boolean isDuplicate(String stationName, JComboBox cmb){
              int j = cmb.getItemCount();
              boolean result = false;
              for (int i = 0; i < j; i++){
                   String s = (String)cmb.getItemAt(i);
                   if (stationName.trim().equalsIgnoreCase(s.trim()))
                   result = true;
              return result;
         public void selectionSort(JComboBox cmb){
              int count = cmb.getItemCount();
              for(int start = 0;start < count;start++){
                   for(int x = start;x < count-1;x++){
                        String first = (String)cmb.getItemAt(start);
                        String next = (String)cmb.getItemAt(x+1);
                        char charFirst = first.charAt(0);
                               charFirst = Character.toUpperCase(charFirst);
                        char charNext = next.charAt(0);
                        charNext = Character.toUpperCase(charNext);
                             if(charFirst > charNext){
                                  String temp  = (String)cmb.getItemAt(start);
                                  String temp2 = (String)cmb.getItemAt(x+1);
                                  cmb.removeItemAt(start);
                                  cmb.insertItemAt(temp2,start);
                                  cmb.removeItemAt(x+1);
                                  cmb.insertItemAt(temp,x+1);
         public static void main(String[] args){
              new SortCombo();
    }p.s.(I removed the "this" references from your constructor when I rewrote it because they are implied anyway)
    [email protected]

  • What is wrong with my Code?  Please Help!

    I am using a case statement to convert a DOB to Age. I have used this before on another oracle database and it worked fine. Now I am getting and error ORA-00909 invalid number of arguments; Can someone take a look at it and let me know why this is erroring out? Thanks!!
    SELECT
    PWLDBA.TESTREQ.ACCESSION,
    PWLDBA.ENCOUNTER.ENCOUNTERNO,
    PWLDBA.PATIENT.NAMELAST,
    PWLDBA.PATIENT.NAMEFIRST,
    PWLDBA.PATIENT.NAMEINITIAL,
    PWLDBA.PATIENT.NAMESUFFIX,
    PWLDBA.PATIENT.ADDR2,
    PWLDBA.PATIENT.ADDR1,
    PWLDBA.PATIENT.CITY,
    PWLDBA.PATIENT.STATE,
    PWLDBA.PATIENT.COUNTRY,
    PWLDBA.PATIENT.PHONE,
    PWLDBA.PATIENT.DOB,
    CASE WHEN MONTHS_BETWEEN(SYSDATE, TO_DATE(TO_CHAR(PWLDBA.PATIENT.DOB), 'YYYYMMDD')) < 1 THEN
    TRUNC((SYSDATE - TO_DATE(TO_CHAR(PWLDBA.PATIENT.DOB), 'YYYYMMDD'))/7) || ' WEEKS'
    WHEN MONTHS_BETWEEN(SYSDATE, TO_DATE(TO_CHAR(PWLDBA.PATIENT.DOB), 'YYYYMMDD')) < 12 THEN
    TRUNC(MONTHS_BETWEEN(SYSDATE, TO_DATE(TO_CHAR(PWLDBA.PATIENT.DOB), 'YYYYMMDD'))) || ' MONTHS'
    ELSE TRUNC(MONTHS_BETWEEN(SYSDATE, TO_DATE(PWLDBA.PATIENT.DOB), 'YYYYMMDD'))/12) || ' YEARS'
    END AS AGE
    PWLDBA.PATIENT.GENDER,
    PWLDBA.PATIENT.ITKEY_0,
    PWLDBA.PATIENT.GROUP_0,
    PWLDBA.PATIENT.SSN,
    PWLDBA.SF.SRCFAC,
    PWLDBA.SF.SRCFACNAME,
    PWLDBA.PATIENT.PID,
    PWLDBA.TESTREQ.COMPLETED,
    PWLDBA.TESTREQ.RDKEY_0,
    PWLDBA.TESTREQ.REFPNAME_0,
    PWLDBA.TESTREQ.REQUESTTYPE,
    PWLDBA.TESTREQ.STATUS,
    PWLDBA.TESTREQ.SOURCE,
    PWLDBA.TESTREQ.COLLECTED,
    PWLDBA.TESTREQ.RECEIVED,
    PWLDBA.TESTREQ.COMPLETED,
    PWLDBA.RD.REFPNAME,
    PWLDBA.RD.NAMELAST,
    PWLDBA.RD.NAMEINITIAL,
    PWLDBA.RD.NAMESUFFIX,
    PWLDBA.RD.SPCL_SSKEY,
    PWLDBA.RD.PROVIDERID,
    PWLDBA.RD.ADDR1,
    PWLDBA.RD.ADDR2,
    PWLDBA.RD.ADDR2,
    PWLDBA.RD.CITY,
    PWLDBA.RD.STATE,
    PWLDBA.RD.ZIP,
    PWLDBA.RD.CONTACTPHONE,
    PWLDBA.RD.NPI,
    PWLDBA.RD.UPIN,
    PWLDBA.TESTREQ.COLLECTED AS PRIMARY_COL_DT,
    PWLDBA.TESTREQ.RECEIVED AS PRIMARY_REC_DT,
    PWLDBA.PTRESULT.FINALSTAMP AS FINAL_COMP_DT,
    PWLDBA.TEST.NAME,
    PWLDBA.TEST.SHORTNAME,
    PWLDBA.TESTREQ.OS_SITEKEY,
    PWLDBA.PTRESULT.TYPE,
    PWLDBA.PTRESULT.SOURCE,
    PWLDBA.PTRESULT.STATUS,
    PWLDBA.PTRESULT.UNITS,
    PWLDBA.PTRESULT.NORMAL,
    PWLDBA.PTRESULT.ABNRANGE,
    PWLDBA.PTRESULT.VVRANGE,
    PWLDBA.PTRESULT.SCALE,
    PWLDBA.TESTREQ.COLLECTED,
    PWLDBA.PATIENT.PID,
    PWLDBA.PT.DESCRIPTION AS CASE_TYPE,
    PWLDBA.TEST.NAME,
    PWLDBA.TEST.TESTCODE,
    PWLDBA.TESTREQ.ICD9KEY_0,
    CASE WHEN MONTHS_BETWEEN(SYSDATE, TO_DATE(TO_CHAR(PWLDBA.PATIENT.DOB), 'YYYYMMDD')) < 1 THEN
    TRUNC((SYSDATE - TO_DATE(TO_CHAR(PWLDBA.PATIENT.DOB), 'YYYYMMDD'))/7) || ' WEEKS'
    WHEN MONTHS_BETWEEN(SYSDATE, TO_DATE(TO_CHAR(PWLDBA.PATIENT.DOB), 'YYYYMMDD')) < 12 THEN
    TRUNC(MONTHS_BETWEEN(SYSDATE, TO_DATE(TO_CHAR(PWLDBA.PATIENT.DOB), 'YYYYMMDD'))) || ' MONTHS'
    ELSE TRUNC(MONTHS_BETWEEN(SYSDATE, TO_DATE(PWLDBA.PATIENT.DOB), 'YYYYMMDD'))/12) || ' YEARS'
    END AS AGE
    FROM
    PWLDBA.PATIENT
    INNER JOIN PWLDBA.SF
    ON PWLDBA.PATIENT.SFKEY = PWLDBA.SF.SFKEY
    INNER JOIN PWLDBA.ENCOUNTER
    ON PWLDBA.ENCOUNTER.PATIENTKEY = PWLDBA.PATIENT.PATIENTKEY
    INNER JOIN PWLDBA.TESTREQ
    ON PWLDBA.PATIENT.PATIENTKEY = PWLDBA.TESTREQ.PATIENTKEY
    INNER JOIN PWLDBA.RD
    ON PWLDBA.TESTREQ.RDKEY_0 = PWLDBA.RD.RDKEY
    INNER JOIN PWLDBA.PTRESULT
    ON PWLDBA.TESTREQ.TESTREQKEY = PWLDBA.PTRESULT.TESTREQKEY
    INNER JOIN PWLDBA.TEST
    ON PWLDBA.TEST.TESTKEY = PWLDBA.TESTREQ.TESTKEY
    lEFT OUTER JOIN PWLDBA.PT
    ON PWLDBA.PATIENT.PATIENTKEY=PWLDBA.PT.PTKEY
    WHERE PWLDBA.TEST.NAME LIKE 'HPV%' AND PWLDBA.TESTREQ.STATUS ='D'

    Should be something as simple as this I would have thought...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select date '1972-07-01' as dob from dual union all
      2             select date '1999-12-28' from dual union all
      3             select date '2011-01-11' from dual union all
      4             select date '2011-01-14' from dual union all
      5             select date '2011-10-01' from dual union all
      6             select date '2011-10-08' from dual)
      7  --
      8  -- end of test data
      9  --
    10  select dob
    11        ,case when sysdate-dob < 7 then
    12                -- less than 1 week, show in days
    13                floor(sysdate-dob)||' day(s)'
    14              when months_between(trunc(sysdate), trunc(dob)) < 1 then
    15                -- less than 1 month
    16                floor((sysdate-dob)/7)||' week(s)'
    17              when months_between(trunc(sysdate), trunc(dob)) < 12 then
    18                floor(months_between(trunc(sysdate), trunc(dob)))||' month(s)'
    19         else floor((months_between(trunc(sysdate), trunc(dob)))/12)||' year(s)'
    20         end as age
    21* from t
    SQL> /
    DOB         AGE
    01-JUL-1972 39 year(s)
    28-DEC-1999 11 year(s)
    11-JAN-2011 9 month(s)
    14-JAN-2011 8 month(s)
    01-OCT-2011 1 week(s)
    08-OCT-2011 3 day(s)
    6 rows selected.

  • What's wrong with my transform? Please help!

    I have a program which is trying to transform some XML data into HTML. I'm using DOM, and am selecting a node with getElementByID(). This Node is then passed to the transformer, and the data it contains should be output with HTML markup. However, the transform outputs the XML data, but with none of the HTML formatting contained in the XSL! I have a very simple program here to demonstrate what I mean
    Here's the XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <people xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="file:/C:/test.xsd">
        <person employee_no="e124">
            <name>Mary Jane</name>
            <address>420 High St</address>
            <phone>555-0123</phone>
        </person>
        <person employee_no="e123">
            <name>John Smith</name>
            <address>123 Boulevard Rd</address>
            <phone>555-0918</phone>
        </person>
    </people>Here's the XSL:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
        <xsl:output method="html"/>
            <xsl:template match="/">
                <html>
                        <p>Name: <xsl:value-of select="person/name"/><br/>Address: <xsl:value-of select="person/address"/><br/>Phone: <xsl:value-of select="person/phone"/></p>
                </html>
            </xsl:template>
    </xsl:stylesheet>And here's the code that is giving me problems - it selects a node using getElementByID and tries to apply that node to the transform.
    package xsltest;
    import java.io.*;
    import javax.xml.transform.stream.*;
    import javax.xml.transform.dom.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import org.w3c.dom.*;
    import org.apache.xerces.parsers.*;
    public class XSLTest {
      String xslPath = "C:\\test.xsl";
      String xmlPath = "C:\\test.xml";
      String xsdPath = "C:\\test.xsd";
      String outPath = "c:\\XSLTest.html";
      org.w3c.dom.Document xmlDoc;
      public XSLTest() {
        /*Load the XML file, with Schema validation turned on*/
        try {
            DOMParser parser = new DOMParser();
            parser.setFeature("http://xml.org/sax/features/validation", true);
            parser.setFeature("http://apache.org/xml/features/validation/schema", true);
            parser.parse(xmlPath);
            xmlDoc = parser.getDocument();
        catch (Exception e) { e.printStackTrace(); }
        File outFile = new File(outPath);
        File xslFile = new File(xslPath);
        StreamResult result = new StreamResult(outFile);
        StreamSource xsltSource = new StreamSource(xslFile);
        /*Select the element that we wish to output HTML for*/
        Node node = xmlDoc.getElementById("e124");
        DOMSource xmlSource = new DOMSource(node);
        try {
          javax.xml.transform.TransformerFactory tff = TransformerFactory.newInstance();
          Transformer transformer = tff.newTransformer(xsltSource);
          transformer.transform(xmlSource, result);
        catch (Exception e) {
          e.printStackTrace();
      public static void main(String[] args) {
        XSLTest test = new XSLTest();
    }When I do this, I get an empty document containing only:
    Mary Jane 420 High St 555-0123
    What am i doing wrong here?

    Hello,
    try this:
    change the line
    Node node = xmlDoc.getElementById("e124");
    with this content:
    Node node = null;
    org.w3c.dom.NodeList theList = xmlDoc.getElementsByTagName("person");
    for (int i = 0; i < theList.getLength(); i++)
    if ( ( (org.w3c.dom.Element) theList.item(i)).getAttribute("employee_no").equalsIgnoreCase("e124"))
    node=theList.item(i);
    The problem is, that the method "getElementByID" delivers "null" in your code.

  • What is wrong with my iBook?  Please help!!!

    Sometimes it will load OSX and then freeze up, sometimes it will freeze up while loading OSX, sometimes it won't do anything besides play the start noise. I have noticed that if I whack at the laptop in the area where the hard drive is located it will typically work, at least for a while. I am pretty sure it is my hard drive going bad, but it has also been like 2 years since I cleaned everything out and restored it.
    I carry this laptop everywhere. It goes with me to the coffee shops, classes, resturants, extented trips, everywhere. So I am thinking that through the constant moving and bumping and what ever else it has gone through so hardware componet may be reaching its limit on use.
    If anyone has an idea about what to do I would love to know too.
    P.S. It won't even run the restart CD's with out freezing up. But like I said I hit it and then it will work okay again for a while. It is working okay right now, although this is the second time that I had to restart cause the first time it froze up a few minutes after the OS loaded.

    If you are unable to start up to the install disc then there is something other than the hard drive not working properly. When you start up to the install disc, the computer is not using the hard drive, so any issues that happen when trying to boot to the DVD indicate issue with other parts.
    My best advice is to back up your data, try to run Disc utility on the HD to see if it finds any errors, repair those errors while booted to the DVD. If you can boot to the disc and verify the HD but are unable to repair you can try Disc Warrior, it saved me from needing to do an erase and install. If your unable to do that, again with your data backed up, Erase the HD and reinstall OS 10, sometimes the hard drive errors can be fixed by erasing and starting over.
    Heres Apples article on running disc utility
    http://docs.info.apple.com/article.html?artnum=106214
    If your unable to boot to the disc take it to an authorized provider and have them check it out. I'll cross my fingers for you that you have Apple care otherwise it can be pretty costly to fix.
    Good Luck

  • What's wrong with my codes? Please help!

    *Questions are #13 and #14. These should be combined.
    Can you please tell me why the following is not answering the questions #13 and #14?
    Thank you!!
    import java.util.Scanner;               // Needed for Scanner class
    import java.text.DecimalFormat;          // Needed for DecimalFormat class
         #13:
              An Internet service provider has three different subscription
              packages for its customers:
              Package A:          For $9.95 per month 10 hours of access are provided.
                                  Additional hours are $2.00 per hour.
              Package B:          For $13.95 per month 20 hours of access are provided.
                                  Additional hours are $1.00 per hour.
              Package C:          For $19.95 per month unlimited access is provided.
              Write a program that calculates a customer's monthly bill. It should
              ask the user to enter the letter of the package the customer has
              purchased (A, B, or C) and the number of hours that were used. It should
              then display the total charges.
         #14:
              Modify the program you wrote for Programming Challenge 13 so it also
              calculates and displays the amount of money Package A customers
              would save if they purchased Package B or C, and the amount of
              money Package B customers would save if they purchased Package C.
              If three would be no savings, no message should be printed.
    public class Internet3
         public static void main(String[] args)
              char ch, ch1;
              int hours;
              double monthlyBill, additionalBill, savings, total, saved;
              // Create a Scanner object for keyboard input.
              Scanner keyboard = new Scanner(System.in);
              // Get the letter of the package the user has purchased.
              System.out.println("Enter one of the letters of the package" +
                                       "you have purchased: A, B, or C?\nNote: "
                                       + "Please type in uppercase.");
              ch = keyboard.nextLine().charAt(0);
              // Create a DecimalFormat object.
              DecimalFormat formatter = new DecimalFormat("#0.00");
              // If the user typed A
              if (ch == 'A')
                   System.out.println("Have you purchased an additional package?" +
                                            " If so, enter the letter of the package." +
                                            " then press the enter key. If not, just "+
                                            "type N.\nNote: Please type in uppercase.");
                   ch1 = keyboard.nextLine().charAt(0);
                   if (ch1 == 'B' || ch1 == 'C')     // If the user typed B or C
                        System.out.println("Enter the number of hours " +
                                            "that you used in month.");
                        hours = keyboard.nextInt();
                        if (hours <= 10)               // If the user typed int less than or equal to 10
                             monthlyBill = 9.95;
                             System.out.println("Your original monthly bill is $" + monthlyBill);
                             savings = -4.00;
                             saved = monthlyBill + savings;
                             System.out.println("You saved $4.00 and the total monthly bill is $" +
                                                      formatter.format(saved));
                        else                              // If the user typed int more than 10
                             monthlyBill = 9.95;
                             total = monthlyBill + ((hours - 10)*2);
                             System.out.println("Your original monthly bill is $" + total);
                             savings = -4.00;
                             saved = total + savings;
                             System.out.println("You saved $4.00 and the total monthly bill is $" +
                                                      formatter.format(saved));
                   else if (ch1 == 'N')               // If the user typed N
                        System.out.println("Enter the number of hours " +
                                                 "that you used in month.");
                        hours = keyboard.nextInt();
                        if (hours <= 10)               // If the user typed int less than or equal to 10
                             monthlyBill = 9.95;
                             System.out.println("Your monthly bill is $" + monthlyBill);
                        else                              // If the user typed int more than 10
                             monthlyBill = 9.95;
                             total = monthlyBill + ((hours - 10)*2);
                             System.out.println("Your monthly bull is $" + formatter.format(total));
              else if (ch == 'B')                         // If the user typed B
                   System.out.println("Have you purchased an additional package?" +
                                            " If so, enter the letter of the package." +
                                            " then press the enter key. If not, just "+
                                            "type N.\nNote: Please type in uppercase.");
                   ch1 = keyboard.nextLine().charAt(0);
                   if (ch1 == 'C')                         // If the user typed C
                        System.out.println("Enter the number of hours " +
                                                 "that you used in month.");
                        hours = keyboard.nextInt();
                        if (hours <= 20)               // If the user typed int less than or equal to 20
                             monthlyBill = 13.95;
                             System.out.println("Your original monthly bill is $" + monthlyBill);
                             savings = -4.00;
                             saved = monthlyBill + savings;
                             System.out.println("Your saved $4.00 and the total monthly bill is $" +
                                                      formatter.format(saved));
                        else                              // If the user typed int more than 20
                             monthlyBill = 13.95;
                             total = monthlyBill + (hours - 20);
                             System.out.println("Your original monthly bill is $" + total);
                             savings = -4.00;
                             saved = total + savings;
                             System.out.println("You saved $4.00 and the total monthly bill is $" +
                                                      formatter.format(saved));
                   else if (ch1 == 'N')               // If the user typed N
                        System.out.println("Enter the number of hours " +
                                                 "that you used in month.");
                        hours = keyboard.nextInt();
                        if (hours <= 20)               // If the user typed int less than or equal to20
                             monthlyBill = 13.95;
                             System.out.println("Your monthly bill is $" + monthlyBill);
                        else                              // If the user typed int more than 20
                             monthlyBill = 13.95;
                             total = monthlyBill + (hours - 20);
                             System.out.println("Your monthly bill is $" + formatter.format(total));
              else if (ch == 'C')                         // If the user typed C
                   System.out.println("Enter the number of hours " +
                                            "that you used in mounth.");
                   hours = keyboard.nextInt();
                   if (hours > 0)                         // If the user typed int more than 0
                        monthlyBill = 19.95;
                        System.out.println("Your monthly bill is $" + monthlyBill);
              else                                        // If the user typed a character other than A, B, or C
                   System.out.println("That's not A, B, or C!");
    }

    #13:
              An Internet service provider has three different subscription
              packages for its customers:
              Package A:          For $9.95 per month 10 hours of access are provided.
                                  Additional hours are $2.00 per hour.
              Package B:          For $13.95 per month 20 hours of access are provided.
                                  Additional hours are $1.00 per hour.
              Package C:          For $19.95 per month unlimited access is provided.
              Write a program that calculates a customer's monthly bill. It should
              ask the user to enter the letter of the package the customer has
              purchased (A, B, or C) and the number of hours that were used. It should
              then display the total charges.
         #14:
              Modify the program you wrote for Programming Challenge 13 so it also
              calculates and displays the amount of money Package A customers
              would save if they purchased Package B or C, and the amount of
              money Package B customers would save if they purchased Package C.
              If three would be no savings, no message should be printed.
    import java.util.Scanner;               // Needed for Scanner class
    import java.text.DecimalFormat;          // Needed for DecimalFormat class
    public class Internet3
         public static void main(String[] args)
              char ch, ch1;
              int hours;
              double monthlyBill, additionalBill, savings, total, saved;
              // Create a Scanner object for keyboard input.
              Scanner keyboard = new Scanner(System.in);
              // Get the letter of the package the user has purchased.
              System.out.println("Enter one of the letters of the package" +
                                       "you have purchased: A, B, or C?\nNote: "
                                       + "Please type in uppercase.");
              ch = keyboard.nextLine().charAt(0);
              // Create a DecimalFormat object.
              DecimalFormat formatter = new DecimalFormat("#0.00");
              // If the user typed A
              if (ch == 'A')
                   System.out.println("Have you purchased an additional package?" +
                                            " If so, enter the letter of the package." +
                                            " then press the enter key. If not, just "+
                                            "type N.\nNote: Please type in uppercase.");
                   ch1 = keyboard.nextLine().charAt(0);
                   if (ch1 == 'B' || ch1 == 'C')     // If the user typed B or C
                        System.out.println("Enter the number of hours " +
                                            "that you used in month.");
                        hours = keyboard.nextInt();
                        if (hours <= 10)               // If the user typed int less than or equal to 10
                             monthlyBill = 9.95;
                             System.out.println("Your original monthly bill is $" + monthlyBill);
                             savings = -4.00;
                             saved = monthlyBill + savings;
                             System.out.println("You saved $4.00 and the total monthly bill is $" +
                                                      formatter.format(saved));
                        else                              // If the user typed int more than 10
                             monthlyBill = 9.95;
                             total = monthlyBill + ((hours - 10)*2);
                             System.out.println("Your original monthly bill is $" + total);
                             savings = -4.00;
                             saved = total + savings;
                             System.out.println("You saved $4.00 and the total monthly bill is $" +
                                                      formatter.format(saved));
                   else if (ch1 == 'N')               // If the user typed N
                        System.out.println("Enter the number of hours " +
                                                 "that you used in month.");
                        hours = keyboard.nextInt();
                        if (hours <= 10)               // If the user typed int less than or equal to 10
                             monthlyBill = 9.95;
                             System.out.println("Your monthly bill is $" + monthlyBill);
                        else                              // If the user typed int more than 10
                             monthlyBill = 9.95;
                             total = monthlyBill + ((hours - 10)*2);
                             System.out.println("Your monthly bull is $" + formatter.format(total));
              else if (ch == 'B')                         // If the user typed B
                   System.out.println("Have you purchased an additional package?" +
                                            " If so, enter the letter of the package." +
                                            " then press the enter key. If not, just "+
                                            "type N.\nNote: Please type in uppercase.");
                   ch1 = keyboard.nextLine().charAt(0);
                   if (ch1 == 'C')                         // If the user typed C
                        System.out.println("Enter the number of hours " +
                                                 "that you used in month.");
                        hours = keyboard.nextInt();
                        if (hours <= 20)               // If the user typed int less than or equal to 20
                             monthlyBill = 13.95;
                             System.out.println("Your original monthly bill is $" + monthlyBill);
                             savings = -4.00;
                             saved = monthlyBill + savings;
                             System.out.println("Your saved $4.00 and the total monthly bill is $" +
                                                      formatter.format(saved));
                        else                              // If the user typed int more than 20
                             monthlyBill = 13.95;
                             total = monthlyBill + (hours - 20);
                             System.out.println("Your original monthly bill is $" + total);
                             savings = -4.00;
                             saved = total + savings;
                             System.out.println("You saved $4.00 and the total monthly bill is $" +
                                                      formatter.format(saved));
                   else if (ch1 == 'N')               // If the user typed N
                        System.out.println("Enter the number of hours " +
                                                 "that you used in month.");
                        hours = keyboard.nextInt();
                        if (hours <= 20)               // If the user typed int less than or equal to20
                             monthlyBill = 13.95;
                             System.out.println("Your monthly bill is $" + monthlyBill);
                        else                              // If the user typed int more than 20
                             monthlyBill = 13.95;
                             total = monthlyBill + (hours - 20);
                             System.out.println("Your monthly bill is $" + formatter.format(total));
              else if (ch == 'C')                         // If the user typed C
                   System.out.println("Enter the number of hours " +
                                            "that you used in mounth.");
                   hours = keyboard.nextInt();
                   if (hours > 0)                         // If the user typed int more than 0
                        monthlyBill = 19.95;
                        System.out.println("Your monthly bill is $" + monthlyBill);
              else                                        // If the user typed a character other than A, B, or C
                   System.out.println("That's not A, B, or C!");
    }          

Maybe you are looking for

  • Reconcillation report for controlling

    My requirement as follows. this is a report for developing reconcillation statement for a company. i created program as per requirement it is not executing becasuse of  COEP table taking much time for executing. any body have reconcillation report wi

  • How can I delete a large group of songs from my iPhone?

    Seems that IOS 6 no longer allows me to select and remove songs from iTunes as it used to. The only way I can do it now is one song at a time on the phone which is insanely tedious for the amount of stuff I add and remove on a regular basis.

  • How can I sync up my clip in Premiere Pro with the After Effects Comp I replace it with? How do I link them?

    I am having some issues seeing a tracked mask work correctly in Premiere Pro. I clicked on my clip in my Premiere pro project and hit "replace with after effects comp". After correctly masking out everything in AE and tracking it to perfection, I cli

  • How I use swf in swf (nested) ?

    Flash is case-sensitive in naming(symbols,form fields,components) ? How I use ScrollPane ? How I use swf in swf (nested) ?

  • GL ACcount Detail Report

    Hi, I have to write a query with GL account Detail report for the Sales Invoices along with Item level details against that invoice. So i used the ra_customer_trx_all table. When i included this in my query, I get the correct number of records, one r