Quantcast
Channel: Ruben Canton
Browsing all 94 articles
Browse latest View live

Caching with memcache

In general, if we were to add some manual caching to our system, there are some steps we need to take: 1. Try to get that value from cache. 2. Check if the value was retrieved. 3. If it wasn’t, get it...

View Article


Displaying multiple pages with Angular

Ok, so after checking how the basics of Angular work on a single page and the different ways to create a controller in Angular it’s time to do what angular is meant to do: create a client’s side...

View Article


First steps with Knockout

As Knockout seems to be there by default with MVC4 and MVC5 and its creator is now working with Microsoft it seems wise to have a look at it and check how good it can be to go the MVVM way....

View Article

Getting into Bootstrap!

Bootstrap is another javascript library to help us making our websites better and simpler. It’s main core is to be a handful set of CSS styles to make your website automatically responsive, this is,...

View Article

Image may be NSFW.
Clik here to view.

MVC5 with Bootstrap 3.1.1 LESS files

MVC5 already comes with Bootstrap and LESS by default, but unfortunately it doesn’t come with Bootstrap LESS files to custom them in case you want to do that. Luckily Osowicki created this template...

View Article


Quick Introduction to LESS

These are some of the features LESS is offering you: Creating variables You can save a value on a variable and use it later, quite useful to set colors: @myCustomColor: #567; @primaryColor: blue;...

View Article

Introduction to RequireJS

RequireJS is a library made to help us loading different javascript files in one go, improve page load, configure their dependencies, etc. It really becomes quite useful now that having to include so...

View Article

Image may be NSFW.
Clik here to view.

Creating directives with Angular

One of the main points of angular consists on adding functionalities to your html elements, so that instead of setting the effects the jQuery way: selecting the element and making that happen or adding...

View Article


Adding video src with Angular

Well, well, well… if you try to add a video to your page and use Angular to set its URL… you may discover that Angular doesn’t allow you to do that. This is because Angular blocks some possible hacking...

View Article


Avoid event propagation in Angular

I had a button inside a box that had an “onclick” feature, which means that both the button and the box had an “onclick” listener. On clicking the box everything worked fine, but on clicking the button...

View Article

Creational Patterns

Singleton This pattern consists on making sure that there is only one instance of an object and provide a global access to such instance (this would be an static object in C#). Prototype Creates a...

View Article

Adding Google Maps to angular using RequireJS

You would think that as angular has been made by Google it will just fit with Google Maps… well, not totally. But at least there are a couple of nice plugins out there that do the trick. That said,...

View Article

Using Unicode characters to improve your website!

Using HTML unicode characters can help you reducing the amount of images on your site, just using the right HTML code and you can get this: ✔ or this ★ Doing that is as simple as adding its unicode...

View Article


C#.Net DAO Access class template

Something I had around there: using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; namespace Blabla.Data { public interface...

View Article

Checking if an object is empty in EcmaScript5 / Javascript

I was getting a JSON response from a server request that can contain just an empty value (this is, nothing, nothing de nothing that we Spaniards say). On checking if the object had anything within I...

View Article


Image may be NSFW.
Clik here to view.

Style your map with Snazzymaps!

I just found this page by accident and looks so awesome: Snazzymaps. It has several templates to style your Google Maps on your page so that it looks more elaborated. You can adapt the map to concrete...

View Article

Architectural Styles and the Design of Network-based Software Architectures

From the University of California, by Roy Thomas Fielding: Architectural Styles and the Design of Network-based Software Architectures. A bit old but clear and concise. More Roy’s publications.

View Article


The RESTful way

The idea of building your website services in a RESTful way consists on using the HTTP protocol to determine the Action you are going to perform instead than some Action name on the URL. This way, we...

View Article

Installing Node.js with Karma and Mocha for Visual Studio

Node.js Please download the installer (.msi) from their downloads page. There’s also an .exe but it didn’t work very well to me. You need to install it as an admin, so open cmd as admin then go to the...

View Article

Displaying multiple pages with Angular

Ok, so after checking how the basics of Angular work on a single page and the different ways to create a controller in Angular it’s time to do what angular is meant to do: create a client’s side...

View Article
Browsing all 94 articles
Browse latest View live