▼
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