PIXNET Logo登入

Kenneth的部落格

跳到主文

部落格全站分類:

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 9月 15 週二 201515:52
  • [MongDB] MongoDB 基本新增、讀取、更新、刪除 (CRUD) 操作 with C# Driver

2015-09-15_165031在 ASP.NET 上使用 MongoDB 進行 CRUD 的操作,MongoDB 對 C# 語言進行了支援並提供了 C# 操作的 Driver,在接下來的步驟裡就是要透過使用 MongoDB C# Driver 來進行操作。
 
下載MongoDB C# Driver
有兩種方法來安裝C# Driver
(繼續閱讀...)
文章標籤

Kenneth 發表在 痞客邦 留言(1) 人氣(8,096)

  • 個人分類:軟體開發筆記
▲top
  • 9月 14 週一 201513:32
  • [MongoDB] 在windows上安裝MongDB

2015-09-14_134942MongoDB 建議安裝 64 位元版本,因為 32 位元版本最大儲存量只有 2GB 。而在安裝限制的話,Windows 環境下支援 XP 版本以上的作業系統。
資料來源 MongoDB 官方網站
 
(繼續閱讀...)
文章標籤

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

  • 個人分類:軟體開發筆記
▲top
  • 9月 13 週日 201512:56
  • M101P: MONGODB FOR DEVELOPERS

2015-09-13_134042HOMEWORK: 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_014332Write 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 週四 201517:23
  • [AngularJS] Route 和 controller 分開存至不同的JS檔

2015-09-10_180022AngularJS 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

imageI 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,301)

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

個人資訊

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

熱門文章

  • (808)新手學習Mantis筆記 --移除作業平台 How to remove the profile fields
  • (4,063)SCHOTT ZWIESEL 德國蔡司
  • (1,399)[品酒] 甜酒之王- Pourriture Noble 貴腐甜酒
  • (14,118)馬來西亞之旅 --蘭卡威 Langkawi 旅行規劃
  • (21,507)馬來西亞之旅 --檳城 Penang 旅行規劃
  • (1,135)馬來西亞之旅 --馬六甲 Malacca 旅行規劃
  • (215)馬來西亞之旅 2014-11 第二站第一天 檳城 Penang
  • (306)馬來西亞之旅 2014-11 第二站第二天 檳城 Penang
  • (158)馬來西亞之旅 2014-11 第三站 馬六甲 Malacca
  • (222)Kentico學習筆記-開發

文章分類

  • 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 第一本書 鹽鐵論:漢代財經大辯論

動態訂閱

文章精選

文章搜尋

參觀人氣

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

誰來我家