Kayıtlar

M101N: MONGODB FOR .NET DEVELOPERS questions 3.2

HOMEWORK: HOMEWORK 3.2: MAKING YOUR BLOG ACCEPT POSTS In this homework you will be enhancing the blog project to insert entries into the posts collection. After this, the blog will work. It will allow you to add blog posts with a title, content, and tags and have it be added to the posts collection properly. We have provided the code that creates users and allows you to login (the assignment from last week). To get started, please download the handout and unpack. The areas where you need to add code are marked with XXX. You need only touch the Post.cs file, the Comments.cs file, and the HomeController.cs file. There are seven locations for you to add code for this problem: 5 in HomeController.cs 1 in Post.cs 1 in Comment.cs Here is an example of a valid blog post. > db.posts.find().pretty() { "_id" : ObjectId("54c298ec122ea911588b7970"), "Author" : "Craig", "Title" : "Frist!!!", ...

Git öğrenmek istiyorum diyorsanız

https://try.github.io/levels/1/challenges/1

Dapper üzerinde tür dönüşümü

https://code.google.com/p/dapper-dot-net/ { DapperRow , billing_currency_code = 'USD' , count (*) = '6' } If the column name  genuinely is   "count(*)" , then you can cast the row to a dictionary: var data = ( IDictionary < string , object >) row ; object value = data [ "count(*)" ]; For that to work (at least, in SQL Server), your query would need to be something like: select count (*) as [ count (*)] However, in most cases the column  doesn't have a name , in which case: fix your query ;p Actually, I'd probably say fix your query  anyway ; the following would be much easier to work with: select count (*) as [ Count ]

visual studioda source control için alternatif merge ve diff toolları

http://blogs.msdn.com/b/jmanning/archive/2006/02/20/diff-merge-configuration-in-team-foundation-common-command-and-argument-values.aspx

SSH Keygen nasıl yapılır

https://help.github.com/articles/generating-ssh-keys/

mvc'de belirli süre içinde fonksiyon çağırmak

The answer to this question would very much depend on what do you mean by reload some info in ASP.NET MVC project . This is not a clearly stated problem and as such, more than obviously, it cannot have a clearly stated answer. So if we assume that by this you want to periodically poll some controller action and update information on a view you could use the setInterval javascript function to periodically poll the server by sending an AJAX request and update the UI: window . setInterval ( function () { // Send an AJAX request every 5s to poll for changes and update the UI // example with jquery: $ . get ( '/foo' , function ( result ) { // TODO: use the results returned from your controller action // to update the UI }); }, 5000 ); If on the other hand you mean executing some task on the server at regular periods you could use the RegisterWaitForSingleObject method like this: var waitHandle = new AutoResetEvent ( false ...

Vagrantta nodejs ve npm paketleri kurulmaya çalışırken alınan hata

/usr/local/bin/nodemon -> /usr/local/lib/node_modules/nodemon/bin/nodemon.js nodemon@1.3.7 /usr/local/lib/node_modules/nodemon +¦¦ minimatch@0.3.0 (sigmund@1.0.0, lru-cache@2.5.0) +¦¦ touch@0.0.3 (nopt@1.0.10) +¦¦ ps-tree@0.0.3 (event-stream@0.5.3) L¦¦ update-notifier@0.3.1 (is-npm@1.0.0, string-length@1.0.0, chalk@1.0.0, semver-diff@2.0.0, latest-version@1.0.0, configstore@0.3.2) vagrant@vagrant-ubuntu-trusty-32:/var/www/benimsite$ nodemon app.js /usr/bin/env: node: No such file or directory vagrant@vagrant-ubuntu-trusty-32:/var/www/benimsite$ sudo nodemon app.js /usr/bin/env: node: No such file or directory bu hatanın cevabı http://stackoverflow.com/questions/26320901/cannot-install-nodejs-usr-bin-env-node-no-such-file-or-directory sudo ln -s /usr/bin/nodejs /usr/bin/node şeklinde çalıştır