I’m building a php calendar and need to know the total number of days in a month in the past I've used.....Continue Reading
There a times when you have an array and need to slit that array into smaller ones, I usually reach for explode or a foreach and do some custom coding but there is a far better way that’s built into PHP a function called array_chunk.Continue Reading
I’ve started to learn Python version 3 I had Python 2 already installed so when typing ‘python’ in terminal python 2 was being executed. To run 3 I had to type python3 while that works I would prefer to run 3 as default. This can be done by creating an alias.Continue Reading
Slack is a great tool for teams I use it to communicate with the rest of my team, recently I’ve been wanting my web applications to send notifications to certain Slack channels. The Slack incoming webhook API is perfect for this task.Continue Reading
For anyone that uses Github know’s how useful it is, especially on the collaboration front. Allowing other people to work on your projects, for instance for Nova Framework I have a Docs repo. When I update the docs it would be really good if the website docs could be updated automatically. In this tutorial I will cover how to setup a hook and do something with it on a remote website using PHP.Continue Reading
I use datepickers a lot in my projects the date’s default to the American YYYY-MM-DD format so they store in the database, the trouble is my clients are UK based so it’s not very readable. The datepickers let you set the format you want so I use DD-MM-YYYY.
That’s great until it needs to go into a MySQL database then I need the former date. As I know what the format will always be using strtotime makes it easy to convert like this:Continue Reading