<?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/java</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 15:11:15 GMT</pubDate>
<item>
<title>(Java) medium quality random number generator - fahrenx</title>
<link>http://snipplr.com/view/70883/medium-quality-random-number-generator/</link>
<description><![CDATA[ <p>From Java Concurrency in practice</p> ]]></description>
<pubDate>Mon, 22 Apr 2013 23:16:20 GMT</pubDate>
<guid>http://snipplr.com/view/70883/medium-quality-random-number-generator/</guid>
</item>
<item>
<title>(Java) Iterating through cursor - noloman</title>
<link>http://snipplr.com/view/70435/iterating-through-cursor/</link>
<description><![CDATA[ <p>Iterating through cursor</p> ]]></description>
<pubDate>Fri, 15 Mar 2013 19:59:26 GMT</pubDate>
<guid>http://snipplr.com/view/70435/iterating-through-cursor/</guid>
</item>
<item>
<title>(Groovy) Jar with dependencies task for build.gradle - alces</title>
<link>http://snipplr.com/view/70371/jar-with-dependencies-task-for-buildgradle/</link>
<description><![CDATA[ <p>Custom task using gradle java plugin for build runnable jar file with full dependencies set</p> ]]></description>
<pubDate>Tue, 12 Mar 2013 23:51:12 GMT</pubDate>
<guid>http://snipplr.com/view/70371/jar-with-dependencies-task-for-buildgradle/</guid>
</item>
<item>
<title>(Java) Basic browser in java fx - alexedy</title>
<link>http://snipplr.com/view/70308/basic-browser-in-java-fx/</link>
<description><![CDATA[ <p>don't forget to add jfxrt.jar to class path</p> ]]></description>
<pubDate>Thu, 07 Mar 2013 09:23:09 GMT</pubDate>
<guid>http://snipplr.com/view/70308/basic-browser-in-java-fx/</guid>
</item>
<item>
<title>(Java) One shoot code - nazymko</title>
<link>http://snipplr.com/view/70235/one-shoot-code/</link>
<description><![CDATA[ <p>Just do ti!</p> ]]></description>
<pubDate>Mon, 04 Mar 2013 18:53:35 GMT</pubDate>
<guid>http://snipplr.com/view/70235/one-shoot-code/</guid>
</item>
<item>
<title>(Java) Drawable to Bitmap - noloman</title>
<link>http://snipplr.com/view/70172/drawable-to-bitmap/</link>
<description><![CDATA[ <p>How to convert a drawable to a bitmap</p> ]]></description>
<pubDate>Fri, 01 Mar 2013 02:50:50 GMT</pubDate>
<guid>http://snipplr.com/view/70172/drawable-to-bitmap/</guid>
</item>
<item>
<title>(Java) SendEmail.java - bcmoney</title>
<link>http://snipplr.com/view/70050/sendemailjava/</link>
<description><![CDATA[ <p>Sends an Email message in Java. The properties file should look as follows:
* * *
##################################################  
## Email server settings  
## (default SMTP port is "25", but Gmail uses different one)  
##################################################  
`notificationFrom = donotreply@company.com  `  
  
`notificationCC = teamlead@company.com  `  
  
`notificationTo = product-support-mailing-list@company.com  `  
  
`notificationAuth = true  `  
  
`notificationSecurity = true  `  

`notificationHost = smtp.gmail.com  `  

`notificationPort = 587  `</p> ]]></description>
<pubDate>Fri, 22 Feb 2013 01:41:42 GMT</pubDate>
<guid>http://snipplr.com/view/70050/sendemailjava/</guid>
</item>
<item>
<title>(Java) Refire a real HTTP request on the server... - octaviannitagmailcom</title>
<link>http://snipplr.com/view/69986/refire-a-real-http-request-on-the-server/</link>
<description><![CDATA[ <p>... instead of loading the page from browser's cache: instruct the browser not to cache the pages by adding the following headers to the response

See also: http://stackoverflow.com/questions/49547/making-sure-a-web-page-is-not-cached-across-all-browsers</p> ]]></description>
<pubDate>Mon, 18 Feb 2013 21:52:42 GMT</pubDate>
<guid>http://snipplr.com/view/69986/refire-a-real-http-request-on-the-server/</guid>
</item>
<item>
<title>(Java) Test-Type Exam Correction With Java - eiger824</title>
<link>http://snipplr.com/view/69859/testtype-exam-correction-with-java/</link>
<description><![CDATA[ <p>A simple way of correcting tests with Java. In this piece of code I just defined two possible models or answers, they're all random, but the only thing needed is to update them with valid answers. The length of the test? I just did it for a 10-question test, but it can naturally be extended to the number of answers the teacher may want.</p> ]]></description>
<pubDate>Fri, 08 Feb 2013 06:38:23 GMT</pubDate>
<guid>http://snipplr.com/view/69859/testtype-exam-correction-with-java/</guid>
</item>
<item>
<title>(Java) Basic Database in Java. Updated Version - eiger824</title>
<link>http://snipplr.com/view/69567/basic-database-in-java-updated-version/</link>
<description><![CDATA[ <p>A basic database made in Java. It resembles a mobile phone contacts activity in which user is prompted to introduce some data of new contacts.</p> ]]></description>
<pubDate>Mon, 21 Jan 2013 21:23:58 GMT</pubDate>
<guid>http://snipplr.com/view/69567/basic-database-in-java-updated-version/</guid>
</item>
<item>
<title>(Java) JavaFX always on top - Shoox</title>
<link>http://snipplr.com/view/69423/javafx-always-on-top/</link>
<description><![CDATA[ <p>The dirty hack you'll have to do, if you want to keep your JavaFX application always on top (e.g. as widget).</p> ]]></description>
<pubDate>Fri, 11 Jan 2013 04:19:30 GMT</pubDate>
<guid>http://snipplr.com/view/69423/javafx-always-on-top/</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>(Java) DSTG_Projekt_WebKalkulator_ - DSTG_Kwan</title>
<link>http://snipplr.com/view/69389/dstgprojektwebkalkulator/</link>
<description><![CDATA[ <p>Web aplikacija generira slučajne registracijske oznake za grad Zagreb u odabranom formatu. Ispisuje se i broj mogućih različitih registracijskih tablica za taj format.</p> ]]></description>
<pubDate>Wed, 09 Jan 2013 04:03:10 GMT</pubDate>
<guid>http://snipplr.com/view/69389/dstgprojektwebkalkulator/</guid>
</item>
<item>
<title>(Java) Inserted line into webservice consumer methods to add SOAP Headers - lspellman</title>
<link>http://snipplr.com/view/69126/inserted-line-into-webservice-consumer-methods-to-add-soap-headers/</link>
<description><![CDATA[ <p>When Domino is used to create a webservice consumer, it does not provide an easy way to add SOAP headers to method calls.  To do so, extend the STUB class it provides, copy any methods that need SOAP headers, and insert a line after the 'createCall' to provide that functionality.  See snippet 69125 for the details of the 'createSessionHeader' code.</p> ]]></description>
<pubDate>Sun, 16 Dec 2012 00:36:25 GMT</pubDate>
<guid>http://snipplr.com/view/69126/inserted-line-into-webservice-consumer-methods-to-add-soap-headers/</guid>
</item>
<item>
<title>(Java) Java method to add SOAP header - lspellman</title>
<link>http://snipplr.com/view/69125/java-method-to-add-soap-header/</link>
<description><![CDATA[ <p>Some webservices require a SOAP header to be added to requests (typically with authentication information).  For Domino webservice consumer code, this can be handled by extending the generated stub class and rewriting the service calls that are being used.  Those methods all execute a 'createCall'.  After you have a handle to the call, you can call this custom method to add headers to it.

NOTE:  The oli log methods are to a custom logger (OpenLog) which is setup elsewhere in the class.  Delete if not using OpenLog.</p> ]]></description>
<pubDate>Sun, 16 Dec 2012 00:23:20 GMT</pubDate>
<guid>http://snipplr.com/view/69125/java-method-to-add-soap-header/</guid>
</item>
<item>
<title>(Java) Java - reverse a linked list - djangofan</title>
<link>http://snipplr.com/view/69093/java--reverse-a-linked-list/</link>
<description><![CDATA[ <p>Reverse a linked list using Java.</p> ]]></description>
<pubDate>Thu, 13 Dec 2012 11:30:59 GMT</pubDate>
<guid>http://snipplr.com/view/69093/java--reverse-a-linked-list/</guid>
</item>
<item>
<title>(JavaScript) get send mail - msaudi</title>
<link>http://snipplr.com/view/68949/get-send-mail/</link>
<description><![CDATA[ <p>this helps you to be awsome</p> ]]></description>
<pubDate>Tue, 04 Dec 2012 20:06:45 GMT</pubDate>
<guid>http://snipplr.com/view/68949/get-send-mail/</guid>
</item>
<item>
<title>(Java) Generar Clases skel y stub (RMI) in Netbeans - thescorpion</title>
<link>http://snipplr.com/view/67951/generar-clases-skel-y-stub-rmi-in-netbeans/</link>
<description><![CDATA[ <p>Para genera clases de RMI skel y stub en proceso distribuidos</p> ]]></description>
<pubDate>Fri, 26 Oct 2012 04:41:39 GMT</pubDate>
<guid>http://snipplr.com/view/67951/generar-clases-skel-y-stub-rmi-in-netbeans/</guid>
</item>
<item>
<title>(Java) Sending ExtendScript via Java - layouterlimits</title>
<link>http://snipplr.com/view/67406/sending-extendscript-via-java/</link>
<description><![CDATA[ <p>Just a simple code snippet that uses cmd to send an ExtendScript to an application like Photoshop® or InDesign®.</p> ]]></description>
<pubDate>Thu, 27 Sep 2012 17:17:55 GMT</pubDate>
<guid>http://snipplr.com/view/67406/sending-extendscript-via-java/</guid>
</item>
<item>
<title>(Java) Recoger Cursor de Oracle en Java - thescorpion</title>
<link>http://snipplr.com/view/67289/recoger-cursor-de-oracle-en-java/</link>
<description><![CDATA[ <p>Obtener el cursor de oracle y recorrerlo para sacar los datos</p> ]]></description>
<pubDate>Fri, 21 Sep 2012 03:58:00 GMT</pubDate>
<guid>http://snipplr.com/view/67289/recoger-cursor-de-oracle-en-java/</guid>
</item>
</channel>
</rss>