Internationalization (i18n) Java

・Double or more byte language charcter code outpu Servlet response sometimes are garblied when output double or more byte language charcter code like this: ???1?2??????????????????? In this case, these garblied letter were solved by changing following code From response.setContentType(“text/html;”); To response.setContentType(“text/html; charset=UTF-8”);

Install Apache Tomcat

Install tomcat yum install tomcat   Start servce service tomcat start sample page download cd /usr/share/tomcat/webapps wget https://tomcat.apache.org/tomcat-7.0-doc/appdev/sample/sample.war   access sample page from web browser http://xx.hiyokotech.com:8080/sample/   javac install yum search jdk-devel yum install java-1.8.0-openjdk-devel   compile servlet javac -classpath /usr/share/java/tomcat-servlet-api.jar xx.java     Japanese code response.setContentType(“text/html; charset=UTF-8”);

Getting Google Maps Platform API

Before getting Google Maps Platform API we need to register an Gogle Platform account by following procedure. 1.Access Google Cloud platform https://console.cloud.google.com/projectselector2/home/dashboard?utm_source=Docs_ProjectSelector Check their box and clieck agree.   2.Select start by free   3. Select National and click submit 4. fill profile and submit

Install WordPress Theme Cocoon

Here is the procedure of install the WordPress Theme Cocoon Download Theme Access Cocoon HomePage https://wp-cocoon.com/ Click Download botton Click 親テーマをダウンロード (Parents Theme Download) File cocoon-master-2.4.9.zip is downloaded Click 子テーマをダウンロード(Child Theme Download) File cocoon-child-master-1.1.3.zip is downloaded Upload Theme select upload Theme *If error ‘The link you followed has expired.’ occure, please check upload_max_filesize and post_max_size
Read More »

Install 2nd wordpress

This is the procedure of install 2nd Japanese wordpress on same server. unzip wordpress wordpress-6.0.1-ja.tar.gz Japanese version on the www root directory and rename wordpress directory to new directory ex: tt. Access /tt directory by Web browser. 2. Input database name, user name, and so on. 3. Database error occur 4. Check the mysql uesrs.
Read More »

Linux – IP Tables

IPTABLES is able to add the network accept and drop policy. Sometimes we need to accept specific address or need to drop specific address from external or internal networks. (1) current IP Tables # iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain
Read More »

AWS Add new disk volume

The procedure of add new 1 GB disk volume for AWS EC2. Procudure: a.) Login to AWS console and, modify ec2 disk volume. b) Access EC2 by ssh c.) Check the partition block and file system d.) expand the partition block e.) expand the file system 0. Check the petition size. 1. Login to AWS
Read More »

tcpdump

tcpdump option tcpdump is one of tool for investigating network traffic on *nix OS. -X packet details -A text dump

Internationalization (i18n)

Internationalization , ‘i18n’ for short. Some Web site or service need to i18n for all world visitor. There are a lots kind of character set, sorting order, and calendars and so on. For example, in Japan the time stamp is used Chinese character and numerical character. “2021年12月23日12時34分56秒” stand for 12:34:56, 2021/12/23 (hh:mm:ss, yyyy/MM/dd). Time format
Read More »

Translate »