Showing Cursor.WAIT when doing lengthy operation in JavaFX

I'd like to show a busy cursor when an image is loading.
In Swing, I used to do this by showing a glass pane with a busy cursor.
How do I do this in JavaFx?

Hi,
To call the function by using FirstUpdateEvent :
Define a global variable:
var vApplet=0;
function checkApplet()
  vApplet = vApplet+1;
  if(vApplet ==1)
     executeQuery();
else
checkApplet() will check your applet is loaded fully or not.
If it is loaded fully, it will call executeQuery().
function executeQuery()
window.document.body.style.cursor = "wait"; // function used for cursor to become an hourglass
execute iCommands here......
window.open();
window.document.body.style.cursor = "default"; // cursor becomes a regular pointer again.
Then call checkApplet() in your iCommand Applet like this:
At the end of applet
<PARAM NAME="FirstUpdateEvent" VALUE="checkApplet">
Hope this will help you.
Thanks,
Manisha

Similar Messages

  • RMBP - high frequency/power noise when doing file operations?

    Hi,
    I noticed today that my new rMBP is emitting some strange high pitched noise, especially when doing heavy files operations like spotlight indexing or startup of the computer. It's louder and more prominent when I connect the AC adapter. It sounds like some power interference, a bit like some broken chargers do or Iphone 4s when transmitting 3G data.
    It's not very loud but I can hear it clearly, when sitting in a silent room, even without closing my ear to the Macbook.
    Has anybody noticed that or can advise something? Is that normal with those machines or some issue that has to be fixed? I really don't want to return it, as it is perfect otherwise...
    Thanks in advance for feedback.

    here is the link to a sample of that noise. Please listen from 15 second:
    http://wikisend.com/download/438696/Memo.m4a

  • Perl versus other "scripting" languages when doing string operations

    I've been told that perl is a "scripting" language like the other languages mentioned in this forum.
    If that's true, can these other languages handle the following spec as well as perl can?  (See spec at end of this post.)
    Or is perl stronger in string operations than the other scripting languages mentioned here?
    Here's the spec:
    1. I give your program  a twenty-letter alphabet (any twenty letter alphabet)
    For example:
    ABCDEFGHIJKLMNOPQRST
    2.  I also give your program four groups (any four groups) of letters in this alphabet:
    For example:
    s:  A,B,C,D,E
    p:  F,G,H,I,J
    d:  K,L,M,N,O
    e:  P,Q,R,S,T
    3.  I also give your program a sequence over the twenty-letter alphabet that I gave you in Step (1) above:
    For example:
    ABCDEFGHIJKLMNOPQRSTSRQPONMLKJIHGFEDCBA
    4.  Given this sequence,you search for pairs of adjacent letters (x,y) where X and y are from different groups (the groups defined in Step (2) above.)
    Also, you return the results of this search by giving me back the following two strings:
    ABCD(EF)GHI(JK)LMN(OP)QRSTSRQ(PO)NML(KJ)IHG(FE)DCBA  
    ABCD(sp)GHI(pd)LMN(de)QRSTSRQ(ed)NML(dp)IHG(ps)DCBA
    5.  Note: if I give you a sequence that contains "overlapping" ordered pairs like:
    ...EFK...
    then you ignore the second ordered pair.  That is, you return:
    ...(EF)K

    OK - here is the final stuff on the "C" side.
    To execute the program, the command line is:
    20let.exe file1.txt file2.txt file3.txt > fileout.txt
    Below, I've provided:
    a) source code 20let.c
    b) sample input file1.txt
    c) sample input file2.txt
    d) sample input file3.txt
    e) output fileout.txt generated from these input files.
    As soon as Bill finishes the perl version of the source code, I'll post that also.
    source code of 20let.c
    // 20let.c5
    #include <stdio.h>
    #include <stdlib.h>
    int T[333],A[99999],G[333],B[99999],C[99999],N[299999],P[99999];
    int n1,n2,f,p,x1,x2,n,m,a,b,c,i,j,k,x,y,z;
    int E[233][233];
    FILE *file;
    int substrings(int x1,int x2);
    int main(int argc, char*argv[]) {
        if(argc<3){
            printf("\nusage:20let protein-file nucleotide-file pairs-include-file\n\n");
            printf("marks amino-acid-pairs from different groups in protein-file\n");
            printf("iff they are in the include-file\n");
            exit(1);
    //----------------define the groups        G['I'] = 's', e.g.
        x='s'; G['I']=x;G['M']=x;G['V']=x;G['A']=x;G['G']=x;
        x='p'; G['F']=x;G['L']=x;G['P']=x;G['W']=x;G['W']=x;
        x='d'; G['H']=x;G['Q']=x;G['D']=x;G['E']=x;G['E']=x;
        x='t'; G['S']=x;G['T']=x;G['Y']=x;G['N']=x;G['C']=x;G['K']=x;G['R']=x;
    //----------------the 4 bases              T['a'] = 0 thru 3
        for(x=0;x<222;x++)
            T[x]=-999;
        T['a']=0;T['c']=1;T['g']=2;T['t']=3;
        T['A']=0;T['C']=1;T['G']=2;T['T']=3;
      for(i=65;i<70;i++)G<i>='s';
      for(i=70;i<75;i++)G<i>='p';
      for(i=75;i<80;i++)G<i>='d';
      for(i=80;i<85;i++)G<i>='t';
    //---------------- read include-file   file3 xxxyyy pairs E[x][y] of interest
        f=0;
        for(x=0;x<222;x++)
            for(y=0;y<222;y++)
                E[x][y]=0;
        if((file=fopen(argv[3],"rb"))==NULL){
            printf("\ncan't open exclude-file %s\n",argv[1]);exit(1);
    mq1: if(feof(file))
            goto mq3;
        x=fgetc(file);y=fgetc(file);x=fgetc(file);
        x=T[fgetc(file)]*16+T[fgetc(file)]*4+T[fgetc(file)];
        y=T[fgetc(file)]*16+T[fgetc(file)]*4+T[fgetc(file)];
        if(x<64 && x>=0 && y<64 && y>=0){
            E[x][y]=1;
            f++;
    mq2: if(feof(file))
            goto mq3;
        a=fgetc(file);
        if(a!=10)
            goto mq2;
        goto mq1;
    mq3: fclose(file);
    //------------------read amino-acid file    file1 == P array
        if((file=fopen(argv[1],"rb"))==NULL){
            printf("\ncan't open file %s\n",argv[1]);exit(1);}
        p=0;
    m1p: if(feof(file))
            goto m2p;
        p++;
        P[p]=fgetc(file);
        if(G[P[p]]==0)
            p--;
        goto m1p;
    m2p:;
        fclose(file);
    //------------------read nucleotide file    file2 == N array
        if((file=fopen(argv[2],"rb"))==NULL){
            printf("\ncan't open file %s\n",argv[1]);exit(1);
        n=0;
    m1n: if(feof(file))
            goto m2n;
        n++;
        N[n]=fgetc(file);
        if(N[n]!='a' && N[n]!='c' && N[n]!='g' && N[n]!='t')
            n--;
        goto m1n;
    m2n:;
        fclose(file);
    //for(i=1;i<=p;i++)printf("%c",P<i>);printf("\n");
    //for(i=1;i<=n;i++)printf("%c",N<i>);printf("\n");
    //printf("%i include-pairs  %i nucleotides  %i proteins\n",f,n,p);
    //------------1st line------------------       B<i> = result
        m=0;
        for(i=1;i<=p;i++){
            n1=T[N[i*3-2]]*16+T[N[i*3-1]]*4+T[N[i*3]];
            n2=T[N[i*3+1]]*16+T[N[i*3+2]]*4+T[N[i*3+3]];
    //printf("\ni=%i p=%i n1=%i n2=%i\n",i,p,n1,n2);
            if(E[n1][n2]<1 || G[P<i>]==G[P[i+1]] /* || i==n */){
                printf("%c",P<i>);
                m++;
                B[m]=P<i>;
                goto m3;
            printf("(%c%c)",P<i>,P[i+1]);
            i++;
            m++;
            B[m]='(';
            m++;
            B[m]=P[i-1];
            m++;
            B[m]=P<i>;
            m++;
            B[m]=')';
    //printf("(%c)%c",G[A<i>],G[A[i+1]]);i++;
        m3:;
        printf("\n");
    //------------2nd line------------------       C<i> = result
        m=0;
        for(i=1;i<=p;i++){
            n1=T[N[i*3-2]]*16+T[N[i*3-1]]*4+T[N[i*3]];
            n2=T[N[i*3+1]]*16+T[N[i*3+2]]*4+T[N[i*3+3]];
            if(E[n1][n2]<1 || G[P<i>]==G[P[i+1]] /* || i==n */){
                printf("%c",P<i>);
                m++;
                C[m]=P<i>;
                goto m4;
            printf("(%c%c)",G[P<i>],G[P[i+1]]);
            i++;
            m++;
            C[m]='(';
            m++;
            C[m]=G[P[i-1]];
            m++;
            C[m]=G[P<i>];
            m++;
            C[m]=')';
    //printf("(%c)%c",G[A<i>],G[A[i+1]]);i++;
        m4:;
        printf("\n");
    //for(i=1;i<=m;i++)printf("%c",B<i>);printf("\n");
    //------------3rd line------------------         printf only
        m=0;
        for(i=1;i<=p;i++){
            n1=T[N[i*3-2]]*16+T[N[i*3-1]]*4+T[N[i*3]];
            n2=T[N[i*3+1]]*16+T[N[i*3+2]]*4+T[N[i*3+3]];
            if(E[n1][n2]<1 || G[P<i>]==G[P[i+1]] /* || i==n */){
                printf("%c%c%c",N[i*3-2],N[i*3-1],N[i*3]);
                goto m33;
            printf("(%c%c%c%c%c%c)",N[i*3-2],N[i*3-1],N[i*3],N[i*3+1],N[i*3+2],N[i*3+3]);
            i++;
        m33:;
        printf("\n");
    //--------------substrings------------
        substrings(20,29);
        substrings(30,39);
        substrings(40,49);
        substrings(50,59);
        substrings(60,69);
        return 0;
    int substrings(int x1,int x2)
        printf("\n");
        printf("lengths %i - %i : \n",x1,x2);
        for(i=1; i<p; i++)
            for (j=i+x1; j<i+x2; j++) {
                if (C<i>>95 && C[j]>95) {   // if lc letter in line2
                    for(x=i;x<=j;x++)
                        printf("%c",C[x]);
                    printf("|");
                    for(x=i;x<=j;x++)
                        if(B[x]>44)         // if not () in line 1
                            printf("%c",B[x]);
                    printf("|");
                    for(x=i;x<=j;x++)
                        if(C[x]>95)         // if lc letter line2
                            printf("%c",C[x]);
                    printf("\n");}
    input file1.txt
    MKKHTDQPIADVQGSPDTRH
    IAIDRVGIKAIRHPVLVADK
    DGGSQHTVAQFNMYVNLPHN
    FKGTHMSRFVEILNSHEREI
    SVESFEEILRSMVSRLESDS
    GHIEMTFPYFVNKSAPISGV
    KSLLDYEVTFIGEIKHGDQY
    GFTMKVIVPVTSLCPCSKKI
    SDYGAHNQRSHVTISVHTNS
    FVWIEDVIRIAEEQASCELF
    GLLKRPDEKYVTEKAYNNPK
    FVEDIVRDVAEILNHDDRID
    AYVVESEBFESIHNHSAYAL
    IERD
    input file2.txt
    atgaaaaaacatactgatcaacctatcgctgatgtgcagggctcaccggataccagacat
    atcgcaattgacagagtcggaatcaaagcgattcgtcacccggttctggtcgccgataag
    gatggtggttcccagcataccgtggcgcaatttaatatgtacgtcaatctgccacataat
    ttcaaagggacgcatatgtcccgttttgtggagatactaaatagccacgaacgtgaaatt
    tcggttgaatcatttgaagaaattttgcgctccatggtcagcaggctggaatcagattcc
    ggccatattgaaatgacttttccctacttcgtcaataaatcagcccctatctcaggtgta
    aaaagcttgctggattatgaggtaacctttatcggcgaaattaaacatggcgatcaatat
    gggtttaccatgaaggtgatcgttcctgttaccagcctgtgcccctgctccaagaaaata
    tccgattacggtgcgcataaccagcgttcacacgtcaccatttctgtacacactaacagc
    ttcgtctggattgaggacgttatcagaattgcggaagaacaggcctcatgcgaactgttc
    ggtctgctgaaacggccggatgaaaaatatgtcacagaaaaggcctataacaatccgaaa
    tttgtcgaagatatcgtccgtgatgtcgccgaaatacttaatcatgatgaccggatagat
    gcctatgttgttgaatcagaaaactttgaatccatacataatcactctgcatacgcactg
    atagagcgcgac
    input file3.txt
    FA tttgcc
    FA ttcgcc
    FA tttgct
    FA ttcgct
    LK ttaaaa
    LK ttgaaa
    LK ttaaag
    LK ttgaag
    LS ctgctc
    LS ctgctt
    LS ctactc
    LS ctactt
    LT ctcacc
    LT ctcact
    LT cttacc
    LT cttact
    LY ctctac
    LY ctctat
    LY ctttac
    LY ctttat
    LG ctcggc
    LG ctcggt
    LG cttggc
    LG cttggt
    IP attccc
    IP attcct
    IP atcccc
    IP atccct
    IP attcca
    IP attccg
    IP atccca
    IP atcccg
    ML atgctc
    ML atgctt
    ML atgctc
    ML atgctt
    VL gtgctg
    VL gtgcta
    VL gtactg
    VL gtacta
    VS gtgtcc
    VS gtatct
    VS gtgtcc
    VS gtatct
    VT gtcacc
    VT gtcact
    VT gttacc
    VT gttact
    VS gtcagc
    VS gtcagt
    VS gttagc
    VS gttagt
    SL tcgctg
    SL tcgcta
    SL tcactg
    SL tcacta
    SP tctcca
    SP tctccg
    SP tcccca
    SP tccccg
    PV ccggtg
    PV ccggta
    PV ccagtg
    PV ccagta
    PG cccggc
    PG cccggt
    PG cctggc
    PG cctggt
    TL acgctg
    TL acgcta
    TL acactg
    TL acacta
    TP acgccg
    TP acgcca
    TP acaccg
    TP acacca
    AL gcttta
    AL gctttg
    AL gcctta
    AL gccttg
    AP gcgccg
    AP gcgcca
    AP gcaccg
    AP gcacca
    AP gctcca
    AP gctccg
    AP gcccca
    AP gccccg
    AN gctaat
    AN gctaac
    AN gccaat
    AN gccaac
    AS gccagc
    AS gccagt
    AS gctagc
    AS gctagt
    YP tatccg
    YP tatcca
    YP tacccg
    YP taccca
    HP catccg
    HP catcca
    HP cacccg
    HP caccca
    QR cagcga
    QR cagcgg
    QR caacga
    QR caacgg
    DL gatttg
    DL gattta
    DL gacttg
    DL gactta
    EN gaaaat
    EN gaaaac
    EN gagaat
    EN gagaac
    EK gaaaaa
    EK gaaaag
    EK gagaaa
    EK gagaag
    ER gagcga
    ER gagcgg
    ER gaacga
    ER gaacgg
    WR tggcga
    WR tggcgg
    RV cgggtg
    RV cgggta
    RV cgagtg
    RV cgagta
    RW cggtgg
    RW cgatgg
    SG agtgga
    SG agtggg
    SG agcgga
    SG agcggg
    GF ggtttt
    GF ggtttc
    GF ggcttt
    GF ggcttc
    GL gggctg
    GL gggcta
    GL ggactg
    GL ggacta
    GY gggtat
    GY gggtac
    GY ggatat
    GY ggatac
    GY ggttat
    GY ggttac
    GY ggctat
    GY ggctac
    GK ggaaaa
    GK ggaaag
    GK gggaaa
    GK gggaag
    GK ggcaag
    GK ggcaaa
    GK ggtaag
    GK ggtaaa
    GW ggctgg
    GW ggttgg
    GR gggcgg
    GR gggcga
    GR ggacgg
    GR ggacga
    GS ggcagc
    GS ggcagt
    GS ggtagc
    GS ggtagt
    output fileout.txt
    MKKHTDQPIADVQGSPDTRHIAIDRVGIKAIR(HP)VLVADKDGGSQHTVAQFNMYVNLPHNFKGTHMSRFVEILNSHEREISVESFEEILRSM(VS)RLESDSGHIEMTFPYFVNKSAPISGVKSLLDYEVTFIGEIKHGDQYGFTMKVIVP(VT)SLCPCSKKISDYGAHNQRSH(VT)ISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPD(EK)YVT(EK)AYNNPKFVEDIVRDVAEILNHDDRIDAYVVES(EF)ESIHNHSAYALIERD
    MKKHTDQPIADVQGSPDTRHIAIDRVGIKAIR(dp)VLVADKDGGSQHTVAQFNMYVNLPHNFKGTHMSRFVEILNSHEREISVESFEEILRSM(st)RLESDSGHIEMTFPYFVNKSAPISGVKSLLDYEVTFIGEIKHGDQYGFTMKVIVP(st)SLCPCSKKISDYGAHNQRSH(st)ISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPD(dt)YVT(dt)AYNNPKFVEDIVRDVAEILNHDDRIDAYVVES(dp)ESIHNHSAYALIERD
    atgaaaaaacatactgatcaacctatcgctgatgtgcagggctcaccggataccagacatatcgcaattgacagagtcggaatcaaagcgattcgt(cacccg)gttctggtcgccgataaggatggtggttcccagcataccgtggcgcaatttaatatgtacgtcaatctgccacataatttcaaagggacgcatatgtcccgttttgtggagatactaaatagccacgaacgtgaaatttcggttgaatcatttgaagaaattttgcgctccatg(gtcagc)aggctggaatcagattccggccatattgaaatgacttttccctacttcgtcaataaatcagcccctatctcaggtgtaaaaagcttgctggattatgaggtaacctttatcggcgaaattaaacatggcgatcaatatgggtttaccatgaaggtgatcgttcct(gttacc)agcctgtgcccctgctccaagaaaatatccgattacggtgcgcataaccagcgttcacac(gtcacc)atttctgtacacactaacagcttcgtctggattgaggacgttatcagaattgcggaagaacaggcctcatgcgaactgttcggtctgctgaaacggccggat(gaaaaa)tatgtcaca(gaaaag)gcctataacaatccgaaatttgtcgaagatatcgtccgtgatgtcgccgaaatacttaatcatgatgaccggatagatgcctatgttgttgaatca(gaaaac)tttgaatccatacataatcactctgcatacgcactgatagagcgc
    lengths 20 - 29 :
    st)SLCPCSKKISDYGAHNQRSH(s|VTSLCPCSKKISDYGAHNQRSHV|sts
    st)SLCPCSKKISDYGAHNQRSH(st|VTSLCPCSKKISDYGAHNQRSHVT|stst
    t)SLCPCSKKISDYGAHNQRSH(s|TSLCPCSKKISDYGAHNQRSHV|ts
    t)SLCPCSKKISDYGAHNQRSH(st|TSLCPCSKKISDYGAHNQRSHVT|tst
    lengths 30 - 39 :
    st)ISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPD(d|VTISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPDE|std
    t)ISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPD(d|TISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPDE|td
    t)ISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPD(dt|TISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPDEK|tdt
    dt)AYNNPKFVEDIVRDVAEILNHDDRIDAYVVES(d|EKAYNNPKFVEDIVRDVAEILNHDDRIDAYVVESE|dtd
    dt)AYNNPKFVEDIVRDVAEILNHDDRIDAYVVES(dp|EKAYNNPKFVEDIVRDVAEILNHDDRIDAYVVESEF|dtdp
    t)AYNNPKFVEDIVRDVAEILNHDDRIDAYVVES(d|KAYNNPKFVEDIVRDVAEILNHDDRIDAYVVESE|td
    t)AYNNPKFVEDIVRDVAEILNHDDRIDAYVVES(dp|KAYNNPKFVEDIVRDVAEILNHDDRIDAYVVESEF|tdp
    lengths 40 - 49 :
    st)ISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPD(dt)YVT(d|VTISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPDEKYVTE|stdtd
    st)ISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPD(dt)YVT(dt|VTISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPDEKYVTEK|stdtdt
    t)ISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPD(dt)YVT(d|TISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPDEKYVTE|tdtd
    t)ISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPD(dt)YVT(dt|TISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPDEKYVTEK|tdtdt
    dt)YVT(dt)AYNNPKFVEDIVRDVAEILNHDDRIDAYVVES(d|EKYVTEKAYNNPKFVEDIVRDVAEILNHDDRIDAYVVESE|dtdtd
    dt)YVT(dt)AYNNPKFVEDIVRDVAEILNHDDRIDAYVVES(dp|EKYVTEKAYNNPKFVEDIVRDVAEILNHDDRIDAYVVESEF|dtdtdp
    t)YVT(dt)AYNNPKFVEDIVRDVAEILNHDDRIDAYVVES(d|KYVTEKAYNNPKFVEDIVRDVAEILNHDDRIDAYVVESE|tdtd
    t)YVT(dt)AYNNPKFVEDIVRDVAEILNHDDRIDAYVVES(dp|KYVTEKAYNNPKFVEDIVRDVAEILNHDDRIDAYVVESEF|tdtdp
    lengths 50 - 59 :
    t)RLESDSGHIEMTFPYFVNKSAPISGVKSLLDYEVTFIGEIKHGDQYGFTMKVIVP(s|SRLESDSGHIEMTFPYFVNKSAPISGVKSLLDYEVTFIGEIKHGDQYGFTMKVIVPV|ts
    lengths 60 - 69 :
    dp)VLVADKDGGSQHTVAQFNMYVNLPHNFKGTHMSRFVEILNSHEREISVESFEEILRSM(s|HPVLVADKDGGSQHTVAQFNMYVNLPHNFKGTHMSRFVEILNSHEREISVESFEEILRSMV|dps
    dp)VLVADKDGGSQHTVAQFNMYVNLPHNFKGTHMSRFVEILNSHEREISVESFEEILRSM(st|HPVLVADKDGGSQHTVAQFNMYVNLPHNFKGTHMSRFVEILNSHEREISVESFEEILRSMVS|dpst
    p)VLVADKDGGSQHTVAQFNMYVNLPHNFKGTHMSRFVEILNSHEREISVESFEEILRSM(s|PVLVADKDGGSQHTVAQFNMYVNLPHNFKGTHMSRFVEILNSHEREISVESFEEILRSMV|ps
    p)VLVADKDGGSQHTVAQFNMYVNLPHNFKGTHMSRFVEILNSHEREISVESFEEILRSM(st|PVLVADKDGGSQHTVAQFNMYVNLPHNFKGTHMSRFVEILNSHEREISVESFEEILRSMVS|pst
    st)RLESDSGHIEMTFPYFVNKSAPISGVKSLLDYEVTFIGEIKHGDQYGFTMKVIVP(st|VSRLESDSGHIEMTFPYFVNKSAPISGVKSLLDYEVTFIGEIKHGDQYGFTMKVIVPVT|stst
    st)SLCPCSKKISDYGAHNQRSH(st)ISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPD(d|VTSLCPCSKKISDYGAHNQRSHVTISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPDE|ststd
    st)SLCPCSKKISDYGAHNQRSH(st)ISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPD(dt|VTSLCPCSKKISDYGAHNQRSHVTISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPDEK|ststdt
    t)SLCPCSKKISDYGAHNQRSH(st)ISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPD(d|TSLCPCSKKISDYGAHNQRSHVTISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPDE|tstd
    t)SLCPCSKKISDYGAHNQRSH(st)ISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPD(dt|TSLCPCSKKISDYGAHNQRSHVTISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPDEK|tstdt
    t)SLCPCSKKISDYGAHNQRSH(st)ISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPD(dt)YVT(d|TSLCPCSKKISDYGAHNQRSHVTISVHTNSFVWIEDVIRIAEEQASCELFGLLKRPDEKYVTE|tstdtd
    Edited by: David Halitsky on Mar 18, 2008 4:21 AM
    Edited by: David Halitsky on Mar 18, 2008 4:22 AM

  • Memory consumption issues (when doing large batches of photos)

    I have a user who reports my plugin consumes memory until Lr/System is no longer operable, when doing large batches of photos.
    I have this type of problem too from time to time, but not always, and in the most recent case, *not* for the same operation my client is complaining about.
    Begs the question: is there a way to control whether excessive memory is used, or force it to be released, when doing an operation upon large batches of photos.
    Note: the operation is already concluding catalog transactions every 1000 photos (exits with-write function, and re-enters). My client reports Lr/System slowdown at about 4000 photos. He is running Lr3, Windows OS - system details not yet known.
    Rob

    Hey Rob
    Have you already tried John R. Ellis idea of reducing the transaction size? I remember from another project we had to limit the transaction size on a SQLite based database due to memory problems.
    Maybe you are facing a different problem - not sure how efficient LUAs garbage collection is and your code causes some kind of memory leaks somewhere.
    Daniel

  • I need a code that allows me to show a "Please Wait" Dialog while performing a lengthy operation

    Hi,
    I have very basic knowledge of C++ and I don't understand completely how this works. I have been trying to use pthreads in order to be able to show a "Please Wait" Dialog while performing a lengthy operation. The problem is that the dialog
    box is showing up with a blank box where the label should go. Could you please modify the following code so that the program does what I am looking for? (note that I have pasted the sections of the program I think are useful for someone to provide an answer).
    void *run_optimization( void *ptr );
    void *run_optimization( void *ptr )
    Solution x = Optimizer(); // Lengthy operation
    const int * const SolArray = x.getDiscreteSolution();
    return 0;
    namespace RCM {
    private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {
    Processing^ Proc = gcnew Processing();
    Proc->Show(); // this is the "Please Wait" Dialog
    pthread_t thread1;
    int ret1;
    ret1 = pthread_create( &thread1, NULL, run_optimization, NULL);
    pthread_join( thread1, NULL);
    Thank you!!
    EDIT:
    I have tried the following:
    void *run_optimization( void ^ptr );
    void *run_optimization( void ^ptr )
    Processing^ Proc = (Processing ^)ptr;
    Solution x = Optimizer(); // Lengthy operation
    const int * const SolArray = x.getDiscreteSolution();
    Proc->Close();
    return 0;
    namespace RCM {
    private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {
    Processing^ Proc = gcnew Processing();
    pthread_t thread1;
    int ret1;
    ret1 = pthread_create( &thread1, NULL, run_optimization, (void *)Proc);
    Proc->Show(); // this is the "Please Wait" Dialog
    But I am getting the following error:
    error C2440: 'type cast' : cannot convert from 'RCM::Processing ^' to 'void *'

    Hi Shu!
    It runs in windows. I am using Visual Studio 2010 (and I can't use another version) which still doesn't have the threads integrated as I have read. So I am using POSIX threads for windows. 
    Regarding the other question, I don't really know what either of those (.net framework library or native API) mean. I am sorry but I am really new at this and really don't know much but I am doing my best because I have to get this done.
    I only know basic C++ but had to use C++/CLI windows forms because of a code I integrated in my program for running macros in excel and it was in C++/CLI.
    Thank you for your help!
    You cannot pass a managed handle to void* (as you have discovered).
    If you really want to use Posix threads, you probably need to make your Processing class a normal C++ class, not a C++/CLI ref class.
    But the .NET way to do this would be to use a BackgroundWorker:
    https://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker%28v=vs.110%29.aspx
    David Wilkinson | Visual C++ MVP

  • How to show/print waiting message when system is serving pdf to browser

    Hi,
    does anybody know how to print/show "please wait for your request to be completed..." message when they try to click GeneratePdf button for example
    they way i do serving pdf to the browser is as below
    response.reset();
    response.setContentLength(contentLength);
    response.setContentType("application/pdf");
    response.setHeader("Content-disposition", "inline; filename=\""System.currentTimeMillis()+".pdf"+ "\"");
    output = new BufferedOutputStream(response.getOutputStream());
    while (contentLength-- > 0) {
    output.write(input.read());
    output.flush();and this is what was written in my popup jsp ( when user click GeneratePdf , the application will process it and at the end serve pdf file to the user using popup window )
    <body> <h1>Please Wait for your request to be completed...........</h1> </body> </html>
    <%
    boolean redirect=false;
    try{
    PdfDispatcher.dispatchApplication(response,session);
    }catch(Throwable t){
    System.out.println("Application Dispatcher Exception ... "+t.getMessage());
    System.out.println("Continue as per normal....");
    redirect = true; // will redirect to other jsp output
    if(redirect){
    //go to other jsp
    }The problem is my message above never got printed to the page ( i guess because the browser thinks that the response has not been completed )
    by the time the response has been completed the whole page will be cover in pdf document
    The reason i want to do this because my user complaining that they see blank page for long time when the system is slow to generate/server pdf to them.
    and it would be better to show some "waiting message" when the system is processing the application and server pdf at the end of the operations.
    anybody know how to workaround this?
    Thanks

    just_a_kid83 wrote:
    does anybody know how to print/show "please wait for your request to be completed..." message when they try to click GeneratePdf button for exampleUse JavaScript+DOM. Add a <div> somewhere in the page where the message should be displayed and put the message and an animated 'loading' gif in it. Hide the <div> using the CSS 'display' property which is set to 'none'. Then add an onclick event to the button/link which downloads the PDF file which gets the <div> element by its ID and set its 'display' property to 'block'.

  • I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5. I am receiving an error problem when doing the following -  I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive whe

    Hi, I am having a little trouble with exporting images to another drive and Catalogue and need some help if anyone can give me some advice
    I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5.
    I am receiving an error problem when doing the following -
    I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive where a Lightroom Catalogue has been created. In this Catalogue I have arranged for the images once exported to be moved to a different folder - I used the Auto Import process under the File dialogue box.
    When processing the Export I receive an error message for each of the images being exported indicating the following -
    Heading Import Results
    Some import operations were not performed
    Could not move a file to requested location. (1)
    then a description of the image with file name
    Box Save As                                  Box  OK
    If I click the OK button to each image I can then go to the other Catalogue and all images are then transferred to the file as required.
    To click the OK button each time is time consuming, possibly I have missed an action or maybe you can advise an alternative method to save the time in actioning this process.
    Thanks if you can can help out.

    Thank You, but this is a gong show. Why is something that is so important to us all so very, very difficult to do?

  • HT201317 My photostream in windows 7 PC does not shows any pic. when i click on slide show it start showing me slide shows of pic but when i try to copy files i cant do as no photo is viewd in list mode. This problem has arised since IOS is updated.

    My photostream in windows 7 PC does not shows any pic. when i click on slide show it start showing me slide shows of pic but when i try to copy files i cant do as no photo is viewd in list mode. This problem has arised since IOS is updated.I reinstalled my icloud and checked if icloud sharing is ON. I can see pic in my photo stream in PC only in slide show mode. While in list mode it shows pics before i actually click on photostream folder. My phone memory is out becose of bunch of photoes. How do i copy my photostream photoes.

    Hi all.  I can’t tell you how to solve your iCloud 3.x issues.  Heck, I don’t think they’re even solvable.
    But if you had a previous version of iCloud that was working correctly then I can definitely tell you how to solve the “iCloud Photo Stream is not syncing correctly to my Windows 7 PC” problem.  …without even a re-boot.
    Log out of iCloud 3.0 and uninstall it.
    Open My Computer and then open your C:\ drive.  Go to Tools/Folder Options and click on the View tab.  Select the “Show hidden…” radio button and click on OK.
    Open the Users folder.
    Open your user folder
    Open ProgramData (previously hidden folder)
    Open the Apple folder – not the Apple Computer folder.
    Open the Installer Cache folder
    In Details view sort on Name
    Open the folder for the newest entry for iCloud Control Panel 2.x – probably 2.1.2.8 dated 4/25/2013
    Right click on iCloud64.msi and select Install.
    When finished, the synching between iCloud and your PC will be back to working perfectly as before the 3.0 fiasco.  The pictures will be synched to the same Photostream folder as before the “upgrade”.  Now all you need to do is wait until Apple/Microsoft get this thing fixed and working before you try the 3.x upgrade again.
    I think the iCloud 3.0 software was written by the same folks who wrote healthcare.gov with the main difference being that healthcare.gov might eventually be made to work.
    For those of you who hate to go backwards, think of it as attacking to the rear.  Which would you rather have, the frustration of no synching or everything working on an older version?
    Good luck…

  • HT1384 My ipod nano 3rd generation, when connected by usb, does not show up in itunes, does not show up on my computer, does not seem to charge by the wall charger. It just has a black screen. Any ideas for me?

    My ipod nano 3rd generation, when connected by usb, does not show up in itunes, does not show up on my computer, does not seem to charge by the wall charger. It just has a black screen. Any ideas for me?
    I've run diagnostics. Can't find device. I've tried resetting. The toggle has been turned on and off.

    Cable works fine on my other iPod. Reset by pressing menu and center button together for 6-10 seconds. Left it to charge for many hours. Started acting up while running. Suddenly the music stopped playing but my Nike + was still working for the rest of my run. Took it straight it home and plugged it in to the wall to recharge since the battery was fairly low. Looked like it recharged ok but then screen went blank and now does it not show up on iTunes, does not seem to recharge by the wall charger (apple wall charger plugged into a surge protector in India). I have turned the hold switch off and on many times.
    Sounds like a repair issue, which is not easy to do in India :(

  • I am looking for a specific photo in my event folder, it does not show up, yet when I use the search feature, the photo is there.  Why doesn't it show up in the folder?

    I am looking for a specific photo in my event folder, it does not show up, yet when I use the search feature the picture is there.  Why doesn't it show up in the folder?

    What system and iPhoto version are you running?
    If your're using iPhoto 9 or later  Command (right) - click on the photo in the search window and select Show Event in the Contextual menu. 
    That will take you to the event where the photo is.
    OT

  • How to..Show a wait dialog when data loads, then hide once data loads

    Description: This code will have the SAP default wait dialog become visible when the page loads and hidden after the data is returned for the table.
    1. Place this code within the head tags.
    <head>
    <SCRIPT Language="JavaScript">
    function show_wait_dialog () {
    document.body.style.cursor = "wait";
    document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("display", "block", false);
    document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("visibility", "visible", false);
    document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("overflow", "auto", false);
    document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("width", "255", false);
    document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("left", document.body.offsetWidth/2-125, false); document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("top",
    document.body.offsetHeight/2-38, false);
    function hide_wait_dialog () {
    document.body.style.cursor = "auto";
    document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("display", "block", false);
    document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("visibility", "hidden", false);
    document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("overflow", "auto", false);
    document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("width", "255", false);
    document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("left", document.body.offsetWidth/2-125, false); document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("top", document.body.offsetHeight/2-38, false);
    </script>
    </head>
    2. Place this code right after the <body> tag.
    <body>
    <!-- New Code -->
    <script>
    show_wait_dialog()
    </script>
    3. Lastly, place this code below right after the Table Item and before the </body> tag. (in this case GR1Table)
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="GR1Table"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DP"/>
             <param name="WIDTH" value="700"/>
             <param name="BLOCK_SIZE" value="3000"/>
             <param name="SHOW_PAGING_AREA_TOP" value="X"/>
             <param name="HELP_SERVICE" value="ZPRINTING"/>
             <param name="HELP_SERVICE_CLASS" value="Z_PRINTING_HELP_SERVICE"/>
             ITEM:            GR1Table
    </object></P>
    <P>
    <!—New code --&#61664;
    <script>
    hide_wait_dialog ()
    </script>
    </body>

    This is very helpful. Thanks.

  • Itunes store does not show on ipad when i launch app its pages are blank

    itunes store does not show on ipad when i launch app its pages are blank

    This indicates there might be an issue with the time configuration on the device.
    Go to Settings > General > Date and time. See if Set automatically is switched to on. If so, switch to off and ensure you set date, time and time zone manually and correctly.
    Power off the device (hold sleep button for four seconds, then slide to power off), then power back on.
    If issue persists, switch Set automatically back to on, and if not resolved then restore the device.

  • Is there any succesful answer to the many questions about not functioning wifi after installing mountain lion? Also when awakes after sleep MB frezees, wifi can´t get active, dock does not show, in general MB does´t respond. All this in mountain lion.

    When awakes after sleep MB frezees, wifi can´t get active, dock does not show, in general MB does´t respond. All this after I installed an update of mountain lion.

    Try starting up in Safe Mode and see if things are better.
    http://support.apple.com/kb/ht1455

  • Why does my iPad show no sim when turning on cellular data?

    Why does my iPad show no sim when turning on cellular data?

    Check the right and left sides of your iPad for a small hole the size of a paper clip (remove your smart cover if you have one).  If you see this, then you have the wifi + cellular model.  If you do, use a paper clip to remove the sim tray (or the sim removal tool that came with your iPad if you have it) as shown in the image below. 
    If the tray has a sim card in it, push the sim tray back in to re-seat it in the side of the iPad, then turn it on to see if the error message re-appears.  If it re-appears, take it to a Verizon store and have them give you a new sim card.
    If you have a sim tray but it is empty, you'll need to go to a Verizon store to get a sim card for it.

  • Message.app Version 7.0.1 (3322) does'nt show my picture when I chat from my mac Lion 10.8.5

    Message.app Version 7.0.1 (3322) does'nt show my picture when I chat from my mac Lion 10.8.5
    But my email show my picture.

    Thank you for your prompt reply, Niel.
    The website that I will use supports the following browsers:
    Internet Explorer v.8
    Internet Explorer v.9
    Internet Explorer v.10
    Internet Explorer v.11
    Mozilla Firefox v.32
    Google Chrome v.37, v.39
    Safari v.5.1.7 (PC) and v.7.0.6 (iOS)
    Other browsers and versions may not function well with the website. Therefore, they recommend to use one of the above-mentioned browsers.
    Can I download any of these browsers to my MacBook Air if I already have a Safari browser? (can I have 2 browsers and which of those do you recommend that I download to my computer)?
    Thanks again!

Maybe you are looking for