Month: May 2015

Speeding Up Gradle (just a little bit)

If you do any sort of Android Studio Development you might find these two lines quite useful. There is a noticeable speed up in building time.

Continue Reading

Razor with JavaScript

Today I had a problem of adding markers onto a google map. I didn't really want to create a service to handle the request and return an array. So instead I tried doing something simpler.

This obviously didn't work. Razor was getting confused; it didn't know which one was the script and which one

Continue Reading

MVC File Upload - Access to the path is denied

An interesting problem occurred yesterday when I was trying to upload a file to the server. I was getting: Access to the path '' is denied The problem wasn't actually caused by the file upload but by my attempt to create a directory to put that file there. After reading a bunch of answers on

Continue Reading

ASP.NET Automatic Migrations

Understanding migrations can be a bit tricky. Hopefully, this article will resolve at least some of the questions you might have. First things first - What are migrations? Well... If you built your website using first code approach every time you change your model you need in order to keep the database in sync. There

Continue Reading

Mapping to a new new Type with ASP.NET Web API and LINQ

As you would expect Microsoft is trying to make your code as clean and need as possible. This is an example of a search query. The key element of this query is select new {Title = m.Name}. It allows you to map a your model to a new type without having to declear a custom

Continue Reading

MVVM with Android - this is exciting!

This is one of the best things I've seen on Android in a long time: MVVM architecture. Of course, Android platform doesn't support it, but there is hope! RoboBinding. OK, the spec perhaps isn't the best, but the idea is great! Finally This is how simple it is with Android Studio:

Activity code:

Continue Reading

Using ng-class with Select

Today, I wanted to bind value from a select to a span. Depending on the value selected the colour of the label was supposed to be different. Using AngularJS, I introduced ng-class="". It allows you to change classes conditionally. This is an example:

Continue Reading

Opening Binary File from the Server using jQuery

Reading binary files in jQuery isn't particulary hard. There are two things really that we have to do. The first one is change the dataType to binary and the second one is setting the processsData to false.

Continue Reading

What's the difference between col-md-x, col-xs-x, col-sm-x, col-lg-x?

Getting your head around the grid structure for Bootstrap can be challenging at times. But not to worry! We shall prevail! The grid in Bootstrap is divided into 12 chunks. In short, I'd like to think about this as a how big the column is depending on the screen size: col-xs-x - phone col-sm-x -

Continue Reading

Why SEO Matters?

We are frequently asked why SEO matter and why is it such a big deal. The anwser is simple: no SEO no visitors. I am not kidding now. This is really the hard truth. Over the past 25 years, internet became increadibly big. There are hundreds and hundreds of websites being created every day. How

Continue Reading