PIXNET Logo登入

Kenneth的部落格

跳到主文

部落格全站分類:不設分類

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 9月 13 週日 201512:56
  • M101P: MONGODB FOR DEVELOPERS

2015-09-13_134042
HOMEWORK: HOMEWORK 6.5
 
In this homework you will build a small replica set on your own computer. We will check that it works with validate.py, which you should download from the Download Handout link. 

Create three directories for the three mongod processes. On unix, this could be done as follows:
(繼續閱讀...)
文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣(49)

  • 個人分類:軟體開發筆記
▲top
  • 9月 13 週日 201501:42
  • [MongoDB] journal、W option and J option、Write concern

2015-09-13_014332
Write Concern Reference
Write concern describes the guarantee that MongoDB provides when reporting on the success of a write operation.
 
(繼續閱讀...)
文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣(43)

  • 個人分類:軟體開發筆記
▲top
  • 9月 10 週四 201522:46
  • [MonogoDB]mongodb fork in windows

I have seen on tutorials that they use --fork as parameter of mongod. But when I try to do so, it says unknown option --fork. So how to --fork mongodb on windows?
 
(繼續閱讀...)
文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣(53)

  • 個人分類:軟體開發筆記
▲top
  • 9月 10 週四 201518:40
  • [Google Analytics]在網站上加裝 Google Analytics --Tracking Code

2015-09-10_164302-1
做網站基本上少不了流量分析這一塊。感謝 Google 大神提供了 Google Analytics 這套工具,功能強大又免費,可以說是我們做網站的人的最佳拍檔。
 
(繼續閱讀...)
文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣(300)

  • 個人分類:Google Analytics
▲top
  • 9月 10 週四 201518:23
  • [GA]How to add a new website in Google Analytics 在Goolge Analytics新增一個網站

2015-09-10_182539
Step 1
Go to https://www.google.com/analytics/ and click on Access Google Analytics at the top right.
(繼續閱讀...)
文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣(18)

  • 個人分類:Google Analytics
▲top
  • 9月 10 週四 201517:23
  • [AngularJS] Route 和 controller 分開存至不同的JS檔

2015-09-10_180022
AngularJS Route 和Controller 分開存至不同的js檔案,Route應該只有一個但是Controller會有很多個,通通放在一個檔案就很整理和看。
 
這個範例主要有 index.html 然後再Home.html 和 HomeCtrl.js 一組,Alan.html,Bill.html和MemberCtrl.js一組。
 
(繼續閱讀...)
文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣(846)

  • 個人分類:軟體開發筆記
▲top
  • 9月 09 週三 201515:43
  • C# 在數字面前補上0

image
I was having need that I need to pad number in 5 digit format. So following is a table in which format I need my leading zero format.
1-> 00001
20->00020
300->00300
(繼續閱讀...)
文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣(18)

  • 個人分類:軟體開發筆記
