this thread may die a lonely death, but i thought it'd be cool for everyone to post their favorite/newest/coolest scripts (ajax, php, whatever)...link to the site, show it off, whatever...inspired by the AJAX image popup thread lightbox 2: http://www.huddletogether.com/projects/lightbox2/[Edited on September 27, 2007 at 6:25 PM. Reason : .]
9/27/2007 6:24:16 PM
$maxerrors = 220;$pi = reverse "3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912983367336244065664308602139494639522473719070217986094370277053921717629317675238467481846766940513200056812714526356082778577134275778960917363717872146844090122495343014654958537105079227968925892354201995611212902196086403441815981362977477130996051870721134999999837297804995105973173281609631859502445945534690830264252230825334468503526193118817101000313783875288658753320838142061717766914730359825349042875546873115956286388235378201667323156423156323187423187323128423128323658323697323647223923101167323156423156323287323187423128323128323158423158323197423197323147723923101167323656323187123187223187423528323158423158323197423197323147723923101167323156423156323187223187123187323128423128323158423158323197423197323147723923101167423456423187323287323628323158423158323697323147723923301723923101667323128423128323696823108823101167423128323128823196823108823101167423528623396423508823101167323128423128823196323108423108823101167323628323696323608823401696323127423127623148223101196323127423127623148223101923396323627623148223101196323127423127623148223101696323127423127423548101";while ($offset < length($pi)) { my($x) = substr($pi, $offset +++ 0, 2); my($y) = substr($pi, $offset +++ 1, 1); # XXX should be 3? my($z) = substr($pi, $offset +++ 2, 1); if ($x * cos($y) / cos($z)) { $dbg .= chr ($x) x $y; if (++$errors >= $maxerrors) { # "cannot happen" die("$dbg\n"); } }}
9/27/2007 6:31:57 PM
hey, fucker. that was mine
9/27/2007 7:54:31 PM
Ive used some scripts off this guys site.http://www.scriptarchive.com/
9/27/2007 8:03:05 PM
^^ you could always take
int main() { char *s = "int main() { char* s = %c%s%c; printf(s, 34, s, 34); }"; printf(s, 34, s, 34); }
9/27/2007 8:11:10 PM
Add a description and note the language.
9/27/2007 8:17:19 PM
^^...^ This is what i get when I run that:
Rons-AlBook:~ ron$ perl test.sh TTTTT H H EEEEEE T H H E T HHHHHH EEE [[[=```B``333333RRRQQQ666&??%%%%%% J O O U U R R N N N A A L]]?```888QQQQQQ333333 O U U 55////////
9/27/2007 9:03:27 PM
see http://en.wikipedia.org/wiki/Quine_(computing)[Edited on September 27, 2007 at 9:15 PM. Reason : (]
9/27/2007 9:15:18 PM
I was talking about the perl script.i got what the C one did...
9/27/2007 9:22:55 PM
yeah, wp link was for darkone's benefitnot sure why yours didn't work. i ran it on mine and it worked. source (p. 9)
9/27/2007 9:36:58 PM
It was the linefeeds screwing it up.I don't know any perl, but I can't figure out what's what in that code... crazy.[Edited on September 27, 2007 at 9:58 PM. Reason : ]
9/27/2007 9:55:53 PM
the perl script, before qntmfred fucked it up, is this. its a play on the main concept of Carl Sagan's "Contact"
$maxerrors = 220; # needs tuning$pi = reverse "3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912983367336244065664308602139494639522473719070217986094370277053921717629317675238467481846766940513200056812714526356082778577134275778960917363717872146844090122495343014654958537105079227968925892354201995611212902196086403441815981362977477130996051870721134999999837297804995105973173281609631859502445945534690830264252230825334468503526193118817101000313783875288658753320838142061717766914730359825349042875546873115956286388235378201667323156423156323187423187323128423128323658323697323647223923101167323156423156323287323187423128323128323158423158323197423197323147723923101167323656323187123187223187423528323158423158323197423197323147723923101167323156423156323187223187123187323128423128323158423158323197423197323147723923101167423456423187323287323628323158423158323697323147723923301723923101667323128423128323696823108823101167423128323128823196823108823101167423528623396423508823101167323128423128823196323108423108823101167323628323696323608823401696323127423127623148223101196323127423127623148223101923396323627623148223101196323127423127623148223101696323127423127423548101";while ($offset < length($pi)) { my($x) = substr($pi, $offset +++ 0, 2); my($y) = substr($pi, $offset +++ 1, 1); # XXX should be 3? my($z) = substr($pi, $offset +++ 2, 1); if ($x * cos($y) / cos($z)) { $dbg .= chr ($x) x $y; if (++$errors >= $maxerrors) { # "cannot happen" die("$dbg\n"); } }}# passes sig testprint("ok!\n");
9/28/2007 1:27:09 AM
^that's pretty cool
9/28/2007 8:01:04 AM
i like this thread.more scripts, plz.
9/28/2007 2:08:31 PM
not QUITE the point of the thread, but still ^
9/28/2007 3:17:58 PM
http://www.antiquark.com/sliderule/sim/n909es/virtual-n909-es.html
9/28/2007 5:45:07 PM
print "Hello World!"
9/28/2007 6:03:58 PM
several years ago, i wrote a script that would take your server name and location in Shadowbane (MMORPG), parse the 3rd party website listings of rune/armor/weapon-dropping mobs, and tell you direction and distance to all items around your location, or conversely, tell you direction and distance to the particular rune/armor/weapon-dropping mob you were looking for.it was pretty cool, if i say so myself.[Edited on September 28, 2007 at 7:34 PM. Reason : ]
9/28/2007 7:32:27 PM
2 simple but very useable scriptsRecords the State games from a AM/FM stereo connected through the line in. Adds the date/time stamp to the file.sox -t ossdsp -w -s -r 44100 -c 2 /dev/dsp -t raw - | lame -x -m s - /location/NCState-Louisville`date +%b%d_%H%M_%Y`.mp3Records the State game from an internet feed: Also adds the date/time stampmplayer -dumpstream -dumpfile /location/ncstate-louisville`date +%b%d_%H%M_%Y`.mp3 http://wmc2.liquidcompass.cc/WILTIf anyone has any suggestion for changes let me know. These scripts worked fine on my old Slackware box but since the motherboard crashed I've had to use an older PC using a Slax Live CD and it doesn't seem to work as well.
9/29/2007 12:09:01 PM