iOS 7 Style Progress Meter in Swift

Hot on the heels of my recent post iOS 7 Style Progress Meter in C# is this version where we accomplish the same feat, but using Apple’s new language Swift. To refresh your memory, this is what we’re looking to recreate: In more specific terms, we’re looking at the circular progress meter that slowly advances as the download completes. ##The Playground One of the nicest features of Swift is the playground where we can write and evaluate code in fast iterations.…

iOS 7 Style Progress Meter in C#

On iOS 7, when you download or update an app from the App Store, there’s a small circular progress indicator that shows how complete the download is. It’s simple, compact, and provides information well. Making a version of this is incredibly easy using C# and Xamarin on your iOS app. Layers, Everywhere Every UIView has a property called Layer exposed that is responsible for what’s rendered inside that view. It’s of type CALayer and is a tree hierarchy, just like the view heirarchy.…

Upload to Azure Storage REST API from Xamarin

It surprised me to find that uploading an image to Azure Storage using the REST API with Xamarin iOS wasn’t straightforward. After a lot of research and by combining a couple techniques, we can easily upload a UIImage to blob storage using the Azure Storage REST API. Here’s what you’ll need: Azure Mobile Services (and client library) HttpClient I’m not going over how to create a storage location and container nor an Azure Mobile Service.…

In Review

I guess today’s word of the day is “unclench”. This morning, I sipped my coffee and debugged some code, Led Zeppelin II spinning on the turntable. The little light on my phone blinked, telling me I received an yet another e-mail. Except I was waiting for this one – my app was finally “In Review”. That’s right, the App Store process was finally in motion for vndr, the vending machine locator app my team has worked on for months.…

Back to Basics

Over a year ago, I took my blog in a new direction. Well, you know what they say… the only constant is change itself. That experiment ended a couple months after it began and I never quite shut it down. Today, I’m back to what served me well in the past and with it, a new look and back-end. Notebook Heavy used to run on WordPress, but awhile back, the little blog engine that could, Ghost, got my attention.…

2014 Illinois Web Conference AngularJS Session

Tomorrow is the bulk of the 15th annual University of Illinois Web Conference. This time, I’m presenting an introduction to AngularJS entitled Angular Is Magic. This is an expansion of a lightning talk I did called My Little JavaScript – Angular Is Magic, only this time, it’s 50 minutes long and there are no ponies (so sad, right?) Here are the slides and sample code for this talk. Angular Is Magic - Slides…

AngularJS and PlantLink

If you’ve ever had a houseplant die on you, pay attention. Eight months ago, my company, Heavy Code, started a gig with a local startup, Oso Technologies. I’d heard of this company months earlier when their Kickstarter campaign hit the news. They were building a product that would notify you when a plant in your house or garden needed more water. It’s called PlantLink and one day, they needed help with their AngularJS web app.…

No Pain AngularJS Directives

By now you’ve got your hands dirty with Angular and are starting to build some more complicated apps. You’ve read the documentation and the samples and know about these things called “directives”. But you’re afraid — afraid that they’re too complicated and difficult. Fear Not, My Friend It’s true that AngularJS directives can get pretty complicated, but they can also be pretty simple. Let’s build a really simple one that you might re-use over and over: a progress spinner.…

Medium Word Count Chrome Extension

The website Medium.com offers an excellent writing environment. One problem I always had with the service is that it doesn’t really keep track of how long a post is. Other services, such as Editorially, do keep track of the length. I prefer Medium’s writing mode to Editorially’s, but wanted to know how long my posts are. So I wrote a Chrome browser extension to solve this problem for me. It’s very simple and very subtle.…

My Little JavaScript - AngularJS is Magic

Last night I gave a lightning talk to a group of local technology folks. Not only did they get to learn a bit about AngularJS, but they got to learn a bit about My Little Pony.   My slide presentation, itself an AngularJS app (how meta), is online at hvy.li/AngularMagic. The GitHub repo is available at https://github.com/kenstone/AngularIsMagic.…