文章

顯示從 12月, 2022 起發佈的文章

《人性的優點》閱讀記錄

  書名:人性的優點 作者:戴爾.卡耐基 Dale Carnegie 譯者:趙虛年, 劉超 出版社:非凡出版 2011年4月初版 ISBN: 978-988-8104-30-7 書本英文名稱是How to stop worrying and start Living, 不知為什麼中文譯名為《人性的優點》,可能是因為作者上一本書的中文譯名是《人性的弱點》, 這裏想做一個配對才譯為"優點" 。至於為什麼把how to win friends and influence people譯為《人性的弱點》也比較奇怪。 雖然譯名是奇怪,但這兩本書都是很值得一看。兩本書都有講解與人相處的方法,前者是集中在個人的內在,如何處理憂慮,不安,接受別人批評等心態。後者講述採取行動使別人感到被尊重,建立良好關係,及讓對方容易接納意見。先在這裏歸納出我從《人性的優點》這書的得着,之後再找時間開一篇說《人性的弱點》。 追求生活愉快,自然要有健康的心理狀態。影響心理健康的部分因素是人們心中充滿憂慮和不安,引起過大壓力,造成身體不適。經常提心吊膽,畏首畏尾,這些心理負擔造成制肘,妨礙我們追求快樂的行動。 正如英文書名,這書是講述停止憂慮的方法。我們 首先想像一下事情發生的最壞結果,然後盡力說服自己接納這個結果。當能夠接納最壞結果的時候,亦代表我們知道了不會再失去比這個結果更多的事物,藉此使心情平靜下來,冷靜思考去改善這個結果的行動。 正如買賣股票要製定止蝕價位,根據不利事項與我們的關係深淺,我們要評估值得為該事項付出的最大代價,一旦超過這個代價,我們就要止步,避免過度損害。 我們要建立正確的價值評估標準, 學會寬容 瑣碎事項 ,對此一笑置之。 當別人對批評我們時,先 不要想着抗拒並自我防衛,要懷著謙虛的心態分析別人的批評。因為每個人都會犯錯,犯錯並不可怕。對於過去所犯的錯誤,我們也無法時光倒流回去修改。因此放下恐懼和沮喪,專注現在。只要找出原因,反省如何避免再次犯錯和改善方法,我們就能進步。我們不能阻止別人批評,唯有勇於接納公平的批評, 不要讓不公正的批評影響自己。 我們不要對敵人心存報復之心。想著報復方法,只會失去思考追求自身快樂的時間和精力。我認為可以捍衛自身的聲譽和權利,但不要再進一步去報復敵人,報復只會損害我們的心理健康。 發自真心地感到幸福的笑容會感染身邊的人,如果能...

Mapbox Geocoding (Android Search SDK) - Java

圖片
  Continue to study the Mapbox SDK. This part is going to learn the Search SDK as I need to get the coordinates(longitude and latitude) of a place before drawing a route from the current position to that place. So I need to input the name of the place I want to go and ask for its coordinates, that is forward geocoding. Add Dependency To use Mapbox search SDK, we can use the same token that applied  in the previous post Mapbox Map SDK. In this post, I only invoke the SearchEngine.search() and SearchEngine.select() methods from the SDK. I would build a simple UI by myself. Therefore, I can only add Search Core SDK. dependencies { ...... implementation "com.mapbox.search:mapbox-search-android:1.0.0-beta.36" ...... } Define UI component The example provided by Mapbox is programmed by Kotlin and I will use Java here. Since the example does not contain UI. I have to implement it myself. I put the EditText on top of the screen for inputting the name or address of the pla...

Using Mapbox Maps SDK for Android - Java

圖片
  I’m going to study implementing Map-related application. I have searched several map service provider and finally decide to try Mapbox. Why Mapbox? There are several map service providers. Google Map is the most popular one, which is the default map application in Android phones. HereMap and TomTom also are famous. If the app only requires showing the map and the point of interest in the map, we can use their Map SDK. However, the Navigation SDK is restricted at this moment. It needs to send an official request to discuss with them in order to access the navigation SDK.       Although Mapbox is young and less famous, it is open to register an account and apply for Token. Key to access Map SDK and Navigation SDK. As long as your usage of the service does not exceed the limited amount, it is free to use. Therefore, I choose Mapbox for self-learning.

《最好的睡眠》閱讀記錄

最近因為生活轉變,睡眠時間變少了,每天起床後都覺得很倦。吃過早餐,坐地鐵或巴士上班時,也很想睡。問過同年齡層的人,原來他們的睡眠時間比我還少,中午飯後也不會打瞌睡。不禁對自己的睡眠時間感到疑問,我的最佳睡眠時數真的要像之前那麼長嗎? 我找了本書看,當中介紹了一些幫助入睡的方法,及提醒妨礙入睡的行為。還特別提到記錄自己每日的睡眠時間及當日的精神狀態,找到最佳睡眠時間和改善睡眠效率。在此特意寫下書內的 睡眠行事歷療法 ,方便自己記錄使用。