<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 04:15:40 +0000</lastBuildDate>
    <item>
      <title>(Bash) Find and replace - inreflection7</title>
      <link>https://snipplr.com/view/69381/find-and-replace</link>
      <description>&lt;p&gt;Find and replace&lt;/p&gt;</description>
      <pubDate>Tue, 08 Jan 2013 03:34:52 UTC</pubDate>
      <guid>https://snipplr.com/view/69381/find-and-replace</guid>
    </item>
    <item>
      <title>(JavaScript) Safe replace {{some_var}} in JS strings - inreflection7</title>
      <link>https://snipplr.com/view/68700/safe-replace-somevar-in-js-strings</link>
      <description>&lt;p&gt;For those moments of weakness when .replace() looks like a good idea...&lt;/p&gt;</description>
      <pubDate>Thu, 22 Nov 2012 15:12:03 UTC</pubDate>
      <guid>https://snipplr.com/view/68700/safe-replace-somevar-in-js-strings</guid>
    </item>
    <item>
      <title>(JavaScript) BASH inline for loop - inreflection7</title>
      <link>https://snipplr.com/view/68018/bash-inline-for-loop</link>
      <description>&lt;p&gt;Simple but something I forgot :-/&lt;/p&gt;</description>
      <pubDate>Tue, 30 Oct 2012 07:34:53 UTC</pubDate>
      <guid>https://snipplr.com/view/68018/bash-inline-for-loop</guid>
    </item>
    <item>
      <title>(Bash) BASH inline for loop - inreflection7</title>
      <link>https://snipplr.com/view/68017/bash-inline-for-loop</link>
      <description>&lt;p&gt;Simple but something I forgot :-/&lt;/p&gt;</description>
      <pubDate>Tue, 30 Oct 2012 07:33:49 UTC</pubDate>
      <guid>https://snipplr.com/view/68017/bash-inline-for-loop</guid>
    </item>
    <item>
      <title>(Python) Django DB alias and queries - inreflection7</title>
      <link>https://snipplr.com/view/67932/django-db-alias-and-queries</link>
      <description>&lt;p&gt;Useful when used with views&lt;/p&gt;</description>
      <pubDate>Thu, 25 Oct 2012 08:55:36 UTC</pubDate>
      <guid>https://snipplr.com/view/67932/django-db-alias-and-queries</guid>
    </item>
    <item>
      <title>(Bash) Tail Apache logs - inreflection7</title>
      <link>https://snipplr.com/view/65296/tail-apache-logs</link>
      <description>&lt;p&gt;It can be useful to take a peek at what Apache is doing but I always forget the location of the Apache logs so I can use tail.&lt;/p&gt;</description>
      <pubDate>Fri, 01 Jun 2012 00:42:26 UTC</pubDate>
      <guid>https://snipplr.com/view/65296/tail-apache-logs</guid>
    </item>
    <item>
      <title>(JavaScript) Extend jQuery selector types - inreflection7</title>
      <link>https://snipplr.com/view/65282/extend-jquery-selector-types</link>
      <description>&lt;p&gt;Extend jQuery :selector types&#13;
&#13;
Ex: $("input:text")&#13;
$("input:email")&lt;/p&gt;</description>
      <pubDate>Thu, 31 May 2012 06:59:43 UTC</pubDate>
      <guid>https://snipplr.com/view/65282/extend-jquery-selector-types</guid>
    </item>
    <item>
      <title>(Apache) Apache enable module - inreflection7</title>
      <link>https://snipplr.com/view/65281/apache-enable-module</link>
      <description>&lt;p&gt;I always forget how to enable modules in Apache.&lt;/p&gt;</description>
      <pubDate>Thu, 31 May 2012 05:47:08 UTC</pubDate>
      <guid>https://snipplr.com/view/65281/apache-enable-module</guid>
    </item>
    <item>
      <title>(Bash) Apt-get list update packages - inreflection7</title>
      <link>https://snipplr.com/view/65280/aptget-list-update-packages</link>
      <description>&lt;p&gt;Dont upgrade, just list&lt;/p&gt;</description>
      <pubDate>Thu, 31 May 2012 02:20:49 UTC</pubDate>
      <guid>https://snipplr.com/view/65280/aptget-list-update-packages</guid>
    </item>
    <item>
      <title>(SVN) SVN st/up one/two punch - inreflection7</title>
      <link>https://snipplr.com/view/65266/svn-stup-onetwo-punch</link>
      <description>&lt;p&gt;First, st -u the file to get a revision number&#13;
