Yes, bram.us is still a thing. Save a few posts mid July not that much has happened around here. So, what have I been up to the past two months? Here’s a small list (saving the best for last): I reviewed a book I went diving I renovated my house I went camping with my …
Category Archives: Original Content
ES6 ES2015 Arrow Functions and this
Why you’d want to use arrow functions (next to them being shorter to type): Arrow functions will maintain the this value of the enclosing context Yes, this will work just fine: function Wilto() { this.age = 32; setInterval(() => { this.age++; console.log( “I am now ” + this.age + ” years old”); }, 3000 ); …
ionic emulate “[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7fd64840e790”
Got this error when running ionic emulate: 2015-03-16 11:13:24.112 ios-sim[50548:9106309] stderrPath: /Users/bramus/Projects/ionic/todos/platforms/ios/cordova/console.log 2015-03-16 11:13:24.113 ios-sim[50548:9106309] stdoutPath: /Users/bramus/Projects/ionic/todos/platforms/ios/cordova/console.log 2015-03-16 11:13:24.140 ios-sim[50548:9106309] -[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7fec20d08400 2015-03-16 11:13:24.140 ios-sim[50548:9106309] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7fec20d08400’ *** First throw call stack: ( 0 …
Young Fathers – Dead
Yesterday I went to see alt-J together with @joggink at Vorst Nationaal. Whilst chatting up before and after the – truth be told – not that great concert (singing off key from the start, ORLY?) one of the topics, of course, was music. During that talk I mentioned one of the, to me, musical revelations …
ANSI Control Functions and ANSI Control Sequences (Colors, Erasing, etc.) for PHP CLI Apps
As a side project for Monolog Colored Line Formatter (which int itself also is a side project for Mixed Content Scan) I just published is ANSI PHP. bramus/ansi-php is a set of classes to working with ANSI Control Functions and ANSI Control Sequences (ANSI Escape Sequences) on text based terminals. ANSI Control Functions control an …
Monolog Colored Line Formatter
Over a year ago I quickly whipped up a Colored Line Formatter for use with Monolog. As I’m building colorised output into Mixed Content Scan I – finally – took the time to actually put the darn thing out in the open. bramus/monolog-colored-line-formatter is a formatter for use with Monolog. It augments the Monolog LineFormatter …
Mavericks Multiple Screens vs Jumping Dock
When working with Dual/Multiple Screens in OS X Mavericks and having “Displays have separate spaces” switched on, I noticed that the dock would unpredictably switch monitors from time to time. Fed up with this I spent a Google Search Coupon on the issue and guess what: it’s not a bug, it’s a(n undocumented) feature. To …
Continue reading “Mavericks Multiple Screens vs Jumping Dock”
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”
Mixed Content Scan: Scan your HTTPS-enabled website for Mixed Content
With my recent move to HTTPS I wasn’t sure if there were any pages left on my site that had Mixed Content or not. If an HTTPS page includes content retrieved through regular, cleartext HTTP, then the connection is only partially encrypted. […] When a webpage exhibits this behavior, it is called a mixed content …
Continue reading “Mixed Content Scan: Scan your HTTPS-enabled website for Mixed Content”
Migrating your WordPress website from HTTP to HTTPS
In light of #https2015 I flipped the switch on bram.us earlier today: from today forth bram.us is only accessible over HTTPS. If you run a news site, or any site at all, we’d like to issue a friendly challenge to you. Make a commitment to have your site fully on HTTPS by the end of …
Continue reading “Migrating your WordPress website from HTTP to HTTPS”