The Blog of Hull based

Web Developer David Carr.

I blog about Web Development and Web Design.

Add hour to datetimepicker

When working with dates and forms I like to use datepickers, these allow the users to use a calendar to pick a date and have the date in the format mysql can store. I recently had a need to alter the time from a date and time picker, for instance selecting a from date and time, it would be very useful to be able to copy the chosen date and time into another input but with the time increasing by one hour. 

Read more

Forcing HTTPS with PHP

Using HTTPS is recomended, Google also preferes HTTPS they recently announced: “HTTPS is a ranking signal. For now it's only a very lightweight signal—affecting fewer than 1% of global queries, and carrying less weight than other signals such as high-quality content—while we give webmasters time to switch to HTTPS. But over time, we may decide to strengthen it, because we’d like to encourage all website owners to switch from HTTP to HTTPS to keep everyone safe on the web.

Read more

A week without my Mac

Recently the battery on my Mac has deteriorated a lot, to the point where it lasts only an hour or two. After checking the battery I noticed it was been flagged as "Service Battery" after looking this up online it was clear the battery needed replacing.

My MAC is insured thankfully. I didn't fancy taking the back off just to get to the battery! My model the battery is not detachable. I sent my MAC off for repair.

Read more