Shammer's Philosophy

My private adversaria

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

Is normal cons? Is dot cons?

There is a case to want to know that the cons is normal cons or dotted cons. In detail, the cons is like ("A" "B") or ("A" . "B"). These cons have a difference how to handle right element. If the cons is like ("A" "B"), the function cadr c…

Using find-if instead of remove-if-not

This is a continuous article of remove-if と remove-if-not を理解する - Shammerism and find と remove-if-not - Shammerism. Lisp functions end-with -not would be deprecated in the future, so I have to get used to use functions which are not…

Lisp HTTP Client handling chunked responses

I wrote an HTTP client with ClozureCL, and this can handle chunked response. (defparameter *remote-host* "d.hatena.ne.jp") (defparameter *remote-port* 80) (defparameter *client-stream* nil) (defmacro connect-operation (&rest body) `(with-o…

Bash Shell Script my pocket reference - 20160316

Updated from Bash Shell Script my pocket reference - 20151206 - Shammerism. Added the way how to check if the valuable is not blank and others. if 文 sample if basic if [ $# -ne 1 ];then echo "Usage: $0 [123]"; exit 1; fi if [ $1 -eq 1 ];t…

Waiting until network enabled

If I have something to do when the host launched and it requires network, I have to consider that network access not prepared when the something invoked. It is useful to wait network preparation completed. This is a sample. while true; do …

Test connecting PostgreSQL DB from tomcat8

This is an continued article of PostgreSQL JDBC Driver on tomcat8 - Shammerism. There is a JSP tag library to connect Database and showing the search result. There are a lot of links, one of them is https://www.tutorialspoint.com/jsp/jsp_s…

PostgreSQL JDBC Driver on tomcat8

I setup DB Application on tomcat8, host OS is Debian Jessie and JavaVM is OpenJDK 1.7.0_151. At first, I used JDBC Driver which can be installed with apt-get, but it doesn't work fine. I saw a stack trace which is began with "java.lang.Abs…