>

Best Year Ever

Written by Adam Schepis

Originally Published 2015-10-20 00:00:00 UTC

(leave your thoughts)

Comments on "Best Year Ever"

Back to the article.
>

Don't be a 10x developer. Be a force multiplier

Written by Adam Schepis

Originally Published 2015-07-22 13:15:00 UTC

(leave your thoughts)

Comments on "Don't be a 10x developer. Be a force multiplier"

Back to the article.
>

The Gloves are Off

Written by Adam Schepis

Originally Published 2015-03-25 16:38:00 UTC

(leave your thoughts)

Comments on "The Gloves are Off"

Back to the article.
>

Keeping Pace

Written by Adam Schepis

Originally Published 2014-12-23 13:10:00 UTC

(leave your thoughts)

Comments on "Keeping Pace"

Back to the article.
>

A Fresh Coat of Paint

Written by Adam Schepis

Originally Published 2014-10-09 11:09:00 UTC

(leave your thoughts)

Comments on "A Fresh Coat of Paint"

Back to the article.
>

Integrating Heroku addon SSO in Rails using Devise

Written by Adam Schepis

Originally Published 2012-04-30 14:24:28 UTC

(leave your thoughts)

Comments on "Integrating Heroku addon SSO in Rails using Devise"

Back to the article.
>

Adding to a Devise model after creation (Rails 3.1)

Written by Adam Schepis

Originally Published 2011-09-26 08:36:06 UTC

(leave your thoughts)

Comments on "Adding to a Devise model after creation (Rails 3.1)"

Back to the article.
>

Why I Go Home: A Developer Dad's Manifesto

Written by Adam Schepis

Originally Published 2011-09-15 14:31:54 UTC

(leave your thoughts)

Comments on "Why I Go Home: A Developer Dad's Manifesto"

Back to the article.
>

A Script to Update Riak Config Files

Written by Adam Schepis

Originally Published 2011-08-25 08:42:08 UTC

(leave your thoughts)

Comments on "A Script to Update Riak Config Files"

Back to the article.
>

Break the Build!

Written by Adam Schepis

Originally Published 2011-07-19 13:20:09 UTC

(leave your thoughts)

Comments on "Break the Build!"

Back to the article.
>

Drinking from a Firehose

Written by Adam Schepis

Originally Published 2011-06-27 06:36:24 UTC

(leave your thoughts)

Comments on "Drinking from a Firehose"

Back to the article.
>

Setting up a 3 Node Riak Cluster with EC2 Cluster Compute Instances

Written by Adam Schepis

Originally Published 2011-06-06 13:49:02 UTC

(leave your thoughts)

Comments on "Setting up a 3 Node Riak Cluster with EC2 Cluster Compute Instances"

Back to the article.
>

Nostalgia be damned! I'll never go back to spinning hard drives.

Written by Adam Schepis

Originally Published 2011-05-27 12:54:11 UTC

(leave your thoughts)

Comments on "Nostalgia be damned! I'll never go back to spinning hard drives."

Back to the article.
>

Of Heroes and Pit Crews: Bringing techniques from the surgical world to software

Written by Adam Schepis

Originally Published 2011-05-16 20:10:20 UTC

(leave your thoughts)

Comments on "Of Heroes and Pit Crews: Bringing techniques from the surgical world to software"

Back to the article.
>

Still Bullish on the Cloud

Written by Adam Schepis

Originally Published 2011-05-14 20:33:14 UTC

(leave your thoughts)

Comments on "Still Bullish on the Cloud"

Back to the article.
>

Oops! Got Popular.

Written by Adam Schepis

Originally Published 2011-05-02 10:07:44 UTC

(leave your thoughts)

Comments on "Oops! Got Popular."

Back to the article.
>

I'm Adam, and i'm a recovering Singleton addict.

Written by Adam Schepis

Originally Published 2011-05-02 06:17:32 UTC

(leave your thoughts)

Comments on "I'm Adam, and i'm a recovering Singleton addict."

Back to the article.
>

Productivity: Go for the quick win!

Written by Adam Schepis

Originally Published 2011-04-19 06:18:09 UTC

(leave your thoughts)

Comments on "Productivity: Go for the quick win!"

Back to the article.
>

Development Complexity vs. Operational Complexity

Written by Adam Schepis

Originally Published 2011-04-05 06:43:50 UTC

(leave your thoughts)

Comments on "Development Complexity vs. Operational Complexity"

Back to the article.
>

Local. Ad-hoc. Relevant.

Written by Adam Schepis

Originally Published 2011-03-24 20:57:29 UTC

(leave your thoughts)

Comments on "Local. Ad-hoc. Relevant."

Back to the article.
>

Offline testing of network driven apps

Written by Adam Schepis

Originally Published 2011-03-24 20:27:11 UTC

(leave your thoughts)

Comments on "Offline testing of network driven apps"

Back to the article.
>

Thoughts on Yobongo after a night stranded in SFO.

Written by Adam Schepis

Originally Published 2011-03-17 20:29:20 UTC

(leave your thoughts)

Comments on "Thoughts on Yobongo after a night stranded in SFO."

Back to the article.
>

One More Reason to Fight Against Walled Gardens

Written by Adam Schepis

Originally Published 2011-03-11 20:53:58 UTC

(leave your thoughts)

Comments on "One More Reason to Fight Against Walled Gardens"

Back to the article.
>

Taking a screenshot of a section of a UIView

Written by Adam Schepis

Originally Published 2011-03-06 20:32:33 UTC

(leave your thoughts)

There doesn't appear to be a great solution in the iOS platform for taking a screenshot of a section of a UIView. This is an issue that I ran into while doing some iPad development recently. The requirement was to determine the bounds of all of the subviews (which are free floating and arranged by the user) in an very large UIView and convert that rectangle subsection of the UIView that corresponds with the bounds to a UIImage. Creating a PNG of the entire UIView was not acceptable because it caused the size of the images to explode due to all of the extra empty space. What I came up with is admittedly a hack, but it works for me and it works well for the application in which it is used. Maybe it will work for you as well.

Please let me know if you know a better way to do this! I'd love to hear it.

The basic strategy is this:

  • Create a CGRect that that fits all of the subviews. Let's call it rect.
  • loop through all subviews and shift them towards to fit in the main view starting at {0,0}. (e.g. shift {-rect.origin.x, -rect.origin.y})
  • Create an image context that is the size of the rectangle (rect.size)
  • call renderInContext on the main view to render it to the image context
  • create UIImage from the image context
  • shift all subviews back to their original location.

Viola! A screenshots of a section of the view. Here's some code.

Code to get the bounds of my CGRect:

In my view controller. Code to take the screenshot:

Enjoy!

Comments on "Taking a screenshot of a section of a UIView"

Back to the article.
>

Handling many UIAlertViewDelegate callbacks in the same class

Written by Adam Schepis

Originally Published 2011-02-28 16:52:54 UTC

(leave your thoughts)

Comments on "Handling many UIAlertViewDelegate callbacks in the same class"

Back to the article.
>

Pure-FTPd + Passive FTP on Amazon EC2

Written by Adam Schepis

Originally Published 2011-02-23 22:36:15 UTC

(leave your thoughts)

Comments on "Pure-FTPd + Passive FTP on Amazon EC2"

Back to the article.
>

Lets try this again...

Written by Adam Schepis

Originally Published 2011-02-23 02:45:15 UTC

(leave your thoughts)

Comments on "Lets try this again..."

Back to the article.