2013年12月24日 星期二

The Opposite of Procrastination

The opposition of procrastination might not be concentration but confidence.

When people lack of self confidence to overcome some tasks, they start to procrastinate, in order to escape from the obstacles. Lacking of confidence hinders oneself to take the challenge and would rather choose another way out. They may be under pressure for doing certain tasks. And thus, they are tempted to work on other less important tasks, which they might not have any motives to work at the other time. They choose a lesser evil in order to alleviate the internal stress produced, which a possible reason can be from self-doubting whether the challenge can be overcome or not.

Some would suggest environmental settings like moving to more quiet place and minimizing distractions help to avoid procrastination. However, the main reason for lacking concentration may be due to something more internal rather than the external factors. If this is your case, you might consider taking a look at the following advice. 

While environment might help, start reassure your motive and enthusiasm. Encourage yourself, break down the work and give yourself minor goals to achieve. Give yourself a little rests. Then try to keep yourself concentrated by all means. Forced work will never be better than the work with your self motivation. But a little enforcement may be needed to kick start your internal engine. Once you have broken through that tiny little entrance you will be able to dive and move on more naturally. Just a few more centimeters to go and things can be done much more easier with your prepared psychological manner.

This is a battle within you. So be strong mentally and do not lose any confidence and make any more excuses. Start your work, and know that getting start will never be too late than fearing to start any.



Christmas Eve 2013 - written on bus when going home
Whimsy Dreamer

2013年12月18日 星期三

[CSS] How to fix Margin Auto when Floating-Left Elements are involved

http://stackoverflow.com/questions/18329137/how-to-fix-margin-auto-when-floating-left-elements-are-involved

http://jsfiddle.net/kBqCJ/

<code>

<div class="page">
    <div class="container">
        <div class="box"></div>
        <div class="box"></div>
        <div class="box"></div>
    </div>
</div>


<style>
.page {
  width: 100%;
}

.container {
  width: 100%;
  display: block;
  margin: 0 auto;
    text-align: center;
}

.box {
  display: inline-block;
  width: 200px;
    height: 200px;
    background: grey;
}

</style>

</code>

[Google Chrome] Chrome Keyboard Shortcuts

http://www.keyxl.com/aaa3447/416/Google-Chrome-keyboard-shortcuts.htm

[IP Info] Find Info by IP Address

http://ip-lookup.net/

2013年12月16日 星期一

[Web Design] An Interesting Website

http://www.pickledwalnutcatering.co.uk

[CakePHP] Deployment Project onto Linux - The requested URL was not found on this server.

Env. 
- Ubuntu 10.X
- CakePHP 2.0



CakePHP project name : IAmCakeProj

Steps:

> cd IAmCakeProj
> sudo chown -R www-data app/tmp
> cd /etc/apache2/sites-available
>sudo vim default

        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

> :wq
> sudo etc/init.d/apache2 restart

> cd /etc/apache2
> sudo a2enmod rewrite
> sudo service apache2 restart

Then Test  if the problem is solved ~


[Linux] Check Service Port

sudo vim /etc/services

[Linux] Check DNS *Domain Tree*

dig +trace wditshare.blogspot.com

dig +trace wdshare.blogspot.hk



How to interpret:
Refer to: http://linux.vbird.org/linux_server/0350dns.php

[DNS] What is the Mechanism behind DNS ? / How does DNS work? ( in Traditional Chinese )

http://linux.vbird.org/linux_server/0350dns.php

2013年12月4日 星期三

[CakePHP] Access Control List (Acl)

Worth-to-read Webpage

http://book.cakephp.org/2.0/en/core-libraries/components/access-control-lists.html

[HTML5 + CSS3] Lovely Marine Responsive Web Layout Idea

http://blogbysid.wordpress.com/2013/04/29/login-with-google-in-cakephp/

[Google API] Google Calendar - Wrong Code samples!

http://stackoverflow.com/questions/13152587/creating-google-calendar-event

[Google API] Google Calendar - Find Event ID

The Calendar ID can be found by clicking on "Calendar settings" next to the calendar you wish to display. The Calendar ID is then shown beside "Calendar Address".

