blog.bendauphinee.com
BenDauphinee.com Setting Up Zend Framework 2 Autoloader «
http://blog.bendauphinee.com/2014/05/setting-up-zend-framework-2-autoloader
Setting Up Zend Framework 2 Autoloader. May 13th, 2014. If you’re like me, you like to dig into the belly of things and twist them to your own uses. Tonight, I’ve been monkeying around with ZF2 autoloaders, and working out how they function. I store my ZF install in a dir (Zend/) in my include path, so I don’t have to maintain copies for each site on my server. Some useful notes on this:. Php classmap generator.php -l "/usr/share/php/Zend/". That’s all for tonight folks!
blog.bendauphinee.com
BenDauphinee.com June « 2010 «
http://blog.bendauphinee.com/2010/06
You are currently browsing the blog archives for June, 2010. Version Control – A Visual Guide. June 14th, 2010. If you are new to version control, this article is a fantastic outline:. Lessons Learned From framework – A Dissection. June 4th, 2010. So, here we are, a long time later, and I’ve decided to start from near scratch on a new version. Before I embark on that challenge though, I’m dissecting what I have learned through the process, so hopefully someone can learn at least one thing. Array shift($r...
blog.bendauphinee.com
BenDauphinee.com Code «
http://blog.bendauphinee.com/category/code
You are currently browsing the archives for the Code category. Codility And Candiate Testing: Still Sucks. September 15th, 2016. Previously: Codility And Candiate Testing. I recently applied to another position which involved Codility testing. This time around, the questions were some sort of array split, a binary positive to negative number flip, and a knight position move algorithm. The rest of my beef still remains though. Read a CSV file into columns. May 6th, 2016. Column -t -s"," test.csv. If you&#...
blog.bendauphinee.com
BenDauphinee.com May « 2010 «
http://blog.bendauphinee.com/2010/05
You are currently browsing the blog archives for May, 2010. JQuery Modal AJAX Form. May 19th, 2010. I wanted to load forms through a jQuery dialog, but could not locate a suitable simple solution. After a bit of code hacking, I have created a decent solution. Hope you find it useful. This solution requres jQuery (I built with v1.4.2), jQueryUI (v1.8.0 ).
blog.bendauphinee.com
BenDauphinee.com March « 2011 «
http://blog.bendauphinee.com/2011/03
You are currently browsing the blog archives for March, 2011. JQuery Pagination Top And Bottom. March 10th, 2011. Thanks goes to VNSMANIAN2006 for the code for a quick top and bottom pagination element with jQuery Pagination. The original note can be found here: http:/ plugins.jquery.com/node/8360#comment-4157. And here is how I used it:. Document).ready(function(){ $.get(ajax.php? And all I did was add the #paginationb div below the table.
blog.bendauphinee.com
BenDauphinee.com February « 2012 «
http://blog.bendauphinee.com/2012/02
You are currently browsing the blog archives for February, 2012. February 19th, 2012. I have started working with an Arduino. For someone getting started in electronics, this device, and the community around it make it so much easier to learn. Within two minutes of plugging it in and starting the software, I was able to do something. If I want to have an alternating pattern, the registers contain these values. 10101010] - [10101010] / Register 1 - Register 2. 10 x 330Ω Resistors. To wire the shift regist...
blog.bendauphinee.com
BenDauphinee.com June « 2013 «
http://blog.bendauphinee.com/2013/06
You are currently browsing the blog archives for June, 2013. Zend DB Query Dump. June 25th, 2013. If you ever need to see the SQL that Zend DB has created, so that you can run it manually or any other reason, here’s how to do it. WHERE (whatId = 186459) Array ( [1] = 0.12551 [2] = xxxxxxxxxxxx ) */. Strip Whitespace Out Of A File. June 6th, 2013. Sed is a wonderful tool. Just used this command today to remove most of the whitespace from a file. Sed 's/ / g' test.txt test2.txt.
blog.bendauphinee.com
BenDauphinee.com September « 2010 «
http://blog.bendauphinee.com/2010/09
You are currently browsing the blog archives for September, 2010. Problem Diagnosis: You Will Never Think As Stupid As Some Users. September 29th, 2010. One of my clients recently came back to me with a problem. I had built an invoice system that let their users generate an invoice and go to PayPal to pay it. However, it was discovered that some users had invoice numbers that they had made payments for, but that had no corresponding entries in the database. Be able to think as stupidly as some users.
blog.bendauphinee.com
BenDauphinee.com December « 2011 «
http://blog.bendauphinee.com/2011/12
You are currently browsing the blog archives for December, 2011. PHP Heatmap Gradient Color Generator. December 25th, 2011. Based on the awesome work done here Samson PHP Color Gradient Generator. I have packed up his code into two functions that are by default set to generate heatmap blue to red color gradients, in as many steps as you need. Https:/ gist.github.com/bendauphinee/10472641. Function heatSteps($config){ $config['colorStart'] = (isset($config['colorStart'])?