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= ...

IOS

サンプルコード
if () {
NSLog(@”2つのファイルの差分がございません。”);
}

IOS

サンプルコード:
– (void)textFieldDidBeginEditing:(UITextField *)textField{
NSArray *ws = windows];
for(UI ...

IOS

1.Push通知
UILocalNotification *notification = init] autorelease];
NSDate *pushDate = ; if (notification != ni ...

IOS

サンプルコード
NSFileManager *defaultManager;
defaultManager = ;

IOS

サンプルコード:
NSString *path = pathForResource:@”filename_startnews24″ ofType:@”plist”];