https://drupal.org/node/589310

[Google API] Google Calendar - Insert Event Demo

Try it

https://developers.google.com/google-apps/calendar/v3/reference/events/insert#try-it



Other Demos
https://developers.google.com/apis-explorer/#s/calendar/v3/

[Google API] Google DateTime Formatting

DateTime Formatting with Different Languages

https://developers.google.com/gmail/actions/reference/datetime-formatting

電視美食

由這裡
http://function1122.blogspot.tw/

http://www.finebind-tech.com/
這裡
https://www.facebook.com/finebind.tv


2013年11月20日 星期三

[PHP] PHP mysql_real_escape_string() 使用注意事項

http://www.doubleservice.com/2011/03/php-mysql_real_escape_string/


在 DBMS 為 MySQL 時,要留意 mysql_real_escape_string() 的使用時機,
要先確保產生 DB 連線資源後,才能正確使用,不然可能會產生空值。

2013年11月6日 星期三

[English Vocab Tutorial] melancholy, lucidity, coax, drily, reprimand, sheer

http://www.telegraph.co.uk/culture/tvandradio/9229745/Louis-Theroux-Extreme-Love-Dementia-BBC-Two-review.html


Dictionary.reference.com

mel·an·chol·y

  [mel-uhn-kol-ee]  Show IPA noun, pluralmel·an·chol·ies, adjective
noun
1.
a gloomy state of mind, especially when habitual or prolonged;depression.
2.
sober thoughtfulness; pensiveness.
3.
Archaic.
a.
the condition of having too much black bile, considered inancient and medieval medicine to cause gloominess and depression.
b.
black bile.
adjective
4.
affected with, characterized by, or showing melancholy;mournful; depressed: a melancholy mood.
5.
causing melancholy or sadness; saddening: a melancholy occasion.
6.
soberly thoughtful; pensive.



lu·cid·i·ty

 [loo-sid-i-tee]  Show IPA
noun
1.
the quality of being easily understood, completely intelligible, or comprehensible: She makes her argument with pointed logic and exemplary lucidity.
2.
the ability to see things clearly; rationality; sanity: In a rare moment of lucidity, the senator sided with his political enemies for the good of the country.
Sometimes, lu·cid·ness.


non·lu·cid·i·ty, noun



coax

1  [kohks]  Show IPA
verb (used with object)
1.
to attempt to influence by gentle persuasion, flattery, etc.;cajole: He coaxed her to sing, but she refused.
2.
to obtain by coaxing: We coaxed the secret from him.
3.
to manipulate to a desired end by adroit handling or persistent effort: He coaxed the large chair through the door.
4.
Obsolete .
a.
to fondle.
b.
to fool; deceive.
verb (used without object)
5.
to use gentle persuasion.



rep·ri·mand

  [n. rep-ruh-mand, -mahnd; v. rep-ruh-mand, -mahnd, rep-ruh-mand, -mahnd]  Show IPA
noun
1.
a severe reproof or rebuke, especially a formal one by a personin authority.
verb (used with object)
2.
to reprove or rebuke severely, especially in a formal way.


sheer

1  [sheer]  Show IPA adjective, sheer·er, sheer·est,adverb, noun
adjective
1.
transparently thin; diaphanous, as some fabrics: sheer stockings.
2.
unmixed with anything else: We drilled a hundred feet through sheer rock.
3.
unqualified; utter: sheer nonsense.
4.
extending down or up very steeply; almost completely vertical: sheer descent of rock.
5.
British Obsolete bright; shining.





Extension learning


wet behind the ears and not dry behind the ears; hardly dry behind the ears
young and inexperienced. 





pen·sive

  [pen-siv]  Show IPA
adjective
1.
dreamily or wistfully thoughtful: a pensive mood.
2.
expressing or revealing thoughtfulness, usually marked by some sadness: a pensive adagio.

2013年10月21日 星期一

[CakePHP] Call another Controller's method from a Controller

Use RequestAction() carefully:

