Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. So what happens when you need *drumroll*... two connections? Answer: You're screwed. And what happens when you need to do unit testing, but the choice of adapter is hardcoded and you want to mock it? Answer: You're screwed. And what happens when you want to change from MySQLWhatever to PostregeSQLWhatever, but the choice of adapter is hardcoded? Answer: You're screwed.
  2. There can be an unlimited amount of characters on one page if the font size is infinitesimal.
  3. My favorite way of handling the singleton pattern is by avoiding it.
  4. That's a KB article for Windows XP, which is two major versions behind. Does that mean that PHP 3 is the same thing as PHP 5? Try plugging in a Vista or Win7 disk in your computer and compare it with what you see when you plug in an XP disk. No DOS. The KB-article is called "How to start the Setup program from MS-DOS in Windows XP". How come I can't find one that says "How to start the Setup program from MS-DOS in Windows 7" if Windows 7 also includes MS-DOS?
  5. My guess would be either an HTML comment or a PHP code block.
  6. Seems like the other ones are gif, so let's just go with that.
  7. Now featuring realtime statistics of the channels and users.
  8. To extend our services, we have setup an IRC server for live chat amongst the members of PHP Freaks (and everybody else who wants to join us). The server is located at irc.phpfreaks.com and we have two channels called #chat for regular chatting and #help for receiving help or helping other people. If you do not have a desktop client or do not want one, we have setup a IRC web client that can run in your browser using only JavaScript. For additional information and introduction to basic IRC commands, see our IRC information page. You'll find links to both the web client and the information page on the top navigation bar. We'll be looking forward to talking with you in the chat
  9. So if I get the button images for "left" I'll see if I can figure out how to add it.
  10. They did something like that last year as well.
  11. Yeah. That's called the "job security" convention.
  12. It's not absurd learning a language in a few days. It just depends on your prior experience with programming. Of course the people with that kind of experience are not the target audience for those books.
  13. That's pretty much the point of all formatting conventions. The compiler/interpreter doesn't care either way.
  14. I just checked the database. Your PM has been sent. It has deleted_by_sender=1 (which is equivalent to having not chosen "save in outbox") so that's why you cannot see it. As for blocking, yes it is possible to block PMs from all or selected members, but you would be able to see that when you try sending.
  15. There should be no restrictions on sending PMs for new users (except you may have to fill out a CAPTCHA). The post requirement was lifted quite a while ago.
  16. A lot of spam is done manually by humans. In that case it's better trying to detect and filter spam rather than trying to prevent it.
  17. I'm not exactly sure how the responses to his topic could in any way be considered inappropriate though. If it's because he didn't understand the replies it's just a matter of asking for clarification. It's not easy determining how detailed your reply needs to be when the original question is very sparse with information. So once more, it comes down to asking the right question. For reference, this is the topic: http://www.phpfreaks.com/forums/index.php/topic,282598.0.html
  18. Of course I have, but I see no motivation for asking a question and then upon receiving the answer start calling people "loosers" (sic) and "waste of space". Hence my interest in knowing what might have triggered this.
  19. You might want to elaborate on exactly what exactly you're so dissatisfied about. Otherwise we stand little chance of improving, let alone knowing what you're even talking about.
  20. I'm not really sure what you are talking about. You've been told what the issue is, how you can get rid of it and what you can do if you don't care about deprecation and just want the messages to go away. Exactly what more do you want? That being said, if you are so unsatisfied, nobody is forcing you to stick around.
  21. They are still supported, they're just deprecated because they will be removed in PHP 6.
  22. Sure thing. If you can't attack the man's arguments, go for the man instead. Sounds like a viable rhetorical strategy.
  23. Benchmarking 10000 iterations returns that _assoc() is on average 35% faster when pulling out 100 rows. Atleast on WAMP. Who says that 10000 iterations and 100 rows is statistically representative? You cannot always just draw conclusions like that. Many things are circumstantial. For example, for sorting small amounts of data or data that is already nearly sorted, bubble sort works quite fine. However, for larger amounts of data that is highly randomized it's inefficient because its worst-case running time is quadratic. Similarly, consider the two following series: an=n10 and bn=2n-1. Here, a50 > b50, but a1000 < b1000 (way smaller in fact). Indeed all exponential functions will "win" (in terms of getting the highest number) over any polynomial function for sufficiently large input. How is this relevant? Well, the two series could represent running times for two algorithms. In this case, b would then be best for small input, and a would be best for large input. It may be that the numbers you picked aren't good enough and in this case I think these two functions relative efficiency is somewhat a moot point. Moreover, 35% doesn't say very much. Someone who has 3 posts on PHP Freaks has 300% more posts than someone with only 1 post. This is much different than 15000 vs 5000 posts.
  24. This is what courts are for. If this happens across borders, good luck if you haven't got a lot of money.
  25. 1b: It allows you to have docblock comments for the properties. 2a: As per the ZF coding standards. 3a: I think it makes it easier to read the code. 4a: Easier to read than not using any word separation. Easier to type than using underscores.
×
×
  • 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.