<?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 09:10:39 +0000</lastBuildDate>
    <item>
      <title>(Java) Simple XPath expression evaluation - studioevoque</title>
      <link>https://snipplr.com/view/59093/simple-xpath-expression-evaluation</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 26 Sep 2011 19:23:01 UTC</pubDate>
      <guid>https://snipplr.com/view/59093/simple-xpath-expression-evaluation</guid>
    </item>
    <item>
      <title>(Java) Simple H2 Database utility class - studioevoque</title>
      <link>https://snipplr.com/view/56875/simple-h2-database-utility-class</link>
      <description>&lt;p&gt;A simple utility class that uses the H2 SQL Db to maintain a database connection. It also gives a convenience method to run SQL scripts.&#13;
&#13;
_Note:_The init.sql value is hardcoded, and should be replaced by a static variable if needed&lt;/p&gt;</description>
      <pubDate>Wed, 20 Jul 2011 00:21:37 UTC</pubDate>
      <guid>https://snipplr.com/view/56875/simple-h2-database-utility-class</guid>
    </item>
    <item>
      <title>(Java) Disable loading of external DTD in SAXParser - studioevoque</title>
      <link>https://snipplr.com/view/55856/disable-loading-of-external-dtd-in-saxparser</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 29 Jun 2011 01:25:12 UTC</pubDate>
      <guid>https://snipplr.com/view/55856/disable-loading-of-external-dtd-in-saxparser</guid>
    </item>
    <item>
      <title>(Scala) Convert Scala XML to Java DOM - studioevoque</title>
      <link>https://snipplr.com/view/55854/convert-scala-xml-to-java-dom</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 29 Jun 2011 01:21:45 UTC</pubDate>
      <guid>https://snipplr.com/view/55854/convert-scala-xml-to-java-dom</guid>
    </item>
    <item>
      <title>(Bash) Create a 2x2 montage - studioevoque</title>
      <link>https://snipplr.com/view/55474/create-a-2x2-montage</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 19 Jun 2011 04:24:24 UTC</pubDate>
      <guid>https://snipplr.com/view/55474/create-a-2x2-montage</guid>
    </item>
    <item>
      <title>(JavaScript) Load a JavaScript file dynamically - studioevoque</title>
      <link>https://snipplr.com/view/55468/load-a-javascript-file-dynamically</link>
      <description>&lt;p&gt;you need jQuery already loaded for this to work&lt;/p&gt;</description>
      <pubDate>Sat, 18 Jun 2011 20:46:48 UTC</pubDate>
      <guid>https://snipplr.com/view/55468/load-a-javascript-file-dynamically</guid>
    </item>
    <item>
      <title>(CSS) No horizontal scrollbar for web page - studioevoque</title>
      <link>https://snipplr.com/view/55269/no-horizontal-scrollbar-for-web-page</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 15 Jun 2011 22:24:52 UTC</pubDate>
      <guid>https://snipplr.com/view/55269/no-horizontal-scrollbar-for-web-page</guid>
    </item>
    <item>
      <title>(JavaScript) Wait for jQuery to load - studioevoque</title>
      <link>https://snipplr.com/view/54863/wait-for-jquery-to-load</link>
      <description>&lt;p&gt;Sometimes, you need to setup functionality before jQuery is loaded (e.g. because of a template). You can use this snippet to schedule the function after jQuery is loaded.&lt;/p&gt;</description>
      <pubDate>Sat, 04 Jun 2011 06:31:40 UTC</pubDate>
      <guid>https://snipplr.com/view/54863/wait-for-jquery-to-load</guid>
    </item>
    <item>
      <title>(Processing) Rotating an Image around it's center - studioevoque</title>
      <link>https://snipplr.com/view/54301/rotating-an-image-around-its-center</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 24 May 2011 07:37:45 UTC</pubDate>
      <guid>https://snipplr.com/view/54301/rotating-an-image-around-its-center</guid>
    </item>
    <item>
      <title>(CSS) Simple CSS Image Rollover link - studioevoque</title>
      <link>https://snipplr.com/view/53592/simple-css-image-rollover-link</link>
      <description>&lt;p&gt;A simple way to style a link using a CSS sprite. On hover, the image is moved upwards by the image height to reveal the rollover image.&lt;/p&gt;</description>
      <pubDate>Sun, 15 May 2011 06:16:59 UTC</pubDate>
      <guid>https://snipplr.com/view/53592/simple-css-image-rollover-link</guid>
    </item>
    <item>
      <title>(Bash) Get multi-line environment path listing - studioevoque</title>
      <link>https://snipplr.com/view/52928/get-multiline-environment-path-listing</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 03 May 2011 22:15:29 UTC</pubDate>
      <guid>https://snipplr.com/view/52928/get-multiline-environment-path-listing</guid>
    </item>
    <item>
      <title>(Bash) Flatten folder/directory tree - studioevoque</title>
      <link>https://snipplr.com/view/47279/flatten-folderdirectory-tree</link>
      <description>&lt;p&gt;Useful for when you want to move all mp3 files in sub directories into the current dir&lt;/p&gt;</description>
      <pubDate>Mon, 17 Jan 2011 16:11:04 UTC</pubDate>
      <guid>https://snipplr.com/view/47279/flatten-folderdirectory-tree</guid>
    </item>
    <item>
      <title>(Bash) Recursively copy only files with certain extension with rsync - studioevoque</title>
      <link>https://snipplr.com/view/47276/recursively-copy-only-files-with-certain-extension-with-rsync</link>
      <description>&lt;p&gt;Useful for syncing only  MP3 or PDF files which are nested in a deep directory tree&lt;/p&gt;</description>
      <pubDate>Mon, 17 Jan 2011 15:45:46 UTC</pubDate>
      <guid>https://snipplr.com/view/47276/recursively-copy-only-files-with-certain-extension-with-rsync</guid>
    </item>
    <item>
      <title>(Java) Enable anti-aliasing in Swing applications - studioevoque</title>
      <link>https://snipplr.com/view/43801/enable-antialiasing-in-swing-applications</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 09 Nov 2010 17:19:46 UTC</pubDate>
      <guid>https://snipplr.com/view/43801/enable-antialiasing-in-swing-applications</guid>
    </item>
    <item>
      <title>(Java) Get enum from integer value (ordinal) - studioevoque</title>
      <link>https://snipplr.com/view/43711/get-enum-from-integer-value-ordinal</link>
      <description>&lt;p&gt;A simple way to get the enum indicated by its ordinal value.&lt;/p&gt;</description>
      <pubDate>Mon, 08 Nov 2010 01:50:44 UTC</pubDate>
      <guid>https://snipplr.com/view/43711/get-enum-from-integer-value-ordinal</guid>
    </item>
    <item>
      <title>(Java) Simple UTF-8 file writing - studioevoque</title>
      <link>https://snipplr.com/view/43486/simple-utf8-file-writing</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 03 Nov 2010 19:52:14 UTC</pubDate>
      <guid>https://snipplr.com/view/43486/simple-utf8-file-writing</guid>
    </item>
    <item>
      <title>(Java) Read file to string - studioevoque</title>
      <link>https://snipplr.com/view/43373/read-file-to-string</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 01 Nov 2010 10:41:25 UTC</pubDate>
      <guid>https://snipplr.com/view/43373/read-file-to-string</guid>
    </item>
    <item>
      <title>(Java) Delete a directory - studioevoque</title>
      <link>https://snipplr.com/view/43286/delete-a-directory</link>
      <description>&lt;p&gt;A "quick and dirty" way to delete a directory. For more cleaner implementation, see http://www.google.com/codesearch/p?hl=en#SS2by_AKaLs/src/org/apache/commons/io/FileUtils.java&amp;q=cleanDirectory&amp;l=972&lt;/p&gt;</description>
      <pubDate>Sat, 30 Oct 2010 10:16:22 UTC</pubDate>
      <guid>https://snipplr.com/view/43286/delete-a-directory</guid>
    </item>
    <item>
      <title>(Java) Java2sAutoTextField  : non-strict default setting - studioevoque</title>
      <link>https://snipplr.com/view/42425/java2sautotextfield---nonstrict-default-setting</link>
      <description>&lt;p&gt;This is  a modification of the Sun tutorial code that initializes the text editor to accept words that are not part of the auto-complete list. In the terms of the implementation, it is referred to as "not strict".&lt;/p&gt;</description>
      <pubDate>Sun, 17 Oct 2010 05:00:14 UTC</pubDate>
      <guid>https://snipplr.com/view/42425/java2sautotextfield---nonstrict-default-setting</guid>
    </item>
    <item>
      <title>(Java) The Planet enum example - studioevoque</title>
      <link>https://snipplr.com/view/42422/the-planet-enum-example</link>
      <description>&lt;p&gt;An example to make myself remember how powerful Java enums are!&lt;/p&gt;</description>
      <pubDate>Sun, 17 Oct 2010 03:22:15 UTC</pubDate>
      <guid>https://snipplr.com/view/42422/the-planet-enum-example</guid>
    </item>
    <item>
      <title>(Java) Detect double-click in Java Swing - studioevoque</title>
      <link>https://snipplr.com/view/42417/detect-doubleclick-in-java-swing</link>
      <description>&lt;p&gt;Don't forget the nifty event properties to detect double-click !&lt;/p&gt;</description>
      <pubDate>Sun, 17 Oct 2010 01:34:01 UTC</pubDate>
      <guid>https://snipplr.com/view/42417/detect-doubleclick-in-java-swing</guid>
    </item>
    <item>
      <title>(Java) Delete elements from an array given an array of indices - studioevoque</title>
      <link>https://snipplr.com/view/42410/delete-elements-from-an-array-given-an-array-of-indices</link>
      <description>&lt;p&gt;A rough "it works" way to delete elements from an array given the array of indices to delete. A new array is created by copying over the remaining elements.&#13;
&#13;
Any suggestions on how to make this more efficient appreciated :)&lt;/p&gt;</description>
      <pubDate>Sat, 16 Oct 2010 20:39:58 UTC</pubDate>
      <guid>https://snipplr.com/view/42410/delete-elements-from-an-array-given-an-array-of-indices</guid>
    </item>
    <item>
      <title>(XML) Overriding Netbeans build.xml to address SVN folder clean-up - studioevoque</title>
      <link>https://snipplr.com/view/42392/overriding-netbeans-buildxml-to-address-svn-folder-cleanup</link>
      <description>&lt;p&gt;This is used in the build.xml file generated by a Netbeans project, to override the default clean-up behaviour that deletes the 'build' and 'dist' folders. In case these folders are to be maintained in SVN, the following ensures that only the contents of the folders are cleared, leaving the SVN information intact.&#13;
&#13;
Of course, the easiest option is to NOT check in the 'build' and 'dist' folders :)&lt;/p&gt;</description>
      <pubDate>Sat, 16 Oct 2010 08:46:31 UTC</pubDate>
      <guid>https://snipplr.com/view/42392/overriding-netbeans-buildxml-to-address-svn-folder-cleanup</guid>
    </item>
  </channel>
</rss>
