setiabud.blogspot.com
Ranting and Dreaming ...: Tire Tips For Your Car
http://setiabud.blogspot.com/2015/03/tire-tips-for-your-car.html
Ranting and Dreaming . Technology, Photography, Family, Food, and Convictions. Tuesday, March 10, 2015. Tire Tips For Your Car. Using your tire as long as possible is one way to do it, but if you are using bald tire, it can be very dangerous. So how can we get the best lifetime of our tires? The standard manufacturer recommended tire pressure usually listed on a sticker inside one of your door. You can get your tire measurements from your own tire, just look at the side wall and it will be written there,...
setiabud.blogspot.com
Ranting and Dreaming ...: Handling 404 Error in ASP.NET MVC
http://setiabud.blogspot.com/2013/04/handling-404-error-in-aspnet-mvc.html
Ranting and Dreaming . Technology, Photography, Family, Food, and Convictions. Wednesday, April 10, 2013. Handling 404 Error in ASP.NET MVC. In ASP.NET Web Forms, handling 404 errors are easy - which is basically a web.config setting. In ASP.NET MVC, it is a bit more complicated. Why is it more complicated? In comparison, everything is seemingly easier in MVC than WebForm. So, let's dive in on how can we do proper handling of 404 errors with ASP.NET MVC. TURN ON CUSTOM ERROR IN WEB.CONFIG. Create a Contr...
setiabud.blogspot.com
Ranting and Dreaming ...: Properly Deleting Database for Database-Migration
http://setiabud.blogspot.com/2013/04/properly-deleting-database-for-database.html
Ranting and Dreaming . Technology, Photography, Family, Food, and Convictions. Sunday, April 7, 2013. Properly Deleting Database for Database-Migration. I am working on a simple brand new project with ASP.NET MVC and decided to try EF to connect to my database. This gives me the opportunity to learn EF Code-First, database-migration, etc. But then I am getting an error:. Cannot attach the file D: Projects MvcApplication1 App Data aspnet-MvcApplication1-20130407085115.mdf' as database 'MvcApplication1'.
setiabud.blogspot.com
Ranting and Dreaming ...: Creating Custom Validation Attribute
http://setiabud.blogspot.com/2013/03/creating-custom-validation-attribute.html
Ranting and Dreaming . Technology, Photography, Family, Food, and Convictions. Sunday, March 3, 2013. Creating Custom Validation Attribute. In this post, I will outline steps in making custom validation attribute. This is the first post of a series, which eventually will go all the way to making the validation to be able to evaluated in the client side. But, let's not get too far ahead - first we need to make our custom validator. Creating Custom Validation Attribute With Dependency To Other Property.
setiabud.blogspot.com
Ranting and Dreaming ...: Best Dishes in Columbus
http://setiabud.blogspot.com/2015/03/best-dishes-in-columbus.html
Ranting and Dreaming . Technology, Photography, Family, Food, and Convictions. Monday, March 23, 2015. Best Dishes in Columbus. I have lived in Columbus more than half of my life and throughout the years I have a growing food and dishes that I think are the best in the city. So without further ado, here they are. If you have any suggestions, please leave them in the comment. The list will be in CATEGORY - RESTAURANT - NAME OF DISH. Tofu Dish - Happy Dragon (Livingston Ave) - Pipa Tofu. Latin Sandwiches -...
setiabud.blogspot.com
Ranting and Dreaming ...: Using GMail as email service from Azure
http://setiabud.blogspot.com/2015/02/using-gmail-as-email-service-from-azure.html
Ranting and Dreaming . Technology, Photography, Family, Food, and Convictions. Saturday, February 21, 2015. Using GMail as email service from Azure. Create a secure ASP.NET MVC 5 web app with log in, email confirmation and password reset. How to Send Email Using SendGrid with Azure. Here is the SendGrid code:. Null) { await transportWeb.DeliverAsync(myMessage); } else { Trace.TraceError("Failed to create Web transport."); await Task.FromResult(0); } }. Here is the GMail code:. View my complete profile.
setiabud.blogspot.com
Ranting and Dreaming ...: Enabling IIS Express to Accept External Request
http://setiabud.blogspot.com/2015/01/enabling-iis-express-to-accept-external.html
Ranting and Dreaming . Technology, Photography, Family, Food, and Convictions. Tuesday, January 20, 2015. Enabling IIS Express to Accept External Request. Of course - the ideal solution is just to put the web application somewhere on the internet (i.e. http:/ mytestwebsite.mydomain.com) and let the testing begin. But unfortunately, I do not have the luxury of a QA or test site. So I just have to run it locally. Allowing everyone to access http:/ mydevmachine:80. Site name="Domain.Site.Mvc" id="4"...Now, ...
setiabud.blogspot.com
Ranting and Dreaming ...: How to create a unit test that expect an exception?
http://setiabud.blogspot.com/2013/08/how-to-create-unit-test-that-expect.html
Ranting and Dreaming . Technology, Photography, Family, Food, and Convictions. Saturday, August 24, 2013. How to create a unit test that expect an exception? In creating unit tests, we want to get maximum code coverage to make sure we are testing all possible scenarios and outcomes of our code. When we have a possible path of execution that leads into an exception being thrown, how do we build a test for that? Public class Book { / . public void GoToPage(int page) { if (page. View my complete profile.
setiabud.blogspot.com
Ranting and Dreaming ...: How to expose internal methods to a different assembly
http://setiabud.blogspot.com/2013/09/how-to-expose-internal-methods-to.html
Ranting and Dreaming . Technology, Photography, Family, Food, and Convictions. Tuesday, September 3, 2013. How to expose internal methods to a different assembly. Let's say you create this method - let's call it MethodX. Now MethodX is only used within the project - so you marked it as "internal". So now you want to test this MethodX. Now, let's set that aside for a moment - and if you want to test the internal MethodX directly, how would you do it? So normally, although the class MyClass is public and i...
setiabud.blogspot.com
Ranting and Dreaming ...: Creating Validation Adapter for Validation Attribute
http://setiabud.blogspot.com/2013/03/creating-validation-adapter-for.html
Ranting and Dreaming . Technology, Photography, Family, Food, and Convictions. Monday, March 25, 2013. Creating Validation Adapter for Validation Attribute. If your project is rather big, often you would like your validation to reside on the business layer instead of on the UI layer. So for example, using our previous code sample. When we look at the built-in validator (such as RequiredAttribute), how did they do this? So let's clarify on our namespacing issue - in our business layer, let's call that MyA...