Java

Javaコード下記:

private synchronized String md5s(String plainText)
{
try
{
MessageDigest md=MessageD ...

Java

Javaコード:

package com.study.startnews24;
import java.util.ArrayList;
import java.util.Iterator;
impo ...

shellscript

コード下記:

#!/bin/bash
#
# chkconfig: – 95 15
# description: Tomcat start/stop/status script

PHP

サンプルコード
class startnews24self{
public function __construct(){
echo ‘welcome to startnews.com and st ...

JavaScript

書式
!confirm(‘メッセージ’)
使用例

function deleteUser() { if(!confirm('ユーザを削除します。')){ return; }//some c ...

VB.net

書式
Function メソッド名(引数) As 戻り値の型
使用例

Module Module1 Sub Main() Dim age As Integer = 23 Dim de As Double = 34 ...

Swift

書式
文字列.startIndex
文字列.endIndex
使用例

let str = "this is a test message" let stIdx = str.index(str.startI ...

Software

更新内容
3.3 Build 3
Included detection of server editions of Windows and have instructed the program to tell the ...

Nginx

1.依存ライブラリをインストール
yum install gd-devel libpng-devel zlib-devel

2.webalizerをインストール
# wget
# tar xzf w ...

Linux

1.yumでmysqlをインストール
yum install mysql
yum install mysql-server
yum install mysql-devel
yum install mys ...

shellscript

コード下記
echo -e “PID\t\tMem\t\tProc_Name”
for pid in `ls -l/proc | grep ^d | awk ‘{ print $NF ...

Nginx

1.サーバ環境
マスター(master)サーバ:192.168.5.87 inotify
スレーブ(slave)サーバ:192.168.6.88 rsync

2.slaveサーバにrsyncをインストール ...

Nginx

1.インストール
# wget
# unzip master.zip
# ./configure –add-module=./3thparty/ngx_http_consistent_hash-ma ...

Java

サンプルコード
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.Pipe;

publ ...

Linux

1.libpcapとlibcap-develのインストール
# yum install -y libcap libcap-devel
# yum list|grep libpcap
libpcap.x86_64 ...

IOS

参考コード:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unis ...

IOS

1.絵文字をサポートするかどうかを判断
– (BOOL)supportEmoji
{
BOOL hasEmoji = NO;
#define kPreferencesPlistPath @& ...

IOS

サンプルコード
infoView= initWithFrame:CGRectMake(25, 110,210, 270)];
infoView.backgroundColor=;
infoView.alpha= ...