$itemD = $this->requestAction(array('controller'=>'items', 'action'=>'findByItId', 'it_id' => $item['it_id']));


http://stackoverflow.com/questions/13947393/cakephp-importing-one-controller-inside-another-controller



If models have been linked (using hasMany, belongsTo, etc.) :

$supplier=$this->Delivery->Supplier->findBySpId($sp_id);

[CakePHP] UTF-8 encoding settings for the whole project in Eclipse


  1. Right click your project in Eclipse (for PHP Developers) > PHP Explorer View
  2. Properties > Resource Tab > Text file encoding > Other: UTF-8
  3. OK and done

[English] The Vocabulary - Meek

... Blessed are the meek, for they will inherit the earth ... [ Bible - Matthew 5:5 ]

Chinese Translation in 和合本
 - 溫柔

Meek in The Free Dictionary dot com:
 - Showing patience and humility; gentle.
 - Patient, long-suffering, or submissive in disposition or nature; humble
 - Humble and not likely to complain, argue, react strongly etc.


Some word references found in Biblos.com:
- ... But I will leave within you the meek and humble ... [ Bible - Zephaniah 3:12 ]
- ... The meek will he guide in justice: and the meek will he teach his way. ... [ Bible - Psalm 25:9 ]
- ... Now the man Moses was very meek, more than all people who were on the face of the earth. ... [ Bible - Number 12:3 ]
- ... Take my yoke upon you, and learn of me; for I am meek and lowly in heart: and you shall find rest unto your souls. ... [ Matthew 11:29 ]



More to read:

Meek vs Humble

We see that we can't judge someone else because the capacity for the same sin lies within us, causing us to display God's grace and mercy to those around us.

2013年10月18日 星期五

[CakePHP] find object by some field

$supplier = $this->Supplier->findBySpId($id);

[Linux] [VirtualBox] Start virtualbox remotely from command line

VBoxManage startvm HelloHelloIAmVMName --type headless

裝潢秘技輯錄

裝水喉要用銅喉, 不要鐵喉, 熱水冷水都是。
裝煤氣喉因化學原理要用特製鐵喉, 不能用銅喉。如果是用煤氣熱水爐, 就要搵煤氣公司整。
用煤氣熱水爐拆要找煤氣公司, 清拆費$165公價, 安裝費一般無特別改位公價$475, 如煤氣公司check到有漏氣, 要換喉, 可在牆外裝喉, 煤氣公司搭棚, $6100, 或在室內牆身"作"一條坑, 由浴室過到廚房, 唔洗搭棚, 再找裝修師傅補坑, 又或者室內裝明喉, 醜D。在室外整, 要在浴室鑽個洞出外, 再在廚房牆身鑽個洞入番屋。條喉會按長度收費, 由地腳線過定由天花過要注意。

