Strange behavior with Scan function

Hi, I see some weird behaviors with the scan function.  Here's a code (for Interactive execution) window which illustrates what I'm struggling with:

#include 
static double value;//    1234567890123456static char buffer[20] = "-  24.612 g    ?";
static int scanneditems;
static unsigned char sign, stable;
static char unit[6];

scanneditems = Scan(buffer, "%s>%c[u]%f%c[d]%s[w5y]%c[u]", &sign, &value, unit, &stable);

The buffer I'm scanning has five parts.  The first character is a sign, the next 8 characters is a floating point number, then there is a space that just throw, then five characters is a string that describes the unit, and the last character is a question mark if the reading is unstable or a space otherwise.  The problem is with the last character.  When I run the above code, the value of the variable 'stable' is 32 (space), when I expect a 63 (question mark).  The other points seem to parse correctly, including the double value and the 'unit' char array that contains [g] [space] [space] [space] [space], which is exactly what I expect that it contains.

It seems I'm missing something obvious, probably something to do with the way that the scan function manages the spaces, but I just can't understand what it is.  Thank you.

I'm not sure about how Scan treats spaces, but if you check NumFmtdBytes () after the scan you see 12, which means that it has scanned only the 'g' (fill the rest of 'unit' with spaces according to the modifier there) and read the character immediately following the stability.

This line correctly reads the entire string and returns bytes 16 analyses by the function, which is what is expected.

scanneditems = Scan (buffer, "%s > %c [u] %f %c [d] %s [-w5t] [u] %c", & sign, & value, unit, & stable);

Tags: NI Software

