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 OpenWeatherMap.org 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 openweathermap.org API but after closer investigation of the JSON response that you get from the free 5 day forecast I saw a huge problem.
There 5 day forecast sends the weather for the next 5 days in 3 hour increments.
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.
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.
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.
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.
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 openweathermap.org has the info in a more friendly, but I’m not gonna shell out any number of bucks for a simple portfolio piece.
The weatherunderground.com 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.
This is a fun little project I did, just to demonstrate how to use an open API to extract and display data. Its based on the “Internet Chuck Norris Database” and I’ve just replaced his name with my own. You can also tweet the quote out to your twitter account if you like
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.
Being the IT jack-of-all-trades that I am, I also did a few screencast tutorials during my time at Harris Broadcast. Most of them were for internal use and I can’t put them online but this one is for public viewing so I guess it’s fine to put it up. and yes that is my voice.
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.
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.