comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » my favourite dot command
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
my favourite dot command [message #63374] Fri, 07 November 2008 00:52 Go to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Hi

I love to use often on daily work with idl the following dot commands:

.edit (you can forget where you stored your famous program but
you know it is in the search path and bingo it get's it)
.reset (idl tells sometimes nonsense error messages or did things
which can't be real or at least I do believe this. That command
helps immediately to reiinitialize my idl session and I can go
on to try again)


cheers
Reimar
Re: my favourite dot command [message #63483 is a reply to message #63374] Fri, 07 November 2008 13:01 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Nov 7, 2:45 pm, David Fanning <n...@dfanning.com> wrote:
> Vince Hradil writes:
>> If you're testing the vm code on your machine and you don't explicitly
>> tell IDL to use the vm, it will take a license, no?
>
> I've been running these on my wife's machine, and
> no license there at all.
>
> To be fair, I have never, ever used the code in
> FSC_PSCONFIG__DEFINE that contained the EXECUTE
> commands, except when I was testing the functionality.
> (It has to do with font information, which I handle
> differently in PostScript.) So...I suppose it could
> be there and not work, but the point is, I compiled
> and produced the save file without problems.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

I'm not surprised at that - the EXECUTE() won't fail in the vm until
the vm tries to "execute" it. If you code branches somewhere else
every time, then that's fine as far as the vm is concerned. The code
will compile fine, too, since it has no syntax errors.
Re: my favourite dot command [message #63484 is a reply to message #63374] Fri, 07 November 2008 12:45 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Vince Hradil writes:

> If you're testing the vm code on your machine and you don't explicitly
> tell IDL to use the vm, it will take a license, no?

I've been running these on my wife's machine, and
no license there at all.

To be fair, I have never, ever used the code in
FSC_PSCONFIG__DEFINE that contained the EXECUTE
commands, except when I was testing the functionality.
(It has to do with font information, which I handle
differently in PostScript.) So...I suppose it could
be there and not work, but the point is, I compiled
and produced the save file without problems.

Cheers,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: my favourite dot command [message #63485 is a reply to message #63374] Fri, 07 November 2008 12:11 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Nov 7, 1:22 pm, David Fanning <n...@dfanning.com> wrote:
> Vince Hradil writes:
>> In particular - search gives the following for "execute(" in
>> coyoteprograms:
>> display.pro
>> fsc_psconfig__define.pro (2 matches)
>> ps_form.pro (5 matches)
>> xwindow.pro (8 matches)
>
>> Are you using any of these?
>
> Ok, there were a couple of EXECUTE commands in
> FSC_PSCONFIG__DEFINE. They are gone now. :-)
>
>   http://www.dfanning.com/programs/fsc_psconfig__define.pro
>
> The other three programs are all ancient programs
> and are no longer distributed in the Coyote Library.
> (Nor have they been for a *long* time.)
>
> Thanks for the heads-up on this. But I've been making
> VM code for two weeks without running into any problems,
> so I'm not sure what is up with the question that started
> this thread. And, believe me, ALL my VM programs have
> PSCONFIG in them! ;-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

If you're testing the vm code on your machine and you don't explicitly
tell IDL to use the vm, it will take a license, no?
Re: my favourite dot command [message #63486 is a reply to message #63374] Fri, 07 November 2008 11:22 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Vince Hradil writes:

> In particular - search gives the following for "execute(" in
> coyoteprograms:
> display.pro
> fsc_psconfig__define.pro (2 matches)
> ps_form.pro (5 matches)
> xwindow.pro (8 matches)
>
> Are you using any of these?

Ok, there were a couple of EXECUTE commands in
FSC_PSCONFIG__DEFINE. They are gone now. :-)

http://www.dfanning.com/programs/fsc_psconfig__define.pro

The other three programs are all ancient programs
and are no longer distributed in the Coyote Library.
(Nor have they been for a *long* time.)

Thanks for the heads-up on this. But I've been making
VM code for two weeks without running into any problems,
so I'm not sure what is up with the question that started
this thread. And, believe me, ALL my VM programs have
PSCONFIG in them! ;-)

Cheers,

David

--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: my favourite dot command [message #63490 is a reply to message #63374] Fri, 07 November 2008 11:10 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Nov 7, 12:56 pm, Vince Hradil <vincehra...@gmail.com> wrote:
> On Nov 7, 12:43 pm, David Fanning <n...@dfanning.com> wrote:
>
>
>
>> gsever writes:
>>> I am on RHEL v5.2, and with the latest IDL Workbench update v7.0.3. It
>>> is working here :)
>
>>> Check the screenshot:
>
>>> http://img384.imageshack.us/my.php?image=3Dsearchra1.png
>
>>> Search window is opened by clicking the flashlight symbol.
>
>> Ah, I missed the flashlight. :-)
>
>> Yes, I guess it works, but it didn't find all those
>> Execute's Vince is talking about. :-(
>
>> Cheers,
>
>> David
>
>> --
>> David Fanning, Ph.D.
>> Coyote's Guide to IDL Programming (www.dfanning.com)
>> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>
> Do I have some outdated code on my machine?  Never!...

display.pro, line 7:

Pro Display_Event, event
;
; Very simple event handler. Get array, execute the "command".
;
Widget_Control, event.top, Get_UValue=array
Widget_Control, event.id, Get_UValue=command
result = Execute(command)
END ;---------------------------------------------------------


fsc_psconfig__define.pro, line 468 and line 471:

values = self.fontnameID->GetValues()
selection = self.fontnameID->GetSelection()
index = Where(StrUpCase(values) EQ StrUpCase(selection))
FOR j=1,7 DO BEGIN
cmd = "self." + values[j] + " = 0"
ok = Execute(cmd)
IF NOT ok THEN ok = Dialog_Message("Problem executing statment:
" + cmd)
ENDFOR
IF index[0] NE 0 THEN ok = Execute("self." + values[index[0]] + " =
1")
self.fontnameSet = values[index[0]]

ps_form.pro, line 339 (plus 4 more):

FOR j=0,N_Elements(names)-1 DO BEGIN
IF names(j) NE 'YOFF' THEN BEGIN
str = names(j) + '= defaults.' + names(j)
dummy = Execute(str)
ENDIF
ENDFOR

xwindow.pro, line 637 (plus 7 more):

'Create PostScript File': BEGIN
keywords = info.ps
thisDevice = !D.NAME
TVLCT, r, g, b, /GET
SET_PLOT, 'PS'
!P.Background = info.background
TVLCT, info.r, info.g, info.b, info.bottom
DEVICE, _EXTRA=keywords
ok = EXECUTE(plotObj.thisCommand)
Re: my favourite dot command [message #63492 is a reply to message #63374] Fri, 07 November 2008 10:56 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Nov 7, 12:43 pm, David Fanning <n...@dfanning.com> wrote:
> gsever writes:
>> I am on RHEL v5.2, and with the latest IDL Workbench update v7.0.3. It
>> is working here :)
>
>> Check the screenshot:
>
>> http://img384.imageshack.us/my.php?image=3Dsearchra1.png
>
>> Search window is opened by clicking the flashlight symbol.
>
> Ah, I missed the flashlight. :-)
>
> Yes, I guess it works, but it didn't find all those
> Execute's Vince is talking about. :-(
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Do I have some outdated code on my machine? Never!...
Re: my favourite dot command [message #63495 is a reply to message #63374] Fri, 07 November 2008 10:43 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
gsever writes:

> I am on RHEL v5.2, and with the latest IDL Workbench update v7.0.3. It
> is working here :)
>
> Check the screenshot:
>
> http://img384.imageshack.us/my.php?image=3Dsearchra1.png
>
> Search window is opened by clicking the flashlight symbol.

Ah, I missed the flashlight. :-)

Yes, I guess it works, but it didn't find all those
Execute's Vince is talking about. :-(

Cheers,

David

--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: my favourite dot command [message #63498 is a reply to message #63374] Fri, 07 November 2008 09:25 Go to previous message
gsever is currently offline  gsever
Messages: 28
Registered: August 2008
Junior Member
I am on RHEL v5.2, and with the latest IDL Workbench update v7.0.3. It
is working here :)

Check the screenshot:

http://img384.imageshack.us/my.php?image=searchra1.png

Search window is opened by clicking the flashlight symbol.

On Nov 7, 11:05 am, David Fanning <n...@dfanning.com> wrote:
> gsever writes:
>> Although it is not a dot command, I would like to point the "Classic
>> Search" feature of Eclipse IDE. This helps to search text within all
>> the files in the current workspace. It is activated by clicking Window/
>> Show View/Other/General/Classic Search.
>
> I'm working on a LINUX machine this morning, and this doesn't
> seem to work. :-(
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: my favourite dot command [message #63499 is a reply to message #63374] Fri, 07 November 2008 09:24 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Nov 7, 10:45 am, gsever <gokhanse...@gmail.com> wrote:
> On Nov 7, 10:00 am, skydome <sboli...@gmail.com> wrote:> Also give CTRL+Shift+R a try in the IDE, to open a resource in any
>> project within your workspace.  It helps to find files too.  The
>> dialog updates while you type and you can use wildcard characters.
>
>> -scott
>
>> On Nov 7, 1:52 am, Reimar Bauer <R.Ba...@fz-juelich.de> wrote:
>
>>> Hi
>
> Another nice trick Scott.
>
> Although it is not a dot command, I would like to point the "Classic
> Search" feature of Eclipse IDE. This helps to search text within all
> the files in the current workspace. It is activated by clicking Window/
> Show View/Other/General/Classic Search.
>
>
>
>>> I love to use often on daily work with idl the following dot commands:
>
>>>  .edit (you can forget where you stored your famous program but
>>>         you know it is in the search path and bingo it get's it)
>>>  .reset (idl tells sometimes nonsense error messages or did things
>>>          which can't be real or at least I do believe this. That command
>>>          helps immediately to reiinitialize my idl session and I can go
>>>          on to try again)
>
>>> cheers
>>> Reimar
>
>

In particular - search gives the following for "execute(" in
coyoteprograms:
display.pro
fsc_psconfig__define.pro (2 matches)
ps_form.pro (5 matches)
xwindow.pro (8 matches)

Are you using any of these?
Re: my favourite dot command [message #63500 is a reply to message #63374] Fri, 07 November 2008 09:21 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Nov 7, 11:05 am, David Fanning <n...@dfanning.com> wrote:
> gsever writes:
>> Although it is not a dot command, I would like to point the "Classic
>> Search" feature of Eclipse IDE. This helps to search text within all
>> the files in the current workspace. It is activated by clicking Window/
>> Show View/Other/General/Classic Search.
>
> I'm working on a LINUX machine this morning, and this doesn't
> seem to work. :-(
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Try CTRL+H
Re: my favourite dot command [message #63502 is a reply to message #63374] Fri, 07 November 2008 09:05 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
gsever writes:

> Although it is not a dot command, I would like to point the "Classic
> Search" feature of Eclipse IDE. This helps to search text within all
> the files in the current workspace. It is activated by clicking Window/
> Show View/Other/General/Classic Search.

I'm working on a LINUX machine this morning, and this doesn't
seem to work. :-(

Cheers,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: my favourite dot command [message #63503 is a reply to message #63374] Fri, 07 November 2008 08:45 Go to previous message
gsever is currently offline  gsever
Messages: 28
Registered: August 2008
Junior Member
On Nov 7, 10:00 am, skydome <sboli...@gmail.com> wrote:
> Also give CTRL+Shift+R a try in the IDE, to open a resource in any
> project within your workspace.  It helps to find files too.  The
> dialog updates while you type and you can use wildcard characters.
>
> -scott
>
> On Nov 7, 1:52 am, Reimar Bauer <R.Ba...@fz-juelich.de> wrote:
>
>
>
>
>
>> Hi
Another nice trick Scott.

Although it is not a dot command, I would like to point the "Classic
Search" feature of Eclipse IDE. This helps to search text within all
the files in the current workspace. It is activated by clicking Window/
Show View/Other/General/Classic Search.

>
>> I love to use often on daily work with idl the following dot commands:
>
>>  .edit (you can forget where you stored your famous program but
>>         you know it is in the search path and bingo it get's it)
>>  .reset (idl tells sometimes nonsense error messages or did things
>>          which can't be real or at least I do believe this. That command
>>          helps immediately to reiinitialize my idl session and I can go
>>          on to try again)
>
>> cheers
>> Reimar
>
>
Re: my favourite dot command [message #63509 is a reply to message #63374] Fri, 07 November 2008 08:00 Go to previous message
sbolin42 is currently offline  sbolin42
Messages: 10
Registered: December 2007
Junior Member
Also give CTRL+Shift+R a try in the IDE, to open a resource in any
project within your workspace. It helps to find files too. The
dialog updates while you type and you can use wildcard characters.

-scott

On Nov 7, 1:52 am, Reimar Bauer <R.Ba...@fz-juelich.de> wrote:
> Hi
>
> I love to use often on daily work with idl the following dot commands:
>
>  .edit (you can forget where you stored your famous program but
>         you know it is in the search path and bingo it get's it)
>  .reset (idl tells sometimes nonsense error messages or did things
>          which can't be real or at least I do believe this. That command
>          helps immediately to reiinitialize my idl session and I can go
>          on to try again)
>
> cheers
> Reimar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Anyone attending SEG 2008 in Vegas?
Next Topic: How to add a header/info file for a matrix to become a FITS file?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:51:17 PDT 2025

Total time taken to generate the page: 0.00624 seconds