HTC J 加裝 悠遊魔(膜)


我的手機今天加裝了悠遊魔(膜), 對於有時帶手機出門但忘了帶皮夾的我, 是一大福音,
至少還有些錢可以在便利商店扣用, 也有公車/捷運費可用.
在NFC手機全面普及前, 悠遊魔還是不錯的替代方案.

主要好處是可用手機查詢餘額與交易,
再申辦手機條碼, 電子發票就可以自動對獎, 對忙碌的人來說非常實用.
而其它的悠遊卡, iCash卡, 銀行含悠悠卡功能的卡片, 都可以設定在同一歸戶下一起管理.
(需先至7-11加值機申請悠遊卡驗證碼)
二代電子發票 手機條碼申請
https://www.einvoice.nat.gov.tw/APMEMBERVAN/GeneralCarrier/QueryInv


悠遊魔如何安裝, 我想官網和眾多的開箱文很多, 不多贅述.
http://easycity.com.tw/yoyo_02_02.htm

只提幾點安裝注意事項
1.SIM卡太厚, 可以拿刀片將三個邊刮薄一點, 卡才放的進去.
2.拆卸SIM卡都要用輔助滑片, 雖然裝好就不需要用, 但沒裝好無法判別SIM卡,如要重新調整或日後換卡換手機仍要靠它.


特別要提到:
今天幫我裝卡的兩位太思員工,
一位是態度認真的女工程師, 幫我確認驗證機殼感應磁波能否穿透, 
一位是挺著8個月大肚子, 仍熱心服務與解說, 都讓我印象深刻.
2013年2月26日 星期二
Posted by 紹斌
Tag :

HTC J 4.1.1 root 及 清除不必要的系統App 及 顯示電量百分比

一.Boot Loader解鎖

完成 解鎖後 所有安裝過的App和資料都會刪除
1.獲得您手機專用的unlock_code.bin, 請至官方HTC 官方解鎖網址 http://www.htcdev.com/
2.詳細步驟請參照 http://htcbbs.cnmo.com/thread-12312056-1-1.html
3.開機完你會發現工程模式畫面上方出現粉紅色 ****Tampered Unlocked **** 

二.刷HTC J 專用Recovery image

下載 HTC J 專用Recovery image, (以下所有提到的軟體,都請放進SD卡)
重開機按住音量 - 進入手機BootLoader模式
cd /AdbDir/xxxxx
fastboot flash recovery valentewx-recovery3.img

三.為得root權限, 刷入su 的 binary 

SuperSU   CWM / TWRP / MobileODIN installable ZIP下載後,
重開機按住音量 - 進入手機Recovery模式刷入SuperSU
root完成!

四.我個人製作的Patch.

因為出廠時內建很多系統的App,但可能不是我們需要的, 因為沒有手機S-OFF,
即使您用SystemRemover之類的軟體移除, 也是在開機後重裝回去.
所以我做了一個移除Twitter. Weibo, Sina Weibo, KKBOX 等軟體的Path給各位刷

當然您從系統移除完, 還是可以在Goole Play重新安裝, 移除後也不會回到系統內建的舊版本.

  • 顯示電量百分比的的刷機包
         顯示電量百分比的  下載點
         原廠電量百分比的  下載點

*** 2013/08/30 ***
如果您因為刪除了系統內建的APK導致無法更新HTC官方的更新(出現ststus 7的錯誤)
OTA_VALENTEC9_WX_JB_45_S_hTC_Asia_TW_3.05.709.1-3.04.709.1_release_32270825gvwsrp8x7kut2p
您可以下載我修正過後的更新檔,[刷機前建議先備份]
然後開機進Recovery刷進去,系統就可以正常升級了.
當然, 我這個版本也不會安裝 微博,新浪....等等我們不想要預裝的APK,而官方此次更新已內建可顯示電池電量.
ps:1.如果不是用我的清除包,您自行砍了系統內建的其它APK.請您修改刷機包內的updater-script.
      2.裝完如果google play有問題可以先到新增移除程式將它移除,使用系統內建的即可.
      3.此次HTC更新,完成後桌面設定會重置.如果需要可以先備份.或使用HTC輕松上手同步設定.
      4.本次HTC的更新仍未修復Master Key金鑰漏洞.
      5.su需要重刷.