▲top
  • 9月 09 週三 201515:35
  • [C#]用 immediate windows 調適

 
設定
Tools > Options > Debugging > "Redirect all Output Window text to the Immediate Window"
 
(繼續閱讀...)
文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣(23)

  • 個人分類:軟體開發筆記
▲top
  • 9月 05 週六 201514:44
  • [AngularJS] Google URL Shortener

有時候我們產生的URL連結是又臭又長,很不美觀. 所以會常用縮短連結。 最常用的就是 Google URL shortener
 
$http.post('https://www.googleapis.com/urlshortener/v1/url?key=#key',{longUrl:'http://kenneth2011.pixnet.net/blog/post/111980533'}).success(function(data,status,headers,config){
$scope
.shortUrl=data.id;}).
error
(function(data,status,headers,config){});
(繼續閱讀...)
文章標籤

Kenneth 發表在 痞客邦 留言(0) 人氣(37)

  • 個人分類:軟體開發筆記
▲top
  • 9月 05 週六 201514:37
  • [.NET]透過 gmail 寄送 Mail,發生 SMTP 伺服器需要安全連接,或用戶端未經驗證 的錯誤

image
參考google的「Set up POP in mail clients」,smtp 要使用 TSL,而 Port 可使用 587 。
於是使用以下簡單的Code來測試,











01 var client = new SmtpClient("smtp.gmail.com", 587)










02 {










03     EnableSsl = true,










04     DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network,










05     UseDefaultCredentials = false,










06     Credentials = new NetworkCredential("你的google帳號", "密碼")










07 };










08  










09 client.Send("測試信<rm@gmail.com>", "rainmaker_ho@gss.com.tw", "test", "testbody");










10 Console.WriteLine("Sent");










11 Console.ReadLine();




(繼續閱讀...)
文章標籤

Kenneth 發表在 痞客邦 留言(1) 人氣(12,314)

  • 個人分類:軟體開發筆記
▲top
«1...891020»

個人資訊

Kenneth
暱稱:
Kenneth
分類:
不設分類
好友:
累積中
地區:

熱門文章

  • (21,509)馬來西亞之旅 --檳城 Penang 旅行規劃
  • (14,119)馬來西亞之旅 --蘭卡威 Langkawi 旅行規劃
  • (4,066)SCHOTT ZWIESEL 德國蔡司
  • (1,401)[品酒] 甜酒之王- Pourriture Noble 貴腐甜酒
  • (1,139)馬來西亞之旅 --馬六甲 Malacca 旅行規劃
  • (1,032)Mantis 無法上傳檔案 "沒有檔案被上傳. 請返回上頁並且選擇要上傳的檔案" Application Error #504
  • (912)新手品酒筆記--澳洲星光園酒莊
  • (809)新手學習Mantis筆記 --移除作業平台 How to remove the profile fields
  • (223)Kentico學習筆記-開發
  • (160)馬來西亞之旅 2014-11 第三站 馬六甲 Malacca

文章分類

  • Google Analytics (2)
  • 新加坡 (3)
  • 藝術 (2)
  • 軟體開發筆記 (27)
  • Javascript (3)
  • Kentico 學習筆記 (2)
  • 馬來西亞遊記 (10)
  • Travel (21)
  • 學習筆記 (23)
  • Microsoft 微軟 (3)
  • 閱讀筆記 (39)
  • English (1)
  • Movie (6)
  • Tips (7)
  • installshied (1)
  • VBA (2)
  • Wine World (24)
  • News (2)
  • Seminar (1)
  • SharePoint2010 (3)
  • windows Server 2008 (3)
  • 未分類文章 (1)

最新文章

  • 2019 第一本書 “我住在焦慮星球”
  • 2018年旅行 土耳其 卡帕多奇亞 Cappadocia 搭 飛機到--> Lzmir 阿德南·曼德列斯機場搭火車去 --> Seluck
  • 2018年旅行 土耳其 6/11-6/13 卡帕多奇亞 Cappadocia 驚喜連連
  • 2018年旅行 土耳其 6/10 ->6/11 搭夜間巴士到 Safranbolu 番紅花城-->安卡拉搭巴士去 -->卡帕多奇亞 Cappadocia
  • 2018年旅行 土耳其 6/10 ->6/11 搭夜間巴士到 Safranbolu 番紅花城-->安卡拉搭巴士去 -->卡帕多奇亞 Cappadocia
  • 6/8 ->6/9 ->6/10 新加坡 --> 薩比哈·格克琴國際機場 --> Kadikoy 碼頭搭船 -->伊斯坦堡 -->Safranbolu
  • 2018年旅行 6/8~6/18土耳其
  • 2018 第三本書 在飛機上遇見彼得.杜拉克:真希望開店前就知道的事
  • 2018 第二本書 “你說-寮國到底有什麼”村上春樹
  • 2018 第一本書 鹽鐵論:漢代財經大辯論

最新留言

  • [23/09/08] 新飛Hsinfei 於文章「馬來西亞之旅 --檳城 Penang 旅...」留言:
    為什麼去馬來西亞旅遊?10個非去不可的理由告訴你,還不知道就...
  • [22/06/08] 受幫助的人 於文章「[.NET]透過 gmail 寄送 Ma...」留言:
    非常謝謝您的知識分享...
  • [20/05/06] logon=login 於文章「Login和Logon...」留言:
    ...
  • [19/06/25] 訪客 於文章「Yogyakarta日惹自助旅行如何規劃...」留言:
    Sorry for bothering Warmest g...
  • [18/12/28] 想飛。 於文章「2015年巴黎&西班牙之旅 -- 6/2...」留言:
    好好喔~夏季日照時間長,我查了冬季2月的話,是6點左右天黑@...
  • [18/12/28] 想飛。 於文章「2015年巴黎&西班牙之旅 -- 6/2...」留言:
    好喔!我正在查時刻表和各種排列組合,想去Girona和Fig...
  • [18/12/27] 想飛。 於文章「2015年巴黎&西班牙之旅 -- 6/2...」留言:
    原來如此,所以會建議從巴塞隆納搭慢車到菲格雷斯,然後直接走進...
  • [18/12/27] 想飛。 於文章「2015年巴黎&西班牙之旅 -- 6/2...」留言:
    你好,請問一下,上面文章中說:"從巴塞隆納搭快車到菲格雷斯再...
  • [18/07/25] 訪客 於文章「新手學習Mantis筆記 --移除作業平...」留言:
    那請問有增加欄位的方法嗎...
  • [18/05/24] Huang 於文章「新手品嘗日本威士忌...」留言:
    我蠻愛水割喝法的~竹鶴12年是我愛的威士忌之一 https:...

動態訂閱

文章精選

文章搜尋

參觀人氣

  • 本日人氣:
  • 累積人氣:

誰來我家