This was an easy fix. Go to K & J Magnetics, Inc. and get yourself a thin little neodymium rare earth magnet. By, “thin,” I mean thinner than the cover of your DODOcase. The one I used in this upgrade was salvaged from a little laptop hard drive head servo thingy. More
So, we have this issue at the office with our single-person bathrooms. We have one “m” bathroom and one “w” bathroom. We have 40+ people in the office. Many people who sit out-of-sight from the bathrooms often walk all the way across our office only to find out that someone else has beaten them to the potti.
Until I find a home for my little snippets of code, here is where they will go.
While building an iOS (iPhone) application, I needed a quick little method in Objective-c that would take strings of color codes from data provided by web developer peeps and convert those string values into UIColor objects. For instance, sometimes we’d get “#ff7401″ from the data for our app. Sometimes it might be formatted like, “0xff7401″ or even just, “ff7401″. I simply created a category on NSString to make is super-simple.
NSString+meltutils.h
// UIColor+meltutils.h
// Created by Andy Frey on 10/15/10.
#import <Foundation/Foundation.h>
@interface NSString (meltutils)
- (UIColor *)toUIColor;
@end