Maximum Difference in Array – C++

Lets assume we have a sorted array like : What is the maximum difference for two elements in this array such that larger member should appear after smaller one ? If it is sorted, we can simply say that maximum difference is between last element and first element. Simply 9-1 […]

Read More

What is Singleton Pattern in C++ ?

If you need an object which should present as one instance, then a singleton pattern can be the answer for you. But If you quickly search the internet, you can see some people say that the singleton pattern is an antipattern. I am not sure it is correct 100 percent, […]

Read More

Qt 5 development for Raspberry pi

If You want to build Qt5 development environmet for raspberry pi then you are in the right place. In this short tutorial you can build your Qt5 for raspberry pi. I used ubuntu-18.04-desktop-amd64 and rasp image is 2018-06-27-raspbian-stretch. For old images something can be different. If you have any trouble, […]

Read More

Arduino Modbus Example

Hey ! You can find something usefull about modbus and arduino. There is an example code that shows how you can try modbus algorithm with arduino. I used arduino mega in this example which means that the code only work with arduino mega. If you compile it for other types […]

Read More

8051 Led Blinking

Hi everyone. Here you can find a little informations about interrupts and timers. During the tutorial 8051 ( silabs ) are help us to learn what the heck is interrupts ! End of the tutorial it is possible to blink led using timers and also to generate a delay function. […]

Read More

Java Pixel Processing

The code in the video is the small part of a some project. I do not want to explain the whole project which is about image processing. I just try to show the some part of algorithm which can give you an idea about image processing.The algorithm is created to […]

Read More

Arduino Voltmeter

To measure the voltage, you need an ADC. Which is called Analog to Digital converter. In arduino, for instance uno has 10 bit ADC, that means you can measure whatever you want as a 10 bit resolution that also means your scale is between 0 to pow(2,10). If you have […]

Read More