Feb 07
First of all, we need to understand the concept of pipelines and filters, Wikipedia says:
Pipeline (computing)
Instruction scheduling on the Intel Pentium 4.
In computing, a pipeline is a set of data processing elements connected in series, so that the output of one element is the input of the next one. The elements of a pipeline are often executed in parallel or in time-sliced fashion; in that case, some amount of buffer storage is often inserted between elements.
Filter (higher-order function)
In functional programming, filter is a higher-order function that processes a data structure (typically a list) in some order to produce a new data structure containing exactly those elements of the original data structure for which a given predicate returns the boolean value true.
Basically we can create a pipeline with filters resulting in some final product we want.
Let’s make it clear:
Continue reading »
Tagged with: .NET • C# • CODES • FILTERS • PIPELINES
Dec 20
Last week I was working in a solution for Database Versioning in C#. The first idea was to create a toll for PostGre and Mysql, but then I started to think: Why not create a toll which works for every database?
To make it possible I needed to use Dependency Injection so I decided to write this tutorial! : )
Continue reading »
Tagged with: .NET • DEPENDECY • PATTERNS
Dec 15
Do you ever ask how to add a new method to a internal class of C#? You probably think about writing a partial class but unfortunately it’s not going to work if the class is not partial.
Imagine how beautiful would be if you could write a method for a DateTime? Or a String?
So I introduce to you the Extension Methods!
Continue reading »
Tagged with: .NET • CUSTOMIZATION • METHODS
Dec 13
I’m working with some technical support stuff at my job and we are trying to make that
easy for the user and for us. Nothing better than having the possibility to the user send you the report bugs of the software, right? I’ve been thinking about what’s the best solution for that and e-mail beat every other solution.
So I’ve started playing with that in .Net (C#) and I’ve decided to write this tutorial: How to send an email using c#!
Hope you enjoy guys, let’s code.
Continue reading »
Tagged with: .NET • C# • E-MAIL • GMAIL
Dec 02
Guess the title is auto explanatory : P
I was using that on my job this week and I’ve decided to share it. It’s just a few lines of codes but make things really easy when you need to get information from Excel files.
Continue reading »
Tagged with: .NET • EXCEL • GIT
Oct 25
For months I’ve been suffering with reports and .NET (C#), refusing to accept the idea: THERE’S NO BETTER WAY TO REPORT MY APPLICATIONS.
I tried almost everything, but the direct querys (pure SQL) still messing with me. Personally I don’t like that, pure SQL sounds ugly and, for me, it’s a bad practice.
Finally, I was just playing with some codes and I found the solution, a way to make my reports WITHOUT direct querys using just LINQ TO SQL and C#.
Continue reading »
Tagged with: .NET • C# • CODES • LINQ TO SQL • QUERIES • REPORTS • REPORTVIEWER • SQL
Oct 17

There will be a time in your life that independently of your age, IQ, experience with codes or your geek level, you will need to face a XML, and better yet, you will need to face a XSD which describes the entire XML.
So you think: What now? Should I just forget it? Turn on my Xbox 360 and play ’till death? The answer is: NO, just CALM down and let .NET and Microsoft SDKs make the hard job for you and see how .NET can show his power.
Let’s make the entire problem clear. First you have a valid XSD schema and you need to generate a valid XML following the same schema with some information’s that you have in your database or whatever you need.
Continue reading »
Tagged with: .NET • CODES • CONSOLE • ENTITIES • SDK • Visual Studio • XML • XSD