<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><title>Code Snippets</title><description>Recent Added Snippets</description><copyright>MvnSearch</copyright><generator>MvnSearch</generator><item><title>Postmessage</title><link>http://book.mvnsearch.org/index.action?snippet=155</link><description>
                    <![CDATA[
                    Laat alle Postmessages zien.:
                    foreach( $blaat as $data )
{
	print_r($data);
}	
                    ]]>
                </description><pubDate>Wednesday, March 10, 2010 2:52:12 AM CST</pubDate></item><item><title>unitils dependencies</title><link>http://book.mvnsearch.org/index.action?snippet=14</link><description>
                    <![CDATA[
                    Unitils 3.1 dependencies in pom.xml:
                    <!-- unit test-->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.2</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.7</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <version>5.9</version>
            <classifier>jdk15</classifier>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.dbunit</groupId>
            <artifactId>dbunit</artifactId>
            <version>2.4.7</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.easymock</groupId>
            <artifactId>easymock</artifactId>
            <version>2.5.2</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.easymock</groupId>
            <artifactId>easymockclassextension</artifactId>
            <version>2.5.2</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.unitils</groupId>
            <artifactId>unitils-core</artifactId>
            <version>3.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.unitils</groupId>
            <artifactId>unitils-database</artifactId>
            <version>3.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.unitils</groupId>
            <artifactId>unitils-dbmaintainer</artifactId>
            <version>3.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.unitils</groupId>
            <artifactId>unitils-dbunit</artifactId>
            <version>3.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.unitils</groupId>
            <artifactId>unitils-easymock</artifactId>
            <version>3.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.unitils</groupId>
            <artifactId>unitils-inject</artifactId>
            <version>3.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.unitils</groupId>
            <artifactId>unitils-mock</artifactId>
            <version>3.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.unitils</groupId>
            <artifactId>unitils-orm</artifactId>
            <version>3.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.unitils</groupId>
            <artifactId>unitils-spring</artifactId>
            <version>3.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.unitils</groupId>
            <artifactId>unitils-testng</artifactId>
            <version>3.1</version>
            <scope>test</scope>
        </dependency>
                    ]]>
                </description><pubDate>Thursday, June 26, 2008 10:56:09 PM CST</pubDate></item><item><title>create mysql user with DB access</title><link>http://book.mvnsearch.org/index.action?snippet=154</link><description>
                    <![CDATA[
                    &nbsp;Create user and grant the database's privileges.:
                    GRANT ALL ON *.dbname TO 'username'@'localhost' IDENTIFIED BY 'password'
                    ]]>
                </description><pubDate>Monday, March 1, 2010 4:41:45 PM CST</pubDate></item><item><title>Check http url exits</title><link>http://book.mvnsearch.org/index.action?snippet=149</link><description>
                    <![CDATA[
                    &nbsp;Check http url exits, please check example code.:
                    require 'open-uri'
require 'net/http'

def http_url_exists?(url)
  url = URI.parse(url)
  Net::HTTP.start(url.host, url.port) do |http|
    return http.head(url.request_uri).code == "200"
  end
end
                    ]]>
                </description><pubDate>Tuesday, February 23, 2010 8:38:19 PM CST</pubDate></item><item><title>Gmaven plugin</title><link>http://book.mvnsearch.org/index.action?snippet=145</link><description>
                    <![CDATA[
                    gmaven plugin for groovy in pom.xml:
                    <plugin>
                <groupId>org.codehaus.gmaven</groupId>
                <artifactId>gmaven-plugin</artifactId>
                <version>1.2</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <fileset>
                                    <directory>src/main/groovy</directory>
                                    <includes>
                                        <include>**/*.groovy</include>
                                    </includes>
                                </fileset>
                            </sources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
                    ]]>
                </description><pubDate>Friday, February 19, 2010 11:25:37 PM CST</pubDate></item><item><title>Sending file as attachement with Sinatra</title><link>http://book.mvnsearch.org/index.action?snippet=144</link><description>
                    <![CDATA[
                    &nbsp;<span style="font-family: arial; font-size: 14px; color: rgb(51, 51, 51); ">How to send files (attachments) in Sinatra</span>:
                    get '/some/:file' do |file|
  file = File.join('/some/path', file)
  send_file(file, :disposition => 'attachment', :filename => File.basename(file))
end
                    ]]>
                </description><pubDate>Thursday, February 18, 2010 9:31:29 AM CST</pubDate></item><item><title>Groovy Script to SFTP files</title><link>http://book.mvnsearch.org/index.action?snippet=143</link><description>
                    <![CDATA[
                    <span style="font-family: 'Lucida Grande', lucida, Geneva, Arial, sans-serif; font-size: 14px; ">Groovy Script to SFTP files using AntBuilder and Grapes</span>:
                    #!/usr/bin/env groovy

@Grapes([
@Grab('org.apache.ant:ant-jsch:1.7.1'),
@Grab("com.jcraft:jsch:0.1.42"),
@GrabConfig(systemClassLoader = true)
])

def ant = new AntBuilder();
String password = "xxxxxxxx";
ant.scp(trust: 'true', file: "d:/demo.rb", todir: "root@host:/tmp",
        password: "${password}", verbose: "true")
                    ]]>
                </description><pubDate>Wednesday, February 10, 2010 11:57:37 AM CST</pubDate></item><item><title>Ruby script template in *NIX</title><link>http://book.mvnsearch.org/index.action?snippet=138</link><description>
                    <![CDATA[
                    &nbsp;Please use chmod u+x to add execute mode.:
                    #!/usr/bin/env ruby
# -*- coding: UTF-8 -*-

puts "hello"
                    ]]>
                </description><pubDate>Tuesday, January 5, 2010 7:50:38 PM CST</pubDate></item><item><title>Maven site.xml</title><link>http://book.mvnsearch.org/index.action?snippet=140</link><description>
                    <![CDATA[
                    &nbsp;Maven site.xml&nbsp;:
                    <?xml version="1.0" encoding="GBK"?>
<project name="Maven" xmlns="http://maven.apache.org/DECORATION/1.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">

</project>
                    ]]>
                </description><pubDate>Monday, January 25, 2010 11:17:42 AM CST</pubDate></item><item><title>Groovy with Velocity</title><link>http://book.mvnsearch.org/index.action?snippet=139</link><description>
                    <![CDATA[
                    &nbsp;Groovy script with velocity for test:
                    @Grab('org.apache.velocity:velocity:1.6.3')
import org.apache.velocity.VelocityContext
import org.apache.velocity.app.VelocityEngine

template = '''Hello ${name}!
'''

VelocityEngine velocityEngine = new VelocityEngine()
Map context = [:]
context.name = "leijuan"

StringWriter writer = new StringWriter();
velocityEngine.evaluate(new VelocityContext(context), writer, "velocity", template);

String output = writer.toString()

println output
                    ]]>
                </description><pubDate>Monday, January 11, 2010 5:57:15 PM CST</pubDate></item><item><title>Groovy demo script in Linux</title><link>http://book.mvnsearch.org/index.action?snippet=130</link><description>
                    <![CDATA[
                    Groovy demo script in *nix<br>:
                    #!/usr/bin/env groovy

println("Hello world")
                    ]]>
                </description><pubDate>Wednesday, December 9, 2009 6:16:11 PM CST</pubDate></item><item><title>Get stack trace in a String</title><link>http://book.mvnsearch.org/index.action?snippet=43</link><description>
                    <![CDATA[
                    Get stacktrace as string. This feature has included in commons-lang, and you can use&nbsp;<span style="font-family: Helvetica, Arial, sans-serif; font-size: 14px; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><a href="http://commons.apache.org/lang/api-2.4/org/apache/commons/lang/exception/ExceptionUtils.html" title="class in org.apache.commons.lang.exception" target="classFrame">ExceptionUtils</a>&nbsp;to get the same function.</span>:
                    public static String getStackTrace(Throwable t) {
String stackTrace = null;

try {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
t.printStackTrace(pw);
pw.close();
sw.close();
stackTrace = sw.getBuffer().toString();
} catch(Exception ex) {}
return stackTrace;
}
                    ]]>
                </description><pubDate>Saturday, August 16, 2008 1:58:02 PM CST</pubDate></item><item><title>Create tablespace</title><link>http://book.mvnsearch.org/index.action?snippet=118</link><description>
                    <![CDATA[
                    &nbsp;Create oracle tablespace.:
                    create tablespace tablespace_name
  extent management local
  uniform size 1m
  segment space management auto
  datafile '/usr/lib/oracle/xe/oradata/XE/tablespace_name.dbf'
size 512M;
                    ]]>
                </description><pubDate>Tuesday, November 24, 2009 2:29:50 PM CST</pubDate></item><item><title>Maven war resource filter</title><link>http://book.mvnsearch.org/index.action?snippet=137</link><description>
                    <![CDATA[
                    &nbsp;War resource filter in pom.xml:
                    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <configuration>
        <webappDirectory>${warExplodedDirectory}</webappDirectory>
        <webResources>
            <resource>
                <filtering>true</filtering>
                <directory>${basedir}/src/main/webapp/WEB-INF</directory>
                <includes>
                    <include>*.xml</include>
                </includes>
                <targetPath>WEB-INF</targetPath>
            </resource>
        </webResources>
    </configuration>
</plugin>

                    ]]>
                </description><pubDate>Thursday, December 24, 2009 12:11:42 PM CST</pubDate></item><item><title>Groovy oracle script with grape</title><link>http://book.mvnsearch.org/index.action?snippet=136</link><description>
                    <![CDATA[
                    Oracle operation groovy script with grape support:
                    @Grapes([
 @Grab('com.oracle:ojdbc5:11.1.0.7.0'),
 @GrabConfig(systemClassLoader=true)
])

sql = groovy.sql.Sql.newInstance("jdbc:oracle:thin:@localhost:1521:XE", 
                                 "user", "passwd", "oracle.jdbc.OracleDriver")
sql.eachRow("select sysdate as now from dual", { println " -- ${it.now} --"});
                    ]]>
                </description><pubDate>Wednesday, December 23, 2009 10:32:50 AM CST</pubDate></item><item><title>Maven GMaven plugin</title><link>http://book.mvnsearch.org/index.action?snippet=135</link><description>
                    <![CDATA[
                    GMaven plugin in pom.xml:
                    <plugin>
    <groupId>org.codehaus.groovy.maven</groupId>
    <artifactId>gmaven-plugin</artifactId>
</plugin>

                    ]]>
                </description><pubDate>Wednesday, December 23, 2009 12:50:41 AM CST</pubDate></item><item><title>Groovy Grape configuration</title><link>http://book.mvnsearch.org/index.action?snippet=134</link><description>
                    <![CDATA[
                    Groovy Grape configuration with Maven support. The file path is&nbsp;~/.groovy/grapeConfig.xml &nbsp;<div>&nbsp;<br><div><div>The demo code as following:&nbsp;</div><div><br></div><div><div>@Grab('net.sf.json-lib:json-lib:2.3:jdk15')</div><div>def builder = new net.sf.json.groovy.JsonGroovyBuilder()</div><div><br></div><div>def books = builder.books {</div><div>&nbsp;&nbsp; &nbsp;book(title: "Groovy in Action", author: "Dierk Koenig")</div><div>}</div><div><br></div><div>println(books.toString())</div></div></div></div>:
                    <?xml version="1.0"?>
<ivysettings>
    <settings defaultResolver="downloadGrapes"/>
    <resolvers>
        <chain name="downloadGrapes">
            <!-- todo add 'endorsed groovy extensions' resolver here -->
            <ibiblio name="local" root="file:/E:/data/maven_repo" m2compatible="true"/>
            <filesystem name="cachedGrapes">
                <ivy pattern="${user.home}/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml"/>
                <artifact pattern="${user.home}/.groovy/grapes/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/>
            </filesystem>
            <ibiblio name="codehaus" root="http://repository.codehaus.org/" m2compatible="true"/>
            <ibiblio name="ibiblio" m2compatible="true"/>
            <ibiblio name="java.net2" root="http://download.java.net/maven/2/" m2compatible="true"/>
        </chain>
    </resolvers>
</ivysettings>
                    ]]>
                </description><pubDate>Wednesday, December 23, 2009 12:35:39 AM CST</pubDate></item><item><title>TeamCity notification</title><link>http://book.mvnsearch.org/index.action?snippet=133</link><description>
                    <![CDATA[
                    &nbsp;<span style="font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><span style="line-height: normal; font-size: 21px; color: rgb(0, 51, 102); font-weight: bold; ">Google Mail</span><table class="confluenceTable" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; clear: left; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; border-collapse: collapse; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><tbody><tr style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; "><th class="confluenceTh" style="font-size: 10pt; line-height: 13pt; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-color: rgb(240, 240, 240); text-align: left; vertical-align: top; color: rgb(0, 51, 102); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Property</th><th class="confluenceTh" style="font-size: 10pt; line-height: 13pt; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-color: rgb(240, 240, 240); text-align: left; vertical-align: top; color: rgb(0, 51, 102); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Value</th></tr><tr style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; "><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">SMTP host</td><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><tt>smtp.gmail.com</tt></td></tr><tr style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; "><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">SMTP port</td><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">465</td></tr><tr style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; "><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Send email messages from</td><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Type an e-mail address to send notifications from.</td></tr><tr style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; "><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Use TLS (SSL)</td><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Enable the option.</td></tr><tr style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; "><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Test connection</td><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Click to enter the an e-mail address to send a test message to.</td></tr><tr style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; "><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Save</td><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Save current settings.<br><br></td></tr></tbody></table><h2 style="line-height: normal; font-weight: bold; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 16pt; margin-top: 24px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 51, 102); border-bottom-color: rgb(60, 120, 181); ">Google Talk</h2><table class="confluenceTable" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; clear: left; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; border-collapse: collapse; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><tbody><tr style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; "><th class="confluenceTh" style="font-size: 10pt; line-height: 13pt; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-color: rgb(240, 240, 240); text-align: left; vertical-align: top; color: rgb(0, 51, 102); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Property</th><th class="confluenceTh" style="font-size: 10pt; line-height: 13pt; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; background-color: rgb(240, 240, 240); text-align: left; vertical-align: top; color: rgb(0, 51, 102); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Value</th></tr><tr style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; "><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Server</td><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">talk.google.com</td></tr><tr style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; "><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Port</td><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">5222</td></tr><tr style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; "><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Server user</td><td class="confluenceTd" style="font-size: 10pt; line-height: 13pt; color: rgb(0, 0, 0); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; vertical-align: top; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Full username with domain part if you use Google Apps for domain</td></tr></tbody></table></span>:
                    Teamcity notification
                    ]]>
                </description><pubDate>Tuesday, December 22, 2009 9:27:56 AM CST</pubDate></item><item><title>Web Socket in Chrome</title><link>http://book.mvnsearch.org/index.action?snippet=132</link><description>
                    <![CDATA[
                    &nbsp;From Chrome&nbsp;4.0.249.0, you can use websocket.&nbsp;:
                    if ("WebSocket" in window) {
  var ws = new WebSocket("ws://example.com/service");
  ws.onopen = function() {
    // Web Socket is connected. You can send data by send() method.
    ws.send("message to send"); ....
  };
  ws.onmessage = function (evt) { var received_msg = evt.data; ... };
  ws.onclose = function() { // websocket is closed. };
} else {
  // the browser doesn't support WebSocket.
}
                    ]]>
                </description><pubDate>Friday, December 11, 2009 4:53:08 PM CST</pubDate></item><item><title>Gemfile for gem Bundler</title><link>http://book.mvnsearch.org/index.action?snippet=131</link><description>
                    <![CDATA[
                    &nbsp;<span style="font-family: helvetica, arial, freesans, clean, sans-serif; font-size: 13px; line-height: 19px; ">Bundler is a tool that manages gem dependencies for your ruby application. It takes a gem manifest file and is able to fetch, download, and install the gems and all child dependencies specified in this manifest. It can manage any update to the gem manifest file and update the bundled gems accordingly. It also lets you run any ruby code in context of the bundled gem environment. please execute gem install bundler first. For more, please visit&nbsp;<a href="http://github.com/wycats/bundler">http://github.com/wycats/bundler</a>&nbsp;</span>:
                    # Specify a dependency on rails. When the bundler downloads gems,
# it will download rails as well as all of rails' dependencies (such as
# activerecord, actionpack, etc...)
#
# At least one dependency must be specified
gem "rails"

# Specify a dependency on rack v.1.0.0. The version is optional. If present,
# it can be specified the same way as with rubygems' #gem method.
gem "rack", "1.0.0"

# Specify a dependency rspec, but only require that gem in the "testing"
# environment. :except is also a valid option to specify environment
# restrictions.
gem "rspec", :only => :testing

# Specify a dependency, but specify that it is already present and expanded
# at vendor/rspec. Bundler will treat rspec as though it was the rspec gem
# for the purpose of gem resolution: if another gem depends on a version
# of rspec satisfied by "1.1.6", it will be used.
#
# If a gemspec is found in the directory, it will be used to specify load
# paths and supply additional dependencies.
#
# Bundler will also recursively search for *.gemspec, and assume that
# gemspecs it finds represent gems that are rooted in the same directory
# the gemspec is found in.
gem "rspec", "1.1.6", :vendored_at => "vendor/rspec"

# Works exactly like :vendored_at, but first downloads the repo from
# git and handles stashing the files for you. As with :vendored_at,
# Bundler will automatically use *.gemspec files in the root or anywhere
# in the repository.
gem "rails", "3.0.pre", :git => "git://github.com/rails/rails.git"

# Add http://gems.github.com as a source that the bundler will use
# to find gems listed in the manifest. By default,
# http://gems.rubyforge.org is already added to the list.
#
# This is an optional setting.
source "http://gems.github.com"

# Specify where the bundled gems should be stashed. This directory will
# be a gem repository where all gems are downloaded to and installed to.
#
# This is an optional setting.
# The default is: vendor/gems
bundle_path "my/bundled/gems"

# Specify where gem executables should be copied to.
#
# This is an optional setting.
# The default is: bin
bin_path "my/executables"

# Specify that rubygems should be completely disabled. This means that it
# will be impossible to require it and that available gems will be
# limited exclusively to gems that have been bundled.
#
# The default is to automatically require rubygems. There is also a
# `disable_system_gems` option that will limit available rubygems to
# the ones that have been bundled.
disable_rubygems
                    ]]>
                </description><pubDate>Thursday, December 10, 2009 11:24:00 PM CST</pubDate></item></channel></rss>