Kayıtlar

Yeniden javascript

Javascript tekrardan keşfetmek isteyenler için  https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript

Scrum için easyBacklog

Proje yönetiminde scrum kullanıyorsanız güzel bir ücretsiz web tabanlı servisleri var http://www.easybacklog.com

Bloggerda kodların tasarımını düzenleme

http://formatmysourcecode.blogspot.com/

Html RenderPartial ile Html Partial arasındaki farklar

The Partial helper renders a partial view into a string. Typically, a partial view contains reusable markup you want to render from inside multiple different views. Partial has four overloads: public void Partial(string partialViewName); public void Partial(string partialViewName, object model); public void Partial(string partialViewName, ViewDataDictionary viewData); public void Partial(string partialViewName, object model, ViewDataDictionary viewData); Notice that you do not have to specify the path or fi le extension for a view because the logic the runtime uses to locate a partial view is the same logic the runtime uses to locate a normal view. For example, the following code renders a partial view named AlbumDisplay. The runtime looks for the view using all the available view engines. @Html.Partial("AlbumDisplay") The RenderPartial helper is similar to Partial, but RenderPartial writes directly to the response output stream instead of returning a strin...

DusterJS templatelerin kullanımı için yapılması gerekenler

1- Nodejs makinada yüklü olması gerekir, aksi taktirde kurulması icab ediyor. ( https://nodejs.org/ ) 2- Visual studio üzerinde nodejs projesi geliştirebilmek için bu adresten " https://www.visualstudio.com/tr-tr/features/node-js-vs.aspx " nodejs eklentisi yüklenir. VisualStudio re-start edilir. 3- Projemizi açıp yüklenmesi tamamladıktan sonra, solution dosyası içinde ilgili alt projede add new project ibaresine tıklayıp açılan arayüzden  sol menüde javascript menüsü altında bulunan nodejs sekmesini seçip Blank Node.js Console Application seçip projeyi oluşturuyoruz. 4- Daha sonra açılan projede npm (node package manager) linkine sağ tuşla tıklayıp "Install New  npm packages" diyerek " dusterjs ", " rimraf ", " find-remove " paketlerini kuruyoruz. Bu paketler kurulduğunda kendilerini node_modules altına kaydediyor.  Daha sonra yazmış olduğumuz js dosyasını nodejs ile çalıştırıp yazmış olduğumuz dusterjs templatelerinin ilgili kla...
tüm dökümanları güncellemek için db.getCollection('FileContext').update({},                                        { "$set" : {"OrderId": 1 }},                                        {multi:true}) ilgili collectionda sorgula db.getCollection('FileContext').find({},{OrderId: 1, Status:1}).sort({OrderId:1}) ilgili collectionda çoklu güncelle db.FileContext.update({},{'$set':{"Status": true}} , { multi:true}) ilgili collectionda sorgulayarak doğrula db.FileContext.find({},{OrderId: 1, Status:1}).sort({OrderId:1}) ilgili collectionda sorgula db.getCollection('FileContext').find({},{OrderId: 1}).sort({OrderId:1})

Mongo Db Sorgular

//db.getCollection('FileContext2').find({}) /* eklemek için db.FileContext2.update({},                           {$set : {"OrderId2":2}},                           {upsert:false,                           multi:true}) */ /* ilgili field collectiondan çıkarmak için db.FileContext2.update({},{$unset: {OrderId2:1}},false,true) */     /* //önce değişmemiş haline bak db.FileContext2.find({"_id" : ObjectId("566e1749a630f21d1cfadc19")}) //sonra güncelle db.FileContext2.update({"_id" : ObjectId("566e1749a630f21d1cfadc19")},{ $set : { "OrderId": 23}}) //sonra güncellenen sorguya bak db.FileContext2.find({"_id" : ObjectId("566e1749a630f21d1cfadc19")}) */