Latest posts

  • C# Naive Bayes Basic OCR (w/ Example)

    Hello again; I’m back - once again sacrificing my time for homework so I can publish something that I find more interesting. So if anyone is still reading this: the whole article is about OCR (which stands for Optical Character...


  • C# Prevent Decompilation by Decrypting Source at Runtime

    Hello world! Today we continue the “Trolling the Decompiler” series (first part here: Prevent Reflector from Decompiling) but now with a more serious approach - this one should work on any decompiler. The point is: it is rather difficult to...


  • Hamming Error Correction - with Example

    This article will focus on Hamming codes - mainly, this represents an attempt to explain a little bit better how this method can help in detecting and correcting… 1 bit errors. This method is not really useful at “higher level”...


  • Virtual Piano Player in C#

    Short Announcement (skip this) Hello again, Unfortunately my summer holiday’s over… NOOOOOooo!! Ahem… so tomorrow I’ll start the 2nd year at the Faculty of Automatic Control & Computer Science. This means going back to the traditional 5 hours of sleep/night...


  • C# Send Data Between Processes (w/ Memory Mapped File)

    If you’re reading this right now you’re probably developing some application that has 2 or more processes and you want those processes to share some data with each other. There are multiple ways to pass data between processes (IPC), each...


  • Approximating Integrals with the Gaussian Quadrature (w/ example)

    This is more like a memory dump so I will have a backup in case I’ll ever need it again. And if someone else finds this information useful, the better it is. Intro The Gaussian Quadrature is a method used...


  • C# Minecraft Pixel Art Generator

    Good morning class, (see what I did there:P ?) Today we will discuss a very important subject: creating pixel art in Minecraft from a given image.     Ok guys, so I saw people creating pixel art in Minecraft (trying...


  • Matlab/Octave Lagrange Interpolation Polynomial

    Ok, I’ve been missing for a few days…months…almost a year. Ran out of ideas and time for new articles (thanks to the university) so I’ll publish some stuff related to numerical methods, starting with a basic interpolation method using the...


  • C# Inject a Dll into a Process (w/ CreateRemoteThread)

    Since I’ve been asked if this is possible - well…you can do Dll Injection using C# but the injected Dll must be written in a language that doesn’t depend on a CLR (C/C++ would be a good option here, but...


  • C# How To: Get External IP Address

    Okay, this is a really short article, but I felt the need to write this because too many people seem to take the wrong way. Problem First: getting the external IP address of a machine shouldn’t be done locally (Dns.GetHostAddresses(Dns.GetHostName())...


  • Call a C# Method from C/C++ (native process)

    So…I received a challenge from a friend (lost a bet…) regarding how to load a managed (C#) dll in a native (C++) process by using the Common Language Runtime (CLR). After a few tries, I came up with this…it seems...


  • C# Get Frames from a GIF

    This is a simple method to extract a certain frame (or all of them) from a GIF, using C#. As always, .NET provides all the functions we need, so it shouldn’t take more than 12 lines of code. Basic Information...