Jump to content

xyph

Staff Alumni
  • Posts

    3,711
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by xyph

  1. Is this all done locally? Why not simply skip the PHP middle-man?
  2. I'm not sure how helpful this thread can be. Unless to manage to cover nearly every potential attack vector (database,filesystem,output,client trust,etc) we could potentially just be handing out a false sense of security. That can be a very dangerous thing
  3. I wish I could've said the same. It was the first and last Apple laptop I'll ever purchase
  4. What innovation? It's all marketing. There are smart people at Apple, but they aren't known for original ideas
  5. The only time you should feel safe is with a very strong understanding of the technology and the underlying protocols. Even with proper guidance, it's very easy to implement incorrectly
  6. This topic has been moved to PHP Applications. http://forums.phpfreaks.com/index.php?topic=364607.0
  7. Not to mention think of all the people who use phones. The phone are smart but people aren't. Think of all of the posts you've seen on php freaks forums of people who say "it's broken" (hopefully I'm not the worst offender) but with no idea of what they are actually doing. Now picture those same people in the cell phone stores with the phone they had root access to extended in their hands "it's broken..." It is the whole idea of companies trying to make the one-phone-fits-all solution and unfortunately that usually means dumbing it down. I do feel that they shouldn't go to great lengths such as apple to prevent people who want raw access to the phone's capabilities. Those who don't need file system access are welcome to not use it. Just like those who don't want to use the command line are welcome to use other means to run applications. Making things easier shouldn't necessarily mean putting locks on useful functionality that is already present
  8. To limit the number of permutations, only calculate the ones where two or more drivers have the same preference. It's going to be difficult to solve without actually determining most paths. Any shortcuts could remove potential lower paths
  9. Why are you using the bc functions for one operation but not the other?
  10. Doesn't Sony have the same issue with the Playstation? People want to mod it and they won't let them? What about windows phones? Or dumbphones? Sony is in the same boat as Apple. You could even say they pioneered the 'our way or it's wrong' with proprietary hardware using existing technology. They used to create their own stuff, but they kept such strict control that people moved on. They didn't have the marketing team Apple had. Windows 7 phones are still pretty uncommon, so I didn't mention that. You are right though, they've locked down file system access, and are probably going to fight rooting methods. I'm not sure if this has been shown yet though. Android is similar that they don't allow raw access, but they won't try and stop you from rooting once you know how. Can't really blame them, they need to try and protect paid software, but as a nerd, I'm not going to agree with dumbing down the system to enforce IP, that's going to be broken by people who really want to anyways.
  11. My point exactly. We're very multicultural here, and a lot of people who immigrate comes from cities where driving is both scary and limited. The government pretty much hands them licenses, and their grand kids convince them to buy Escalades and Navigators (they want to drive them too). Needless to say, seniors on the road is worrisome if theyre NOT in giant SUVs It's pretty funny though. The grand kids throw 28" wheels on them so you see 80 year olds in blinged-up Caddys
  12. And then wait for the guys to release the next jailbreak when the software gets updated. Apple is fighting against those who want to use the hardware in their own way, and I really don't like that
  13. You're using a hipster phone. So powerful, no file system access without breaking their terms. Applications that must live up to Apple standards (which allows tons of useless shit while blocking many useful apps). It's a smartphone, dumbed down. If you don't mind doings ererything the Apple way, they're not bad
  14. Well, a car without reverse is at a severe disadvantage to one that has it. It wouldn't compete in a market with both A programming language without procedural syntax can be just as functional as one that does. A better analogy would be something that has multiple ways to accomplish the same thing, rather than one
  15. Owning an Apple product is a social statement. Some of the hardware they use is top-quality, but they make up for it with bottom-end elsewhere. A friend of mine is a Mac zealot, works at a Mac-only store (was the Mac store up here before Apple had any) and even he has to admit serious issues when he has stacks of defective product in the back room. It's consumer hardware, it's going to happen. Windows is no worse than OSX (sans Vista, and OSXs move to a unix backend, but that means much less on a desktop OS). It's really preference. I've been quite happy with Microsoft's NT-based OS', as long as I don't have to use Active Directory or Exchange
  16. If they're all integers, you don't need and shouldn't use quotes. If you don't use quotes, real_escape_string doesn't work though, so you should instead check using ctype_digit if( !ctype_digit((string)$varToCheck) ) { // bad input } If you don't need to explicitly check for valid input, you can simply cast it as an integer Don't forget to make sure that anything that shouldn't be 0, isn't
  17. I need to somehow market and profit off this programming fashion industry
  18. 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? This analogy made my head explode
  19. He's Dutch, what do you expect?
  20. The issue was that you were using the string versions of your numbers. If you forced multisort to use SORT_NUMERIC or you casted your comparison values to integers, it would've worked as you expected. <?php $data = 'Dk_Blue 1 1 0 0 3 10 Green 1 0 1 0 0 8 Lt_Blue 1 1 0 0 3 8 Purple 1 0 1 0 0 5 White 1 1 0 0 3 9 Yellow 1 0 1 0 0 4'; $lines = explode("\n",$data); $stats = array(); $sort1 = array(); $sort2 = array(); foreach( $lines as $key => $line ) { $values = explode(' ',$line); $stats[$key]['team'] = $values[0]; $stats[$key]['points'] = $values[5]; $stats[$key]['goals'] = $values[6]; $sort1[$key] = (int)$values[6]; $sort2[$key] = (int)$values[5]; } header('content-type: text/plain'); foreach($stats as $arr) echo "$arr[team]\t$arr[points]\t$arr[goals]\n"; array_multisort($sort1, SORT_DESC, $sort2, SORT_DESC, $stats); echo "\n"; foreach($stats as $arr) echo "$arr[team]\t$arr[points]\t$arr[goals]\n"; ?> Dk_Blue 3 10 Green 0 8 Lt_Blue 3 8 Purple 0 5 White 3 9 Yellow 0 4 Dk_Blue 3 10 White 3 9 Lt_Blue 3 8 Green 0 8 Purple 0 5 Yellow 0 4
  21. Have you tried array_multisort? http://php.net/array_multisort Check out example 3, and let us know if you have any problems
  22. Well, PHP being the most used makes it no longer trendy. Who wants to develop a cool, trendy app on a non-trendy platform? LOL, you aren't using NoSQL for that?
×
×
  • 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.