個人對HTC J的心得及後記:
1.HTC J 是我繼Desire HD後買的手機, 因它WiMax 4G的的功能是手機除了打電話外最重要的上網功能所必需. CPU夠力, 電力也足,電池可換, 而蝴蝶機太貴, 後繼手機好的貴的非常多, 但是都沒有4G(我從不用3G,貴又慢), 預期下一隻手機可能要等台灣4G LTE建好及NFC成熟後才需要換,
2.此手機不需要做S-OFF, 必竟為了安全考量, 有需要再刷需要的軟體就好, 把System下檔案資料可隨意讓程式寫入,不是什麼聰明的事, 可以su 應該在備份或做些日常的操作已足已.
3.要玩FB網頁遊戲可以安裝FireFox加Flash就可以正常玩, CPU尚夠應付, 唯Android 4以後, 對JAR檔的支援,JBED的JAVA JVM模擬已經失效, 除了重編譯, 我還找不出好方法.
4.銀幕小了點,(省電), 沒有NFC, 除此外我挑不出這隻的缺點.

2013年2月22日 星期五
Posted by 紹斌
Tag :

AIX 7.1 + Apache 2.4 + PHP libphp5.so with PDO

The following experience, it took me a lot of time .....may help you.

1.Download PHP 5.2.14 (Other version NOT successed)

2.AIX 7.1 need  vi /include/gd_io.h , typedef struct gdIOCtx add void *data;  

3.Edit PHP Makefile add this
   PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo sapi/cli/php_cli_server.lo $(PHP_BINARY_OBJS)
PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo main/internal_functions.lo

4.Edit PHP sapi/apache2handler/php_functions.c (becouse we use Apache 2.4  NOT 2.2)
   -       AP_DECLARE_DATA extern unixd_config_rec unixd_config;
   +       AP_DECLARE_DATA extern unixd_config_rec ap_unixd_config;
   -       snprintf(tmp, sizeof(tmp), "%s(%d)/%d", unixd_config.user_name, unixd_config.user_id, unixd_config.group_id);
   +       snprintf(tmp, sizeof(tmp), "%s(%d)/%d", ap_unixd_config.user_name, ap_unixd_config.user_id, ap_unixd_config.group_id);

5.Link some file ....

   ls -s /opt/freeware/bin/pg_config /usr/bin/pg_config
   ls -s /opt/freeware/bin/mysql_config /usr/bin/mysql_config
   ln -s /opt/freeware/lib/libcrypto.so.0.9.8 /opt/freeware/lib/libcrypto.so    (OpenSSL ver cant greater than 0.9.8)


6.Configure PHP 5.2.14 with

./configure --prefix=/opt/freeware --with-apxs2=/opt/freeware/bin/apxs --with-zlib --with-zlib-dir=/opt/freeware --with-gd=/opt/freeware --with-freetype-dir=/opt/freeware --with-png-dir=/opt/freeware --with-mysql=/usr/local/mysql --with-mcrypt=/opt/freeware --enable-mbstring --with-gettext=/opt/freeware --with-libxml-dir=/opt/freeware/lib --enable-sockets --with-pcre-dir=/opt/freeware --with-snmp=/opt/freeware --with-openssl=/opt/freeware --with-bz2=/opt/freeware --with-jpeg-dir=/opt/freeware --enable-bcmath --enable-calendar --enable-maintainer-zts --disable-static --enable-shared --enable-ftp --with-curl=/opt/freeware --with-pdo-mysql=/usr/local/mysql --with-t1lib=/opt/freeware --with-libmbfl --with-iconv=/opt/freeware --with-iconv-dir=/opt/freeware --with-xpm-dir=/opt/freeware --enable-json --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pgsql=/opt/freeware/bin/pg_config --with-pdo-pgsql=/opt/freeware/bin/pg_config

