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

Home » Public Forums » archive » Re: A Challenge?
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
Re: A Challenge? [message #54690] Tue, 10 July 2007 10:53
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Richard G. French wrote:
>
>
> On 7/10/07 12:26 PM, in article
> 1184084767.325010.57670@w3g2000hsg.googlegroups.com, "Conor"
> <cmancone@gmail.com> wrote:
>
>> original source here: http://astro.ufl.edu/~cmancone/hello.pro
>>
> When I try to execute this, I get the following error message:
>
>
> IDL> .run hello.pro
> IDL> hello
>
> nirpts,tgnirtyb(rt(e))74
> ^
> % Syntax error.
>
>

Huh, how 'bout that? I get the following:

IDL> .run hello.pro
IDL> hello
segfault: code obfuscation is soooo 1990s
symbolic stack dump follows
0000 0400 5b07 15cd 0000 0400 0000 0800
0000 0200 0000 0100 0000 0800 0000 2000
0000 1f00 0000 0600 0000 bd02 0000 0600
0000 0500 0000 0300 0000 2600 0000 0600
0000 2000 0000 8017 f63f 6666 6666 6666
1b40 3333 3333 3333 1b40 33b3 3333 3333
2540 6666 6666 6666 3240 33b3 3333 3333
3340 9959 9999 9a99 3540 cc4c cccc cdcc
3640 283c c2f5 5c8f 3740 cccc cccc cdcc
3f40 6666 6666 6666 4240 0040 0000 0000
4240 0080 0000 0000 4940 6626 6666 6666
4a40 6666 6666 6666 4a40 c4c0 a59b 54e3
4b40 3333 3333 3333 4b40 5178 85eb b81e
4b40 00c0 0000 0000 4c40 1ea5 51b8 85eb
4d40 33b3 3333 3333 4e40 0456 9318 bc74
.... etc etc....

:o)