Then, make a note of the revision. In case you need to rollback up to the revision number. No space after the r in -r.&lt;/p&gt;</description>
      <pubDate>Wed, 30 May 2012 08:00:13 UTC</pubDate>
      <guid>https://snipplr.com/view/65266/svn-stup-onetwo-punch</guid>
    </item>
    <item>
      <title>(JavaScript) Sort list by data- attribute - inreflection7</title>
      <link>https://snipplr.com/view/62110/sort-list-by-data-attribute</link>
      <description>&lt;p&gt;Sorts a list by its 'data-' attribute. Customization is very easy.&lt;/p&gt;</description>
      <pubDate>Sat, 24 Dec 2011 01:56:19 UTC</pubDate>
      <guid>https://snipplr.com/view/62110/sort-list-by-data-attribute</guid>
    </item>
    <item>
      <title>(PHP) Replace string in PHP - inreflection7</title>
      <link>https://snipplr.com/view/62102/replace-string-in-php</link>
      <description>&lt;p&gt;Search for a string, if matched replace with second provided paramater. Third parameter is the variable whose value is the string you'd like to search.&lt;/p&gt;</description>
      <pubDate>Fri, 23 Dec 2011 08:35:53 UTC</pubDate>
      <guid>https://snipplr.com/view/62102/replace-string-in-php</guid>
    </item>
    <item>
      <title>(PHP) JSON with a PHP proxy - inreflection7</title>
      <link>https://snipplr.com/view/61836/json-with-a-php-proxy</link>
      <description>&lt;p&gt;Use PHP to get JSON&#13;
&#13;
1) set the PHP to the URL of the JSON&#13;
2) echo a variable with the loaded data&#13;
3) use a request via jQuery to get the variable from PHP&lt;/p&gt;</description>
      <pubDate>Tue, 13 Dec 2011 08:28:13 UTC</pubDate>
      <guid>https://snipplr.com/view/61836/json-with-a-php-proxy</guid>
    </item>
    <item>
      <title>(JavaScript) Auto Refresh Page JS - inreflection7</title>
      <link>https://snipplr.com/view/58713/auto-refresh-page-js</link>
      <description>&lt;p&gt;Why do this?&#13;
