<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Chris Morrell - Latest Comments</title><link>http://cmorrell.disqus.com/</link><description></description><atom:link href="https://cmorrell.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 20 Mar 2012 12:14:46 -0000</lastBuildDate><item><title>Re: Galahad MailChimp Synchronizer</title><link>http://cmorrell.com/open-source/galahad-mailchimp-synchronizer#comment-470327430</link><description>&lt;p&gt;Hi There! This is working great, but is it possible to add to groupings?&lt;/p&gt;&lt;p&gt;Im trying to do something like this:&lt;/p&gt;&lt;p&gt;$cols = array(&lt;br&gt;    'firstNameUser' =&amp;gt; 'FNAME',&lt;br&gt;    'surnameUser' =&amp;gt; 'LNAME',&lt;br&gt;    'userEmail' =&amp;gt; 'EMAIL',&lt;br&gt;    'companyNameList' =&amp;gt; 'COMPANY',&lt;br&gt;        'GROUPINGS' =&amp;gt; array(array('name'=&amp;gt;'Location','groups'=&amp;gt;"Brighton"))&lt;br&gt;);&lt;/p&gt;&lt;p&gt;Any help greatly appreciated !&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scott Wright</dc:creator><pubDate>Tue, 20 Mar 2012 12:14:46 -0000</pubDate></item><item><title>Re: Fluid Milk</title><link>http://cmorrell.com/open-source/fluid-milk#comment-450253156</link><description>&lt;p&gt; Sorry Chase, I've switched to Omnifocus for task management, so I've pretty much dropped this project.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Morrell</dc:creator><pubDate>Mon, 27 Feb 2012 16:40:21 -0000</pubDate></item><item><title>Re: Fluid Milk</title><link>http://cmorrell.com/open-source/fluid-milk#comment-450240423</link><description>&lt;p&gt;Hey Chris,&lt;/p&gt;&lt;p&gt;Any new thoughts on what might be wrong with the script? Looks really promising!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Mon, 27 Feb 2012 16:25:54 -0000</pubDate></item><item><title>Re: Galahad MailChimp Synchronizer</title><link>http://cmorrell.com/open-source/galahad-mailchimp-synchronizer#comment-446547961</link><description>&lt;p&gt;thank you for this amazing free script!!!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christiane Lima</dc:creator><pubDate>Wed, 22 Feb 2012 21:51:20 -0000</pubDate></item><item><title>Re: Galahad MailChimp Synchronizer</title><link>http://cmorrell.com/open-source/galahad-mailchimp-synchronizer#comment-440953558</link><description>&lt;p&gt;1)  The question mark is there because it's a prepared statement (it will be replaced with each email address).  2) The system is not built for duplicates, but I believer that MailChimp just ignores them. 3) This tool is specifically for keeping the MailChimp list in sync with your local database—for that reason it deletes anyone not in your local database.  If you want bi-directional syncing, you'll have to look elsewhere (or edit the code).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Morrell</dc:creator><pubDate>Thu, 16 Feb 2012 10:43:27 -0000</pubDate></item><item><title>Re: Galahad MailChimp Synchronizer</title><link>http://cmorrell.com/open-source/galahad-mailchimp-synchronizer#comment-440606182</link><description>&lt;p&gt;I need help:&lt;br&gt;1- what does it mean,  &lt;br&gt;FROM `user` WHERE email = ?' , the part =?'2- when I applied the code on my system, I noticed two things:            1] there is no duplication validation in the process, mean I have some emails, duplications in my users db, so it got entered in mailchimp  List with no elimination of the duplcated emails, to be entered more than one time.              2] some subscribers in mailchimp are not in my user table, after sync, I lost them, is there any way to just add emails records to chimp without deleting the records are not in my user table? &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ybocktor</dc:creator><pubDate>Thu, 16 Feb 2012 03:08:53 -0000</pubDate></item><item><title>Re: Using Modulo Operations for Even-Enough Distribution</title><link>http://cmorrell.com/misc/modulo-operations-even-enough-distribution-910#comment-437719787</link><description>&lt;p&gt;it works like a charm, awesome.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mango Africano</dc:creator><pubDate>Mon, 13 Feb 2012 10:53:18 -0000</pubDate></item><item><title>Re: Introducing Zit, an object-oriented dependency injection container</title><link>http://cmorrell.com/misc/zit-dependency-injection-container-976#comment-429786496</link><description>&lt;p&gt; The beauty of a DIC like Pimple or Zit is that they're EVERYTHING-agnostic.  Zit is designed to fit nicely into any project, including a Zend Framework-based one.  That said, ZF 2.0 has its own DIC implementation, that goes above and beyond the scope of Zit.  You might want to look into that.  But if you want something super lean to drop into your projects (ZF or otherwise), Zit is definitely a good candidate.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Morrell</dc:creator><pubDate>Sat, 04 Feb 2012 20:35:17 -0000</pubDate></item><item><title>Re: Introducing Zit, an object-oriented dependency injection container</title><link>http://cmorrell.com/misc/zit-dependency-injection-container-976#comment-429781977</link><description>&lt;p&gt;Nicely done! I was wondering if you're using it with any framework? I've been thinking to add DIC in my ZF based projects and think this could be the one. Any idea on that?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mohammad Emran Hasan</dc:creator><pubDate>Sat, 04 Feb 2012 20:27:52 -0000</pubDate></item><item><title>Re: Top WordPress Actions/Filters</title><link>http://cmorrell.com/webdev/top-wordpress-actions-filters-901#comment-419424174</link><description>&lt;p&gt;action filters in wordpress is at first weird for me but later on its on of the best features in any framework i got so far. nice blog&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alvin Dacillo Comahig</dc:creator><pubDate>Tue, 24 Jan 2012 04:59:58 -0000</pubDate></item><item><title>Re: Calculating the difference in days between two Zend_Date objects</title><link>http://cmorrell.com/webdev/calculating-the-difference-in-days-between-two-zend_date-objects-373#comment-413736486</link><description>&lt;p&gt;I tried your snippet and got  PHP Notice:  Object of class Zend_Date could not be converted to int and a very wrong result.&lt;/p&gt;&lt;p&gt;I changed your last line to &lt;/p&gt;&lt;p&gt;    echo "\nNumber of days: ", $diff-&amp;gt;toValue() / 60 / 60 / 24;&lt;/p&gt;&lt;p&gt;Ding!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Mintz</dc:creator><pubDate>Tue, 17 Jan 2012 16:34:15 -0000</pubDate></item><item><title>Re: Galahad MailChimp Synchronizer</title><link>http://cmorrell.com/open-source/galahad-mailchimp-synchronizer#comment-408628725</link><description>&lt;p&gt;This script was mostly built to keep a MailChimp list entirely synchronized with a local list.  Whenever you make changes locally, they're pushed to MailChimp when the script runs.  So yes, it does do what you want, but I think that more specialized code would be better for you, especially if you have a lot of customers connecting the many different lists.  Just look into the MailChimp API.  It should be pretty easy to push your changes on update, rather than in batches via cron.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Morrell</dc:creator><pubDate>Thu, 12 Jan 2012 09:24:25 -0000</pubDate></item><item><title>Re: Galahad MailChimp Synchronizer</title><link>http://cmorrell.com/open-source/galahad-mailchimp-synchronizer#comment-408626481</link><description>&lt;p&gt;hi Chris, thank you for offering this wonderful script for free!&lt;/p&gt;&lt;p&gt;I've got a question. I'm currently developing a contact management &lt;br&gt;system which also sync with the list in mailchimp. Users can select any &lt;br&gt;contacts in the system, update the details like name/email then click &lt;br&gt;update. Upon updating the local database, i also wish the data in &lt;br&gt;mailchimp to be updated too. &lt;/p&gt;&lt;p&gt;Does your script allows a specific contact in mailchimp to be synced?&lt;/p&gt;&lt;p&gt;Thank you!&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">seanngoh</dc:creator><pubDate>Thu, 12 Jan 2012 09:20:48 -0000</pubDate></item><item><title>Re: Galahad MailChimp Synchronizer</title><link>http://cmorrell.com/open-source/galahad-mailchimp-synchronizer#comment-408609344</link><description>&lt;p&gt;hi Chris, thank you for offering this wonderful script for free!&lt;/p&gt;&lt;p&gt;I've got a question. I'm currently developing a contact management system which also sync with the list in mailchimp. Users can select any contacts in the system, update the details like name/email then click update. Upon updating the local database, i also wish the data in mailchimp to be updated too. &lt;/p&gt;&lt;p&gt;Does your script allows a specific contact in mailchimp to be synced?&lt;/p&gt;&lt;p&gt;Thank you!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">seanngoh</dc:creator><pubDate>Thu, 12 Jan 2012 08:49:51 -0000</pubDate></item><item><title>Re: Zend Framework: Using separate layouts per module</title><link>http://cmorrell.com/webdev/zf/zend-framework-using-separate-layouts-per-module-329#comment-403937427</link><description>&lt;p&gt;Thank you sooo much!!!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">romainb</dc:creator><pubDate>Sat, 07 Jan 2012 12:09:37 -0000</pubDate></item><item><title>Re: Photoshop Layer Styles — Cheetos Text Tutorial Redux</title><link>http://cmorrell.com/graphic-design/photoshop-layer-styles-cheetos-redux-156#comment-376013936</link><description>&lt;p&gt;THANK YOU!!!! I used this tutorial with Elements 2.0.  One step to mention is that in the older version, the text layer needs to be simplified before the tools for Fill and Stroke will be available in the Edit drop down list.  I am creating a logo for our Lego Robotics Team - the Spicy Cheetos. The kids are going to love it!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pebblekeeper</dc:creator><pubDate>Wed, 30 Nov 2011 11:52:21 -0000</pubDate></item><item><title>Re: Mobile App Development for Web Developers</title><link>http://cmorrell.com/misc/mobile-app-development-for-web-developers-696#comment-370690346</link><description>&lt;p&gt;Hi, &lt;/p&gt;&lt;p&gt;Its great video guys and very informative about Mobile App Development. I was looking this type site for long time guys so that I could get information about Mobile App Development for Web Developers.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">web development</dc:creator><pubDate>Wed, 23 Nov 2011 04:36:31 -0000</pubDate></item><item><title>Re: Galahad MailChimp Synchronizer</title><link>http://cmorrell.com/open-source/galahad-mailchimp-synchronizer#comment-367173562</link><description>&lt;p&gt;Hi there, I just got an "API login() Shutdown Notice" from Mailchimp... any chance of an updated version of this script?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ralphioooo</dc:creator><pubDate>Thu, 17 Nov 2011 22:50:00 -0000</pubDate></item><item><title>Re: Debug Bar Query Tracer</title><link>http://cmorrell.com/open-source/wordpress-plugins/debug-bar-query-tracer#comment-367100521</link><description>&lt;p&gt; Doesn't work for me either in WordPress 3.2.1. Doesn't show up until I make the is_super_admin change suggested by Sorpresa428 - but then I just get undefined function get_plugins. I have no idea why that should be undefined...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephen Cronin</dc:creator><pubDate>Thu, 17 Nov 2011 20:51:42 -0000</pubDate></item><item><title>Re: Galahad MailChimp Synchronizer</title><link>http://cmorrell.com/open-source/galahad-mailchimp-synchronizer#comment-354129850</link><description>&lt;p&gt;I figured out using a join (inner in my case)  would fill the array, but subclassing it is still an issue. If I only have one group, say "company", the class should work as-is, the problem arises when multiple groupings are needed, ie "company", "admin", "dept" groups.&lt;/p&gt;&lt;p&gt;Maybe nest another if and implode the $localColumn?? &lt;br&gt; &lt;br&gt;I agree, this is going to need some attention.&lt;/p&gt;&lt;p&gt;Thanks for the reply&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Wed, 02 Nov 2011 15:50:48 -0000</pubDate></item><item><title>Re: Galahad MailChimp Synchronizer</title><link>http://cmorrell.com/open-source/galahad-mailchimp-synchronizer#comment-354109992</link><description>&lt;p&gt;I think you'd have to subclass the Galahad_MailChimp_Synchronizer_Mysqli class, and modify the getUsers() method (in Mysqli.php).  Edit the while loop; it takes your $mergeColumns and adds them to an array to be sent to MailChimp.  Right now it maps columns 1:1 (for example, it maps a "user_email" column in MySQL to the "EMAIL" column in MailChimp).  You need to map your groups, however they're formatted in the database, to the "GROUPINGS" MailChimp column, as described above.  This may mean that you have to add additional MySQL queries in that loop to pull the grouping information out of other tables (as 1:N relationships aren't easy to query in this way).&lt;/p&gt;&lt;p&gt;Hope that helps.  At first I thought it should be pretty easy, but looking at the code again I realize that it's probably a bit of a chore.  Nothing killer, but you probably need to dedicate an hour or two to getting it right.&lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;Chris&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Morrell</dc:creator><pubDate>Wed, 02 Nov 2011 15:18:49 -0000</pubDate></item><item><title>Re: Galahad MailChimp Synchronizer</title><link>http://cmorrell.com/open-source/galahad-mailchimp-synchronizer#comment-354057959</link><description>&lt;p&gt;Hi. Love the script first off.&lt;/p&gt;&lt;p&gt;Second, I would like this funcionality also; are you saying it's currently in there or that we need to alter it in the way above?&lt;/p&gt;&lt;p&gt;And is this the same for teh mysqli version?&lt;/p&gt;&lt;p&gt;Thanks so much.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Wed, 02 Nov 2011 14:00:59 -0000</pubDate></item><item><title>Re: Debug Bar Query Tracer</title><link>http://cmorrell.com/open-source/wordpress-plugins/debug-bar-query-tracer#comment-338299727</link><description>&lt;p&gt;So the problem appears to be on line 44 of Panel.php ... the $Galahad_Query_Tracer_Panel::_renderData($data) expects the $data parameter but as called on line 44 no data is passed. &lt;/p&gt;&lt;p&gt;Change line 44 from this: &lt;br&gt;				$this-&amp;gt;_renderData();&lt;br&gt;To:&lt;br&gt;				$this-&amp;gt;_renderData($data);&lt;/p&gt;&lt;p&gt;And you should be ok. &lt;/p&gt;&lt;p&gt;The undefined index: file error isn't that significant but can be fixed by putting an @ before the $call variable on line 97 of Tracer.php ... i.e. ...&lt;/p&gt;&lt;p&gt;line 97: if (false !== &lt;br&gt;strpos( @$call['file'], $pluginsPath)) {&lt;/p&gt;&lt;p&gt;Hope this helps. Mike&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike Van Winkle</dc:creator><pubDate>Tue, 18 Oct 2011 12:41:46 -0000</pubDate></item><item><title>Re: Debug Bar Query Tracer</title><link>http://cmorrell.com/open-source/wordpress-plugins/debug-bar-query-tracer#comment-323199025</link><description>&lt;p&gt;I did finally get it to work on my local install.  I don't know if it was entirely related to me being on Windows or not, but this is what I ended up having to do:&lt;/p&gt;&lt;p&gt;Initially, set_visible was checking to see if the user was currently in the Dashboard/Admin Panel, which was causing it to be hidden in the frontend where Debug bar actually renders.  Instead, I told it to set it to visible if the current user is super admin:&lt;/p&gt;&lt;p&gt;In Panel.php, changed line 20 to $this-&amp;gt;set_visible(is_super_admin());&lt;/p&gt;&lt;p&gt;Once the tab was visible, I was running into a lot of Undefined index notices.  In Tracer.php, rewrote the getData() function as follows:&lt;/p&gt;&lt;p&gt;public function getData()&lt;br&gt;    {&lt;br&gt;        // Parse if necessary&lt;br&gt;        if (!$this-&amp;gt;_parsed) {&lt;br&gt;            $pluginsPath = WP_CONTENT_DIR . '/plugins/'; // Have to do this due to symlink issue&lt;br&gt;            $rawData = $this-&amp;gt;_data;&lt;br&gt;            $this-&amp;gt;_data = array();&lt;br&gt;            &lt;br&gt;            // Gather data about existing plugins&lt;br&gt;            $rootData = array();&lt;/p&gt;&lt;p&gt;            //make sure the file with the get_plugins function is loaded&lt;br&gt;            if(!function_exists('get_plugins')) {&lt;br&gt;                require(ABSPATH.'wp-admin/includes/plugin.php');&lt;br&gt;            }&lt;br&gt;            &lt;br&gt;            foreach (get_plugins() as $filename =&amp;gt; $data) {&lt;br&gt;                list($root) = explode('/', $filename, 2);&lt;br&gt;                $rootData[$root] = array_change_key_case($data);&lt;br&gt;            }&lt;br&gt;            &lt;br&gt;            // Parse each query's backtrace&lt;br&gt;            foreach ($rawData as $query) {&lt;br&gt;                        &lt;br&gt;                $functionChain = array();&lt;br&gt;                foreach ($query['backtrace'] as $call) {&lt;br&gt;                    // Add to function chain&lt;br&gt;                    $functionChain[] = (isset($call['class']) ? "{$call['class']}::" : '') . $call['function'];&lt;br&gt;                    &lt;br&gt;                    // We've got a plugin&lt;br&gt;                    if (isset($call['file']) &amp;amp;&amp;amp; false !== strpos($call['file'], $pluginsPath)) {&lt;br&gt;                        list($root) = explode('/', plugin_basename($call['file']), 2);&lt;br&gt;                        $file = array_pop(explode('/', plugin_basename($call['file']), 2));&lt;br&gt;                    }&lt;br&gt;                    elseif(isset($call['file'])) {&lt;br&gt;                        $file = $call['file'];&lt;br&gt;                    }&lt;br&gt;                    else {&lt;br&gt;                        $file = '';&lt;br&gt;                    }&lt;br&gt;                    &lt;br&gt;                    // Make sure the array is set up&lt;br&gt;                    if (!isset($this-&amp;gt;_data[$root])) {&lt;br&gt;                        $this-&amp;gt;_data[$root] = $rootData[$root];&lt;br&gt;                        $this-&amp;gt;_data[$root]['backtrace'] = array();&lt;br&gt;                    }&lt;br&gt;                    &lt;br&gt;                    // Make sure the backtrace for this file is set up&lt;br&gt;                    if (!isset($this-&amp;gt;_data[$root]['backtrace'][$file])) {&lt;br&gt;                        $this-&amp;gt;_data[$root]['backtrace'][$file] = array();&lt;br&gt;                    } &lt;br&gt;                    &lt;br&gt;                    // Save parsed data&lt;br&gt;                    $this-&amp;gt;_data[$root]['backtrace'][$file][] = array(&lt;br&gt;                        'line' =&amp;gt; isset($call['line']) ? $call['line'] : '',&lt;br&gt;                        'query' =&amp;gt; $query['query'],&lt;br&gt;                        'function_chain' =&amp;gt; array_reverse($functionChain),&lt;br&gt;                    );&lt;br&gt;                }&lt;br&gt;            }&lt;br&gt;        }&lt;/p&gt;&lt;p&gt;Still not really sure what the root issue was in my install, but maybe someone will find this useful.  :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sorpresa428</dc:creator><pubDate>Thu, 29 Sep 2011 16:14:31 -0000</pubDate></item><item><title>Re: Debug Bar Query Tracer</title><link>http://cmorrell.com/open-source/wordpress-plugins/debug-bar-query-tracer#comment-323151637</link><description>&lt;p&gt;Hmm… I don't have access to a Windows machine right now.  Let me see what I can do.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Morrell</dc:creator><pubDate>Thu, 29 Sep 2011 15:02:37 -0000</pubDate></item></channel></rss>