Shammer's Philosophy

My private adversaria

2016-05-01から1ヶ月間の記事一覧

MacOS security update makes openssl version reset

I was faced with the issue that it takes for a while to launch Emacs GUI version and resolved it by the way written as Resolved the issue of 2016-02-12 - Shammerism. But this setting is reset by MacOS X security update. So, I looked for ot…

JSTL if-else sample with c:out

This is my memo. We can write JSP with using c:choose and c:when, c:otherwise behave as if-else syntax. This example inclues c:forEach and sql:query also. Getting some data from database with sql:query, and show them with c:forEach loop an…

How to accept the connection from remote host on PostgreSQL?

I use the postgresql with tomcat, related articles are PostgreSQL JDBC Driver on tomcat8 - Shammerism and Test connecting PostgreSQL DB from tomcat8 - Shammerism, but these article is the case that tomcat and postgresql are running on the …

web.xml config template for Restful Application

The web.xml file included war archive of Java WebApp tends to be bigger with a lot of URIs if there are a lot of functions like Restful Web Service Applications. The maintenance of such applications is very mistakable. The debugging URI mi…

Apache Ant Install into MacOS

Here is a procedure to install Apache Ant manually. Check the latest version at Apache Ant Site Getting latest version ZIP Expand the ZIP(automatically expanded into $HOME/Downloads, I believe) sudo mkdir /usr/local/share/ant sudo cp $ANT_…

Java16進数演算標準版?

Java16進数演算 on String - Shammerismで、自分で16進数の演算をやるようにしてみたが、なんかもっとうまいやり方がありそうな気がして調べたら・・・あった。標準ライブラリでできる。Integer.parseInt(String, int)とかInteger.toString(int, int)を使用…

Java16進数演算 on String

Javaで16進数の計算を行いたい。でも、Hexadecimalというようなクラスはない。String/Integer/Doubleなどのようにあってほしかったが。 とりあえず、16進数の任意の値を文字列で受け取り、それを計算する例。 public class Hexadecimal { private static fin…