Quantcast
Channel: greg's blog
Browsing latest articles
Browse All 10 View Live

Updating NSUserDefaults from Settings.bundle

Trying to access parameters from Root.plist in your Settings.bundle using NSUserDefaults?  Luckily NSUserDefaults will sync those values for you ... after the user opens the Settings preferences for...

View Article



Metro/JAX-WS uses hardcoded paths? WTF?!

It's 2009, right?  And Java is a write-once, run-anywhere platform, or at least purports to be such.  And we have eons of experience that says "don't hardcode file path references" (seriously, BeOS...

View Article

Override Authlogic login error messages for better security

Authlogic is a cool plugin that handles authentication for Rails (and Merb, etc).  But I just ran into a problem with one of its assumptions (which more generally probably ties back to a Rails...

View Article

Use apt-cacher for stripped down Debian and Ubuntu repositories

I recently needed to upgrade a client's servers from Debian Sarge to Lenny.  The client is not in the US, and has a low bandwidth (yet still high cost!) connection for their servers.  So running the...

View Article

Flexible constant caching in Rails

As outlined in By Patrick Reagan's Recipe 61 of the very helpful Advanced Rails Recipes book, it's easy to cache your constants when loading your Rails models, which can help with both performance and...

View Article


Rails error: Errno::EIO (Input/output error)

All of a sudden one of my apps (still under development) started throwing the error "Errno::EIO (Input/output error)", coming from different controllers, but always tripping on a 'write' command.  No...

View Article

Dalvik compilation problems with Android / Eclipse

Started working on an Android version of an existing security tool.  After setting up the basic screens, I started importing some of the existing Java code.  I expected some issues, of course, but I...

View Article

Easier Android layouts with DroidDraw

In picking up Android development, one thing I miss from the iPhone camp is Interface Builder.  Coding up Android's XML files to handle all the UI screens is tedious even for one display type.  Add on...

View Article


Using Authlogic and Active Directory together for user logins

I just built a Rails app to replace a crotchety old .NET tool (original coding time: spread out over months; Rails: 5-6 hours!). The tool has both public and protected access needs, with the internal...

View Article


Invalid Binary message from iTunesConnect

I made some iOS4 updates to Listerful last week to take advantage of the retina display, but had another frustrating experience with Apple's submission process. After submitting the app, the portal...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images