<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Skidoosh</title> <link>http://www.skidoosh.co.uk</link> <description>Skidoosh - PHP, Python, Django, Ruby on Rails Web Developer in North Wales</description> <lastBuildDate>Sun, 11 Mar 2012 20:21:45 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/skidoosh" /><feedburner:info uri="skidoosh" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/</creativeCommons:license><image><link>http://creativecommons.org/licenses/by-sa/3.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><feedburner:emailServiceId>skidoosh</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item><title>Rails, the mass assignment exploit, devs and GitHub. Who’s to blame?</title><link>http://feedproxy.google.com/~r/skidoosh/~3/d9WLYXGD6dg/</link> <comments>http://www.skidoosh.co.uk/security/rails-the-mass-assignment-exploit-devs-and-github-whos-to-blame/#comments</comments> <pubDate>Sun, 11 Mar 2012 19:59:18 +0000</pubDate> <dc:creator>Glyn Mooney</dc:creator> <category><![CDATA[Ruby on Rails]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[github]]></category> <category><![CDATA[rails]]></category><guid isPermaLink="false">http://www.skidoosh.co.uk/?p=239</guid> <description><![CDATA[With the recent rails security concerns raging through the interwebs I thought I&#8217;d put my 2p in about what&#8217;s been said (not the mud-slinging from the trolls trying to get a rise). Firstly, who&#8217;s to blame. In short, nobody and everybody. I&#8217;d like to start with a comparison application, postfix. Postfix makes one assumption &#8220;I&#8217;m [...]]]></description> <content:encoded><![CDATA[<p>With the recent rails security concerns raging through the interwebs I thought I&#8217;d put my 2p in about what&#8217;s been said (not the mud-slinging from the trolls trying to get a rise).</p><p>Firstly, who&#8217;s to blame. In short, nobody and everybody. I&#8217;d like to start with a comparison application, postfix. Postfix makes one assumption &#8220;I&#8217;m in a hostile environment&#8221;. Pretty reasonable assumption in my opinion, it&#8217;s a service on a network that accepts user input. Ruby on Rails is a web framework that is available on a network in app form as a service and accepts user input.</p><p>I know postfix is an application and rails is a framework but it&#8217;s a fair comparison. Rails on this particular point, this particular point being the <a href="http://blog.mhartl.com/2008/09/21/mass-assignment-in-rails-applications/">mass-assignment exploit</a> (which is compatible in scale and severity to register globals in PHP) raised by <a href="http://homakov.blogspot.com/">@hamakov</a> over at GitHub <a href="https://github.com/rails/rails/issues/5228#issuecomment-4313545">here</a>(<em>where everyone was warned</em>). But the rails team chose to allow all input to be accepted by default and left the developer with two options, blacklist or whitelist data being passed to the model. Rails won&#8217;t even complain if you choose to leave your application wide open.</p><p>But still the rails team provided the method to secure your models, therefor not their fault. But still I&#8217;d hope for future releases they blacklist all input by default and leave it to the developer to open it rather than close it. It&#8217;s a pain in the back-side but it&#8217;s only a few lines of code.</p><p>Now on to the developers. Most devs as stated in the bug report, are low to medium level and may not be aware of this issue, so again, not their fault. This being said I&#8217;d like to think in situations like this, I&#8217;d be protected by the framework from my own stupidity, as even the best of us make epic mistakes that even tests can&#8217;t protect us from.</p><p>Now on to GitHub. They were warned of the issue but left it until @hamakov fired a shot across their bow, and then fixed it, in an hour. This issue was raised three days prior to the &#8220;statement&#8221; by @hamakov.</p><p>Lots of people are praising them for there response to this issue, but, this is an amazing service with lots of users who trust them unequivocally. And GitHub have been on the first to roll out patches to protect users to issues as large as a flaw in HTTP itself. So why not this time?</p><p>Just incase anyone interpreters this as poo slinging, it&#8217;s not. It&#8217;s just my thoughts on the matter now the dust has settled. I&#8217;d really like to hear what the rest of you think?</p> <img src="http://feeds.feedburner.com/~r/skidoosh/~4/d9WLYXGD6dg" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.skidoosh.co.uk/security/rails-the-mass-assignment-exploit-devs-and-github-whos-to-blame/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.skidoosh.co.uk/security/rails-the-mass-assignment-exploit-devs-and-github-whos-to-blame/</feedburner:origLink></item> <item><title>The Best Software License I’ve Ever, Ever Seen!</title><link>http://feedproxy.google.com/~r/skidoosh/~3/MspNw-ivbpQ/</link> <comments>http://www.skidoosh.co.uk/software/the-best-software-license-ever/#comments</comments> <pubDate>Sun, 15 May 2011 10:19:06 +0000</pubDate> <dc:creator>Glyn Mooney</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[funny]]></category> <category><![CDATA[github]]></category> <category><![CDATA[license]]></category><guid isPermaLink="false">http://www.skidoosh.co.uk/?p=221</guid> <description><![CDATA[I just saw this over on the Github’s and had to share it with the rest of the world!]]></description> <content:encoded><![CDATA[<p>I just saw this over on the Github&#8217;s and had to share it with the rest of the world!</p><div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE<br /> Version 2, December 2004 <br /> <br /> Copyright (C) {the year} {your name}<br /> Everyone is permitted to copy and distribute verbatim or modified<br /> copies of this license document, and changing it is allowed as long<br /> as the name is changed.<br /> <br /> DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE<br /> TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION<br /> <br /> 0. You just DO WHAT THE FUCK YOU WANT TO.</div></div><p>Hope this&#8230; Helps :D</p> <img src="http://feeds.feedburner.com/~r/skidoosh/~4/MspNw-ivbpQ" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.skidoosh.co.uk/software/the-best-software-license-ever/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.skidoosh.co.uk/software/the-best-software-license-ever/</feedburner:origLink></item> <item><title>Who you gonna call? Rails Hotline!</title><link>http://feedproxy.google.com/~r/skidoosh/~3/xMjPmmQilNc/</link> <comments>http://www.skidoosh.co.uk/ruby-on-rails/who-you-gonna-call-rails-hotline/#comments</comments> <pubDate>Thu, 28 Apr 2011 17:22:31 +0000</pubDate> <dc:creator>Glyn Mooney</dc:creator> <category><![CDATA[Ruby on Rails]]></category><guid isPermaLink="false">http://www.skidoosh.co.uk/?p=215</guid> <description><![CDATA[When there's something strange in your ruby app. Who you gonna call? Rails Hotline! Yes! A Ruby on Rails hotline! For free!?!]]></description> <content:encoded><![CDATA[<p>When there&#8217;s something strange in your ruby app. Who you gonna call? Rails Hotline! Yes! A Ruby on Rails hotline! For free!</p><p>If you&#8217;ve ever been stuck in a rut and Stackoverflow just doesn&#8217;t cut it, now you have a free community led support line to call to help rid you of your Rails woes. The <a title="Rails Hotline" href="http://www.railshotline.com/">Rails Hotline</a> is a free phone support line, staffed by members of the Rails community to help you out when you&#8217;re in a pickle.</p><p id="number">There are a few members on at a time so don&#8217;t go nuts! So rather than calling the Samaritans when you&#8217;re on the edge of sanity, call (877) 817-4190!</p><p>Another good reason to love open source! Unlike this guy <a title="Stackoverflow answer from an open source hater" href="http://bit.ly/iJB0sG">http://bit.ly/iJB0sG</a></p> <img src="http://feeds.feedburner.com/~r/skidoosh/~4/xMjPmmQilNc" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.skidoosh.co.uk/ruby-on-rails/who-you-gonna-call-rails-hotline/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://www.skidoosh.co.uk/ruby-on-rails/who-you-gonna-call-rails-hotline/</feedburner:origLink></item> <item><title>Remove the natural padding from images (img) with CSS</title><link>http://feedproxy.google.com/~r/skidoosh/~3/z7caPY1WSPQ/</link> <comments>http://www.skidoosh.co.uk/css/remove-the-natural-padding-from-images-img-with-css/#comments</comments> <pubDate>Wed, 27 Apr 2011 19:16:38 +0000</pubDate> <dc:creator>Glyn Mooney</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Images]]></category> <category><![CDATA[IMG]]></category><guid isPermaLink="false">http://www.skidoosh.co.uk/?p=205</guid> <description><![CDATA[Time for another CSS quick tip! I see this question crop up a lot over at stackoverflow, and it's to do with the natural padding associated with the <img> tag. If you don't use a good CSS reset you'll notice that all your images have a four pixel padding at the bottom of them. This is how to remove it!]]></description> <content:encoded><![CDATA[<p>Time for another CSS quick tip! I see this question crop up a lot over at <a title="Stackoverflow" href="http://stackoverflow.com/">stackoverflow</a>, and it&#8217;s to do with the natural padding associated with the &lt;img&gt; tag. If you don&#8217;t use a good CSS reset you&#8217;ll notice that all your images have a four pixel padding at the bottom of them. This is how to remove it:</p><div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">img { vertical-align: top /* can be baseline */ }</div></div><p>Hope this helps!</p> <img src="http://feeds.feedburner.com/~r/skidoosh/~4/z7caPY1WSPQ" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.skidoosh.co.uk/css/remove-the-natural-padding-from-images-img-with-css/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.skidoosh.co.uk/css/remove-the-natural-padding-from-images-img-with-css/</feedburner:origLink></item> <item><title>Django 1.3 Released</title><link>http://feedproxy.google.com/~r/skidoosh/~3/2EoIzOpV9b4/</link> <comments>http://www.skidoosh.co.uk/django/django-1-3-released/#comments</comments> <pubDate>Wed, 23 Mar 2011 18:14:14 +0000</pubDate> <dc:creator>Glyn Mooney</dc:creator> <category><![CDATA[Django]]></category> <category><![CDATA[Django 1.3]]></category><guid isPermaLink="false">http://www.skidoosh.co.uk/?p=190</guid> <description><![CDATA[As you may have have discovered the eagerly awaited iteration of Django 1.3 has finally been released. The major focus of this release has been long standing feature requests, bug fixes and additions to current features. So without any further ado, lets run through them.]]></description> <content:encoded><![CDATA[<p>As you may have have discovered the eagerly awaited iteration of Django 1.3 has finally been released. The major focus of this release has been long standing feature requests, bug fixes and additions to current features. So without any further ado, lets run through them.</p><h3>New Django 1.3 Features</h3><ul><li>Class based views</li><li>Framework support of the Python logging module</li><li>A new contribution for handling static media (images, javascript, css, etc.) now with netter support for CDN delivery out of the box</li><li>Support for the Python 2.7 unittest2</li><li>If your Python install is version 2.5 and above you&#8217;ll have access to the new transaction management functionality, similar to the .NET NHibernate</li><li>Configurable delete cascade functionality like Ruby on Rails Activerecord</li><li>Improvements to the current template tags. The load tag supports importing and loading from libraries, include allows the inclusion of extra context variables and the exclusion of the current context</li><li>A new TemplateResponse class to allow HTTP Responses to be withheld and changed later in the response process</li><li>An improved caching infrastructure</li><li>Support to grant permissions on inactive users. This will be useful if you require a user to access account information after authentication, or you just want to show them the account is awaiting activation</li><li>Django 1.3 ships with the GeoDjango test suite</li><li>MEDIA_URL and STATIC_URL settings must end with a slash! This is important if you intend to upgrade</li></ul><p>To get the full list of changes (including the all important deprecation list) head over to the change list in the Django 1.3 documentation <a title="Django 1.3 Change List" href="http://docs.djangoproject.com/en/dev/releases/1.3/">http://docs.djangoproject.com/en/dev/releases/1.3/</a></p> <img src="http://feeds.feedburner.com/~r/skidoosh/~4/2EoIzOpV9b4" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.skidoosh.co.uk/django/django-1-3-released/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.skidoosh.co.uk/django/django-1-3-released/</feedburner:origLink></item> <item><title>My Top Web Developer Podcasts</title><link>http://feedproxy.google.com/~r/skidoosh/~3/OJXOgAAOohs/</link> <comments>http://www.skidoosh.co.uk/html/my-top-web-developer-podcasts/#comments</comments> <pubDate>Tue, 22 Mar 2011 10:02:27 +0000</pubDate> <dc:creator>Glyn Mooney</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Django]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[HTML5]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Podcasts]]></category> <category><![CDATA[Python]]></category> <category><![CDATA[Roundups]]></category> <category><![CDATA[Ruby]]></category> <category><![CDATA[Web Development]]></category><guid isPermaLink="false">http://www.skidoosh.co.uk/?p=170</guid> <description><![CDATA[In this post, I'll be listing all the best podcasts from far and wide on the topics of web and programming. Enjoy! ]]></description> <content:encoded><![CDATA[<h3><strong><a title="The Ruby Show" href="http://rubyshow.com/">The Ruby Show (Ruby General)</a></strong></h3><p>Presented by <a href="http://twitter.com/peterc">Peter Cooper</a> (of <a title="Beginning Ruby Book" href="http://www.amazon.co.uk/gp/product/1430223634?ie=UTF8">Beginning Ruby</a> fame) and <a href="http://twitter.com/jseifer">Jason Seifer</a>, bringing you the latest Ruby and related news on a weekly basis. Head over to <a title="The Ruby Show" href="http://rubyshow.com/">http://rubyshow.com/</a> to find out more!</p><h3><a title="From Python Import Podcast" href="http://frompythonimportpodcast.com/">From Python Import Podcast (Python General)</a></h3><p>Presented by <a title="Chris' Blog" href="http://unquietdesperation.com/">Chris Miller</a>, <a title="Dave's Blog" href="http://traceback.org/">David Stanek</a>, <a title="Mike's Blog" href="http://mike.crute.org/blog/">Mike Crute</a>, <a title="Mike P's Blog" href="http://pirnat.com/mike/">Mike Pirnat,</a> <a title="Ben Smiths Blog" href="http://just-another.net">Ben Smith</a>, <a title="Dan's Website" href="http://meatballhat.com">Dan Buch</a>. This is a less frequent podcast, containing all best Python news, event, tools and rants from the guys. Check out <a title="From Python Import Podcast" href="http://frompythonimportpodcast.com/">http://frompythonimportpodcast.com/</a> for more information.</p><h3><a title="Think Vitamin Radio" href="http://thinkvitamin.com/podcast/">Think Vitamin Radio (Web General)</a></h3><p>From the people who brought us <a title="Carsonified" href="http://carsonified.com/">Carsonified</a> and <a title="Think Vitamin" href="http://thinkvitamin.com/">Think Vitamin</a>, Keir Whitaker, Ryan Carson and Mike Kus band together to bring news, events and interesting information to the masses! Go to <a title="Think Vitamin Radio" href="http://thinkvitamin.com/podcast/">http://thinkvitamin.com/podcast/</a> for the full story.<a title="Carsonified" href="http://carsonified.com/"></a></p><h3><a title="The Big Web Show on 5by5" href="http://5by5.tv/bigwebshow">The Big Web Show (Web and Other)</a></h3><p>Hosted by <a title="Hivelogic" href="http://hivelogic.com/">Dan Benjamin</a> and <a title="Zelman.com" href="http://zeldman.com/">Jeffery Zeldman</a>, The Big Web Show is all about the web and other areas of interest. It&#8217;s just one of the many great shows brought to us from <a title="5by5" href="http://5by5.tv/">5by5</a> (The Ruby Show being one of these). Just pop over to <a title="The Big Web Show" href="http://5by5.tv/bigwebshow">http://5by5.tv/bigwebshow</a> or <a title="5by5" href="http://5by5.tv/">http://5by5.tv/</a> to see all the other great shows they have!</p><h3><a title="Sitepoint Podcast" href="http://blogs.sitepoint.com/category/podcast/">Sitepoint (Web General)</a></h3><p>This is a great (weekly) show hosted by <a title="Kevin Yanks Profile on Sitepoint" href="http://blogs.sitepoint.com/author/kevin-yank/">Kevin Yank</a> and <a title="Louis Profile on Sitepoint" href="http://blogs.sitepoint.com/author/louis-simoneau/">Louis Simoneau</a> and is full of the latest news, trends, features and things you didn&#8217;t know you didn&#8217;t know! A must listen in my humble opinion! <a title="Sitepoint Podcast Blog" href="http://blogs.sitepoint.com/category/podcast/">http://blogs.sitepoint.com/category/podcast/</a>.</p><h3><a title="Hanselminutes " href="http://www.hanselminutes.com/">Hanselminutes (.NET and Web General)</a></h3><p>I really enjoy this one. Hosted by <a title="http://www.hanselminutes.com/" href="http://www.hanselminutes.com/">Scott Hanselman</a> of .NET fame. The show is full of mainly .NET topics, but does spill over to some nice web orientated show&#8217;s. The main thing I like about this show is, Scott asks really good questions! By this I mean as if he knew nothing so you learn a lot from this one! Head over there now for more info <a title="Hanselminutes" href="http://www.hanselminutes.com/">http://www.hanselminutes.com/</a>.</p><h3><a title="Railscasts" href="http://railscasts.com/">Railscasts (Ruby on Rails)</a></h3><p>This is a weekly <em>video podcast</em> of Ruby on Rails specific tutorials and how to&#8217;s. This is a great way to get started in the rails world to! <a title="Rails Casts Video" href="http://railscasts.com/">http://railscasts.com/</a> or in plain text tutorials at <a title="ASCIICasts" href="http://asciicasts.com/">http://asciicasts.com/</a>.</p><h3><a title="Workers of the Web" href="http://workersoftheweb.com/">Workers of the Web (Web and other wonderful stuff)</a></h3><p>This is my favorite! A little more infrequent (2 weeks to a month at a time), the show is jam packed full of news, tips events and other eye candy! Head over to <a title="Workers of the Web" href="http://workersoftheweb.com/">http://workersoftheweb.com/</a> to see a treasure trove of Awsomesauce!</p> <img src="http://feeds.feedburner.com/~r/skidoosh/~4/OJXOgAAOohs" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.skidoosh.co.uk/html/my-top-web-developer-podcasts/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.skidoosh.co.uk/html/my-top-web-developer-podcasts/</feedburner:origLink></item> <item><title>WordPress JPEG Thumbnail Image Quality Setting and Adjustment</title><link>http://feedproxy.google.com/~r/skidoosh/~3/NLW5fgTAYIs/</link> <comments>http://www.skidoosh.co.uk/php/wordpress-jpeg-thumbnail-image-quality-setting-and-adjustment/#comments</comments> <pubDate>Mon, 21 Mar 2011 15:18:21 +0000</pubDate> <dc:creator>Glyn Mooney</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Snippets]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[PHP 5]]></category> <category><![CDATA[Snippet]]></category> <category><![CDATA[wordpress]]></category><guid isPermaLink="false">http://www.skidoosh.co.uk/?p=164</guid> <description><![CDATA[Well, I had to do some digging around deep in the WordPress internals for this one! If you want to set the image quality of the thumbnails from the “the_post_thumbnail” then this is the post for you!]]></description> <content:encoded><![CDATA[<p>Well, I had to do some digging around deep in the WordPress internals for this one! If you want to set the image quality of the thumbnails from the &#8220;the_post_thumbnail&#8221; function/template tag add the following line to your functions.php file to override the default value of 90%:</p><div class="codecolorer-container php twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jpeg_quality'</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$arg</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">return</span> <span style="color: #cc66cc;">100</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div><p>On some production environments you may get a &#8220;unexpected T_FUNCTION&#8221; error (older versions of PHP 5 don&#8217;t like anonymous functions). In this situation go for the following:</p><div class="codecolorer-container php twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> jpeg_quality_callback<span style="color: #009900;">&#40;</span><span style="color: #000088;">$arg</span><span style="color: #009900;">&#41;</span><br /> <span style="color: #009900;">&#123;</span><br /> <span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span><span style="color: #cc66cc;">100</span><span style="color: #339933;">;</span><br /> <span style="color: #009900;">&#125;</span><br /> <br /> add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jpeg_quality'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'jpeg_quality_callback'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div><p>Here I&#8217;m setting the quality to 100%, but you can set it to whatever value suits your project. You have to set the &#8220;$arg&#8221; to swallow the argument that get&#8217;s passed to the original function in the &#8220;image_resize&#8221; function in the media.php file.</p><p>Hope this helps! Leave a comment if it did!</p> <img src="http://feeds.feedburner.com/~r/skidoosh/~4/NLW5fgTAYIs" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.skidoosh.co.uk/php/wordpress-jpeg-thumbnail-image-quality-setting-and-adjustment/feed/</wfw:commentRss> <slash:comments>30</slash:comments> <feedburner:origLink>http://www.skidoosh.co.uk/php/wordpress-jpeg-thumbnail-image-quality-setting-and-adjustment/</feedburner:origLink></item> <item><title>Mozillas Web O(‘pen) Wonder</title><link>http://feedproxy.google.com/~r/skidoosh/~3/n1NilOJ-Meg/</link> <comments>http://www.skidoosh.co.uk/html/mozillas-web-open-wonder/#comments</comments> <pubDate>Fri, 18 Mar 2011 11:19:28 +0000</pubDate> <dc:creator>Glyn Mooney</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[HTML5]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[Roundups]]></category> <category><![CDATA[Showcase]]></category> <category><![CDATA[Cool]]></category> <category><![CDATA[CSS3]]></category> <category><![CDATA[Firefox]]></category> <category><![CDATA[Open]]></category> <category><![CDATA[Video]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[WebGL]]></category><guid isPermaLink="false">http://www.skidoosh.co.uk/?p=156</guid> <description><![CDATA[Mozilla launch the &#8220;Mozilla Firefox 4 &#38; The Web O(&#8216;pen) Wonder&#8221;. An HTML 5 showcase of the capabilities of the up-coming and eagerly awaited Firefox 4 browser. To see the site in all it&#8217;s web glory you&#8217;ll need the Firefox 4 beta or Googles&#8217; Chrome 9 (no mention of Safari or IE&#8230;.). You&#8217;ll be wowed [...]]]></description> <content:encoded><![CDATA[<div id="attachment_157" class="wp-caption alignnone" style="width: 510px"><a href="https://demos.mozilla.org/en-US/"><img class="size-full wp-image-157" title="Mozilla Firefox 4 &amp; The Web O('pen) Wonder" src="http://www.skidoosh.co.uk/wp-content/uploads/2011/03/mozilla-firefox-4-wep-open-wonder.png" alt="Mozilla Firefox 4 &amp; The Web O('pen) Wonder" width="500" height="259" /></a><p class="wp-caption-text">Mozilla Firefox 4 &amp; The Web O(&#39;pen) Wonder</p></div><p>Mozilla launch the &#8220;Mozilla Firefox 4 &amp; The Web O(&#8216;pen) Wonder&#8221;. An HTML 5 showcase of the capabilities of the up-coming and eagerly awaited Firefox 4 browser.</p><p>To see the site in all it&#8217;s web glory you&#8217;ll need the <a title="Get Firefox 4 Download Page" href="http://www.mozilla.com/firefox/beta/?WT.mc_id=webwonder&amp;WT.mc_ev=click">Firefox 4 beta</a> or Googles&#8217; <a title="Google Chrome Browser Download Page" href="http://www.google.com/landing/chrome/beta">Chrome 9</a> (no mention of Safari or IE&#8230;.). You&#8217;ll be wowed and amazing, boys and girls by feats of amazing <a title="Web Typography on Wikipedia" href="http://en.wikipedia.org/wiki/Web_typography">Web Fonts</a>, <a title="CSS Animation Definition on Wikipedia" href="http://en.wikipedia.org/wiki/CSS_Animations">CSS Animations</a>, <a title="HTML Video on Wikipedia" href="http://en.wikipedia.org/wiki/HTML5_video">HTML 5 video</a> and as if that wasn&#8217;t enough, some <a title="Definition of WebGL on Wikipedia to get you started!" href="http://en.wikipedia.org/wiki/WebGL">WebGL</a> too!</p><p>What are you waiting for! <a title="Link to the Mozilla demo site" href="https://demos.mozilla.org/en-US/">Go see the 8th wonder of the world!</a></p> <img src="http://feeds.feedburner.com/~r/skidoosh/~4/n1NilOJ-Meg" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.skidoosh.co.uk/html/mozillas-web-open-wonder/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.skidoosh.co.uk/html/mozillas-web-open-wonder/</feedburner:origLink></item> <item><title>How to reset the Webkit HTML5 search field style with CSS</title><link>http://feedproxy.google.com/~r/skidoosh/~3/O7lnG4ZD2aU/</link> <comments>http://www.skidoosh.co.uk/html/how-to-reset-the-webkit-html5search-field-style-with-css/#comments</comments> <pubDate>Thu, 17 Mar 2011 10:57:04 +0000</pubDate> <dc:creator>Glyn Mooney</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[HTML5]]></category> <category><![CDATA[Snippets]]></category> <category><![CDATA[Search]]></category> <category><![CDATA[Snippet]]></category> <category><![CDATA[Vendor Prefix]]></category> <category><![CDATA[Webkit]]></category><guid isPermaLink="false">http://www.skidoosh.co.uk/?p=148</guid> <description><![CDATA[I'll keep this one short and snappy! I just ran into an issue where the new HTML5 search field would take the browser default styles over what I had defined. With a little Googling around and some tweaks, I came up with the fix and thought I'd share!]]></description> <content:encoded><![CDATA[<p>I&#8217;ll keep this one short and snappy! I just ran into an issue where the new HTML5 search field would take the browser default styles over what I had defined. With a little Googling around and some tweaks, I came up with the following:</p><div class="codecolorer-container css twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span>search<span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">:</span><span style="color: #3333ff;">:-webkit-search-decoration</span><span style="color: #00AA00;">,</span><br /> input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span>search<span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">:</span><span style="color: #3333ff;">:-webkit-search-cancel-button</span><span style="color: #00AA00;">,</span><br /> input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span>search<span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">:</span><span style="color: #3333ff;">:-webkit-search-results-button</span><span style="color: #00AA00;">,</span><br /> input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span>search<span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">:</span><span style="color: #3333ff;">:-webkit-search-results-decoration </span><span style="color: #00AA00;">&#123;</span><br /> &nbsp; <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><br /> <span style="color: #00AA00;">&#125;</span><br /> <br /> input<span style="color: #00AA00;">&#91;</span>type<span style="color: #00AA00;">=</span>search<span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">&#123;</span><br /> &nbsp; <span style="color: #808080; font-style: italic;">/* the webkit overrides need to stay at the top */</span><br /> &nbsp; -webkit-appearance<span style="color: #00AA00;">:</span> textfield<span style="color: #00AA00;">;</span><br /> &nbsp; -webkit-box-sizing<span style="color: #00AA00;">:</span> content-box<span style="color: #00AA00;">;</span><br /> &nbsp; <span style="color: #808080; font-style: italic;">/* your styles here */</span><br /> <span style="color: #00AA00;">&#125;</span></div></div><p>Hope this helps someone! Leave a comment, if you know a better way and I&#8217;ll update the article!</p> <img src="http://feeds.feedburner.com/~r/skidoosh/~4/O7lnG4ZD2aU" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.skidoosh.co.uk/html/how-to-reset-the-webkit-html5search-field-style-with-css/feed/</wfw:commentRss> <slash:comments>18</slash:comments> <feedburner:origLink>http://www.skidoosh.co.uk/html/how-to-reset-the-webkit-html5search-field-style-with-css/</feedburner:origLink></item> <item><title>Optimize your MySQL queries to fine tune your application</title><link>http://feedproxy.google.com/~r/skidoosh/~3/xmtzPRuGTZ8/</link> <comments>http://www.skidoosh.co.uk/mysql/optimize-your-mysql-queries-by-fine-tuning-the-find-model-method/#comments</comments> <pubDate>Sat, 12 Jun 2010 09:08:31 +0000</pubDate> <dc:creator>Glyn Mooney</dc:creator> <category><![CDATA[MySQL]]></category> <category><![CDATA[performance]]></category><guid isPermaLink="false">http://www.skidoosh.co.uk/?p=86</guid> <description><![CDATA[As applications are getting more complex and manipulating data in more complex ways it's becoming more important to optimise our database queries to be as efficient as possible. This article shows how more explicit queries can reduce execution time and take some of the strain off system resources.]]></description> <content:encoded><![CDATA[<p>As applications are getting more complex and manipulating data in more complex ways it&#8217;s becoming more important to optimise our database queries to be as efficient as possible. I&#8217;m not going to cover caching in this article, instead I&#8217;m going to cover a more fundamental rule that should be followed when querying any database and follows this Python rule:</p><blockquote><p>&#8220;Explicit is better than implicit.&#8221;</p></blockquote><p>Lets start by looking at MySQL query performance from the command line. Lets imagine we had a user table with the following fields:</p><div class="codecolorer-container sql twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">CREATE</span> &nbsp;<span style="color: #993333; font-weight: bold;">TABLE</span> &nbsp;<span style="color: #ff0000;">`article_db`</span><span style="color: #66cc66;">.</span><span style="color: #ff0000;">`users`</span> <span style="color: #66cc66;">&#40;</span><br /> <span style="color: #ff0000;">`id`</span> <span style="color: #993333; font-weight: bold;">INT</span><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">6</span> &nbsp;<span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">UNSIGNED</span> <span style="color: #993333; font-weight: bold;">NOT</span> &nbsp;<span style="color: #993333; font-weight: bold;">NULL</span> &nbsp;<span style="color: #993333; font-weight: bold;">AUTO_INCREMENT</span> &nbsp;<span style="color: #993333; font-weight: bold;">PRIMARY</span> &nbsp;<span style="color: #993333; font-weight: bold;">KEY</span> <span style="color: #66cc66;">,</span><br /> <span style="color: #ff0000;">`group_id`</span> <span style="color: #993333; font-weight: bold;">INT</span><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">6</span> &nbsp;<span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">UNSIGNED</span> <span style="color: #993333; font-weight: bold;">NOT</span> &nbsp;<span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #66cc66;">,</span><br /> <span style="color: #ff0000;">`username`</span> <span style="color: #993333; font-weight: bold;">VARCHAR</span><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">30</span> &nbsp;<span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">CHARACTER</span> &nbsp;<span style="color: #993333; font-weight: bold;">SET</span> utf8 <span style="color: #993333; font-weight: bold;">COLLATE</span> utf8_general_ci <span style="color: #993333; font-weight: bold;">NOT</span> &nbsp;<span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #66cc66;">,</span><br /> <span style="color: #ff0000;">`email`</span> <span style="color: #993333; font-weight: bold;">VARCHAR</span><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">100</span> &nbsp;<span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">CHARACTER</span> &nbsp;<span style="color: #993333; font-weight: bold;">SET</span> utf8 <span style="color: #993333; font-weight: bold;">COLLATE</span> utf8_general_ci <span style="color: #993333; font-weight: bold;">NOT</span> &nbsp;<span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #66cc66;">,</span><br /> <span style="color: #ff0000;">`password`</span> <span style="color: #993333; font-weight: bold;">VARCHAR</span><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">36</span> &nbsp;<span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">CHARACTER</span> &nbsp;<span style="color: #993333; font-weight: bold;">SET</span> utf8 <span style="color: #993333; font-weight: bold;">COLLATE</span> utf8_general_ci <span style="color: #993333; font-weight: bold;">NOT</span> &nbsp;<span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #66cc66;">,</span><br /> <span style="color: #ff0000;">`created`</span> DATETIME <span style="color: #993333; font-weight: bold;">NOT</span> &nbsp;<span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> &nbsp;<span style="color: #ff0000;">'0000-00-00 00:00:00'</span><span style="color: #66cc66;">,</span><br /> <span style="color: #ff0000;">`updated`</span> DATETIME <span style="color: #993333; font-weight: bold;">NOT</span> &nbsp;<span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> &nbsp;<span style="color: #ff0000;">'0000-00-00 00:00:00'</span><span style="color: #66cc66;">,</span><br /> <span style="color: #ff0000;">`active`</span> TINYINT<span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">1</span> &nbsp;<span style="color: #66cc66;">&#41;</span> &nbsp;<span style="color: #993333; font-weight: bold;">NOT</span> &nbsp;<span style="color: #993333; font-weight: bold;">NULL</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> &nbsp;<span style="color: #ff0000;">'0'</span><span style="color: #66cc66;">,</span><br /> <span style="color: #993333; font-weight: bold;">UNIQUE</span> <span style="color: #66cc66;">&#40;</span><br /> <span style="color: #ff0000;">`username`</span> <span style="color: #66cc66;">,</span><br /> <span style="color: #ff0000;">`email`</span><br /> <span style="color: #66cc66;">&#41;</span><br /> <span style="color: #66cc66;">&#41;</span>  ENGINE &nbsp;<span style="color: #66cc66;">=</span> &nbsp;MYISAM &nbsp;<span style="color: #993333; font-weight: bold;">CHARACTER</span> &nbsp;<span style="color: #993333; font-weight: bold;">SET</span> utf8 <span style="color: #993333; font-weight: bold;">COLLATE</span> utf8_general_ci;</div></div><p>Normally to retrieve data from this table you would execute a query like the following. please note that I am using a remote database to create some lag. If you use a local database on your development machine you will probably retrieve the data in 0 seconds.</p><div class="codecolorer-container sql twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql&amp;gt; <span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> users;<br /> <span style="color: #66cc66;">+</span><span style="color: #808080; font-style: italic;">----+----------+----------+-----------------------+----------------------------------+---------------------+---------------------+--------+</span><br /> <span style="color: #66cc66;">|</span> id <span style="color: #66cc66;">|</span> group_id <span style="color: #66cc66;">|</span> username <span style="color: #66cc66;">|</span> email &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">|</span> password &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">|</span> created &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">|</span> updated &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">|</span> active <span style="color: #66cc66;">|</span><br /> <span style="color: #66cc66;">+</span><span style="color: #808080; font-style: italic;">----+----------+----------+-----------------------+----------------------------------+---------------------+---------------------+--------+</span><br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span> admin &nbsp; &nbsp;<span style="color: #66cc66;">|</span> admin@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp; <span style="color: #66cc66;">|</span> 21232f297a57a5a743894a0e4a801fc3 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:08:<span style="color: #cc66cc;">51</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:08:<span style="color: #cc66cc;">51</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">USER</span> &nbsp; &nbsp; <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">USER</span>@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">|</span> ee11cbb19052e40b07aac0ca060c23ee <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:08:<span style="color: #cc66cc;">51</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:08:<span style="color: #cc66cc;">51</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">3</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">3</span> <span style="color: #66cc66;">|</span> test &nbsp; &nbsp; <span style="color: #66cc66;">|</span> test@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">|</span> 098f6bcd4621d373cade4e832627b4f6 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">13</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">13</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">|</span><br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">4</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">4</span> <span style="color: #66cc66;">|</span> temp &nbsp; &nbsp; <span style="color: #66cc66;">|</span> temp@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">|</span> 3d801aa532c1cec3ee82d87a99fdf63f <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">13</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">13</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">5</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">|</span> me &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">|</span> me@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">|</span> ab86a1e1ef70dff97959067b723c5c24 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">15</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">15</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">6</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">|</span> you &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">|</span> you@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">|</span> 639bae9ac6b3e1a84cebb7b403297b79 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">15</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">15</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">|</span><br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span> john &nbsp; &nbsp; <span style="color: #66cc66;">|</span> john@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">|</span> 527bd5b5d689e2c32ae974c6229ff785 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">17</span>:04 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">17</span>:04 <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">8</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span> master &nbsp; <span style="color: #66cc66;">|</span> master@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp;<span style="color: #66cc66;">|</span> eb0a191797624dd3a48fa681d3061212 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">17</span>:04 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">17</span>:04 <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">9</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span> theboss &nbsp;<span style="color: #66cc66;">|</span> theboss@testing<span style="color: #66cc66;">.</span>com &nbsp; <span style="color: #66cc66;">|</span> b248e08d5c23541514558eea059c08cf <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">43</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">43</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">|</span> susan &nbsp; &nbsp;<span style="color: #66cc66;">|</span> susan@localdomain<span style="color: #66cc66;">.</span>com <span style="color: #66cc66;">|</span> ac575e3eecf0fa410518c2d3a2e7209f <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">43</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">43</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <span style="color: #66cc66;">+</span><span style="color: #808080; font-style: italic;">----+----------+----------+-----------------------+----------------------------------+---------------------+---------------------+--------+</span><br /> <span style="color: #cc66cc;">10</span> <span style="color: #993333; font-weight: bold;">ROWS</span> <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #993333; font-weight: bold;">SET</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0.05</span> sec<span style="color: #66cc66;">&#41;</span></div></div><p>In the previous query we used the wild-card selector &#8216;*&#8217; to return all columns from the &#8216;users&#8217; table. This in turn queried the database and returned the results as above. What I&#8217;m going to do next is query the database for the same data but this time I&#8217;m going to name the fields that I require in my returned dataset:</p><div class="codecolorer-container sql twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;height:300px;"><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql&amp;gt; <span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span>group_id<span style="color: #66cc66;">,</span>username<span style="color: #66cc66;">,</span>email<span style="color: #66cc66;">,</span>password<span style="color: #66cc66;">,</span>created<span style="color: #66cc66;">,</span>updated<span style="color: #66cc66;">,</span>active <span style="color: #993333; font-weight: bold;">FROM</span> users;<br /> <br /> <span style="color: #66cc66;">+</span><span style="color: #808080; font-style: italic;">----+----------+----------+-----------------------+----------------------------------+---------------------+---------------------+--------+</span><br /> <br /> <span style="color: #66cc66;">|</span> id <span style="color: #66cc66;">|</span> group_id <span style="color: #66cc66;">|</span> username <span style="color: #66cc66;">|</span> email &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">|</span> password &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">|</span> created &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">|</span> updated &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">|</span> active <span style="color: #66cc66;">|</span><br /> <br /> <span style="color: #66cc66;">+</span><span style="color: #808080; font-style: italic;">----+----------+----------+-----------------------+----------------------------------+---------------------+---------------------+--------+</span><br /> <br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span> admin &nbsp; &nbsp;<span style="color: #66cc66;">|</span> admin@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp; <span style="color: #66cc66;">|</span> 21232f297a57a5a743894a0e4a801fc3 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:08:<span style="color: #cc66cc;">51</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:08:<span style="color: #cc66cc;">51</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">USER</span> &nbsp; &nbsp; <span style="color: #66cc66;">|</span> <span style="color: #993333; font-weight: bold;">USER</span>@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">|</span> ee11cbb19052e40b07aac0ca060c23ee <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:08:<span style="color: #cc66cc;">51</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:08:<span style="color: #cc66cc;">51</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">3</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">3</span> <span style="color: #66cc66;">|</span> test &nbsp; &nbsp; <span style="color: #66cc66;">|</span> test@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">|</span> 098f6bcd4621d373cade4e832627b4f6 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">13</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">13</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">|</span><br /> <br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">4</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">4</span> <span style="color: #66cc66;">|</span> temp &nbsp; &nbsp; <span style="color: #66cc66;">|</span> temp@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">|</span> 3d801aa532c1cec3ee82d87a99fdf63f <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">13</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">13</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">5</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">|</span> me &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">|</span> me@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">|</span> ab86a1e1ef70dff97959067b723c5c24 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">15</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">15</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">6</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">|</span> you &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">|</span> you@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">|</span> 639bae9ac6b3e1a84cebb7b403297b79 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">15</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">15</span>:<span style="color: #cc66cc;">50</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">|</span><br /> <br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span> john &nbsp; &nbsp; <span style="color: #66cc66;">|</span> john@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp; &nbsp;<span style="color: #66cc66;">|</span> 527bd5b5d689e2c32ae974c6229ff785 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">17</span>:04 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">17</span>:04 <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">8</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span> master &nbsp; <span style="color: #66cc66;">|</span> master@example<span style="color: #66cc66;">.</span>com &nbsp; &nbsp;<span style="color: #66cc66;">|</span> eb0a191797624dd3a48fa681d3061212 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">17</span>:04 <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">17</span>:04 <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <br /> <span style="color: #66cc66;">|</span> &nbsp;<span style="color: #cc66cc;">9</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span> theboss &nbsp;<span style="color: #66cc66;">|</span> theboss@testing<span style="color: #66cc66;">.</span>com &nbsp; <span style="color: #66cc66;">|</span> b248e08d5c23541514558eea059c08cf <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">43</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">43</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <br /> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">10</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">|</span> susan &nbsp; &nbsp;<span style="color: #66cc66;">|</span> susan@localdomain<span style="color: #66cc66;">.</span>com <span style="color: #66cc66;">|</span> ac575e3eecf0fa410518c2d3a2e7209f <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">43</span> <span style="color: #66cc66;">|</span> <span style="color: #cc66cc;">2010</span><span style="color: #66cc66;">-</span>04<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">11</span> <span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">23</span>:<span style="color: #cc66cc;">43</span> <span style="color: #66cc66;">|</span> &nbsp; &nbsp; &nbsp;<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">|</span><br /> <br /> <span style="color: #66cc66;">+</span><span style="color: #808080; font-style: italic;">----+----------+----------+-----------------------+----------------------------------+---------------------+---------------------+--------+</span><br /> <br /> <span style="color: #cc66cc;">10</span> <span style="color: #993333; font-weight: bold;">ROWS</span> <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #993333; font-weight: bold;">SET</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0.01</span> sec<span style="color: #66cc66;">&#41;</span></div></div><p>As you can see, by defining a more explicit query you have reduced the execution time from 0.05 to 0.01 seconds. This may not be too impressive, but imagine the &#8220;now&#8221; common application queries a database. During the life cycle of a page execution in a content management system you could be looking at around 10 &#8211; 40 (this is just an example figure) database queries being executed during this time. In turn each of these queries take .05 seconds to execute (40 * .05) = 2 seconds. So you go through your application and modify it to select one the columns you need. If we take the examples above we would have (40 * .01) = .4, that&#8217;s a massive 1.6 (thanks ekozan) seconds faster!</p><p>Hope this helps!</p> <img src="http://feeds.feedburner.com/~r/skidoosh/~4/xmtzPRuGTZ8" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.skidoosh.co.uk/mysql/optimize-your-mysql-queries-by-fine-tuning-the-find-model-method/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.skidoosh.co.uk/mysql/optimize-your-mysql-queries-by-fine-tuning-the-find-model-method/</feedburner:origLink></item> </channel> </rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 757/918 objects using disk: basic
Content Delivery Network via N/A

Served from: www.skidoosh.co.uk @ 2012-05-15 12:48:57 -->

