Author: sherwin
-
Configuring Windows Server 2012 to Run a Laravel Application
My latest project required me to use the Laravel framework and use a MSSQL Server backend. To do this, I will be using Windows Server 2012, IIS, and MSSQL Server 2012. Installing IIS First thing is make sure every thing is up to date. If it’s a brand new server, you will need to install…
-
Windows 10 KB3194496 Issue
On September 2016, Microsoft releases KB3194496 to Windows 10 users. The three computers I have running Windows 10 all downloaded the patch. The problem is they all fail to install after the computer reboots. This is what happens when you restart the computer. It will rollback from the previous successful patch and restart once again. When…
-
Upgrading from iPhone 6 Plus to iPhone 7 Plus
It’s been two long years since I got a new iPhone. It’s been a year since I bought a new cell phone (Nexus 6P). I’ve been bouncing back and forth between iOS and Android and now I’ll be committing to the Apple ecosystem – well mostly. What’s new? The antenna line on the back, below…
-
Moving back from Jekyll to WordPress
A few years ago I shared that I will be moving away from WordPress to Jekyll – a static site generator. I have decided to move back to WordPress. Here are the reasons for moving back. My source code is stored in a repository. If I need to work on the website, I’m limited…
-
Synology DS1815+
For many years I’ve been toying with different platforms to solve my local storage needs. I’ve used Windows Home Server and Freenas. Both have great features and drawbacks. I wanted to focus on the following features that I feel neither Windows or Freenas do a good job on. Support for users on different operating systems and…
-
Using Windows for Development
It’s been a few months since my 2011 Macbook Pro died. I’ve tried to find a replacement since. With rumors of a new Macbook Pro announcing soon, I haven’t found any justification to replacing it with another. I did however, purchased a 2015 12” Macbook. I bought for my son and I was planning to…
-
Laravel Episode 11: Updating My Profile
Episode 11: Updating My Profile Changes in between episode 10 and 11 Cleaned up code in routes file. Go through code and replaced Role::userHasRole() with User::hasRoles(). Removed __construct() from ProductController. Update database diagram to match current database schema. Create route for /my-profile. Create new route group for auth middleware. Create methods in UserController. myProfile()…
-
Laravel Episode 10: More Middleware and Routes
Episode 10: More Middleware and Routes Laravel Debugbar by barryvdh Works with Laravel 4 and 5. Great tool for sql profiler among other things. Review the previous episode regarding multiple roles middleware. Middleware implementation is not the same as how I implemented filters from previous version of Laravel. Use Debugbar how the SQL looks…
-
Laravel Episode 9: Middleware Roles
Episode 9: Middleware Roles Create a migration file for staff role and default staff account. php artisan make:migration create_staff_role_and_default_new_user Code the new migration file. public function up() { // create new staff role DB::table(‘roles’)->insert( [ ‘id’ => 2, ‘role_name’ => ‘staff’ ] ); // create default user for staff DB::table(‘users’)->insert( [ ‘username’ => ‘staff’, ’email’…
-
Vanwalk 15-in-1 GoPro Accessory Kit
I recently got a good deal on a GoPro Hero+ so I decided to pick one up. It’s my first GoPro so I don’t have much plans for it yet. I wanted to use it as a HD webcam but to my surprise, you can’t. At least not without a lot of setting up and…