NOT IN doesnt work as expected!!

Hi
I need to count data in a table after comparing the values from another table. Following are the details of the test tables that worked fine and the result was the expected one.
DESC A
Name Null? Type
ID VARCHAR2(10)
DESC B
Name Null? Type
ORGID VARCHAR2(10)
select * from a;
ID
1I
2I
3I
4I
select * from b;
ORGID
1I
2
SELECT COUNT(*) FROM A WHERE ID NOT IN (SELECT ORGID FROM B);
COUNT(*)
3
So far so good. Here is my problem
desc org
Name Null? Type
ORGID VARCHAR2(100)
desc newintlorgs
Name Null? Type
ID VARCHAR2(100)
SELECT DISTINCT ORGID FROM ORG WHERE ORGID LIKE '9258%';
ORGID
9258
92580
92581
select distinct id from newintlorgs where id like '9258%';
ID
9258I
select count(*) from newintlorgs where id not in (select orgid from org);
COUNT(*)
0
It should show atleast 1 record ie 9258I since it is not present in ORG table but present in NEWINTLORGS table but the count shows 0 record.
Any ideas why it is not showing?
thanks in advance

Probably you have NULL values in your ORG table.
From the documentation:
»If any item in the list following a NOT IN operation evaluates to null, then all rows evaluate to FALSE or UNKNOWN, and no rows are returned.«
So you need to add a »where not null« condition:
michaels>  with org as
(select cast('9258' as varchar2(100)) orgid from dual union all
select '92580' orgid from dual union all
select '92581' orgid from dual union all
select null orgid from dual
newintlorgs as
select cast('9258I' as varchar2(100)) id from dual
select count(*) from newintlorgs where id not in (select orgid from org where orgid is not null)
  COUNT(*)
         1Alternativly you can use the NOT EXISTS condition.

Similar Messages

  • Ipod Touch 4th gen, "usb device not recognized", doesnt work on other computers either. Any assistance available? Thanks.

    My ipod isnt recognized by windows! xP still charges though, but doesnt do so on an xbox 360 either. works perfectly fine, but isnt recognized on my windows 7 laptop or another one i tried syncing it on. any help or suggestions? thank you for reading

    - Try another cable
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    Did you do everything here:
    iOS: Device not recognized in iTunes for Windows
    Including
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    and for the computer in queston
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    different USB port?
    Runs this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    - Make an appointment at the Genus Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • INPATH problem: doesnt work as expected?

    Hi everyone,
    i need your help on something i ran into yesterday.
    Consider the following XML that is the content of XMLType field in our novels db:
    <record>
    <leader>01127nam 2200385 a 4500</leader>
    <controlfield tag="001">0000795331</controlfield>
    <controlfield tag="005">20040816135746.0</controlfield>
    <controlfield tag="008">010402s2000 fr f fre </controlfield>
    --- more fields here not revelant to our case ----
    <datafield tag="100" ind1="1" ind2=" ">
    <subfield code="a">Lord, Jeffrey.</subfield>
    </datafield>
    <datafield tag="245" ind1="1" ind2="4">
    <subfield code="a">Les affins d'Oniris /</subfield>
    <subfield code="c">Jeffrey Lord ; adapté de l'américain par Yves Chéraqui.</subfield>
    </datafield>
    --- more fields here not revelant to our case ----
    </record>
    Now when i execute the following query (either from SQL+ or from Java):
    select rowid,r.notice
    from roman r where CONTAINS(notice,' (roch and carrier INPATH(/record/datafield[@tag="245"]/subfield[@code="a"]))')>0
    As you see, the constraint check for a value on a particular path that is a subfield with an attribute code=a that is a child of a datafield with an attribute tag=245.
    So, the previous XML record shouldn't be returned when i execute the query, but it is. It's look like the the INPATH is done also on subfield with attribute code="c" which contains the values "roch and carrier".
    I ve done test changing the query INPATH to something like: /record/datafield[@tag=245]/subfield[@code="Z"]
    Like expected, no rows are returned, because there's no subield with an attribute code="Z".
    So why, my query expands the INPATH constraint to unspecified element?
    Is it just my query that is badly build (im still a newbie with Oracle XML and Text)?
    Any help/advices will be welcome!
    Have a nice day!
    Dave

    Argh!
    Made an error in the post... Thats what happen with cut/paste :(
    In the previous post... The query should be:
    select rowid,r.notice
    from roman r where CONTAINS(notice,' (lord INPATH(/record/datafield[@tag="245"]/subfield[@code="a"]))')>0
    So instead of looking for "roch and carrier", i look for the word "lord".
    The rest is all the same...
    Sorry guys :)
    Dave

  • /SAPAPO/SNPLLC - does not appear to work as expected

    Hi Experts,
    I was wondering if anyone can shed light on how this program works. We need a successfull run of the LLC calc prior to running heuristics on the supply chain. currently the heuristics run gives unpredictable results due to the LLC calc not working.
    This is the situation: -
    - We have a data model where the supply source for products can change dynamically from one production plant to another. In order to faciltate the quick switching of supply, we have defined Transportation Lanes from all the possible supplying production locations to all the possible receiving locations. These are "All Products" lanes.
    - Overlaid on the TLAnes, we have quota arrangements which control from day-to-day which locations do the supplying (we are running SNP with no production horizon, so it plans also the next few days as well as out to 2 years future buckets).
    When we come to run the LLC program above, it always gives the Information message "Low-level codes cannot be determined due to cycles in model "000". Despite only being an Info message, it also causes the background job to fail (seemingly). In any case the LLC is not calculated correctly as all Location/Products have LLC 0 after the run. The cycles also occur in locations in other parts of the business that we have no control over (it is not possible to limit the LLC calc by location selection).
    I have several questions about the way SNPLLC works: -
    1. The cycles that are displayed seem to be purely based on the TLanes - does it take into account Quota Arrangements when determining cycles? The cycles displayed do not seem to be recursive - does it just give up after a certain number of iterations?
    2. When I get the above info message, the detail says that I can set the "Save Low-Level Codes with Cycles" Indicator to force it to save LLC despite cycles - where is this indicator? I have looked in the SNP Global settings (profile) but can't see it. I have also implemented note 1548670 - "SNP LLC not saved for cycles" but it does not seem to have made any difference.
    3. Is there anything that I can do in order to get over this issue without changing all the master data?
    Any help much appreciated.
    Thanks,
    Chris Brookes.

    Hi Ada,
    BADI Code below: -
    method /SAPAPO/IF_EX_PWB_SOS~PWB_USEX_SOS.
    Revision History                                                             *
    Date       : 27/09/2011       Changed By : Mohammed Sajid                    *
    Revision ID: AO01             Helpdesk ID: Hovis ELS ASIN-8KRJ79             *
    Description: Filter the sources of supply so that only those with a valid    *
                 Quota Arrangement are considered by the SNP LLC calculation     *
    AO01 Begin of Insert
      TYPES : BEGIN OF ty_loc,
                LOCID TYPE /SAPAPO/LOCID,
                LOCNO TYPE /SAPAPO/LOCNO,
              END OF ty_loc.
      TYPES : BEGIN OF ty_mat,
                MATID TYPE /SAPAPO/MATID,
                MATNR TYPE /SAPAPO/MATNR,
              END OF ty_mat.
      DATA : lv_logsys          TYPE BAPIGENFIELDS-LOGSYSTEM,
             lv_quota_found     TYPE char01,
             lv_vrsioex         TYPE /SAPAPO/VRSIOEX,
             lv_model           TYPE /SAPAPO/C_MODELID,
             lv_date_from(14)   TYPE c,
             lv_date            TYPE char08,
             lv_no_quota        TYPE BAPI10009GENFIELDS-NO_OF_QUOTAS,
             lt_plngversion     TYPE TABLE OF bapiversrange,
             lt_model_sel       TYPE TABLE OF BAPIMODELRANGE,
             lt_loc_intsel      TYPE TABLE OF BAPILOCINTRANGE,
             lt_prod_intsel     TYPE TABLE OF BAPIPRODUCTINTRANGE,
             lt_quota_itm_lane  TYPE TABLE OF BAPI10009QTAITEMLANE2O,
             lt_quota_itm_erp   TYPE TABLE OF BAPI10009QTAITEMEXTPROC2O,
             lt_val_from        TYPE TABLE OF bapi10009qtavalfrrange,
             lt_val_to          TYPE TABLE OF bapi10009qtavaltorange,
             lt_return          TYPE TABLE OF bapiret2,
             lt_loc             TYPE TABLE OF ty_loc,
             lt_mat             TYPE TABLE OF ty_mat,
             ls_loc             TYPE ty_loc,
             ls_loc1            TYPE ty_loc,
             ls_mat             TYPE ty_mat,
             ls_plngversion     TYPE bapiversrange,
             ls_model_sel       TYPE BAPIMODELRANGE,
             ls_loc_intsel      TYPE BAPILOCINTRANGE,
             ls_prod_intsel     TYPE BAPIPRODUCTINTRANGE,
             ls_quota_itm_lane  TYPE BAPI10009QTAITEMLANE2O,
             ls_quota_itm_erp   TYPE BAPI10009QTAITEMEXTPROC2O,
             ls_val_from        TYPE bapi10009qtavalfrrange,
             ls_val_to          TYPE bapi10009qtavaltorange,
             ls_return          TYPE bapiret2.
    CONSTANTS : lc_i  TYPE char01 value 'I',
                lc_x  TYPE char01 value 'X',
                lc_s  TYPE char01 value 'S',
                lc_eq TYPE char2  value 'EQ',
                lc_le TYPE char2  value 'LE',
                lc_ge TYPE char2  value 'GE',
                lc_time TYPE char6 VALUE '000000'.
    AO01 End of Insert
    AO01 Begin of Insert
    If Badi is called within the determinition of low-level code
    ans Bapi is called for an SNP LLC calculation
      IF iv_low_level_code = lc_x AND iv_plan_usage = lc_s.
    Get location
      IF NOT ct_sources_extend[] IS INITIAL.
        SELECT LOCID LOCNO
          FROM /SAPAPO/LOC
          INTO TABLE lt_loc
           FOR ALL ENTRIES IN ct_sources_extend
         WHERE locid EQ ct_sources_extend-locfr.
         IF sy-subrc IS INITIAL.
           SORT lt_loc BY locid.
         ENDIF.
         SELECT MATID MATNR
          FROM /SAPAPO/MATKEY
          INTO TABLE lt_mat
           FOR ALL ENTRIES IN ct_sources_extend
         WHERE matid EQ ct_sources_extend-matid.
         IF sy-subrc IS INITIAL.
           SORT lt_loc BY locid.
         ENDIF.
    ENDIF.
    Get planning version
        GET PARAMETER ID '/SAPAPO/VRSIOEX' FIELD lv_vrsioex.
        CALL FUNCTION '/SAPAPO/DM_MODEL_GET_BY_VERS'
          EXPORTING
            IV_VRSIOEX        = lv_vrsioex
          IMPORTING
            ev_modelid        = lv_model
          EXCEPTIONS
            version_not_found = 1
            not_qualified     = 2
            OTHERS            = 3.
    Get Model
    Get logical system
        SELECT SINGLE logsys FROM t000
               INTO lv_logsys
               WHERE mandt EQ sy-mandt.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.
    Set Planning Version
        REFRESH : lt_plngversion.
        ls_plngversion-sign   = lc_i.
        ls_plngversion-option = lc_eq.
        ls_plngversion-low    = lv_vrsioex.
        APPEND ls_plngversion TO lt_plngversion.
    Set Model selection
        REFRESH : lt_model_sel[].
        ls_model_sel-sign   = lc_i.
        ls_model_sel-option = lc_eq.
        ls_model_sel-low    = lv_model.
        APPEND ls_model_sel TO lt_model_sel.
    Set dates
        lv_date = sy-datum.
        CONCATENATE lv_date lc_time INTO lv_date_from.
        REFRESH : lt_val_from[].
        ls_val_from-sign   = lc_i.
        ls_val_from-option = lc_le.
        ls_val_from-low    = lv_date_from.
        ls_val_from-high   = lv_date_from.
        APPEND ls_val_from TO lt_val_from.
        REFRESH : lt_val_to[].
        ls_val_to-sign   = lc_i.
        ls_val_to-option = lc_ge.
        ls_val_to-low    = lv_date_from.
        ls_val_to-high   = lv_date_from.
        APPEND ls_val_to TO lt_val_to.
        LOOP AT ct_sources_extend
            INTO st_sources_extend.
          MOVE syst-tabix TO w_tabix.
          CLEAR : lv_quota_found.
          READ TABLE lt_loc INTO ls_loc WITH KEY
              locid = st_sources_extend-locfr.
          READ TABLE lt_loc INTO ls_loc1 WITH KEY
              locid = st_sources_extend-locto.
          READ TABLE lt_mat INTO ls_mat WITH KEY
            matid = st_sources_extend-matid.
          REFRESH : lt_loc_intsel[].
          ls_loc_intsel-sign   = lc_i.
          ls_loc_intsel-option = lc_eq.
          ls_loc_intsel-low    = ls_loc1-locno.    "st_sources_extend-locto.
          APPEND ls_loc_intsel to lt_loc_intsel.
          REFRESH : lt_prod_intsel[].
          ls_prod_intsel-sign   = lc_i.
          ls_prod_intsel-option = lc_eq.
          ls_prod_intsel-low    = ls_mat-matnr.    "st_sources_extend-matid.
          APPEND ls_prod_intsel TO lt_prod_intsel.
    Call BAPI to get quota arrangement
          REFRESH : lt_quota_itm_lane[], lt_quota_itm_erp[].
          CALL FUNCTION 'BAPI_QTASRVAPS_GETLIST2'
            EXPORTING
               LOGICAL_SYSTEM                   =  lv_logsys
               MAX_NUMBER_OF_QUOTA              =  '9999'
             IMPORTING
               NUMBER_OF_QUOTA                  =  lv_no_quota
             TABLES
               MODEL_SELECTION                  =  lt_model_sel
               PLANNING_VERSION_SELECTION       =  lt_plngversion
               LOCATION_INT_SELECTION           =  lt_loc_intsel
               PRODUCT_INT_SELECTION            =  lt_prod_intsel
               VAL_FROM_SELECTION               =  lt_val_from
               VAL_TO_SELECTION                 =  lt_val_to
               QUOTA_ITEM_LANE                  =  lt_quota_itm_lane
               QUOTA_ITEM_EPR                   =  lt_quota_itm_erp
               RETURN                           =  lt_return
    Look for valid quota arrangements
          LOOP AT lt_quota_itm_lane INTO ls_quota_itm_lane.
            IF ls_quota_itm_lane-location_int_from NE ls_loc-locno
               OR ls_quota_itm_lane-quota_arrangement = 0.
              CONTINUE.
            ELSE.
           Quota found exit from loop
              lv_quota_found = lc_x.
              EXIT.
            ENDIF.
          ENDLOOP.
          IF lv_quota_found IS INITIAL.
            LOOP AT lt_quota_itm_erp  INTO ls_quota_itm_erp.
              IF ls_quota_itm_erp-location_int_from NE ls_loc-locno
                 OR ls_quota_itm_erp-quota_arrangement = 0.
                CONTINUE.
              ELSE.
             Quota found exit from loop
                lv_quota_found = lc_x.
                EXIT.
              ENDIF.
            ENDLOOP.
          ENDIF.
    Exclude entry if no valid quota found
          IF lv_quota_found IS INITIAL.
            MOVE c_exclude TO st_sources_extend-sprkz.
            MODIFY ct_sources_extend
                   FROM st_sources_extend
                   INDEX w_tabix.
          ENDIF.
        ENDLOOP.
      Remove source of supply records which can be excluded
          DELETE ct_sources_extend WHERE sprkz = c_exclude.
      ENDIF.
    AO01 End of Insert
    endmethod.

  • Call Executable​, absolute path doesnt work as expected

    Hi all,
    i have a problem with the step call executable.
    I configure the step (call a .exe or bat file) with absolute path.
    As long as Teststand runs with the seq-file loaded all works fine.
    The problem shows up when i close the seq-file and reload it later.
    Then the configuration seems to be ok (still the absolute path).
    But when i execute the seq-file it runs the .exe or .bat file as it only has
    the relative path in the configuration.
    I know that, because it wanna load some files from the same folder
    and it doesn't find them after reloading the seq-file.
    Sincerely Stefan Bölsterli

    I use Teststand 3.0

  • AlphaComposite doesnt work as expected

    From the tutorial [http://download.oracle.com/javase/tutorial/2d/advanced/compositing.html]
    Source-in (SRC_IN): If pixels in the source and the destination overlap, only the source pixels in the overlapping area are rendered.
    Output from the code below is different from the description.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.geom.*;
    public class Main
    {   public static void main(String[] args)
        {   SwingUtilities.invokeLater(new Runnable()
            {   public void run()
                {   createAndShowGUI();
        private static void createAndShowGUI()
        {   JFrame f = new JFrame("My GUI");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            CompositionGUI GUI = new CompositionGUI();
            f.setContentPane(GUI);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setSize(1200, 300);
            f.setVisible(true);
    class CompositionGUI extends JPanel
    {   public CompositionGUI(){}
        private int getRule(int rule)
        {   switch( rule )
            {   case 0: return AlphaComposite.CLEAR;
                case 1: return AlphaComposite.DST;
                case 2: return AlphaComposite.DST_ATOP;
                case 3: return AlphaComposite.DST_IN;
                case 4: return AlphaComposite.DST_OUT;
                case 5: return AlphaComposite.DST_OVER;
                case 6: return AlphaComposite.SRC;
                case 7: return AlphaComposite.SRC_ATOP;
                case 8: return AlphaComposite.SRC_IN;
                case 9: return AlphaComposite.SRC_OUT;
                case 10: return AlphaComposite.SRC_OVER;
                case 11: return AlphaComposite.XOR;
                default: return AlphaComposite.SRC;
        private String getRuleName(int i)
        {   switch(i)
            {   case 0: return "CLEAR";
                case 1: return "DST";
                case 2: return "DST_ATOP";
                case 3: return "DST_IN";
                case 4: return "DST_OUT";
                case 5: return "DST_OVER";
                case 6: return "SRC";
                case 7: return "SRC_ATOP";
                case 8: return "SRC_IN";
                case 9: return "SRC_OUT";
                case 10: return "SRC_OVER";
                case 11: return "XOR";
                default: return "Unknow";
        public void paintComponent(Graphics g)
        {   super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            BufferedImage buffImg = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB);
            Graphics2D gbi = buffImg.createGraphics();
            g2.setColor(Color.ORANGE);
            Composite def = gbi.getComposite();
            for(int i=0;i<3;i++)
                for(int j=0;j<12;j++)
                {   gbi.setColor(new Color(0.0f, 0.0f, 1.0f, 1.0f));
                    gbi.setComposite(def);
                    gbi.fill(new Rectangle2D.Double(0, 0, 50, 50));
                    gbi.setColor(new Color(1.0f, 0.0f, 0.0f, 1.0f));
                    gbi.setComposite(AlphaComposite.getInstance(getRule(j),i*0.5f));
                    gbi.fill(new Ellipse2D.Double(25, 25, 50, 50));
                    g2.drawImage(buffImg, null, j*100, i*100);
                    g2.drawString(getRuleName(j), 10+j*100, i*100+20);
    }

    This might work:
    @Override public void paintComponent(Graphics g) {
      super.paintComponent(g);
      Graphics2D g2 = (Graphics2D)g;
      for(int i=0; i<3; i++) {
        for(int j=0; j<12; j++) {
          BufferedImage buffImg = new BufferedImage(100,100,BufferedImage.TYPE_INT_ARGB);
          Graphics2D gbi = buffImg.createGraphics();
          Composite def = gbi.getComposite();
          gbi.setColor(new Color(0.0f, 0.0f, 1.0f, 1.0f));
          gbi.setComposite(def);
          gbi.fill(new Rectangle2D.Double(0, 0, 50, 50));
          gbi.setColor(new Color(1.0f, 0.0f, 0.0f, 1.0f));
          gbi.setComposite(AlphaComposite.getInstance(getRule(j),i*0.5f));
          gbi.fill(new Ellipse2D.Double(25, 25, 50, 50));
          gbi.dispose();
          g2.drawImage(buffImg, null, j*100, i*100);
          g2.setColor(Color.ORANGE);
          g2.drawString(getRuleName(j), 10+j*100, i*100+20);
    }

  • HT201436 Calling doesnt work as expecting

    Can someone help me ? When i am calling someone i cant hear voice clear there !!

    Check "Call and Connection Issues" here:
    http://support.apple.com/kb/TS2802

  • Images in Multicolumn Listbox doesn't work as expected

    In the attached example, the symbols are getting displayed in the correct order but missing the symbol for the first row. I can manually select the symbol but by default only the 2nd symbol from the provided array list appear.
    Any idea what's the issue?
    How to display correct symbol?
    Thanks in advance.
    Cross-post from LAVA: http://lavag.org/topic/15788-images-in-multicolumn-listbox-doesnt-work-as-expected/page__pid__95584#...
    Solved!
    Go to Solution.
    Attachments:
    Images & Multicolumn ListBox.vi ‏10 KB

    Hello, Vidula
    It seems that index 0 is reserved for the empty symbol, no matter what custom symbol you provided. Adding one image in front before setting symbols array and incrementing ItemSyms indexes solves this problem. However, I can't find any information about this in documentation, which would be nice
    Attachments:
    Images & Multicolumn ListBox.vi ‏12 KB

  • LinkedList toArray() doesnt work well

    toArray() doesnt work as expected
    any suggestion?
    thx~
    >
    Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.Integer;
         at util.ArrayUtil.main(ArrayUtil.java:22)
    {quote}
    package util;
    import java.util.*;
    public class ArrayUtil
    {   public static <E> E[] merge(E[]... e)
        {     LinkedList<E> ll = new LinkedList();
         for(E[] e_temp : e)
         {   if(e_temp == null) continue;
             for(E e_temp2 : e_temp) if(e_temp2 != null) ll.add(e_temp2);
         return (E[])ll.toArray();
        public static void main(String[] args)
        {     Integer[] a1 = null;
         Integer[] a2 = null;
         Integer[] a3 = {1,2,3};
         Integer[] a4 = {4,5,6};
         Integer[] a = (Integer[])merge(a1, a2);                //ClassCastException is triggered
         System.out.println(a.length);
         for(int i=0; i<a.length; i++)
         System.out.println(a);

    could you pls show me a sample?
    public static <E> E[] merge(E[]... e)
        {     LinkedList<E> ll = new LinkedList<E>();
         for(E[] e_temp : e)
         {   if(e_temp == null) continue;
             for(E e_temp2 : e_temp) if(e_temp2 != null) ll.add(e_temp2);
         E[] out = (E[])Array.newInstance(e.getClass(), ll.size());
         return ll.toArray(out);
        }Exception in thread "main" java.lang.ClassCastException: [[[Ljava.lang.Integer; cannot be cast to [Ljava.lang.Integer;
         at util.ArrayUtil.main(ArrayUtil.java:23)
    {quote}

  • Keyboard not working as expected

    I woke up this morning and suddenly found a few problems with my keyboard:
    The caps lock light is reversed so that the caps is off when the light is on and vice versa
    The placement of some of the symbols are moved around. The @ is to the right of the P button and Shift-2 produces a ". Shift-9 is ), shift-8 is ( and many other switched like this.
    Resetting PRAM or the computer doesnt fix this

    Hello there, morris152.
    The following Knowlede Base article provides some great information for troubleshooting your issue with the keyboard:
    One or more keys on the keyboard do not respond
    http://support.apple.com/kb/ts1381
    Particularly:
    Some keys don't work as expected
    From the Apple menu, choose System Preferences.
    From the View menu, choose Speech.
    Click the Text to Speech tab.
    If "Speak selected text when the key is pressed" is enabled, the key or key combination set to speak text cannot be used for other purposes or used to type text--click Set Key and change it to a less-commonly used key combination (try to use modifier keys such as Shift, Command, Option, and Control). Or, disable the "Speak selected text when the key is pressed" option.
    Click the Accessibilty or Universal Access pane in System Preferences, then click the Keyboard tab.
    Make sure that Slow Keys is turned off. With Slow Keys on, you need to press a key for a longer period of time for it to be recognized.
    In the Accessibilty or Universal Access pane, click the Mouse tab, and make sure Mouse Keys is turned off. With Mouse Keys enabled, you cannot use the Numeric Keypad to enter numbers--instead the keypad moves the pointer (cursor). (There is an option to enable Mouse Keys with five presses of the Option key; you may want to turn that option off to avoid accidentally enabling it.) If Mouse Keys is enabled and you are using a keyboard with no numeric keypad or Num Lock function, see Unable to type while Mouse Keys is enabled in Mac OS X.
    If the function keys on the top row of the keyboard are not working as expected, see Mac OS X: How to change the behavior of function keys.
    If the issue persists, use Keyboard Viewer to help isolate the issue:
    Click the Language & Text pane (Mac OS X v10.6) or International pane (Mac OS X v10.5.8 or earlier) in System Preferences.
    Click the Input Sources tab (or Input Menu tab in Mac OS X 10.5.8 or earlier).
    Click the Keyboard & Character Viewer "On" checkbox to select it (click the Keyboard Viewer "On" checkbox in Mac OS X 10.5.8 or earlier).
    From the Input (flag) menu, choose Show Keyboard Viewer.
    If the keyboard is connected and detected by OS X, the keys you type will highlight in the Keyboard Viewer window. Open TextEdit (or any text application), and try to type something using the keys that were previously not responding to see if they highlight in Keyboard Viewer.
    Start from the Mac OS X Install Disc, choose Terminal from the Utilities menu and test the keys which were previously not working.  If the keys work while started from the Install disc, then the keyboard itself is working correctly.  Use How to troubleshoot a software issue to isolate the software issue that may be causing the keys to not respond.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • My macbook seems to be going crazy. At certain points (and for hours) I get the oh snap page on chrome, safari doesnt work, macbook wont let me create any files or for example upload music to itunes. I restored my mac so im sure its not a malware problem.

    My macbook seems to be going crazy. At certain points (and for hours) I get the oh snap page on chrome, safari doesnt work, macbook wont let me create any files or for example upload music to itunes. I restored my mac so im sure its not a malware problem. The only thing that solves it is switching off and on , but sometimes I have to do that for 6-7 times before its ok or wait for a few hours. Some help please

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • I synced my phone lastnight and now it says my phone cant connect to computer the Apple Mobile Device USB Driver doesnt work?!? i deleted itunes and reloaded still not working.... Does anyone know how to fix??? i just want to upgrade to IOS6

    Does anyone know why my Iphone will not connect to my computer all of a sudden? I backed it up lastnight. Now it wont even register with my computer.... It says Apple Mobile Device USB driver doesnt work all of a sudden???? i tryed deleting and reloading and nothing is working!!! someone please help =)

    Have you done:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    What results do you get when you run this:
    iTunes for Windows: Device Sync Tests
    Do both the Home button and Power button work OK normally?

  • Silverlight 5 binding on a property with logic in its setter does not work as expected when debug is attached

    My problem is pretty easy to reproduce.
    I created a project from scratch with a view model.
    As you can see in the setter of "Age" property I have a simple logic.
        public class MainViewModel : INotifyPropertyChanged
                public event PropertyChangedEventHandler PropertyChanged;
                private int age;
                public int Age
                    get
                        return age;
                    set
                        /*Age has to be over 18* - a simple condition in the setter*/
                        age = value;
                        if(age <= 18)
                            age = 18;
                        OnPropertyChanged("Age");
                public MainViewModel(int age)
                    this.Age = age;
                private void OnPropertyChanged(string propertyName)
                    if (this.PropertyChanged != null)
                        PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    In the MainPage.xaml 
         <Grid x:Name="LayoutRoot" Background="White">
                <TextBox 
                    Text="{Binding Path=Age, Mode=TwoWay}" 
                    HorizontalAlignment="Left"
                    Width="100"
                    Height="25"/>
                <TextBlock
                    Text="{Binding Path=Age, Mode=OneWay}"
                    HorizontalAlignment="Right"
                    Width="100"
                    Height="25"/>
            </Grid>
    And MainPage.xaml.cs I simply instantiate the view model and set it as a DataContext.
        public partial class MainPage : UserControl
            private MainViewModel mvm;
            public MainPage()
                InitializeComponent();
                mvm = new MainViewModel(20);
                this.DataContext = mvm;
    I expect that this code will limit set the Age to 18 if the value entered in the TextBox is lower than 18.
    Scenario: Insert into TextBox the value "5" and press tab (for the binding the take effect, TextBox needs to lose the focus)
    Case 1: Debugger is attached =>
    TextBox value will be "5" and TextBlock value will be "18" as expected. - WRONG
    Case 2: Debugger is NOT attached => 
    TextBox value will be "18" and TextBlock value will be "18" - CORRECT
    It seems that when debugger is attached the binding does not work as expected on the object that triggered the update of the property value. This happens only if the property to which we are binding has some logic into the setter or getter.
    Has something changed in SL5 and logic in setters is not allowed anymore?
    Configuration:
    VisualStudio 2010 SP1
    SL 5 Tools 5.1.30214.0
    SL5 sdk 5.0.61118.0
    IE 10
    Thanks!                                       

    Inputting the value and changing it straight away is relatively rare.
    Very few people are now using Silverlight because it's kind of deprecated...
    This is why nobody has reported this.
    I certainly never noticed this problem and I have a number of live Silverlight systems out there.
    Some of which are huge.
    If you want a "fix":
    private void OnPropertyChanged(string propertyName)
    if (this.PropertyChanged != null)
    //PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    Storyboard sb = new Storyboard();
    sb.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 100));
    sb.Completed += delegate
    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    sb.Begin();
    The fact this works is interesting because (I think ) it means the textbox can't be updated at the point the propertychanged is raised.
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

  • Read Key and Write Key not working as expected with paths on RT

    The configuration file VIs Read Key (Path) and Write Key (Path) don't seem to work as expected (at least not as I was expecting them to) on an RT target.
    When working on my WinXP PC with these two VIs, paths are translated to what looks like is supposed to be a device-independent format before being written to disk. The path C:\dir\file.txt becomes /C/dir/file.txt when writing and vice versa when reading. On my RT target, however, that same path is written to disk as C:\dir\file.txt, unchanged from the native format.
    The translaton of a native path to and from the device-independent format appears to be the responsibility of Specific Path to Common Path and Common Path to Specific Path. These both use the App.TargetOS property to determine the operating system. In the case structure for these two VIs, however, there is no case for PharLap or RTX. (My RT hardware is runnng PharLap; I don't know enough about RTX to comment.) This means that the results of String to Path or Path to String are used without translating between the device-independent format to the native path format.
    This isn't a problem if you create a configuration file on one machine and use it on that same machine. I noticed this only when tranferring a config file from my PC to the RT target, where the target would not open the file paths it loaded from the configuration file.
    This occurs on 7.1.1 and 8.0.  I don't have 8.20 to see if happens there, too.

    In LV 8.2, this was fixed.
    The problem is App.TargetOS returns "Pharlap" on RT systems, and "Pharlap" is handled by the default case ("invalid OS target") in LV 8.0.  In LV 8.2 the default case is "Windows 95/NT", however.  The reason you could write and read an .ini file on RT in LV 8.0 and earlier is because these two VIs (listed below) were both running the default case of "invalid OS target".
    vi.lib\Utility\config.llb\Common Path to Specific Path.vi
    vi.lib\Utility\config.llb\Specific Path to Common Path.vi
    As you saw, this fails when you perform one operation in Pharlap but the other in Windows.  You can fix this by modifying the two VIs listed above.  Just go to the case structure and make "Windows 95/NT" the default case.

  • Windows - Use system proxy settings not working as expected

    Hi everyone,
    I have a bit of an issue that I could use some help with. We currently have remote users that utilize an SSTP VPN connection to access our internal network. Once connected, those users are required to use an internal proxy server to connect to the Internet. The proxy server is Microsoft's TMG and utilized domain authentication.
    On our remote Windows clients we have their Internet Options configured to utilize a proxy as follows:
    Internet Options -> Connections -> LAN Settings -> No proxy configured at all
    Internet Options -> Connections -> Highlight SSTP Connection -> Settings
    Use a proxy server for this connection -> IP/Port of Proxy Server
    Firefox and Chrome are both configured to use system proxy settings.
    Here is my process to demonstrate the issues:
    Remote client workstation is rebooted.
    With the above configuration just after a reboot, a remote user that is not connected to the VPN can browse the Internet with Internet Explorer, Chrome, and Firefox. None of the browsers prompt for credentials.
    A remote VPN connection is then established.
    FF is opened and HTTP connections utilize the proxy server. However, HTTPS connections do not use the proxy server, but instead attempt to use the default gateway. FF does not prompt for credentials. FF is closed.
    Chrome is opened and can access both HTTP and HTTPS sites without issue. No credential prompt. Chrome is closed.
    IE is opened and can access both HTTP and HTTPS sites without issue. No credential prompt. IE is closed.
    Here's where it gets weirder...
    FF is then reopened. The VPN connection is still up. FF will prompt for credentials. Domain credentials are supplied and FF can now utilize the proxy for both HTTP and HTTPS connections. FF is closed.
    VPN is disconnected.
    FF is opened and cannot access the Internet as it is still trying to use the proxy server. FF is closed.
    IE is opened and can access the Internet. IE is closed.
    Chrome is opened and can access the Internet. Chrome is closed.
    FF is reopened and can now access the Internet. FF is closed.
    In summary, in the above scenario FF acts in an unexpected manner with regards to proxy usage when "use system proxy settings" is applied. However, Firefox begins acting as expected after IE is opened and closed. For example, connect to VPN, open IE, close IE, open FF, and everything works accordingly. Disconnect the VPN, open IE, close IE, open FF and everything works as expected.
    Any insight you can provide would be appreciated as it is affecting our FF users and the sooner we can achieve resolution the better. As a note, we've also worked through this issue with WPAD and proxy auto-detect. I've intentionally removed these from the equation to simplify troubleshooting.
    Thanks

    Quick update. Added to a previously filed bug. Looks like it's assigned now so maybe we'll see a fix for this soon.
    https://bugzilla.mozilla.org/show_bug.cgi?id=563169

Maybe you are looking for

  • Acrobat 7 Pro - How to disable prompt for filename?

    I have a Windows XP Pro SP3 system with Office 2003 Pro and Visio 2002 Pro installed. I have an Access database that creates Visio 2002 files within the application. Within the Access database, i have the ability to print a single or multiple visio f

  • Sales order error

    Hi All, During creation of sales order I am getting an error as "Version 0 is not definedfor fiscal year 2007". How to eradicate this error? Thanks & regards, Neelam

  • XSLT support in OSB10gR3

    Hi, I am using OSB10.3 and would like to know the support of XSLT Version 2.0 on it. Does it support XSLT 2.0 or not and which XSLT engine it uses? Thanks in advance Ananya Edited by: Ananya Bhushan on Apr 27, 2010 9:35 PM

  • Jquery Ajax calling code-behind Error - 405 (Method Not Allowed)

    Hi, I am working on a web form with Jquery, Ajax to call a code-behind (webservice), but I get the following error: 405 (Method Not Allowed). See code... ../Ops/new-item.aspx <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWir

  • CS6 Design and Web Premium trial has stopped downloading at 4,558 MB

    My CS6 Design and Web Premium trial has stopped downloading at 4,558 MB. It says it will take around 24 hours to download, but nothing is happening. Has anyone else had a problem with this? How do I get it going again?