Musings from the Peanut Gallery

My thoughts on Software Development, RVing, New Space and anything else I feel like commenting on.

Musings from the Peanut Gallery header image 1

Executable Requirements == Acceptance Tests

May 25th, 2009 · No Comments

I’ve been building a test framework for acceptance testing the Point Inside client API. I based the concept on Fit and Fitnesse, an open source framework for just this type of testing. Since this is for the iPhone, I used the UITableView in a NavigationController to provide a hierarchical layering. I use colored text to show status.

Gray text means the test hasn’t run.

Gray text in top level nav page

Yellow text means the lower level tests had mixed results.

Yellow text in second level view

Red text means the test failed, and green text means the test passed.

Red and green text on bottom level

The actual tests need to have a lower level view that shows specific data about the test. Pressing any test cell causes the test to execute. If you select the cell in the first or second image above, the tests below that get executed.

There’s a color issue with going back up the chain. The first image is gray because I pressed the cell in the second image. Going back to the first view, the color isn’t updating.

So there is more work, but I’m going to proceed with this. In the future, when I have some time, I’m going to work on making this an open source package for others to be able to create acceptance testing of iPhone applications.

Technorati Tags:
, , ,

→ No CommentsTags: Software Development · iPhone

HIkeSuperstitionMountain with a trail laid out

May 11th, 2009 · No Comments

I now have HikeSuperstition displaying trails. The problem is, the maps don’t have any data in the areas where we are putting trails, so the map looks pretty blank.

Here is an example:

Hieroglyphic Trail on iPhone map

I could use Google maps, but Google is all about downloading from the web, not caching on the device. Since there is no connection to the internet in much of the areas we are mapping, dynamic downloading won’t work. The trail will need to be downloaded first.

on edit: This may be the last update here for a while, as my PointInside project is starting to move, so I’ll be focusing my development time there now.

Technorati Tags:
, ,

→ No CommentsTags: HikeSuperstitionMountain · iPhone

HikeSuperstitionMountain With Trailheads

April 20th, 2009 · No Comments

At long last, after far too much effort, I’ve gotten HikeSuperstitionMountain iPhone app to display trailheads on the map. It also rotates.

Part of this effort involved creating a sample application (SimpleSampleMap) for the route-me project. This application acted as a base to develop HikeSuperstitionMountain from. Now working on adding the ability to select the trailhead markers and open a UIWebView that displays information about the trailhead, and the trail(s) that start from that location.

HikeSuperstitionMountain application with trailheads marked..

Technorati Tags:
, ,

→ No CommentsTags: HikeSuperstitionMountain · Software Development · iPhone · route-me

HikeSuperstitionMountain Take #1

April 13th, 2009 · No Comments

I’ve been working on an iPhone app that we’re calling something creative like HikeSuperstitionMountain. This application will provide users with pre-mapped trails that they can follow on their iPhones, using Core Location to provide location via the GPS chip.

Currently I have the application using route-me, an open source mapping project designed to provide map data, currently from OpenStreetMap project. We may change to another source before submitting to the AppStore, as the Open Street Maps data does not include the wilderness area.

I am also currently showing the trailheads on the map, which you can see in the image I’ve linked to below:

Hike Superstition Mountain image showing map with trailheads.

Technorati Tags:
, ,

→ No CommentsTags: HikeSuperstitionMountain · Software Development · iPhone

In Case You’re wondering what the Tea Parties are about

April 12th, 2009 · 1 Comment

This graph shows the profligate spending of an out of control government:

The Republicans didn’t do too well, but this level of spending by the Democrats (starting with the 08 budget year by the way) is beyond irresponsible.

(via Instapundit and Transterrestrial Musings)

Technorati Tags:
, ,

→ 1 CommentTags: Economics · Politics

Working on route-me

March 8th, 2009 · No Comments

In an effort to contribute to an open source project and improve my understanding and status in the iPhone development community, I’ve started working on route-me, an open source project to provide mapping capabilities for other projects to use.

I’m building a sample app so other developers will have an example that they can use to start their own application.

Technorati Tags:
, ,

→ No CommentsTags: Software Development · iPhone · route-me

The Moral Bankruptcy of the left

March 7th, 2009 · 1 Comment

Megan McArdle has a great article showing the moral bankruptcy of the logic that our leaders seem to be using today.

But second of all, just as there is no way to tax a corporation, there is no way to default on a corporation. Whenever you default, you are taking money from some person: a shareholder, a creditor, an employee who loses their job when the corporation is liquidated.

And to return to the question I asked earlier: what if Felix were defaulting on you? Because he probably is. His mortgage bonds are owned by pension funds, bond funds, and of course, investment companies whose debt is in turn held by bond funds, pension funds, and insurers. If they suffer gigantic losses, they will either leave a bunch of people unprepared for various forms of financial distress, like retirement or a house fire–or the taxpayer, aka you, will bail them out.

via Rand Simberg

Technorati Tags:
,

→ 1 CommentTags: Business · Economics · Politics

What were they thinking?

March 2nd, 2009 · No Comments

I’m not generally an apologist for Bush or the latest incarnation of Republicrats, but this certainly proves who was unwilling to deal with the problems at Fannie Mae and Freddie Mac when they could have been dealt with.

Technorati Tags:
,

→ No CommentsTags: Economics · Politics

Unit Testing and a Bureaucratic Organization

February 24th, 2009 · No Comments

I’ve been reviewing a unit test plan today. I should really be a simple document. Use this test framework. Write tests before writing code. Execute tests continually to verify good code.

Rinse and repeat until done. All tests will pass and after running a code coverage tool, justify any code not covered with tests.

But that apparently doesn’t match the approach this organization wants to use. They don’t want to run tests until code is ready for checkin. And they want all manner of metrics kept.

I find that this is a good group to work with, but the bureaucracy is toxic to me, at least.

Update:

Fix spelling. Add Technorati links.

Technorati Tags:

→ No CommentsTags: Business · Software Development

imGravityGame and more updates to imSimReal

January 17th, 2009 · No Comments

Started working on imGravityGame, a demonstration of the use of IMSRGravity in the imSimReal framework. I’m working on the flipSide where I start with a Picker to pick the body providing the gravitational attraction, such as a planet. In -initWithNibName:Bundle:, I load the IMSRGravity object.

gravity = [IMSRGravity alloc] init];

In -viewDidLoad:, I construct an NSArray using the keys from gravity:

planets = [gravity allKeys];

The FlipSide implements two data source methods:

-numberOfComponentsInPickerView:

which returns 1, and

-pickerView:numberOfRowsInComponent:

which returns the number of planets in the gravity:

return [planets count];

It also implements one UIPickerViewDelegateMethod

:

-pickerView:titleForRow:forComponent:

which returns the name of the planet indicated by the NSInteger row

return [planets objectAtIndex: row];

At this point I realized that IMSRGravity needs a place to store the currently selected planet, so I will be going back to imSimReal and preparing 0.1RC3 soon (like tomorrow, hopefully).

Here is the current status of FlipSideViewController class:

@interface FlipsideViewController : UIViewController

{
IBOutlet UIPickerView *planetView;
IMSRGravity *gravity;
NSArray *planets;
}

@property (nonatomic, retain) UIPickerView *planetView;
@property (nonatomic, retain) IMSRGravity *gravity;
@property (nonatomic, retain) NSArray *planets;

@end

Technorati Tags:
, ,

→ No CommentsTags: imGravityGames