Tag Archives: Postaday2011

Drupal – HTTP request status Fails

If you got the following problem in the Drupal Status report.

  • Your system or network configuration does not allow Drupal to access web pages, resulting in reduced functionality. This could be due to your webserver configuration or PHP settings, and should be resolved in order to download information about available updates, fetch aggregator feeds, sign in via OpenID, or use other network-dependent services.

Continue reading Drupal – HTTP request status Fails

Ubuntu/Fedora – Disable Root SSH

For security reason, we’d better disable the root SSH access to server. Follow the steps below. (root privilege is needed)

1. Edit the SSH config file

  • Ubuntu – vi /etc/ssh/sshd_config
  • Fedora – vi /etc/sshd/sshd_config

Continue reading Ubuntu/Fedora – Disable Root SSH

CSS & jQuery – Hide the HTML page until the Javascript & CSS styles are completely loaded

It always takes some times for the browser to apply the CSS styles on the rendering page. Therefore, users may observe a style leap before the page is completely loaded. We could fix this problem by hiding the body anchor until the Javascript and CSS are loaded.

First, set the visibility of the body anchor to hidden. Continue reading CSS & jQuery – Hide the HTML page until the Javascript & CSS styles are completely loaded

What Technology Wants

作者: Kevin Kelly

What Technology Wants? 首先更係要知道 Technology 的定義。

為什麼智人 Homo Sapiens 可以係不同原始人部落中突圍以出? 若果時間可以倒流,歷史會重演嗎? 這一切都與 Technology 有關。

本書其中一部份敘述 Amish 一族的生活與他們對待 Technology 的文化,係好值得城市人反思。

到低係人類利有 Technology,還是 Technology 玩緊人類? 哈哈,天曉得。 =P

Drupal – Add Previous and Next Links for Node Navigation

When you are viewing a node, it would be nice to have the previous and next navigation buttons so that you can browse other nodes of the same content type more easily. This is exactly the recent task i need to complete. Luckily i found a very good post showing how to add the navigation buttons in just 2 steps.

1. Add the following function in your theme template.php Continue reading Drupal – Add Previous and Next Links for Node Navigation