@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14



Comments:

<0> function a($a,$b,$x){while(ord($a[$i])||ord($b[$i])){$t=$a[$i]+$b[$i]+$c;if($c=$t>9)$t-=10;$a[$i]=$t;$i++;}$c&&$a[$i]=$c;$x=$a;}function fib($n){$f=array("0","1","1");for($i=1;$i<=$n;$i++){$j=$i%3;$k=($j+1)%3;$l=($k+1)%3;a($f[$k],$f[$l],&$f[$j]);}return strrev($f[$j]?$f[$j]:0);}$t=microtime(1);echo fib(1000)." in ".(microtime(1)-$t);
<0> @php function a($a,$b,$x){while(ord($a[$i])||ord($b[$i])){$t=$a[$i]+$b[$i]+$c;if($c=$t>9)$t-=10;$a[$i]=$t;$i++;}$c&&$a[$i]=$c;$x=$a;}function fib($n){$f=array("0","1","1");for($i=1;$i<=$n;$i++){$j=$i%3;$k=($j+1)%3;$l=($k+1)%3;a($f[$k],$f[$l],&$f[$j]);}return strrev($f[$j]?$f[$j]:0);}$t=microtime(1);echo fib(1000)." in ".(microtime(1)-$t);~
<1> PHP Parse error: parse error, unexpected ';'
<0> @php function a($a,$b,$x){while(ord($a[$i])||ord($b[$i])){$t=$a[$i]+$b[$i]+$c;if($c=$t>9)$t-=10;$a[$i]=$t;$i++;}$c&&$a[$i]=$c;$x=$a;}function fib($n){$f=array("0","1","1");for($i=1;$i<=$n;$i++){$j=$i%3;$k=($j+1)%3;$l=($k+1)%3;a($f[$k],$f[$l],&$f[$j]);}return strrev($f[$j]?$f[$j]:0);}$t=microtime(1);echo fib(1000)." in ".(microtime(1)-$t);
<1> Result: 43466557686937456435688527675040625802564660517371780402481729089536555417949051890403879840079255169295922593080322634775209689623239873322471161642996440906533187938298969649928516003704476137795166849228875 in 0.612152814865
<0> sorry :/
<2> pizza_milkshake, you got to much junk in yo trunk
<3> snap
<0> haha
<0> :~( <-- bukakke
<3> I like Modest Mouse, they have a different sound
<2> haha
<4> you're finding fibonacci numbers?
<3> hrm
<3> apparently installing zone alarm causes tcp sessions to reset
<3> s/installing/starting/



<0> evulish: sort of.
<0> @php function fib($n) { $f= array("0","1","1"); for($i = 2; $i <= $n; $i++) { $j= $i % 3; $k= ($j + 1) % 3; $l= ($k + 1) % 3; $f[$j]= bcadd($f[$k], $f[$l]); } return $f[$j]; } echo fib(1000000);
<1> PHP Fatal error: Maximum execution time of 10 seconds exceeded
<4> what's sort of? :P
<0> looks like ruby doesn't use pcre by default
<0> @php function fib($n) { $f= array("0","1","1"); for($i = 2; $i <= $n; $i++) { $j= $i % 3; $k= ($j + 1) % 3; $l= ($k + 1) % 3; $f[$j]= bcadd($f[$k], $f[$l]); } return $f[$j]; } echo fib(10000);
<1> pizza_milkshake: Your result has been truncated. Don't print so much.
<1> Result: 336447648764317832666216120051075433103021484606800639065647699746800814421666623681555955136337340255820653326808361593737347904838652682630408924630564318873545443695598274916066020998841839338646527313000888302692356736131351175792974378544137521305205043477016022647583189065278908551543661595829
<3> bugger
<3> is it me or does a 5 hours seem a bit long for detroit to san francisco?
<3> (flight)
<0> ***uming you make it out of Detroit at all
<4> Transaction Cost Analysis and pre-trade analytics have become the holy grail to buy-side traders. As the buy-side trader takes greater control of the trade, building the right infrastructure to enable traders to perform advanced analytics and conduct transaction cost analysis has become critical.
<4> Using pre-trade analytics to determine transaction cost analysis and best execution is a focal point among buy-side firms. Tune in to this session to hear the latest challenges and opportunities related to technology infrastructure and platforms needed to support tomorrow's trading initiatives. Larry Tabb discusses the growing trend of algorithmic trading and thus the need for pre-trade analytics and TCA.
<4> Gain insights into the technologies, tools and trends that are now enabling financial services firms to build next generation trading architecture.
<4> what
<3> pizza_milkshake, fair enough
<4> function fib($a) {return ($a>1?fib($a-1)+fib($a-2):$a);}
<4> that's my fib function
<4> it's slow, though
<3> lots o' stack work on that one
<4> stack work?
<0> evulish: it doesn't work for >pow(2,31) though
<4> oh
<3> evulish, everytime you call the function you've got to add on another layer to the stack; space allocated, etc...
<4> heh
<3> there's a bit of overhead for that
<5> ...
<4> your mom gave me overhead last night.
<4> it's good for small numbers though
<3> "The air flowing through a 767-400ER engine at takeoff power could inflate the Goodyear Blimp in seven seconds."
<4> like.. 10
<3> shake shake shake senora
<4> pizza_milkshake: what equation did you start from?
<0> huh?
<4> for your fib thing
<0> wha's my starting point?
<0> 0,1,1
<4> yeah
<4> so this is taking a while
<5> i'm hungry
<3> CKnight, so eat and stop complaining
<5> comcor: but then i'd have to get up and ****
<3> Life's tough, eh?
<5> my lazyness exceeds my hunger
<3> then you should not exist for much longer
<4> php is using 90% of my processor
<3> and the problem will be solved
<5> evemtually someone will come along and insert an IV or something
<5> evulish: recursion?
<4> $h = array();
<4> function fib($a) {global $h;return (isset($h[$a])?$h[$a]:$h[$a]=($a>1?fib($a-1)+fib($a-2):$a));}
<4> there we go. that one's quicker!
<6> grab yoru **** and double click for porn porn porn
<3> this is reasonably fast: function fib($a) { $arr = array(0, 1); $p=1;$pp=0;$i=0;while($i<$a){$i++; $arr[$i]=$arr[$p]+$arr[$pp];$pp=$p;$p=$i;}return array_slize($arr,1,sizeof($arr);}
<4> slize?
<4> :P
<0> @php function fib($a) { $arr = array(0, 1); $p=1;$pp=0;$i=0;while($i<$a){$i++; $arr[$i]=$arr[$p]+$arr[$pp];$pp=$p;$p=$i;}return array_slize($arr,1,sizeof($arr);}
<1> PHP Parse error: parse error, unexpected ';'
<3> sorry, typo
<0> @php function fib($a) { $arr = array(0, 1); $p=1;$pp=0;$i=0;while($i<$a){$i++; $arr[$i]=$arr[$p]+$arr[$pp];$pp=$p;$p=$i;}return array_slice($arr,1,sizeof($arr);} echo fib(1000);



<1> PHP Parse error: parse error, unexpected ';'
<4> you forgot a ) on the end of array_slice
<0> @php function fib($a) { $arr = array(0, 1); $p=1;$pp=0;$i=0;while($i<$a){$i++; $arr[$i]=$arr[$p]+$arr[$pp];$pp=$p;$p=$i;}return array_slice($arr,1,sizeof($arr));} echo fib(1000);
<1> Result: Array
<0> @php function fib($a) { $arr = array(0, 1); $p=1;$pp=0;$i=0;while($i<$a){$i++; $arr[$i]=$arr[$p]+$arr[$pp];$pp=$p;$p=$i;}return array_slice($arr,1,sizeof($arr));} print_r(fib(1000));
<1> Result: Array
<1> (
<1> [0] => 1
<1> [1] => 2
<3> 1000 iterations in 3.942 seconds
<3> milliseconds
<0> except that none of these will work for numbers >pow(2,31)
<0> @php echo pow(2,32);
<1> Result: 4294967296
<0> @php echo pow(2,33);
<1> Result: 8589934592
<0> ooh
<0> @php echo pow(2,64);
<1> Result: 1.84467440737E+19
<3> holy exponentials batman
<0> @php echo intval(pow(2,64));
<1> Result: 0
<0> not exact answers for big numbers
<3> thus the limitations of php
<0> no, just the implementation
<7> do math calculation in correct way.... http://thedailywtf.com/forums/65573/ShowPost.aspx
<7> *correct and well.commented
<0> wow, nice
<0> /**
<0> * The '0' hexidecimal character.
<0> */
<0> public static final char ZERO = '0';
<0> that **** is hot
<3> it puts the lotion on its code
<3> oh laffo, this is great
<3> I'll have to add this to my reading list
<3> http://thedailywtf.com/forums/24484/ShowPost.aspx
<8> is it good style to camel-case variable names?
<0> NoIDontThinkSoButItsUpToYou
<9> in java, sure. i stay away from it in php, personally
<9> since all the function names are riddled with underscores anyway
<0> s/with/inconsistently &/
<8> it's php... I've learned it for this project exclusively, and it will have to be maintained by other coders so I wanna leave them with as few headaches as possible
<9> then i'd say no, dont use camelCase
<8> thx
<8> I'll have another q pretty soon about getting stuff out of the query string, but lemme finish scouring the manual
<9> www.php.net/tutorial.forms
<9> lets nip that one in the bud then, shall we?
<8> I must say, there's some nice docs available on that language
<10> [Parse_Error]
<11> so I learned tonight that ['$blah'] != ["$blah"]
<11> and suddenly all my problems went away!
<10> ...
<11> JEALOUS
<10> very
<10> i found that out some time ago
<10> but i still have this VD
<0> chalupah: also, ["$foo"] == [$foo]
<12> hello i need help
<4> you sure do!
<12> ok i wanna know
<4> the best way to relieve the sting of toothpaste on your balls is to use baking powder
<13> Khaleed: yes
<12> is it php suitable with Windows Base Server
<6> Khaleed: no
<4> @confess
<12> :(
<4> i'd do the whole .NET thing if i was using a windows server
<6> @confess
<12> why them out PHP Version 4 bla bla bla and say that is no problem to install CMS like Mambo Xoops...
<1> I can't believe I put one of those things that holds CD-Rs in my ***.
<1> i love the buttsecks


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#india
xine restoring index
pakis chat
#chat-world
#linux
baikpunya
Bitecegim kahrolup gidecegim gor bak
kote rempit
batch convert to utf-8
cout not working



Home  |  disclaimer  |  contact  |  submit quotes