Wednesday, May 1, 2024

Travelling Morocco - Part 2

 

So, we awake!!  And the first thing after awake, breakfast. Well this time for kids, only. It was Ramadan, therefore for me breaking fast needs a little while. 

 Anyway we went out, opting for familiar choices, and stopped at a Carrefour supermarket to pick up some bakery items. Curious about local food prices, I explored the back of the supermarket to experience the country's protein consumption capacity. The prices appeared similar to those in Europe, with lamb costing around €14 per kilo and beef ranging from €8 to €14. These prices seemed quite high to me, and the same was true for cheese.


Later, while speaking with our driver in Fes, he confirmed that there has been a 40-50% price inflation for groceries post-Covid.

Then we visited the Medina. In Arabic, "Medina" means "city." As seeing here that,  the whole city is enclosed by the wall, seems to me this is the protection wall for the city. 

Sunday, April 21, 2024

Travelling morocco - Part 1

It's been quite some time since I last wrote a blog post. Between work, family commitments, stress, various issues, life changes, illnesses, and the usual unpredictabilities of life, I just couldn't find the time to pen even a few lines. However, a few months ago, I realized that I still had the ability to write. I engaged in chat-style writing and received feedback that I was quite talkative—or should I say, 'chattative'? This both boosted my confidence and piqued my curiosity. So I said myself, .. lets try. 

 

So, here we are. My current plan is to create a photo blog post. Generally, taking photos is one of my least favorite tasks when traveling. I tend to be lazy; my brain doesn't work quickly, and the process of taking out my phone, activating it, focusing, and capturing the moment seemed quite tedious to me. But this time, I tried—I had my reasons, but let's not get into that. After all, this is a travel blog, (not digging behind ha ha) i mean, not an excavation of motives. 

 

Traveling with my two sons requires meticulous planning well in advance to ensure things are affordable, "things to do" are available, and safe both in-control(law and order) and beyond-control(weather etc) meaning and so on. 

 

April is an ideal time to travel from Germany. Schools are closed for Osterferien, the days are longer with more sunlight, and it's comfortably warm—plus, it's much cheaper compared to the summer holidays. 

 

Unlike last time(Turkey), this year we choose Morocco. Why? Its near to Europe (within 3 hours for flight), weather is good, secure, Muslim country, with ancient sights to see, lots of activities, and a chance to experience a rich, medieval culture. However, for my sons, the real draws were the aqua parks, jet skiing, and swimming in the Atlantic—oh, and the abundance of sweets. Although it seems attractive and we encounter many German tourists in Morocco, found very few flights travel directly from Northern Germany to Morocco. Those that do are priced at two to three times more than we were willing to spend. Somewhere, I've read while traveling, either you consider time or consider money. You all, who is reading this, get it clearly what I considered. :-D 

 

Saturday, November 26, 2016

Mentoring Eudyptula Challenge - 3 & 4

It is a long delay of writing this part of Eudyptula challenge of 3 and 4.

But I would like to continue this series till the end (upto 20th of challenge).

Today, I'll project two challenge together, as they ain't long or big and not really a part of programming or really working with kernel space. As it is task of 3 & 4, the task number 1 & 2, specially 2 is a pre-requisite. So, my assumption is, you have already finished the task 1 & 2 and now pursuing this task number 3 & 4.
As you've done the task 2, i.e., you've just build the custom kernel, you've sent your work, and received this line -  Congratulations on passing this task!

Tuesday, November 1, 2016

Gold as Money with some scientific chatter


It was a medium quality evening, and as usual we were killing kings and lords* {all queens ain't Eli-II }(common task of every rendezvous).

Well, one of them - in zufall (accidentally!!!) got some good amount of money,
and worried (as we equally poor always do) whether will these money stay or even grow with its same buying capacity as now.
Usually due to read some of "conspiracy" theory and bit of a fan of anti-establishment, however also likes of bit of these and that - I'm for gold by far, and argue that nothing can replace gold against its buying power.

But one of us not agreeing and he put the stuff in scientific manner, as gold can be collected from everywhere, even it is possible to convert some other metal to gold through fusion technology. He put the example of ITER, where they are doing something like this. His example was, you can take a nearer metal of gold from periodic table and convert it with enough heat, pressure and some other stuff that you need to change the atomic form of that matter to gold.

Tuesday, August 23, 2016

Adding customer code/module in Kernel source tree


For an embedded system, there's actually little or almost no reason to use loadable Kernel modules. On the other hand, it may turn insecure, if the system is a protected one, using encrypted data & key while live. Then a custom loadable module can dump the memory to grab the secret data/key from runtime environment.

Other than all these, probably, you wish to see something while booting your own custom Kernel. For example, you want - that well known hello_world program should print something on console while kernel is booting.

A simple google search for "hello_world kernel space program" will point you a lot of examples to preparation, write, linking, compiling, loading, checking and unloading that hello_world program as a module for Kernel.

Monday, June 27, 2016

An interesting scanf() skipping behavior



It is very interesting and quite important to notice scanf() behavior in C programming,

While you are writing a code for example,

 int x; char y;  
 scanf ("%d", &x);  
 scanf ("%c", &y);  

    -- the second scanf() will not hit while you run the program. But if you reverse,

 scanf ("%c", &y);  
 scanf ("%d", &x);  

                -- it will work. But WHY ???
               
Because scanf() function reads new line character from Return key, so while something Integer has been read into a variable and then pressed Return, a New Line created due to Return key is staying in buffer and the next scanf(), which is ready to take a character variable took that New Line as character value and as it filled with a character, it automatically skip.

But on other case, as the second scanf is as integer, it does not effect with above cause.

Because, scanf() function removes whitespace automatically before trying to parse, except - again EXCEPT,

 %c, %n, %[] these three cases.  

Tuesday, April 26, 2016

A MQTT application with QR code and OpenCV


Once a cake sent to us, bought back to package-center and next 2 days, as we were not able to pick it.
However at the same day we were rounding near by package-center for few times.

While get back home, it was late and 2 days later we'd a cake with feet-smell.

It often happen with us, delivery package from DHL/Post or others arrive, while nobody is at home. So at the evening, while back home, found the note from postman - either collect it from neighbour or report to postoffice / collection center.

However, it would be nice to know, as well saves time and effort, that a package was at my door. So, I can pick it while coming back home, if time allows.

For such scenario let me to grab the idea of building an automated system, so absent of recipient, postman will scan a QR code, with the camera attached with doorbell and bring the packet back to package collection center.

So how does it will work ?