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|t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|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

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

  • 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

  • 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 use different languages in my daily activities, when typing other than English Mac does not recognize them, is there anyway can Mac stop suggesting or automatically correcting me?

    I use different languages in my daily activities, when typing other than English Mac does not recognize them, is there anyway can Mac stop suggesting or automatically correcting me?

    Is this a problem with the computer or with the word processor? MS Word for example seems to think its grammar and spelling are better than mine - they are not. You have to go into MS Word preferences and uncheck all the useless "help" it wants to provide.

  • Script language (ex: Perl) in LabVIEW

    Hello,
    It is possible to implement script language in LabVIEW?
    Currently i have only one idea, install on computer Perl and use
    Communications\System exec.vi.
    Other variants?
    Deniss Karai
    [email protected]

    LabVIEW currently supports script nodes to interface with Matlab and HiQ. If
    you think that it would benefit to have other script interfaces (like TCL
    and Perl) you can submit your request to NI on the LabVIEW wish list.
    Jean-Pierre Drolet
    "Kevin B. Kent" a écrit dans le message news:
    [email protected]..
    > Danny Thomson wrote:
    >
    > > Hi Jens-Achim,
    > >
    > > I have tried the link you suggested and it does not work for me, could
    you
    > > please
    > > let meb know if there is one that still works. I am new to Labview but
    used
    > > Tcl/Tk on Unix for a long
    > > time. I would be very grateful for some type of pointer how to setup the
    > > interface
    > >
    > > regards
    > >
    > > Danny
    > >
    > > Jens-Achim Ke
    ssel wrote:
    > >
    > > > Hi,
    > > >
    > > > You should have a look at
    > > > http://dev.ajubasolutions.com/
    > > > The TCL shell is a very powerful bytecompiling interpreter, that can
    be
    > > > implemented using simple DLL/LIB-calls. It's free.
    >
    > You have a few options.
    > 1) Use the SysExec and Wish (for TCL, Perl may have similar) to call
    scripts.
    > 2) Make a DLL (or platform equivalent) and use the Call Library Function.
    > 3) I saw an ad for something called LabScript but I can not find it now.
    > Kevin Kent
    >

  • Why does 'Guest User' appear in a foreign language when logged in as guest?

    Why does 'Guest User' appear in a foreign language when logged in as guest? It's not a major problem but it would be nice to be able to fix it, and to understand how it happened.
    Everything else is in English (or set to English) as far as I can see, and my Macbook is only a couple of weeks old. All system updates have been performed and permissions have been repaired.
    It displays it in Finnish (Suomi) as 'Vierastilin käyttäjä' only when logged in, in the System Preferencess user list and apple menu (where you would normally select 'Log Out Guest User'). I cant find anyone else with the same problem online. I am in the UK, purchased the Macbook on the UK Apple Store online, and I have never been to Finland or selected anything to do with Finland or its language. Everything else is in English.
    I should add that 'Vierastilin' showed up instead of 'Guest User' on the OSX login screen on the first day I had the Macbook, but this seemed to fix itself somehow soon after.
    A couple of photos to illustrate the problem that still exists are attached.

    Thanks for the reply. I only have English - Primary but I guess I could add Finland and then delete it...
    Okay, tried that, lots of variations including deleting all other languages and only using Finnish, and then using only British English etc - when guest is in Finnish the whole lot becomes Finnish/Suomi (see attached photos to compare with the ones above) - then when you delete Finnish and go back to English, everything is Englisg apart from 'Vierastilin käyttäjä' as above.
    Any other ideas where it stores that info - is there a dodgy preference file somewhere which needs zapping?

  • I created a script to add logos to photos at a club and now when I run the script, the script runs but does not actually place anything on the photo itself.  What's going on?

    I created a script to add logos to photos at a club and now when I run the script, the script runs but does not actually place anything on the photo itself.  What's going on?

    He meant post it here, of course, Louie!  How on Earth would you post it "on Photoshop" ? 
    Thank you for the belly laugh. 

  • When does the Java main(String args[]) method exit?

    Hi all,
    I and my colleagues want to know, when does the main() method exit?
    we wrote a small code as follows:
    import java.awt.*;
    public class Test {
    public static void main(String[] args) {
    Frame f = new Frame("hi");
    f.show();
    System.out.println("after show");
    and ran the program, in which case I could see the printed message "after show", but although there is no code after the System.out.println(), the Java virtual machine does not exit and waits for the Frame to close.
    My question is has the main method exited in this case? since it clearly shows that it does not have any more code to execute. Does java create the main method as a thread or as a process?
    regards,
    Harshad

    To make your application terminate you need to add code to cause the AWT thread to handle the termination. In your code, before f.show(), try:
    f.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        dispose();
      public void windowClosed(WindowEvent e) {
        System.exit(0);
    });Now, at least you can click on the little "X" on the upper right-hand corner of the Frame (at least in Win95/98/NT) environments) to cause your application to receive a window closing event. It is also possible to add a menu with an option to exit; in that case I'd use an EventQueue to cause a window closing event to be sent.

  • How can i unlock the service with AT&T or other carrier? when i was in overseas ?how much does it cost to unlock?

    how can i unlock the service with AT&T or other carrier? when i was in overseas ?how much does it cost to unlock?

    The only way to unlock a locked device is through the carrier. If it is locked to AT&T, you will have to contact them to get it unlocked.
    Cheers,
    GB

  • I opened my account on the MacAir and have the new Mountain Lion showing i purchased. When I open my account on my other two machines it does not show. Any suggestions on why or how to fix? iMac and Mac Pro Thanks

    I opened my account on the MacAir and have the new Mountain Lion showing i purchased. When I open my account on my other two machines it does not show. Any suggestions on why or how to fix?
    iMac and Mac Pro
    Thanks

    SADLY  not as i downloaded an upgrad to my original PAGES/
    i have in the meantim had to open www.icloud. then from there import the file that i am working on and then check on ipad if it uploaded/ yes it did.
    but what a waste of time as it doesn not save any changes done automatically back in the cloud....
    i am now downloading the new LION and hope that it will fix the problem
    i cant find any other way. I was lead to believe that you wrote, it saved automatically, on to the cloud, you then opened anohter device in anotother country even, and the new file was there, waiting, in its latest version.......
    and the same magic was supposed to happen in reverse.
    It doesn't/
    if i have to open a browser, go to www.icloud....why on earth did they not just leave us an icon to drop it in in that case?
    I hope the new lion will help resolve the isssue/
    any other ideas> keep em coming...thank you so much.

  • What does the category "Other" refer to when viewing Macbook's storage?

    Less than two months ago I purchased a Macbook Air 13 inch. I already have about 8 gb music and 14 gb of movies. But I have nearly 17 gb of things stored under the "other" category. I can't, to my knowledge, click on this and see what this category contains.
    So how can I have this much stuff in this "other" category?
    What does this "other" category refer to? What kind of files are stored here?
    Is it a backup of some sort? And if so, don't you have to authorize a backup because I don't believe I did, but can't be certain.
    I've downloaded Adobe, Quicktime, Microsoft Office, and Vuze, but aren't these stored under Apps, not the "other" category?
    This seems like a lot and I don't want to take up uncessary space.
    Guidance is very much appreciated.
    Thanks!

    Some of that could be photos deleted from iPhoto but still present on your machine until you empty iPhoto Trash. e-mail attachments deleted from mail, but still on your machine until you empty e-mail trash, iMovie clips deleted but still on your machine until you empty iMovie Trash (all those programs do not put files into the trash can on your desktop... they have an "integrated" trash of their own that must be emptied by the user). iTunes media files that you "deleted" but did not allow iTunes to put in the trash.
    Downloaded files

  • How to create a scripting language in java?

    Hello,
    All that I want to do is to create a scripting language in java. I�m familiar with javacc, jsr223 and other things but don�t know how to start. The language syntax is java 5 syntax with some change and I want to generate java source code from small scripts. In fact I don�t know how other languages (like groovy) are created.
    I hope you can show me the required steps.
    Looking forward to hear from you.
    Thanks.

    That's all, huh?
    For a start, generally when I hear "scripting language" I'm thinking interpretter, not a system which creates compiled (or compilable) code.
    I get the impression that what you're talking about is what I'd call a "preprocessor" language, some extra syntax added to java which the preprocessor renders into ordinary java.
    As far as complexity is concerned, much depends on how deeply involved the extra syntax is with the embedded ordinary Java. Does you preprocessor need to understand the java, or is it just embedded as text? How easilly identified are your preprocesor statments? It's a lot easier to do this if preprocessor lines are instantly identifiable from Java code (e.g. start with a #).
    Basically the stages are always the same;
    1) Lexical analysis i.e. picking out words, operators, numbers, quoted strings.
    2) Construct a syntax tree.
    3) Generate code (in this case Java).
    Now, in this case, some of the nodes in the syntax tree may simply be chunks of undigested Java.

  • Script language for LAN, WAN, wireless?

    which scripting language are used for LAN, WAN, wireless to automate things etc? python, shell scripting? is there a tutorial available to i can refer to?

    It depends on what you are trying to do.
    Shell scripting is quite limited in what it can do when compared to a more general purpose scripting language such as Perl or Python. Nothing wrong with that and I have used shell scripts a lot when I was a Unix admin but for networking most of what I have seen in terms of script languages has been TCL, Perl and Python.
    You can use scripts to automate logging on to devices and executing commands, basically the script does what you would type in. To do this you can use Expect and Perl, Python and TCL all have Expect functionality (Expect was originally an extension to TCL).
    But you are still just basically automating what you yourself would type and you would run these scripts from a server, PC etc although if you have a lot of devices you need to update with the same details it can save a considerable amount of time and just as importantly if the script works it removes the human error element of configuring multiple devices and perhaps getting a few wrong.
    The next step is EEM where the device has an inbuilt TCL interpreter which means you can write applets or scripts that are stored on the device and can respond to specific things happening eg. if an interface goes up or down or the routing table is changed you can execute a set of commands.
    There is an EEM forum on here.
    I believe also that Nexus switches have an inbuilt Python interpreter which allows pretty much the same thing.
    The advantages of the interpreter being on the device is that it saves a lot of extra coding and you can get more information because Cisco have added libraries to those interpreters which are specific to the device and which provide you with a standard set of APIs which your script can use.
    As I said scripting can save a lot of time and there is an argument that all network engineers should at least now some scripting and this has become more of a hot topic with the promise of what SDN can achieve in the future although it has to be said there are already configuration management tools out there which make use of the above languages.
    It really depends on what you are trying to do and how much you want to automate things.
    In terms of tutorials etc. for all the major scripting languages there are a lot of online tutorials and books you can use.
    In addition there are sites where you can run your scripts online but to be honest it is easier to simply download the interpreter to your PC, laptop etc. and you should be able to find a compiled version of the interpreter for whatever OS you are running.
    Jon

  • Script fails when passing values from pl/sql to unix variable

    Script fails when passing values from pl/sql to unix variable
    Dear All,
    I am Automating STATSPACK reporting by modifying the sprepins.sql script.
    Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statspack report and emails it to me.
    I am storing the snapshot ids in the database and when running the report picking up the recent ids(begin snap and end snap).
    From the sprepins.sql script
    variable bid number;
    variable eid number;
    begin
    select begin_snap into :bid from db_snap;
    select end_snap into :eid from db_snap;
    end;
    This fails with the following error:
    DB Name DB Id Instance Inst Num Release Cluster Host
    RDMDEVL 3576140228 RDMDEVL 1 9.2.0.4.0 NO ibm-rdm
    :ela := ;
    ERROR at line 4:
    ORA-06550: line 4, column 17:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    &lt;a string literal with character set specification&gt;
    &lt;a number&gt; &lt;a single-quoted SQL string&gt; pipe
    The symbol "null" was substituted for ";" to continue.
    ORA-06550: line 6, column 16:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev su
    But when I change the select statements below the report runs successfully.
    variable bid number;
    variable eid number;
    begin
    select '46' into :bid from db_snap;
    select '47' into :eid from db_snap;
    end;
    Even changing the select statements to:
    select TO_CHAR(begin_snap) into :bid from db_snap;
    select TO_CHAR(end_snap) into :eid from db_snap;
    Does not help.
    Please Help.
    TIA,
    Nischal

    Hi,
    could it be the begin_ and end_ Colums of your query?
    Seems SQL*PLUS hs parsing problems?
    try to fetch another column from that table
    and see if the error raises again.
    Karl

