Jump to content
MakeWebGames

SRB

Members
  • Posts

    785
  • Joined

  • Last visited

  • Days Won

    79

Everything posted by SRB

  1. If you have any messages in your inbox, post the first one here. Embarrassment, n00bism, etc all welcome. #ohsonoob
  2. What would you know, you only live there? ?
  3. Amsterdam or Copenhagen? They're the only 2 cities in The Netherlands, right? ?
  4. See, it's that attention to detail that makes me love you, @Dave ? Thanks dude.
  5. I've just checked and can't see any option to do it myself. Can I take SRB? Line breaking is playing with my emotions.
  6. SRB

    Valet

    I used Valet at work, since I'm on a mac here. At home, I'm on linux, so Valet-Linux to the rescue too. https://cpriego.github.io/valet-linux/ As much as laravel-valet implied valet is a laravel only product, it's not. If your code is within /project/public and you run "valet link site_name", you're good.
  7. Absolute legend @Dave. Thanks muchly. Edit - Appears to break lines on length - shall we roll with SRB?
  8. Don't say that too loud, @Dave, you'll have Chris Hansen bursting out the pantry! Yeah, 2006 - since you're here, can I have my name changed back to SomeRandomBastard - I feel like being that persona again ?
  9. Feel classic now IDs are in profile URLs. If you hadn't stolen ID 1, I'm sure I'd be the oldest active account ?
  10. Don't mind me, I'm of no interest. Just a random Guest passing through.
  11. SRB

    New grpg forum

    Will you have spam protection? :D
  12. SRB

    Increments

    This was wrote with C in mind, but language is irrelevant for this question. http://stackoverflow.com/questions/24853/what-is-the-difference-between-i-and-i Outside of reading then, play with a few example loops.
  13. By everything you know, what have you actually tried?
  14. You know, sometimes there is only one way to process a string, yet someone asks for an example, so for the sake of it - enter some code that's no simpler to understand than the string above.   <?php $total = 200; $whole = 100; $percent = 10; $value = ($total / $whole) * $percent;
  15. SRB

    Devana

    Cheers Dayo. I've never been a fan of SF, so never actively used it - therefore, totally oblivious to how to access anything. Even yesterday, I only registered a Download ZIP link.
  16. SRB

    Devana

    What are the chances of getting it on git or bitbucket? Kind of want to take a peek under the hood, but in 2016, I shouldn't need to download anything to peek.
  17. Why would you not do this at mysql level and save yourself some resources and lines of code? MySQL runs faster than PHP, so makes logical sense to pull the data at that level. For example : <?php $userid = $_SESSION['userid']; $sql = <<<SQL SELECT IF(userid == $userid, username, 'Unknown') AS name FROM users LEFT JOIN userstats USING (userid) ORDER BY (strength + agility + guard + IQ) DESC LIMIT 20 SQL; $rs = $db->query($sql); if ($db->num_rows($rs)) { while ($row = $db->fetch_row($rs)) { echo $row['name'] . '<br />'; } }   Note I am not sure if the ORDER BY has all the right fields or if the $db class is even calling the right function names, but from memory, this looks about right;
  18. This post clearly outlines the issues with MWG, staffing issues aside. Someone can post for help and get one of 2 replies - no and chitty. Someone comes on here to complain and boom, a page full of equally as useless drivel. And we wonder why the decent dev's have all given up on this place and rarely post. An owner doesn't make a forum (although fixing spam issues would be nice - that or get a working "Mark all as read"), the users do ... and now we have no users who wish to contribute much, so who cares who the owner is - the place is dead.
  19. Inbox me info.
  20. SRB

    $counter++?

    I read that "thread" with some interest; Interest in Alain passing judgement on "Many if not most there don't do anything beside talk" - We could do far worse, we could have created NWE, which I named No Way Engine because there is no way I would use that crap. PHP Certification and that's your best work? Less smack talk and more studying, please. Then to say most don't know PHP and if they do, it's McCode PHP - Again, could be worse - could be an NWE developer. Also, Interest in E Coli needing verification from others of his 1337 skillz and amazing pers0nality. Also interested in who "There's at least 3, and they seem to have taken an interest in me." would be. Since both you and I have made no secret that we think E Coli is a slight bell, I question who the 3rd is. Back Story - Since E Coli seems to think we dislike him for "unknown reasons" I was working on a game, which I won't mention the name of, and modified every query call to use a single, lightweight class. I then decide I'm done working there and go MIA for a few months. During this time E Coli gets the task of changing some things. I re-appear on the web and they ask me to fix some stuff he had wrote. No problem right? Wrong. Not only was his code broken, he couldn't be bothered to load up the class to see what it does. I left the site with every query running via $db->execute($sql) and come back to that and ...   $db2 = mysql_connect .... ​Yeah, screw you and your attention seeking shizzle,
  21. SRB

    $counter++?

    I think you're actually a bigger ass than me... I like it, keep up the good work - especially where E Coli is involved.
  22. SRB

    $counter++?

    Personally, I think you need 4 separate results with the same number - maybe team matching or something?   <?php $a = range('a', 'z'); $counter = 1; foreach ($a as $result) { echo ceil($counter / 4)."\n"; $counter++; }   Link Eval IN
  23. You running a pentium 3 over there, dude?
  24.   I may throw it in bitbucket when it's done - while it works, I know it can be shortened, so I'm working on that first. It's moved a couple slots down my priority list at this instance though, since I technically have a working backup script, so no longer priority.
  25. As a side note; this thread made me remember I was supposed to build a backup script for one of my DO droplets. Never wrote a BASH script before, but just built one to zip up all files and databases (8 domains within that droplet), then push them to S3, automatically each day. Surprisingly very easy (and stupidly fast) - when you're up and running, give me a shout :)
×
×
  • Create New...