POV-Ray : Newsgroups : povray.binaries.images : DNA Encryption Server Time
16 Aug 2024 16:21:14 EDT (-0400)
  DNA Encryption (Message 2 to 11 of 11)  
<<< Previous 1 Messages Goto Initial 10 Messages
From: Deaken
Subject: Re: DNA Encryption
Date: 7 Feb 2002 18:04:43
Message: <3C630866.FC3C5476@sw-tech.com>
Grey Knight wrote:
> 
> I wrote a little macro to turn an arbitrary string into a sequence
> containing only the characters A,C,G & T (The 4 bases of DNA). The next
> logical step was to make a macro that takes such a string and generates
> a DNA model.
> Here is an example; a special prize will go to the first person to
> decipher it (the encoding process is completely reversible). You may
> refer to the text2dna code which ended up in the Ctrl+V thread in p.o-t
> if you wish.

Sorry, where's the code?  I tried a search in my newsreader and on the
news.povray.org website, and couldn't find it.

Deaken


Post a reply to this message

From: 25ct
Subject: Re: DNA Encryption
Date: 7 Feb 2002 18:57:16
Message: <3c63145c@news.povray.org>
"Deaken" <dwy### [at] sw-techcom> wrote in message
news:3C630866.FC3C5476@sw-tech.com...

> Sorry, where's the code?  I tried a search in my newsreader and on the
> news.povray.org website, and couldn't find it.

     It's in 'Off-Topic' in my "Reply to me" thread Deaken, near the bottom.

   ~Steve~


>
> Deaken


Post a reply to this message

From: Deaken
Subject: Re: DNA Encryption
Date: 8 Feb 2002 03:16:42
Message: <3C6389C7.7D62F409@sw-tech.com>
25ct wrote:
> 
> "Deaken" <dwy### [at] sw-techcom> wrote in message
> news:3C630866.FC3C5476@sw-tech.com...
> 
> > Sorry, where's the code?  I tried a search in my newsreader and on the
> > news.povray.org website, and couldn't find it.
> 
>      It's in 'Off-Topic' in my "Reply to me" thread Deaken, near the bottom.

Right.  Thanks.

Deaken


Post a reply to this message

From:
Subject: Re: DNA Encryption
Date: 8 Feb 2002 03:26:20
Message: <vn276u4q258lru1ugrgi1vltorku7cpbrt@4ax.com>
On Thu, 7 Feb 2002 23:56:38 -0000, "25ct" <25c### [at] lineonenet> wrote:
> It's in 'Off-Topic' in my "Reply to me" thread Deaken, near the bottom.

Do you know messages posted in that group expire in 2 week's ?
There are better places on this server to send sources.
Read: http://news.povray.org/38695C99.6B2DCA1A%40pacbell.net

ABX


Post a reply to this message

From: Grey Knight
Subject: Re: DNA Encryption
Date: 8 Feb 2002 07:03:04
Message: <3C63BE6F.D79CED66@namtar.qub.ac.uk>

> 
> Do you know messages posted in that group expire in 2 week's ?
> There are better places on this server to send sources.
> Read: http://news.povray.org/38695C99.6B2DCA1A%40pacbell.net
> 
> ABX

I know. I replied to my own post to keep it away from the bit bucket for
a while longer; should I post a copy in one of the scenefiles groups
though? It's not a complete scenefile, only a single #macro (in fact
that's kinda the point, that you figure out the rest of the scenefile,
espc the string parameter passed to text2dna()! )

-- 
signature{
  "Grey Knight" contact{ email "gre### [at] yahoocom" }
  site_of_week{ url "http://digilander.iol.it/jrgpov" }
}


Post a reply to this message

From: Tom Melly
Subject: Re: DNA Encryption
Date: 8 Feb 2002 07:10:50
Message: <3c63c04a@news.povray.org>
"Grey Knight" <s16### [at] namtarqubacuk> wrote in message
news:3C63BE6F.D79CED66@namtar.qub.ac.uk...
>
> I know. I replied to my own post to keep it away from the bit bucket for
> a while longer; should I post a copy in one of the scenefiles groups
> though? It's not a complete scenefile, only a single #macro (in fact
> that's kinda the point, that you figure out the rest of the scenefile,
> espc the string parameter passed to text2dna()! )
>

