Need to know the current UNIX timestamp? I think my new favorite helper site is currenttimestamp.com. I was writing a ton of time sensitive code for background jobs and it helped to know the current UNIX time for testing. Here’s what the site offers:
After my new production server installation, I discovered I couldn’t run migrations: $ ./yii migrate/up bash: ./yii: Permission denied Adding execution permissions to ./yii resolved the problem: $ chmod +x ./yii deploy@apps:/var/www/mp$ ./yii migrate/up Yii Migration Tool (based on Yii v2.0.8) No new migrations found. Your system is up-to-date. Found via this comment.
If you’re running into a near empty screen showing, “An internal server error occurred” in Yii2, check your error logs. It’s a simple fix. My logs showed: An Error occurred while handling another error:\nexception ‘yii\\base\\InvalidConfigException’ with message ‘The directory is not writable by the Web process: /var/www/mp/backend/web/assets’ in /var/www/mp/vendor/yiisoft/yii2/web/AssetManager.php:213 You can resolve it by opening […]
If you’re editing a file in Atom, the command to reveal the file in the sidebar is: Command + Shift + \ I’ve recently switched to Atom and very much appreciate it as an emerging power editor on the MacOS platform.