Category: Others (其它)

PHP Security Recommendations

By admin, May 19, 2017 1:09 pm

The following settings can be used to tighten the security of a PHP installation. To make the recommended changes, locate and open the php.ini file and edit the configuration settings as described below:

Setting Description
allow_url_fopen=Off allow_url_include=Off Disable remote URLs for file handling functions, which may cause code injection vulnerabilities.
register_globals=Off Disable register_globals.
open_basedir=”c:\inetpub\” Restrict where PHP processes can read and write on a file system.
safe_mode=Off safe_mode_gid=Off Disable safe mode.
max_execution_time=30 max_input_time=60 Limit script execution time.
memory_limit=16M upload_max_filesize=2M post_max_size=8M max_input_nesting_levels=64 Limit memory usage and file sizes.
display_errors=Off log_errors=On error_log=”C:\path\of\your\choice” Configure error messages and logging.
fastcgi.logging=0 The IIS FastCGI module will fail the request when PHP sends any data on stderr by using the FastCGI protocol. Disable FastCGI logging to prevent PHP from sending error information over stderr and generating 500 response codes for the client.
expose_php=Off Hide the presence of PHP.

CentOS 7 NIC is “Off” after reboot

By admin, May 15, 2017 9:43 pm

Got a surprise today! It turns out this is the default policy for the new CentOS, all you need is to modify /etc/sysconfig/network-scripts/ifcfg-eth0 and change ONBOOT=no to ONBOOT=yes. In additional Static IP setups would need to set BOOTPROTO=static.

How to Clear a Equallogic RAID label via a CLI command

By admin, April 24, 2017 12:24 pm

GrpName> mem sel <member name> disk select 0

GrpName(member_MEMBERNAME disk_0)> ?

clear-label          - Clears the label on the selected disk if the disk contai

Just make DOUBLE sure you have the correct drive number.  Remember first drive number is ZERO (0) not one (1).

You can issue it as one command.  mem sel membername disk select <number> clear-label

However, I prefer to select the drive first.  Then do a “show” to make sure it’s the disk I want.

show

______________________________ Disk Information _______________________________

Slot: 0                                Status: spare

Model: ST900MM0006                     Revision: LE09

Size: 838.36GB                         Errors: 0

Rpm: 10000                             SectorSize: 512

Health: ok

Arrival

By admin, March 31, 2017 1:13 pm

很久都沒看過這樣令人深思的Sci-Fi,整套戲充滿了禪味,雖然結尾是個敗筆。

女主角在學懂了外星非線性的語言和思維後,她終於明白了自己是同時活在過去,現在和未來,因果一切都是一個循環。悲傷是來自快樂,而她的快樂也是來自她的悲傷。

每次擁抱女兒Hannah,她都經歷著這世界上最幸福的悲傷。

“既然知道了結局,還會去改變未來嗎?會,因為“過程”才是目的”

“電影最后擊中我心的時刻是女主望向未來丈夫的眼神。那是一种知道了人生真相卻仍然滿怀深情的眼神。這不僅是她的力量,也是人類的力量:知道自己終將死去,但仍然努力地生活。因為“死是生的一部分,而非生的對立”。”

“經歷是夾雜著痛苦的幸福,也是夾雜著幸福的痛苦。”

“外星人的非線性禪圓文字說明了他們与人類截然不同的思維方式,也因此,人類認知中沒有起點沒有終點的線性時間可以形成回路。在這個和禪圓一樣的時間回路中,傳統的時間觀被顛覆,先后、因果的邏輯關系不再有意義,回路中的每一個事件都同時是另一個事件的原因和結果。也因此,外星人擁有超越人類的另一种感知——感知時間。”

“舉個簡單的例子,線性上:愛因斯坦打了牛頓一巴掌,兩人因此分手。 但在外星人的的非線性世界:愛因斯坦的巴掌決定了兩人分手,兩人的分手同時決定了愛因斯坦的那一巴掌。巴掌和分手兩個事件,同時存在,互相決定。”

攝影是光影結合的藝術

By admin, March 29, 2017 1:09 pm

