<?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/</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 21 May 2013 02:56:23 GMT</pubDate>
<item>
<title>(Bash) Unix file timestamps - jtjiver</title>
<link>http://snipplr.com/view/71241/unix-file-timestamps/</link>
<description><![CDATA[ <p>1. Last modified time - This refers to the timing when the file has been modified last. For a newly created file, this refers to the time when the file is created.


2. Last accessed time -  This refers to the timing when the file has been accessed last. Access can be either when the file is read, or the file is written to or even if the file has been executed. The last accessed time gets updated when any of the above file operations is being done on a file.


3. Last changed time - This refers to the timing when the file status has been changed last. The change in file status could be due to any of the following reasons:
   i) File ownership being changed.
  ii) Group to which the file belongs to is changed.
 iii) File permissions such as read, write or execute permissions has been applied or removed from the file.
 iv) Advanced file permissions such as SUID, SGID or Sticky bit has been applied or removed on the file.
  v) When the file content is updated</p> ]]></description>
<pubDate>Mon, 20 May 2013 19:06:37 GMT</pubDate>
<guid>http://snipplr.com/view/71241/unix-file-timestamps/</guid>
</item>
<item>
<title>(HTML) HTML5 Shim - nshakin</title>
<link>http://snipplr.com/view/71235/html5-shim/</link>
<description><![CDATA[ <p>Source code adds new HTML5 elements (which is simple code), but also supports printing HTML5 elements and includes the default styles for HTML5 elements, like block on article and section.  (GOTO the referenced url to download the javascript package)</p> ]]></description>
<pubDate>Sun, 19 May 2013 16:22:16 GMT</pubDate>
<guid>http://snipplr.com/view/71235/html5-shim/</guid>
</item>
<item>
<title>(PHP) Copy Image From Remote Server To Local - nshakin</title>
<link>http://snipplr.com/view/71229/copy-image-from-remote-server-to-local/</link>
<description><![CDATA[ <p>PHP function to save an image from a remote source then download it to the local server that the script is on.</p> ]]></description>
<pubDate>Sat, 18 May 2013 10:49:57 GMT</pubDate>
<guid>http://snipplr.com/view/71229/copy-image-from-remote-server-to-local/</guid>
</item>
<item>
<title>(CSS) CSS Custom Font File - nshakin</title>
<link>http://snipplr.com/view/71228/css-custom-font-file/</link>
<description><![CDATA[ <p>Reference a custom font file for use within a stylesheet</p> ]]></description>
<pubDate>Sat, 18 May 2013 10:46:13 GMT</pubDate>
<guid>http://snipplr.com/view/71228/css-custom-font-file/</guid>
</item>
<item>
<title>(Bash) how to run your unix shell script - geekzspot</title>
<link>http://snipplr.com/view/71227/how-to-run-your-unix-shell-script/</link>
<description><![CDATA[ <p>Command not found? Cannot execute Permission denied?
How to make your unix shell script executable</p> ]]></description>
<pubDate>Sat, 18 May 2013 10:34:18 GMT</pubDate>
<guid>http://snipplr.com/view/71227/how-to-run-your-unix-shell-script/</guid>
</item>
<item>
<title>(Bash) Unix Shell Script Usage - geekzspot</title>
<link>http://snipplr.com/view/71226/unix-shell-script-usage/</link>
<description><![CDATA[ <p>Check for the correct usage of a script by counting the arguments or parameters.
Here if there are less than two command line arguments we then display a helpful message and exit.</p> ]]></description>
<pubDate>Sat, 18 May 2013 08:47:23 GMT</pubDate>
<guid>http://snipplr.com/view/71226/unix-shell-script-usage/</guid>
</item>
<item>
<title>(Bash) convert unix date to a different timezone - geekzspot</title>
<link>http://snipplr.com/view/71225/convert-unix-date-to-a-different-timezone/</link>
<description><![CDATA[ <p>Want to display what the time is in a different time zone?

Valid TZ values are based on the tz (timezone) database used by Linux and other Unix systems.</p> ]]></description>
<pubDate>Sat, 18 May 2013 08:25:01 GMT</pubDate>
<guid>http://snipplr.com/view/71225/convert-unix-date-to-a-different-timezone/</guid>
</item>
<item>
<title>(PHP) Image Resize on the Fly - brownrl</title>
<link>http://snipplr.com/view/71224/image-resize-on-the-fly/</link>
<description><![CDATA[ <p>This is my simple image resizer on the fly thing. 

-- WARNING --
Resizing and showing images on the fly could potentially kill your server or make the website slow.

Ideally, this should save the resized image in a cache. However, more often than not this method just works, no one complains, and I don't have to make some writable caching directory thing.

If anyting this could give you a good start on how you really want to handle your images.</p> ]]></description>
<pubDate>Sat, 18 May 2013 08:21:43 GMT</pubDate>
<guid>http://snipplr.com/view/71224/image-resize-on-the-fly/</guid>
</item>
<item>
<title>(PHP) Cleanup Downloads Directory - brownrl</title>
<link>http://snipplr.com/view/71223/cleanup-downloads-directory/</link>
<description><![CDATA[ <p>This is a simple script to go into your downloads directory ( mac ). Move everything to a .YYYY-MM-DD folder. Thus you Downloads directory gets cleaned up and anything that was there has been placed into a hidden folder for finding later.

My Downloads folder is just always full of things but I don't want to blast it empty. Re-getting a file from some website is sometimes hard to remember. So I move everything to a backup and start again.</p> ]]></description>
<pubDate>Sat, 18 May 2013 07:56:52 GMT</pubDate>
<guid>http://snipplr.com/view/71223/cleanup-downloads-directory/</guid>
</item>
<item>
<title>(Bash) Simple Command Line Calculator - brownrl</title>
<link>http://snipplr.com/view/71222/simple-command-line-calculator/</link>
<description><![CDATA[ <p>This is a simple wrapper to bc to perform basic calculator duties. with up to 4 decimal place precision. its just one of those things you might find useful. Then again all the os's out there have a gui calc easily ready too.</p> ]]></description>
<pubDate>Sat, 18 May 2013 07:50:30 GMT</pubDate>
<guid>http://snipplr.com/view/71222/simple-command-line-calculator/</guid>
</item>
<item>
<title>(C#) Check if a file is an executable. - jprochazka</title>
<link>http://snipplr.com/view/71221/check-if-a-file-is-an-executable/</link>
<description><![CDATA[ <p>A function to check the first two bytes to see if they match "MZ" marking it as an executable.</p> ]]></description>
<pubDate>Sat, 18 May 2013 05:02:45 GMT</pubDate>
<guid>http://snipplr.com/view/71221/check-if-a-file-is-an-executable/</guid>
</item>
<item>
<title>(Bash) Unix Make My Home Public - geekzspot</title>
<link>http://snipplr.com/view/71220/unix-make-my-home-public/</link>
<description><![CDATA[ <p>Give All Read Write Permissions on my Home Directory Fodler</p> ]]></description>
<pubDate>Sat, 18 May 2013 03:39:28 GMT</pubDate>
<guid>http://snipplr.com/view/71220/unix-make-my-home-public/</guid>
</item>
<item>
<title>(Python) Objectjson - JSON to nested object. - plainwreck</title>
<link>http://snipplr.com/view/71218/objectjson--json-to-nested-object/</link>
<description><![CDATA[ <p>Makes working with JSON data, in my eyes, easier in Python.

Instead of

    json_data['key']['key']['key']

Do

    json_data.key.key.key

This can also be modified to work the same way with dict types.</p> ]]></description>
<pubDate>Fri, 17 May 2013 23:23:24 GMT</pubDate>
<guid>http://snipplr.com/view/71218/objectjson--json-to-nested-object/</guid>
</item>
<item>
<title>(SQL) Bulk insert/upload microsoft sql server (csv) - dego89</title>
<link>http://snipplr.com/view/71212/bulk-insertupload-microsoft-sql-server-csv/</link>
<description><![CDATA[ <p>Bulk upload a CSV into Microsoft SQL Server</p> ]]></description>
<pubDate>Fri, 17 May 2013 04:03:48 GMT</pubDate>
<guid>http://snipplr.com/view/71212/bulk-insertupload-microsoft-sql-server-csv/</guid>
</item>
<item>
<title>(HTML) Captions For Lists and Images - COBOLdinosaur</title>
<link>http://snipplr.com/view/71211/captions-for-lists-and-images/</link>
<description><![CDATA[ <p>One of the limits of using lists (ordered and unordered) is that they have no provision for a heading. You can do something like: This is a Title etc... but it is invalid because the list containers can only contain List Items. One way commonly used to put a heading on a list is to put a paragraph or div ahead of the list. It is messy and ugly, but it validates.

The problem with that solution is that the elements are not bound to each other and therefore it can break unless you make it even uglier by putting a common wrapper around both elements, and then you have extra linefeeds to deal with.</p> ]]></description>
<pubDate>Fri, 17 May 2013 03:58:58 GMT</pubDate>
<guid>http://snipplr.com/view/71211/captions-for-lists-and-images/</guid>
</item>
<item>
<title>(ASP) Detect Mobile Browser Using ASP - nshakin</title>
<link>http://snipplr.com/view/71210/detect-mobile-browser-using-asp/</link>
<description><![CDATA[ <p>A function and if statement to detect whether or not the browser is a mobile device.</p> ]]></description>
<pubDate>Fri, 17 May 2013 02:32:15 GMT</pubDate>
<guid>http://snipplr.com/view/71210/detect-mobile-browser-using-asp/</guid>
</item>
<item>
<title>(ASP) ASP Request Current Page Name - nshakin</title>
<link>http://snipplr.com/view/71208/asp-request-current-page-name/</link>
<description><![CDATA[ <p>Request the current page name relative to the home directory of the server.</p> ]]></description>
<pubDate>Fri, 17 May 2013 00:03:57 GMT</pubDate>
<guid>http://snipplr.com/view/71208/asp-request-current-page-name/</guid>
</item>
<item>
<title>(JavaScript) Check If JQuery Is Loaded In The Browser - nshakin</title>
<link>http://snipplr.com/view/71207/check-if-jquery-is-loaded-in-the-browser/</link>
<description><![CDATA[ <p>Use Javascript to check if JQuery is loaded properly in the browser</p> ]]></description>
<pubDate>Fri, 17 May 2013 00:00:29 GMT</pubDate>
<guid>http://snipplr.com/view/71207/check-if-jquery-is-loaded-in-the-browser/</guid>
</item>
<item>
<title>(Groovy) Groovy IsIpAddressLocal - laurenceosx</title>
<link>http://snipplr.com/view/71197/groovy-isipaddresslocal/</link>
<description><![CDATA[ <p>See:  // http://stackoverflow.com/questions/2406341/how-to-check-if-an-ip-address-is-the-local-host-on-a-multi-homed-system</p> ]]></description>
<pubDate>Thu, 16 May 2013 04:56:00 GMT</pubDate>
<guid>http://snipplr.com/view/71197/groovy-isipaddresslocal/</guid>
</item>
<item>
<title>(XSLT) XML structure to Tree View - iroybot</title>
<link>http://snipplr.com/view/71196/xml-structure-to-tree-view/</link>
<description><![CDATA[ <p>a perfect tree representation of a XML structure (with i, l and t and empty node images)</p> ]]></description>
<pubDate>Thu, 16 May 2013 04:15:15 GMT</pubDate>
<guid>http://snipplr.com/view/71196/xml-structure-to-tree-view/</guid>
</item>
</channel>
</rss>