Maybe you are looking for

  • ICloud child account - Can't log into Apple ID or iCloud with child account

    Nightmare!  Created three kids accounts.  Loaded the ID on iTouchs.  Then went to https://appleid.apple.com/account/home to change info... couldn't log in. I also couldn't log into iCloud with the new ID's. After a call to apple (no help) and thinkin

  • Profit center in Miro

    Dear friends, When I make a Invoice verification entry for purchase in MIRO, the system is generating an invoice entry along with withholding tax. But the profit center is not picked up in the line item of TDS GL account. In F-43, it is allowing me t

  • Where is the data accessed by rwservlet ?

    All - Do you have any idea where the 10gASR2 reports servlet rwservlet gets its information? I'm particularly interested in the details behind the Application Server Control page http://midtier.domain:7777/reports/rwservlet/showjobs?queuetype=past. M

  • How do I measure temperature from 4 RTDs simultaneously?

    I am trying to set up a systerm that requires multiple temperature measurements. I am able to make one RTD measure. But if I mirror the same code to create two measurements, i am getting an Error - 50103 "the specified resource is reserved". I have j

  • Insert PDF from EchoSign

    I am attempting to 'insert' PDF files that I sent out and received through Abobe EchoSign.  The insert feature is not live.  I suspect that the 'secured' nature of the file is the reason; however, I am the author/manager of the file!  Any help is wel