Facing new challenges everyday

Easy Database Driven Development with Boost and SOCI

October 21st, 2013

Last weekend I started to learn more about C++, my first project is a contacts manager, so I googled a little about how to do some persistence on C++ with minimum code and then I found SOCI.

SOCI is a very small database library which gives us the illusion to be embedding SQL queries in C++ code as the project site says, in fact, this is the beauty behind the library, which makes your C++ code very clean and easy to maintain.

But there’s no way to be productive with C++ programming these days without Boost, this awesome library has several utilities classes which can speedup your development several times, this blog post will show a little more about how these two libraries can help you to develop a database driven console application.

(more…)

Share

Using Autofac in a ASP.NET MVC 4 application

October 18th, 2012

ASP.NET MVC is a great framework, very flexible, but sometimes we need to organize a little better our business logic, there’s nothing better than have a business logic completely decoupled from controller, which can be easily reused on several controllers over the project.

To help ASP.NET MVC make use of reusable business logic and other logic components aswell, we can add a DI/IoC container to our project, after few days researching about IoC container alternatives, I choose Autofac to create my first web application that takes advantage of Dependency Injection.
(more…)

Share

Fixing SelectedValue issue on DropbDownListFor with SelectList

July 30th, 2012

After spent several hours trying to figure out how the SelectedValue works on DropDownListFor, I finally figure out how to do it, you can also check my answer on stackoverflow here.

It’s very simple to get SelectList and SelectedValue working together, even if your property isn’t a simple object like a Int, String or a Double value.

Example:

Assuming our Region object is something like this:

1
2
3
4
public class Region {
     public Guid ID { get; set; }
     public string Name { get; set; }
}

(more…)

Share

How to add a ViewDeck into a StoryBoard scene

April 3rd, 2012

ViewDeck (https://github.com/Inferis/ViewDeck) is an amazing library that helps you to easily add a Facebook like menu into your application, unfortunelly it has a small issue with storyboards causing to not load the IIViewDeckController code properly.

In order to make use of ViewDeck in a specific scene of my storyboard, I created a blank scene with a empty view, in viewDidLoad method I added the following lines of code:
(more…)

Share

Using a FSIS CTS flow to generate text files and compile as FAST ESP dictionaries

December 23rd, 2011

After have some trouble trying while create my FSIS CTS flow, I could finally read the data need from SQL Server instance and push to FAST ESP for indexing, once I got everything working as expected I started to think in what else I could easily to in a CTS flow.

My next challenge was create a FAST ESP dictionary for use on query completion server of FAST ESP, the majority of built in operators doesn’t provide a easy way to do it, hopefully I found the RunCode operator that I can use to perform anything that I need with a custom C# or VB code.
(more…)

Share
Next Page »

Visitors Around the World

Polls

How Is My Site?

View Results

Loading ... Loading ...

Categories

Meta

Links

Advertising

hosted by easy2use.net