Mein Kampf 

So I am reading a translated version of Adolf Hitler’s diary and in the translators introduction He just stated how he loves Hitler’s idea about Jews and Karl Marx. 

While everyone is free to have his own ideas , now I fear that about not every page I about not not reading Hitler’s words but the translator’s opinion. I think that in translation you need to be neutral and if you happen to have any opinion you need to draw a clear line but what you are saying and what the main author  is saying .. 

Where is me ?

It has been a lot since I really wrote anything here . Seems that I don’t have anything new to say or as one grows older he just tends to bla bla bla less.

Anyway, I have some great ideas in mind now and I think I will get back to action soon and maybe in the meantime I will keep writing short book reviews.

Chess Life Lessons


– Strategy(Having a plan) is as important as good tactics (good decision-making) , sometimes more important

– TIME is very critical.

– Be aggressive , Attack .. Attack !! (Take every opportunity)

– Don’t defend against a move, always counter-attack (Don’t let life corner you down , think of smart alternatives)

– Never lose hope , play for the last piece , FIGHT for the last second. FIGHT !

– Manipulate ! Manipulation is a killer , you can easily take down an opponent if he doesn’t know where the next hit is coming from

– Sacrifices , make sacrifices as long as they will pay off in the near future.

– If you are pinned weigh you options , and take the least damaging move.

– There are always better moves, it’s only a matter of how long you think . THINK !

– Even the weakest piece can be of a great power in the right situation (Put every member in the right team)

– Spread you pieces in the board (Always have more alternatives , A LOT OF alternatives )

الوصايا السبع

– “من تتبع عورات الناس تتبع الله عورته” ..

– “من حسن اسلام المرء تركه ما لا يعنيه” .. كل واحد/واحدة حر ..

– ” يَا أَيُّهَا الَّذِينَ آَمَنُوا إِنْ جَاءَكُمْ فَاسِقٌ بِنَبَأٍ فَتَبَيَّنُوا” شير.. شير .. شير

– “يَا أَيُّهَا الَّذِينَ آَمَنُوا لَا يَسْخَرْ قَومٌ مِنْ قَوْمٍ عَسَى أَنْ يَكُونُوا خَيْرًا مِنْهُمْ” .. الخرفان .. عبيد البيادة , “وَلَا تَنَابَزُوا بِالْأَلْقَابِ” .. المارشالجية .. النكسجية ..؟

– “وَلَا يَجْرِمَنَّكُمْ شَنَآنُ قَوْمٍ عَلَىٰ أَلَّا تَعْدِلُوا اعْدِلُوا هُوَ أَقْرَبُ لِلتَّقْوَىٰ ” .. اعدل مع عدوك قبل ما تعدل مع صديقك .. العدل مش عدل لو طبقته على اللى بتحبهم بس ؟ .. “وَإِذَا خَاصَمَ فَجَرَ”

Serial Communication with FTDI D2xx API on Windows

I was performing some testing on the FTDI throughput and I wrote this simple program that measures the throughput of FTDI chip if you connect its Rx pin to the Tx pin.

You are free to use it for any application with FTDI, it proved to be actually faster than using Windows VCP API but remember you need to install D2xx driver and make sure that your FTDI is actually using this driver and not the default ًWindows VCP driver

Note that the D2xx API uses a different method than conventional

    hSerial = CreateFile("COM9",GENERIC_READ | GENERIC_WRITE,

, it uses a string name instead that you can get from
device manager >> Right click on COM >> Details >> From the scroll list choose Device instance id >> you will find it after VID and PID

Code on github 






Fast DES C++ code

I found an old undergraduate project in a Security course, I and some friends implemented DES encryption algorithm. I don’t remember much but what I do remember is :
– We were Group Number 4😀
– We tried to optimize it as much as possible to be fast , degrading the code readability and actually our algorithm was the fastest among the class.
– Compile it in Release mode

Code on github