JavaScript

サンプルコード
Array.prototype.remove = function(b) {
var a = this.indexOf(b);
if (a >= 0) {
this.splice( ...

Java

環境
Eclipse 4.14.0
JavaSE 11

構文
1.public static final double MIN_VALUE
double型の正の最小非ゼロ値2-1074を保持 ...

Nginx

1.ファイル.htaccessの作成
# nginx rewrite rule
rewrite ^(.*?)/article/.*?-(d+)-(d+).html$  $1/display.html?id=$2& ...

Apache

1.TIME_WAIT数をコマンドで確認
$ netstat -anp|grep TIME_WAIT

2.カーネルパラメータの設定変更
#vim/etc/sysctl.conf
net.ipv4.t ...

Linux

サンプルコード
#!/bin/bash

b=”
i=0
while
do
printf “progress:%d%%\r” $b $i
s ...

Apache

設定内容

#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine ...

Java

Javaコード

public void readprop() throws IOException
{
Resource resource = ApplicationContextFactory.getAp ...

Java

1.Set<String>のコード
Set<String> set = new HashSet<String>();
Iterator<String> it = set. ...

Python

サンプルコード
#!d:\python27\python.exe
# -*- coding: utf-8 -*-

import os
import re

from os import p ...

Python

方法1
f = open(“zhang.txt”)
line = f.readline()
while line:
print line,
# print(line, e ...

Java

1.必要なjar
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId&g ...

Java

javaコード
Class c = Class.forName(“java.lang.String”);
Object obj = c.newInstance();

class AB ...

Java

Javaコード
DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance();
DocumentBuilder parser = fact.new ...

Java

Javaコード
//jarまたはzipを読む
ZipFile zf = new ZipFile(“startnews.jar”);
Enumeration all = zf.entrie ...

Java

方法1
<mvc:resources mapping=”/images/**” location=”/images/”/>

方法2
<ser ...

Java

javaコード
public void service(HttpServletRequest req, HttpServletResponse res) {

//Cookieの取得
Cookie[] cft ...

Java

//ファイルを読み込む
BufferedReader is = new BufferedReader(new FileReader(“orgFile.txt”));
BufferedOutput ...

Java

Javaコード
try {
Scanner scan = new Scanner(new File(“demo.txt”));
while (scan.hasNext()) {