Multi Service Bus Core 2.0

Hi, today I want to present to you Multi Service Bus Core 2.0. The new version has a lot of small bugs fixed. I recently bought to myself very good tool to draw diagrams. Below I will want first starting with showing the concept diagram. Multi Service Bus Core 2.0 offers Server to Client communication. It is important point so I described it first with this but let me start from the basics principles of the library Continue ReadingMulti Service Bus Core 2.0

Code Puzzle – Get Behind Firewall

Hi, today I have very nice code puzzle for you. Code Puzzle is to implement two blue boxes in following diagram. That can be implemented in Java and/or C# with following requirements. The only system that can receive connections is behind green box that is a open server endpoint. The system behind red box is closed and you cannot connect to it. I have very special prize for the best, clean and easiest solution of this code Continue ReadingCode Puzzle – Get Behind Firewall

Action<T> and Func<T, TResult> in Java 8

Hi, as a .NET/C# coder I found the issue that there is not Action<T> and Func<T, TResult> equivalents in Java environment. I am self-study this to prepare myself to the OCA certification and I had idea that I can use lambda expression and implement simple equivalents of C# delegates in the Java 8. Below you can find implementation with test cases. I found that the code can be very easy, because lambda expressions works as a anonymous Continue ReadingAction<T> and Func<T, TResult> in Java 8

Learn Java so Far so Good Java 1D Array

Hi, I am happy to announce, that my learn Java journey at the Hacker Rank is going very nice. Today I was very happy to solve the code puzzle named Java 1D Array (Part 2) and this puzzle has already 39.64% success rate. And it category Data Structure Challenges most of the code puzzles has more than 90% of success rate. So far, so good, I have in Java 313 points and 2067 rank :). I have Continue ReadingLearn Java so Far so Good Java 1D Array

Learn Java proof at Hacker Rank in Tag Content Extractor

Hi, some time ago I started learn Java language. I ma trying to self-study learn of the Java. And I have to say that the language is very nice and with deep knowledge of C# my progress is fast. I want to show you today here one of nice code puzzle solution named Tag Content Extractor. It take me some time. I started learn Java from very easy puzzles and every next one is more and more Continue ReadingLearn Java proof at Hacker Rank in Tag Content Extractor

ParallelExecutorAspect in C#

Hi, today I would like to share with you idea of right parallel execution of actions/methods. Imagine at the beginning that you have queue of messages and even some number of threads that in parallel get messages from queue and then there are doing background work. Now if that messages executes actions on relational database you will quickly find out that some of your work is done right, but because of some reason you get timeouts or Continue ReadingParallelExecutorAspect in C#

SQL Ninja moves Data in Auto Balancer Loop

Hi, today I want to share with you one of my last invention. That is extremely useful when you need to move data for example to historical or archive tables on your SQL Server. Imagine that the same moment you move your data someone can with lower probability use table you move data from. When you decide to insert data to new table and then delete them of course in delete query you lock whole table. Now Continue ReadingSQL Ninja moves Data in Auto Balancer Loop

Coding by to Design of KinectCamV2

Hi, today I want to share with you design example of KinectCamV2. Steve Jobs sometimes used to say that design is not about how solutions and devices look, it is about how they work. And I just have seen today very nice design example at home of KinectCamV2. So, at this moment I had a good idea of today’s post for my blog. I think the best example of any design is to watch how people use Continue ReadingCoding by to Design of KinectCamV2

The Clock

Hi, today I made a nice clock for my blog, I put it just under my picture on it. And because I like the way it is build I want to share the solution with you. This solution is nice, because it uses ProcessingJS library. And because I really like analog watches and I like the simple way I was able to made it I want to share the solution with you. You can download source code Continue ReadingThe Clock

Duplicater for Duplicate Search

Hi, today I would like to show you very simple idea, that is not implemented in any operating system I know. The Duplicater is a simple solution for find in folders tree duplicates of files with different names but with the same content. Solution is very simple. It analyzes folder structures and get all files and calculates MD5 sums for each file. When any duplicate will be found with the same MD5 sum Duplicater moves it to Continue ReadingDuplicater for Duplicate Search

SimpleDatabaseBroker

Hi, today I would like to share with you implementation of new SimpleServiceBus that now uses Apache.Thrift and Protobuf.NET and is faster because of that. First reason of use those libraries was of course performance, but also I want to build something completely new which is SimpleDatabaseBroker. For use this code in SQL Server 2012 I needed something different than dependency for System.ServiceModel.dll because that cannot be used as SQL CLR. In other words you cannot use Continue ReadingSimpleDatabaseBroker