All posts by mehdihs

Open Weather Map widget

So to continue with the whole RESTful API theme. I’ve been working on creating a weather app with the next 5 days worth of forecast info.  I’m using because they have a very nice API with a lot of info, and of course more importantly its free.

The main functionality is more or less done, but I definitely need to style it properly…or maybe I won’t and just call it “minimalist”. If you want it to work on your end you need to “Allow Location” so that it can get your current lat and long based on your IP.

EDIT: So initially I resolved to use the API but after closer investigation of the JSON response that you get from the free 5 day forecast I saw a huge problem.

  1. There 5 day forecast sends the weather for the next 5 days in 3 hour increments.
  2. Although you can get the current temperature from this response the Max and Min temps of the day don’t come through. You only get the max and min temps for the 3 hour increment.
  3. Even though each day is split into 8 3-hr increments there is an issue with the increments of the current day. The increments that have gone are removed from the JSON array, so the number of index positions held by the current day changes as the day goes by, so the current day can have from 1 to 8 indexes of data.
  4. With the above problem with the inability to determine the end point of the current day in the JSON array it becomes difficult to determine the start and end of the subsequent days.
  5. It might be possible to determine proper max mins for the day and find the proper range of indexes for the days using a search and locate index function, but that seems like trying to kill a mosquito with a cannon.
  6. Having encountered these nonsensical problems, I’ve just resolved to use another different API which has the info more readily available in the response. BTW, the paid 10 day forecast from has the info in a more friendly, but I’m not gonna shell out any number of bucks for a simple portfolio piece.
  7. The has a much better set of icons as well I think, although ultimately I will replace the icons with better vector sets as I style it more.

Here’s a link to the CodePen:

Mix Cuisine Sauce Labels

One of the very first projects I did in Toronto was this label for a Sauce maker. This husband-wife team from Trinidad had gotten the opportunity to show off their product to some bigwigs in the grocery industry and they needed a new label for their creation. So the guy asked me to make something like (or exactly) like the popular Classico sauce label.

This was the result: Continue reading Mix Cuisine Sauce Labels

Work In progress.

I’m currently working on a complete re-vamp of a website of my accountant. Here is his current website:  and here is the dev site I’m working on :

The new site like the old one is build on wordpress, and will be completely responsive and will be optimized for SEO.

The new site is still in development, and I am doing this part time on my own free time without a deadline, but I intend to finish it by next week; the bulk of the content at least.

WordPress “Duplicator” Plugin – the Miracle Code

Recently I had to create an ecommerce site using WooCommerce and after I had setup the bulk of it and configured it to my liking on my local host I was looking for a way to migrate it to a live server.  I had migrated WordPress sites before but this was the first time I had to do one with a WooCommerce setup.

There were a lot of tutorials out there that seemed to give instruction on what should be a seamless and easy process but it was anything but. It seems that most of those tutorials are simply for plain WordPress sites without any fancy configurations (like WooCommerce) I was able to move the basic WP site and its theme settings and appearance but not of my products or product categories transferred over.

WooCommerce had extensions available that allow you to export and then import your store but they all cost money or didn’t work the way I wanted to.

Enter “Duplicator”. OH – MY – GOD. This was the simplest move of a wordpress site I had ever done. It took the minimum amount of steps and the whole process was as painless as could possibly be. It will package your entire site up and then give you an installer file to use with the file. Then you just upload the package and the installer.php into your server, call the installer.php, enter your new site URL and file location and DB info and you’re done. It was like a WordPress Batman. I could not recommend it enough. Please visit their site, download the plugin, use it and spread the word.

[button url=”” background=”#0e0″ size=”4″ style=”default”] WordPress Duplicator Plugin [/button]

Link: How to Write Effective Test Cases?

As QA Analysts our primary function is to find ways to break a given piece of software, but this is not something we do randomly, rather there is an efficient process to be followed. When we are given the requirements for the Software Under Test (SUT) we have to intimately study each requirement and ask ourselves, “How can we test this?” and then “Under what conditions can this test fail?”. Thus we plan out testing scenarios which wil then lead to us writing out a series of test cases which will help us validate whether the SUT does or does not meet the given requirements. Here is a good article that discusses how to write Test Cases in detail, including giving you a visual on how to structure the TC matrix.

Test Care Writing (Creation) 101

Hope you guys find it helpful.