In VBA, there is 3 types of Newline characters.
- vbCr – Carriage Return CR
- vbLf – Line Feed LF
- vbCrLf – Carriage Return CR + Line Feed LF
In VBA, there is 3 types of Newline characters.
In the content type setting, add a new CCK field as follow.
Continue reading Drupal – CCK Checkbox
So many “check” in this post title. haha~
You can get the checkbox state by the the following jQuery. Continue reading jQuery – Check if a Checkbox is CHECKED
After exposing the filter in views, we can configure it as follow such that it will automatically add an <Any> option in the selection list and display all values when the view is first rendered. Continue reading Drupal – Set Views Exposed Filter to show all values by Default
In Drupal, you can redirect to a specific URL using the drupal_goto() method. For example, if you want to go to a node with nid = 100, the following code will do. Continue reading Drupal – Escape the Hex Characters in drupal_goto()
We can pass local variable to partial as follow.
<%= render :partial => 'shard/test', :locals => {:foo => "bar", :foos => ["bar1", "bar2"]} %>
With Javasript and jQuery, we could manipulate images at client side. For example, some images are shown on a mouse hover effect. But if that image is too large, there may be some latency before the image could be rendered. We’d better preload those images to minimize the time delay. Continue reading Javascript – Preload Images When the HTML Page is Loaded
Add the following line to the Apache site configuration file or .htacess to define the default file for the web folder url. Continue reading Apache – Define Directory Index Page
棟篤屁之Mr.癫
翻版商場越開越多,但我還是停留在深水埗黃金的階段。唉,最新的追不及,先去信和中心和先達廣場惡補一下吧。
就小弟的研究,如果你的購買重點只是翻版碟,又不介意擠逼,信和絕對比先達出色。所謂出色,當然與質素無關。翻版的勢力,是以賤價建立起 來的。在先達,一般的VCD價是一百元三張。在信和,例牌價是一百元四張。有心人不難找到一百元五張。最近從某導演處收到消息,信和的最新指數,已到達一 百元八張的驚人價了。
就是這樣,我從信和的一樓,乘搭每級站著兩個人的行人電梯到二樓,又由二樓走到三樓,然後又從三樓走回二樓一樓,走遍每一個角落,滿眼盡是新新舊舊便宜到不能置信的電影VCD,由一百萬到一億的製作都是同一價錢,絕無歧視。
四級片?賤片配賤價,賤賤相惜,水乳交融,賤到你雪雪聲叫好。只要有市場,這裏都有得賣。Mr.Bean人氣這麼旺,豈容漏網,一套八隻,兩舊有找,Mr.Bean見到,肯定會變Mr癫。 Continue reading 子華文集 – 棟篤屁 之 Mr.癫
In PHP, we can use cURL library for generating SOAP request.
PHP – Send a SOAP Request by cURL
Except using the cURL library, we can also use the NuSOAP. The NuSOAP provides much more convenient way to create the SOAP request and it can be used in Drupal. The following example is base on the Blog post written be Eric London.
Executing a SOAP call from Drupal using nusoap Continue reading Drupal – Send SOAP Request by NuSOAP