Skip to content

Code Excavator Posts

Playstation 2 : Play games through HDD or SD card

This the first post in a long series (i hope) of posts about retro consoles. The purpose of these posts is to get you up and running with simple projects that you can complete in under 30 minutes. Playstation 2 is the most successfull console of all time, so you will probably have one! Unfortunately ps2’s laser disc can often malfunction and you will not be able to play your games. If you have a PHAT ps2 you can solve this problem by adding a harddisk or an sdcard to your system and run your entire collection from there! This…

Leave a Comment

Music You Love

Let’s say you have a huge collection of songs but a lot of them are pretty crappy! (Just kidding:-P ). You can’t delete them all by hand because probably your collection is huge! So how about an application that can separate the songs that you truly love from tha ones that you don’t, based on your criteria. Music you love is a simple Android audio player focused on sorting out music tracks. The basic concept is that if you like a song you will probably listen to it and not go to the next one immediatelly. Music You Love Manual…

Leave a Comment

Password Keeper

Trying to remember all of your different passwords is getting nearly impossimple. Personally as a developer i couldn’t keep control over my passwords at work. User accounts for testing and production environments MS SQL database users, github accounts etc. Although there are many password managers out there, most them are web based with an emphasis on syncing across all devices. Now don’t get me wrong, I’m all for web applications, for some reason I wanted to be in total control of my data, hence i created Password Keeper. Password Keeper Password Keeper is a simple and usefull application and you…

Leave a Comment

AutoMapper C#

When it comes to different layers of a solution communicating there are always DTOs (Data Transfer Objects) going back and forth and inevitably there is a lot of mapping. If there are external libraries or even 3rd party services then mapping an external object to the one our application already uses becomes tedious and error prone task. (Dont’t even get me started with SPA’s Angular JWT and all that jazz.) Thankfully for those of who develop in C# there is AutoMapper. AutoMapper As i noticed from my NuGet package manager, AutoMapper has been downloaded more than 22 million times! That…

Leave a Comment

Angular, an introduction

Angular is one of the fastest developing technologies right now. If you are more than 30 years old (and a .NET developer),you have probably worked with web forms, MVC and lately .NET Core. In our work it seems that it does not matter how much you know,because you always need to know more. That is why you have also worked with a great number of Javascript frameworks and small libraries. Sometimes i honestly think of quiting and finding a new job that has nothing to do with computers!. At the end of the day though programming can be so creative,…

Leave a Comment

JWT and .NET Core Cookie Authentication

Today we are looking into the mysteries of JWT combined with .NET Core! Due to the SPA’s getting more and more popular it is very likely that you will need to develop one at some point in the future. Furthermore Microsoft’s latest technology (.NET Core) is a powerfull and modern tool that works really well with client frameworks such as Angular. Imagine a scenario where we have an application for an eshop. The store front will be implemented using an SPA and the backend will be supported by .NET Core. The SPA can communicate via a web secured API (using…

1 Comment

Anonymous Methods C#

Last time we talked about Delegates, now we’ll look into the concept of anonymous methods that truly shines with the use of delegates. The Delegate ‘Clutter’ In order to use a Delegate you must do 4 things: Anonymous Methods at work By using anonymous methods, we could change step 3 and assign a method ‘on the fly’ without creating a new one The code can be simplified even more Keep in mind that if you have break/continue statements inside your anonymous method the target should remain inside the code block! If you want more information about the scope of the…

Leave a Comment

Delegates C#

A Delegate by definition is a person sent or authorized to represent others. The key concept here is ‘Represent others’. Delegates are used to represent other methods. Delegates at work Start by looking the example below, this is how we declare a simple Delegate. It is just like any other variable but instead of holding an integer value, it holds a method that can be executed. Now that we have declared our delegate we associate any method from any class as long as it matches the signature and the return type of the delegate. The method below is a valid…

Leave a Comment