<?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/tags/programming</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 19 May 2013 01:58:28 GMT</pubDate>
<item>
<title>(Java) CheckerboardKarel - MediaTechWare</title>
<link>http://snipplr.com/view/70912/checkerboardkarel/</link>
<description><![CDATA[ <p>This code solves the CheckerboardKarel problem presented in Assignment 1 of  the Stanford University CS106A Programming Methodology course.</p> ]]></description>
<pubDate>Wed, 24 Apr 2013 05:39:01 GMT</pubDate>
<guid>http://snipplr.com/view/70912/checkerboardkarel/</guid>
</item>
<item>
<title>(Java) Text-to-Binary Encoder - eiger824</title>
<link>http://snipplr.com/view/69415/texttobinary-encoder/</link>
<description><![CDATA[ <p>A simple Text Encoder.</p> ]]></description>
<pubDate>Fri, 11 Jan 2013 00:47:47 GMT</pubDate>
<guid>http://snipplr.com/view/69415/texttobinary-encoder/</guid>
</item>
<item>
<title>(Perl) Detect PHP files with trailing whitespace, using Perl - noah</title>
<link>http://snipplr.com/view/46218/detect-php-files-with-trailing-whitespace-using-perl/</link>
<description><![CDATA[ <p>The following incantation returns nonzero exit status when the terminating `?>`  of a PHP file, is followed by whitespace.</p> ]]></description>
<pubDate>Wed, 29 Dec 2010 08:25:03 GMT</pubDate>
<guid>http://snipplr.com/view/46218/detect-php-files-with-trailing-whitespace-using-perl/</guid>
</item>
<item>
<title>(C++) stog_polje.h - lugerovac</title>
<link>http://snipplr.com/view/44135/stogpoljeh/</link>
<description><![CDATA[ <p>Implementacija stoga pomocu polja</p> ]]></description>
<pubDate>Mon, 15 Nov 2010 02:37:03 GMT</pubDate>
<guid>http://snipplr.com/view/44135/stogpoljeh/</guid>
</item>
<item>
<title>(C++) stog_pokazivac.h - lugerovac</title>
<link>http://snipplr.com/view/44133/stogpokazivach/</link>
<description><![CDATA[ <p>Implementacija stoga pomoću pokazivača</p> ]]></description>
<pubDate>Mon, 15 Nov 2010 02:34:25 GMT</pubDate>
<guid>http://snipplr.com/view/44133/stogpokazivach/</guid>
</item>
<item>
<title>(C++) stog_polje.h - lugerovac</title>
<link>http://snipplr.com/view/44132/stogpoljeh/</link>
<description><![CDATA[ <p>Implementacija stoga pomoću polja</p> ]]></description>
<pubDate>Mon, 15 Nov 2010 02:32:49 GMT</pubDate>
<guid>http://snipplr.com/view/44132/stogpoljeh/</guid>
</item>
<item>
<title>(Bash) bash: how to start a service and wait until it\'s up - noah</title>
<link>http://snipplr.com/view/43113/bash-how-to-start-a-service-and-wait-until-its-up/</link>
<description><![CDATA[ <p>Sometimes you need to start a service that takes a while to spin up.

Solr and Selenium-RC Server, for instance, can be unavailable for several seconds after the command to start them is issued.

Using Netcat, it's easy to poll-and-wait until a newly-started service begins listening on its proper port.</p> ]]></description>
<pubDate>Thu, 28 Oct 2010 14:02:26 GMT</pubDate>
<guid>http://snipplr.com/view/43113/bash-how-to-start-a-service-and-wait-until-its-up/</guid>
</item>
<item>
<title>(PHP) PHP bot to get wikipedia definitions - ginoplusio</title>
<link>http://snipplr.com/view/39711/php-bot-to-get-wikipedia-definitions/</link>
<description><![CDATA[ <p>If you need to add some content to your pages without having that content in your database you can use Wikipedia API. You can, for example, need to add automatically a simple description to a city name, or to a band name. Or you could need to add the definition of some technological terms. You can do all of this things using Wikipedia, since Wikipedia has an API that easily lets you do it.</p> ]]></description>
<pubDate>Mon, 30 Aug 2010 20:58:14 GMT</pubDate>
<guid>http://snipplr.com/view/39711/php-bot-to-get-wikipedia-definitions/</guid>
</item>
<item>
<title>(Ruby) Initialize a hash of arrays - therobot</title>
<link>http://snipplr.com/view/39018/initialize-a-hash-of-arrays/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 13 Aug 2010 07:55:53 GMT</pubDate>
<guid>http://snipplr.com/view/39018/initialize-a-hash-of-arrays/</guid>
</item>
<item>
<title>(SVN) Howto list all the file extension types in an SVN log dump - noah</title>
<link>http://snipplr.com/view/28195/howto-list-all-the-file-extension-types-in-an-svn-log-dump/</link>
<description><![CDATA[ <p>Note that on Windows you will want to double-quote the string argument to `perl -ne` rather than single-quoting it.  Otherwise this works on Windows (with Cygwin) as well.</p> ]]></description>
<pubDate>Thu, 11 Feb 2010 14:59:31 GMT</pubDate>
<guid>http://snipplr.com/view/28195/howto-list-all-the-file-extension-types-in-an-svn-log-dump/</guid>
</item>
<item>
<title>(SAS) Even you can Use HASH and DOUBLE DASH: It’s that Simple…… - sarathannapareddy</title>
<link>http://snipplr.com/view/17377/even-you-can-use-hash-and-double-dash-its-that-simple/</link>
<description><![CDATA[ <p>In order to understand HASH and DOUBLE HASH concept in SAS you need to know about two different ranges of variables:

1) Numbered list:

When a set of variables have the same prefix, and the rest of the name is a consecutive set of numbers, we can use a single dash (-) to refer to an entire range. Some exs.. are….

VAR1 VAR2 VAR3 VAR4 VAR5

Shortcut list you can use to access all 5 variables is VAR1-VAR5

COL1 COL2 COL3 COL4 COL5 COL6 COL7

Shortcut list you can use to access all 7 variables is COL1-COL7</p> ]]></description>
<pubDate>Thu, 23 Jul 2009 09:26:17 GMT</pubDate>
<guid>http://snipplr.com/view/17377/even-you-can-use-hash-and-double-dash-its-that-simple/</guid>
</item>
<item>
<title>(SAS) SAS programming errors we make..... can be deadly sometimes - sarathannapareddy</title>
<link>http://snipplr.com/view/13594/sas-programming-errors-we-make-can-be-deadly-sometimes/</link>
<description><![CDATA[ <p>The errors I will list here will be very few in number. They are errors that you will likely make at some time if you do not remain alert. These errors could have serious consequences so that is why I have described them as "deadly errors".</p> ]]></description>
<pubDate>Mon, 30 Mar 2009 20:12:33 GMT</pubDate>
<guid>http://snipplr.com/view/13594/sas-programming-errors-we-make-can-be-deadly-sometimes/</guid>
</item>
<item>
<title>(JavaScript) Load images after the web page is loaded - eden159</title>
<link>http://snipplr.com/view/10934/load-images-after-the-web-page-is-loaded/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 05 Jan 2009 10:05:33 GMT</pubDate>
<guid>http://snipplr.com/view/10934/load-images-after-the-web-page-is-loaded/</guid>
</item>
<item>
<title>(Groovy) Grails + Mysql : how to make sure that the table is using InnoDB - callmeblessed</title>
<link>http://snipplr.com/view/10819/grails--mysql--how-to-make-sure-that-the-table-is-using-innodb/</link>
<description><![CDATA[ <p>I need to create all table in InnoDB in my grails application.
you can add this / edit the following code on grails-app/conf/Datasource.groovy</p> ]]></description>
<pubDate>Fri, 02 Jan 2009 11:24:24 GMT</pubDate>
<guid>http://snipplr.com/view/10819/grails--mysql--how-to-make-sure-that-the-table-is-using-innodb/</guid>
</item>
<item>
<title>(PHP) Sorting MySQL data in a GRID - assaado</title>
<link>http://snipplr.com/view/9908/sorting-mysql-data-in-a-grid/</link>
<description><![CDATA[ <p>Here is a working example on how to sort data in a grid.</p> ]]></description>
<pubDate>Wed, 19 Nov 2008 01:24:06 GMT</pubDate>
<guid>http://snipplr.com/view/9908/sorting-mysql-data-in-a-grid/</guid>
</item>
<item>
<title>(PHP) Joining two tables - assaado</title>
<link>http://snipplr.com/view/9907/joining-two-tables/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 19 Nov 2008 01:14:53 GMT</pubDate>
<guid>http://snipplr.com/view/9907/joining-two-tables/</guid>
</item>
<item>
<title>(C) Delete Repeated Numbers - jaircazarin</title>
<link>http://snipplr.com/view/8906/delete-repeated-numbers/</link>
<description><![CDATA[ <p>Given a sorted array return the new length of the array with no-repeated numbers.

Interesting test cases:

* All the same number
* No repetitions
* Empty array
* Negative size
* One element</p> ]]></description>
<pubDate>Thu, 09 Oct 2008 03:02:36 GMT</pubDate>
<guid>http://snipplr.com/view/8906/delete-repeated-numbers/</guid>
</item>
<item>
<title>(PHP) Programming Notes - engel</title>
<link>http://snipplr.com/view/4209/programming-notes/</link>
<description><![CDATA[ <p>Here are some commonly-used notes given in PHP sources, especially in multi-developer projects. They are used to note various things, such as things to improve and bugs at that line.</p> ]]></description>
<pubDate>Wed, 28 Nov 2007 19:19:15 GMT</pubDate>
<guid>http://snipplr.com/view/4209/programming-notes/</guid>
</item>
<item>
<title>(PHP) User input validation and security / general security in PHP and programming in general - pckujawa</title>
<link>http://snipplr.com/view/1989/user-input-validation-and-security--general-security-in-php-and-programming-in-general/</link>
<description><![CDATA[ <p>I got most of these tips out of a great book published by O'Reilly (my favorite web-design publisher): &amp;quot;Programming PHP, 2nd Ed.&amp;quot; by Lerdorf, Tatroe, and McIntyre. Another good book is &amp;quot;Essential PHP Security,&amp;quot; also published by O'Reilly.</p> ]]></description>
<pubDate>Tue, 16 Jan 2007 23:02:38 GMT</pubDate>
<guid>http://snipplr.com/view/1989/user-input-validation-and-security--general-security-in-php-and-programming-in-general/</guid>
</item>
</channel>
</rss>