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.
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.
An origional song I wrote with a good deal of assitance from Jason Pamblanco. This recording is for the purpose of giving the song a "form" so that it can be molded and tweaked some. I will most likely do a full band recording at some point. Feedback is very much welcome! :)
Lyrics:
Recently, My father got an iPad; it's his one internet-enabled device. He mentioned that he couldn't listen to any of the audio on my site. Well, I found this to be unacceptable, and, while we still on the phone, I made the following changes to Drupal's Audio Module:
FIrst, edit the "1pixelout.inc" file in the audio/players/ directory (or edit the .inc file for the play you have chosen to use.) Add the following class to the flash object tag: class="1pixelflashplayer". Also, add the following title attribute to the object tag: title="{$options['soundFile']}".
The following javascript will search for all the flash players with the aforementioned class, hide them, and insert an <audio> tag after them with the src of the video from the flash player. Note: This will only work for mp3 audio files. You can download the javascript at the bottom of the page.
I Hope this helps someone. Javascript follows...
Recently, it became necessary to normalize phone numbers for my work on SimpleChurchCRM. In order to normalize something, we must first understand it and analyze it.
The following regular expression will match phone numbers and their parts.
([(]?(?P<area>\d{3})[)]?)?(?: ?-?)?(?P<three>\d{3})(?: ?-?)?(?P<four>\d{4})( (x|(ext\.? ))(?P<ext>\d+))?
Note that this requires PHP > 5.2.2 I think.
So, on Monday (June 7th) ATT will be discontinuing its unlimited data plan that is currently $30. It will be replaced with a $25 a month plan that includes 2GB of data (67.5MB/Day). I believe they are also offering 200MB for $15. Supposedly, "Only 2% of ATT's smartphone users consume > 2GB data". That isn't intellectually honest in my opinion, because: This assumes that the users of different phone models use data in the same quantities.
This is erroneous.
This is a recording of my original song named "Glory" sung at the 9:30am service at Immanuel Baptist Church Tallahassee, Fl on May 16th, 2010. While it is hard to distinguish all of the parts on the recording, it was voiced in SAT. I would be willing to provide sheet music and chord charts upon request.
From time to time I see people getting caught by the issue in the title. There are no other permission based modules being used; the user has edit permission for the content type, he/she may even be the author of the node, but they get a 403 Access Denied.
Here is a possible reason why: The user does not have access to a Filter type used on one or more of the node's input fields. This can happen when someone else creates a node who has access to a certain filter that not everyone else does. Then, when the other user comes to edit the node, he/she can't.
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);
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.
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