Posted by nick on April 21, 2010 at 9:38 pm
I moved to Minnesota in 2004 for work as a PHP Developer and have been coding away full time for professional companies ever since. I’m one of 20 or so Zend PHP 5 certified engineers in Minnesota. If you or your company needs help with any of the below areas, please contact me through this website or email nickjbartlett at gmail dot com.
- Object Oriented PHP 5
- High performance, high traffic PHP websites
- MySQL 5
- JavaScript / Jquery
- XML
- CSS
- OSCommerce / Ecommerce
- WordPress
- Zend Framework
- SEO Search Engine Optimization
- Google Adwords
I have years of personal experience with ecommerce along with a variety of web development experience and skills from my full time work. If you are in need of my services as a PHP Developer in Minnesota (Minneapolis or St. Paul area) or other services related to your website, please contact me nickjbartlett at gmail dot com and I’d be glad to provide you with a quote.
Continue Reading
Posted by nick on January 21, 2012 at 11:43 am
I’ve been using TortoiseSVN for years and thought installing and using TortoiseGit would be just as easy, but it wasn’t. The TortoiseGit website’s documentation and setup tutorial was very poor. I found this website as the best resource for getting TortoiseGit installed on your computer and working with your first repository on GitHub http://www.sparkfun.com/tutorials/165.
Continue Reading
Posted by nick on January 12, 2012 at 2:31 pm
I was pleasantly surprised at how simple it was to integrate a good captcha solution with Zend_Form. Your form doesn’t have to extended a special object or anything; you just need to add a “captcha” element like so:
$this->addElement('captcha', 'captcha', array(
'label' => 'Please Type:',
'required' => true,
'captcha' => array(
'pubkey' => RECAPTCHA_PUBLIC_KEY,
'privkey' => RECAPTCHA_PRIVATE_KEY,
'captcha' => 'reCaptcha'
)
));
Be sure to change or set the defined variables for public and private keys provided to you with your recaptcha account. You don’t have to do anything to validate if the user entered the correct letters in your controller as Zend has already taken care of that part for you. As long as you’re using Zend’s isValid() method like so:
if ($form->isValid($request->getPost())) {
Continue Reading
Posted by nick on December 23, 2011 at 12:38 pm
In command prompt we can switch from one drive to another drive by just typing the drive letter name suffixed with the character ‘:’
For example if you are working in C: drive and if you want to switch to E: drive just type ‘E:’ at command prompt and press ‘Enter‘.
Continue Reading
Posted by nick on December 9, 2011 at 9:02 am
Using Mac OS X on the command line, log into mysql and select your database. Then run the following for a tab delimited file located on your desktop:
load data LOCAL infile ‘/Users/YOURNAME/Desktop/standards.txt’ into table TABLE_NAME fields terminated by “\t” lines terminated by “\r”
Continue Reading
Posted by nick on December 5, 2011 at 9:06 am
I had a need to clone an array with JavaScript. There appears to be a number of different ways to do it, including writing your own function. All of these solutions below will just create a reference to the original array:
var newArray = myArray.slice(0);
var newArray = myArray.concat([]);
var newArray = clone(myArray);
A popular answer using jQuery is the following:
var newArray = jQuery.extend(true, {}, myArray);
However, this solution will return an object and you cannot get the length of an object like you can an array.
To return an array, we change the curly braces to square brackets like so:
var newArray = jQuery.extend(true, [], myArray);
This is the solution that works.
Continue Reading