mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Puzzles (https://www.mersenneforum.org/forumdisplay.php?f=18)
-   -   Krack ze Kode, before ze Krauts Kommen (https://www.mersenneforum.org/showthread.php?t=17507)

chappy 2012-11-29 23:39

Krack ze Kode, before ze Krauts Kommen
 
[url]http://news.discovery.com/history/can-you-crack-pigeon-code-121127.html#mkcpgn=twdsc2[/url]

I have a theory that it says: "Don't forget to drink Ovaltine."

Flatlander 2012-11-30 05:02

I know a Dave Martin (or rather [SIZE="5"]Dave Mar'in[/SIZE] in a loud worzel accent) that lives around there. He is a builder so cracking open a fireplace would be just his cup of tea.

I might have his number in my old Filofax. Maybe I should text him.

My guess is "In an emergency this one will be tasty."

Edit:
Wrong guy.

Batalov 2012-11-30 08:06

One of the commenters correctly identified that these are a few of the activation keys for Windows 8!

ewmayer 2013-01-10 02:12

1 Attachment(s)
Here is a "crack ze code'-style puzzle from a recent episode of one of my favorite TV shows. It turns out the name / country of the show is unimportant, since this is a puzzle testing your web-searching skills. In the episode, there is a clue in the form of a snippet of an "esoteric programming language named [I didn't catch the name; unimportant]" captured on a crumpled piece of paper. Below is a screen shot. That was enough for me, via a couple of chained websearches (use added information in a hit to generate a better search) to figure out what the code snippet in question is. (In the TV show the code was alleged to be a hi-tech "crypto cracking" algo, but it turns out that is a stretch. :)

Have fun, and good luck!

Dubslow 2013-01-10 02:26

All too easy. I immediately recognized it as [spoiler]Malbolge[/spoiler], whose Wikipedia article (under the much-famed "Popular culture" section) displays the name of the show to which you refer.

Batalov 2013-01-10 02:32

[CODE]HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
[/CODE]
Just imagine Ernst's disappointment that they didn't try to bypass the PG-13 rating by referring to this [SPOILER]year, right, too eazi lol you will have to work for it[/SPOILER] language by this snippet
[CODE]++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++
..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
[/CODE]

Dubslow 2013-01-10 02:42

[QUOTE=Batalov;324221][CODE]HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
[/CODE]
Just imagine Ernst's disappointment that they didn't try to bypass the PG-13 rating by referring to this [SPOILER]year, right, too eazi lol you will have to work for it[/SPOILER] language by this snippet
[CODE]++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++
..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
[/CODE][/QUOTE]

I did spend quite some time reading up on various esoteric languages. :smile:

I see your [spoiler]brainfuck (and lolcode)[/spoiler] and raise you [spoiler]Shakespeare[/spoiler]!
[code]Romeo, a young man with a remarkable patience.
Juliet, a likewise young woman of remarkable grace.
Ophelia, a remarkable woman much in dispute with Hamlet.
Hamlet, the flatterer of Andersen Insulting A/S.

Act I: Hamlet's insults and flattery.
Scene I: The insulting of Romeo.
[Enter Hamlet and Romeo]
Hamlet:
You lying stupid fatherless big smelly half-witted coward! You are as
stupid as the difference between a handsome rich brave hero and thyself!
Speak your mind!
You are as brave as the sum of your fat little stuffed misused dusty
old rotten codpiece and a beautiful fair warm peaceful sunny summer's
day. You are as healthy as the difference between the sum of the
sweetest reddest rose and my father and yourself! Speak your mind!
You are as cowardly as the sum of yourself and the difference
between a big mighty proud kingdom and a horse. Speak your mind.
Speak your mind!
[Exit Romeo]
Scene II: The praising of Juliet.
[Enter Juliet]
Hamlet:
Thou art as sweet as the sum of the sum of Romeo and his horse and his
black cat! Speak thy mind!
[Exit Juliet]
Scene III: The praising of Ophelia.
[Enter Ophelia]
Hamlet:
Thou art as lovely as the product of a large rural town and my amazing
bottomless embroidered purse. Speak thy mind!
Thou art as loving as the product of the bluest clearest sweetest sky
and the sum of a squirrel and a white horse. Thou art as beautiful as
the difference between Juliet and thyself. Speak thy mind!
[Exeunt Ophelia and Hamlet]

Act II: Behind Hamlet's back.
Scene I: Romeo and Juliet's conversation.
[Enter Romeo and Juliet]
Romeo:
Speak your mind. You are as worried as the sum of yourself and the
difference between my small smooth hamster and my nose. Speak your
mind!
Juliet:
Speak YOUR mind! You are as bad as Hamlet! You are as small as the
difference between the square of the difference between my little pony
and your big hairy hound and the cube of your sorry little
codpiece. Speak your mind!
[Exit Romeo]
Scene II: Juliet and Ophelia's conversation.
[Enter Ophelia]
Juliet:
Thou art as good as the quotient between Romeo and the sum of a small
furry animal and a leech. Speak your mind!
Ophelia:
Thou art as disgusting as the quotient between Romeo and twice the
difference between a mistletoe and an oozing infected blister! Speak
your mind!
[Exeunt][/code]

I might have presented [SPOILER]Whitespace[/SPOILER], but that might have been difficult to read (without cheating).

xilman 2013-01-10 07:50

Esoteric languages may be fun but code written in them is very difficult to read and understand. For a program written in a mainstream language, such as C, it is really rather easy to work out what is going on, even if you've never seen the code before. I present you with three examples.

[code]char*lie;
double time, me= !0XFACE,
not; int rested, get, out;
main(ly, die) char ly, **die ;{
signed char lotte,

dear; (char)lotte--;
for(get= !me;; not){
1 - out & out ;lie;{
char lotte, my= dear,
**let= !!me *!not+ ++die;
(char*)(lie=

"The gloves are OFF this time, I detest you, snot\n\0sed GEEK!");
do {not= *lie++ & 0xF00L* !me;
#define love (char*)lie -
love 1s *!(not= atoi(let
[get -me?
(char)lotte-

(char)lotte: my- *love -

'I' - *love - 'U' -
'I' - (long) - 4 - 'U' ])- !!

(time =out= 'a'));} while( my - dear
&& 'I'-1l -get- 'a'); break;}}
(char)*lie++;

(char)*lie++, (char)*lie++; hell:0, (char)*lie;
get *out* (short)ly -0-'R'- get- 'a'^rested;
do {auto*eroticism,
that; puts(*( out
- 'c'

-('P'-'S') +die+ -2 ));}while(!"you're at it");

for (*((char*)&lotte)^=
(char)lotte; (love ly) [(char)++lotte+
!!0xBABE];){ if ('I' -lie[ 2 +(char)lotte]){ 'I'-1l ***die; }
else{ if ('I' * get *out* ('I'-1l **die[ 2 ])) *((char*)&lotte) -=
'4' - ('I'-1l); not; for(get=!

get; !out; (char)*lie & 0xD0- !not) return!!
(char)lotte;}

(char)lotte;
do{ not* putchar(lie [out
*!not* !!me +(char)lotte]);
not; for(;!'a';);}while(
love (char*)lie);{

register this; switch( (char)lie
[(char)lotte] -1s *!out) {
char*les, get= 0xFF, my; case' ':
*((char*)&lotte) += 15; !not +(char)*lie*'s';
this +1s+ not; default: 0xF +(char*)lie;}}}
get - !out;
if (not--)
goto hell;
exit( (char)lotte);}
[/code]

[code]#define _ -F<00||--F-OO--;
int F=00,OO=00;main(){F_OO();printf("%1.3f\n",4.*-F/OO/OO);}F_OO()
{
_-_-_-_
_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_
_-_-_-_
}[/code]

and [code]
#include <stdio.h>
#include <math.h>
#define X
#define Y {}
#define C }
#define o {
#undef main
char m[500][99],v[99],R;
int*a,b,n,i,j,W,A;
float Q,G,D,M,T,B,O,U,V,N,y,e();
P(g,R,u)float*g,R,u;{int c;for(*g=1,c=u;c--;*g*=R);}
X
K(g,R,u)float*g,u;char R;
o
if(R=='+')*g+=u;
if(R=='-')*g-=u;
if(R=='*')*g*=u;
if(R=='/')*g/=u;
if(R=='^')P(g,*g,u);
C
w(g,R,u)float*g,u;char R;
/**/{int b,f;A=atoi(*++a);b=atoi(*++a);while((f=A+b)<15000){printf("%d\n",f);A=b;b=f;}}
main(A,a)int A;char*a[];
o o
if(!strcmp(*++a,"-r"))S();
D=atof(*++a);
T=atof(*++a);
B=atof(*++a);
M=atof(*(4+(a-=3)));
C
while(D<T)
o
U=e((G=B/2,*a),D,M,a);
V=e(*a,Q=D+G,M+G*U,a);
/*/
z;/*/
N=2*e(*a,Q,M+G*V,a);
M+=B*V/3+B*N/6+B*e(*a,D+=B,M+G*N,a)/6+G*U/3;
printf("%f %f\n",D,M);
C
while(T=0)
;
W=D=1;
;
while(W!=1)
o o
strcpy(j+m,v);
o
if((j-=W)<=W)break;
strcpy(j+m,m+j-W);
C
while(strcmp(m+j-W,v)>0)
j=i;
strcpy(v,i+m);
C
for(i=(W/=3)-1;++i<n;)
;
C
do
;
while(0);
for(W=1;(W=W*3+1)<n;);
C
float e(f,D,M,a)char*f,*a[];float D,M;
o
#define main L
O=0;
R='+';
for(;*f;f++)
if(*f=='y')K(&O,R,M);
else if((*f>='0')&&(*f<='9'))K(&O,R,(float)*f-'0');
else if(*f=='x')K(&O,R,D);
else if(1)R=*f;
if(1);
return O;
for(j=0;j<n;puts(j++[m]));
e("",O,&O,a);
n=j-(O=1);
while(gets(j++[m]));
if(!strcmp(*++a,"-r"))S();
C
/**/main(A,a)int A;char*a[];
Y
S(){while(gets(b++[m]));for(b--;b--;puts(b[m]));}
char*f,m[500][99],R,v[99];
int b,W,n,i,j,z;
float Q,G,D,M,T,O,B,U,V,N,e();
#define Y
#define X {}
#define o }
#define C {
#include <stdio.h>
#include <math.h>[/code]

chalsall 2013-01-10 08:05

[QUOTE=xilman;324237]Esoteric languages may be fun but code written in them is very difficult to read and understand.[/QUOTE]

[URL="http://www.ioccc.org/"]LOL....[/URL]

Batalov 2013-01-10 08:25

The [URL="http://www.ioccc.org/2012/dlowe/hint.html"]game of death[/URL]. We should have thought of that! :bangheadonwall:
Bloody marvelous!

ixfd64 2013-01-11 18:19

Try porting Prime95 to [url=http://en.wikipedia.org/wiki/Malbolge]Malbolge[/url].

chalsall 2013-01-11 18:53

[QUOTE=ixfd64;324425]Try porting Prime95 to [url=http://en.wikipedia.org/wiki/Malbolge]Malbolge[/url].[/QUOTE]

George effectively did.

How close to the "metal" would you like to get?

Dubslow 2013-01-11 21:53

[QUOTE=chalsall;324428]George effectively did.

How close to the "metal" would you like to get?[/QUOTE]

No no, try porting the thousands of lines of C into Malbolge. (Admittedly there are many thousands [i]more[/i] lines of assembly than C, but assembly is still easier to read than Malbolge (which is in turn easier to read than machine code :smile:)).

chalsall 2013-01-11 22:29

[QUOTE=Dubslow;324445]No no, try porting the thousands of lines of C into Malbolge[/QUOTE]

That's what compilers are for.

Never send a human to do a machine's job. Unless, of course, the human is better.

Dubslow 2013-01-11 23:36

[QUOTE=chalsall;324447]That's what compilers are for.[/QUOTE]
Has anyone written one?

chalsall 2013-01-11 23:57

[QUOTE=Dubslow;324449]Has anyone written one?[/QUOTE]

Are you familiar with YACC?

Dubslow 2013-01-12 01:59

[QUOTE=chalsall;324452]Are you familiar with YACC?[/QUOTE]

Sure, but what about the backend? What YACC et al. produce can parse the source code into some suitably powerful and abstract representation (syntax tree or whatever) from which typical assembly or other code can be written, but I dare you to write something which can produce Malbolge code.

Keep in mind that the "Hello World!" program was literally [URL="http://www.acooke.org/malbolge.html"]discovered by a brute force attack[/URL], and how to do loops in it is still not very well understood (though someone was able to write a [URL="http://www.99-bottles-of-beer.net/language-malbolge-995.html"]99 bottles of beer[/URL] program).

chalsall 2013-01-12 18:01

[QUOTE=Dubslow;324459]... but I dare you to write something which can produce Malbolge code.[/QUOTE]

I was (trying) to make a joke...

I have better things to do with my time then write a compiler for Malbolge. :smile:

ewmayer 2013-01-12 20:21

[QUOTE=Dubslow;324449]Has anyone written one?[/QUOTE]

I think you just did, both after the 'any' and immediately preceding the question mark.

chalsall 2013-01-12 20:55

[QUOTE=ewmayer;324523]I think you just did, both after the 'any' and immediately preceding the question mark.[/QUOTE]

Very funny!!! :smile:

ewmayer 2013-02-07 03:08

[QUOTE=chalsall;324528]Very funny!!! :smile:[/QUOTE]

That's 'cause being Austrian, not German, I can have a sense of humor about these things, no national pride being at stake.


All times are UTC. The time now is 05:33.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.