2016-01-01から1年間の記事一覧

Indify String Concatenation

I am very interested about this http://openjdk.java.net/jeps/280. And I had a session about this which is presented by @bitter_fox who is one of JDK comitter.Due to my poor skill, I have no idea about below difference which is the result o…

Try to use Jigsaw(No2)

I just wanted to use Jigsaw by myself. So I found this articlehttp://openjdk.java.net/projects/jigsaw/quick-start and had the session about Jigsaw which is presented by @skrb. The material is here JavaOne 2016 - Java SE Update - from Yuich…

try to use Jigsaw

The original code is herehttp://openjdk.java.net/projects/jigsaw/quick-start I just wanted to use Jigsaw. Directory code Main.java package com.greetings; public class Main { public static void main(String... args) { System.out.println("Gre…

how to cast long value to int

This is just memo about how to cast long value to int. From JavaSE8 you can use Math.toIntExact to avoid overflows while you do not know. Sample.java public class Sample { public static void main(String... args) { Sample sample = new Sampl…

Creating Directory by NIO2

creating directory create dir1 create dir2/dir3 with permission("rwxrwxr-x") As you can see the below result, the permission is set only to the dir3. This is obvious, since Files.setPosixFilePermissions apply only to the path(dir3). Anyway…

Java NIO2 UnmappableCharacterException

English follows Japanese. 以下のようにファイルの出力をNIOからNIO2に書き換えた場合、出力時の値によっては動作が違ってきます。 「Pokémon」を文字コードをsjisを指定してファイル出力する処理をNIOとNIO2で記述してみました。 NIOの場合は、正常終了す…

Mail template sample

@bufferingsさんのセッションでThymeleaf3からtextでも使用できることを学んだので、ちょっと試してみました。 Sample.java package com.sample; import java.io.IOException; import java.io.Writer; import java.nio.file.Files; import java.nio.file.Pat…

JCPにAssociate Member(個人)として登録

JCPのメンバータイプは、すごく簡単に以下のサイトに書いています。 Java Community Process Meeting に行ってきました - tomoTaka’s blog今回は、個人で参加する場合の手順を簡単に書いています。 基本的に以下のような手順になります。 Oracle's account作…

JCPにKanJavaのPartner Membershipとして登録

簡単に説明すると以下のような手順になります。 Oracle's account作成 メールが来るので認証 上記で作成したアカウントでJCPのサイトにsign-in My ProfileでKanJavaを関連つけ KanJavaの代表者の承認 PMOがアカウントを関連付け 詳細は以下のようになります…

Java Community Process Meeting に行ってきました

kanjava.connpass.comに行ってきました。 JCPについて by the community, for the community ということで 2016年4月にJSR364でBroadening JCP Membershipとして参加しやすくなりました。 今までは、企業として参加する場合、年会費が必要だったのですが、無…

The workshop of Cloud Native Java

I wen to this workshop 8th July 2016 in Osaka. github.com The speaker was Mr.@starbuxman who is a Java champion. The session was all in English, so I could not understand all of them. In addition, since I have little knowledge, I should ha…

Cloud Native Java勉強会に行ってきました

kanjava.connpass.comに行ってきました。 @starbuxmanさんのセッション。すごく楽しかったです。 参加する前に、もっとSpringとかの知識があれば、学べることが更に多くなったのですが、、、 workshopのサイト github.com 2番目に好きなサイトとして以下のサ…

DockerでJenkinsを使ってみる

ここhttps://hub.docker.com/_/jenkins/を参考に、ちょっとDockerを使ってjenkinsを使ってみました。 そもそも長くDocker使っていなかったので、起動しなくなってました(汗) なので新たにDocker をinstall ちょっと変わってて使いやすくなってます! Docke…

Jenkins MultiBranch Pipeline でエラーは解決しました

jenkins.ioを参考に、Multibranch Pipeline を使ってみました。 新規プロジェクト作成 プロジェクト名を入力、Multibranch Pipelineを選択して作成。 sourceを指定 以前に作成してgithubにおいていたプロジェクトを指定 GitHub - tomoTaka01/SseClientSample…

just memo for starting Jenkins2.0

install jenkins.iohere is the site you can download the Jenkins2.0.war. start Jenkins.war java -jar /Applications/Jenkins/jenkins.warThere is another way to start Jenkins, but an error occurs... https://wiki.jenkins-ci.org/display/JENKINS/…

Create two files and check them

The two files have different charset and line separator. see details the below. filename line separator charset contents filesjis.txt CR LF sjis 1行め 2行め fileutf8.txt LF utf8 1行め 2行め I just wanted to know how to write and read f…

File Line Separatorをちょっと確認メモ

改行コードを確認したかったので、9行目で明示的にWindowsの「CR」「LF」(\r\n)を指定した場合と、10行目でシステムプロパティより改行コードを取得した場合(Mac)の違いをHexdecimal表示、Binary表示してみました。 結果は以下のように表示されま…

第7回大阪Jenkins勉強会に参加してきました。

第7回大阪Jenkins勉強会に参加してきました。 スタッフとして受付けをお手伝いしていたので、セッションのすべてが聞けてないのですが、とにかく楽しかったです! いろいろ新しい機能、新しいUI、新しいJenkinsの使い方が紹介されていました。 初めての自…

Jenkinsの新しいUIを試してみました

第7回大阪Jenkins勉強会に参加してきて、新しいUIがとても綺麗だったのでちょっと試してみました。 github.comを参考に以下の手順で(このベージに書いていることを順番に実行しただけですが、、、) ちなみに環境は、OS X El Capitanです。mavenも必要で…

ブランチでの複数回コミットを1つにするメモ

git

Gitで、ブランチ:Branch1を作成して、test.txtファイルを3回修正してそれぞれコミットしたのをremote (github)にpushしたあとで、1回のコミットにしたい場合のメモ 最初 3回コミットしてgithubにプッシュしたのでコミット履歴が3回表示されている これを1…

English Blog (2016.05.21) "The New Linux Manual" reading workshop

I went to "The new Linux Manual" reading workshop last Saturday. It was held by the two authors and free of charge, thanks to the authors.Everybody read each section silently and asked the authors something. Moreover, they showed us some t…

The Night Hacking Tour in Osaka

I went to the Night Hacking Tour in Osaka. kanjava.connpass.com It is one of the Tour which two Java evangelists go through Japan by motorbike and have some sessions some places. One of them is Mr. Stephen Chin who is Java Community Manage…

新しいLinuxの教科書を読む会に参加してきました

linuxbook.connpass.com に参加してきました。 著者の三宅 英明さん@mollifier、大角 祐介さんからの発表、質疑応答もあって楽しかったです! すでに全部読んで参加したのですが、著者の方から説明を聞くとわかりやすいです。 勉強会では、いろいろ質問もで…

JavaSE9 Project Jigsawをちょっと試してみました。

Project Jigsaw itpro.nikkeibp.co.jp 上記 @skrbさんのITProの記事の内容をDockerを使ってCentOS7, JDK9の環境で試してみました。 環境作成 tomotaka.hatenablog.com Directory 構成 最終的な実行結果 adder.jar 作成 javac -d bin src/module-info.java sr…

Try Early Access Releases jdk9 on centos7

set up for centos7 docker run -it centos:latest yum -y upgrade yum -y install wget cat /etc/redhat-release add my user account useradd tomo su - tomoinstall jdk9 wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=acce…

English Blog (2016.04.27)

I will go to a cafe with my friend to have breakfast this Saturday morning before going the gym. Since the cafe is close to our house, we will go there by bike and meet up in front of it.現地集合の言い方が難しかった ここでは、カフェの前で…

English Blog (2016.04.13)

I went to the gym close to my house last Saturday and Sunday. When I go there, I always take a yoga lesson. It really makes me relax. I think yoga has been getting popular recently because there are three lessons on Saturday. When I regist…

ApacheとTomcat7の連携メモ

Apache 前回 Docker centos6 jdk8 - tomoTaka’s blog のcentos6,jdk8のdocker imageにさらにApacheをinstall. ここ Dockerコンテナを作成してApache2.2を動かす - Qiitaを参考にさせていただきました。 yum install http sed -i -e 's/\#ServerName www.exam…

Docker centos6 jdk8

centos まずcentos version6を取得 docker pull centos:6 jdk8 ここdocker-java8/Dockerfile at master · Mashape/docker-java8 · GitHubと http://d.hatena.ne.jp/necoyama3/20110505/1304587888 を参考に、上記centosを起動し、jdk8をinstall. docker run …

Macの設定メモ

mac

Macを設定するときのメモ。以下の記事を参考にさせていただきました。 ありがとうございます! IME(日本語入力) Google 日本語入力よりdownload キーボードの設定 JIS配列のMacBookAirをUS配列として使う - Qiita vim ~.vimrcファイルの設定をgistにアップ g…