Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. Maybe CV modified the word filters, tricked him into posting it and then removed it again. I can't remember if mods can do that.
  2. Double post. Locked.
  3. So the staff sucks because they react on rule violations? Right... The rules are not there for you to see if you bother following them today. They're there because you are required to follow them. If you cannot accept that you weren't allowed to use this website in the first place. And you're tired of staff deleting your topics? I just looked over your entire post history. You've only ever had one topic deleted unless you have multiple accounts (which is also a rule violation). While looking over your history, I also noticed this in one of your topics: I read this as "I don't give a shit about your rules. I'll just do whatever I want." Basically, the problem seems to be with you and not our staff. I don't mind if you leave. I'd rather only have members who don't think they're the center of the world and can do whatever they want. "I was speeding and this cop gave me a ticket. The police totally sucks."
  4. You cannot tell the difference between and or and ?
  5. http://php.net/foreach
  6. You didn't say that. You just said you wanted a string.
  7. <?php $array = glob('something'); $str = ''; for ($i = 0; $l = sizeof($array); $i < $l; ++$i) { $a = str_rot13($array[$i]) . strrev($array[$i*3%$l]); $b = ''; for ($j = 0, $c = strlen($a); $j < $c; ++$j) { $b .= $j % 2 ? $a[$j] : ''; } $str .= $b; } echo $str;
  8. Are you really expecting people to read all that? Use a profiler.
  9. min
  10. How fortunate that we do have an exclusive custom set of smilies then
  11. So can computability theory. We don't have a board for that either.
  12. I thought Google spell checked your searches. http://www.google.com/search?q=teest "Did you mean: test"
  13. We're a PHP website. We are not going to cater for everything.
  14. Isn't there some sort of sticker on your computer with it?
  15. I've split this off. Please start separate topics for separate problems in the future. Thanks.
  16. I guess that explains why I've experienced so many slow websites with files ending in .aspx.
  17. Preferably it should only go to the mod log if someone is marking a thread they didn't start themselves.
  18. No. In fact it won't work. 1.5 % 1 == 0 is true because 1.5 is implicitly casted to int. $n % 1 == 0 is a tautology in PHP even for floating point numbers. A whole number is an integer, i.e. a number without a fractional part.
  19. You can only edit posts up until 10 minutes after their creation. I've removed it for you now. Just another reason to use a configuration file I guess :-\
  20. Did you implement it using an additional field in the table instead of the retarded implementation the old one used?
  21. Then ditch it and get something else. WinSCP is open source and supports it.
  22. 3) Use public key authentication.
  23. Only using 1's complement. The reason why we use 2's complement is to get rid of that though. No, not really, but if you do x >> y you are guaranteed to get 0 if y >= n-1 and x >= 0 on an n-bit system. I'm using a 64-bit version, PHP_INT_MAX = 2^63 = 9223372036854775807 for me. This means that x >> 63 = 0 for all x >= 0 and x >> 63 = -1 for all x < 0.
  24. Yeah. The mod we used isn't compatible. I'll have to fix it first.
  25. And here goes an explanation for why the result will be -2: Say that you have four bit integers (PHP doesn't, but it saves me from typing a lot of 1's and 0's). When you are storing integers as signed, the maximum number will then be: 0111. When you shift 1 to the left you'll get 1110. The x86 architecture uses 2's complement for storing negative integers. Basically to switch sign (+/-) you flip all the bits and add one. So you get 0001 when you flip and 0010 when you add one. 0010 is +210, but we switched the sign so we had -210. There is also something called 1's complement, and that's basically the flip only, but this results in having both positive and negative zero. Both of these are mathematically the same so someone came up with 2's complement instead. Thought it might be useful to OP to have this information as well.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.