--
Paul van Delst Ride lots.
CIMSS @ NOAA/NCEP/EMC Eddy Merckx
Re: A Challenge? [message #54691 is a reply to message #54690] Tue, 10 July 2007 10:49 Go to previous message
Conor is currently offline  Conor
Messages: 138
Registered: February 2007
Senior Member
On Jul 10, 1:43 pm, Conor <cmanc...@gmail.com> wrote:
> On Jul 10, 1:35 pm, "Richard G. French" <rfre...@wellesley.edu> wrote:
>
>
>
>> On 7/10/07 12:26 PM, in article
>> 1184084767.325010.57...@w3g2000hsg.googlegroups.com, "Conor"
>
>> <cmanc...@gmail.com> wrote:
>>> original source here:http://astro.ufl.edu/~cmancone/hello.pro
>
>> When I try to execute this, I get the following error message:
>
>> IDL> .run hello.pro
>> IDL> hello
>
>> nirpts,tgnirtyb(rt(e))74
>> ^
>> % Syntax error.
>
>> So, I can't figure out how it works since it doesn't seem to work (IDL6.3,
>> PowerBook G4)
>
>> Suggestions? Seems like a byte swap problem to me.
>
>> Dick French
>
> Yup, bite swap error. Sorry everyone on mac :( I wrote it on linux.


For those on mac (and similar machines):

www.astro.ufl.edu/~cmancone/hello_mac.pro
Re: A Challenge? [message #54692 is a reply to message #54691] Tue, 10 July 2007 10:43 Go to previous message
Conor is currently offline  Conor
Messages: 138
Registered: February 2007
Senior Member
On Jul 10, 1:35 pm, "Richard G. French" <rfre...@wellesley.edu> wrote:
> On 7/10/07 12:26 PM, in article
> 1184084767.325010.57...@w3g2000hsg.googlegroups.com, "Conor"
>
> <cmanc...@gmail.com> wrote:
>> original source here:http://astro.ufl.edu/~cmancone/hello.pro
>
> When I try to execute this, I get the following error message:
>
> IDL> .run hello.pro
> IDL> hello
>
> nirpts,tgnirtyb(rt(e))74
> ^
> % Syntax error.
>
> So, I can't figure out how it works since it doesn't seem to work (IDL6.3,
> PowerBook G4)
>
> Suggestions? Seems like a byte swap problem to me.
>
> Dick French

Yup, bite swap error. Sorry everyone on mac :( I wrote it on linux.
Re: A Challenge? [message #54693 is a reply to message #54692] Tue, 10 July 2007 10:35 Go to previous message
Richard French is currently offline  Richard French
Messages: 173
Registered: December 2000
Senior Member
On 7/10/07 12:26 PM, in article
1184084767.325010.57670@w3g2000hsg.googlegroups.com, "Conor"
<cmancone@gmail.com> wrote:

> original source here: http://astro.ufl.edu/~cmancone/hello.pro
>
When I try to execute this, I get the following error message:


IDL> .run hello.pro
IDL> hello

nirpts,tgnirtyb(rt(e))74
^
% Syntax error.


So, I can't figure out how it works since it doesn't seem to work (IDL6.3,
PowerBook G4)

Suggestions? Seems like a byte swap problem to me.

Dick French
Re: A Challenge? [message #54695 is a reply to message #54693] Tue, 10 July 2007 09:43 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ken Mankoff writes:

> There was a code obfuscation thread about 3 or 4 (or maybe even 6 or 7
> now?) years ago on this newsgroup. The strange thing is I cannot find
> it searching under "obfuscate" or "obfuscation". But there was even a
> dancing cow ASCII graphic if I remember correctly (nothing under 'moo'
> or 'cow' comes up either).

The only thing I can remember about it is that an
astronomer had the best entry, and it was taken directly
from a program he was currently working on. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: A Challenge? [message #54696 is a reply to message #54695] Tue, 10 July 2007 09:36 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Conor writes:

> first one to figure out how it works wins

You won't have very good luck with contests, I don't
think, unless there are prizes. :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: A Challenge? [message #54697 is a reply to message #54696] Tue, 10 July 2007 09:34 Go to previous message
mankoff is currently offline  mankoff
Messages: 131
Registered: March 2004
Senior Member
There was a code obfuscation thread about 3 or 4 (or maybe even 6 or 7
now?) years ago on this newsgroup. The strange thing is I cannot find
it searching under "obfuscate" or "obfuscation". But there was even a
dancing cow ASCII graphic if I remember correctly (nothing under 'moo'
or 'cow' comes up either).

-k.
Re: A Challenge? [message #54699 is a reply to message #54697] Tue, 10 July 2007 09:31 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Jul 10, 11:23 am, Conor <cmanc...@gmail.com> wrote:
> pro hello
> idl = $
> '----- |\ | ' + $
> ' | | \ | ' + $
> ' | | )| ' + $
> ' | | / | ' + $
> '----- |/ |___'
> pt = transpose(rebin(reform(byte(idl),5,14),1,14))
> dni = [$
> [ 8, 5, -1, 7, -9, 3],$
> [ 10, -7, 3, 3, 9, -8],$
> [ 6, 5, 6, -1, 7, -9],$
> [ 7, 11, 14, 12, -4, -8],$
> [ 0, 10, 10, -9, 1, -7],$
> [-11, 0, 7, -5, 7,-11],$
> [ 6, 0, -6, -5, 1,-11],$
> [ 10, -3, 4, -3, 3, -3] ]
> tp = float(pt[abs(dni)])
> tp[where(dni ne 0)] *= (dni[where(dni ne 0)]/abs(dni[where(dni ne
> 0)]))
> tr47 = transpose(rebin(tp,1,8)*6)
> a=[1852404336,1953705076,1735289202,1954112040,1920215141,69 0566964]
> res=execute(string(byte(a,0,24)))
> end
>
> first one to figure out how it works wins. I expect it won't take
> very long though :( This is my first attempt at obfuscated anything,
> and I don't think idl is very good for obfuscated programming. I'm
> hoping though that one of the experts out there might prove me wrong
> about that last point :)

Cool... Have you got a lot of time on your hands?
Re: A Challenge? [message #54701 is a reply to message #54699] Tue, 10 July 2007 09:26 Go to previous message
Conor is currently offline  Conor
Messages: 138
Registered: February 2007
Senior Member
original source here: http://astro.ufl.edu/~cmancone/hello.pro
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: storing spectra into HDF
Next Topic: Re: reading multiple data types into arrays

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

Current Time: Wed Oct 08 13:52:51 PDT 2025

Total time taken to generate the page: 0.00491 seconds