Thoughts from Dan Miser RSS 2.0
# Thursday, December 08, 2011
My company's core applications are written in ASP.NET MVC, and have been well received. But the nature of what those applications can do in limited/non-existent connectivity areas is causing enough problems that I need a native iPhone solution. (HTML 5 offline storage is not enough. I need full access to the brains of calculation engines that are in my business logic on the server, and I wouldn't relish moving that logic to JavaScript. Besides, I found a real nice thermal receipt printer that will work via SDK with a native app!)

I came across MonoTouch, and I really like how it will enable reuse of my hard work over the years. The main obstacle for me was how to get the data out to my iPhone client. I wasn't exactly thrilled with the idea of shoe-horning WCF access from the iPhone, and working with WCF at my day job is a configuration nightmare. REST would be good, but I wasn't happy with the options out there - until I found ServiceStack. I don't know why this thing doesn't get more publicity. It is everything I want: small, fast, actively developed, easy to configure, JSON, REST, DTOs, and works easily with MonoTouch. Well done, guys.

The first snag I hit getting some demo code out there was that if you want to have the client code exist on MonoTouch, be sure to add references to the assemblies found in the MonoTouch-v2.20.zip file on github. I'm curious why this is still labelled as 2.20, and why those assemblies are still dated from June 9, 2011, but for now, things are moving along to convert my ASP.NET MVC application to use services, and expose those services for use on my iPhone client.

Look for more posts about ServiceStack and MonoTouch in the near future.

Thursday, December 08, 2011 3:27:12 PM (Central Standard Time, UTC-06:00)  #    Comments [1] -
.NET | iPhone
# Friday, October 28, 2011
I've read enough horror stories about upgrading Snow Leopard to Lion causing corruption of the Windows 7 partition, and I didn't want to be yet another casualty. So I took the time to research how best to backup in order to prepare myself in case something went wrong.

I started by cloning the Mac OSX partition to an external USB drive using Carbon Copy Cloner. This was drop dead simple, and worked well. There's a complete writeup of this here.

I couldn't get the Mac Disk Utility to clone the bootcamp partition. It would error out with an "Invalid Argument" message. I found a version of WinClone 2.3.2, but that also gave me errors. I finally got it to work by unchecking all of the options in the Preferences window, thanks to comments in this article. I also made sure the USB partition that I was backing up to was set to Mac OS Extended (Journaled). After that, it was a painless clone process.

The actual Lion upgrade went smooth. I didn't lose anything, and everything just worked. One quick note is that you might want to save a backup of the Lion installer if you have multiple Macs that you'll be upgrading. Details on how to do that can be found here.

Off to install MonoTouch for iOS!!

Friday, October 28, 2011 11:21:50 AM (Central Daylight Time, UTC-05:00)  #    Comments [8] -
Macintosh
# Saturday, October 15, 2011
I've had a web application written using iUI for a couple of years now. It's been stable and rock solid, and I really appreciate the leg up that it gave me. However, this weekend I converted away from iUI to jQueryMobile. I have another application in production already using jQueryMobile, and it is absolutely an amazing library.

The reasons I went with this move were:
  • iOS 5 had substantial changes to Safari and my existing application is broken in many places. Instead of spending time debugging and fixing something 2 years old, I figured I'd take the time to port to jQueryMobile.
  • I've had to leave iUI at version 0.31 for this entire 2 year period. When they started development on the 0.4 version, they changed form submissions to break if you had multiple form fields with the same name. I absolutely had to have this capability in order to support ASP.NET MVC list binding. I reported the issue in the forums, and it didn't get much attention. Sure, it's open source, but if I have to chase down bug fixing in a framework I'm not intimately familiar with, it's a negative.
  • There is no easy way with the released version of iUI to do things like jQuery calls, hook events into the page create/show and hide/destroy. Sure, there are code modifications you can find on the web, but it's a forking nightmare and tough to maintain (is this for 0.31, 0.4, or 0.5? does it require other extensions or modifications? etc.).
  • From a non-technical perspective, the roadmap of iUI has been all over the place. I can't remember for sure, but I think it was originally slated for moving 0.4 in to release status in like June of 2009. It's been pushed out over and over again, trimmed in scope, and there just doesn't seem to be traction or consensus to move the product forward. In contrast, jQueryMobile is looking to have a 1.0 release in the next few weeks with constant releases over the past few months.

