Recently in Notes Category

Compile PHP with couchdb

user-pic
Vote 0 Votes

cd php-5.6.23
git clone https://github.com/akissa/php-couchdb
mv php-couchdb ext/couchdb
rm configure
./buildconf --force
./configure --enable-couchdb

Compile PHP with mongodb

user-pic
Vote 0 Votes

cd php-5.6.23
wget -qO- https://pecl.php.net/get/mongo-1.6.14.tgz | tar zxv
mv mongo-1.6.14 ext/mongo
rm configure
./buildconf --force
./configure --enable-mongo

mongo extension 已經被 mongodb 取代, 不過仍有維護及安全性更新

LiTV Channel List

user-pic
Vote 0 Votes

國產的 LiTV 超值套餐全館(電視頻道+VOD 隨選影片)每個月 199, 很合理的價格, 比 Netflix 便宜
LiTV 頻道表
4 台灣交通台
5 民視四季台
6 民視
8 台視綜合
12 華視
13 公視戲劇
14 好消息2
15 好消息
19 達文西頻道
20 Baby First
25 東森亞洲幼幼台
26 龍華卡通台
27 靖天卡通台
29 民視綜藝台
32 東森亞洲衛視
33 TVB8
35 華視綜合娛樂
37 靖天綜合台
38 靖天日本台
40 龍華戲劇台
41 八大劇TV
42 民視影劇台
44 采昌影劇
46 龍華偶像劇台
47 龍華日韓劇台
51 東森新聞台
52 中天新聞台
53 民視新聞台
55 TVBS新聞
56 TVBS
57 東森財經新聞
58 非凡新聞台
59 台視新聞
61 華視新聞
62 東森亞洲新聞台
63 寰宇新聞台
64 寰宇新聞二台
65 Focus電影台
67 日舞電影台
68 影迷數位電影台
69 AMC影集頻道
70 靖天映畫
71 視納華仁紀實頻道
74 Lamigo TV
77 博斯高球台
78 博斯高球二台
79 博斯運動網
80 博斯無限台
81 博斯網球台
82 博斯足球台
83 博斯魅力台
84 ASN全美運動網
85 EDGE 體育台
89 非凡商業台
90 台視財經
98 靖洋卡通
99 i-Fun動漫台
101 民視旅遊台
102 亞洲旅遊台
103 FASHION ONE
104 E Entertainment
131 華研音樂台
132 華研娛樂台
133 韓國娛樂台 KMTV
136 Medici Arts
139 CLASSICA古典樂
141 ITV Choice
148 靖天電影台
149 靖天育樂台
150 家娛國際
151 BBC World News
152 半島國際新聞台
153 VOA美國之音
159 靖天資訊台

前提假設: 九成的全速下載速度
150/M數 = 下載 1GB 所需分鐘數

例如:
2Mbps 的網路下載 1GB 所需時間是 150/2=75 分鐘
10Mbps 的網路下載 1GB 所需時間是 150/10=15 分鐘

150 是這樣來的
1024*1024*1024*8/(1024*1024*60*0.9)=151.7

版面調整

user-pic
Vote 0 Votes

版面調寬成 1200px, 現在大家的螢幕水平都至少 1280 以上, 調寬在放大圖時也不較不會被遮掉
字體調大成 18px 使更容易閱讀 (18px 有點怪怪的, 還是調回 16px)

/mt/mt-static/support/themes/minimalist-light-blue/minimalist-light-blue.css
#footer-inner
舊值 width: 940px; 新值 width: 1200px;

/mt/mt-static/support/theme_static/mt_community_blog/themes-base/blog.css
.layout-wt #alpha
舊值 width: 750px; 新值 width: 1010px;
.asset-body
舊值 font-size: 16px; 新值 font-size: 18px;

Check hardware info in Solaris

user-pic
Vote 0 Votes

CPU
psrinfo -pv # show physical processor
psrinfo -v # show virtual processor
prtdiag

CPU usage
mpstat
prstat -a # similar to Linux top

Memory
prtconf |grep Memory
prtdiag

Memory usage
vmstat # memory free column
prstat -a

Hard disk
iostat -E

Hard disk usage
df -h

Windows 7 安裝 K-Lite Mega Codec, 在撥放 RMVB 檔若有遇到無聲音的問題,
可以裝 Real Alternative 解決

隨身碟量產一般都是做成二個 Partition, 一個放 ISO, 剩餘的當一般空間使用
試了好幾支 Phison 晶片的隨身碟,
量產後在 Linux 下都會看到 Partition Table 錯亂的狀況,
fdisk -l 會看到類似這樣
Disk /dev/sdb: 3762 MB, 3762290688 bytes
116 heads, 62 sectors/track, 1021 cylinders
Units = cylinders of 7192 * 512 = 3682304 bytes

This doesn't look like a partition table
Probably you selected the wrong device.

Device Boot Start End Blocks Id System
/dev/sdb1 ? 108195 266915 570754815+ 72 Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(357, 116, 40) logical=(108194, 75, 11)
Partition 1 has different physical/logical endings:
phys=(357, 32, 45) logical=(266914, 0, 51)
Partition 1 does not end on cylinder boundary.
/dev/sdb2 ? 23456 292648 968014120 65 Novell Netware 386
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(288, 115, 43) logical=(23455, 18, 47)
Partition 2 has different physical/logical endings:
phys=(367, 114, 50) logical=(292647, 8, 42)
Partition 2 does not end on cylinder boundary.
/dev/sdb3 ? 259995 529187 968014096 79 Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(366, 32, 33) logical=(259994, 74, 30)
Partition 3 has different physical/logical endings:
phys=(357, 32, 43) logical=(529186, 63, 39)
Partition 3 does not end on cylinder boundary.
/dev/sdb4 ? 401235 401243 27749+ d Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(372, 97, 50) logical=(401234, 100, 25)
Partition 4 has different physical/logical endings:
phys=(0, 10, 0) logical=(401242, 67, 33)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order

導致在 Linux 下無法 mount, 當然也無法正常使用,
神奇的是在 Windows 看下是正常的, 使用也正常
要在 Linux 下正常使用必需用 fdisk 把 Partition 1-4 刪除, 重建後再用 mkfs.vfat format

The Secret

user-pic
Vote 0 Votes

最近看了一部影片 The Secret, 同時也是一本暢銷書, 闡述心想事成的秘密,
心裡面想著壞的, 結果會愈來愈壞, 想著好的, 結果會愈來愈好,
正面的思考是成功的要素.
「要改變你的狀況,首先必須改變你的想法」
The Secret: 1st 20 minutes

BRAVIA Sync

user-pic
Vote 0 Votes

發現把 SONY 的攝影機接上電視後, 竟然可以用電視的搖控器控制攝影機的選單,
原來此功能是 BRAVIA Sync 是 SONY 自家產品的功能,
經由 HDMI 線連接到電視的設備, 可以經由電視的搖控器控制,
BRAVIA Sync 目前是 Proprietary 的技術, 若能成為開放標標準, 我覺得挺讚的.

About this Archive

This page is an archive of recent entries in the Notes category.

News is the previous category.

Photo is the next category.

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

Monthly Archives