Home

Brian Seagraves - Guitar My name is Brian Seagraves and I am software developer for Bible.org; I also do freelance work and specialize in Drupal (See the services I offer).  This site will showcase my projects and current interests.

PHP's mysql_connect Function Anomalie

Recently, when trying to make 2 similtanious connections to the same mysql server with different databases, I noticed that this is not strictly possible without a little tweak.

The following will not work as expected:

$con1 = mysql_connect('localhost', 'user', 'pass');
mysql_select_db('db1', $con1);

$con2 = mysql_connect('localhost', 'user', 'pass');
mysql_select_db('db2', $con2);

Initial findings concerning iPhone web frameworks (iUI, and jqTouch)

I am in the process of completing a web based application that I will be marketing soon. One of the last features to be added is an iPhone interface. The ubiquity of the mobile platform - most outstandingly, the iPhone - has necessitated this.

There are 2 main ways in which to build any application: hand code everything or use a framework. A framework's job is to take the mundane tasks that need to be done for EVERY application you write and make them simple. Some frameworks also help with code organization.

One-liner: Convert a Directory of wav files

Usually, when I need to convert many wav files, I'll use a perl script I wrote - its on the Helpfull Apps Page.  But today, I didn't care about ID3 Info or anything like that. I use LAME for commandline encoding and here is the one-liner that took care of the directory:

find ./ *.wav | sed 's, ,\\&,g'| xargs -n1 lame -b -96

Google Searches for Which I Am on the First Page of Results

By using a combination of Google Analytics and Google Webmaster Tools I have compiled a list of the most popular pages on my site according to google and its search results.  I find this data very helpful and interesting. So, I thought I would share.  What follows is a list of search phrases, which link to the resulting page on my site, and then a link to the search.  I only inculded the search for which I am on the first page of google results. (Continued...)

Can Throwing Fridge - Part 1

I finally started my project to build a soda-can-throwing-mini-fridge.  I've talked about it for a year or so, but now, I have actually ordered parts AND stated assembling. While I do not have the actual mini-fridge yet, there is much I can do without it. For instance: assembling the electronics, computing multiple throwing distances/angles and the necessary springs and motors necessary to make them. (Continued...)

Wondering to Redemption


4:44 minutes (6.68 MB)

An origional song that juxtaposes man's short comings with the grace of God, followed by man's response.  Could be used for personal or corprate worship.

Lyrics, all instruments, vocal, and recording by me (Brian Seagraves). Thanks to Jason Pamblanco for critique during the making of the song!

My Addiction to 'No Fear'

No Fear is a SoBe product that is billed as an energy supplement. It contains numerous Vitamins and Minerals, (C, B, Taurine, Caffeine, etc.). The drink is very lightly carbonated.

DeAd Version .8 Released - Get Rid of Facebook ads For firefox users.

I have updated my DeAd FireFox extension to get rid of Facebook's ads. You can get it here: http://brianseagraves.com/helpful_apps#DeAd

Please give feedback if you use it. GoodBad.

 

Brian

All These People


3:13 minutes (4.59 MB)

This is an original song by me and is somewhat different from my others. Tell me what you think.

**Verse 1**
Cool breeze while I'm sleeping as I fade away
That's when I hear Him call out my name
My flesh is dying, but my soul is still alive
All that I live for: the mark toward toward

**Chorus**
And now this weight is off my shoulders
and there's nothing holding me
I'm not getting any younger
but I'm doing all I can