random book of mormon chapter

Sometimes reading / studying my scriptures can get boring (a sure sign of apostasy, I’m sure … I’m doomed!), but it occurred to me the other day that while we are instructed to read our scriptures on a daily basis, nobody ever said anything about reading them in any certain order.

So, while I was tweaking the db layout of the lds_scriptures tables, I added a new table: chapters. Then I setup a view to pull out a random chapter and its verses. This works much better than me randomly flipping something open in my book, because if I do that then I usually land somewhere near the middle. This time, anything goes, baby! Anyway, I wrote a quick php script to pull them out, and put it on my server, so here you go — a random Book of Mormon chapter each time you refresh the page.

For some reason, *every* time I run it, I get a really long chapter that comes up. I think the Lord is trying to tell me something. Doh!

About these ads

6 Comments

Filed under Computers, Religion

6 responses to “random book of mormon chapter

  1. la peca

    That’s so cool!

  2. The Random Chapter is cool. I love the idea of being randomly presented with the scriptures. It reminds me of a challenge that my Seminary teacher would give us to randomly select a chapter and see how often it was an answer to prayer. I was just working on a similar random project. I just created a javascript include so people can add a random verse out of Scripture Tag (the site uses the MDP Scriptures) to their sites. There is more information on the Scripture Tag blog (http://scripturetag.com/blog/?p=27). Keep up the good work.

  3. Richard

    Cool idea. Can you set up a RSS feed that will feed/generate a random chapter daily? Thanks!

  4. Steve

    @Richard,

    Yah, I’ve been meaning to do that for a while. I need to get on that.

  5. Blake

    It’s generating errors now ~ the site (lds.org) redesign may have affected this.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s