Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. I'm quite sure it's a person as well. First of all, it wouldn't make sense that a bot would ask for a question. There aren't even any external links or advertising message in it. Secondly, the user has a post history and has answered in response to other posts.
  2. Or maybe just someone stupid. A poll stands out from regular topics so I assume it's to catch attention. It annoys me though, so I'd leave a such topic.
  3. I'm pretty sure that polls have been enabled everywhere for a long time. It didn't occur during the beta4 -> rc1 update of SMF at least.
  4. I've decided to disable polls for regular members in all forums except misc. If anyone can give me a good reason to enable it in other forums then I'll do that.
  5. Yeah I've thought about that before. We could disable polls in the help forums. Actually, I don't see why someone might create a poll outside the misc forum.
  6. mat-tastic, given that I have access to quite a lot of information about the attack I find it unlikely that it was SMF's fault. We have been attacked through a hole in SMF before though, and that was much more destructive than just leading our users elsewhere.
  7. I wish PHP would stop making it an implicit string. Then people would finally do it correctly.
  8. <script language="php"> $var = 'printf'; $var('hello %s', $var); </script> I win.
  9. Sleeper code? As in a trojan? I doubt it. It's open source and someone would eventually find it. It would instantly ruin their reputation.
  10. <script language="php"> printf('hello printf'); </script>
  11. Another scenario could be that the passwords were retrieved from somewhere else, i.e. a vulnerability on another site revealed the passwords.
  12. So what happens you you enable the asp style tags?
  13. Variable interpolation (i.e. substituting the variable with its value in a string) only works for strings enclosed in double quotes. Strings enclosed in single quotes are returned verbatim. Check out the strings part of the language reference chapter in the manual.
  14. It's called short_open_tag in php.ini.
  15. I'm not sure if the login was possible due to a flaw in SMF's code or because the passwords were retrieved from another place. It happened to two admin accounts though.
  16. See: http://php.net/language.operators.arithmetic http://php.net/math
  17. It has been fixed now.
  18. Dunno if it was a proxy. I guess I'll check that tomorrow later today.
  19. We thought it was a flaw in SMF. Eventually we found out that one of the admin accounts on the forums had been used by an IP address in Latvia to modify the ads to have the meta redirects instead. Bloody idiots could at least have done it during day hours instead of in the middle of the night (for me)...
  20. Fucking took me, Tom and Tony two hours to track down. Then the stupid MySQL server crashed...
  21. This will generate an array of pairs where every person is grouped with all other persons exactly once. <?php $names = $namesCopy = array('Bert', 'Dries', 'Frank', 'July', 'Evelien', 'Mark', 'Lies', 'Nico', 'Sofie'); $pairs = array(); while (count($namesCopy)) { $currentName = array_shift($namesCopy); foreach ($namesCopy as $name) { $pairs[] = array($currentName, $name); } } print_r($pairs); ?> Basically the idea is that you create a copy array (or you could use the original array if you wish) and run through it. On each iteration you remove the first person and group that person with all the other persons. The reason why you remove him from the array is that he has already been placed in all the possible pairs he can be in. You keep doing that until there are no people left who have not been grouped. Also, you got your math wrong. The number of combinations if you pick k people out of n people is given by: [tex]C(n,k) = \frac{n!}{(n-k)! \cdot k!}[/tex] So that gives: [tex]C(9,2) = \frac{9!}{(9-2)! \cdot 2!} = 36[/tex] Yours however is like this for n people: [tex]C(n) = \sum_{i=1}^n i[/tex] [tex]C(9) = \sum_{i=1}^9 i = 45[/tex] I'm not sure where you got that from. Finally, I recommend that you name all variables, functions, classes, etc. in English.
  22. I don't really agree that w3schools is good for learning. It just teaches you the syntax which you should be able to pick up in short time anyway. It doesn't really contain anything else than the PHP manual does.
  23. I already had a Linux distro installed. It worked properly on neither Windows nor GNU/Linux.
  24. You'll get an E_NOTICE if you use an undefined variable
  25. Yeah I guess I was too nice. By actually sending it in for repair I have accepted that they get another chance at repairing it. I also have the right to cancel the purchase if repair time is too long. I think what I can do is send them a letter with an ultimatum of getting it returned in a repaired state within a particular timeframe or otherwise I'll cancel the purchase and demand a full refund. I have a series of written tests in less than one month for which students are required to bring their own computers. Not having the computer at that time would not just be an inconvenience, but a damn major one. The one month wasn't formally stated anywhere, but just the answer when I asked on my way out, so I haven't accepted any repair time, but only that they'll get another shot at repairing it. For that reason I think I'll have the law on my side if I demand it repaired within a fair timeframe.
×
×
  • 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.