Category: Programming

Jul 27

Resolved: The “Microsoft.CodeAnalysis.BuildTasks.Csc” task could not be loaded from the assembly

Resolved: The “Microsoft.CodeAnalysis.BuildTasks.Csc” task could not be loaded from the assembly I recently have been working on an ASP.Net application and at some point I started to get build errors that although they were not stopping the build and allowed me to continue with the application’s execution, they were starting to get quite annoying. This …

Continue reading »

Jul 25

How to: Get the Sum of the Values from List in C#.Net?

How to: Get the Sum of the Values from List in C#.Net? Currently I am working on a new project in which I need to calculate some statistics that involve some basic statistics which require the total amount. The easy way out is just to do a foreach statement and iterate through the list adding …

Continue reading »

Jul 25

.Net: Supported Console Colors

.Net: Supported Console Colors The days of writing applications that write to the console seem to be over for a while now. Notwithstanding, we find ourselves using the console from time to time to help us debug or quickly test application logic. In my case, I am currently using the console to monitor logging information …

Continue reading »

Jul 25

Pro Tools: Json

Pro Tools: Json I’ve recently started working on a small programming project on the site. It has been a while since I’ve done any programming, so seeing all the new technologies and cloud offerings I must confess I am as excited and fascinated as I am daunted by how much there is and how far …

Continue reading »

Jul 23

Pro Tip: Never use type double for money / financial applications

Pro Tip: Never use type double for money / financial applications When you are new into coding financial applications one of the mistakes people tend to do is using a data type that it’s precision / significant digits are not enough to properly represent numers. If you’ve taken some CS classes you know how decimals …

Continue reading »

Feb 13

How to: Use Git (Git Clone, Git Fetch, Git Pull, Git Clone & Git Rebase)

How to: Use Git (Git Clone, Git Fetch, Git Pull, Git Clone & Git Rebase) I am new to Git and using repositories in Linux based systems (Being a Visual Studio / Team Foundation guy is not like I am starting from scratch). The point was just to understand what does each command does so …

Continue reading »

Feb 12

Resolved: fatal: Not a git repository (or any of the parent directories): .git

Resolved: fatal: Not a git repository (or any of the parent directories): .git I just started using BitBucket as it offer private Git repositories which is something I was looking for and GitHub obviously charges for that. I am going to use my repository for something small and simple not a huge project so justifying …

Continue reading »

Oct 26

How to: Use Regex to create instructions out of a list of inputs

How to: Use Regex to create instructions out of a list of inputs Using Notepad++:   Use Regex to identify the inputs you want to put inside a command: (bd{1,3}.d{1,3}.d{1,3}.d{1,3}b) Then Replace it with the command identifying the matched Regex on the search: <add ipAddress=”1″ allowed=”false” />

Dec 16

How to: Improve the performance of the Entity Framework

After writing code using entity framework for sometime and seeing the code base continue to grow I realized the importance of coding with performance in mind. There are things that come to mind like eager loading, but that alone won’t do much as your application continues to grow. Below are some key best practices I …

Continue reading »

Dec 14

How to: Convert a string into an Enum in C#.Net

Recently I came across the need to convert a string stored in the database into an enumeration in our application. I wasn’t really excited about having to write a switch statement nor having to maintain that code. Fortunately there is a command in .Net that allows you to parse that string into any enumeration which …

Continue reading »

Load more