Blog

4 years, 9 months ago 0
Posted in: Programming

Ran across a good article detailing how to handle zombie objects in iOS. Tracing Zombie objects in Objective C

4 years, 9 months ago 0
Posted in: Uncategorized

One of those hrmmm moments. I needed to dismiss two modal view controllers. Here’s how:

Parsing JSON and Checking for Null
5 years ago 0
Posted in: Programming

File this under the “not very obvious” category. A JSON response comes back and you’re parsing it like a champ. You even put in the regular null checking like the good programmer you are. Well, that just doesn’t work. Apparently the JSON isn’t translated into a nil as I expected. So instead of kicking out, […]

Objective-C Douglas Peucker Algorithm
5 years ago 3
Posted in: Programming

A problem that I’ve run across is needing to render onto a custom chart roughly 8000 or more data points. At first I naively attempted to render all 8000 points, only to discover that it could not. At 2 pixels per data point, that’s 16,000 pixels and no surprise that iOS could not handle all […]

Page Controls, ScrollViews, and Storyboarded Scenes
5 years ago 0
Posted in: Programming

So here I am implementing paging into my app. I’ve laid out what each of the pages should look like by designing them in the storyboard and I made the subclassed view controllers for each of them. No problem. Everything looks great. I proceed to load the scroll view with my page’s view controllers and […]

Quick reminder about Objective-C selectors
5 years, 1 month ago 0
Posted in: Programming

So I spent a good 15 minutes scratching my head over an exception being thrown in Xcode:   So naturally I go to the playMovieFinished method and take a look at the selector being defined. Everything looked okay to me. After doing some digging around, I finally figured out what the problem was and it […]

Objective-C for the C# developer
5 years, 1 month ago 0
Posted in: Programming

After developing in C and C++ for over 10 years, being able to develop in C# was like a dream. A lot of the mundane and tedious bits of code that just needed to be written in C++ could be done quickly (if not automatically) in C#. It let me focus on solving problems rather […]

WPF RelayCommand with parameter
5 years, 1 month ago 0
Posted in: Programming

One of the things I frequently run across while coding in WPF is the need to pass a parameter to a bound command. Typically on the view model side, the command is handled by a Relay Command, but I wanted a bit more type safety than just having take any arbitrary object. So with a […]

Extracting all numbers from a string
5 years, 1 month ago 0
Posted in: Programming

A problem that I ran across was given an ill-formatted string that contained numbers, how do I extract them all out? When I mean ill-formatted, it means that the string doesn’t have a consistent structure from which I can pull out the numbers like a comma separated string. Ill-formatted strings are usually plain text and […]

5 years, 2 months ago Comments Off on About me and about this blog
Posted in: About

Hi. I’m Kelly Dun, but you’ve probably already guessed that by now. Welcome to my portfolio blog! I created this blog so that I can showcase the projects and works that I’ve created and been involved with. Some of the works presented here are side projects that I work on in my spare time, while […]