It's perfectly acceptable, for short scenes/macros/whatever, to post them with
the image here.

Longer scenes (single files) can go to text.scene-files (with the scene as the
body of the post), and scenes comprising of multiple files should go to
binaries.scene-files (as attachments).

All IMHO - Ken? Anyone? Can you confirm?


Post a reply to this message

From:
Subject: Re: DNA Encryption
Date: 8 Feb 2002 07:16:57
Message: <7ag76uk20j68h7np9q6uis7ccmfvl396th@4ax.com>
> It's not a complete scenefile, only a single #macro

In 3.5 it's complete scenefile. It just produces black screen :-)

ABX


Post a reply to this message

From:
Subject: Re: DNA Encryption
Date: 8 Feb 2002 08:45:52
Message: <3c63d690@news.povray.org>
It's a part of shakespeare, right?

What's the price? .-)

regards
SY


Post a reply to this message

From: Grey Knight
Subject: Re: DNA Encryption
Date: 8 Feb 2002 08:57:28
Message: <3C63D93F.E44D1434@namtar.qub.ac.uk>

> 
> It's a part of shakespeare, right?

You wish ;)

> What's the price? .-)

Solve the problem and I'll give you it!

-- 
signature{
  "Grey Knight" contact{ email "gre### [at] yahoocom" }
  site_of_week{ url "http://digilander.iol.it/jrgpov" }
}


Post a reply to this message

From: Grey Knight
Subject: Re: DNA Encryption
Date: 8 Feb 2002 09:01:21
Message: <3C63DA28.866C07E8@namtar.qub.ac.uk>
text2dna code, coming through...

#macro text2dna(Input)
  #local Length=strlen(Input);
  #local Output=""
  #if(Length)
    #debug concat("text2dna: \"",Input,"\"(",istr(strlen(Input)),"
chars)\n\n")
    #local c=1;#while(c<=Length)
      #debug concat("  ",substr(Input,1,c-1))
      //#debug concat("\"",substr(Input,c,1),"\"")
      #debug "*"
      #debug concat(substr(Input,c+1,Length-c),"\r")
      #local temp=asc(strupr(substr(Input,c,1)));
      #if((temp=65)|(temp=69)|(temp=73)|(temp=79)|(temp=85))  //  spot
vowels and process them with a lookup table(for speed)
        #switch(asc(substr(Input,c,1)))
          #case(65)#declare Output=concat(Output,"GAAG")#break
          #case(69)#declare Output=concat(Output,"GAGG")#break
          #case(73)#declare Output=concat(Output,"GACG")#break
          #case(79)#declare Output=concat(Output,"GATT")#break
          #case(85)#declare Output=concat(Output,"GGGG")#break
          
          #case(97)#declare Output=concat(Output,"GCAG")#break
          #case(101)#declare Output=concat(Output,"GCGG")#break
          #case(105)#declare Output=concat(Output,"GCCG")#break
          #case(111)#declare Output=concat(Output,"GCTT")#break
          #case(117)#declare Output=concat(Output,"GTGG")#break
        #end
      #else
        byte2quad(asc(substr(Input,c,1)))
        #declare QuadArray=byte2quad_out
        #local c2=0;#while(c2<4)
          #switch(QuadArray[c2])
            #case(0)#declare Output=concat(Output,"A")#break
            #case(1)#declare Output=concat(Output,"C")#break
            #case(2)#declare Output=concat(Output,"G")#break
            #case(3)#declare Output=concat(Output,"T")#break
            #else#declare Output=concat(Output,"#")
          #end
        #declare c2=c2+1;#end
        //#declare Output=concat(Output,":")
      #end
    #declare c=c+1;#end
  #end
  #debug concat("\ntext2dna finished: ",istr(strlen(Input))," chars
processed, ",istr(strlen(Output))," base pairs created.\n\n")
  Output
#end

-- 
signature{
  "Grey Knight" contact{ email "gre### [at] yahoocom" }
  site_of_week{ url "http://digilander.iol.it/jrgpov" }
}


Post a reply to this message

<<< Previous 1 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.