條煤氣喉可經抽油煙機入家, 明喉不"作"牆落灶位, 煤氣喉位在灶頭下收埋, 灶頭2個爐位中間開`洞上番來。

找不同公司整櫃, 整裝修, 約時間度位, 不要在家中還有裝修工人時約時間, 大家都識整會爭飯碗embarrassing, 要約在放工晚點的時間。

等工人搭左棚整好鑽洞整炕的工夫, 再找煤氣公司裝喉, 唔好令煤氣師傅等工人整好, 佢先再有得整, 煤氣公司裝喉裝熱水爐大約要半日時間。

裝修師傅搭棚整屋外水喉, 搭完後大約2,3日左右就整好。

整牆外喉要同管理處講, 睇下會唔會影響到結構問題。

整傢俱起碼要四個星期前confirm定, 落定訂, 所以要儘早找人度位。要問定裝修方面地腳線會整幾高幾厚, 幾厚跟磚厚度,再加水泥厚度唔知幾多, 裝修師傅話地腳線高度一般會整4吋。

櫃門有分敞門定拉出的門, 向上向左拉, 中間有幾多層, 是否有活動層板, 留意本身家居的陣位。

同事話電插頭自己買左面板, 叫師傅安, 都要$30一個, 好貴。裝修師傅話加一個蘇位$450, 改面板一個$100, 仲貴。

家中搭棚, 裝修市頭婆話$3500是怕蝕本的價, 一般要$4800喎。聽住先。煤氣公司$6100。

個窗新整保留, 搭棚要搵人睇住, 費是整壞又sai錢。

裝修師傅話水喉有漏水, 會界左佢, 但唔會拆。

第日水喉裝明喉, 有咩漏水都易整D。煤氣喉係屋內的部分就整入牆, 無咁危險。

床褥保留的話, 整床要度床褥尺寸, 長闊高。 要預起碼4星期、二個月整。

電視櫃, 書桌等要留意埋開電線位, 插座位的位置, 櫃後有需要要開洞, 前面櫃筒就要短番D去就位。

要尊重使用者的意見, 和自己的意見作出平衡, 以和為貴。要記得自己也有很多盲點, 接受意見使情況更完整, 不後悔。

電腦影音櫃位一般要有24吋左右長度, 放機器。

煤氣爐位, 張枱要起碼深23吋, 先放到19寸深的煤氣爐, 因為前後要預2-3吋位受力。

吊櫃位置要開夠高, 唔好埳頭。敞門可防止埳頭的危險。拉開的門, 要留意上下拉、定左右拉, 單邊門的話, 較位係左定右會令開門方便。

床下放膠箱, 要留意膠箱最高的高度, 先訂床。

得閑(?!......)要諗下鑽洞洞位鑽邊, 掛架掛邊度, 幾高咩位。

櫃有腳可方便清潔。櫃不上到天花, 留幾寸位, 可增加空間感。

角櫃空間唔正方, 要想清楚放什麼作決定是否真的要角櫃, 不要單追求美感。

上磚要留意紋理。有聽過有人, 選擇現場睇住師傅一塊塊磚鋪上去, 因為是大理石紋, 所以特別要求留意紋方向, 磚紋靚D放中央, 無禁令放邊。此決定視符個人要求。

上磚用黑英泥。掃口用白英泥, 或掃口粉。



下雨天, 打風天, 記得關好窗, 同仔細留意有沒有漏水。

牆外喉的係屋外牆身的開洞位可自己塗一D防漏膜, 好似白膠漿咁, 保護住防止sum水。大面積d唔怕。上下左右都塗。

洗衣機有入水喉、出水喉、同開關水制。出水喉要多d空間, 因為佢會好勁咁擺擺下。



地下開始上磚就可預備定牆紙。牆紙包送上門。牆紙要揀厚D既紙, 唔好有發霉。

上牆磚用野敲下聽下D聲實唔實。

上油漆的步驟:壹、剷底;貳、油防潮底漆;叄、批灰;肆、打磨整平滑,清潔;伍、油啞白底漆;陸、油面油。

整牆,防潮底漆用油司拿。批灰可加白膠漿。

http://www.npc.edu.hk/staff/~ngtungying/homediy/homediy.htm

裝燈叫賣燈公司安裝, 有咩事佢可以包。叫裝修師傅裝燈壞左佢唔負責。




舅父教的人生道理。


開支票要影印一張先俾人, 第日同收據釘埋一齊filing就最好。Filing一頁頁跟日期之類放好。


計劃要有plan A plan B, 預留一手。時間可以的話幾樣同時進行, 減省時間同勞心。

工作事務上, 打電話問咩都要mark低時間, 同問佢點稱呼。有咩跟問番佢。

要多方面正面溝通, 唔好估估下。要了解事情背後的發生, 唔係人講咩你聽咩。
要係唔同人身上溝通, 得多D資訊。因為自己唔知, 所以要大家交流。例如搭棚搭左2個星期, 原來要續牌架喎, 但原來續牌唔關我事, 是關搭棚公司事。我唔洗俾錢, 唔洗理。


要諗下assign野俾我做的原因。

要嘗試知道整個流程。

要諗清楚點問人問題。要有技巧得到我想人答的答案。

要減少誤會的發生。要正面溝通。要用多種方式因應情況溝通。


佢話, 學到幾多睇你自己。



2013年8月27日 下午4:50
2013年10月18日 上午0:18






Below is copied from web:

http://www.designerhk.com/forum/post/7570

每個裝修的一般"正常"程序, 由舊屋翻新全做開始:



1, 拆除舊有裝修至大樓內牆, 傢俬, 牆身, 地面, 天花批盪, 廚房廁所喉管及電線等等.....

2, 鋪設入牆電線及喉管...

3, 平整地台, 牆身及廁所防水....

4, 更換窗框, 廁所牆身地台天花設施安裝....

5, 初步廳房牆身及天花批盪底油....

6, 鋪設廳房地台....

7, 安裝入牆/間隔櫃及固定裝飾....

8, 廚櫃爐灶設施安裝, 更換大門....

9, 安裝電掣插蘇冷氣燈飾等等....

10, 全屋天花牆身面油或牆紙.....

11, 執漏及最後修飾....



以上只係"最理想"的裝修流程,實際施工程序多少會有點出入.


2013年10月16日 星期三

Cultivating a Grateful Heart

http://www.unionchurch.com/archive/112199.html


"In another setting, you put on a pair of shoes that don't fit right. After walking in them for a little while, your feet scream that they need a break. You sit down, rub your feet or soak them in water. But, if you had leprosy, you wouldn't know that your feet were being hurt and you would continue to walk creating blisters, ulcers and other damage to your feet."

"Pain is really our friend because it alerts us to the fact that something is wrong."

2013年9月25日 星期三

wd經文輯錄

我在磨煉之中,常和我同在的就是你們。 Luke 22:28
Jesus said so when disciples are arguing who is the biggest.
Random browse to comfort soul at office
Lord's calling to Jeremiah:
But the Lord said unto me, say not, I am a child. For thou shalt go to all that I send thee, and whatsover I command thee thou shalt speak. Jeremiah 1:7
Sunday sch. teaching. Recited in Chinese and kjv during the week of 2013/09/15-2013/09/25


To act justly, to love mercy, and to walk humbly with your God. Micah 6: 8
recited verse on quiet time 2013/9/24

Attitude toward Death

http://www.write-out-loud.com/inspirational-quotations.html

Attitude toward Death

Live your life that the fear of death
can never enter your heart.
Trouble no one about his religion.
Respect others in their views
and demand that they respect yours.
Love your life, perfect your life,
beautify all things in your life.
Seek to make your life long
and of service to your people.
Prepare a noble death song for the day
when you go over the great divide.
Always give a word or sign of salute when meeting
or passing a friend, or even a stranger, if in a lonely place.
Show respect to all people, but grovel to none.
When you rise in the morning, give thanks for the light,
for your life, for your strength.
Give thanks for your food and for the joy of living.
If you see no reason to give thanks,
the fault lies in yourself.
Touch not the poisonous firewater that makes wise ones turn to fools
and robs the spirit of its vision.
When your time comes to die, be not like those
whose hearts are filled with fear of death,
so that when their time comes they weep and pray
for a little more time to live their lives over again
in a different way.
Sing your death song, and die like a hero going home.

The Teaching of Tecumseh

- See more at: http://www.write-out-loud.com/inspirational-quotations.html#sthash.3TdbNASK.dpuf

2013年9月23日 星期一

Keep onto the right track



 'I won't give up on making our house great, but I realize now that family comes first. Besides, what's the point of having a perfect house if you're too miserable to enjoy it?'

2013年9月13日 星期五

[???] what is it?

http://www.statsnode.com/www/polyu.edu.hk/inbound-links/


routemarket.org is on the list ;o

Web design trend

http://www.hongkiat.com/blog/web-design-trend-2013/

[???] What is it?

http://www.mojo-themes.com/user/webfactory/

[Google Image search] Do you notice? You can search by *Image* url


How to use:
support.google.com/images/answer/1325808?hl=en



My result:
https://www.google.com.hk/search?safe=active&hl=zh-TW&tbs=sbi:AMhZZiuw8TAf2Mzn7d9KxUgNn9KSbv2C-nLmTcRJlISNzkf0vDMI7ihF2MHv7C1DmtuxqAt6aS2CNAcL9Gp9bc1W2p_17eo5mIc7fxkFSqfmJslBep7CD-M7CjBsw--rgX9R6YS5J5hCHkpywjQwcHFiVJBKYbAy4z-7p531KMFpx50Rwk9iiPKGfY95v72vfr4weAHdFWszK3vGi7S8F3lrw_1A3KqeXG90tzIBWP3kZKo3hDL_1IM_1O23-4nV-pRfwZQnbls4GBM3IWIdqOM3wLx_1wgouooJ70mlpS2eq3gsIYBfNnkdtcfYGQ1xVVsaSf4XlZHWzZwJFTh0I3VvfPLvNu1C2kUReNw7cMNBpgIvNiyQl5BKx4eDe22Ce26b9YpIbTOtCG2P5_18bxrsQmzjiSjHdn-pJkAQ7EDYCmU0uo8lu8SynRSP5xTiiMxUT5IF9TGfGgqSpCafNv0rLaMBARBnD8P3bBwlbAXwYjxCW52Fqcg8hayb4mnhsA2N-Mev6FjRdVsgjyWDMFwtApt8SxNLS8BTyXFd3GdbB_16kEwx1lM9I3nKWUXNejyFcmbHFsB6ta6E9_10lPx2E223YtrkUmEqNa68AWhcCf8RJtEJ3SDRuOZ2sz0q3_1HudMl03jtXd0r7U5ZHzQn34eAMhdj9bFb3nPL_1S7Tgaby1X3qsgObLAZCkRAxeFazSHtG47JHHHw9zp9BwXaC6Xg-msf9jgExOka2i_1ea_13C-_1XaL9o8WGnK1EsplBwiqNiN0BIcPZGA88RyuE4BB0p7sz-pvrjJpBuM8I25tGXbxMnFKa6Wz5ZfaULy1InSx0vPd0MQ5dkG1q44a23ipzvkLzs8HNEKE4igqZ9gjq97jgx9e49jae5R5mM0ntO3n5BiLm0vE7IlhQZxcDOYRRnvKw6olGj5Ztja30gbDTA86MpzgKHPONr2U6qwhFWQerPcMR46vRcBsPHeUw0e9zvDKtUwxYSeQ8UThndbbMJsRIlJNp6Q8dMwljr1xubqVPTm2NR_1BJCCb-NwC0nL7xRSkZ6_1eHB1kBFqEN4itIHCJ_1SBAFxWd4G4fpD06xhGgu2LrfB8Jkfuf4Tcd93l3o1TT2RbX_1kddjNEVEj00o6yJUuIEU8viqCpCEJ3IGNdgJs9Hc_186ddUZM9Jk1f8IkSmXtij0YeVyBvSgZHO-5coKjmRMuXW5Sfk5FFCNPWOFkeabpTfwtfSXcfl_17HqrLCS5KI-tRqt_1MtJ21I8ryegYVGn_1ip5qa90z3JGn-ajvqfJIgY90BRL0UdyDFhhV1iPnSEV-a6rWTvdkMhVzr9tkM266m4K_16B9a68TyGr5492UcM48tJALNElotf4mSyGQOUGxU47z5OHDllYN3BVcXo3pOmXud0rGI9fJfUdCbwZL3zcz0ltwMISoWOBYIZO2GDDDHR6vcuVhN5Gb2zj-htSv65wK4izp8p7VIqacavz3y6JAXsAqkyk3r_1myAoc04cRlo7vjow_1KixPQtlfohzehOq9we2eyFr9p-Z6vQBTnYKO6_1CnpU-cdlWz_1n8zFEmGlJdzqddxIJjzgQL-SbcjflSmpXr9yhAGkK9bFgeQL6JRqFmu0tAMRqlE4OQT-QidwXHoQFE1TESyg&ei=6YgyUoXsHYSViQeloYHAAg&start=110&sa=N&biw=1920&bih=955&dpr=1

2013年9月10日 星期二

Healthy boundaries

http://womensjournalmd.com/blog/2012/01/29/do-you-have-boundary-issues-take-a-quiz-and-find-out/

http://www.positivelypositive.com/2012/06/29/how-to-create-healthy-boundaries/

http://www.actsweb.org/articles/article.php?c=4&d=2&i=1202

http://www.lifecoachingforchristianwomen.com/resources/self-directed-coaching/article-index/christian-boundaries/





http://www.make-my-christian-life-work.com/boundaries.html

http://www.everydaychristian.com/blogs/post/8867/


http://www.daveantion.com/articles/assertive.php

Be aware of being manipulated

http://www.selfgrowth.com/articles/Treffert1.html

http://midiboy.com/blog/index.php/2010/03/05/how-to-manipulate-others-or-avoid-manipulation-all-together/

Eat uncontrollably under Stress

http://en.wikipedia.org/wiki/Compulsive_overeating

http://en.wikipedia.org/wiki/Binge_eating

http://www.doctoroz.com/blog/mehmet-oz-md/are-you-eating-your-feelings

http://healthyeating.sfgate.com/stop-uncontrollable-eating-habit-2419.html



http://psychcentral.com/lib/21-tips-to-stop-being-a-people-pleaser/0007158

http://psychcentral.com/blog/archives/2011/07/11/10-practical-ways-to-handle-stress/

http://psychcentral.com/blog/archives/2011/06/22/cultivating-self-compassion/


http://psychcentral.com/blog/archives/2011/05/11/the-fear-of-making-mistakes-and-interesting-insights-on-being-wrong/

2013年8月23日 星期五

[Windows] List all devices on the network in command prompt

arp -a


Notes:

What is ARP?

Address Resolution Protocol - which stores the mapping of IP address to physical MAC address.

E.g.




What is dynamic type and static type?

Static type - you hard-coded the rule somewhere.

Dynamic type - the OS automatically find the rules for you when start-up.


Where does the table store?

ARP table stores in RAM in windows. So it clears and updates again after reboot.


Where does the static type rule store in windows?

Use netsh command in windows (remember to run as administrator) to figure it out yourself. ;)


How to clear the static ARP entry?

Run netsh interface ipv4 reset  (remember to run as administrator).

:) Happy networking :D


2013年8月22日 星期四

[Ubuntu] Some Basic Commands

sudo poweroff

sudo reboot

sudo shutdown -h 0


[Ubuntu GUI] shortcut

Ctrl + Alt + L = Lock Screen
Ctrl + Alt + T = Terminal

[Ubuntu] Accidentally "apt-get removed" a package

*Note: Related packages can be removed also.



1) Check what has(have) been removed from log:

sudo vim /var/log/apt/history.log



2) Download back the .deb file(s) with exactly the same package version, Ubuntu version and CPU model from web in another internet-connected computer. Upload them to the ill server('s desktop).




3) Install the .deb file(s) in LIFO seq. accd. to log using:

sudo dpkg -i the_deb_file_with_same_version_number_and_cpu_model.deb



4) Restart Ubuntu.



Check if it works or not.




[Ubuntu] Check Ubuntu version

lsb_release -a

[Blogger] Change time zone setting



https://support.google.com/blogger/answer/41963?hl=en

[Ubuntu] List all VirtualBox VMs

VBoxManage list vms


Help:
VBoxManage list [--long|-l] vms|runningvms|ostypes|hostdvds|hostfloppies|
                            bridgedifs|hostonlyifs|dhcpservers|hostinfo|
                            hostcpuids|hddbackends|hdds|dvds|floppies|
                            usbhost|usbfilters|systemproperties|extpacks



Variant Example:

VBoxManage list runningvms --long

[康復路] 試完又試

見了醫生,因為血色素又變低了,醫生想檢查是否「缺鐵」為成因,檢查又檢查…… 感覺有些麻煩……又抽血,又要留樣本…… 令我回想起當日入院的時光,因為一些原因,留樣本只需留一次,免卻留三次的麻煩;現在每天都要留一次,連續三天。每天早上就要跑醫院一趟再上班。 幸好也完成了。 第二次抽血...