IOS

サンプルコード:
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ( systemVersion] compare:v options:NSNumericSearch] ! ...

IOS

参考ソースコード
+ (NSString *)getFilePath

{

NSString *path = stringByAppendingPathComponent:@”photo.p ...

IOS

参考ソースコード
#define HEXCOLOR(c)
;
baseView.backgroundColor = HEXCOLOR(strtoul(,0,16));

Linux

1.ファイルをアーカイブ、解凍
bunzip2 file1.bz2
bzip2 file1
gunzip file1.gz
gzip file1
gzip -9 file1
rar a ...

Linux

1.権限について操作
su –
ls -lh 権限を表示
ls/tmp | pr -T5 -W$COLUMNS

chmod u+s/bin/file1
chmod u-s/bin ...

Linux

基本コマンド:
cd/home
cd ..
cd ../..
cd
cd ~user1
cd –
pwd
ls
ls -F
ls -l ...

Linux

1.インストール
sudo apt-get install memcached
memcached -d -m 64 -p 11211 -u root

2.Javaの場合、必要なjarファイル
co ...

Linux

1.erlangのダウンロード
解凍
./configure –prefix=/home/liyixiang/erlang

2.下記エラーが発生する場合
configure:

Linux

操作コマンド

sudo vi/etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
保存して終了
sudo sysctl -p
実行

Java

例1 指定の文字列に置換replaceAll()
String s = “1 3 2 4 welcome to startnews24 .com”;
s = s.replaceAll(̶ ...

Java

サンプルコード
private void initTime() {

Calendar c = Calendar.getInstance(TimeZone.getTimeZone(“GMT+08:00&# ...

Android

利用方法
HandlerとhandleMessage

変数説明
count:時間
originText:ステータス変更前buttonのtext

参考コード
private voi ...

Android

利用方法
onCreateDialog、onPrepareDialog、mDateSetListener 、mTimeSetListener

サンプルコード
@Override
protected ...

Android

1.パッケージ無しでAlertDialogを実装
View layout = inflater.inflate(R.layout.enable_agree_dialog,
(ViewGroup) findViewByI ...

Android

サンプルコード
<EditText id=”@+id/text”

android:layout_width=”fill_parent”

androi ...

Android

サンプルコード:
//現在の時刻を取得
Calendar calendar = Calendar.getInstance();
calendar.setTimeZone(TimeZone.getTimeZone ...

PHP

1.画面静的ファイルindex.html
<html>
<head>
<title>No refreshファイルをアップロード</title>
<m ...

shellscript

例1 普通列挙
for i in ‘apple’ ‘meat’ ‘sleep’ ‘girl’
do
echo I ...