I got another reminder today of how bad setInterval can be. You just don’t hear developers talking about the problems with setInterval. In fact, I’ve seen numerous tutorials where good developers are using it in their examples. We need to start addressing this and start talking about the problems with setInterval. [Read more…] about setInterval is Bad
Uploading to Amazon S3 can be a great way to keep your files loading quickly with their CDN, and allow you to work more on your code, rather than your filesystem.
Laravel 5’s new FileSystem makes this easy, but lacks a lot of documentation for how to actually accomplish this. First thing we need to do is tell our controller class to use the Filesystem contract and the Request class. [Read more…] about Upload Files to AWS S3 using Laravel
There seems to be a small bug in FireFox when you are using percentage based margins and Flexbox. If you are using Flexbox, and you have set a percentage based bottom or top margin, they are not applied in FireFox. I have setup a CodePen to demonstrate the problem and you can track the Bugzilla file. The margin is applied correctly in Chrome, Safari and Internet Explorer. [Read more…] about FireFox Bug using FlexBox and Percentage Based Margins
I use to play online poker a lot, but lately not so much. Mostly because the sites really took a hit since Black Friday. Getting to see how the original shuffle algorithms work is awesome, albeit a little disturbing when you see how exploitable they used to be. I do believe this has changed, and random shuffles are audited now.
I use PHP shorthand syntax all the time when working with html templates with embedded PHP. I find the syntax much cleaner then having a bunch of closing brackets in my WordPress or Laravel template files. I came across a tweet the other day from @csswizardry regarding his negative view on the PHP shorhand sytax.
[Read more…] about PHP Tip: When to use the alternative syntax