<?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 xmlns="http://www.w3.org/2005/Atom" rel="http://api.friendfeed.com/2008/03#sup" href="http://disqus.com/sup/all.sup#forumcomments-aa26ba40" type="application/json"/><link>http://cmorrell.disqus.com/</link><description></description><atom:link href="http://cmorrell.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 24 Jan 2012 04:59:58 -0000</lastBuildDate><item><title>Re: Top WordPress Actions/Filters</title><link>http://cmorrell.com/webdev/top-wordpress-actions-filters-901#comment-419424174</link><description>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</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>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;br&gt;&lt;br&gt;I changed your last line to &lt;br&gt;&lt;br&gt;    echo "\nNumber of days: ", $diff-&amp;gt;toValue() / 60 / 60 / 24;&lt;br&gt;&lt;br&gt;Ding!</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>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.</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>hi Chris, thank you for offering this wonderful script for free!&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&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;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Does your script allows a specific contact in mailchimp to be synced?&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Thank you!&lt;br&gt;&lt;br&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>hi Chris, thank you for offering this wonderful script for free!&lt;br&gt;&lt;br&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;br&gt;&lt;br&gt;Does your script allows a specific contact in mailchimp to be synced?&lt;br&gt;&lt;br&gt;Thank you!</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>Thank you sooo much!!!</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>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!</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>Hi, &lt;br&gt;&lt;br&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.</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>Hi there, I just got an "API login() Shutdown Notice" from Mailchimp... any chance of an updated version of this script?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ralph Vugts</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>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...</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>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;br&gt;&lt;br&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;br&gt;&lt;br&gt;Thanks for the reply</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>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;br&gt;&lt;br&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;br&gt;&lt;br&gt;Cheers,&lt;br&gt;&lt;br&gt;Chris</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>Hi. Love the script first off. &lt;br&gt;&lt;br&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;br&gt;&lt;br&gt;And is this the same for teh mysqli version?&lt;br&gt;&lt;br&gt;Thanks so much.</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>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;br&gt;&lt;br&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;br&gt;&lt;br&gt;And you should be ok. &lt;br&gt;&lt;br&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;br&gt;&lt;br&gt;line 97: if (false !== &lt;br&gt;strpos( @$call['file'], $pluginsPath)) {&lt;br&gt;&lt;br&gt;Hope this helps. Mike&lt;br&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>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;br&gt;&lt;br&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;br&gt;&lt;br&gt;In Panel.php, changed line 20 to $this-&amp;gt;set_visible(is_super_admin());&lt;br&gt;&lt;br&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;br&gt;&lt;br&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;br&gt;&lt;br&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;br&gt;&lt;br&gt;Still not really sure what the root issue was in my install, but maybe someone will find this useful.  :)</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>Hmm… I don't have access to a Windows machine right now.  Let me see what I can do.</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><item><title>Re: Debug Bar Query Tracer</title><link>http://cmorrell.com/open-source/wordpress-plugins/debug-bar-query-tracer#comment-323142998</link><description>It's a local install. Windows 7 running XAMPP.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sorpresa428</dc:creator><pubDate>Thu, 29 Sep 2011 14:50:12 -0000</pubDate></item><item><title>Re: Debug Bar Query Tracer</title><link>http://cmorrell.com/open-source/wordpress-plugins/debug-bar-query-tracer#comment-323083004</link><description>I just installed on a fresh copy of Wordpress with the latest version of Debug Bar and it worked just fine.  Are you testing on a machine that you could give me temporary access to?  Or is it a local install?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Morrell</dc:creator><pubDate>Thu, 29 Sep 2011 13:21:01 -0000</pubDate></item><item><title>Re: Debug Bar Query Tracer</title><link>http://cmorrell.com/open-source/wordpress-plugins/debug-bar-query-tracer#comment-323033730</link><description>I actually just installed it along with Debug Bar in a clean Wordpress install, and get the same results.  No Query Tracer tab.  Is there something I have to do besides activating the plugin?  Some value in wp-config.php that needs to be set, maybe?  I've been running it with WP_DEBUG and SAVEQUERIES set to true.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sorpresa428</dc:creator><pubDate>Thu, 29 Sep 2011 12:15:24 -0000</pubDate></item><item><title>Re: Debug Bar Query Tracer</title><link>http://cmorrell.com/open-source/wordpress-plugins/debug-bar-query-tracer#comment-323026910</link><description>No errors on screen or in the logs, and there's plenty of room for the tab in the debug bar.  I've tried uninstalling/deleting and then reinstalling/reactivating, and nothing.  It's like Wordpress doesn't even recognize that it's there.  Other features of Debug Bar work fine, but Query Tracer doesn't show up.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sorpresa428</dc:creator><pubDate>Thu, 29 Sep 2011 12:07:01 -0000</pubDate></item><item><title>Re: Debug Bar Query Tracer</title><link>http://cmorrell.com/open-source/wordpress-plugins/debug-bar-query-tracer#comment-321781889</link><description>First, make sure that the query tracer plugin was successfully activated.  If it gave you a fatal error, check your logs and let me know the error so I can figure out what's going on.  If the plugin is active, make sure your browser window is wide enough to show the Query Tracer tab.  I've noticed that the Debug Bar has no mechanism for handling tab overflow, so if the window isn't wide enough, the tab just won't show.&lt;br&gt;&lt;br&gt;If neither of those ideas work, let me know and I'll look into it further.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Morrell</dc:creator><pubDate>Wed, 28 Sep 2011 10:50:49 -0000</pubDate></item><item><title>Re: Debug Bar Query Tracer</title><link>http://cmorrell.com/open-source/wordpress-plugins/debug-bar-query-tracer#comment-321716911</link><description>Current have this installed on Wordpress 3.2.1 and Debug Bar 0.7,  running PHP 5.3.5.  No Query Tracer panel shows up in the debug bar.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sorpresa428</dc:creator><pubDate>Wed, 28 Sep 2011 09:39:09 -0000</pubDate></item><item><title>Re: Namespacing ACL resources &amp;#038; Galahad_Acl</title><link>http://cmorrell.com/webdev/zf/namespacing-acl-resources-galahad-acl-737#comment-321651595</link><description>Yeah—I understand *why* Zend chose to not get specific when it comes to modeling, but it's definitely frustrating for new users.  My approach basically assumes a "typical" web application, and establishes some useful defaults.&lt;br&gt;&lt;br&gt;Keep in mind that I haven't updated Galahad FE in at least a year, so there may be some issues that have cropped up that aren't addressed.  But it's a good place to start…</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Morrell</dc:creator><pubDate>Wed, 28 Sep 2011 07:20:23 -0000</pubDate></item><item><title>Re: Namespacing ACL resources &amp;#038; Galahad_Acl</title><link>http://cmorrell.com/webdev/zf/namespacing-acl-resources-galahad-acl-737#comment-321554517</link><description>This looks good... Integrating Zend_Acl with my models is where I am at &lt;br&gt;in my project development at the moment, and I must say it does not seem&lt;br&gt; to be the easiest subject to pick up. &lt;br&gt;&lt;br&gt;Originally I went for a much more basic approach where I was simply &lt;br&gt;running some checks upon fetchAll() etc, by abstracting those concrete &lt;br&gt;methods. Then I thought... there must be a Zend way of doing this... &lt;br&gt;slowly but surely I am getting the idea.&lt;br&gt;&lt;br&gt;The Zend documentation really skims over everything in a way that does &lt;br&gt;not really help anyone just beginning to use a particular component, for&lt;br&gt; example initially I was under the impression that resources were &lt;br&gt;explicitly meant to be controllers and actions!!, now I realise that &lt;br&gt;passing a controller name was just a means to identify a resource.. a &lt;br&gt;string and nothing more... thank god for blogs like yours that explain &lt;br&gt;things alot better and offer a different approach to solving problems.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jay Francis</dc:creator><pubDate>Wed, 28 Sep 2011 02:07:07 -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-320808822</link><description>If you have absolutely NO experience programming, and would like to develop iPhone apps, I'd say you should lean Objective-C from the start.  If you have some experience with HTML and Javascript, I think Titanium is a great cross-platform solution to start on.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Morrell</dc:creator><pubDate>Tue, 27 Sep 2011 07:44:53 -0000</pubDate></item></channel></rss>
