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”...


  • 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 do it the wrong way. Problem First: getting the public IP address of a machine shouldn’t be done locally...


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

    This article presents a method of loading a managed (C#) dll in a native (C++) process by using the Common Language Runtime (CLR). Basically, it refers to calling a C# method from C/C++ and enables calling managed code from native...


  • 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...


  • C# How to Scan a Process' Memory

    This article is about how to get the memory dump of a process, by checking almost all memory addresses that can store data. Since C# is quite a high level programming language, I think this is the only method available...