Java

Javaコード
DbConn.properties
initialSize=1
maxActive=1
maxIdle=1
maxWait=10000
username=xxx ...

Linux

操作コマンド

#sudo yum -y install nginx
# sudo/sbin/iptables -I INPUT 5 -p tcp -m tcp –dport 80 -j ACCEPT

Linux

# cat/etc/redhat-release
CentOS Linux release 7.3.1611 (Core)

# vim/etc/firewalld/zones/public.xml
< ...

Linux

CentOSのバージョンは、/etc/redhat-releaseファイル
# cat/etc/redhat-release
CentOS Linux release 7.3.1611 (Core)

JavaScript

1.test()
var str = “1a1b1c”;
var reg = new RegExp(“1.”, “”);
alert(re ...

Java

Javaコード
HttpSession session = request.getSession();
session.setAttribute(“demo_startnews24”, R ...

Java

Javaコード
public class Demo {

public static void main(String[] args) {
String text = “”; ...

Linux

1.エラー現象
$ sudo su
password for mastodon:
mastodon is not in the sudoers file. This incident will be repor ...

PHP

方法1–Smarty
<?php
require(“smarty/Smarty.class.php”);
$t = new Smarty;
$t->ass ...

MySQL

方法1
SELECT *
FROM changfatbl AS r1 JOIN
(SELECT ROUND(RAND() *
(SELECT MAX(id)
FROM changfatbl)) ...

PHP

PHPコード:
function globalClearFunc($global_array, $arg, $specialchars = true, $default = null) {
if(key_exists( ...

PHP

方法1
header(‘Cache-control: private, must-revalidate’);

方法2
session_cache_limiter(‘pri ...

PHP

PHPコード:
require __DIR__ . ‘./PHPExcel/IOFactory.php’;
$PHPReader = new \PHPExcel_Reader_Excel2007 ...

JavaScript

サンプルコード
<script type=”text/javascript” src=”demo.js?version=20170422″></script&g ...

Java

Javaコード:
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

publ ...

Java

Javaコード:
Product srcProduct = new Product();
srcProduct.setName(“iphone 7”);
Product destProd ...

Linux

操作手順
#rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
#rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
#rpm -ivh cpp-4.4.7-4.e ...

Java

Javaコード:
public static String escape(String target) {
if (target == null) {
return “”;
} ...