<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/ayikat/">
    <title>tectectak</title>
    <link>http://w.atwiki.jp/ayikat/</link>
    <atom:link href="https://w.atwiki.jp/ayikat/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>tectectak</description>

    <dc:language>ja</dc:language>
    <dc:date>2013-07-22T02:05:27+09:00</dc:date>
    <utime>1374426327</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/ayikat/pages/88.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ayikat/pages/87.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ayikat/pages/86.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ayikat/pages/85.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ayikat/pages/84.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ayikat/pages/83.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ayikat/pages/82.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ayikat/pages/81.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ayikat/pages/80.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/ayikat/pages/79.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/ayikat/pages/88.html">
    <title>DynamoDB</title>
    <link>https://w.atwiki.jp/ayikat/pages/88.html</link>
    <description>
      URL
http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/JavaQueryScanORMModelExample.html
http://d.hatena.ne.jp/petach/20120312/1331533690
http://d.hatena.ne.jp/shin/20120125/p1

Sample
        DynamoDBQueryExpression&lt;Reply&gt; queryExpression = new DynamoDBQueryExpression&lt;Reply&gt;()
            .withHashKeyValues(replyKey)
            .withRangeKeyCondition(&quot;ReplyDateTime&quot;, rangeKeyCondition);
                
        List&lt;Reply&gt; betweenReplies = mapper.query(Reply.class, queryExpression);
        
        for (Reply reply : betweenReplies) {
            System.out.format(&quot;Id=%s, Message=%s, PostedBy=%s %n, PostedDateTime=%s %n&quot;, 
                    reply.getId(), reply.getMessage(), reply.getPostedBy(), reply.getReplyDateTime() );
        }

インスタンス生成
 BasicAWSCredentials ac = new BasicAWSCredentials(access_key, secret_keykey);
 AmazonDynamoDBClient client = new AmazonDynamoDBClient(ac);

