Blog

Using JSONP at MVC3

By Sergio Cavazos.   Quite recently we had to develop an API to expose some data among a MVC3 site, this data would be consumed at 3rd party domains via JSON, thus meaning that due to browser security restrictions, asynchronous requests to cross domains are restricted. Researching a little we found that there’s a technic called JSONP which allows you achieve this. What is  JSONP ?Known for JSON Padding, in this technic, an “?callback= “ is added to the querystring, so server would process the request, and instead of returning a JSON object or XML, it responds with an “application/x-javascript” response using the callback parameter as a wrapper function, so when request is answered, th...

Adding a rating column to default Blog Site’s Page in SharePoint 2010

By Rosario Almaguer. When we create a Blog site for our Site Collection, the default page doesn’t show a rating section, like in the follow image:   So if you want to show a rating you can do it following these steps: 1.       Firstly, you have to click in Site Actions and select View All Site Content, in the Lists section you will find a Posts list, click on it.   2. Next, you have to access to List tab on the Ribbon and click on List Settings section. You will see a page like this:   You can see which columns are parts of the Posts list in the Columns section.   3. In General Settings section, select Rating settings and you will be linked to the follow page:     ...

Design Patterns for Data Persistence

By Carlos Martinez. Repository Pattern   The repository is useful when trying to separate the domain logic from the logic that retrieves the data and maps it in entity objects. The repository is a small layer between the data source layer and the upper domain layers of the application. Gets the data from the data source and retrieves it to the upper layers. Also the repository contains the persistence logic of the domain objects. This logic separation has 3 benefits: ·         The logic for web services and data are centralized ·         It simplified the unit test. ·         It provides a flexible architecture that can be adapted as the overall design of the application evolves. La...

About Feedback & Tunnels (SDLC)

By Daniel Ramirez.   An important thing through the Software Development Cycle is the feedback a developer gets during or after iteration. He/she gets all kinds of it, from internal things such as code, to all the way up to what’s shown to the end users.   Feedback is important In any kind of work, I believe we should always look for some kind of feedback. Feedback does not necessarily means you have done things the wrong way, it can help you see how other people see your work, and lets you know if they understood correctly the idea behind it.   Feedback lets you know if things can be improved, motivates you to continue your work. If you get an email saying "Amazing work!"...

How to set Favicon to the SharePoint 2010 site?

  By Rosario Almaguer. SharePoint 2010 comes with a orange Favicon and it's present in SharePoint Root Folder\Template\Images [eg. C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES\]. Open this folder and search for favicon.ico and rename the file to FaviconBackup.ico. Now copy your favicon to this folder and make sure it's named as "favicon.ico", you can change the name of you favicon [eg. MyFavicon.ico]. Now restart IIS(open Command Prompt -> IISReset), clear browser cache/temproary internet files. Close the browser and reopen then browse the SharePoint site. In SharePoint Designer 2010 select Master Pages, then select the master p...

Why does my VS2010 project seem to forget assembly references at build time?

By: Alejandro Villarreal I recently experienced one of the most puzzling issues I’ve dealt with: after I finished coding my project in Visual Studio 2010 I tried to build it but it failed, complaining of namespaces that didn’t exist (which means a bunch of types that weren’t declared and thus code that the compiler didn’t understand). This didn’t make sense because the assembly that contained those namespaces was still in the “References” part of my project, and I had used IntelliSense with the types it contained. So I knew for a fact that Visual Studio did know that the assembly was there, and was able to analyze it and use it. But then why couldn’t I build my project? I tried removing a...