This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- #!/bin/bash と書いてますが、POSIXモードで動きます | |
- カラム名を出力しないために -N を付与 | |
- -B で出力形式を変更。フィールド区切りはTAB。レコード区切りは改行 | |
- 複数カラムや複数行の場合に、値の内容にタブや改行あるとつらい | |
- -X でXML形式に出力することもできる。その場合は jq や xmllint を利用か? | |
- エラーハンドリングが面倒 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- wildfly-swarm-plugin:1.0.0.Alpha1:create (default) @ wildfly-swarm-example-jaxrs --- | |
5 07, 2015 2:23:17 午前 org.sonatype.guice.bean.reflect.Logs$JULSink warn | |
警告: Error injecting: org.wildfly.swarm.plugin.CreateMojo | |
java.lang.NoClassDefFoundError: org/eclipse/aether/RepositorySystemSession | |
at java.lang.Class.getDeclaredConstructors0(Native Method) | |
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2663) | |
at java.lang.Class.getDeclaredConstructors(Class.java:2012) | |
at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:245) | |
at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:98) | |
at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:629) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://v157-7-201-174.z1d3.static.cnode.jp/file/translator-web.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Demo</title> | |
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script> | |
</head> | |
<body> | |
<p id="a">Demo</p> | |
<button id="btn_add">Add</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// append to pom.xml | |
<dependency> | |
<groupId>org.apache.commons</groupId> | |
<artifactId>commons-lang3</artifactId> | |
<version>3.4</version> | |
</dependency> | |
// using example | |
String randomString = RandomStringUtils.randomAlphanumeric(8); | |
// => length=8, Upper and Lower Alphabet and Numeric |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.test.demo; | |
import com.amazonaws.regions.Region; | |
import com.amazonaws.regions.Regions; | |
import com.amazonaws.services.simpleemail.AmazonSimpleEmailService; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.context.annotation.Configuration; | |
@Configuration | |
public class AppConfig { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.test.demo.web; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.jms.annotation.JmsListener; | |
import org.springframework.jms.core.JmsMessagingTemplate; | |
import org.springframework.messaging.Message; | |
import org.springframework.messaging.support.MessageBuilder; | |
import org.springframework.web.bind.annotation.RequestMapping; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd"> | |
<glassfish-web-app error-url=""> | |
<class-loader delegate="true"/> | |
<jsp-config> | |
<property name="keepgenerated" value="true"> | |
<description>Keep a copy of the generated servlet class' java code.</description> | |
</property> | |
</jsp-config> | |
<session-config> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://examples.oreilly.com/9781565923713/Server.java | |
http://examples.oreilly.com/9781565923713/ProxyServer.java |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.web; | |
import com.example.validation.EitherRequired; | |
import lombok.AllArgsConstructor; | |
import lombok.Data; | |
import lombok.NoArgsConstructor; | |
@Data | |
@AllArgsConstructor | |
@NoArgsConstructor |
OlderNewer