I use MAMP (mamp.info) as a local server setup on my Mac for developing web apps. My primary setup is a Mac Mini, but I also use a Macbook Pro for when I’m in a client’s office or working remotely. To keep the two in sync, I use Dropbox. This is straight-forward for documents and html/php files, but a bit more complicated for syncing databases between the two machines.
To sync the web files, I simply moved the htdocs folder from the MAMP folder to the Dropbox folder. In the MAMP app preferences, I changed the Document Root for the web server to point to the folder in Dropbox.
To sync the database files, I moved the ‘db’ folder to the Dropbox folder. I then created a Symbolic Link from the folder in Dropbox to the original location in the MAMP folder. This is done using the ‘ln’ command at the command prompt. In my case, the following command did the job:
I’ve just updated our WordPress Plugin for embedding Garmin .fit data files in your blog. The latest update improves the speed of rendering the maps and reduces the amount of data your blog downloads from external sites.
In an upcoming-release of iSMARTtrain, I’ve added a profile picture for the user settings. To support the iOS version of iSMARTtrain (coming soon), this needed to work cross-platform in a Core Data document.
Transferring images between the two platforms in a common format seems rather complicated, as there’s no common image format that can be easily extracted from both NSImage and UIImage. In the end, I ended up saving the images on the Mac side as PNG files, which can be handled natively by UIImage on the iOS side.
‘Self‘ in these cases is a Core Data NSManagedObject
I’ve recently finished writing a WordPress plugin to display .fit (Flexible and Interoperable Data Transfer) files. These are files from fitness devices, such as Garmin watches & bike computers. This is a personal project that I’ve wanted for quite a while. I’ve often posted in my personal blog (stuarttevendale.com) about the cycling, running & triathlon events I’ve taken part in, but including data from the event wasn’t straight-forward. While other plugins have existed to display routes from .gps file or other formats, this meant the additional hassle of converting the files. The data from the files also had to be entered manually.
For this plug-in, simply upload the .fit file to the media library in WordPress and add single shortcode to your post. The plugin has various options to set the colour of the route line, units (imperial or metric), and to determine in the map can be zoomed or not. The plugin also shows a summary of the event; start time, distance and time taken.
This past weekend, I attended NSScotland in Edinburgh. The conference, in its 3rd year, is organised by Alan Francis and Paul Wilson, who also organised the Scottish Ruby conference. The venue for the conference was on the south side of Edinburgh in the Pollock Halls.
Spread over two days, the conference covered a good mix of technical and non-technical subjects, including iOS app testing at Facebook (Graham Lee), Computing’s Hidden Heroes (Emily Toop), and, the personal highlight for me, Eric Knapp’s talk on Helping Blind Musicians with an iOS App. Between talks, there was plenty of time for socialising and catching up with other developers.
On Saturday night, we were treated to chilli for dinner, cooked by Illegal Jacks, in a near-by Church Hall. As there was no connectivity in the hall, people were forced to talk to each other, rather than huddling over laptops!
On the Monday following the conference, Alan had organised a Swift tutorial, taught by Daniel Steinberg. The tutorial covered the basics of swift from the very beginning and progressed at a nice pace up to the more complicating features. Personally, some of the subjects covered in the final part of the tutorial made my head spin a bit, but this was due to my lack of computer science knowledge, rather than the instructor. At the end of the tutorial I was left with a good understanding of Swift, having never touched it before.
A big thank you to Alan and Paul for organising the conference, Daniel Steinberg for teaching the tutorial and Zonal and Karelia Software for their sponsorship. I’m already looking forward to next year!
Project ANT is our new product from Yellow Field Technologies. It’s an application to enhance your turbo training or treadmill sessions. For use with any ANT+ Sport compatible power meter, heart rate monitor belt, speed or cadence sensor, it displays your data on your desktop or laptop Mac with a graph or video.
The data displayed in each field can be selected from a number of options, including average power and Phil Skiba’s xPower, RI and BikeScore™ metrics.
Project ANT uses Garmin’s ANT+ USB stick to communicate with the ANT sensors.