A trip to Antelope canyon with a toddler

America is a beautiful piece of land. The diversity of terrain, weather and people are unmatched. So I thought if it will make sense to vlog or blog about the road trips I am having in the US. Vlog is convenient but blog is more permanent and helpful so let’s blog.

So as of now I have two kids, 2 and 7 and an amazing wife. We travel together, even to Walgreens. Well don’t want to get off topic too much so let’s come straight to the point.


We pack super light, it gives us mobility, secondly America has everything available everywhere. So we packed the essentials e.g.
– Kids car seats
– Stroller
– Food for one day
– Powdered milk
– Water, a lot of water
– Cloths for just two days although trip was slightly longer

We flew to Phoenix, AZ from East Bay, California. Phoenix is a city like any regular American cities, traffic, stop signs, zero parking spots and weed aroma on the streets so nothing much to do there except Legoland discovery for the kids. O yeah, I did rent a car for the first time in my life. So our first day was spent in Phoenix, we looked around the city and visited some neighbouring suburbs like Tempe that was cute.

The next day we had plans for Antelope canyon that was one of my dream destinations since childhood. The inspiration was, this wallpaper from Microsoft Windows XP:

We packed early in the morning, got in the car and left for Antelope Canyon. We did book a tour because Antelope is not accessible to general public so you need a tour guide to go there. It cost us around $100/person and kids below 2 years are free. So we left for Antelope, it’s like 4 hrs from Phoenix. Our objective was to arrive a couple of hours earlier than the tour start.

After four ours of driving, we arrived at our tour company stand near Antelope. We registered our names, paid some park fee that I think was around $20 and the started waiting. After like 30 minutes, the van arrived to took us to Antelope.

Antelope canyon is literally mesmerising. It’s a jewel in the middle of the desert. It’s so well preserved, when I entered the antelope canyon and touched the walls, that was an amazing feeling. I know these lines are a bit cheesy but it’s totally worth it. The tour takes around two hours and the guides give you ample time to click the photos. They helped us click the photos because it’s a bit tricky to click photos in the dark. I would say the ideal time to visit this place is from 11AM to 2PM because when sun light enters the canyon it makes your heart melt.

This place is a bit crowded on the weekends so make sure you listen to tour guides and cooperate with them and when they ask you to move, you move.

Because facebook doesn’t care about photo resolutions so posted some better resolution photos here:

Halal Expat in Bangkok, Thailand (where to get what?)

I got a job at Agoda a couple of months ago and the first two months were really exciting. I transferred to Bangkok with my wife and son. I literally brought nothing from my home and I regretted it as few things are difficult to find here. Agoda provides a very decent relocation package with one month residence plus airport transfers and one way flight but still it sometimes gets a bit difficult to find muslim (halal) food and grocery (especially in Bangkok central areas). OK, straight to the point, where to get what?

Daily Food Grocery

Go to http://www.bigfoodbazar.com (I have no connections with this business). This is a small business operated by an Indian guy and he is very efficient, the only challenge here is that you have to order a min of 700 Baht. The guy usually delivers Grocery within 1 to 2 days.


Well, we learned the hard-way. you can buy Halal meat(Chicken, Beef, Mutton) from BigC, Tesco Lotus or Gourmet (Phrompong or Siam) but that is expensive (very expensive). For example Mutton is around 960 Baht/KG. So what we did? We found a Muslim restaurant that serves Halal BBQ. We went there, asked the guys and they said there are a few meat shops nearby Bangkok Mosque(see below the map).

How to go there? Take BTS to Siam Paragon and then use Uber (at least this is what I do).

This is a small market with many Indian/Pakistani grocery and meat shops. All shops have halal meat. Following are the rates here in today’s date:

  • Mutton: 340Baht/KG
  • Paya: 160/8pcs
  • Chicken: 100 Baht/KG
  • Wheat Flour: 70/KG

Pottery(Tawa, Chimta etc.)

So to cook chappatis/rotis, you need special pottery. That’s a bit expensive here, or may be I didn’t research much. Just go to Siam Paragon (Electronics and Kitchen section). You can find most of the pottery you need there.

Important: Please note that these might not be the optimal rates I found in Bangkok for grocery and other items, if you know a better options, please feel free to comment.

To Be Continued!

Centos, Varnish, NGINX, Drupal

As an experiment this week I decided to change the web server of a site to NGINX, the existing web server was Apache. I would like to share the steps required to setup NGINX with Varnish to make your Drupal site run at a blazing speed.
Centos 6
Quadcore processor.
Install NGINX
yum install nginx
Configure NGINX
Open /etc/nginx/nginx.conf
Add the following lines at the bottom of “http” block:

It will look something like:

Add host yoursitename.com
Create two directories sites-available and sites-enabled

Create a file named “yoursitename.com.conf” under sites-available and paste the following contents:

Please note that the port number is “81” as varnish will run at port 80 and will behave like content server.

Create a symlink and remove the default configuration:

Please note that default.conf’s location can be different based on different platforms.

Change owner of the web directory

Install Varnish

Configure Varnish

Open /etc/sysconfig/varnish, replace the following values:

Keep all other values as it is.

Open /etc/varnish/default.vcl and update “backend default” block to the following:

Install PHP FPM

I am also using php fpm for faster php processing. Here is the command for that, simple simple

Restart servers:

Configure Varnish with Drupal

Install Drupal’s varnish module
Add the following lines to your settings.php:

Go to varnish configuration: admin /config /development /varnish

Set Varnish control terminal:
Set Varnish Control key from/etc/varnish/secret
Please make sure the “Varnish running” is ticked.
Awesome, you are done. Enjoy the faster response times of your site.
Please comment if you have any feedback

Drupal – Run AJAX command after success of another JS command.

With ajax_command_invoke, I was getting error: Uncaught TypeError: Cannot read property ‘apply’ of undefined — ajax.js


After banging my head for like 4 hours with ajax_command_invoke, I am finally able to do it. Here is an example code.

Here is the full code.

Customizing a vagrant box

Recently, I got to know an excellent ready virtual machines solution known as Vagrant. The solution I was looking for was that I can create a custom virtual machine and install my development environment on that e.g. LAMP or MEAN so that new developers can easily download that machine and can start work on that straight away.

If we follow default vagrant instructions, we will end up having and Ubuntu virtual machine. My target was to have a Centos 7 machine with Apache, PHP and MySQL.

So I installed a basic Centos 7 virtual machine, the instructions are available on http://docs.vagrantup.com/v2/getting-started/boxes.html. Instead of “hashicorp/precise32”, I choose serveit/centos-7. After adding the box, I installed the required tools, now my machine is ready so it’s time to export my VM as a vagrant box, it is so simple:

We can package a box using command:

That’s it, the above command will will create a VM for virtual box. Now you can delete the existing box using:

Delete the Vagrantfile and can use this new box with the following command:

You can add your distribution to vagrant repo if you want.