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

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:
, ,

Posted in Economics, Politics | 1 Comment

Working on route-me

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:
, ,

Posted in iPhone, route-me, Software Development | Leave a comment

The Moral Bankruptcy of the left

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:
,

Posted in Business, Economics, Politics | 1 Comment

What were they thinking?

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:
,

Posted in Economics, Politics | Leave a comment

Unit Testing and a Bureaucratic Organization

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:

Posted in Business, Software Development | Leave a comment

imGravityGame and more updates to imSimReal

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:
, ,

Posted in imGravityGames | Leave a comment

imSimReal Websites

Today we got the imSimReal website uploaded so it is now live.

There are a few things left to update, including adding a link to it from the John Ahrens, LLC homepage. Most of these things will take place over the next day or two. Note the blog at imSimReal as well.

Technorati Tags:

Posted in imSimReal, The Web | Leave a comment

Documentation for imSimReal

Today I managed to create documentation for the imSimReal classes using JavaDoc style and Doxygen. This creates a nice set of html documentation for the public class APIs. This will get added to the class hierarchy and become 0.1RC2 soon. I ultimately want to have a downloads page that contains dmgs that contain the complete project ready to download, but haven’t gotten there yet.

Technorati Tags:
, ,

Posted in General | Leave a comment

imSimReal 0.1RC1 ready

I finished up imSimReal with IMSRGravity and IMSRPointObject this afternoon. I tagged it 0.1RC1 as the first release candidate for 0.1. I believe that this is complete for what I need to start work on GravityGames, my first iPhone app. It’s possible that more will be required, so I’ve left it as an RC1 and not final until GravityGames is complete.

IMSRGravity is as discussed earlier, a convenience wrapper for an NSDictionary containing the gravitational constants for various celestial bodies, such as Earth, Moon and Jupiter (included in the initial release).

IMSRPointObject represents a point mass in three dimensional space. It uses the classic kinematic equations to calculate a new position and velocity in three dimensions delta time in the future. The equations are:

r1 = r0 + v0t + 0.5at2
v1 = v0 + at

where:

r1 is the final position (meters)
r0 is the initial position (meters)
v0 is the initial velocity (meters/second)
v1 is the final velocity (meters/second)
a is the acceleration (meters/second2)
t is the time increment (seconds)

Gravity is always negative along the Z axis.

Technorati Tags:
, ,

Posted in imSimReal, iPhone, Macintosh, OS X, Software Development | 1 Comment

imSimReal Problems fixed

Found I was releasing objects that didn’t need releasing.

Technorati Tags:
, ,

Posted in imSimReal, iPhone, Macintosh, OS X, Software Development | Leave a comment