Overview for 'pascalbaljetmedia'
Written by Pascal Baljet Media - Blog
/ Original link
on Dec. 22, 2016
For a project which has to deal with prices, we decided to use the PHP Money library. It is an implementation of Fowler's Money pattern and has great features and no dependencies. Most important, you shouldn't represent (and store) monetary values by a float. It takes away the problem of rounding…
Written by Pascal Baljet Media - Blog
/ Original link
on Dec. 14, 2016
When you have the Xdebug extension for PHP installed and enabled, most of your PHP code will run notably slower. A little helper tool called 'Xdebug Toggler for OSX' provides an easy way to quickly enable or disable Xdebug from the terminal: You can find the source code on GitHub and installing it…
Written by Pascal Baljet Media - Blog
/ Original link
on Dec. 14, 2016
Eloquent provides an easy way to add a relationship count condition to a query. Say you have a User model and a Role model which are related to each other using a many-to-many relationship. Using Eloquent it is very easy to get all Users that have one or more Roles or doesn't have Roles at all: Use…
Written by Pascal Baljet Media - Blog
/ Original link
on Dec. 14, 2016
At the office we're using an Ubuntu server for filesharing amongst other things. After upgrading to macOS Sierra 10.12, the Finder app keeps asking for credentials when you try to connect to a network share: With the latest 10.12.2 update, Apple fixed this with a preference you can set. According…
Written by Pascal Baljet Media - Blog
/ Original link
on Dec. 13, 2016
Recently a team of nearly 100 developers released version 1.0 of Hyper, an open-source terminal based on web technologies that runs on Linux, macOS and Windows. The development team focused on speed and extensibility. It can easily be styled with themes and extensions are universal Node.js modules…
Written by Pascal Baljet Media - Blog
/ Original link
on Dec. 10, 2016
Every once in a while when I try to access a git repository, I need to enter a passphrase for my public/private key. Without having modified once of the keys, somehow the macOS authentication agent seems to forget the keys. $ git pull Enter passphrase for key '/Users/pascalbaljet/.ssh/id_rsa': Of…