データの取得(1件取得)
 //検索のキーを指定
 Key key = new Key(new AttributeValue().w    </description>
    <dc:date>2013-07-22T02:05:27+09:00</dc:date>
    <utime>1374426327</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ayikat/pages/87.html">
    <title>taglib</title>
    <link>https://w.atwiki.jp/ayikat/pages/87.html</link>
    <description>
      web.xml
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
 &lt;web-app xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns=&quot;http://[[java]].sun.com/xml/ns/j2ee&quot;
 xmlns:web=&quot;http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd&quot; version=&quot;2.4&quot;&gt;
  &lt;servlet&gt;
    &lt;servlet-name&gt;hello&lt;/servlet-name&gt;
    &lt;servlet-class&gt;com.example.part1&lt;/servlet-class&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;hello&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/servlet/hello&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;jsp-config&gt;
    &lt;taglib&gt;
      &lt;taglib-uri&gt;http://www.javaroad.jp/tags/br&lt;/taglib-uri&gt;
      &lt;taglib-location&gt;/WEB-INF/br.tld&lt;/taglib-location&gt;
    &lt;/taglib&gt;
  &lt;/jsp-config&gt;
 &lt;/web-app&gt;

br.tld
 &lt;?xml version=&quot;1.0&quot; ?&gt;
 &lt;taglib xmlns=&quot;http://java.sun.com/xml/ns/j2ee&quot;
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
        xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/j2ee    </description>
    <dc:date>2013-07-10T03:04:41+09:00</dc:date>
    <utime>1373393081</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ayikat/pages/86.html">
    <title>sample.jsp</title>
    <link>https://w.atwiki.jp/ayikat/pages/86.html</link>
    <description>
       &lt;%@ page language=&quot;[[java]]&quot; contentType=&quot;text/html; charset=utf-8&quot; pageEncoding=&quot;utf-8&quot;%&gt;
 &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
 &lt;html&gt;
 &lt;head&gt;
 &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-31j&quot;&gt;
 &lt;title&gt;view&lt;/title&gt;
 &lt;script language=&quot;[[javascript]]&quot;&gt;
 function onPriviousPage() {
    var a = document.bbb.abc.value;
    location.href=a;
 }
 &lt;/script&gt;
 &lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
 .samp {
    border: none;
    width: 8.5em; 
    word-wrap: break-word;
 }
 --&gt;
 &lt;/style&gt;
 &lt;/head&gt;
 &lt;body&gt;
 &lt;% String sam = (String)request.getAttribute(&quot;sam&quot;);%&gt;
 &lt;form name=&quot;bbb&quot;&gt;
 &lt;br&gt;
 下のボタンをクリック&lt;br&gt;&lt;br&gt;
 &lt;input type=&quot;button&quot; value=&quot;遷移する&quot; onclick=&quot;onPriviousPage()&quot;&gt;
 &lt;br&gt;
 &lt;input type=&quot;text&quot; name=&quot;abc&quot; value=&quot;&quot;/&gt;
 &lt;br&gt;
 &lt;div class=&quot;samp&quot;&gt;&lt;%= sam %&gt;&lt;/div&gt;
 &lt;br&gt;
 &lt;/form&gt;
 &lt;/body&gt;
 &lt;/html&gt;

　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　    </description>
    <dc:date>2013-07-09T02:34:51+09:00</dc:date>
    <utime>1373304891</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ayikat/pages/85.html">
    <title>spring</title>
    <link>https://w.atwiki.jp/ayikat/pages/85.html</link>
    <description>
      http://viralpatel.net/blogs/spring-3-mvc-themes-tutorial-example/


&lt;link href=&quot;${pageContext.request.contextPath}/styles/themes/default.css&quot; rel=&quot;stylesheet&quot;&gt; 


nweb.xml i add :

&lt;servlet-mapping&gt;
    &lt;servlet-name&gt;default&lt;/servlet-name&gt;
    &lt;url-pattern&gt;*.css&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
    &lt;servlet-name&gt;default&lt;/servlet-name&gt;
    &lt;url-pattern&gt;*.js&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
    &lt;servlet-name&gt;default&lt;/servlet-name&gt;
    &lt;url-pattern&gt;*.gif&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
    &lt;servlet-name&gt;default&lt;/servlet-name&gt;
    &lt;url-pattern&gt;*.jpg&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
    &lt;servlet-name&gt;default&lt;/servlet-name&gt;
    &lt;url-pattern&gt;*.png&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;

&lt;mvc:resources mapping=&quot;/css/**&quot; location=&quot;/css/&quot;/&gt;


href=&quot;&lt;c:url value=&#039;/css/bootstrap.css&#039;/&gt;&quot;
And this will thus mean: in the css folder, right under the root of the webapp. If the context path of your webapp    </description>
    <dc:date>2013-07-04T08:30:46+09:00</dc:date>
    <utime>1372894246</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ayikat/pages/84.html">
    <title>StringTemplate</title>
    <link>https://w.atwiki.jp/ayikat/pages/84.html</link>
    <description>
      http://www.stringtemplate.org/index.html
http://www.antlr.org/
http://www.stringtemplate.org/download/

http://www.antlr.org/wiki/display/ST4/Using+StringTemplate+with+Java#UsingStringTemplatewithJava-install

**v2.2
http://www.ii-okinawa.ne.jp/~hrk/st22sample/doc.html#N10022

**v3

**[[v4]]
http://www.antlr.org/wiki/display/ST4/StringTemplate+4+Documentation
http://mvnrepository.com/artifact/org.antlr/ST4/4.0.7
http://www.antlr.org/wiki/display/ST4/Using+StringTemplate+with+Java#UsingStringTemplatewithJava-install
　
https://weblogs.[[java]].net/blog/aberrant/archive/2010/05/25/using-stringtemplate-part-1-introduction-stringtemplate

参考
velocity
http://codezine.jp/article/detail/72

　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　    </description>
    <dc:date>2013-06-26T02:26:21+09:00</dc:date>
    <utime>1372181181</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ayikat/pages/83.html">
    <title>javascript</title>
    <link>https://w.atwiki.jp/ayikat/pages/83.html</link>
    <description>
      　
-Sample1
&lt;form name=&quot;frm&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
&lt;input type=&quot;checkbox&quot; value=&quot;1&quot; onclick=&quot;if(document.frm.c.disabled==true){document.frm.c.disabled=false;}else{document.frm.c.disabled=true;}&quot;&gt;
&lt;input type=&quot;button&quot; name=&quot;c&quot; value=&quot;check1&quot; onclick=&quot;alert(&#039;aaaa&#039;);&quot; disabled&gt;
&lt;/form&gt;

　

 function change_pulldown(){
   pulldown_option = document.getElementById(&quot;hoge&quot;).getElementsByTagName(&#039;option&#039;);
   for(i=0; i&lt;pulldown_option.length;i++){
      if(pulldown_option[i].value == &quot;クラブマンハイレッグ&quot;){
         pulldown_option[i].selected = true;
         break;
      }
   }
 }
 &lt;select id=&quot;hoge&quot;&gt;
   &lt;option value=&quot;イングラム&quot;&gt;イングラム&lt;/option&gt;
   &lt;option value=&quot;グリフォン&quot;&gt;グリフォン&lt;/option&gt;
   &lt;option value=&quot;タイラント2000&quot;&gt;タイラント2000&lt;/option&gt;
   &lt;option value=&quot;クラブマンハイレッグ&quot;&gt;クラブマンハイレッグ&lt;/option&gt;
 &lt;/select&gt;


 &lt;head&gt;
 &lt;script language=&quot;javascript&quot;&gt;
 function onPriviousPage() {
  var a = document.getElementById(&quot;idName&quot;).innerHTML;
  a = document.forms[0].abc.value;
  a = document.bbb.abc.    </description>
    <dc:date>2013-07-08T02:56:22+09:00</dc:date>
    <utime>1373219782</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ayikat/pages/82.html">
    <title>Spock</title>
    <link>https://w.atwiki.jp/ayikat/pages/82.html</link>
    <description>
      http://grails.jp/news/testing-grails.html
http://jggug.doorkeeper.jp/events/3872

http://www.christianoestreich.com/2012/11/domain-constraints-grails-spock-updated/
http://yamkazu.hatenablog.com/entry/20120519/1337434864
http://ldaley.com/post/1281387832/spocks-new-matching-support

http://grails.1312388.n4.nabble.com/Spock-unit-test-service-tha-use-other-services-td4637977.html
http://grails.1312388.n4.nabble.com/bootstrapping-problem-td1357649.html
http://grails.org/doc/1.0.x/ref/Domain%20Classes/addTo.html
http://mrpaulwoods.wordpress.com

github
 grails-spock-examples
 geb-example-grails


grails test-app :spock



  import grails.plugin.spock.*
  @Grab(&#039;org.spockframework:spock-core:0.7-groovy-2.0&#039;)
  class ColorSpec extends UnitSpec {
    def &#039;ColorのcolorNameで検索できる&#039;() {
        setup:
                mockDomain(Color)
        when: &#039;Colorの保存&#039;
                new Color(colorName: colorName).save()
        then: &#039;mockDomainを使ってcolorNameで検索&#039;
               </description>
    <dc:date>2013-06-04T02:10:34+09:00</dc:date>
    <utime>1370279434</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ayikat/pages/81.html">
    <title>CodeNarcRules.groovy</title>
    <link>https://w.atwiki.jp/ayikat/pages/81.html</link>
    <description>
      	import org.codenarc.rule.basic.ThrowExceptionFromFinallyBlockRule
	
	ruleset {
		
		//description &#039;A sample Groovy RuleSet&#039;
		
		//ruleset(&#039;rulesets/basic.xml&#039;) {
		//	&#039;CatchThrowable&#039; {
		//		priority = 1
		//		enabled = false
		//	}
		//	&#039;EqualsAndHashCode&#039; priority:3
		//	exclude &#039;Empty*&#039;
		//}
		
		rule(ThrowExceptionFromFinallyBlockRule) {
			priority = 3
		}
		
		//rule(&quot;rules/MyCustomRuleScript.groovy&quot;)
		
		//ruleset(&#039;MyGroovyRuleSet.groovy&#039;)
		
		EmptyMethod{
			doNotApplyToClassNames = &quot;*Controller&quot;
		}
		
		[[Grails]]PublicControllerMethod{
			enabled = false
		}
		
		MethodSize {
			maxLines = 5
			applyToClassNames = &#039;*Controller&#039;
		}
		
		MethodSize {
			maxLines = 10
			doNotApplyToClassNames = &#039;*Controller&#039;
		}
		
	}

　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　    </description>
    <dc:date>2013-05-17T01:38:43+09:00</dc:date>
    <utime>1368722323</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ayikat/pages/80.html">
    <title>BuildConfig.groovy</title>
    <link>https://w.atwiki.jp/ayikat/pages/80.html</link>
    <description>
      	grails.project.class.dir = &quot;target/classes&quot;
	grails.project.test.class.dir = &quot;target/test-classes&quot;
	grails.project.test.reports.dir = &quot;target/test-reports&quot;
	
	grails.project.dependency.resolution = {
	
	    inherits &quot;global&quot;
	    log &quot;warn&quot;
	
	    repositories {
	        grailsPlugins()
	        grailsHome()
	        grailsCentral()
	        mavenCentral()
	        grailsRepo &quot;http://grails.org/plugins&quot;
	//        mavenRepo &quot;http://m2repo.spockframework.org/snapshots&quot;
	    }
	
	    dependencies {
	        compile &#039;redis.clients:jedis:2.1.0&#039;
	    }
	
	    plugins {
	        build &quot;:release:2.0.3&quot;, {
	            export = false
	        }
	        test(&#039;:code-coverage:1.2.5&#039;) {
	            export = false
	        }
	        test(&#039;:codenarc:0.17&#039;) {
	            export = false
	        }
	    }
	}

	//codenarc {
	//    processTestUnit = false
	//    processTestIntegration = false
	//    propertiesFile = &#039;codenarc.properties&#039;
	//    ruleSetFiles = &quot;    </description>
    <dc:date>2013-05-16T23:59:51+09:00</dc:date>
    <utime>1368716391</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/ayikat/pages/79.html">
    <title>CodeNarc</title>
    <link>https://w.atwiki.jp/ayikat/pages/79.html</link>
    <description>
      　
***Reference Site
RuleIndex
http://codenarc.sourceforge.net/codenarc-rule-index.html
GrailsRules
http://codenarc.sourceforge.net/codenarc-rules-grails.html
Creating a RuleSet
http://codenarc.sourceforge.net/codenarc-creating-ruleset.html
Reference 
http://farjinaarad.binaryvillains.com/configure-grails-codenarc-plugin/


***Command
Install
grails install-plugin codenarc

Run
grails codenarc


***Edit
[[BuildConfig.groovy]]

***Make
[[CodeNarcRules.groovy]]　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　
　

　    </description>
    <dc:date>2013-05-17T01:30:21+09:00</dc:date>
    <utime>1368721821</utime>
  </item>
  </rdf:RDF>
