2011年8月2日 星期二

We love varnish

[PDF] Varnish 

[PDF] Varnish http accelerator

[PDF] Using Varnish VCL for webmasters


Inline C-code
Can be added between, and in functions.
Requires C-clue.
Can do almost anything.

C{
    printf(”Hello World\n”);
}C

All information from phk@freebsd.org

2011年7月18日 星期一

Varnish and Multiple Backend


Multiple Backends

backend default {
  .host = "127.0.0.1";
  .port = "8080";
}
 
backend stylesheets {
  .host = "10.0.0.10";
  .port = "80";
}
 
sub vcl_recv {
  if (req.url ~ "^/stylesheets") {
    # set stylesheets backend
    set req.backend = stylesheets;
    return(lookup);
  }
 
  # set default backend
  set req.backend = default;
  return(pass);
}



Round Robin And Random Multiple Server Backend

2011年3月20日 星期日

使 CUDA wizard 支援 sm_20 (Fermi)

CUDA wizard 只支援到 sm_13,這樣無法使用 Fermi 架構的特性

安裝完 CUDA wizard 之後,若是使用 VS 9.0 請修改
C:\Program Files\Microsoft Visual Studio 9.0\VC\VCProjectDefaults\cuda.rules

增加兩個片斷,請 search sm_13

<!-- after arch sm_13 -->
<EnumValue
Value="8"
Switch="-arch compute_20"
DisplayName="2.0 (virtual) Arch"
/>

<EnumValue
Value="9"
Switch="-arch sm_20"
DisplayName="2.0 (hardware) Arch"
/>

第二段
<!-- after code sm_13 -->
<EnumValue
Value="8"
Switch="-code compute_20"
DisplayName="2.0 (virtual) Arch"
/>

<EnumValue
Value="9"
Switch="-code sm_20"
DisplayName="2.0 (hardware) Arch"
/>
Fermi (2.0) 並沒有 virtual 的部分,其實上面可以再縮減。
重新啟動 Virsual Studio,專案屬性應該就能選 sm_20 了。

2011年1月10日 星期一

PyCon US 2011 & PyCon Asia Pacific 2011

PyCon US 2011
http://us.pycon.org/2011/home/
(this website is based on Django and Pinax.)


PyCon Asia Pacific 2011
http://apac.pycon.org/
(this website is based on Plone.)