Jump to content

xyph

Staff Alumni
  • Posts

    3,711
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by xyph

  1. http://forums.mysql.com/read.php?20,85813,85816#msg-85816
  2. There's no single way to properly determine bandwidth over all platforms. Even if possible, it'll take at the very least several seconds to get a good idea of the bandwidth - on each 'new' visit? Seems annoying to me. The AJAX call is flawed. What happens if one of the nodes takes a random extra half-second to respond? What happens when any sort of network hiccup delays the connection? Most browsers do a good job of letting you know what platform they're using to connect, and identify themselves (this can be spoofed, yes, but we're talking about average users here). Forcing a certain layout upon them based on some arbitrary test that may or may not actually provide accurate results is just silly. Provide them with the best template you can based on how they've IDENTIFIED themselves, and allow them to change this (perhaps with a cookie to remember) somewhere in your footer or navigation. If you can't find where others have suggested against your path of choice, then I suppose you can't be helped.
  3. Many experienced and strong developers disagree with you. It's nice that you have your opinions, but the ones that contradict them are based on real experience. You've got your solution - use an AJAX call to try and determine bandwidth. You also have many industry professionals telling you that it's not the right way to go. If you think these conclusions are based on anything other than experience, you're incorrect. Disagreeing in theory isn't good discussion. Make this one client-side library to rule them all, and we'll congratulate you. Considering even jQuery has a different code base for mobile devices, all I can say is best of luck and Godspeed.
  4. Says you. My OS is built on PHP. Sorry, I figured this thread had already been derailed enough.
  5. Why ? There is no problem to create "read only views" users permissions. I'm talking about secure deletion from the hard disk. Linux - srm Windows - sdelete http://en.wikipedia.org/wiki/Data_remanence Depends on your clients needs though, just a disadvantage to think about, and a reason I always store data on the disk for client projects. If they want secure deletion now or later, I don't have to rebuild anything.
  6. A big disadvantage to storing them in the DB is that there's no 'good' way to securely delete them.
  7. Isn't there always some sort of key exchange that has to happen?
  8. If you just want XDebug, and don't need special compile flags or to directly match the compilation of a production server, you can always just grab WAMP http://www.wampserver.com/en/ Apache 2.22, MySQL 5.5, PHP 5.4, XDebug 2.1 is available as a nice, managed package.
  9. That's what /dev/urandom is for. Make your system cryptographically random, and each 'key' on any system becomes pretty unique. A key analogy is bad anyways. The dealership always has to be able to replicate any given key due to loss. You DON'T want this behaviour with a password
  10. There are great pre-built classes out there. Obscurity doesn't add security. That said, there's also a LOT of bad advice out there as well.
  11. Oh, I thought it was being changed on each request. Yes, it's to prevent fixation. It's pretty much an attacker tricking a victim into generating an ID he's crafted. Once the login happens, the attacker can then just access the restricted pages using the same session ID containing the victim's credentials. By regenerating the ID, you're destroying the crafted ID.
  12. Prevents against session fixation. It's quite overkill, and only really NEEDS to be done when privileges are elevated. Nothing wrong with it though.
  13. stristr ? stripos ? preg_match ?
  14. This topic has been moved to Miscellaneous. http://forums.phpfreaks.com/index.php?topic=364698.0
  15. This topic has been moved to PHP Regex. http://forums.phpfreaks.com/index.php?topic=364699.0
  16. Even spammer will convert this text based image to bitmap file, anyway it will be difficulty task for OCR system to read captcha symbols from this bitmap file. No, it wont On that note, it would probably be easier to simply grab the raw data and reverse engineer your algorithm
  17. You aren't looking for PHP help, you want someone to provide or recommend a prebuilt solution
  18. This topic has been moved to Third Party PHP Scripts. http://forums.phpfreaks.com/index.php?topic=364679.0
  19. Many people avoid w3schools on principle. They have no ties to w3, offer BS certificates, incomplete information, etc. If you Google around you'll find lots of reasons to avoid its use. There are generally better, more accurate, and more complete sources out there that aren't hard to find. Look beyond the first couple search results.
  20. Why? Go ahead, tell us why the ability to program with or without objects is a drawback, instead of a feature. My car isn't fully a forward-moving car, it has reverse. major drawback? Bad analogy my friend, a car without reverse-moving mechanism is a huge drawback, while a programing language that prohibits procedural programming is an improvement of standard and quality. Let's think about a University that used to accept only high school seniors with great academic performance and excellent extracurricular activities, but now also takes in kids with poor intelligence and lots of extra issues like drug-usage. Of course the school increases its 'diversity' on campus and is apparently earning more money. Would you call this an improvement, from quality point of view? You open with claiming his analogy is bad, and then you finish with one equally terrible. Avoid analogies when debating. They're generally inaccurate, and serve to make you look like you really have no idea what you're talking about. Hall of Famer, your claims without any sort of reasoning behind them are starting to look like trolling.
  21. To avoid confusion, in the customer table, the closer column should be credential_id. The relationship becomes much more obvious. I'm going to refer to it as that in my reply. I have no idea what the CRON does, so I'm just going to ignore it. It seems to corrupt the data we're querying, so you'll have to explain it in more detail if the solution I provide doesn't work. SELECT credential_id FROM customers WHERE progress = 1 GROUP BY credential_id HAVING COUNT(*) <= 5 UNION ALL SELECT cred.id FROM credentials cred WHERE NOT EXISTS ( SELECT cust.credential_id FROM customers cust WHERE cust.credential_id = cred.id ) I think that's what you want. It grabs the IDs WITH 5 or less rows, then merges those with a query that does an 'anti-join' of sorts.
×
×
  • 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.