Possibly the better thing to do anyway is always tunnel through SSH. I should be able to do that from most machines I’ll be using. It’s unlikely I’ll want to connect to the syncthing GUI on the server from a device where I can’t do that.
Setting up syncthing on a server https://www.linuxbabe.com/backup/install-syncthing-debian-8-server-back-up-website
Steps taken on new server: disabled root access. For scp, added AUTHY_TOKEN as an AcceptEnv in ssh_config. Creating new sudo user.
Stir To Action magazine looks really nice. (https://www.stirtoaction.com/magazine/magazine)
Pretty stomach churning, Thatcher’s close relationship to Pinochet.
Really like syncthing but do seem to spend a lot of time debugging it at the moment, figuring out why devices aren’t connected. May just be the nature of the beast I guess. But doesn’t seem super super seamless. Not prime time. But no doubt – truly amazing piece of tech.
Yep. Need to use a PPA to get PHP 7.1 on Ubuntu…
carbon diffForHumans is a bit off for some reason – says 2 hours ago for a timestamp that just happened. Maybe a timezone thing?
Bit of nonsense getting the latest version of node in order to do some webmix stuff in laravel. Ubuntu always has really outdated versions of dev tools in their repos. Always need a PPA. e.g. https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
Incorporating an existing app into laravel -> https://stackoverflow.com/questions/42981992/force-laravel-to-log-in-a-user-using-legacy-authentication#43088914
Timestamps in laravel are automatically instances of carbon class. Awesome. It really helps you fall into the pit of success.
Enjoying going through the laracasts intro to laravel videos – lots of mini-projects, it’s a little like doing code katas.
Oh sweet. Web-mode in emacs automatically enables emmet.
Wait though – so the model binding calls through into the DB as well, via Eloquent? That’s cool out of the box, but I hope it’s tweakable. Say e.g. I want to use Doctrine. And also, I want the model binding more on form input.
Laravel has model binding too. Sweeeeet.
Use of strings for controller methods is a bit of a downside, but that’s part of the nature of PHP I guess. And maybe it will have its upsides too (i.e. building a string to determine which controller/method). We’ll see.
php artisan tinker – that is bloody fantastic.
Some helpful instructions here https://laravel-news.com/valet-for-ubuntu-linux, but I got an error during valet install trying to install nginx – think I’ll leave it for now.
Hmm, maybe. Seems to require use of nginx which I’m not familiar with. Could be a good time to learn though.
OK, so is it worth trying to get Valet set up on Linux?
Odd issue where I had to run php artisan key:generate in order to get things working. Maybe because it’s 5.5 instead of 5.4 which is used in the videos? Love the debug page for Laravel though with its links to a pre-populated stackoverflow search.