I just found out that you could use the Homebrew package manager to install remote packages as well as local packages. I needed Apache Ant while integrating HTML5Boilerplate with the FuelPHP Framework, and noticed it was not in the local packages. Here is the brew: brew install https://raw.github.com/adamv/homebrew-alt/master/duplicates/ant.rb
One of my colleagues suggested that we set up email notifications so that we could know when git repositories got updated. We ended up using git-commit-notifier with gmail. It worked like a charm and took about 30 mins to get setup. First, you need ruby installed (even if you have it, make sure you’re using [...]
Also posted in Version Control |
What is a Framework? Essentially, it’s a buzzword to describe a packaged approach to completing work. It’s a way of building things, using strategically agreed upon components. The people who determine the components the framework will utilize can begin as one or a few original architects, and can morph into something that seems to have [...]
Also posted in Abstract, Frameworks |
I’m working on a UPS shipping class and wanted to get a feel for the UPS API before I started writing any code. I decided to use cURL to to test. Anyways, here’s how you format a request to an XML API via Curl / command line (Specifically, the UPS Address Validation API): curl -v [...]
Also posted in XML, cURL |
I’ve done 3 rides now with a group of guys in Cookeville who are all pretty serious. A few of them even ride professionally. The first day, I finished dead last, though I stuck with one guy for most of the ride. The second time, I did a little better. It really started to hit [...]
I expected a lot from the PHP Community Conference when it was announced. My first attendance to a programming-centric conference, I didn’t quite know what to expect, but I did feel it was something I couldn’t afford to miss. I’m really glad I made the trip down to Nashville, and I’m thankful that I decided [...]
Also posted in Conferences, PHP | Tagged PHP
I spent the past 30 minutes debugging a nasty little thing…thought I would share in case anyone else ever runs into this. When using JavaScript’s setInterval, make sure that the timeout duration is greater than or equal to the execution time of the function it calls. I made the mistake of setting the interval duration [...]
Perfect for loading a random testimonial, banner image, etc. A quick helper for your coding pleasure = ) First, create your helper (helpers/randomview_helper.php). Here are the contents: <?php if ( ! defined(‘BASEPATH’)) exit(‘No direct script access allowed’); /** * Random view */ function get_random_view($fullpath, $viewpath) { $file = str_replace(‘.php’, ”, random_element(get_filenames($fullpath))); return $viewpath.$file; } Notice [...]
Also posted in CodeIgniter |
UPDATE: Since writing this blog post, I’ve released a new library which replaces this one, using the CodeIgniter Sparks system. You can find it here: http://github.com/calvinfroedge/codeigniter-payments I am currently supporting 6 payment gateways, and should have several more added very soon. Thanks for reading! NOTE: You can skip reading the post and get right to [...]
Also posted in Career, CodeIgniter |