Development

phpコード:

function is_md5($password) {
return preg_match(“/^{32}$/”, $password);
}

Android

エラーメッセージ:
Read-only file system
解決方法:
mount -o remount rw/system

Android

Javaコード:
InputMethodManager inputMethodManager =(InputMethodManager)activity.getApplicationContext().
getSyst ...

Android

方法1

applicationを使ってactivityを保存

public class TestApplication extends Application {
private LinkedList& ...

Development

<a href=”delete.php” onclick=”return confirm(‘このコンテンツを削除しますか?’)”>コンテンツを削除&l ...

Android

1.Bitmap からByte
ByteArrayOutputStream out = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressForma ...

Android

設定方法:
1.cd/etc/udev/rules.d
vi startnews24-Android.rule

Javaコード:
SUBSYSTEM==”usb|usb_device&# ...

Android

下記権限を追加する必要があります
<uses-permission android:name=”android.permission.GET_TASKS”/>

Javaコード: ...

Android

#include <sys/system_properties.h>

//シリアルナンバーを読む
char value = “”;
__system_property_g ...

Development

//エンコーディングを定義する
header( ‘Content-Type:text/html;charset=utf-8 ‘);

//Atom
header(‘Cont ...

Server

1.エラーメッセージ:
apacheの proxy で502 error 現象が発生した

2.原因
For circumstances where mod_proxy is sending requests ...

Development

最初の要素を取得し、いくつかの方法があります。
$(‘ul’).find(‘li:first’);
$(‘ul li:first’);
$ ...

Linux

1.ファイルを見つける
find/-name “jdk*.bin”

2.ディレクトリを変更
cd

3.ディレクトリの内容をリスト
ls

4.ファイルエ ...

CSS

構文
::before
選択した要素の最初の子要素として擬似要素を作成します。
使用例1
htmlコード
<span class=”contInfo”>AAA ...

Development

PHPコード:

1.呼び出す関数を宣言
$isHTMLModel=0;
$spacing=1;
$HtmlPath=UseHtmlPage($isHTMLModel,$spacing);
C ...

Development

PHPコード:
<?php

function break_passage($text){//段落を分割
return preg_split(“/(\r|\n|\r\n)/”, ...

Development

phpコード:
<?php
$url = “url?WSDL”;
$client = new SoapClient($url);
$params = array(

Development

1.Push通知サーバー側処理ソースコード:
function server() {
for ($i = 0, $timeout = 10; $i < $timeout; $i++) {
if (conn ...