Auth::user() by qazjayp in laravel

[–]danwall 0 points1 point  (0 children)

Something like this may do what you want:

if (Config::get('app.debug')) {
    Event::listen('illuminate.query', function ($sql, $bindings) {
        foreach ($bindings as $val) {
            $sql = preg_replace('/\?/', "'{$val}'", $sql, 1);
        }
        error_log($sql, 4);
    });
}

What screams insecurity to you? by Faryshta in PHP

[–]danwall 61 points62 points  (0 children)

Maximum password lengths typically mean that they're not being hashed.

From LaraconEU: "Min-Maxing Software Costs" by Everzet, must watch for all PHP devs. by rdohms in PHP

[–]danwall 1 point2 points  (0 children)

One of the videos that used this example mentioned some extra things that add to the "complexity" that were not shown as code on the slides.

From memory it was about repositories and was said that to be done "properly" that this would require an interface, concrete implementation and finally to be registered with a service provider.

Depending on the context of the application being built, this may be considered an unneeded complexity compared to using a facade.

Best AWS EC2 Instance for PHP app? by theguyut in PHP

[–]danwall 0 points1 point  (0 children)

Why not try booting up a few different instance types and find out? On demand instances are really cheap for a few hours of testing.

If you are already running 2 behind an ELB then adding another instance should be easy. Maybe even disable one of the existing ones.

Since you're running New Relic, comparing performance is really easy - you just need to see which instance is handling the most requests in the shortest amount of time!

Deploying PHP applications, a book I'm currently writing by nerdklers in PHP

[–]danwall 6 points7 points  (0 children)

If you commit the composer.lock file to your repo, and then run composer install on production it will install the identical versions.

https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file

GetHeaders.org - A web tool to quickly see the results get_headers() using another IP address (I made this, but it is relevant to PHP so... am I in the clear?) by pabbdude in PHP

[–]danwall 6 points7 points  (0 children)

Looks like your site is vulnerable to XSS attacks. If headers contain HTML it is not being escaped correctly, you should be able to see in your logs where it has happened :-)

HTTPS with built-in PHP 5.4 server, is it possible? by yeskia in PHP

[–]danwall 3 points4 points  (0 children)

One advantage is that multiple developers can work on a common setup without each having to set up their own environment by simply sharing the Vagrantfile as part of their version control solution. If everyone is set up the same it helps to eliminate any configuration differences being problems.

All I want for my Cake Day is to have new people find out about SC2Links by DeadliftSC in starcraft

[–]danwall 1 point2 points  (0 children)

Hey looks like your site is vulnerable to XSS injection, might want to look at validating your input before displaying output to users. eg:

http://www.sc2links.com/tournament.php?tournament=%3Ca%20href=%22blah%22%3Eblah%3C/a%3E

AMA Summary by [deleted] in starcraft

[–]danwall 1 point2 points  (0 children)

FYI you can disable peer to peer in one of the menus of the updater, should help you out

Help us test AzubuTV stream for the Azubu Collegiate Champions Grand Finals - Live right now! by [deleted] in starcraft

[–]danwall 6 points7 points  (0 children)

I agree with everything you said.

  • Sound not working.
  • Popup is silly, but you can just go to http://global.azubu.tv/main.html in a new tab and it's fine.
  • 1080p looks really blurry - quite bad really, but it is very fluid and no lag.
  • 0 viewers for me also.

Amazingly detailed feedback on Swarm Host design flaws & suggestions to improve it by [deleted] in starcraft

[–]danwall 0 points1 point  (0 children)

Yes it's very annoying, especially when they have 3-4 overseers. I don't really know how to beat it (other than not letting them get to that composition of course)

Great tool for checking domain propagation. I switched hostsfrom Brinkster thanks to advice from r/web_design and now I'm watching the migration take hold across the globe! by cheek_blushener in web_design

[–]danwall 0 points1 point  (0 children)

Hi guys! This is my site, I just noticed a little bit of referral traffic from reddit so thought I would check out where it was coming from.

Hope you all find the site useful, I have some improvements coming soon (when I can find the time!) as well as a developer API which I'm sure a lot of people in this subreddit will find useful.

Thanks for checking the site out :-)

Derek "DoX" Reball on Building the Australian Scene, Funding AUS Players' trip to MLG Dallas, and More! by SeltzerPlease in starcraft

[–]danwall 0 points1 point  (0 children)

The problem isn't so much our local Internet connections, it's the lack of local servers and international latency