Raspberry Pi + Azure + iPhone App = Happy Horse

February 1, 2015 Leave a comment

Bored for a day, Raspberry Pi, Azure and Cordova(PhoneGap)

As I had a day off between Christmas and New Years , I decided I’d fill my day learning something new. I gave myself just 1 day to create an iPhone app to help decided which rug to put on the horse during the day and night. Anyone with a horse knows about the hard decision, which rug to put on your horse. You don’t want them getting to cold and you don’t want them getting too hot and cause stress colic.

I received a Raspberry Pi A+ (£15.51) for Christmas and ordered a waterproof temperature sensor from Amazon for next day prime delivery.

So where to start?

1) Install Linux and setup a Raspberry Pi

2) Write python script to read the temperature values

3) Connect temperature sensor to the Raspberry Pi

4) Create a free RavenDB at RavenHQ

5) Create a free Windows Azure Website

6) Find extra weather data for the area surround the horse’s stable.

7) Create a simple iPhone app with Visual Studio Cordova (normally I would default to Xamarin, but I wanted to try something different)

IMG_0037-2
Read more…

Twitter Bootstrap 3, Dynamic form modal plugin with jQuery

January 14, 2014 1 comment

A simple demo of a dynamic Form Modal box with Bootstrap, allowing for custom actions and create Select List and Radio Button forms within a model, ideal for simple ajax form that need a little more interaction.

Example 1:

Default option will call the href you clicked on if you click “YES” in the modal.

Usage: <a href=”https://arranmaclean.wordpress.com ” data-action=”confirm”>Confirm / Warning example</a>

$('[data-action="confirm"]').DynamicModal();

Example 1 : Default confirm box

 

Read more…

Twitter Bootstrap Dynamic Modal Confirmation Box jQuery Plugin

January 4, 2014 Leave a comment

A simple demo of a dynamic Confirm / Warning Modal box with Bootstrap, allowing for custom actions and content with ease.

Example 1:

Default option will call the href you click on if you “OK” in the modal.

Usage: <a href=”yourlink” data-action=”confirm”>

$('[data-action="confirm"]').ConfirmWarning();

01-Example

Example 2:

Overriding the default copy in the modal.

$('[data-action="confirm"]').ConfirmWarning({
            Header: "Override Header Text",
            Body: "Override Body Text. Are you sure you wish to visit this?",
            ModalName: "#dymanicModal",
            Confirm: "Sure",
            Cancel: "hmm, no",
        });

Read more…

Categories: Code Examples Tags: ,

2013 in review

December 31, 2013 Leave a comment

The WordPress.com stats helper monkeys prepared a 2013 annual report for this blog.

Here’s an excerpt:

A New York City subway train holds 1,200 people. This blog was viewed about 6,900 times in 2013. If it were a NYC subway train, it would take about 6 trips to carry that many people.

Click here to see the complete report.

Categories: General rambles Tags:

Daily Fitbit stats

December 31, 2013 Leave a comment

My fitbit #Fitstats_UK for 12/30/2013: 6,814 steps and 3.1 miles traveled. http://www.fitbit.com/user/26TKVH

Categories: General rambles

Daily Fitbit stats

December 30, 2013 Leave a comment

My fitbit #Fitstats_UK for 12/29/2013: 16,808 steps and 7.7 miles traveled. http://www.fitbit.com/user/26TKVH

Categories: General rambles

New personal best

August 6, 2012 Leave a comment

Well I received the stats from Strava.com (they did an excellent job in resolving the data issue).

Read more…

Categories: General rambles

Keeping fit for work.

July 29, 2012 Leave a comment

Hello you,

Recently I decided to get in to better shape. A number of other devs have decided to do the same thing and they feel a lot better for it.

So I thought i’d share a few bit and bobs as I go along, these are post mainly for me as a diary and to see if it helps my creativity and energy levels.

My first personal goal is to get in to the top 10 of people to complete the Pedley Hill Sprint.

Read more…