Last time we talked about how to clear DNS Cache in Mac.
Mac – Clear DNS Cache
How about flushing DNS Cache in Windows? The following command will do. Open command prompt and enter it. Continue reading Windows – Clear DNS Cache
Last time we talked about how to clear DNS Cache in Mac.
Mac – Clear DNS Cache
How about flushing DNS Cache in Windows? The following command will do. Open command prompt and enter it. Continue reading Windows – Clear DNS Cache
The way to build a complex system that works is to build it from very simple systems that work.
Kevin Kelly
During development we always need to print the objects in views for debug. In Rails, there are two ways you can print the Ruby objects. Continue reading Rails – Debug Your Application in View
日本經濟自九十年代資產泡沫爆破後,一直處於長期底迷狀態,失業率只向上不向下,東京樓價高企,貧富差距擴大,中產消失(大前研一所講的M型社會)。
那這二十年,日本政府到底做過什麼?為何冇人可以帶領日本走出這長久的經濟困局?
其實好簡單,叫他們學習香港的高官,開放日本市場,吸引內地人到日本投資,要幾多有幾多,唔駛炒樓,剩係賣不會食到生腎結石的奶粉,我肯定日本GDP最少都漲一兩個巴仙。 Continue reading 一直在進步的社會與民族
The following HTML is an example to check if an option is selected in a select box. Continue reading jQuery – Check if an option is selected in Select Box
By default, Devise will redirect you to the root path after sign in. but sometimes we would like to redirect to the previous page where the anonymous user wanna access. This can be done by the following. Continue reading Rails – Redirect Previous Page After Devise Sign In
The flash message is useful for notifying user. Rails 3 allows simple manipulation of the flash message.
1. Add the flash message in app/views/layouts/application.html.erb Continue reading Rails – Show Flash Message
The dompdf is a PHP library which help you to convert HTML into a PDF file. Actually i haven’t tried to implement it by myself but recently, i followed an project which used the dompdf and there is a UTF-8 decoding issue for special character like an Apostrophe. Continue reading PHP – dompdf UTF-8 decode problem
Last time we should you how to create the mock user using the Factory Girl ♥ Rails gem.
Rails – Create Mock Data for RSpec
Recalled that spec file. Continue reading Rails – Devise User Sign In for RSpec