Cyborg2 Community - Powered by UK2.NET & VPS.NET  

Go Back   Cyborg2 Community - Powered by UK2.NET & VPS.NET > General Forums > Tech Zone
Register FAQ Members List Calendar Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 18-05-09, 20:45   #1
Arab
Cyborg2 Member
 
Arab's Avatar
 
Join Date: Aug 2004
Location: .
Posts: 4,048
It Works

http://www53.wolframalpha.com/input/?i=2%2B2
__________________


Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"
Arab is offline   Reply With Quote
Old 18-05-09, 20:51   #2
Sleepz
Yes, I hate you!
 
Sleepz's Avatar
 
Join Date: Jul 2005
Location: North East
Posts: 3,335
I'm not liking this..it's too specific in the structure of question department and some answers have been reported to be just wrong..or google provides better and more relevant results.
__________________


[21:27:32] <dazrich> sleeps whare you live wrong person
[21:27:48] <@Sleepz> Spain, near Texas
[21:27:54] <@Steve-o||[^]> \n/,
[21:27:58] <dazrich> miles away :)
Sleepz is offline   Reply With Quote
Old 18-05-09, 20:54   #3
blaser
Cyborg2 Member
 
blaser's Avatar
 
Join Date: Jul 2005
Location: UK
Posts: 1,165
Greatest peice of code ever written, anyone here a c/c++ programmer compile and run this:

#include <stdio.h>
main(t,_,a)
char *a;
{
return! 0<t ?
t<3 ? main(-79,-13,a+main(-87,1-_,main(-86, 0, a+1 )+a)):1,
t<_ ? main( t+1, _, a):3,
main ( -94, -27+t, a)&&t == 2?( _<13 ? main ( 2, _+1, "%s %d %d \n" ):9)
:16:
t<0?
t<-72?main( _, t,"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l+,/n{n+,/+#n+,/#\
;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l \
q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# \
){nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#n'wk nw' \
iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \
;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;#'rdq#w! nr'/ ') }+}{rl#'{n' ')# \
}'+}##(!!/"):t<-50?_==*a ?putchar(31[a]):main(-65,_,a+1):main((*a == '/') + t, _, a + 1 )
:0<t?main ( 2, 2 , "%s"):*a=='/'||main(0,main(-61,*a, "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry")
,a+1);
}
__________________
The Geeks Shall Inherit the Earth
blaser is offline   Reply With Quote
Old 19-05-09, 00:48   #4
Daz_Rich
Ernie The Fish
 
Join Date: Oct 2006
Location: Yorkshire
Posts: 2,185
its not all that good
type in sex and look at the typical word frequency:
Daz_Rich is offline   Reply With Quote
Old 19-05-09, 08:28   #5
Agent-r00tk1t
Admin type person
 
Agent-r00tk1t's Avatar
 
Join Date: Mar 2004
Location: London
Posts: 3,106
Quote:
Originally Posted by blaser View Post
Greatest peice of code ever written, anyone here a c/c++ programmer compile and run this:

#include <stdio.h>
main(t,_,a)
char *a;
{
return! 0<t ?
t<3 ? main(-79,-13,a+main(-87,1-_,main(-86, 0, a+1 )+a)):1,
t<_ ? main( t+1, _, a):3,
main ( -94, -27+t, a)&&t == 2?( _<13 ? main ( 2, _+1, "%s %d %d \n" ):9)
:16:
t<0?
t<-72?main( _, t,"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l+,/n{n+,/+#n+,/#\
;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l \
q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# \
){nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#n'wk nw' \
iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \
;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;#'rdq#w! nr'/ ') }+}{rl#'{n' ')# \
}'+}##(!!/"):t<-50?_==*a ?putchar(31[a]):main(-65,_,a+1):main((*a == '/') + t, _, a + 1 )
:0<t?main ( 2, 2 , "%s"):*a=='/'||main(0,main(-61,*a, "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry")
,a+1);
}
Bleh I HATE any self calling code. As it's an accident waiting to happen. But whoever did that has the patience of a saint I'd say. Well that, or they're just REALLY sad.
Agent-r00tk1t is offline   Reply With Quote
Old 19-05-09, 17:42   #6
blaser
Cyborg2 Member
 
blaser's Avatar
 
Join Date: Jul 2005
Location: UK
Posts: 1,165
It for a competition back in 1988 (it won btw), trying to reverse engineer it driving one my collegues nuts.

Self calling code is actually brilliant, just get it right, no problem with unit testing.
__________________
The Geeks Shall Inherit the Earth
blaser is offline   Reply With Quote
Old 20-05-09, 14:47   #7
Agent-r00tk1t
Admin type person
 
Agent-r00tk1t's Avatar
 
Join Date: Mar 2004
Location: London
Posts: 3,106
Quote:
Originally Posted by blaser View Post
It for a competition back in 1988 (it won btw), trying to reverse engineer it driving one my collegues nuts.

Self calling code is actually brilliant, just get it right, no problem with unit testing.
Well I mean I hate it for the same reason your colleague is going nuts.

