<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/favorites/arcturus</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 26 May 2013 14:28:03 GMT</pubDate>
<item>
<title>(Django) Template Query Debug - arcturus</title>
<link>http://snipplr.com/view/5741/template-query-debug/</link>
<description><![CDATA[ <p>I often find something like this lurking at the end of my base templates - it'll show you which queries were run while generating the current page, but they'll start out hidden so as not to be a pain.

Of course, before this works, you'll need to satisfy all the criteria for getting debug information in your template context:

   1. Have 'django.core.context_processors.debug' in your TEMPLATE_CONTEXT_PROCESSORS setting (it was there in the default settings, last time I checked).
   2. Have your current IP in your INTERNAL_IPS setting.
   3. Use RequestContext when rendering the current template (if you're using a generic view, you're already using RequestContext).</p> ]]></description>
<pubDate>Mon, 07 Apr 2008 16:20:35 GMT</pubDate>
<guid>http://snipplr.com/view/5741/template-query-debug/</guid>
</item>
<item>
<title>(PHP) Environment Variables - arcturus</title>
<link>http://snipplr.com/view/4686/environment-variables/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 20 Jan 2008 21:55:26 GMT</pubDate>
<guid>http://snipplr.com/view/4686/environment-variables/</guid>
</item>
<item>
<title>(JavaScript) makeProperty - arcturus</title>
<link>http://snipplr.com/view/4675/makeproperty/</link>
<description><![CDATA[ <p>O'Reilly Media | JavaScript: The Definitive Guide
http://www.oreilly.com/catalog/jscript5/</p> ]]></description>
<pubDate>Sun, 20 Jan 2008 10:34:13 GMT</pubDate>
<guid>http://snipplr.com/view/4675/makeproperty/</guid>
</item>
<item>
<title>(JavaScript) Select ajax DOM Fill - arcturus</title>
<link>http://snipplr.com/view/4125/select-ajax-dom-fill/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 13 Nov 2007 05:57:58 GMT</pubDate>
<guid>http://snipplr.com/view/4125/select-ajax-dom-fill/</guid>
</item>
<item>
<title>(JavaScript) JQUERY ""MOSTRAR - OCULTAR CAPA" - arcturus</title>
<link>http://snipplr.com/view/4116/jquery-mostrar--ocultar-capa/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 11 Nov 2007 11:32:55 GMT</pubDate>
<guid>http://snipplr.com/view/4116/jquery-mostrar--ocultar-capa/</guid>
</item>
<item>
<title>(JavaScript) PHP Array To JSON String - arcturus</title>
<link>http://snipplr.com/view/4114/php-array-to-json-string/</link>
<description><![CDATA[ <p>SEE http://json.org/ for PHP JSON Libraries.

grunt knuckle drag brute force ugly escapes for quotes make a php array a json string

Produces trailing commas which some Javascript Librarys can't deal with.*

_*NOOB NOTE [a comma is added at the end of each array key/value set]_</p> ]]></description>
<pubDate>Sat, 10 Nov 2007 18:42:03 GMT</pubDate>
<guid>http://snipplr.com/view/4114/php-array-to-json-string/</guid>
</item>
<item>
<title>(JavaScript) javascript trim with regexp - arcturus</title>
<link>http://snipplr.com/view/4075/javascript-trim-with-regexp/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 06 Nov 2007 05:44:02 GMT</pubDate>
<guid>http://snipplr.com/view/4075/javascript-trim-with-regexp/</guid>
</item>
<item>
<title>(JavaScript) currency changer with google - arcturus</title>
<link>http://snipplr.com/view/4074/currency-changer-with-google/</link>
<description><![CDATA[ <p>A simple code for changing currencies using Google:)</p> ]]></description>
<pubDate>Tue, 06 Nov 2007 05:04:33 GMT</pubDate>
<guid>http://snipplr.com/view/4074/currency-changer-with-google/</guid>
</item>
<item>
<title>(Bash) Tail requests for HTML files - arcturus</title>
<link>http://snipplr.com/view/4069/tail-requests-for-html-files/</link>
<description><![CDATA[ <p>This command will tail an Apache access log, but only print lines where an HTML file was requested.</p> ]]></description>
<pubDate>Mon, 05 Nov 2007 12:40:54 GMT</pubDate>
<guid>http://snipplr.com/view/4069/tail-requests-for-html-files/</guid>
</item>
<item>
<title>(PHP) Php - Agregar href en textos - arcturus</title>
<link>http://snipplr.com/view/4061/php--agregar-href-en-textos/</link>
<description><![CDATA[ <p>Genera links en base a http, www, ftp</p> ]]></description>
<pubDate>Fri, 02 Nov 2007 11:37:09 GMT</pubDate>
<guid>http://snipplr.com/view/4061/php--agregar-href-en-textos/</guid>
</item>
<item>
<title>(PHP) Treat variable as a file - arcturus</title>
<link>http://snipplr.com/view/4051/treat-variable-as-a-file/</link>
<description><![CDATA[ <p>Occasionally you'll have a string and need to pass it to a function that will only take a filehandle (such as fgetcsv). Here's how to create a virtual filehandle in memory.</p> ]]></description>
<pubDate>Tue, 30 Oct 2007 18:58:45 GMT</pubDate>
<guid>http://snipplr.com/view/4051/treat-variable-as-a-file/</guid>
</item>
<item>
<title>(Python) Magical self update - arcturus</title>
<link>http://snipplr.com/view/4020/magical-self-update/</link>
<description><![CDATA[ <p>Just call "selfupdate()" in a method and all local variables are magically assigned to self (except for "self", of course).   Less magical is update(self, locals())</p> ]]></description>
<pubDate>Sun, 28 Oct 2007 07:58:03 GMT</pubDate>
<guid>http://snipplr.com/view/4020/magical-self-update/</guid>
</item>
<item>
<title>(Ruby) How to iterate through an array in Ruby - arcturus</title>
<link>http://snipplr.com/view/3963/how-to-iterate-through-an-array-in-ruby/</link>
<description><![CDATA[ <p>For all of you actionscripters out there, this example is the Ruby equivalent of writing for(i in array){trace(i);} or for(i = 0; i < array.length; i++){trace(i);}</p> ]]></description>
<pubDate>Sun, 21 Oct 2007 20:01:24 GMT</pubDate>
<guid>http://snipplr.com/view/3963/how-to-iterate-through-an-array-in-ruby/</guid>
</item>
<item>
<title>(CSS) css run-time expression - arcturus</title>
<link>http://snipplr.com/view/3953/css-runtime-expression/</link>
<description><![CDATA[ <p>Writing expressions in CSS, used to make decisions at run-time.</p> ]]></description>
<pubDate>Sat, 20 Oct 2007 07:52:29 GMT</pubDate>
<guid>http://snipplr.com/view/3953/css-runtime-expression/</guid>
</item>
<item>
<title>(Bash) BASH template - arcturus</title>
<link>http://snipplr.com/view/3901/bash-template/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 15 Oct 2007 20:34:06 GMT</pubDate>
<guid>http://snipplr.com/view/3901/bash-template/</guid>
</item>
<item>
<title>(Bash) Replace some text in multiple files in a directory - arcturus</title>
<link>http://snipplr.com/view/3858/replace-some-text-in-multiple-files-in-a-directory/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 08 Oct 2007 04:13:39 GMT</pubDate>
<guid>http://snipplr.com/view/3858/replace-some-text-in-multiple-files-in-a-directory/</guid>
</item>
<item>
<title>(Regular Expression) Apache redirect from domain.com to www.domain.com - arcturus</title>
<link>http://snipplr.com/view/3857/apache-redirect-from-domaincom-to-wwwdomaincom/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 08 Oct 2007 03:03:05 GMT</pubDate>
<guid>http://snipplr.com/view/3857/apache-redirect-from-domaincom-to-wwwdomaincom/</guid>
</item>
<item>
<title>(HTML) Drupal: output theme variables - arcturus</title>
<link>http://snipplr.com/view/3846/drupal-output-theme-variables/</link>
<description><![CDATA[ <p>Drupal snippet: outputs all theming variables of a content type or page. Add to template.php the following function:

function _phptemplate_variables($hook, $vars) {
  return array('vars_data' => $vars);
}


then add the snippet to the relative node.tpl.php file.</p> ]]></description>
<pubDate>Thu, 04 Oct 2007 11:10:22 GMT</pubDate>
<guid>http://snipplr.com/view/3846/drupal-output-theme-variables/</guid>
</item>
<item>
<title>(Bash) memory size of a whole process - arcturus</title>
<link>http://snipplr.com/view/3842/memory-size-of-a-whole-process/</link>
<description><![CDATA[ <p>resident memory</p> ]]></description>
<pubDate>Thu, 04 Oct 2007 04:09:27 GMT</pubDate>
<guid>http://snipplr.com/view/3842/memory-size-of-a-whole-process/</guid>
</item>
<item>
<title>(JavaScript) Basic Object Creation - arcturus</title>
<link>http://snipplr.com/view/3629/basic-object-creation/</link>
<description><![CDATA[ <p>Create a simple object and add properties and a method. Note where the object is parsed (not from top to bottom).</p> ]]></description>
<pubDate>Tue, 04 Sep 2007 03:27:56 GMT</pubDate>
<guid>http://snipplr.com/view/3629/basic-object-creation/</guid>
</item>
</channel>
</rss>