7.Make and Copy module
make
cp .libs/libphp5.so /xxx/xxx/apache/modules/  (xxx depend on your apache config)


Other note -- Upgrading to 2.4 from 2.2
http://httpd.apache.org/docs/2.4/upgrading.html
2013年2月21日 星期四
Posted by 紹斌
Tag :

Desire HD 刷 JellyBean Android 4.2.1


沒有安裝Sense的HTC Desire HD,介面速度大幅度的提升,
和iPhone般的順暢感非常棒,


0.首先 備份你的手機資料.
1.下載ROM  CodeFire ACE
2.Full wipe,刷 JellyBean ROM, 請刷完先重開機.
3.下載 Google 應用整合包, 並刷進手機,不然OS並沒有內建Google App.


我個人建議安裝的軟體
1.時鐘和天氣,Transparent clock & weather
   如果喜歡HTC的老樣子,建議裝Fancy Widgets
2.Launcher建議用Apex Launcher 功能完善,設定很多,自己玩看看.
3.修改/system/etc/gps.conf,NTP_SERVER=pool.ntp.org改成NTP_SERVER=tw.pool.ntp.org,不改也是OK,第一次定位較久.
4.Apex Theme有很多選擇,有特殊美感喜好的,再挑個您滿意的刷.
5.如果喜歡將電源鍵改到搜尋鍵,以增加電源鍵壽命,可以修改/system/usr/keylayout/synaptics-rmi-touchscreen.kl
將217 SERACH改成217 POWER

問題集:
1.刷更新版:更新新版ROM時不需full wipe,直接刷可保留設定. 但google appp要重刷最新版才不會有問題.
2.如果發現部份APP有問題,如時鐘, 可至應用程式,清除應用程式資料,應可恢復正常.
3.最後...APP仍有問題,建議移除後重裝也會正常.
以下APP問題,如有網友知道怎麼解的請留研告訴我,謝謝!
4.Titanium backup roo SR1後就失效了, 原因不明. 其它軟體root正常.
5.QRcode對焦異常.
2012年11月29日 星期四
Posted by 紹斌

Linux 玩 GW2 (Guild Wars 2 on CentOS )


1.Install Proprietary drivers for your graphics card
  NVIDIA Driver Version 310.14+
2.Install wine
Download wine source 
http://sourceforge.net/projects/wine/files/Source/ 
3.cd wine
  ./configure
4.Install GW2 or copy Gw2 director to linux
5.Create  Gw2.sh

#!/bin/bash
export WINEDEBUG=fixme-all
export LD_PRELOAD="libpthread.so.0 libGL.so.1"
export __GL_THREADED_OPTIMISATIONS=1
wine explorer /desktop=Gw2,1280x1024 Gw2.exe -dx9single





2012年10月29日 星期一
Posted by 紹斌
Tag : ,

Highcharts for Nagios

Highcharts for Nagios is  Shao Pin, Cheng為Nagios 開發的開源plugin

What is Highcharts?

Highcharts is a charting library written in pure JavaScript, offering an easy way of adding interactive charts to your web site or web application. Highcharts currently supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange and polar chart types.

簡而言之Highchart就是開源的 畫漂亮圖表軟體
為了讓Nagios享有這種傑出的軟體功能,所以我寫了這個插件. (一種創意)
它能動態放大及自動調整圖片Y軸高度,及動態自訂線條顯示.
當一堆線畫在同一張圖時就會明白好用之處.
範例:


Highchart for Nagios - Download


