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.github.yukihane.jar; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; | |
import java.io.Serializable; | |
import java.util.jar.JarEntry; |
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
curl -L -O https://osdn.jp/projects/pgbigm/downloads/63792/pg_bigm-1.1-20150910.tar.gz | |
tar zxf pg_bigm-1.1-20150910.tar.gz | |
cd pg_bigm-1.1-20150910 | |
make USE_PGXS=1 PG_CONFIG=/opt/gitlab/embedded/bin/pg_config | |
sudo make USE_PGXS=1 PG_CONFIG=/opt/gitlab/embedded/bin/pg_config install | |
sudo -u gitlab-psql vi /var/opt/gitlab/postgresql/data/postgresql.conf | |
以下の1行を追加: | |
shared_preload_libraries = 'pg_bigm' |
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
mecab, mecab-ipadicインストール | |
オフィシャル(?): http://taku910.github.io/mecab/ | |
参考: http://love-tennis0708.hatenablog.com/entry/2016/02/20/145001 | |
$ mkdir ~/tmp | |
$ cd ~/tmp | |
$ curl -L -O https://mecab.googlecode.com/files/mecab-0.996.tar.gz | |
現時点での https://github.com/taku910/mecab master HEAD とさほど違いはなさそう | |
$ tar xzvf mecab-0.996.tar.gz | |
$ cd mecab-0.996 |
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
# https://github.com/sameersbn/docker-redmine#installing-plugins | |
# https://github.com/sciyoshi/redmine-slack/issues/57#issuecomment-141964167 | |
cp -r /home/redmine/data/plugins/redmine-slack/app/ /home/redmine/redmine/ |
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
GitLab: | |
https://github.com/gitlabhq/gitlabhq/issues/8530#issuecomment-72125771 | |
insert into identities(user_id, extern_uid, provider) values (2, 'uid=yukihane,ou=People,dc=mycompany,dc=local', 'ldapmain'); | |
Redmine: | |
auth_sources.idを | |
users.auth_source_idに設定 |
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
OpenLDAP | |
基本的には書籍p.476-の手順に従っている。 | |
パッケージインストール | |
sudo yum install openldap-servers openldap-clients libtool-ltdl | |
サービス自動起動 | |
sudo systemctl enable slapd.service |
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://success.tracpath.com/blog/2013/12/11/vboxmanage%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6vagrant-box%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E7%AC%AC%EF%BC%91%E5%9B%9E%EF%BD%9Evboxmanage%E3%82%92%E4%BD%BF%E3%81%A3/ | |
http://memo.saitodev.com/home/virtualbox/ | |
--memory 1024 \ | |
--firmware efi \ | |
--cpus 2 \ | |
--ostype RedHat_64 \ | |
--nic1 nat \ | |
VBoxManage modifyvm demo-sugitani --natpf1 ssh,tcp,,2022,,22 \ | |
--natpf1 apserver,tcp,,8080,,8080 \ |
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
diff --git a/src/gxt3-extension/src/main/java/com/sencha/gxt/data/shared/Store.java b/src/gxt3-extension/src/main/java/com/sencha/gxt/data/shared/Store.java | |
index 1768b85..ffb92a1 100644 | |
--- a/src/gxt3-extension/src/main/java/com/sencha/gxt/data/shared/Store.java | |
+++ b/src/gxt3-extension/src/main/java/com/sencha/gxt/data/shared/Store.java | |
@@ -141,6 +141,8 @@ public abstract class Store<M> implements HasStoreHandlers<M> { | |
private final M model; | |
private final Map<Object, Change<M, ?>> changes = new HashMap<Object, Store.Change<M, ?>>(); | |
+ private Map<String, Boolean> validMap; | |
+ |
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
final BorderLayoutContainer lc = new BorderLayoutContainer(); | |
final TextButton center = new TextButton("center"); | |
lc.setCenterWidget(center); | |
final TextButton west = new TextButton("west"); | |
lc.setWestWidget(west); | |
final VerticalLayoutContainer vlc = new VerticalLayoutContainer(); | |
// VerticalLayoutContainer に明示的に高さを指定すれば回避可能 | |
vlc.setHeight(200); | |
vlc.add(lc, new VerticalLayoutContainer.VerticalLayoutData(1, 1)); | |
vlc.add(new TextButton("bottom"), new VerticalLayoutContainer.VerticalLayoutData(1, -1)); |
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
ERROR: オブジェクト名または列名がないか、空です。SELECT INTO ステートメントの場合は、各列に名前が付いていることを確認してください。その他のステートメントの場合は、空の別名を検索してください。"" または [] として定義された別名は許可されません。別名を有効な名前に変更してください。 | |
Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: h2] Unable to build Hibernate SessionFactory | |
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:954) | |
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:882) | |
at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:58) | |
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55) | |
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:39) | |
at com.github.yukihane.hello.java.jpa.jpa.JpaTest.exec(JpaTest.java:27) | |
at com.github.yukihane.hello.java.jpa.jpa.JpaTest.main(JpaTest.java:23) | |
Caused by: org.hibernate.exception.SQLGrammarException: Error access |