
蒙牛官网又被黑了,为什么要说一个“又”字呢,因为它在轰动一时的“三鹿奶粉”事件中被黑过一次,我觉得当时我是截图留恋过的,但是现在找不到了,还是算了,贴上现在的一张也能说明问题的。对于蒙牛呢说得文雅一点叫做“罪有应得”,说得通俗一点呢就叫做“活该”。大家有时间可以上去瞻仰一下,网址是http://www.mengniu.com.cn/。

蒙牛官网又被黑了,为什么要说一个“又”字呢,因为它在轰动一时的“三鹿奶粉”事件中被黑过一次,我觉得当时我是截图留恋过的,但是现在找不到了,还是算了,贴上现在的一张也能说明问题的。对于蒙牛呢说得文雅一点叫做“罪有应得”,说得通俗一点呢就叫做“活该”。大家有时间可以上去瞻仰一下,网址是http://www.mengniu.com.cn/。

Latex代码如下:
% A Christmas tree
% Decorations by Andrew Stacey
% Based on a fractal tree (L-System) drawn in TikZ by Stefan Kottwitz
% Tree example from the book "The Science of fractal images" by Peitgen and Saupe.
documentclass{article}
usepackage{tikz}
usetikzlibrary{%
lindenmayersystems,
decorations.pathmorphing,
decorations.markings,
shapes.geometric,
calc%
}
tikzset{
tinsel/.style={
#1,
rounded corners=10mm,
ultra thin,
decorate,
decoration={
snake,
amplitude=.1mm,
segment length=10,
}
},
baubles/.style={
decorate,
decoration={
markings,
mark=between positions .3 and 1 step 2cm
with
{
pgfmathsetmacro{brad}{2 + .5 * rand}
path[shading=ball,ball color=#1] (0,0) circle[radius=brad mm];
}
}
},
lights/.style={
decorate,
decoration={
markings,
mark=between positions 0 and 1 step 1cm
with
{
pgfmathparse{rand > 0 ? "dart" : "kite"}
letlshapepgfmathresult
pgfmathsetmacro{tint}{100*rnd}
node[rotate=90,lshape,shading=ball,inner sep=1pt,ball color=red!tint!yellow] {};
}
}
}
}
begin{document}
begin{tikzpicture}
coordinate (star) at (0,-1);
path (star) +(-50:7) coordinate (rhs) +(-130:7) coordinate (lhs);
draw[brown!50!black,line width=5mm,line cap=round] (star) ++(-90:6.8) -- ++(0,-1) coordinate (base);
node[scale=-1,trapezium,fill=black,minimum size=1cm] at (base) {};
foreach height/colour in {%
.2/blue,
.4/yellow,
.6/red,
.8/orange,
1/pink%
} {
draw[tinsel=colour] ($(star)!height!(lhs)$) to[bend right] ($(star)!height!(rhs)$);
}
path (star);
pgfgetlastxy{starx}{stary}
begin{scope}[xshift=starx,yshift=stary,yshift=-7cm]
draw[color=green!50!black, l-system={rule set={S -> [+++G][---G]TS, G -> +H[-G]L, H -> -G[+H]L, T -> TL, L -> [-FFF][+FFF]F}, step=4pt, angle=18, axiom=+++++SLFFF, order=11}] lindenmayer system -- cycle;
end{scope}
foreach height/colour in {%
.1/pink,
.3/red,
.5/yellow,
.7/blue,
.9/orange%
} {
draw[tinsel=colour] ($(star)!height!(lhs)$) to[bend right] ($(star)!height!(rhs)$);
}
foreach height in {.15,.35,...,1} {
draw[lights] ($(star)!height!(lhs)$) to[bend right] ($(star)!height!(rhs)$);
}
foreach angle/colour in {
-50/red,
-70/yellow,
-90/blue,
-110/pink,
-130/purple%
} {
draw[baubles=colour] (star) -- ++(angle:7);
}
node[star,star point ratio=2.5,fill=yellow,minimum size=1cm] at (star) {};
end{tikzpicture}
end{document}
转自:http://valenliao.blogspot.com/2010/02/ie-compatible-for-gallery-template.html
也許你和我一樣也擁有與使用 Blogger 所提供的 Blog 空間。從前 Blogger 給網友的印像大概就是它所提供的 Template 太少,也太簡單了,因此也無法獲得一般網友的青睞。事實上在網路上已有許多Blogger Template 的設計者設計了許多令人驚艷的主題式樣本。這似乎也讓一般網友有機會接觸 Blogger 並在 Blogger 所堤供的空間裡經營 Blog。最近有一種 Blogger 主題式樣本 – Gallery 系列 – 蠻受大家喜歡的。這篇文章算是一篇教學文吧!想分享一些有關Gallery 系列主題樣本的資訊與如何修改它,讓它與 MSIE (Microsoft Internet Explorer) 相容。
當你安裝好 Gallery 樣版後,在 Header 下方你會看到一個 Navi-bar 。但如果你是 MSIE 的使用者 (版本早於 8.0.7600),你會發現那個 Navi-bar 對 Mouse 指標沒有反應。你需要修改的部份如下:
在 HTML 程式碼的的最上方,找到 Conditional Comment Code “[if IE]”。
刪掉以下的 Conditiional Comments:
[if IE] [endif]
或者,如果你想對 MSIE CSS 提供更好的支援的話,把刪掉的 Conditional Comments 改成如下的 Conditional Comments:
存檔後,試看看重新執行 Galler,Mouse 對 Navi-bar 應該已經有反應了。
關於第二項需要修改的部份,如果你是MSIE的使用者,你會發現一個程式碼錯誤的警告,如右圖左下角所示。這項錯誤是有關於 Browser 解釋 div 物件 innerHTML 的問題。在這一點上,MSIE 的行為與其它 Browser 的行為不太相同。基本上,div.innerHTML 並非 div 的標準物件,但大部份的 Browser 都支援它就是了。MSIE 基本上在處理 div.innerHTML 時,程式設計師最好是把要塞入 div.innerHTML 的物件包裝成 DIV 的形式比較不會有問題。有興趣的話可以到 MSDN 網站去看看相關的說明。
在 Gallery 樣版中,相關的原始碼如下:
function createSummaryAndThumb(pID, pURL, pTITLE){
var div = document.getElementById(pID);
var imgtag = "";
var img = div.getElementsByTagName("img");
var summ = summary_noimg;
if(img.length>=1) {
imgtag = '
';
summ = summary_img;
}
var summary = imgtag + '
';
div.innerHTML = summary;
}
除了不與 MSIE 相容之外,在 Gallery 樣版中,createSummaryAndThumb() 函數, 會把相對於縮圖格內 (Photo Thumb) 的圖檔連結位址改成在 Item Mode 的位址,以便瀏覽者在點選縮圖時會開啟獨立顯示圖檔的 “大圖”。但此功能對於直幅相片的支援很爛,會把一張美美的照片弄到變形,就像是變形蟲一樣。因此在修改 createSummaryAndThumb() 函數時,我僅參照縮圖格的高度來改變縮圖的大小,並非原始程式碼中同時參照縮圖格的高度與寬度。 修改後的程式碼如下:
function createSummaryAndThumb(pID, pURL, pTITLE){
var div = document.getElementById(pID);
var imgtag = "";
var img = div.getElementsByTagName("img");
var summ = summary_noimg;
var isMSIE = (navigator.appName == 'Microsoft Internet Explorer');
var pic_height = img_thumb_height - 2;
var pic_width = img_thumb_width - 2;
if(img.length>=1)
{
if(isMSIE)
{
imgtag = '
';
}
else
{
imgtag = '
';
}
summ = summary_img;
}
var rmtag = removeHtmlTag(div.innerHTML,summ);
if (rmtag == "..."){ rmtag = ""; }
var summary = imgtag + '
' ; summary = '
'; div.innerHTML = summary; }
最後一個問題是有關於圖檔快取服務的問題。在 Gallery 樣版中會引入一項由 Dropbox 所提供的 Cache Directory Service。關於這個問題,其實也不算是個 Bug,基本上 Gallery 利用這項圖檔快取服務是為了要增加秀圖的速度。因為並非每一個網路相簿空間的提供者 ( 如:Flickr 與 Picasa ) 都提供足夠的速度來支援外連服務。因此,這項服務的引入似乎有其必要性。至於 Dropbox 所提供的 Cache Directory Service,可以參照 Dropbox 官方網站的說明。但我發現引入這項服務有時 (再次強調… 是 “有時候”) 反而會大幅降低秀圖速度。如果你的網路相簿空間的提供者提供高速的圖檔外連服務,基本上你不會需要這項圖檔快取的服務。

因为晚上要看书,以前的那个台灯不好用了,看到V2ex上有人推荐特提亚工作灯,就去买了一盏。原台灯不包含灯泡,另外买了两个灯泡,共计108,回来自己组装了一下,用起来还算满意。
一直想修改“Documents and Settings”文件夹的位置,但是没有找到方法,最近有点时间就试验了一把,还是很惊险的。由于我已经安装了系统使用很长时间了,很多资料的转移还是很困难的,网上的教程有些不适用,还是记录了一下。
首先在C盘根目录下建了一个Home文件夹,想模仿Linux系统。将C:Documents and SettingsAdministrator目录下的文件和文件夹拷贝到C:Home文件夹下,我的用户名为Administrator。进入系统属性-高级-环境变量-用户变量,新建一个变量ALLUSERSPROFILE,变量值:C:Home。再来一个变量userprofile,变量值:C:Home
另外为了将DOS命令行的起始目录设置为C:Home,我进入组策略的用户管理项,将Home folder选项下Local path设置为C:Home,这样当我们启动CMD的时候显示的样子大概就是这样的:
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:Home>
通过修改注册表,我将“我的文档”等的默认位置也修改了,具体修改步骤我也说不清楚,总之修改以后到目前为止还没有出现副作用。我将“我的文档”的默认位置修改为“D:Document”,“我的音乐”的默认位置修改为“D:Music”,“我的图片”的默认位置修改为“D:Picture”。默认情况下,“我的音乐”和“我的图片”是在“我的文档”文件夹下的,我很讨厌这种分布,就将它们修改为平级了。
Recent Comments