<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for prodevtips</title><link>http://disqus.com/by/prodevtips/</link><description></description><atom:link href="http://disqus.com/prodevtips/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 24 Sep 2008 00:28:51 -0000</lastBuildDate><item><title>Re: DQL recipes</title><link>http://www.prodevtips.com/2008/09/23/dql-recipes/#comment-2555881</link><description>&lt;p&gt;No Jani, I just used whatever popped up in my head first. Thanks for the input!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Wed, 24 Sep 2008 00:28:51 -0000</pubDate></item><item><title>Re: AMFPHP in Flash CS3 with AS3 - jQuery.post style</title><link>http://www.prodevtips.com/2008/07/28/amfphp-in-flash-cs3-with-as3-jquerypost-style/#comment-2440261</link><description>&lt;p&gt;Thanks for the input Josh, keep up the good work!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Fri, 19 Sep 2008 09:08:16 -0000</pubDate></item><item><title>Re: The worst PHP code in the world</title><link>http://www.prodevtips.com/2008/02/25/the-worst-php-code-in-the-world/#comment-2397876</link><description>&lt;p&gt;I wish it was just bullshit but it's not. The cleanup job is ongoing as we speak. The DB was 1.5GB at the time of writing, I don't even want to know what it is now...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Wed, 17 Sep 2008 10:24:40 -0000</pubDate></item><item><title>Re: jQuery JSON with PHP json_encode and json_decode</title><link>http://www.prodevtips.com/2008/08/15/jquery-json-with-php-json_encode-and-json_decode/#comment-2276790</link><description>&lt;p&gt;I double checked, I'm using exactly the same code as posted above and it works. So something else is messing up for you, some global setting, not the newest jQuery version etc.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Wed, 10 Sep 2008 22:32:31 -0000</pubDate></item><item><title>Re: Big Chinese site is stealing tutorials</title><link>http://www.prodevtips.com/2008/08/27/big-chinese-site-is-stealing-tutorials/#comment-1884387</link><description>&lt;p&gt;It seems like they parse big tutorial sites like &lt;a href="http://tutorialized.com" rel="nofollow noopener" target="_blank" title="tutorialized.com"&gt;tutorialized.com&lt;/a&gt; to get their content. I regularly submit content to for instance tutorialized. If your stuff is on some of these sites it will probably only be a matter of time before you too end up being ripped.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Wed, 27 Aug 2008 22:51:09 -0000</pubDate></item><item><title>Re: A Note on Regular Expressions</title><link>http://www.prodevtips.com/2008/08/21/a-note-on-regular-expressions/#comment-1767991</link><description>&lt;p&gt;Thanks Piers for the input and clarifications!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Sat, 23 Aug 2008 04:00:00 -0000</pubDate></item><item><title>Re: Joomla 1.5 Advanced Registration</title><link>http://www.prodevtips.com/2007/10/18/joomla-advanced-registration/#comment-1716907</link><description>&lt;p&gt;The problem then is that if you upgrade you might accidentally overwrite your modified default version, if you are not careful.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Thu, 21 Aug 2008 10:37:30 -0000</pubDate></item><item><title>Re: Expandable sidebar in Wordpress with jQuery</title><link>http://www.prodevtips.com/2008/08/12/expandable-sidebar-in-wordpress-with-jquery/#comment-1494447</link><description>&lt;p&gt;@semperfried76 : You need to include relevant scripts, usually it's jquery of course and one or more plugin scripts, in this case it's just jquery I think. For download and more info please check &lt;a href="http://jquery.com" rel="nofollow noopener" target="_blank" title="http://jquery.com"&gt;http://jquery.com&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Fri, 15 Aug 2008 22:55:11 -0000</pubDate></item><item><title>Re: Joomla 1.5 Advanced Registration</title><link>http://www.prodevtips.com/2007/10/18/joomla-advanced-registration/#comment-1494236</link><description>&lt;p&gt;Another update from the mailbox, the same guy who contacted me found a better solution: &lt;a href="http://forum.joomla.org/viewtopic.php?f=304&amp;amp;t;=278091" rel="nofollow noopener" target="_blank" title="http://forum.joomla.org/viewtopic.php?f=304&amp;amp;t;=278091"&gt;http://forum.joomla.org/vie...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Fri, 15 Aug 2008 09:38:10 -0000</pubDate></item><item><title>Re: Joomla 1.5 Advanced Registration</title><link>http://www.prodevtips.com/2007/10/18/joomla-advanced-registration/#comment-1494235</link><description>&lt;p&gt;Just got this in my email:&lt;/p&gt;&lt;p&gt;"Super article on extending the JUser API. I have a quick question about this though. When I click on a 'protected' link I now get my extended module and the com_user component loaded in the main window. Is there a way to redirect the user to the extended component?"&lt;/p&gt;&lt;p&gt;My answer:&lt;br&gt;Unfortunately a long time has passed since I wrote that article, actually we have decided to abandon Joomla in favor of MODx during this period. I can't recall much...&lt;/p&gt;&lt;p&gt;You probably have two options, "hardchanging" the  relevant db entry for whatever module is generating the link in question (that could be a problem if you upgrade) or simply copying the module scripts/database info and renaming them as something else, for instance ext_ like I did (upgrade safe). The only change you then make in your new modules is that link.&lt;/p&gt;&lt;p&gt;In fact I remember now that this is exactly what I did with the login module, simply copy pasted with new name and set it up to redirect to the ext_user component instead.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Fri, 15 Aug 2008 07:56:15 -0000</pubDate></item><item><title>Re: Language problems and solutions</title><link>http://www.prodevtips.com/2007/12/18/language-problems-and-solutions/#comment-1494296</link><description>&lt;p&gt;@shiby, try the following resources:&lt;br&gt;&lt;a href="http://www.userlocal.com/tips/localesettings.php" rel="nofollow noopener" target="_blank" title="http://www.userlocal.com/tips/localesettings.php"&gt;http://www.userlocal.com/ti...&lt;/a&gt;&lt;br&gt;&lt;a href="http://www.linux.com/feature/53781" rel="nofollow noopener" target="_blank" title="http://www.linux.com/feature/53781"&gt;http://www.linux.com/featur...&lt;/a&gt;&lt;br&gt;&lt;a href="http://linux.about.com/library/cmd/blcmdl5_locale.htm" rel="nofollow noopener" target="_blank" title="http://linux.about.com/library/cmd/blcmdl5_locale.htm"&gt;http://linux.about.com/libr...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Mon, 11 Aug 2008 12:43:44 -0000</pubDate></item><item><title>Re: PHP Doctrine introduction for dummies</title><link>http://www.prodevtips.com/2008/08/05/doctrine-for-dummies/#comment-1494436</link><description>&lt;p&gt;@Guilherme, thanks for the input. Sure things could probably be optimized but the look of the above code is purely for educational purposes, not a best practices example for real world stuff.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Mon, 11 Aug 2008 09:20:06 -0000</pubDate></item><item><title>Re: Smarty and Doctrine combination</title><link>http://www.prodevtips.com/2008/08/08/smarty-and-doctrine-combination/#comment-1494444</link><description>&lt;p&gt;The documentation is very sparse, I see no other way of learning this than the API docs and that's not good enough. I can't find any docs describing how to do multi language stuff and registering objects like I do in this tutorial. Maybe it works like in Smarty but then again maybe it doesn't. I'll wait until there is a Dwoo CHM like Smarty has.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Sat, 09 Aug 2008 12:30:37 -0000</pubDate></item><item><title>Re: Smarty and Doctrine combination</title><link>http://www.prodevtips.com/2008/08/08/smarty-and-doctrine-combination/#comment-1494442</link><description>&lt;p&gt;I'm checking out Dwoo now, looks good! I think I have try this one out.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Sat, 09 Aug 2008 00:12:33 -0000</pubDate></item><item><title>Re: PHP Doctrine introduction for dummies</title><link>http://www.prodevtips.com/2008/08/05/doctrine-for-dummies/#comment-1494432</link><description>&lt;p&gt;OK so that '%X OR Y%' bug is a bummer, it makes you wonder what else lurks in there?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Wed, 06 Aug 2008 23:30:59 -0000</pubDate></item><item><title>Re: PHP Doctrine introduction for dummies</title><link>http://www.prodevtips.com/2008/08/05/doctrine-for-dummies/#comment-1494438</link><description>&lt;p&gt;Der Tag, would you like to expand on that, feed us noobs a little more info maybe?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Wed, 06 Aug 2008 08:32:29 -0000</pubDate></item><item><title>Re: Joomla 1.5 Advanced Registration</title><link>http://www.prodevtips.com/2007/10/18/joomla-advanced-registration/#comment-1494234</link><description>&lt;p&gt;Good question, from what I can remember I think I simply rerouted the process to my new custom ext_user table, I think I also let the component save to the normal user table, at least #6 seems to indicate this. This process has probably not been changed at all, that means that you might have to basically change the original component which is a mess because if you upgrade your Joomla you might overwrite your changes so try and implement this in the ext code too.&lt;/p&gt;&lt;p&gt;You simply have to make sure that the stuff you want to implement is saved to the proper tables. Since you have to work with the original user table and/or other tables that reference the user table the stuff will probably have to be implemented as an update after the main insert has been made, try and see if you can hook into the process afterwards somehow.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Mon, 21 Jul 2008 03:49:13 -0000</pubDate></item><item><title>Re: Joomla 1.5 template design with YAML</title><link>http://www.prodevtips.com/2007/10/24/joomla-template-design-with-yaml/#comment-1494244</link><description>&lt;p&gt;Sorry but I don't design at all, sometimes I have to implement Imageready output into a div based layout though. Not an enviable position to be in...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Mon, 07 Jul 2008 04:47:18 -0000</pubDate></item><item><title>Re: Extending Zend DB Table</title><link>http://www.prodevtips.com/2008/06/19/extending-zend-db-table/#comment-1494414</link><description>&lt;p&gt;So I just checked find(), seems like it will always return a rowset whereas fetchOne will return a row or even a 1d array, depending on the arguments, hence the shortcut is still somewhat valid.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Wed, 02 Jul 2008 01:29:54 -0000</pubDate></item><item><title>Re: Comparing TYPO3, Joomla, Drupal and MODx</title><link>http://www.prodevtips.com/2008/03/15/comparing-typo3-joomla-drupal-and-modx/#comment-1494395</link><description>&lt;p&gt;Jay: There is only so much space and I consider popular posts, recent comments and latest posts more important. An alternative would be to put this stuff below the ads to the left which would make for a MEGA menu, maybe not so nice.&lt;/p&gt;&lt;p&gt;I might try to put categories to the right though but that might break the 1024*768 compatibility which would be a bummer, anyway I'll look into it...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Sun, 29 Jun 2008 00:00:47 -0000</pubDate></item><item><title>Re: Fluent Arrays and Strings in PHP</title><link>http://www.prodevtips.com/2008/06/23/fluent-arrays-and-strings-in-php/#comment-1494420</link><description>&lt;p&gt;Learning the stuff should be easy easier than using straight PHP anyway, since when you create something like this you're bound to wrap some pretty horrible core names with more intuitive ones.&lt;/p&gt;&lt;p&gt;Also when using apply() et al with this little library all the arguments will be evaluated in the same order as the core functions. Plus often there are good defaults being passed, with a fluent library I believe you will spend a lot less time checking the PHP function reference which translates into productivity.&lt;/p&gt;&lt;p&gt;A agree totally with you on the speed though, there are a lot of assignments etc going on back and forth. One simply has to decide when to not use it for fear of bad performance. At the moment I'm creating a back end admin system where the load will not be very big, therefore performance will not be an issue this time.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Fri, 27 Jun 2008 01:14:36 -0000</pubDate></item><item><title>Re: Fluent Arrays and Strings in PHP</title><link>http://www.prodevtips.com/2008/06/23/fluent-arrays-and-strings-in-php/#comment-1494418</link><description>&lt;p&gt;It's funny, I never really understood the whole evil vs not evil debate regarding various aspects of various environments/languages, arguably PHP has more of these things than any language. Regardless of which ever of these aspects you use the evilness of it will depend on how you use it, usually sloppily or properly. Although I am hard pressed to think of a situation where register globals is a cool thing...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Wed, 25 Jun 2008 22:39:42 -0000</pubDate></item><item><title>Re: Fluent Arrays and Strings in PHP</title><link>http://www.prodevtips.com/2008/06/23/fluent-arrays-and-strings-in-php/#comment-1494416</link><description>&lt;p&gt;You little... :)  I read the comments over there but though there was a lot of speculation it never got clear whether it was a joke or not.&lt;/p&gt;&lt;p&gt;1.) The "meta language" you are referring to is just executable PHP with placeholders, unfortunately a necessary evil, however it shouldn't be too hard to manage, the hardest part is simply keeping track of how some arguments work in some places. Making a manual for something like this wouldn't be too much work for the most part.&lt;/p&gt;&lt;p&gt;2.) The whole point is that it simply isn't just another way of doing the same thing, it's a better, smaller, clearer way of doing the same thing (as opposed to your joke). Do you really think jQuery and Ruby would be as popular as they are if it wasn't super easy to string executions together in this way?&lt;/p&gt;&lt;p&gt;Personally I hate having to do pointless assignments just to keep my code readable. To my knowledge only Lisp manages to pull off the whole func(func(arg)) thing in a graceful way, certainly not PHP...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Wed, 25 Jun 2008 06:53:39 -0000</pubDate></item><item><title>Re: Extending Zend DB Table</title><link>http://www.prodevtips.com/2008/06/19/extending-zend-db-table/#comment-1494413</link><description>&lt;p&gt;1.) Too lazy at the moment.&lt;br&gt;2.) Thanks for the tip, I think I've actually used the find() function before, shows how good my memory is...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Wed, 25 Jun 2008 06:38:17 -0000</pubDate></item><item><title>Re: Joomla 1.5 Advanced Registration</title><link>http://www.prodevtips.com/2007/10/18/joomla-advanced-registration/#comment-1494231</link><description>&lt;p&gt;akmal: I have no idea, you have to debug it yourself since last time I used it I had no problems, check that all the config stuff is correct, passwords to smtp and sms servers if you are using these features. If not then I don't know...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henrik</dc:creator><pubDate>Tue, 24 Jun 2008 12:37:46 -0000</pubDate></item></channel></rss>