Thursday, June 15, 2023

The Missing Square Puzzle

If you rearragne the four shapes in triangle A and place them in triangle B, you will notice an additional square in triangle B.

How did this happen?

Wednesday, June 14, 2023

Magic Triangle Puzzle

Place the integers from 1 to 9 in one of the circles in the figure so that the sum of the integers along each side of the figure is 17. Determine the sum of the three integers placed in the corners. Can you try to solve it for other sums from 18 to 23?.
And a printable version of the magic triangle is here:

Monday, June 5, 2023

Counterfeit Coins Puzzle

There are 10 bags with coins. Each bag contains 2000 coins. Nine of them contain real coins weighing 10g each, and one contains counterfeit coins weighing 9g each. By one weighing on a digital scale find the bag with counterfeit coins?

And how would you solve it if 5 bags contained counterfeit coins?

Farmer, Goat, Wolf and Cabbage Puzzle

A farmer wants to cross a river and take with him a wolf, a goat, and a cabbage. There is a boat that can fit himself plus either the wolf, the goat, or the cabbage. If the wolf and the goat are alone on one shore, the wolf will eat the goat. If the goat and the cabbage are alone on the shore, the goat will eat the cabbage. How can the farmer bring the wolf, the goat, and the cabbage across the river?

Saturday, June 3, 2023

8 Numbers Grid Puzzle

You are provided with a grid (as shown in the picture). Can you fill the squares with numbers 1-8 in a manner that none of the two consecutive numbers are placed next to each other in any direction (vertically, horizontally or diagonally?)

Thursday, March 16, 2023

Find the Heavier Ball Puzzle

You have 9 balls, equally big, equally heavy - except for one, which is a little heavier.

How would you identify the heavier ball if you could use a pair of balance scales only twice?

The Missing Dollar Puzzle

Three people check into a hotel. The clerk tells them that the bill for their stay is $30, so each person pays the clerk $10. The clerk puts the money in the cash register.

Later that night, the clerk realizes that he made a mistake and should have only charged the three guests $25. He pulls $5 in one dollar bills out of the register and tells the bellhop to return the money to the guests.

On the way to the room, the bellhop realizes that he cannot split the money evenly between the three people. As the guests don't know that they were charged the incorrect amount for their room, the bellhop decides to simply give them $1 each and pocket the extra $2 as a tip. Each guest gets $1 back, so they each paid $9 for their room, totaling $27. The bellhop kept $2, and $27 + $2 = $29.

But the guests originally handed over $30. What happened to the missing dollar?

Tuesday, December 13, 2022

Which free software do I use in my work?

  • Notepad++ is a source code editor and Notepad replacement that supports several languages.
  • 7-zip is a file archiver with a high compression ratio.
  • f.lux is software for eye protection.
  • Paint.NET is image and photo editing software for PCs that run Windows.
  • Putty a simple and stable SSH client.
  • WinSCP an SFTP client that also supports FTP, FTPS, SCP, WebDAV and S3.
  • KeePass a light-weight and easy-to-use password manager.
  • Postman is an API platform for building and using APIs.

A longer list of free software for windows, that I might be using or not, can be found here.

This list was edited online using onlinehtmleditor.dev

Sunday, September 11, 2022

The Bird Traveling Between Two Trains Puzzle

Two train stations are 60 miles apart. At 2pm one Saturday afternoon two trains start toward each other, one from each station. Just as the trains pull out of the stations, a bird springs into the air in front of the first train and flies to the front of the second train. When it reaches the second train, it turns back and flies toward the first train. The bird continues to do this until the trains meet. If one train travels at 30 miles/hour and the other train travels at 20 miles/hour, and the bird flies at 100 miles/hour, how many miles will the bird have flown before the trains meet?

Wednesday, August 17, 2022

No Broken Eggs Puzzle

Jack is a farmer and owns some chickens. One day, he took a basket of fresh eggs to the market to sell.

The first person bought half of all the eggs in the basket and half an egg.

Then, the second person bought half of the remaining eggs and half an egg.

Later, the third person bought half of the remaining eggs and half an egg.

Finally, the fourth person bought half of the remaing eggs and half an egg.

Now Jack's basket is empty.

If no eggs were broken in the process, how many eggs did he originally have in his basket?

Monday, August 15, 2022

Birds in Garden Puzzle

Once upon a time, there was a garden somewhere in the world. In that garden, there were some birds on the ground and some birds on a tree.

The birds on the tree say to the birds on the ground that if one of you came to our tree, then our population will be double of yours.

Then the birds on the ground tell the birds on the tree that if one of you came to the ground, then our population will be equal to that of yours.

How many birds were on the ground and how many birds were on the tree?

Saturday, December 22, 2018

عروة بن الزبير

لَعَمْرُكَ ما أَهْوَيْتُ كَفِّي لِرِيبَةٍ     وَلاَ حَمَلَتْنِي نَحْوَ فَاحِشَةٍ رِجْلِ
وَلاَ قَادَنِي سَمْعِي وَلاَ بَصَرِي لَهَا      وَلاَ دَلَّنِي رَأْيِي عَلَيْهَا وَلاَ عَقْلِي 
وَلَسْتُ بِمَاشٍ مَا حَيِيتُ لِمُنْكَرٍ      مِنَ الأَمْرِ لاَ يَمْشِي إِلَى مِثْلِهِ مِثْلِي 
وَلاَ مُؤْثِرًا نَفْسِي عَلَى ذِي قَرَابَةٍ       وَأُوثِرُ ضَيْفِي مَا أَقَامَ عَلَى أَهْلِي 
وَأَعْلَمُ أَنِّي لَمْ تُصِبْنِي مُصِيبَةٌ       مِنَ الدَّهْرِ إِلاَّ قَدْ أَصَابَتْ فَتًى قَبْلِي

أبيات لمعن بن أوس المزني ، أنشدها عروة بن الزبير (تابعي) لما بترت ساقه .

Thursday, July 10, 2014

Embedded Android

Good reads:

Usefull Utilities:

  • Win32 Disk Imager - This program is designed to write a raw disk image to a removable device or backup a removable device to a raw image file. It is very useful for embedded development, namely Arm development projects (Android, Ubuntu on Arm, etc). Anyone is free to branch and modify this program. Patches are always welcome. The window's installer can be downloaded from here.

Wednesday, September 5, 2012

Registry Comparison Tools

Regshot is an open-source registry compare utility that allows you to quickly take a snapshot of your registry and then compare it with a second one - done after doing system changes or installing a new software product. Regshot is compatible with Windows 7 (both 32-bit & 64-bit). I also tried another nice tool called Advanced Registry Tracer 2.01 which does the same job but was not updated to work on Windows 7.

Wednesday, November 23, 2011

Wednesday, August 11, 2010

USB links and resources