2013年12月31日 星期二
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月23日 星期一
2013年12月19日 星期四
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>
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>
2013年12月17日 星期二
2013年12月16日 星期一
[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 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
dig +trace wdshare.blogspot.hk
How to interpret:
Refer to: http://linux.vbird.org/linux_server/0350dns.php
2013年12月13日 星期五
2013年12月12日 星期四
2013年12月9日 星期一
2013年12月6日 星期五
[Web Authentication] Opauth - Multi-provider authentication framework for PHP
An "intermediate layer" to allow a PHP application to connect to different web providers
http://opauth.org/
http://bakery.cakephp.org/articles/uzyn/2012/06/25/simple_3rd-party_provider_authentication_with_opauth_plugin#how-to-use-this-plugin
https://developers.google.com/accounts/docs/OAuth2WebServer
http://opauth.org/
http://bakery.cakephp.org/articles/uzyn/2012/06/25/simple_3rd-party_provider_authentication_with_opauth_plugin#how-to-use-this-plugin
https://developers.google.com/accounts/docs/OAuth2WebServer
2013年12月4日 星期三
[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 DateTime Formatting
DateTime Formatting with Different Languages
https://developers.google.com/gmail/actions/reference/datetime-formatting
https://developers.google.com/gmail/actions/reference/datetime-formatting
訂閱:
意見 (Atom)
回復天然的模樣
曾經面對過皮膚幽谷的日子。總之就是壞,以及惡性循環。發炎與含膿。就此過渡了令人憧憬的青蔥歲月。 歲月摧人,學習愛護自己。 每天出門都搽防曬。好好睡覺。不喝冷飲。少吃辛辣。 發現原來皮脂管絲是正常的皮膚狀況,不用理會。 漸漸的,發炎與紅腫的地方收歛了、縮小了、變平了。 因為少了油脂...
-
裝水喉要用銅喉, 不要鐵喉, 熱水冷水都是。 裝煤氣喉因化學原理要用特製鐵喉, 不能用銅喉。如果是用煤氣熱水爐, 就要搵煤氣公司整。 用煤氣熱水爐拆要找煤氣公司, 清拆費$165公價, 安裝費一般無特別改位公價$475, 如煤氣公司check到有漏氣, 要換喉, 可在牆外...
-
Wow, 又一突破,自己換水龍頭 話說尋晚搭完飛機返到香港,第一時間拎曬行李喼d衫出黎洗,執好d野後,想沖埋涼一機過洗曬d衫,但唔知係咪去完旅行太興奮,開完個水龍頭之後點關都關唔到,感覺到裏面有d野斷左/鬆左/甩左咁,唯有沖完涼即刻放個花灑落水桶度,即刻拿拿淋去關水制。。。我...
-
8 January 2012 at 15:16 前言 話說12月左右, 考試前幾日開始左下面隻智慧齒異常的痛, D牙肉好腫, 所以去左POLY睇牙。之前E生都話過我隻智慧齒斜生, 頂住前面隻牙, 一來容易SIP食物, 2來可能影響前面隻牙會蛀, 所以叫我最好...
-
What is Interceptor? http://viralpatel.net/blogs/spring-mvc-interceptor-example/ Add autowired interceptors from Java Config http://stac...
-
Source: http://www.hket.com/eti/article/913472db-26f6-465a-b643-c5daaba82f4b-406134?category=green_news&source=print&printable=tru...