最近在新加坡去世的三舅父一生鐘愛攝影,當年舅父在英國幫父母拍了很多相片。 雖然舅父不是什麼大師級的攝影師,但每每他總都能準確地捕捉那一剎那間的感覺,尤其是那些人物肖像照片。

很久以前就有朋友跟我說過攝影是光影結合的藝術,而至今我還是認為也只有黑白照片才能最忠實地還原出這種原始的味道。

另外我一直認為要用心去感受和構圖才能拍出好的作品,技術反而是次要。

IMG_1245

If you’re going to San Francisco

By admin, March 28, 2017 2:14 pm

吉他大叔令我想起了Scott McKenzie的著名美國民謠「San Francisco

If you’re going to San Francisco
Be sure to wear some flowers in your hair
If you’re going to San Francisco
You’re gonna meet some gentle people there

17265028_10206417532836984_1740538487026040914_n

I love watching Rick Stein’s food traveling program

By admin, March 24, 2017 9:59 am

From India, Mediterranean to Istanbul. Just finished this episode last night, probably by far the best!

“Japanese (cuisine) is simple, but there is a lot of work goes in behind the scene”

Thai Brasserie by Blue Elephant

By admin, March 11, 2017 10:11 pm

上次去Blue Elephant已經是很多年前在曼谷總店吃晚飯,席間旁邊一位鬼仔突然單膝跪下、掏出鑽石戒指向女朋友求婚的那一幕仍然歷歷在目。

也是很多很多年前姐夫第一次在倫敦約會家姐也是選擇了當地的Blue Elephant。他現在每次回顧都會開玩笑地說其實當晚已經不記得吃了些什麼,但就是很清楚地記得那晚的賬單特別貴,當然值回票價,No Complain! 哈哈

後來香港PP的The Great也曾經開過一間Blue Elephant的外賣部,有天和太太特別買了Blue Elephan的Lunch Box去香港公園野餐,途中竟然撞到熟人!

最近才得知Blue Elephant終于在香港開幕,所以今天中午特地走去吃午飯,原來這間是Brasserie,也就是不太Formal的那種餐廳,食物水準不過不失,感覺還不錯,當然整體跟總店的水平比還是有明顯的分別。

IMG_3886

Happy Tennis: 8th Year Anniversary (8週年紀念)

By admin, March 10, 2017 12:47 pm

回顧過去的8年內,原來已經跟超過300多位的波友對壘過,很高興從中認識了一班經常聚會、志同道合的「鐵腳」。

每個星期6-8個鐘頭的網球運動除了令我身體強壯之余,也令我更加正面思考和面對問題。 當然我更享受和不同網球朋友暢談中體會什麼是真正的人生。

另外去年也再次跟一位年輕的師傅學波,他剛好住在我樓下,近水樓臺,再Fit不過!  師傅幫我糾正了一些錯誤的Form,尤其是正手得到了比較顯著的改善。

其實心訣還是那一條,就是放鬆身體,招式才能得以順暢發揮,從而爆發出最大的力量,也就是Bruce Lee所說的Be water!

還有就是當遇到強勁抽擊時,要更加好好學懂如何借力,絕對不要硬碰,要利用「四兩撥千斤」,以太極招式「以其人之道,還治其人之身」。

Some interesting statistics:

Courts Booked: ~175場
Tennis Balls: 28罐
Restring: 5次

IMG_5093

珍惜身邊的人和事, 活好每一天!

By admin, March 4, 2017 1:21 pm

「姨丈剛走了」從長途電話的另一端傳來媽媽傷心的聲音,因為80多歲的舅父和姨丈分別在過去的一個星期內相繼去世令她唏噓不已 。

人生在世匆匆幾十年,其實很早我就不再恐懼死亡,只希望走的時候不要那麼辛苦。

珍惜身邊的人和事,花多些時間和自己最愛的人和朋友一起,儘早了解什麼是對自己最重要的,活好每一天,大家保重!

Pages: Prev 1 2 3 4 5 6 7 ...13 14 15 ...102 103 104 Next