關於 memcached,雖然可以找到一些基本
介紹,DK大神也有點到一些進階議題,不過最近看了 Using memcached PDF 之後才真正學到了不少實戰技巧跟如何設計快取的概念。以下是一些零散的筆記:
裝好之後,基本的啟動方式是
* `memcached -l 127.0.0.1 -P 11211 -m 128 -d` for deamon
* `memcached -l 127.0.0.1 -P 11211 -m 128 -vv` for development debug
kinomelma 發表在 痞客邦 留言(0) 人氣(62)
午休躺下睡!150專屬床鋪 獲選幸福企業
上班午休不用趴在桌上,可以躺在床上睡!這麼好康的員工福利,在台中龍井一間電機公司,老闆騰出350坪空間,規劃成5間午休房,讓150名員工一人睡一張床,中午時間好好休息,這間公司獲得2014台北勞動局舉辦的幸福企業,一顆星評選。
電機公司午休時間,員工走進房間,找到自己專屬床鋪躺下來,有枕頭墊、棉被蓋,還有空調吹,調好姿勢倒頭睡,超享受。電機廠主管:「這個名字是依照上舖下舖,所以每個人都有固定的床位。」
中午時間累了,不像一般公司,只能頭趴桌子睡,老闆規劃5間午休房,上下舖設計,每間容納20-30人,午休時間一小時,提供個人床鋪,讓員工養足精神。
kinomelma 發表在 痞客邦 留言(0) 人氣(1,607)
smarty |
$types = Array ( 'TM98800G' => Array ( 'zid' => Array ( '0' => '90001', '1' => '90002', ),
'count' => Array ( '0' => '90001', '1' => '90002', ),
), 'TM76654G' => Array ( 'zid' => Array ( '0' => '9f001', '1' => '9g002', ),
'count' => Array ( '0' => '33', '1' => '5235', )
) ); $smarty->assign('contact_type', $types);
|
kinomelma 發表在 痞客邦 留言(0) 人氣(499)
愛琴故事_Masaaki-Kishibe_X_Sungha-Jung_木吉他演奏會
主辦單位:弦風音樂文化事業
kinomelma 發表在 痞客邦 留言(0) 人氣(4)
vb.net or C#
//把控制項塞到陣列理
//RadioButton[] radios = new RadioButton[] { this.checkBox_1, this.checkBox_2,
// this.checkBox_3, this.checkBox_4,this.checkBox_5, this.checkBox_6,
//this.checkBox_7, this.checkBox_8,this.checkBox_9};
kinomelma 發表在 痞客邦 留言(1) 人氣(441)
為了避免跟html頁面中嵌入js腳本文件(常用{}框)編寫代碼段受影響,
故將原先包住變數的{}改成<{ 跟 }>。
例如原先使用{$hello},將變成<{$hello}>,也比較美觀
kinomelma 發表在 痞客邦 留言(0) 人氣(19)
準備一個圖片控制項pictureBox00,
準備9個radio控制項radioButton1~radioButton9
kinomelma 發表在 痞客邦 留言(0) 人氣(248)
index.php
<html>
<head>
<title>jQuery Test</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#submit").click(function(){
$.ajax({
url: "text.php",
type: "POST",
data: {
id: $("#id").val(),
firstName: $("#firstName").val(),
lastName: $("#lastName").val(),
email: $("#email").val()
},
dataType: "JSON",
success: function (jsonStr) {
var jwu = JSON.parse(JSON.stringify(jsonStr));//解析
if (jwu.json_sys =='1'){
$("#result").text(JSON.stringify(jsonStr));
}else{
alert(jwu.json_txt);
}
}
})
.error(function() { alert("發生錯誤!"); })
//.complete(function() { alert("complete"); });
});
});
</script>
</head>
<body>
<div id="result"></div>
<form name="contact" id="contact" method="post">
Id : <input type="text" name="id" id="id"/><br/>
firstName : <input type="text" name="firstName" id="firstName"/><br/>
lastName : <input type="text" name="lastName" id="lastName"/><br/>
email : <input type="text" name="email" id="email"/><br/>
<input type="button" value="Get It!" name="submit" id="submit"/>
</form>
</body>
</html>
kinomelma 發表在 痞客邦 留言(0) 人氣(2,683)
雖然iframe在目前網頁設計已經很少使用,
不過還是來看一下自動調整高度的iframe
1. iframe.htm
kinomelma 發表在 痞客邦 留言(0) 人氣(2,501)
Javascript刷新頁面的幾種方法:
history.go(0)
location.reload()
location=location
location.assign(location)
document.execCommand('Refresh')
window.navigate(location)
location.replace(location)
document.URL=location.href
kinomelma 發表在 痞客邦 留言(0) 人氣(2,297)