Skip to content

Random IT Utensils

IT, operating systems, maths, and more.

  • .NET Internals Cookbook
  • Bio
  • Series and interesting posts
  • Talks, Papers, Workshops
    • Async Biggest C# Mistake
    • Debugging Memory Leaks in .NET
    • DLL Injection in Windows
    • Exploring memory in .NET
    • From Bulb to High Level Language
    • Generics everywhere
    • Hacking C# From the Inside
    • Integer Linear Programming
    • Internals of Async
    • Internals of Exceptions
    • Manual Memory Management
    • Ordering the Chaos
    • Understanding Windows and .NET

Month: August 2019

.NET Inside Out Part 10 — Using type markers for low level optimizations

August 31, 2019July 18, 2020 ~ 1 Comment

This is the tenth part of the .NET Inside Out series. For your convenience you can find other parts in the table of contents in Part 1 – Virtual and non-virtual calls in C# If you are interested in the topic see the talk page Today we are going to see a concept of type … Continue reading .NET Inside Out Part 10 — Using type markers for low level optimizations

Decreasing pain of stolen focus

August 24, 2019January 2, 2021 ~ Leave a comment

One of the most irritating thing in Windows is no way to prevent an application from stealing focus. There are multiple questions on Stack Overflow regarding the issue, there are rumors that Microsoft wanted to do something but they cannot detect it reliably. There are workarounds like ForegroundLockTimeout but ultimately there is no good solution. … Continue reading Decreasing pain of stolen focus

Comparing numbers is hard

August 17, 2019May 9, 2019 ~ Leave a comment

We know that to compare floating point values we should use epsilon and not just compare bits. We may run into similar issues when comparing BigDecimal in Java: What is the output? Of course it is false, otherwise I wouldn’t write this post. This is because BigDecimal includes scale: So we should use this: and … Continue reading Comparing numbers is hard

Custom memory allocation in C# Part 12 — Hiding objects from GC

August 10, 2019April 29, 2019 ~ 1 Comment

This is the twelfth part of the Custom memory allocation series. For your convenience you can find other parts in the table of contents in Part 1 — Allocating object on a stack We already know how to allocate memory anywhere on the heap but if you think that it solves all problems with GC … Continue reading Custom memory allocation in C# Part 12 — Hiding objects from GC

Modifying Android application on a binary level

August 3, 2019April 29, 2019 ~ Leave a comment

Recently I had to modify an existing Android application for which I didn’t have a source code, only APK file. This may sound like an impossible task but actually it is pretty easy (very tedious, though). I didn’t want to use any compilers or install Android SDK with emulators as I know how heavy those … Continue reading Modifying Android application on a binary level

Recent Posts

  • Custom memory allocation in C# Part 15 — Allocating object on a stack without unsafe
  • Custom memory allocation in C# Part 14 — Unsafe code without unsafe keyword
  • .NET Inside Out Part 26 – Multiple identity inheritance in C#
  • Types and Programming Languages Part 5 – Sleeping and measuring time
  • Types and Programming Languages Part 4 – Diamond problem

Categories

  • Administration
  • Coding
  • Computer Science
  • Databases
  • Debugging
  • Math

Archive

  • March 2021 (1)
  • February 2021 (4)
  • January 2021 (5)
  • December 2020 (4)
  • November 2020 (4)
  • October 2020 (5)
  • September 2020 (4)
  • August 2020 (5)
  • July 2020 (4)
  • June 2020 (4)
  • May 2020 (5)
  • April 2020 (4)
  • March 2020 (4)
  • February 2020 (5)
  • January 2020 (4)
  • December 2019 (4)
  • November 2019 (5)
  • October 2019 (4)
  • September 2019 (4)
  • August 2019 (5)
  • July 2019 (4)
  • June 2019 (5)
  • May 2019 (4)
  • April 2019 (4)
  • March 2019 (5)
  • February 2019 (5)
  • January 2019 (4)
  • December 2018 (5)
  • November 2018 (4)
  • October 2018 (4)
  • September 2018 (5)
  • August 2018 (4)
  • July 2018 (4)
  • June 2018 (5)
  • May 2018 (4)
  • April 2018 (4)
  • March 2018 (5)
  • February 2018 (4)
  • January 2018 (4)
  • December 2017 (5)
  • November 2017 (4)
  • October 2017 (4)
  • September 2017 (5)
  • August 2017 (4)
  • July 2017 (5)
  • June 2017 (4)
  • May 2017 (4)
  • April 2017 (5)
  • March 2017 (4)
  • February 2017 (4)
  • January 2017 (4)
  • December 2016 (5)
  • November 2016 (4)
  • October 2016 (5)
  • September 2016 (4)
  • August 2016 (4)
  • July 2016 (5)
  • June 2016 (4)
  • May 2016 (4)
  • April 2016 (5)
  • March 2016 (4)
  • February 2016 (4)
  • January 2016 (5)
  • December 2015 (4)
  • November 2015 (4)
  • October 2015 (5)
  • September 2015 (4)
  • August 2015 (3)

RSS Posts

  • Custom memory allocation in C# Part 15 — Allocating object on a stack without unsafe March 6, 2021
  • Custom memory allocation in C# Part 14 — Unsafe code without unsafe keyword February 27, 2021
  • .NET Inside Out Part 26 – Multiple identity inheritance in C# February 20, 2021