I am ????? ??????.
I am an engineer, architect and
I create software.
Welcome to my site!
Minimalistic, lightweight, hand-crafted from scratch with "notepad"... almost:)
Should work in modern browsers and look fine on your phone.
A mix of professional site and personal blog.
You can find more details here.
I don't collect or store any information about the visitors of my site. I don't use cookies, browser storage or things like that.
You can use anything found here for free in any way you like. As usually, no warranty or liability on my part.
The requested page does not exist in my site
0% done...
Anything about technologies, practices, architecture, database design, etc. Without "10 SQL tricks", "Window.setTimeout() explained" or "[ProductName] features overview" stuff.
With code examples, detailed guides and other things hard to find.
I want this site to be as simple as possible, both in terms of development and deployment \ hosting. I don't need any IDE \ code editor \ web server \ database \ etc. to work on it, and can host it anywhere.
Also, I really miss the old lightweight sites not overfocusing on "cool" effects and animation.
I like the idea of having anything in one file. It makes fairly easy to store temporary site data. Working with user interface is easier too. Site updates are fast and flawless. And no annoying hyperlink navigation flickering.
On the other hand. There is increased traffic, the need of some kind of JavaScript navigation, the final HTML is bulky.
At this moment the whole site is less that 1MB (about KB), for comparison: my LinkedIn page is about 3MB, my GitHub was 2MB when it was recently created, google.com is almost 2MB too... It looks like I have nothing to worry about.
Obviously, I put all the media in separate files (except the site icon and background, which is a SVG).
This site is very simple. It took me just a few days to create it from scratch. It looks not so bad in any of my devices. There is just no need of using any CMS or third-party library.
Also, this kind of hand-crafting brings pleasure:)
I test and check that everything works as intended in all browsers and devices at my disposal.
I even downgraded some JavaScript code to make it work in older browsers like Internet Explorer.
Again, making a trendy-looking eye-catching site is not a goal here, so the UI is kind of ascetic.
I don't care about search engines, indexing, Google ranking, etc.
This site is absolutely commerce-free. No advertising, no paid reviews, no partner links. No monetization.
It's just for fun.
With over 15 year of experience in software development, I have the necessary skills to get the work done. Well done.
I can join your team\company\startup and help you to:
Design the "architecture", draw database schemas, think about integration issues, look for some useful third-party solutions, split everything into microservices and merge it back into a monolith.
Implement the above with .NET, JavaScript, SQL and some fancy (or not) frameworks (or without them).
Review what was coded with something like SonarQube and auto-test what was compiled with Selenium or JMeter.
Set up the CI\CD or in the worst-case do all the setup\deploy manually.
Work with legacy projects, figure out why everything is so slow and buggy, understand shit code.
Performance optimization approaches, based on the example of a test task that I came across.
#techtalk
A very simple source code to HTML convertor \ syntax highlighter
#code #projects
Even 10+ years after CORS was supported by most browsers, there is still a lot of misunderstanding.
#techtalk
Since personal sites have become rare and hard to find, I think it's worth having a small collection here.
I can't tell how I decide what to add and what not, but here are some things that I appreciate:
I'll update this list time to time.
Updated: March 2025
A little tool to check if the links above are still alive:
Due to CORS restrictions, it doesn't work for all sites (or needs CORS to be disabled in the browser).
Anyway, it's a good starting point to make a brief article about CORS.
The browser loads a site from the server (
The browser executes the script and makes a "preflight" request (OPTIONS HTTP method) to
The response may contain Access-Control-Allow-Origin and Access-Control-Allow-Methods headers (these are the most commonly used, but there are others).
Before executing the actual meaningful request (GET, POST, etc.) the browser checks if Access-Control-Allow-Origin and the HTTP method is in Access-Control-Allow-Methods.
If not - the request is blocked.
Here is an explanatory gif:
Important: "origin" is a combination of scheme ("http", "https"), domain (but not subdomain) and port.
For example, "https://ui.domain.com" and "https://api.domain.com" are considered different origins.
CORS headers are controlled by
You can bypass CORS restrictions by using a so-called "CORS proxy" (the problem of misunderstanding CORS is so big that even some commercial workarounds were implemented). However, I don't recommend it for anything serious.
As all the checks are done by your browser, there are some ways to disable it (with extensions, startup arguments and so on). But don't ask your users to do that.
Cross-site requests are not necessary something bad.
Here are some examples - just to show that CORS was not invented only to inconvenience developers.
The idea here is about making a user to participate in an attack without even knowing what is going on.
The user's browser loads a site containing a script which makes a request (automatically) to the attackable site. More users - more requests, until the server or the network won't be able to handle it.
Many times, reading about XSS attacks, I found an example with an alert(), which is confusing as it does nothing but reveal itself.
Here is a better example:
Without CORS restrictions (or with "Access-Control-Allow-Origin: *" on the attackable site) every user who opens a site containing the script above, would make a request, every second.
Technically the same as above, but in this case the target is the user.
The attack takes advantage of the fact that the user is already authenticated (e.g. on a bank site) to execute some unwanted actions. See example:
Again, with a wrong CORS configuration (or without CORS at all) and without other security measures, this would work.
Without CORS restrictions, making fake sites would be fairly easy (especially for the sites having separate API and UI parts).
But keep in mind that CORS doesn't prevent such things, it just makes them a bit more complicated.
In the code below, "https://userdatatheft.com" is the server who controls the CORS headers, so it will likely set "Access-Control-Allow-Origin: *", and the request will pass.
Here is a beta-version of my own implementation of source code to HTML convertor \ syntax highlighter.
For now, only JavaScript and C# are supported, partially (as much as necessary for my site).
This far from ideal implementation took me about 12 hours.
This is a copy of my LinkedIn article. I just thought why not post it here too to see how it looks, with more control over the markup and the awesome code blocks:)
Showing how a developer (me in this case) approaches a problem, and how an apparently simple task can become somewhat complicated and unclear.
Some performance optimization tips, not the best C# code and other tech stuff.
I'm not into test tasks, but this time I thought why not...
Separate a string input into words.
Reverse all words with uneven length, remove all duplicate words with even length.
Return a string made up of the results of pt. 2, ordered by length, ascending.
Do it as fast as possible.
Do not use AI, GPT, etc.
Okay, "Create a new project"...
Windows Forms? Web? Experiment with MAUI? Unit Test Project?
Console.
Straightforward implementation, took 15 minutes
Sure, this is not the code task authors are expecting. But it works, so I'll use it as a self-test for further implementations.
Maybe I need a case-insensitive duplicates detection? Yes, normally we consider words to be the same regardless of case. I'll just do String.ToLower...
What chars should I use as input separators? I'll put it into a const.
What if the input is null? Return null.
Or it doesn't fit in memory? I don't think the task is about this.
Any other info about the input? No?
No String.Reverse in C#??? No String.Reverse in C#.
Obviously, I need a much longer string to measure the performance. And self-tests. And performance comparisons. And Program.cs is not the right place...
Some improvements but still straightforward, 10 minutes more and lines of code doubled
Run... Oh, "War and Peace" is not long enough, I need at least "War and Peace" x5.
Run... 34065 milliseconds for a 16468070-length string and 2882885 words. Maybe it is fast enough?
Should I put this Stopwatch somewhere else? I'll remove it from the final version anyway...
The test task takes a 34-35 seconds to complete (hereinafter: I always do several measurements). Sure, it can run faster. What can I do?
As I said, I want to use the code above for self-tests and as a reference, so I will create another class to experiment with. And I need more Stopwatches...
The same with Stopwatches, another 10 minutes
List.Contains took almost 33 seconds, super slow, as expected. I used it on purpose.
The self-made Reverse took only ~400 milliseconds, not bad. I'm surprised.
String.Split took ~300 ms.
OrderBy another ~250 ms.
String.ToLower, String.Length % 2 == 0, List.Add and String.Join took less than 100 ms each.
With this quantity of words, I need a HashSet for duplicates detection, not a List. In fact, I put List.Contains in my code only to illustrate this very common mistake.
Life-changing line of code (two lines, actually)
It was 34 seconds in total, now it is about 1400 ms (again, after several measurements).
Almost 25 times faster!
Now, the slow part is the Reverse method. Here is another simple optimization to do.
Storing and reusing the results of previous calls
1400 to 1150 ms in total (-18%). And slightly faster if I run it again without clearing the Dictionary.
See the String.ToLower at the beginning? It takes less than 100 ms (80-90 ms to be exact) - nothing too bad if we are talking about tens of seconds. But now it has become 7-8%.
The right way of doing a string comparison. And the fastest one
Another 50ms gone (-4%; hereinafter: from previous result). Obviously, the usage of StringComparer has some cost.
The output is not lower-case only anymore, but the task doesn't have any requirements about it.
OrderBy followed by ToList seems redundant, I used it only for the stopwatch.
Bitwise operations are faster than arithmetic operations.
No need to reverse single-char words.
Honestly, I didn't see any improvements here. This is expected: String.Join has a special case for lists and arrays, modulus operator is optimized by many compilers, and we have relatively few single-char words.
The Stopwatches. I removed them (except one) and the time dropped from 1100 to 800 (-27%).
This the "solution" I'm supposed to demonstrate? A HashSet and a Dictionary? Not too impressive, but who knows...
At this point, I spent about 1 hour on the task.
Definitely I should rename "isEven" var to "isEvenLength" and "TestTask_Fast" to "TestTask_WithHashSet". And move the overall time measurement to Program.cs.
800 ms now. There are some problems with my solution above: (1) it iterates over the input at least 4 times, (2) creates lots of objects, and (3) there is nothing I can do about it. On the other hand, there is one important good thing about it: it's readable and maintainable.
Now I will try a different approach.
If I was working on a regular project, "REST here, CRUD there", I would think twice before going ahead.
The main idea here is to use some task-relevant and more efficient data structure instead of IEnumerable<string>
This implementation took about 2 hours with all the debug and tests
I don't think it's possible to tell how I did come to this implementation.
First, the performance: 640 ms (-20%) (without Stopwatches)
Next, the test task does not mention anything about same length words ordering, so different solutions can return different results - and this is absolutely valid, and this is the case with this new one. I had to change my self-tests to avoid false failures. I'll not add another performance-decreasing OrderBy or ThenBy to make it deterministic without explicit requirement, no-no-no.
Consts.Separators.Contains (Separators is a 20 chars array).
First StringBuilder (var wordBuilder) operations.
AddWord method. Expected.
Using an array to store the separators was a good idea, since this is the right type for String.Split. But I don't have String.Split anymore...
Different ways to store word separators and the fastest version of the check
The 20-ifs approach (with == and Equals) didn't improve anything at all. A bit surprised here.
Neither did the HashSet. Expected, the collection is too small.
Using the List did the trick, and now I'm at 530 ms (-17%). Surprised, List.Contains is faster than Array.Contains...
Remember it was unclear what chars should I use as separators? At this point it makes difference: with a couple of separators, the ifs-method is faster than List, and something like Char.IsLetterOrDigit is faster than both. I'll stick with the List for now.
StringBuilders are great, but I need something simpler. Like an array.
Using a char array instead of a StringBuilder
10-15ms faster (-3%), barely noticeable. And puts this weird limit on the word length. Not a problem for now, changing 100 to 10000 doesn't seem to affect timing.
I've done more experiments, but only the mentioned two were successful in terms of performance.
So, now I have a 520 ms implementation. Not as readable as the previous one, but 35% faster.
Or not?
List solution (the first one): Didn't test as it would take too long.
HashSet solution: 5000 ms.
List<Dictionary> solution (with StringBuilder): 4050 ms (-20%)
List<Dictionary> solution (with char[]): 3840 ms (-5%)
At least the supposed to be faster versions are faster!
HashSet solution: 1750 ms.
List<Dictionary> solution (with StringBuilder): 2700 ms (+50%)
List<Dictionary> solution (with char[]): 2650 ms (-2%)
Expected
HashSet solution: 6900 ms.
List<Dictionary> solution (with StringBuilder): 6000 ms (-13%)
List<Dictionary> solution (with char[]): 5800 ms (-3%)
Not the best nor the worst...
Which solution is the best? It depends... Which one are expecting the task authors?
I spent 4 or 5 hours on this task already (1 hour for the HashSet implementation and another 4 hours for the final "List of Dictionaries" version). This is more than I'm ready to spend on a test task...
No ideas for further improvements.
Wait...
Not bad for a robot
A .NET web application running on a Linux server
Users are stored in a database
Client: we need another type of users support: the ones stored in our Active Directory... Can you do it?
Sure.
System.DirectoryServices seems to be Windows-only
There are some troubles getting user groups with Ldap4net on Linux (login and password check works fine)
But there is Novell.Directory.Ldap.NETStandard
After some experiments I ended up with this piece of code.
As our team was struggling some days to get it to work (debugging is somewhat tricky and working examples are rare), I thought it's worth sharing this piece of code.
The map is an Equal Earth projection map and is based on a SVG I found on the project site. You can find more details here.
This map shows places I've been, with some nice photos. For now only a small number of places I want to show is shown.
I created my map of the world based on a SVG I found on the Equal Earth projection site.
While it was super useful, there were a couple of flaws: the map mainly consisted of <polyline>-s (except Australia and some islands), sometimes not even connected to each other, making polygon coloring and selection operations tricky. Not to mention that there were no labels or comments with country names, only point coordinates.
So, I decided to do some work to make the map more friendly.
Here is what I have for now:
Not too much, yet a good starting point to create your own maps.
Here is a little demo.
Obviously, can be done manually.
But if you need some automation, here is an online convertor and the code.
As the project site says, the equations for this projection are (parentheses and added for readability):
sinθ = (√3/2)·cosϕ
x = (2·√3·λ·cosθ) / (3·(A1 + 3·A2·θ2 + θ6·(7·A3 + 9·A4·θ2)))
y = θ·(A1 + A2·θ2 + θ6·(A3 + A4·θ2))
where λ is longitude, ϕ is latitude, A1 = 1.340264, A2 = -0.081106, A3 = 0.000893, A4 = 0.003796.
-2.70663 to 2.70663 for x and from -1.31736 to 1.31736 for y.1117.39 per 544.06.Y axes of the map and the SVGs point in opposite directions.63°44′N 11°15′E are "degrees", but most math libraries work with "radians".
Github: C# JavaScript
Earthquakes data is provided by USGS
This is a "Just For Fun" project and a small demo of my Equal Earth maps
Magnitudes on the map are:
• -
• -
• -
• -
Here is my hate list:
List-s instead of IEnumerable-s. Floating-point numbers where decimals are required. No input validation in API-s. Super common.<thead>. It is 2025 or 2005?