Arun Stephens

1..0 or 1 relationships in Entity Framework

I came across this problem today when migrating a project from VS 2008/.NET 3.5 to VS 2010 RC1/.NET 4.0. I don’t actually think it’s a VS 2010 thing, though. I have two entities A and B. There is a navigation property on A, and it can have either one or no instances of B. B’s foreign key is to A’s primary key (obviously) but B also has its own primary key. In Read post »

Width of grouped UITableViewCell

I am working on some iPhone development at the moment. I have built a cell for a UITableView in Interface Builder. The cell was a bit too wide for the cell in my table view, and I realised it was because the cell in the NIB is full width but I am loading it into a grouped table view. I didn’t want to have to measure it myself so I searched for the width. Couldn’t find it. So Read post »

Tab bar and navigation bar on iPhone

Today I am starting to write my first iPhone application. I have finally finished reading Neal Goldstein‘s book iPhone Application Development for Dummies. (I’m not going to buy another Dummies book in a hurry though: the book could have been about 30% smaller if it weren’t for the bad jokes, but I guess that’s the style of the series!) The book gave me a pretty good understanding of the basics required for iPhone development, and it Read post »

SEO is important, even for a unique name

My company is called Zemobo. It has a web site, which is currently a very basic portfolio and has a little bit of information about the free Android application I wrote, Hindi Flashcards. It used to be that if you searched for Zemobo in Google, zemobo.com would be the first result. It makes sense, doesn’t it? But now, unfortunately, it is quite low down on the search results. What’s ahead of it? Number 1 is a Facebook Read post »

Using the Android accelerometer

I am building my first real Android application. It is a Hindi flashcards application. It works already (in that it will shows the different Devanagari characters and English transliterations) but now needs some better UI features. The first one I am going to implement is shuffling the deck of cards by shaking the phone, using its accelerometer. To handle accelerometer events, you need to get a reference to the SensorManager and then register a new SensorEventListener using the registerListener method: Read post »