Going back to recursive calls later and debugging is just plain awful.
Agent-r00tk1t is offline   Reply With Quote
Old 20-05-09, 20:01   #8
Leela
=^.^=
 
Leela's Avatar
 
Join Date: May 2008
Location: Deutschland
Posts: 248
try objective C, it is built on self calling :/
Leela is offline   Reply With Quote
Old 20-05-09, 20:59   #9
blaser
Cyborg2 Member
 
blaser's Avatar
 
Join Date: Jul 2005
Location: UK
Posts: 1,165
I'll be looking into Objective C soon, bit of extra cash from making some iphone apps maybe.
I'm told it's actually a very good and pretty straight forward to develop in. Meh, need to get a mac, probably a mini.
__________________
The Geeks Shall Inherit the Earth
blaser is offline   Reply With Quote
Old 22-05-09, 05:54   #10
Leela
=^.^=
 
Leela's Avatar
 
Join Date: May 2008
Location: Deutschland
Posts: 248
I just finished one app, waiting for it to be approved by apple, and wrote a basic Twitter client. I wouldn´t rate it was the easiest language to pick up. It is very tedious.
Costs 79€ for the developer license, and you also need an iphone/ipod to test on. You can´t rely on the iPhone simulator.
Tax forms from the US were fun to fill in :/ I gave up on the Japanese tax forms. Decided just not to sell my apps there ^^
Leela is offline   Reply With Quote
Old 22-05-09, 17:01   #11
blaser
Cyborg2 Member
 
blaser's Avatar
 
Join Date: Jul 2005
Location: UK
Posts: 1,165
I've had the iPod touch since 2007. Only thing that has put me off making an app so far is the need for a Intel based mac and the latest Leopard OS. Having spent the last few years sustaining a huge C++ software project, half of which was coded by former java programmers . Tedious isn't a problem
__________________
The Geeks Shall Inherit the Earth
blaser is offline   Reply With Quote
Old 20-07-09, 19:19   #12
Leela
=^.^=
 
Leela's Avatar
 
Join Date: May 2008
Location: Deutschland
Posts: 248
On the first day of Christmas my true love gave to me
a partridge in a pear tree.

On the second day of Christmas my true love gave to me
two turtle doves
and a partridge in a pear tree.

On the third day of Christmas my true love gave to me
three french hens, two turtle doves
and a partridge in a pear tree.

On the fourth day of Christmas my true love gave to me
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.

On the fifth day of Christmas my true love gave to me
five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.

On the sixth day of Christmas my true love gave to me
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.

On the seventh day of Christmas my true love gave to me
seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.

On the eigth day of Christmas my true love gave to me
eight maids a-milking, seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.

On the ninth day of Christmas my true love gave to me
nine ladies dancing, eight maids a-milking, seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.

On the tenth day of Christmas my true love gave to me
ten lords a-leaping,
nine ladies dancing, eight maids a-milking, seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.

On the eleventh day of Christmas my true love gave to me
eleven pipers piping, ten lords a-leaping,
nine ladies dancing, eight maids a-milking, seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.

On the twelfth day of Christmas my true love gave to me
twelve drummers drumming, eleven pipers piping, ten lords a-leaping,
nine ladies dancing, eight maids a-milking, seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.
Leela is offline   Reply With Quote
Old 20-07-09, 22:11   #13
Arab
Cyborg2 Member
 
Arab's Avatar
 
Join Date: Aug 2004
Location: .
Posts: 4,048
wrong forum ?

or several too many beers ?
__________________


Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"
Arab is offline   Reply With Quote
Old 21-07-09, 07:16   #14
Leela
=^.^=
 
Leela's Avatar
 
Join Date: May 2008
Location: Deutschland
Posts: 248
heh, the output from the C programm above ! :-)
Leela is offline   Reply With Quote
Old 21-07-09, 18:23   #15
blaser
Cyborg2 Member
 
blaser's Avatar
 
Join Date: Jul 2005
Location: UK
Posts: 1,165
Great piece of code isn't it. I just got my macbook pro yesterday, nice piece of kit. Love the new touchpad it's huge. Btw Katze, how did your app approval go?
__________________
The Geeks Shall Inherit the Earth
blaser is offline   Reply With Quote
Old 21-07-09, 18:47   #16
Leela
=^.^=
 
Leela's Avatar
 
Join Date: May 2008
Location: Deutschland
Posts: 248
first one was approved without a problem. Have done another update to it since, which was also approved. Waiting on approval for Tweesy still, hoping to find out tomorrow :-)
Leela is offline   Reply With Quote
Old 21-07-09, 19:30   #17
Arab
Cyborg2 Member
 
Arab's Avatar
 
Join Date: Aug 2004
Location: .
Posts: 4,048
Quote:
Originally Posted by Hannelore View Post
heh, the output from the C programm above ! :-)
Ah, I see
__________________


Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"
Arab is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 23:22.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2007 by UK2.NET & VPS.NET