Useless stuff but you will need someday. I was playing with .NET this afternoon and i get stocked in a question, how to put numbers on every row in a DataGridView?
The default is something like that:
Useless stuff but you will need someday. I was playing with .NET this afternoon and i get stocked in a question, how to put numbers on every row in a DataGridView?
The default is something like that:
First of all, we need to understand the concept of pipelines and filters, Wikipedia says:
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.
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:
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! : )
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!
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.
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#.
Everyone knows that Visual Studio can be such a great IDE, but sometimes you feel that something is missing.
It’s okay if you have to search for each file in Visual Solution when you have four…maybe five files, but things can go really bad when you have sixty…seventy files in your solution. It’s a lot of waste of time having to search file by file every time you need something. Then we all think: doesn’t Visual Studio have a quick open file? Something that make possible for me to search files by the name, like quick open from TextMate? No, unfortunately Visual Studio doesn’t come with that option, but happly we have a solution. I’ve trying to find that for six months or more, until I got that plugin: Quick Open for Visual Studio 2008.
That’s a complement developed for Visual Studio which makes possible the quick open file function. You press the keys and the window is going to open. You type the file’s name (or part of it) you want, find it, and then press “enter” to open it.
The installation is pretty simple, just download the component here @stJhimy’s github.
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.