Is permissible to buy/sell with non-Muslim?
Yes buying/selling for a Muslim with non-Muslim is permissible as regards what is lawful.
Which hour coincides with the last third of the night?
This hour could be figured out by calculating the number of night hours which start at sunset, and end at dawn break, then the total is divided on three to get the result.
Is wearing a cap permissible for boys, or girls?
All Perfect Praise is due to Allah, The Lord of The Worlds.
In principle, anything is permissible sol long as there is no Sharia evidence prohibiting it, thus wearing the cap by boys is permissible as long as it isn`t done in imitation of the disbelievers. Moreover, a Muslim woman should avoid all that which attracts the attention of men because whatever leads to the forbidden is forbidden. And Allah Knows Best.
I made a vow "If the Israeli troops retreated out of Gaza strip I will buy a cake from a certain bakery" and it happened. Am I obliged to buy from the same bakery?
You are obliged to buy from the same bakery. And Allah Knows Best.