Good bye 2016, Hello 2017

Hello Readers,

If I had to summarize the year of 2016, I would say it was full of reflections and lessons hard learned. I had to cut loose a lot of things that bother me, get rid of friends that no longer suit me and take hard decision about my career and personal happiness.
Continue reading

A day trip to Manhattan, New York City

Back in August, while visiting Boston, I took the Saturday morning Amtrak train to the Pennsylvania Station, New York City. It was a pleasant 4 hours ride in the train. After I arrived, I left the station and found myself in the center of Manhattan.

I was greeted by a bus tour saleswoman. I figured, why not, let me ride the tour bus and familiarize myself with the city. Unfortunately, it was raining the most part of the day.

It was a very busy day. People everywhere and there were barely room for pedestrians. The trash bins were full, homeless people were everywhere and the city was very very dirty. It felt like a zoo. Manhattan is not like what you see on TV. In reality it is a dog eat dog city. People were pushing each other and were very unfriendly. Later that day, I did my best to go away from Times Square and deep into the other parts of Manhattan. The further I got away from Manhattan the more tolerable and pleasant the city felt to me.¬†What struck me most was that on each block you would find a pizza place. No wonder why the Teenage Mutant Ninja Turtles, who live in New York, love Pizza ūüėČ Continue reading

Batchography: Converting numbers to characters (or the CHR() function)

In various programming languages, you might sometimes need to convert numbers to characters. In simple terms, each character you see has a numerical representation. The ASCII table  shows the numbers of each character and its corresponding glyph.

Converting numbers to their corresponding characters would be useful to generate a random string for instance.¬†The first step to generating a random string is to generate random numbers between 65 and 90 (upper case ‘A’ to upper case ‘Z’) or between 97 and 122 (lower case ‘a’ to lower case ‘z’).

While the Batch language is pretty primitive, you would be surprised how many things you can do with it. In the Batchography book, I cover various topics that would bring your Batch programming skills to the next level.
batchography-good-res

Get the book from Amazon:

  • Paperback¬†editionbtn-buy-on-amazon
  • E-book editionbtn-buy-on-amazon

flower separator Continue reading

Funny Commercial [Arabic] – Siblou – Frozen / easy to prepare food

I usually don’t blog about advertisement but I do blog about videos and things that I find funny.

The following commercial is really funny. If you don’t understand Arabic Lebanese, then let me summarize the gist of the commercial.

The lady receives guests and she prepares Siblou in the kitchen so fast. Because Siblou has a variety of frozen food choices, the lady emerges as a different personality based on the food she’s offering. She speaks Chinese for instance when serving the Chinese food. The premise is that the Siblou brand would really taste as if a Chinese cook prepared it!¬†Similarly, she speaks speaks British, French and Japanese accordingly. At the end, she morphs back to the original lady and joins the guests!


You might also like:

Batchography: How to do a “switch/case” in Batch files

You have found this blog post because you are wondering if there is a way to express a “switch/case” logic in Batch files.

The short answer is NO, not exactly. However, there are ways to achieve the same in Batch files.

In the Batchography book, I explain in details the “switch/case” construct, but in this blog post I will illustrate this mechanism briefly. For more advanced Batch scripting topics, please grab a copy of the Batchography book.

batchography-good-res

Get the book from Amazon:

  • Paperback¬†editionbtn-buy-on-amazon
  • E-book editionbtn-buy-on-amazon

flower separator Continue reading

Are you Christian? Are you Muslim? What’s your religion? Tell me, I want to feel better

I am writing this blog post just to rant and vent off and share with you one incident that happened with me.

 

The other day, while visiting Vancouver, BC, I was stopped by a family to take a photo. They observed my accent and they asked me where I am from. When I mentioned Lebanon, they wanted to know if I am a Christian or a Muslim. When I said Christian, they felt really happier and more friendly!

If you live in the West, some (if not many) people are Islamophobe. They ask you if you are a Christian or a Muslim so they feel a bit of relief if you have a more “positive” and “peaceful” religion.

I just hate the fact that I have to declare my religion so that others around me feel better. Even if they don’t ask directly, I feel this covert need to disclose my religion. Too bad, what a state of affairs. Having said that, I was born to a Christian family.

Today, based on the current world events, more and more people are brainwashed by the mainstream media to hate the religion of Islam. Where is the real freedom of expression?

When it comes to me, I treat others not based on their religion, but on how they act towards others. I try not to generalize because each person is different.: there are bad Christians as there are good Muslims and vice versa.

You might also like: