I've recently had to implement an autosizing text field in a couple different projects, so I decided to put it into a cocoapod, called SBTextInputView. It: uses autolayout, so it should be set for a future versions of iOS and all screen sizes has a translucent background, a UITextView, and a button, all of which are… Continue reading Autosizing UITextView, similar to Facebook ‘comment’
Blog
Things Most CS Students Don’t Learn in School — But Should
Computer Science at many liberal arts colleges (including my alma mater) can be very theoretical. This is fantastic, in many ways -- languages will change, platforms will go out of style, but if you know the theory, you'll be fine no matter what direction the profession takes. There are, however, certain things that this type… Continue reading Things Most CS Students Don’t Learn in School — But Should
Obj-C Convenience Categories
There are some things in in Objective-C that just bug me. They're generally pretty small, but I find my self correcting in a lot of different projects. For instance, working with JSON frequently means you probably use NSJSONSerialization, and you may note that if a JSON key returns null, it will be put into the… Continue reading Obj-C Convenience Categories
Availability Monitoring with a RainbowCube
The RainbowCube is an Rainbowduino compatible 4x4x4 grid of LEDs. In this post I'll cover how to use it to keep track of your internet connection, and response times of sites you care about. Overview This project has two parts: a computer (perhaps a raspberry pi?) to perform the actual web requests, and the RainbowCube… Continue reading Availability Monitoring with a RainbowCube
Jenkins on a Raspberry Pi
So, this was going to be a post about getting a Jenkins server up on a Raspberry Pi. But then I tried it. Even overclocking the pi modestly, it was Slow. Like, rull slow. I had figured it would be hard to get it to actually build anything with Jenkins, so I was going to… Continue reading Jenkins on a Raspberry Pi
Using Wireshark to Monitor WPA2 Protected Traffic
Many who are starting out with Wireshark think that just getting it running in 'promiscuous' mode on a WPA2 network is enough. Sadly, as opposed to open networks, there are a few more steps that need to be taken. This post will walk you through those additional steps. First you should know that there are… Continue reading Using Wireshark to Monitor WPA2 Protected Traffic
Getting a Package Name from an Application Label (Display Name)
This is the first of several posts I've begun writing about an open source machine learning utility app for Android. Stay tuned! I've been looking around for a way to launch apps using their display names (officially, the "Application Label"). It seems like a pretty straightforward thing to want to do, and I see plenty… Continue reading Getting a Package Name from an Application Label (Display Name)
Avoiding Keyboard Coverups with Scrolling in iOS
Dealing with UITextFields in iOS can be frustrating. By default, if the UITextField in question is more than halfway down the screen, the keyboard will cover it while typing. There are several solutions out there on the internets that deal with this, one of which, from the Cocoa with Love blog, the solution I present… Continue reading Avoiding Keyboard Coverups with Scrolling in iOS