Posts in category: Tutorials

Bash | Tutorials

Creating an alias in terminal

I often run local sites from a projects folder that is stored in a dropbox folder the full path is l...

David Carr


PHP & MySQL | Tutorials

Quick way to get the number of days in a month with PHP

I’m building a php calendar and need to know the total number of days in a month in the past I...

David Carr


PHP & MySQL | Tutorials

Splitting an array into smaller arrays using array_chunk

There a times when you have an array and need to slit that array into smaller ones, I usually reach...

David Carr


Nova Framework | PHP & MySQL | Tutorials

Using X-editable for inline editing

X-editable allows you to create editable elements on your page. Includes both popup and inline...

David Carr


Python | Tutorials

Run Python 3 as default when Python 2 is installed on a Mac

I’ve started to learn Python version 3 I had Python 2 already installed so when typing ‘...

David Carr


API | PHP & MySQL | Tutorials

Post to Slack using the incoming webhooks API

Slack is a great tool for teams I use it to communicate with the rest of my team, recently I’v...

David Carr


PHP & MySQL | Tutorials | Tools

How to use Github Hooks to send updates to your website

For anyone that uses Github know’s how useful it is, especially on the collaboration front. Al...

David Carr


PHP & MySQL | Tutorials

PHP reverse date using strtotime

I use datepickers a lot in my projects the date’s default to the American YYYY-MM-DD format so...

David Carr


PHP & MySQL | Tutorials | Development

Installing php 7 on Mac

Setting up a mac to run php 7 instead of the default php 5.5.

David Carr


Javascript | CSS | Tutorials

Fixed header on scroll

A common web trend is to allow a static header stick to the top of the page when scrolling the page....

David Carr


Javascript | Tutorials

Autoscroll page with jQuery

There are times when it’s really useful for a webpage to scroll up and down automatically. For...

David Carr


PHP & MySQL | Tutorials | Development

Gitlab download private repository as tar.gz with php

Gitlab is a great alternative to Github or BitBucket, they offer free private and public repositorie...

David Carr


Bash | Tutorials

Bash loop through files and FTP them

I have a folder of csv files that need uploading to a server I don’t want to do it manually, B...

David Carr


PHP & MySQL | Tutorials | Development

How to Set up PHP Statistics

Sometimes you need to make improvements to your code and make things more efficient. Using some simp...

Dan Sherwood


HTML | Tutorials

Using Notifications API combined with page visibility API

HTML 5 has some great API’s one of which is the notifications api which lets you set browser n...

David Carr


Support my work by donating with PayPal.

Subscribe to my newsletter

Subscribe and get my books and product announcements.

© 2009 - 2021 DC Blog. All code MIT license. All rights reserved.