Posts

Showing posts from 2014

Responsive Web Design Testing Tool

Responsive Web Design Testing Tool in various devices. Check out this link.  http://responsive.pixeltuner.de/?s=http://www.caramelbudgie.com/#mobile480 Happy Coding.. :)

Why we use mongoDB OR why not ?

MongoDB is not a key/value store, it’s quite a bit more. It’s definitely not a RDBMS either. I haven’t used MongoDB in production, but I have used it a little building a test app and it is a very cool piece of kit. It seems to be very performant and either has, or will have soon, fault tolerance and auto-sharding (aka it will scale). I think Mongo might be the closest thing to a RDBMS replacement that I’ve seen so far. It won’t work for all data sets and access patterns, but it’s built for your typical CRUD stuff. Storing what is essentially a huge hash, and being able to select on any of those keys, is what most people use a relational database for.  If your DB is 3NF and you don’t do any joins (you’re just selecting a bunch of tables and putting all the objects together, AKA what most people do in a web app), MongoDB would probably kick ass for you. Then, in the conclusion: The real thing to point out is that if you are being held back from making something super awesome be

In MVC 4 Save and Retrieve cookies

In MVC 4 How to save and retrieve cookies. Follow these steps for Save Cookies :- 1. User validation successful then save UserID or UserName In cookies .In Login controller write these code: Code: var UserIDCookies = new HttpCookie("UserID",UserID); // Define cookies name UserIDCookies.HtpOnly=true; // assign UserID for save in cookies Response.Cookies.set(UserIDCookies); // User ID set in cookies 2. When ever you want to Retrieve UserID from cookie. Code: var UserID - Request.cookies.Get("UserID").value; In simple bracket of "UserID" name match with stored cookie name. cookie value store in Variable called UserID. You get UserID from cookies and store in variable. You want to convert string to int in MVC just write single line code. int ID = Convert.ToInt32("UserID");