如何 Install :
Ver 1.2
1.您必需先安裝pnp4nagios
2.解壓縮Highcharts4nagios.tar到httpd下您指定的目錄, 如:  /highcharts/
3.修改Nagios (service).cfg服務的設定檔,把action_url或是notes_url加上 /highcharts/highcharts.html?host=$HOSTNAME$&srv=$SERVICEDESC$  (黃字視您安裝的路徑修改)
4.reload nagios讓config生效後就完成了.


ps:Highchart的gray.js themes第一條線的顏色非常醜,您可以修改js/themes/gray.js 內的first colors: #9172EC",..........  或換成你喜歡的顏色.

進階的參數就請看我前一篇文章
Highcharts for Nagios Timeranges
2012年10月19日 星期五
Posted by 紹斌
Tag :

Highcharts for Nagios (en)


Highcharts4 Nagios Update

Ver 1.24 -- Update 2013.05.14 
---------------------------- 
Interface update

Ver 1.21 -- Update 2012.11.01 
---------------------------- 
*Add custom time range select. 
*Add different domain support. 
*All in one. 

Install Notes

1.You must installed pnp4nagios above 0.6.x, NOT work with 0.4.x 
2.Download highcharts4nagios.rar, unrar to ex:/usr/local/highcharts
3.Modify httpd.conf. 
4.Add Nagios service config with action_url or notes_url to ex: 
notes_url /highcharts/highcharts.html?host=$HOSTNAME$&srv=$SERVICEDESC$ 
4.Restart httpd and nagios.
  (Below this line .... is optional, Not necessary !) 
5.If  highcharts-IP & pnp4nagios-IPchange not in the same server, 
   change  highcharts.html  LocHost='Your pnp4nagios IP' values
6.If client in different Domain, you need edit 
   pnp4nagios/share/application/controllers/xport.php 
   add bellow line ...
header("Access-Control-Allow-Origin: *");  //Allowed *(your IP) Access-Control-Allow-Origin
7.If you are ruining Apache with SSL (https), modify line 150 of highcharts.html from http to https and you can see the graph.



Timeranges

Additionally you can influence the timeranges via the URL. This can be useful to automatically create PDF documents. The ranges can be defined using the options “start” and “end”.
Example:
 highcharts/graph?host=&srv=&start=-1week
The graph will start one week prior to the current date and time. It will end at the current timestamp.
startendviewresult
all views ending at current timestamp
xall views starting at defined date
xall views ending at defined date
xxone view between the two dates
xone view ending at current timestamp
xxone view starting at defined date
xxone view ending at defined date
Examples of different specifications
formatdescription
2009W044. week of 2009
1.5.2009May, 1st 2009
-1 dayone day back
-3 weeks3 weeks back
-1 yearone year back
yesterdayyesterday

Customize

Highcharts theme:
1.Highcharts line color:
   Edit js/themes/gray.js or dark-blue.js, dark-green.js, grid.js.
2.Highcharts theme:
   Edit highcharts.html, find gray.js change to {dark-blue.js or dark-green.js or grid.js or skies.js}
3.Theme line color:
   Modify the js/themes/gray.js the first colors: # 9172EC ", .......... or with your favorite color
Calendar theme:
1.Calendar LANG:
   Edit highcharts.html, find en.js change to {cn.js(Tradition Chinese), ca.js, cn.js, cz.js, de.js, en.js, es.js, fr.js, hr.js, it.js, jp.js, nl.js, pl.js, pt.js, ro.js, ru.js, sk.js, sv.js}
2.Calendar theme:
   Edit highcharts.html, find gold.css change to {steel.css, matrix.css, win2k.css, gold.css, steel.css}


2012年10月18日 星期四
Posted by 紹斌
Tag :

Translate

關於我

我的相片
台北市, Taiwan
主要工作領域於Linux、IBM System i/ P 的系統管理維護, (認證:CISA、RHCE)

Donate Check_AS400

OR - Click Sponsored advertising

Labels

ShaoPin網誌. 技術提供:Blogger.

- Copyright © Shao Pin Cheng (Bruce) - Powered by Blogger