===========&#13;
*hopefully* this will cause the page to refresh and provide a stop button in the future. The idea is to use it while developing in a text editor, as in Vim or its ilk, and not have to alt+tab all the _*flipping*_ time.&#13;
&#13;
For right now its just straight from the source I got it. Additions will be made later.&lt;/p&gt;</description>
      <pubDate>Fri, 16 Sep 2011 00:30:45 UTC</pubDate>
      <guid>https://snipplr.com/view/58713/auto-refresh-page-js</guid>
    </item>
    <item>
      <title>(JavaScript) jQuery Image Replace using substring - inreflection7</title>
      <link>https://snipplr.com/view/57682/jquery-image-replace-using-substring</link>
      <description>&lt;p&gt;image rollovers in jquery are usually super easy. However it sucks when working with absolute image paths - like a separate media server or CDN. Heres a quick snippet using substring and lastIndexOf to swap out the image src.&lt;/p&gt;</description>
      <pubDate>Tue, 09 Aug 2011 01:20:23 UTC</pubDate>
      <guid>https://snipplr.com/view/57682/jquery-image-replace-using-substring</guid>
    </item>
    <item>
      <title>(C#) Kentic - CMSDesk CSS - inreflection7</title>
      <link>https://snipplr.com/view/57637/kentic--cmsdesk-css</link>
      <description>&lt;p&gt;Sometimes things look terrible in CMSDesk. With just a few adjustments to the master page and its CS file you can target elements in an admin.css page.&lt;/p&gt;</description>
      <pubDate>Fri, 05 Aug 2011 01:30:52 UTC</pubDate>
      <guid>https://snipplr.com/view/57637/kentic--cmsdesk-css</guid>
    </item>
    <item>
      <title>(ASP) Visible = false - inreflection7</title>
      <link>https://snipplr.com/view/57495/visible--false</link>
      <description>&lt;p&gt;Sometimes you gotta hide stuff without messing with the code behind&lt;/p&gt;</description>
      <pubDate>Tue, 02 Aug 2011 06:51:46 UTC</pubDate>
      <guid>https://snipplr.com/view/57495/visible--false</guid>
    </item>
    <item>
      <title>(ASP) Kentico - Smart Search Date w/o Time - inreflection7</title>
      <link>https://snipplr.com/view/55973/kentico--smart-search-date-wo-time</link>
      <description>&lt;p&gt;Wanna lose the time portion of the date something was created in a smart search result!?!?&lt;/p&gt;</description>
      <pubDate>Fri, 01 Jul 2011 04:53:45 UTC</pubDate>
      <guid>https://snipplr.com/view/55973/kentico--smart-search-date-wo-time</guid>
    </item>
    <item>
      <title>(HTML) IE7 button value - inreflection7</title>
      <link>https://snipplr.com/view/55924/ie7-button-value</link>
      <description>&lt;p&gt;IE7 can be a pain when it comes to input submit buttons. In order to get the value to disappear using the text-indent: -999em; trick make sure to set text-transform: capitalize;&lt;/p&gt;</description>
      <pubDate>Thu, 30 Jun 2011 03:51:29 UTC</pubDate>
      <guid>https://snipplr.com/view/55924/ie7-button-value</guid>
    </item>
    <item>
      <title>(JavaScript) Convert rgba alpha value to microsoft gradient - inreflection7</title>
      <link>https://snipplr.com/view/55808/convert-rgba-alpha-value-to-microsoft-gradient</link>
      <description>&lt;p&gt;A really fucking cool and easy way to calculate the alpha value for microsoft gradient using Javascript. Particularly useful in the Firebug console. Like a calculator.&lt;/p&gt;</description>
      <pubDate>Tue, 28 Jun 2011 07:26:50 UTC</pubDate>
      <guid>https://snipplr.com/view/55808/convert-rgba-alpha-value-to-microsoft-gradient</guid>
    </item>
    <item>
      <title>(HTML) JavaScript Learning Page - inreflection7</title>
      <link>https://snipplr.com/view/55708/javascript-learning-page</link>
      <description>&lt;p&gt;This is just a simple page full of XHTML to follow along with my JS book. A template.&lt;/p&gt;</description>
      <pubDate>Sun, 26 Jun 2011 02:13:56 UTC</pubDate>
      <guid>https://snipplr.com/view/55708/javascript-learning-page</guid>
    </item>
    <item>
      <title>(ASP) Kentico - JWPlayer file ResolveUrl - inreflection7</title>
      <link>https://snipplr.com/view/55591/kentico--jwplayer-file-resolveurl</link>
      <description>&lt;p&gt;The usual way to resolve a url file path doesn't work with JWPlayer. You'll need a different one because the "+" in ... ?guid="+ Eval("fieldName"))%&gt; will throw an error...&lt;/p&gt;</description>
      <pubDate>Wed, 22 Jun 2011 23:21:23 UTC</pubDate>
      <guid>https://snipplr.com/view/55591/kentico--jwplayer-file-resolveurl</guid>
    </item>
    <item>
      <title>(ASP) Kentico - Display Custom Date Format with Date/Time selector - inreflection7</title>
      <link>https://snipplr.com/view/55034/kentico--display-custom-date-format-with-datetime-selector</link>
      <description>&lt;p&gt;You don't modify the CMSDesk in order to display only the date or only the time. You do it through the aspx control.&#13;
&#13;
http://authors.aspalliance.com/aspxtreme/sys/globalization/demos/DateTimeFormatInfoGetAllDateTimePatterns.aspx&lt;/p&gt;</description>
      <pubDate>Thu, 09 Jun 2011 02:39:35 UTC</pubDate>
      <guid>https://snipplr.com/view/55034/kentico--display-custom-date-format-with-datetime-selector</guid>
    </item>
    <item>
      <title>(ASP) Kentico - Force download of PDF - inreflection7</title>
      <link>https://snipplr.com/view/54975/kentico--force-download-of-pdf</link>
      <description>&lt;p&gt;"This was a requirement that the client had because there were differences in how various browsers were displaying the same PDFs. By setting the "Content-Disposition" header to "attachment" it forces the user to download the file. I thought this was kind of cool, so I thought I'd share it. This is how I implemented it for Kentico's GetFile handler."&lt;/p&gt;</description>
      <pubDate>Wed, 08 Jun 2011 02:08:36 UTC</pubDate>
      <guid>https://snipplr.com/view/54975/kentico--force-download-of-pdf</guid>
    </item>
    <item>
      <title>(ASP) Kentico - Change bizform notification - inreflection7</title>
      <link>https://snipplr.com/view/54941/kentico--change-bizform-notification</link>
      <description>&lt;p&gt;When submitting a bizform in Kentico it has some crappy default message. Change them in this file.&lt;/p&gt;</description>
      <pubDate>Tue, 07 Jun 2011 06:47:21 UTC</pubDate>
      <guid>https://snipplr.com/view/54941/kentico--change-bizform-notification</guid>
    </item>
    <item>
      <title>(ASP) &lt; script &gt; in ASPX - inreflection7</title>
      <link>https://snipplr.com/view/54744/-script--in-aspx</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 02 Jun 2011 02:52:19 UTC</pubDate>
      <guid>https://snipplr.com/view/54744/-script--in-aspx</guid>
    </item>
    <item>
      <title>(JavaScript) Javascript CDATA - inreflection7</title>
      <link>https://snipplr.com/view/54686/javascript-cdata</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 01 Jun 2011 07:18:00 UTC</pubDate>
      <guid>https://snipplr.com/view/54686/javascript-cdata</guid>
    </item>
    <item>
      <title>(ASP) Kentico - Resolve file path URL - inreflection7</title>
      <link>https://snipplr.com/view/54523/kentico--resolve-file-path-url</link>
      <description>&lt;p&gt;This will get the file path for something. Typically used with a cms:CMSRepeater&lt;/p&gt;</description>
      <pubDate>Sat, 28 May 2011 01:08:55 UTC</pubDate>
      <guid>https://snipplr.com/view/54523/kentico--resolve-file-path-url</guid>
    </item>
    <item>
      <title>(jQuery) .closest and .find in jQuery - inreflection7</title>
      <link>https://snipplr.com/view/54400/closest-and-find-in-jquery</link>
      <description>&lt;p&gt;.closest and .find are very useful - surprised I haven't heard of them before.&lt;/p&gt;</description>
      <pubDate>Thu, 26 May 2011 08:03:09 UTC</pubDate>
      <guid>https://snipplr.com/view/54400/closest-and-find-in-jquery</guid>
    </item>
    <item>
      <title>(XHTML) XHTML Transitional - inreflection7</title>
      <link>https://snipplr.com/view/53882/xhtml-transitional</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 20 May 2011 23:19:25 UTC</pubDate>
      <guid>https://snipplr.com/view/53882/xhtml-transitional</guid>
    </item>
    <item>
      <title>(Bash) SSH To Windows Local Host - inreflection7</title>
      <link>https://snipplr.com/view/53880/ssh-to-windows-local-host</link>
      <description>&lt;p&gt;ssh localhost -CgL 8080(your computer IP address or name):80&lt;/p&gt;</description>
      <pubDate>Fri, 20 May 2011 23:18:15 UTC</pubDate>
      <guid>https://snipplr.com/view/53880/ssh-to-windows-local-host</guid>
    </item>
    <item>
      <title>(ASP) Shortcut to VimRC file - inreflection7</title>
      <link>https://snipplr.com/view/53879/shortcut-to-vimrc-file</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 20 May 2011 23:17:20 UTC</pubDate>
      <guid>https://snipplr.com/view/53879/shortcut-to-vimrc-file</guid>
    </item>
  </channel>
</rss>
