To anyone involved with The Interview: I really don’t get it how you could screw this up. You had global attention. Everybody wanted to see your movie. You had a perfect 10 on IMDB for a while. You eventually decided to release it online. Everybody got excited. And then you decided to limit the online …
PHP 7: Immediately Invoked Function Expressions
PHP7 will continue to borrow some of the beloved JavaScript features and will support Immediately Invoked Function Expressions (IIFEs): <?php echo (function() { return 42; })(); Output for php7@20140901 – 20141101: 42 Since we can already return functions from inside other functions, Currying Partial Application is also possible in combination with the IIFE implementation: <?php …
Continue reading “PHP 7: Immediately Invoked Function Expressions”
AWS Resource APIs for PHP
<?php require 'vendor/autoload.php'; use Aws\Resource\Aws; $aws = new Aws([ 'region' => 'us-west-2', 'version' => 'latest', 'profile' => 'your-credential-profile', ]); $bucket = $aws->s3->bucket('your-bucket'); $object = $bucket->putObject([ 'Key' => 'images/image001.jpg', 'Body' => fopen('/path/to/image.jpg', 'r'), ]); The core AWS SDK for PHP is composed of service client objects that have methods corresponding 1-to-1 with operations in the service’s …
Blackfire Profiler
Blackfire Profiler automatically instruments your code to gather data about consumed server resources like memory, CPU time, and I/O. But Blackfire Profiler is more than figures; its interactive Callgraphs make it straightforward to find bottlenecks and improve performance. Moreover, profile comparisons let you understand the impact of your changes. Blackfire Profiler — Fire up your …
PHP Roave Security Advisories
$ composer require roave/security-advisories:dev-master $ # following commands will fail: $ composer require symfony/symfony:2.5.2 $ composer require zendframework/zendframework:2.3.1 This package ensures that your PHP application doesn’t have installed dependencies with known security vulnerabilities. This package does not provide any API or usable classes: its only purpose is to prevent installation of software with known and …
explainshell.com
How Our Side Project Generated $51,365 In 60 Days
The storey behind Emoji Masks: Before we both headed into the office, our eyes were glued to our analytics app. Being number 1 on Product Hunt for the day was driving insane amounts of traffic. We were pretty surprised since it was still so early in the day. Launch day ended with just over $5,000 …
Continue reading “How Our Side Project Generated $51,365 In 60 Days”
Ship and Iterate
WarSting: A Wi-Fi scanning sword for Hobbits.
To celebrate the launch of the new Hobbit flick, we made a version of Sting that turns blue near unsecured Wi-Fi networks. And when you slash the sword, Sting will jump on the network, and publish a message: “{YOUR WI-FI NETWORK} has been vanquished!” Instructables included, source on GitHub. WarSting: A Wi-Fi scanning sword for …
Continue reading “WarSting: A Wi-Fi scanning sword for Hobbits.”
Terrible choices: MySQL
In addition to the aforementioned MySQL behaviour you should be aware of, another list pointing out flaws/quirks in MySQL. Had I knew all this from the start, maybe the ride would had been in easy mode. You can’t shake off the dirty sensation of “I have made a terrible choice” if you have to explain …