2011年8月3日 星期三

Install the Bug Genie 3.x step by step



Install the Bug Genie 3.x
-------------------------------------------------------------------------------

(3.1.3 tested)

1. install the Apache 2.2.x (2.2.19 Apache Lounge Build tested)

see my Readme.txt in "Apache HTTP Server v2.2"\

2. install the PHP 5.2.x/5.3.x with MySQL extentions (5.3.6-VC9 tested)

see my the Readme.txt in "PHP v5.2_5.3"\

NOTE: need to setup timezone in php.ini

a) in php.ini find

[Date]
; Defines the default timezone used by the date functions
;date.timezone =

b) modify as

[Date]
; Defines the default timezone used by the date functions
date.timezone = Asia/Taipei

c) restart Apache

3. install MySQL 5.5.x (5.5.12 tested)

see my Readme.txt in "MySQL v5.5"\

4. install the phpMyadmin 3.x (3.4 tested)

see my Readme.txt in "phpMyadmin v3.4"\

5. Create a database 'thebuggenie'

STEP1: open url http://127.0.0.1/phpMyAdmin/index.php

in login screen enter 'root' as username and your password to access

MySQL

STEP2: in home page, click 'Databases' tab

STEP3: in Create new database fields, enter 'thebuggenie' and select

'utf8_general_ci' as collation option

STEP4: click 'Create' button

6. download and unzip thebuggenie_3.x.zip to ..\Apache folder\htdocs\bugs\

7. open url http://127.0.0.1/bugs/thebuggenie/index.php in http browser,

in first time it will setup the Bug Genie

STEP1: in the license statement, pick 'I agree...' and click 'Continue' button

STEP2: after checking the prerequisites, click 'Start installation' button

STEP2: in Database information, enter 'root' as username and your password

to access MySQL

STEP3: in Connection information, enter thhe hostname of the database, if it

is in the local computer just enter 'localhost'

NOTE: the port num here is for database connection! This is different

from http, please remain empty if no changed

STEP3: click 'Continue' button

STEP4: it will show 'All tables were created successfully...'

in the The Bug Genie URL information, check if all are valid,

click 'Continue' button

STEP5: it will show 'Apache .htaccess auto-setup completed successfully...',

click 'Continue' button

STEP6: remember the Administrator account, you should change it later

Username: administrator

Password: admin

STEP7: click 'Finalize installation' button

9. activate mod_rewrite module on Apache

STEP1: edit [Apache folder]\conf\httpd.conf

STEP2: find follow line

#LoadModule rewrite_module modules/mod_rewrite.so
-->
LoadModule rewrite_module modules/mod_rewrite.so

STEP3: make sure follow line not be commented

-->
Options Indexes FollowSymLinks

STEP4: find follow line

AllowOverride None
-->
AllowOverride All

STEP5: make sure follow lines be

-->
Order allow,deny
Allow from all

STEP6: restart Apache server and check again if mod_rewrite works

a) create .htaccess file with the code:

RewriteEngine on
RewriteRule ^first.html$ second.html

b) create 2 html files named first.html and second.html and write 1,

2, or first and second in them so that you could easily distinguish

that in first.html a word “first” is written. Put those 2 files in

the same folder where you put .htaccess file.

c) load first.html via localhost. Your mod_rewrite works if you see

first.html in the address bar but word “second” displayed in the page

8. open url http://127.0.0.1/bugs/thebuggenie/index.php


NOTE: 1. you can edit [Apache folder]\conf\httpd.conf, find

'DirectoryIndex' line and add 'index.php' in the end of line with space

ahead, so it can open index.php by http://127.0.0.1/bugs/thebuggenie/ directly

2. you could also create an alias for Apache2, add below lines into

httpd.conf, so it can open http://127.0.0.1/work/


Alias /work/ "C:/Apache2/htdocs/bugs/thebuggenie/"

AllowOverride all
Order allow,deny
Allow from all



-------------------------------------------------------------------------------

Q: got 'An unhandled exception occurred: date(): It is not safe to rely on the

system's timezone settings...."

A: The Bug Genie requires php to configure the default timezone correctly.

Please see step 2's note

--OB

2011年8月1日 星期一

This feature IS NOT possible to implement

想不到我也會分享一個故事..

小顧客 Y sir 買了一台高清(HD)播放機 X, 是韓國人的, 在中國生產, 但是有行銷全世界, 都有渠道(代理)的, 還有官方網頁跟英文討論區...質感跟功能都不錯.

唯...

小顧客 Y sir 每次看影片時, 有些片子都是原生的電影劇院比例 1920x861 (2.35:1) 這些在他家的高清電視上(1920x1080) 看. 總是上下有兩條黑帶(中間是影片, 因為影片高未及1080)

小顧客 Y sir 很後悔沒買 52" 以上的螢幕, 所以每次看片子總是覺的視野好小, 所以他都會用該播放機的一個功能--放大--為133% 倍 (需要按 zoom 鈕後, 由 100%,101%...133% 一直按著微調, 更甚寬與高是分開各要調的, 又要一次 100,101...133%), 放大後左右會被裁掉但高度剛好滿滿螢幕, 此時觀賞片子總是高興些...

但有些的片子又是 1920x1080 (16:9 or 1.78:1) 的! 此時並不需要犧牲左右被裁掉阿, 所以小顧客 Y sir 很固執又按 zoom 按鈕再調整為 100%...

所以常常在...按 zoom 鈕後. 100%,101%...133% 一直按著微調 (寬與高各要調一次), 有時又再調整為 100% 這些操作 :_ ...

小顧客 Y sir 是一個可憐的程式工程師, 工作常常被客戶嫌東嫌西....

他以寫程式自以為的經驗, 想說上面的操作不就一個單鍵, 偵測目前影片源尺寸跟設定好電視尺寸 "自動做滿屏" as best fit 就好了不是?

所以多月後他耐不住了...在討論區發表意見....

-----------------------------------------------------------------------------
小顧客 Y sir 寫:

I always like to zoom to 133% in X and Y to watch 2.35:1 movies in my 16:9 TV.
But sometimes I need to reset the zoom to watch 16:9 (aka 1.78:1)
movies...This cause very inconvenient..specially I need to re-adjust to
100% 101%...till 133% in X (and Y again) for next time I watch 2.35:1
movies..

Is there any method (中略....) or your team can implement a function key
like....

I set my display to 1920x1080 in setting then I can press one key to switch
on/off the full screen fitting (preserve aspect w/o up/down black) while
playing video

thanks....

-------------------------------------------------------------
討論區管理員 M sir 回答:

(前略....)
But if it is your goal to always have full screen coverage without black bars, no,
that is not possible to realise in current fw with pressing just 1
button..

------------------------------------------------------------------------------
小顧客 Y sir 再寫:

Thanks, for this function is not available in current F/W.
But It is possible (and easy) isn't it?

1. User set his TV res
2. F/W detect the video stream's res
3. when playing stream, user press a specific key (like 'preview' or other no assigned in playing)
4. switch to(or back) zooming the X and Y to the max ratio of W or H of TV_RES/stream_RES
so without black area (allow left/right or up/down clipped)

I really hope your team can consider the function request..thanks however..


-----------------------------------------------------------------
技術人員 S sir 回答:

If you are after the ability to zoom a 2.35:1 image to 16:9 via one key. I
can confirm that "no" such an option will not be implemented!

Topic closed

-----------------------------------------------------------------
於是文章被 locked.

好一個 Topic closed!