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
There are times when it’s really useful for a webpage to scroll up and down automatically. For instance when showing information on a TV screen you may not want to scroll manually. Using jQuery its possible to have the page automatically scroll down at a set speed then scroll back to the top and repeat.Continue Reading
Gitlab is a great alternative to Github or BitBucket, they offer free private and public repositories which is great when working with a team, I’ve recently started using Gitlab for a private project, where I need to download private repositories to the project server and extract their contents.Continue Reading
I have a folder of csv files that need uploading to a server I don’t want to do it manually, Bash can handle this task perfectly.
This script will connect to an FTP server then loop through the csv files or any type specified and upload them. You cannot do a loop whilst inside of heredoc block like most examples do, instead the commands are written to a txt file.Continue Reading