December 2014 Archives

StatusCake PingURL

user-pic
Vote 0 Votes

StatusCake 是個線上網頁監控服務, 在世界有多個監控點,
免費的方案最短監控頻率是五分鐘, 可透過 Email、SMS(需付費)、PingURL、Pushover App 來進行告警通知
其中 PingURL 官方文件是寫 POST,
但實際上抓封包來看, 其實是 GET, 但是又不是帶參數那種, 所以在 PHP 用 $_POST 或 $_GET 都抓不到資料,
需要寫成這樣才可以抓到資料
$input=file_get_contents("php://input");
parse_str($input, $arr);

$arr['Token'] = A hash of your username & API key, use this to verify.
$arr['Status'] = Can either be UP or DOWN
$arr['StatusCode'] = Will be the error status code; or 0 if timeout
$arr['URL'] = The URL that can not be connected to
$arr['IP'] = The IP which can not be connected to
$arr['Name'] = Test Name

MySQL ODBC

user-pic
Vote 0 Votes

在 Windows 下使用 MySQL ODBC 需留意
32bit 的程式需用 32bit 的 ODBC (作業系統是 64bit 也是如此)
64bit 的程式需用 64bit 的 ODBC
(32bit ODBC 及 64 bit ODBC 可以共存)

在 64bit Windows 下
64bit ODBC 資料來源管理員 C:\Windows\System32\odbcad32.exe
32bit ODBC 資料來源管理員 C:\Windows\SysWOW64\odbcad32.exe

Factory Images for Nexus Devices

user-pic
Vote 0 Votes

Download tgz image file from Factory Images for Nexus Devices
Extract it, copy adb.exe flashboot.exe (from Android SDK) to same directory

adb devices (to check if device detected)
adb reboot-bootloader (or Press and hold Volume Down and Power buttons at the same time when poweroff)
fastboot devices (to check if device detected)
flash-all.bat

[F:\Nexus5]flash-all.bat
sending 'bootloader' (2579 KB)...
OKAY [ 0.197s]
writing 'bootloader'...
OKAY [ 0.485s]
finished. total time: 0.684s
rebooting into bootloader...
OKAY [ 0.111s]
finished. total time: 0.112s
sending 'radio' (45521 KB)...
OKAY [ 1.547s]
writing 'radio'...
OKAY [ 3.130s]
finished. total time: 4.678s
rebooting into bootloader...
OKAY [ 0.120s]
finished. total time: 0.120s
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
archive does not contain 'system.sig'
--------------------------------------------
Bootloader Version...: HHZ12d
Baseband Version.....: M8974A-2.0.50.2.21
Serial Number........: 03a16120251a42b9
--------------------------------------------
checking product...
OKAY [ 0.100s]
checking version-bootloader...
OKAY [ 0.099s]
checking version-baseband...
OKAY [ 0.099s]
sending 'boot' (8852 KB)...
OKAY [ 0.489s]
writing 'boot'...
OKAY [ 0.754s]
sending 'recovery' (9552 KB)...
OKAY [ 0.545s]
writing 'recovery'...
OKAY [ 0.794s]
sending 'system' (981596 KB)...
OKAY [ 30.979s]
writing 'system'...
OKAY [ 66.585s]
erasing 'userdata'...
OKAY [ 11.858s]
erasing 'cache'...
OKAY [ 0.549s]
rebooting...

finished. total time: 113.261s
Press any key to exit...

If got error: update package missing system.img
Unzip image-*.zip

If stuck in boot logo screen (wait 10 minutes, still in boot logo screen),
flash CWM recovery,
Download img from here
adb reboot-bootloader
fastboot flash recovery recovery-clockwork-touch-6.0.4.5-hammerhead.img
enter Recovery mode
mounts and storage -> Format /data and /data/media (/sdcard)

About this Archive

This page is an archive of entries from December 2014 listed from newest to oldest.

October 2014 is the previous archive.

January 2015 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives