Skip to content


Scrptures 0.4.1

Just a couple of changes to the manifest file so the application shows up on the market for some versions of the OS. It normally showed up for 1.6, but anything later it should not have. That has now changed. 0.4.0 also included a change that allowed for searches. Just press the search button on your phone and it will look for the EXACT PHRASE you type in. You must include punctuation as well.

Download it here.

Posted in Announcements, Faith.

Zealots

I finished these figures a couple weeks ago and finally got around to taking a picture of them. Not the best pictures, but they will have to do for now.
Zealot Priest


Zealots

Posted in Games.

Health Care Vote Results

If you are interested to see how the vote on the last minute amendment went as well as the actual bill in the house. No matter what your opinion is on the bill, it’s worth knowing how your representative voted.

Posted in Politics.

Cucumber

Cucumber is a fairly easy BDD tool that I’ve been using for the last month or so, but there have been a couple things I’ve had to learn on my own to make some of the webrat stuff work, so I thought I’d share one instance of what I’ve been doing.

To start, lets show the feature. I’ll go through each line one at a time.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
    Scenario: Create a new style from scratch
        Given I have logged in as "testuser"
        And I am on the style creation page
        And I fill in the fields
            | unit_style_code        | S100  |
            | unit_style_description | A simple floorplan |
            | unit_style_square_feet | 100.0 |
            | unit_style_price       | 1000.0 |
        When I press "Save"
        Then with the latest unit_style
        Then I should be on the edit style page for that unit_style
        Then the "unit_style[code]" field should contain "S100"
        Then the "unit_style[description]" field should contain "A simple floorplan"
        Then the "unit_style[square_feet]" field should contain "100.00"
        Then the "unit_style[price]" field should contain "1000.00"

Line 2: This one was tricky. I’m using restful authentication for rails and I’m using users already created with dummy/test account information for testing purposes. The “I have logged in as” step does all the logging in steps. Getting through all that is another posts (one shorter than this one tho).

Line 3: Just create the mapping for “the style creation page” in /features/support/path.rb

Line 4-8: In /features/step_definitions/webrat_steps.rb, I put in the following code:

1
2
3
4
5
When /^I fill in the fields$/ do |table|
  table.raw.each do |row|
    fill_in(row[0], :with => row[1])
  end
end

Line 9: “Save” is the name of the submit button. The “I press” step is already in the generated webrat_steps.rb

Line 10: I created a unit_style_steps.rb, which contains:

1
2
3
Then /^with the latest unit_style$/ do
  @unit_style = UnitStyle.find(:last)
end

Line 11: Again, back to path.rb, this time I added the following:

1
2
    when /the edit style page for that unit_style/
      "/housing/engineering/edit_style/" + @unit_style.id.to_s

Line 12-15: This is where I was having problems. The generated webrat_steps had the following for it:

1
2
3
Then /^the "([^\"]*)" field should contain "([^\"]*)"$/ do |field, value|
  field_labeled(field).value.should =~ /#{value}/
end

But it wasn’t finding the fields correctly. So after using the save_and_open webrat function (now another method in my webrat_steps) I was able to determine that the fields were there and that they had the correct information in them. Webrat just was not finding them. After a bit more digging I found the file_named function, and now, the step looks like this:

1
2
3
Then /^the "([^\"]*)" field should contain "([^\"]*)"$/ do |field, value|
  field_named(field).value.should =~ /#{value}/
end

So, with only a few lines of code, I have a simple, easy to read scenario that just about any user would be able to read and understand, but also something I can take and run on a regular basis to make sure the application is also running the way it should.

Posted in programming.

The Martin Jet Pack

The Martin Jet Pack looks cool, but I think I’ll wait for the smaller, quieter version to come out.

Posted in Uncategorized.

fun with computers and git

I’ve been using git as my scm system for a while now, but getting it to work nicely on windows can sometimes be a real pain, especially when running cygwin 1.7 and still having to connect to subversion as well. Granted the git svn command works, but some of the latest patches have caused a couple of hiccups too.

Add a dose of a primary hard drive crash and you have for a busy couple weeks. Finally I’ve managed to reinstall most of my necessary software, but I lost my .gitconfig file. So, for future reference, here are a couple of essentials needed to get git, svn and kdiff3 working (at least for now). All of it can be done with the git config command, but it is so much easier to just cut and paste.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[user]
	name = David Mitchell
	email = mitchelld@acm.org
[color]
	interactive = always
	status = always
	pager = true
	branch = always
	patch = always
	ui = always
	diff = always
	grep = always
[format]
	pretty = medium
[merge]
	tool = kdiff3
[mergetool "kdiff3"]
	path = C:/Tools/KDiff3/kdiff3.exe 
[diff]
	tool = kdiff3
[difftool "kdiff3"]
	path = C:/Tools/KDiff3/kdiff3.exe
[difftool]
	prompt = false
[mergetool]
	prompt = false

Posted in programming.

» The Compiled List of One Page Dungeon Entries

One Page Dungeons is a list of over one hundred dungeons people made.

Posted in Games.

Manual Update to Cupcake

Here’s how to update to cupcake if you cannot wait for the OTA release from TMobile.

  1. Download the following URL: https://android.clients.google.com/updates/partner/signed-kila-ota-148830.de6a94ca.zip
  2. Rename the download to update.zip on the SD card, and then power off the phone
  3. Hold the Power and the Home buttons until you see a triangle on the screen
  4. Type in Alt-L and Alt-S and wait for the system to update.
  5. Enjoy the new cupcake version of Android.

Looks like I now have some work to do to update Scriptures to the new version.

Posted in Announcements, Entertainment, programming.

Conference painting project

During conference this year I decided to paint a couple miniatures. So, for about a total of 8 hours I managed to crank out two warjacks from Warmachine. I’m not happy with the pictures themselves, and the pictures showed me a couple blemishes I missed (because they were really small), but overall, I’m happy. Two ‘jacks in 8 hours is good for me.

Ironclad

ironclad

 

Charger

charger

Posted in Games.

Teathered connection for Android

PdaNet allows a person to use their Android phone as a modem without having to have root access on the phone. Up to now all the solutions I’ve seen have required a person to get root access on the G1, but with this solution you don’t have that problem anymore.

Posted in Announcements.