Saturday, October 15, 2011 4:26:06 PM (Central Daylight Time, UTC-05:00)  #    Comments [0] -
.NET | ASP.NET MVC | iPhone
# Thursday, October 13, 2011
Take a look at the StackOverflow ad for more details. We're hiring 2 Senior developers and 2 Junior developers (and more: QA, BA, and a GUI developer). It's a fun environment with a strong technical team, so we're looking to keep the team strong. If you're around the Milwaukee area and are interested in more details, let me know.
Thursday, October 13, 2011 9:09:02 AM (Central Daylight Time, UTC-05:00)  #    Comments [0] -

# Saturday, October 08, 2011
I've been searching for a comprehensive online backup solution for quite some time. I want to follow the sage wisdom I heard from Alex Lindsay about the 3-2-1 backup rule. With Windows Home Server, I had finally got all of my computers backing up automatically, and it has actually aided in one restore of a dead hard drive. But not having an offsite backup has gnawed at me for a while. What if someone steals my computer stuff from my house? Fire? Tornado? All of those backups are useless in those cases.

I looked at Carbonite and Mozy, but they both refuse to backup WHS. This is imperative to me because I store my media (pictures, videos, musics, etc.) on a share on my WHS device. Having to store those files locally just to please a backup service was not appealing to me. Amazon S3 was going to be too expensive. Other options seemed immature. So I waited. And I waited.

Along came CrashPlan. They embrace WHS. They support Mac and Windows. They have an iPhone app (and Android) to check on things on the go. There are a ton of other features that make this an attractive offering (multiple backup destinations, secure, unlimited storage, etc.). Finally, it is dirt cheap. I have all of the computers in my house automatically backing up to the cloud for just $6 a month. It's nice to see that a company understands that homes have networks, and doesn't lump them into an enterprise-grade price.

If you're not backing up to the cloud, I highly recommend giving CrashPlan a try. If they had a referral program, I'd probably be able to retire because I'd be pumping them up at every turn! :)

[I have not been contacted by, compensated by, or otherwise asked to post this. I'm just reporting my satisfaction with a service that I've been looking for since 2009.]

Saturday, October 08, 2011 4:58:29 PM (Central Daylight Time, UTC-05:00)  #    Comments [0] -

# Thursday, September 29, 2011
At work here, we use generated files with partial classes to get us through the tedium of creating mundane classes. It works well enough, but one of my biggest complaints about this is that if you then need to do a Find in Files, you get hundreds, or maybe thousands, of extra hits when searching for something that would be found inside those generated files.

Today I came across the free tool Ultra Find in the Extensions gallery. It does exactly what I want, namely, lets me focus on the search results that aren't in the generated files.

Thanks, Logan. Very useful!

Thursday, September 29, 2011 1:30:45 PM (Central Daylight Time, UTC-05:00)  #    Comments [9] -
.NET
# Wednesday, August 31, 2011
While creating a view model for an MVC 3 application, I annotated a property with the DataType.EmailAddress attribute. My thinking was that it would validate whether or not the contents of the property was in a valid email format. The attribute does not perform validation, however. This StackOverflow article discusses some ways to add that functionality.

Wednesday, August 31, 2011 9:31:51 PM (Central Daylight Time, UTC-05:00)  #    Comments [0] -
.NET | ASP.NET MVC
# Sunday, August 07, 2011
I heard about thenounproject.com on Twitter recently. It looks like a real nice project to provide simple icons. The downside (to me) was that they are stored as svg files. I want to be sure to easily support IE8 (see here), so I wanted to convert the files to png. There aren't a lot of free, accurate solutions out there, so I thought I'd share the best one I found.

Sunday, August 07, 2011 8:20:38 PM (Central Daylight Time, UTC-05:00)  #    Comments [0] -

Navigation
Archive
<December 2011>
SunMonTueWedThuFriSat
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2013
Dan Miser
Sign In
Statistics
Total Posts: 391
This Year: 2
This Month: 2
This Week: 0
Comments: 674
Themes
Pick a theme:
All Content © 2013, Dan Miser
DasBlog theme 'Business' created by Christoph De Baene (delarou)