Similar Questions

  • Strange behavior with the function «Help in command line»

    So I do a little playing with the opening of the files compiled help (.chm) with the command-line help feature, and I saw a strange behavior when trying to index multi-level access keywords. According to the documentation, if you set the 'Key' operation, you can enter a value for ' string to search for "to access this section. The more precise help that:

    If this string contains a keyword index, the string must match the key of the index as it appears in the help index file. To access a topic with a multilevel index keyword, enter the keyword of the top-level index, a colon and the keyword of the second level index. Do not separate the elements with spaces. For example, a chain of error codes: GPIB jumps about a subject with a keyword of top-level index of error codes and a second level keyword index of GPIB.

    All right, seems simple enough. Except that when I tried, I couldn't work, even with the example provided. I tried the following simple test:

    Opens the help file, but it opens to this page, not to the page ' error codes: GPIB "non-descript. I saw this in 8.2 and 8.6. Anyone have any success with access to a multi-level keyword?

    Note - side

    Curiously, the Index for the help lvconcepts.chm file looks like this:

    In other words, the input index text is just "GPIB", but the text that appears in the keyword field is "codes error, GPIB. I'm curious to know how this was accomplished. I decompiled the lvconcepts.chm file and watched the .hhk file, and it is not immediately obvious to me. (By the way, if you try to use "error codes, GPIB" it does not either).

    Hello

    Please contact National Instruments!
    It is a very strange behavior.  I tested out and seen the exact
    same results you are experiencing.  This was reported to R & D (AUTO ID # 130246) for further investigations.
    From what I can tell the a possible workaround solution that we have documented
    in the post of root Canal.  I can't continue to look into this in order
    to see if there is no other workaround solution or a reason why it is
    run in this way.  Thanks much for the feedback!  If
    you have any other questions on this subject please post them here.
    Have a great day!

  • strange behavior with the function extract on CC

    I have a PSD with a specific font, size, etc. When I look at the web in CC and go to the tab "extract" so that all css appears for items, the font size is completely different. There is also a warning of 'approximation due to font substitution'. Why you would say that. I have all installed fonts.

    zimnowski this should now be fixed. Please let me know if you see other problems!

  • strange behavior with script times

    Hi all

    I have strange behavior with one of my scripts, and I can't understand where is the problem.

    Before you post the code, here's the principle.

    My form has two fields of time: "Time of Injection" and "Post injection time.

    The script runs when the output of "injection time" event and look if the injection time is before time "post injection.

    Here is my code:

    //get the value of the field "Injection time"
    var injection = this.formattedValue;
    
    //create an new Date object
    var injectionTime = new Date();
    
    //split the string to get the HH MM and SS values of the formattedValue (HH:MM:SS)
    var injectionTimeHoursString = injection.substr(0,2);
    var injectionTimeMinutesString = injection.substr(3,2);
    var injectionTimeSecondsString = injection.substr(6,2);
    
    //parse the strings into integer
    var injectionTimeHoursInt = parseInt(injectionTimeHoursString);
    var injectionTimeMinutesInt = parseInt(injectionTimeMinutesString);
    var injectionTimeSecondsInt = parseInt(injectionTimeSecondsString);
    
    //set the integer values into my Date object
    injectionTime.setHours(injectionTimeHoursInt, injectionTimeMinutesInt, injectionTimeSecondsInt,0);
    
    
    //do the same for the other time field "Post injection time"
    var post = post_injection.post_time.formattedValue;
    var postTime = new Date();
    var postTimeHoursString = post.substr(0,2);
    var postTimeMinutesString = post.substr(3,2);
    var postTimeSecondsString = post.substr(6,2);
    var postTimeHoursInt = parseInt(postTimeHoursString);
    var postTimeMinutesInt = parseInt(postTimeMinutesString);
    var postTimeSecondsInt = parseInt(postTimeSecondsString);
    postTime.setHours(postTimeHoursInt, postTimeMinutesInt, postTimeSecondsInt,0);
    
    
    //calculate the difference between both
    var diff = postTime.getTime() - injectionTime.getTime();
    
    //if the difference gives a negative result, display a message, empty the fields and set focus
    if(diff<0) {
         xfa.host.messageBox("The time of injection should be sooner than the time of post-injection activity measure.\n\nPlease re-enter correct times.","Incompatibility of times");
         this.rawValue = "";
         post_injection.post_time.rawValue = "";
         xfa.host.setFocus(post_injection.post_time);
    }
    

    The code seems to run pretty well... except with certain values.

    If postTime is 12:00

    and injetion is 12:04

    I get the error message and everything, so it's OK

    BUT

    When postTime is 12:00

    and injectionTime is 12:08

    No message! as if the difference was not negative! (the difference is zero...)

    When I display the time in a messagebox, 12:04 12:04:00 GMT blah blah... gives but 12:08 gives 12:00:00 GMT etc...

    same problem with 12:09, but not 12:10 for example...

    Any thoughts?

    Thank you.

    Thank you, but since I'm used to javascript, I'll stick to it.

    I understand the problem. It's a javascript with the ParseInt method bug!

    Check here: http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256C85006A6604

    parseInt("08") = 0.

    How to lose 2 hours for a stupid bug...

  • Strange behavior with postGlobalEvent and eventOccurred()...

    Hello world

    I have a browser plugin for my application that will do two things:

    Firstly, when the BlackBerry browser is forwarded to a Web page with a particular MIME type, the browser plugin will say my application to go to the foreground. It works without any problem.

    Secondly, the browser plugin will display a global event at my request. My request, making use of eventOccurred(), will look for this event and the EC type-approval, it will execute an authorize() method that I have. This also works. However, I notice some strange behavior:

    The first time my application launches the BlackBerry browser and goes to the page specified (with a custom MIME type), everything works fine. If I had while my application to launch the browser and do it AGAIN, my authorize() method is running TWICE. If I open the browser of my application for the third time, so my authorize() method is started THREE times. See the model?

    .. .This is all this without leaving my application. If I had to leave and then start my application again, the 'sequence' prior would begin again. Thus, it seems that whenever x times that I repeat this process, the eventOccurred() method will receive x events.

    Here are a few snippets:

    public class Events {
        final public static int EVENT_AUTHORIZE = 1;
        final public static int EVENT_OTHER = 2;
    }
    
    manager.postGlobalEvent(pid, 0xCAFEBABE, 1, 0, null, null);
    
    public void eventOccurred(long guid, int event_type, int arg2, Object arg3,
                Object arg4) {
            if (guid == 0xCAFEBABE) {
                switch (event_type) {
                case Events.EVENT_AUTHORIZE:
                    authorize();
                    System.out.println("EVENT EXECUTION");
                    break;
                case Events.EVENT_OTHER:
                    break;
                }
            }
    
        }
    

    Can we see what is happening here? I've been "racking my brain" on this one for a while now...

    Thank you!

    "Thus, this can work any time the class is instantiated." The class is instantiated just before I open my browser".

    Application.getApplication().addGlobalEventListener(this);
    

    If you call the above (by instantiating your class) every time that you open the browser, applications to register this event listener again and again.

    If you're going to do it this way, make sure removeGlobalListener you when your application is done processing.

    "Can I make addGlobalListener when my application starts even if this class does not implement GlobalEventListener?"

    You can always have your UiApplication implement GlobalEventListener or just instantiate a new object that implements it in the constructor of your UiApplication.

  • Strange behavior with mkdir ASMCMD

    First there is option no. - p with the mkdir command, as in Linux. To create multiple directories/subdirectories so I tried the following.

    asmcmd > mkdir arch/racdb1 + arch/racdb2 + racdb1/arch/archivelog + arch/racdb2/archivelog

    1. This creates the first three folders. But gives error on the last.

    Inline image 1

    Someone said do not use + sign. So tried this,

    2. tried still nothing does not.

    Inline image 1

    Once again creates first 3 folder but not the fourth. On the other hand, if I just try to create 3 directories/subdirectories in any order it works. Of course I have it in two separate commands, but I wondered why this strange behavior.

    But it worked for me in 11.2.0.3:

    ASMCMD > mkdir + DATA / has DATA + DATA/C / A / B + DATA/C/D

    ASMCMD > cd DATA

    ASMCMD > ls

    A /

    C /.

    ORCL.

    ORCL_P /.

    PEPSI.

    SERVICETEST.

    TEST /.

    vmrac-cluster.

    ASMCMD > cd A

    ASMCMD > ls

    B /

    ASMCMD > cd...

    ASMCMD > cd C

    ASMCMD > ls

    D /.

  • Strange behavior with V$ PDB and CDB_SEGMENTS views of Oracle 12 c

    Hello

    I am trying to run a query between the CDB_SEGMENTS and the views V$ PDB on the container ROOT, but I have a strange behavior:

    SQL*Plus: Release 12.1.0.1.0 Production on Fri Sep 6 12:33:25 2013
    
    Copyright (c) 1982, 2013, Oracle. All rights reserved.
    
    
    Connected to:
    Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
    
    SYS@orcl12c 06.09.2013> show con_id
    
    CON_ID
    ------------------------------
    1
    SYS@orcl12c 06.09.2013> show con_name
    
    CON_NAME
    ------------------------------
    CDB$ROOT
    SYS@orcl12c 06.09.2013> SELECT B.NAME
     2 , A.CON_ID
     3 , A.TABLESPACE_NAME
     4 FROM CDB_SEGMENTS A
     5 INNER JOIN V$PDBS B
     6 ON B.CON_ID=A.CON_ID;
    
    no rows selected
    
    SYS@orcl12c 06.09.2013 12:34:17> SELECT B.NAME
     2 , A.CON_ID
     3 , A.TABLESPACE_NAME
     4 FROM CDB_TABLESPACES A
     5 INNER JOIN V$PDBS B
     6 ON B.CON_ID=A.CON_ID;
    
    NAME CON_ID TABLESPACE_NAME
    ------------------------------ ---------- ------------------------------
    PDB$SEED 2 SYSTEM
    PDB$SEED 2 SYSAUX
    PDB$SEED 2 TEMP
    PDBORCL 3 SYSTEM
    PDBORCL 3 SYSAUX
    PDBORCL 3 TEMP
    PDBORCL 3 USERS
    PDBORCL 3 EXAMPLE
    ...
    
    23 rows selected.
    
    SYS@orcl12c 06.09.2013> SELECT *
     2 FROM TABLE(DBMS_XPLAN.DISPLAY_CURSOR('asa03y45g99zb'));
    
    PLAN_TABLE_OUTPUT
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    
    SQL_ID asa03y45g99zb, child number 0
    -------------------------------------
    SELECT B.NAME , A.CON_ID , A.TABLESPACE_NAME FROM
    CDB_SEGMENTS A INNER JOIN V$PDBS B ON B.CON_ID=A.CON_ID
    
    Plan hash value: 3590150304
    
    -------------------------------------------------------------------------------------------------------------------------------------------
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Pstart| Pstop | TQ |IN-OUT| PQ Distrib |
    -------------------------------------------------------------------------------------------------------------------------------------------
    | 0 | SELECT STATEMENT | | | | 1 (100)| | | | | |
    | 1 | NESTED LOOPS | | 333 | 14985 | 0 (0)| | | | | |
    |* 2 | FIXED TABLE FULL | X$CON | 2 | 30 | 0 (0)| | | | | |
    | 3 | PX COORDINATOR | | | | | | | | | |
    | 4 | PX SEND QC (RANDOM) | :TQ10000 | 167 | 5010 | 0 (0)| | | Q1,00 | P->S | QC (RAND) |
    | 5 | PX PARTITION LIST AND | | 167 | 5010 | 0 (0)|KEY(AP)|KEY(AP)| Q1,00 | PCWC | |
    |* 6 | FIXED TABLE FIXED INDEX| X$CDBVW$e7cdf8a6 (ind:11) | 167 | 5010 | 0 (0)| | | Q1,00 | PCWP | |
    -------------------------------------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
     2 - filter(("CON_ID">1 AND "INST_ID"=USERENV('INSTANCE')))
     6 - filter("CON_ID"="CON_ID")
    
    
    25 rows selected.
    
    SYS@orcl12c 06.09.2013> select con_id,count(*) from cdb_segments group by con_id;
    
     CON_ID COUNT(*)
    ---------- ----------
     1 5795
     4 4397
     3 3923
     2 3401
    
    4 rows selected.
    

    Basically, I would like to display the container_name of segments within all PDB files, but the join between CDB_SEGMENTS and views of V$ PDB does not work (lines 20-25) pending the join between CDB_TABLESPACES and V$ PDB works very well (lines 29-34). I've posted the execution plan (lines 50-82).

    You have ideas about this behavior?

    Thank you in advance,

    Arnaud.

    Hello

    Not 100% sure that this is a bug or just something about the way containers works now - however this select seems to work OK:

    SELECT B.NAME, A.CON_ID, A.TABLESPACE_NAME

    OF CDB_SEGMENTS, V$ PDB B

    where to_char (B.CON_ID) = to_char (A.CON_ID)

    See if it works for you too?

    See you soon,.

    Harry

  • Strange behavior with the PSD in Photoshop

    I am currently working with a two-page ID CS5.5 document. This is a CMYK document with CMYK images and grayscale.

    Strange behavior is the following: I have a gray levels (tiff) image that is repeated on the page 1 and page 2. This image looks completely different from page 1 to page 2. I have triple checked everything (opactiy, effects, etc.) and then I started to remove items from page 2 one by one.

    As I deleted a psd file all of a sudden all the images in grayscale on page 2 changed his appearance to match page 1. The PSD in question is also in CMYK with a transparent background. What the frack happens?

    I'm more concerned to know if it makes a difference when it goes to print, or if it's just weird screen in InDesign.

    Anyone who has heard of this or know why this happens - would like to hear from you.

    Thank you!

    I think it's simply because of full transparency on the page. Should not affect the production of gray images... but check in Acrobat.

    Mike

  • Strange behavior with the paths of the image

    All, morning

    I have a strange behavior going on with my image paths and I was wondering if someone might be able to identify what they think happens?

    On the relative paths of my model (.. / Images/example.jpg) work very well.

    However, on the pages of the child the same relative paths do not display images and so I had to remove the '... /' to get to work (ending up with Images/example.jpg).

    This is obviously not desirable that I'm going to manually tweak the child pages where the content of the combo box was copied directly from the model that works very well.

    Any ideas what might be up?

    Thanks in advance

    You have not yet entered the main directive of models, which is that only changes to the unchangeable in the model regions will be applied to the child pages.  If this were not true, then we could never put unique content on a child page!

    So - the diagram is as follows:

    1 create a template and save it.

    2. the model of a page child spawn.  The child page will be a 'identical' model copy.

    3. Add a unique content to the page of the child.  The child page is now more a copy of 'identical' of the model.

    4 change something in the part NOT MODIFIABLE from the model and save it - all child pages receive the change.

    5 change something in the EDITABLE model part and save it - no child pages do not receive the change.

    6 spawn a NEW page of the model, and it's still a copy of 'identical' AGAIN CHANGED model.

    See how it works?

  • strange behavior with access Internet and e-mail through D6300 AC1600

    NOTE: When creating this post 'Model' box doesn't let me choose my modem model, it was not an option so I picked one at random! My current modem is the AC1600.

    I hope someone can help with this problem.

    Modem works fine, Internet access is very good.

    My my email on new servers migrated hosting service yesterday now I have strange problems with access to electronic mail.

    I can access e-mail very well on my phone via 4G.

    Unable to access from any device on my network, e-mail, webmail or outlook or messaging.

    If my phone is on the network, it cannot access email either.

    I can ping the e-mail servers and my domain OK from any device

    DNS resolves the addresses OK

    As several devices on the network have difficulty then it is network and/or router associated

    I think a factory reset on the modem as a last resort.

    It's only a problem for e-mail server migration.

    Outlook is saying: the connection to the server has been lost

    Outlook cannot configure the IMAP account automatically.

    When I try manually it says that the server does not support the encryption type (the one provided by the service of the host).

    My companion said that it works OK on hisnetwork.

    Ahhhh, would you believe? After a factory reset of the router and troublehshooting hours I managed to contact my hosting service (I usually go through the dealer) and they said that my IP address has been blocked due to many failed attempts to connect to my CPanel! I had encountered a problem with the password CPanel and who had put on the side so I fixed the problem of e-mail! Heck, who would have guessed that they were related?

    Thanks for your help!

  • Strange behavior with videos...

    I have put 4 different videos in one page.

    Video01, Video02, etc.

    Each video has a personalized poster.

    But when a click Video04 the viewer of the iPad and Desktop Viewer plays Video03 or Video02

    Any advice?

    Fixed a problem.

    The film inside the frame was great as the frame causing this strange behavior.

    After use, "Fill the frame proportionally" everyting works perfectly.

    Thank you

  • Strange behavior with CURRENT_TIMESTAMP

    Hello

    I tried to run the query that got the difference between two timestamps using CURRENT_TIMESTAMP and I seem to return inconsistent results.

    Running Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit

    I'm basically taking 1 second (1/24/60/60) of the current timestamp, and I don't think that it turns a value that is always a second. However, it is always more than one second, the difference is always different. Even if 1/24/60/60 is not a second, results should always be consistent from one request to the next right? This behavior is not strange?

    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> with a as (select CURRENT_TIMESTAMP cts from dual)
      2  select TO_CHAR(a.cts-(a.cts-(1/24/60/60)),'YYYY-MM-DD HH24:MI:SS.FF') difference
      3  from a
      4  ;
    
    DIFFERENCE
    ---------------------------
    +000000000 00:00:01.334196
    
    
    SQL> with a as (select CURRENT_TIMESTAMP cts from dual)
      2  select TO_CHAR(a.cts-(a.cts-(1/24/60/60)),'YYYY-MM-DD HH24:MI:SS.FF') difference
      3  from a
      4  ;
    
    DIFFERENCE
    ---------------------------
    +000000000 00:00:01.180302
    
    
    SQL>
    
    
    

    Thank you

    Dave

    Hello

    (a.cts-(1/24/60/60)

    an example of DATE is arithmetic; the result is the DATE is 1 second before a.cts.  As the result of arithmetic DATE is a DATE, there no fraction of a second.

    If you want the time STAMP that is exactly 1 second before to a.cts, then use an INTERVAL, like this:

    a.CTS - '1' SECOND INTERVAL

  • Bug report: strange behavior with sharing folders Mac &amp; PHP require (8 VMware)

    I'm using VMware Fusion 8.0.0 (2985594) on Mac OS Yosemite (10.10.5 (14F27)) and I have a Linux VM with Debian Wheezy (3.2.0 - 4-amd64) and PHP (5.4.41 - 0 + deb7u1).

    After I've upgraded from VMware Fusion 7 WMware Fusion 8, the (open source CMS) Typo3 on my development machine began to throw PHP syntax errors during playback of its cache files. As I investigated the problem I found that the behavior is reproducible, but only when the files are written to the folder that is shared between the host system and the VM.

    When I'm demanding a PHP a certain file size and a certain name of file, PHP seems to continue reading about the end of the file in the middle of the arbitrariness of other files. This leads mainly to errors in syntax PHP - but according to the name of the file that they differ, for example:

    PHP Parse error:  syntax error, unexpected '' in require284.php on line 93
    PHP Parse error:  syntax error, unexpected '' in require107.php on line 88
    ^[[APHP Parse error:  syntax error, unexpected 'p' in require472.php on line 88
    PHP Parse error:  syntax error, unexpected end of file in require884.php on line 88
    PHP Parse error:  syntax error, unexpected 'u' in require185.php on line 89
    

    All of these errors are generated by requiring the same content with different file names. If I am demanding the same file with the same name, the PHP error is also the same.

    Steps to reproduce

    I wrote a PHP script that seeks a different file names for a given text, until it crashes. Store this file in the shared folder and run it with php f. As you can see, all the content of the file is commented out, so it shouldn't affect anything.

    <?php
    $content = <<<'EOT'
    <?php
    /*njsRtWyvEHREGDwjZEIuuwOCJidhxoMo
    lsdTFPMPhCnHYdjylYmAlJtOrNQRZRzFDQsX
    QAYugjeSRojQLImGMsGzvsNxSdbvIUZbHvVuXfDTJqyXxjbiNoMgiQGVlREJPPacTIbn
    emIhHyATFwSAHnoTRVtUppVVRoWHDAjMvkoADVBCTJFNT
    aCUTsQsZbIhyaQoSCWcpuhgPcoWBD
    bXzAuYZueusNALsxIYTpkaHGGwmLkdkEPsQRSyPojOhCTUksYnAdlr
    rDfHEzqctbHpFBQkUTOWgYsYKwBzguuNxktJDitUkSDLABoDjYlrQzmtBxRU
    TRZqbDEgTEGqpFAXbCADhmwVltDJGqvsasypalIThuzA
    VDJkyuQAQYJoiTyuoMtjeoXtZMVZKhWxWGbChTZjVWcNX
    ANAKXbsERdugbcApTEjabtRSBvMAjreOdSbCyqBikXMADmzTyIijEwBYhWXzEIQHVn
    LkasQDaUvNBNJghMrpNBBnqqLaUsoxqjDoGUoQjG
    uMQEbeYxRcQSICioqjMOLMZZhUbFTOOLdsGHrVSlk
    IxnyGZMFpCNRqFBOYSbSbyzqhzZyjrkUzjEPXSoZNnbnNsdHVdUKosgpVCDSakQjEgNmUM
    vmusESUYiXPKKqvPfVghfqmTniFjPUorDvEpGGvRaKln
    vrQGhLncjvcGQRBWVGKQQVDfbCPRYrJkUTvLpWfIQscGq
    eaZkNjlIfWCYaWMIHPjUkQNYtEdoJbTCYbHqmQYnaIEsVrYXiqibBWrZIFdcyGdCqLRaW
    KjYicadGOioWoiYJrrfUjdTwKhNnhppkjhXZdUmWMxfiqetHCVvZfrKieR
    yhRbxbgbeORKMVxFmLmTexQhALUTNkOGhjaESxabCZSbcMlNLhz
    QnRzjUstpUDJpAcRLSjpPGSwaPKaVqdXrlXsHRtCFpbaEhocTxUAgPKwFvTskukCbCItNS
    vSDsuvlhCtMwYLOQRaJkSfbCaSlUsKZLVnuESjFwiAuJvIumSiCAHYBjpOFWvS
    pPRnkwaQCgYUtrHujVaEvxQ
    NtmJNjkSoCTvMzLXvmDBnymC
    pddMGqTojVadloHtRkipEFiZrWIsCXaqdayQWzynSiXtBIjesEguDtIfmd
    ZmkZrfNbXmtaUiOBvVvKmFaHePX
    CVCGMVGYjzjXyELANgIyAcsjfvdaGdDEttAofjawnondQuScwBUrAUdYxxerNG
    llGfZwYymZrykyajgjRGkDMpREVsybITgbTlgfhJUWJgGAtEM
    yskdfRkKDBaSfgSgLpKgQBmHybHxo
    EMlIkmGTopRdwcNxzLZigZxhakIcdGtlXVrEyPEgrxzG
    wxEFZcpSvgNUsiEVKZsdWGnSFiypJLvRnBUPGNa
    crmUUXjOENCuxstveIQFfhZYLmUljXEMIkH
    pBpmdMAMuBmTWlYZHOgxnPxQeHpMnTDnQRTmBRpoSRHZABhiQO
    qGksOOcpPKfcKhpdQVDvOcUzjsHIrIUSndRreDHdMtxmorrfaUyNmvuS
    uzQQlEcZXpaILAbCXblyXNQxARvGcRSyXDdAwZuBACpQJkZZNBJSkf
    ptcApSlflVBLBxGGtQLBWgoLciHHZsgixDFWqejANmDqiVWhGwQzQKpcNPH
    KIWUpmzHnUVBNBJCxaQKsy
    lRQCfqSWaiqkpyKmodooVOlEcmiUfElZhoDwhWnivqeEqWOEEJRRlbAPdlAJioAXBZpTXc
    pUzpJRxevfDotRbgqCtdzqIXrCahDDnLqymyREXzAvmMniQghmwbMIdnprCsdpxtsvGplq
    ArYJDZfLGhQVEyzwnPyavPgdvbpIKQyTCwgjiZuQUPQumlcKllkDRfErLLqyNGrLMHBpzY
    biPHNtPYGjrYztLOYhaoPmyVahPtiojqptGVQwbKmrFiqNfSv
    nnHyvOuEgLWZxCfrfmAbCspFUYMugmGZZlXFMSYfUlOQxcsOxpSUOEfvI
    ztnBZJKMbEoQZfRzbnQkUXC
    kXEEPviTpYGNrikuJbkfXSyALJmFIzmVamWouZqAwGanZFCSiN
    AVUDwCPZWUJNIrmUwpaoSWTGKmtkev
    uaKSTGLYHTvKAFQRFnMbCBEJQbpgrxOUYTTLGExcQokfKVmEhaCjK
    xBqwGyJyqvscyLMQlsgzfXnIKUZZZfNwsu
    IVwNskHoJTBrRMtKTaxcgoKyUEVONWywwxKbCMMqcw
    aryEooyClPfmWeLRdMGcIDUhWKMztUQrsQmKwTVVXUOxZnMwxr
    PuKuPRLLYsvbvUUIXNVSkdITWLTOmCQrbFEArsfwpTIQYmRNPDLvJheP
    HFSyzYzvuVUQHsahuUQqiPBaDEYJuiySqZfVYPqsaKEm
    aNsbVyGFRpNREYAcFoFLbCNRa
    jQfdxcrOqGHQkcuqGxTMHoGSgAmVAxpPMmhtwRUCKshdXLNnggmuOhgbClYbUzmiBwQ
    UOcNuUNpmEJwDHGpQLEHzIrFlJlEJALIhQyEpYgcVzsmHIffBBpbhnidaK
    SIjqXPyiGTTCUSCZdqZcXOUVCGgAZZuzgpVpjVYkRArhZgHNc
    pbjeIcbCtYZKhvCdxRSVloKVDGXLYqnbjBJZtieEGYprYWtDRH
    pDIELcriTtSXVsTnHBboDfxHJemyOwmPqCDjJjdFsm
    wUKVYearKMHOwWgptjVJAEresgHifdhkdQdKfrYXJUrtyXqTDUbYOjCsCOEnoWZJDiFt
    JmzMKbzvfZDmhFHRnMATdBOcFOiicGGTYEQhvKjazZNgXTP
    abtSIvcZpQXNDiAIBIRkwOKqLjemQjUHywrfCHNxCNRmMosAOGTHEzCqNfcxQQmTvUx
    puCzHyJacoGHtUDhVLDlcCXBytJpJDOIEUtDcWxENdHXfhGaRnfJKZpOsRaEstLopUBoUv
    vWJvmIRLprUJlMiNqdrPD
    PrXisnQvcMbmZwMrgaZcJcIuFlpuJXwtzasYQHUrTinNtXJYxKftihuApOxUFpSxyjqbWW
    CqHRWXTrsTIuXEZbjNCEwhPNAZoqlAoQD
    XWanteqzjVEzbBIhCEeWsnjdzCWORDAXfPKvJZIfb
    qMHQasPmLItsTsxijJrkQbaowAPjJyasyilAYTwSg
    wefnnxtBFkoYMEXoZiYdKtEqoGtnymFqkvuLHxOmv
    bNjqEWbtxaioqkYPmwXKaqAxQLHJHmJTfJBZymDLvx
    obVmpstUZETvYISUiqySvemOXCzjuWGvfgC
    FKJCBTIdSbbnlvKIkBqbMhAhwkAQMexej
    oWBdyunrwxJuWtHsLtIcveTYmCATjiEDoZuggrAxlQhjlUMtMYR
    TqkWuIblrRzKHhNWaGPOd
    ouYgqSMhhngaisNrySZEoJuZrFXHlfPqfWoEZzOiqMqilx
    sQOTKTweognuFhfrluhjAXa
    PqplUMYbKtCvcHYhpcgShKmulTWLprLohwqAWMNyTcNYZJFcWtn
    UwOXvcdCeJiQrEsCycJwSyZJqrsaiSVFcPOMQKCJqRhfAgBmmgDvdsFUIqHWiagR
    wjRmbEIMrDpJXKqGRndpTUfbpjwlpmBtUOIbdngG
    MmItcEisVEgXUnnvEiTIhMPRazVFEplnBfYQWqLMi
    HGZZdDnjVLjluFnDlFLHWseOeJXSFjrfBUXLcIoITqozfHolhIdCmHUsKKYtnng
    FrlAfGIMXlQRYfsaigOJABjLRknqdIbZlZVcLOqjKYmPcjrHH
    SLrsFrNInZMHVeWJHPKwGFKNapGNMgXFqtPOdB
    KExsWUQXnoORsjShtiRRCTYSKwSAhQjgZbzwRHTsiWGIukdOD
    PJKBKqUvyQvWlsrJENAeNLiVTDapsYAnqQwYFuskUVaWHtditUJpiFVsJwKytWu
    aihAvXNVkxTqixFtPumJDocWAmvocxDHZtUzCcEoFHdwFzclKlAdfLOuhZgqZDTptmXii
    DgYmqpKdlbCtenKLhAVrWmJuDofoWpCPHWYdtjXZiYajKuFh
    GGyFSgSVkGRwVakkZafdGvOMHalwDyeOZY
    oFrLUGOVbaHClgsfLepNpHagKdPzLGnilQUAbPyiSrVcIiJaChvlYOIIWWPRPl
    
    */
    EOT;
    
    for($i = 0; $i < 1000; $i++) {
         // generate a random number
         $rnd = rand(0, 1000);
         $filename = 'require' . $rnd . '.php';
         echo "Try no. $i, filename $filename\n";
         // write the content to $filename
         file_put_contents($filename, $content);
         // require the same file
         require($filename);
    }
    

    I wrote another script to generate the build the combination of text and name of the file that is causing the problem:

    <?php
    
    // the decimal ASCII code of all upper and lower case chars
    $ascii_alpha_chars= array_merge(range(65, 90), range(97, 122));
    
    // how many tries
    $count = 500;
    
    $out= '';
    for($i = 0; $i < $count; $i++) {
         // generate a random number of files
         $lines = rand(70, 90);
         $out ='';
         for($j = 0; $j < $lines; $j++) {
              // ...and a random number of chars on each line
              $rand = rand(30, 70);
              $out .= get_random_chars($rand) . "\n";
         }
         write_and_require($out);
    //     echo "$i\n";
    }
    
    function write_and_require($out) {
         // write the content to a file, require it, and delete it
         $sourceCode= "<?php\n/*n$out\n*/\n";
         for($i = 0; $i < 50; $i++) {
              $rnd = rand(0, 1000);
              $filename = 'require' . $rnd . '.php';
    //          echo "$filename\n";
              file_put_contents($filename, $sourceCode);
              require_once($filename);
              unlink($filename);
         }
    }
    
    function get_random_chars($n) {
         global $ascii_alpha_chars;
         $out = '';
         for($i = 0; $i < $n; $i++) {
              // add a random char
              $out .= chr($ascii_alpha_chars[array_rand($ascii_alpha_chars)]);
         }
         return $out;
    }
    

    This problem occurs only for the upgrade of VMware 8 and only when the script runs in the shared folders, I strongly suspect that it is a problem within the VMware stack.

    Can anyone elso reproduce this behavior?

    Hello

    If you use the kernel of an open-vm-tools HGFS customer then yes there are bugs because the version provided with that was broken and not tested. People has not listened to my complaints about it.

    Current recommended approach is to always use the installation of VMware tools for the shared folders feature.

    Open-vm-tools are used to install tools user mode only. We try to make all of the features available with these, including a file sharing client FUSE based. Version 10 of the open-vm-tools will have this.

    Stick with VMware tools install for now for file sharing.

    Thanks for your great art information and debugging this issue.

    Steve

  • Strange behavior of scan picture

    Hi you all the gurus vigilant oracle out there...

    I need some help/tips on an update that I'm running that takes a lot of time. Oracle RDMBS is 11.2.0.1 with advanced compression option.

    I'm currently updating all lines in a table to a value of 1 to 0. (update mistaf set b_code = '0' ;)
    The column in question is a char (1) column and the column is not indexed. The table is a heap large enough with 55 million lines to update and its size is about 11 GB. The table is compressed with compress for OLTP option.

    What is strange to me, is that I can clearly see that performs a full table scan, but I see no db file read straggling, as I expect, but instead, I see only db file sequential reads. I guess that's maybe the reason for its long runtime (dbconsole estimates 20 full hours watching followed sql).

    All views on why Oracle would do db file on a FTS sequential readings? And don't you think that this could be the reason why it takes so long to complete?

    More info: I started the update and left the work and the next morning, I saw that the update was not yet finished that I realized that I had a bitmap on the updated column index. I abandoned the index and started the update once more... It seemed to run at the beginning before rapildy performance declining very quickly...


    Thanks in advance for any help!

    MrShh wrote:

    I need some help/tips on an update that I'm running that takes a lot of time. Oracle RDMBS is 11.2.0.1 with advanced compression option.

    I'm currently updating all lines in a table to a value of 1 to 0. (update mistaf set b_code = '0' ;)
    The column in question is a char (1) column and the column is not indexed. The table is a heap large enough with 55 million lines to update and its size is about 11 GB. The table is compressed with compress for OLTP option.

    What is strange to me, is that I can clearly see that performs a full table scan, but I see no db file read straggling, as I expect, but instead, I see only db file sequential reads. I guess that's maybe the reason for its long runtime (dbconsole estimates 20 full hours watching followed sql).

    All views on why Oracle would do db file on a FTS sequential readings? And don't you think that this could be the reason why it takes so long to complete?

    More info: I started the update and left the work and the next morning, I saw that the update was not yet finished that I realized that I had a bitmap on the updated column index. I abandoned the index and started the update once more... It seemed to run at the beginning before rapildy performance declining very quickly...

    You're not an OLTP update, is not surprising that there's something wrong with your "compress for OLTP. Add to that you did a partial update, put an end to the query, (probably causing a massive cancellation) and started:

    Just guessing here, but when you update each row, Oracle has decompress the line and does not re - apply the compression on the update. Then he concludes he cannot rewrite the line in the block, so the line moves. The restoration does not return the blocks in their compressed State, so on the second run you continue to follow the migrated rows - by reading one piece - to repeat the update.

    Concerning
    Jonathan Lewis

  • Strange behavior with subtraction

    I have an application that uses three timers to control various events. Three timers stop and start each other according to various digital relationships. I have three functions that differ only by the numbers that correspond to what timer uses what var. It is function1 (): void {value1 = this1-var1;}, function2 (): Sub {value2 = imperatifs2 - var2;}, function3 (): Sub {cela3 - ;} var3 = value3 But for some strange reason when function3 cela3 - var3 timer starts and stops randomly (it's not really random, but I don't know what it is caused by, I checked). When I wrote the functions, they originally had it? + var? and all three worked, but were the bad values. It had to be? -var? and when I made the change to function1 in the first instance, it wouldn't work either. After about 7 to 8 trials suddenly Flex '? not forget how escape? "he started to work and it does what it should. So I applied the same change to all the functions. function2 gave without problem, but function3 will not work unless I change it to a + (which calculates the number of bad).

    Anyone have any ideas?

    Thank you! Happy New Year (in about 30 minutes here)!
    Todd

    Sorry, never mind, one of the variables in a conditional has no change in function3. The end result was two timers arguing whether or not the third timer has been on or off - a bit like two children playing with a light switch (and with a 1ms delay timer & 1000 past a second it is a good thing that there was only one virtual switch!).

    Happy coding in the new year!
    Todd

Maybe you are looking for

  • Portégé R600-102: what SSD for upgrade?

    Hello everyone. I want to upgrade my SSD the real 128 GB to a bigger: what are the specifications for the new SSD to work? Should what interface have? What physical dimensions? Any help will be appreciated. TIA,Flavio.

  • Impossible to install Mint of USB/DVD 14

    Hi, guys. I got this Lenovo B590 magic, on which I can't install Linux Mint 14 from USB and DVD. I run BIOS, choose USB to run... Sth happens (Black Lightning), and I see a start menu. So, nothing happens. The same company with DVD: I choose DVD, I s

  • Specify the path to file report with Expression

    TS201x help under "Specifying report file paths by Expression" talking with a number of macros various, but starts at the page that shows how to use FileGlobals also. When you specify the expression (... > specify the path file of report by Expressio

  • How to set 'User defined' palette display IMAQ?

    When I select the "User defined" palette on the screen, it shows just the regular grayscale palette.  I want to replace that with the palette 'Rainbow' but slightly amended in the range.  How can I do this? Thank you! MK

  • How to obtain the rights to adninistrator

    I want to make incredimail my default mail client, but I need admin powers, how should I go about to get these