Fun Stuff

From MATLAB To Python

Posted on

MATLAB:

For many years MATLAB has been my primary tool for prototyping algorithms, because of its rich set of optimization functions and the AI tool box it has proven to be a valuable tool to have. However, It is not cheap and if you do not have a company to pay for license or attend a university that provides you with a license then you will have to find an alternative.

MATLAB is not a programming language rather its a tool that has as part of its framework a programming language called M language, this language has a lot of quirks and takes some getting use to, the other issue I found with MATLAB is that the functions while well documented do not seem to follow a standard in terms of parameters; on the whole while MATLAB is a good tool for prototyping and is used a lot in engineering and medical fields which are my core domain; However,I am forced to look for a cheaper/free alternative that will give me as much if not more tools than MATLAB now provides.

Python to the rescue:

Python is powerful… and fast;
plays well with others;
runs everywhere;
is friendly & easy to learn;
is Open

All these wonderful things make Python a big contender for my MATLAB replacement.

The first thing we want to do is install Python.
Next install my favurite Python IDE PyCharm
Create a new Python Project using PyCharm
Python project

How do we add packages to our project?
Python is nothing without its packages and two of my favourites are numpy and scipy. To add these packages simply download the Anaconda distribution and configure it to be your default python implementation.

pylibs

And here is my first piece of python code as taken from the python website 🙂

pyresult

All I need now is a good Python book and 2-4 months to delve into the language. Stay tuned for more posts on my Python journey. Happy coding!!

2013 in review

Posted on

The WordPress.com stats helper monkeys prepared a 2013 annual report for this blog.

Here’s an excerpt:

The concert hall at the Sydney Opera House holds 2,700 people. This blog was viewed about 37,000 times in 2013. If it were a concert at Sydney Opera House, it would take about 14 sold-out performances for that many people to see it.

Click here to see the complete report.

Jamaica Blog Awards 2012 nomination

Posted on Updated on

Me and my friend’s blog were nominated for the Jamaica Blog Awards 2012. You should vote for us at these Urls:

  1. Shawn Mclean – Thoughts, Codes, Frameworks, Articles
  2. Romaine Carter – This blog
  3. Rion Jefferson – Personal Blog

Jamaica Blog Awards

Link Posted on

Jamaica Blog Awards

Jamaica’s internet users have observed a tremendous increase in blogging. In light of this, we are organising the third staging of the blog awards to acknowledge excellence in this new phenomenon. This event will be the Jamaica Blog Awards 2012. We strongly believe that our coordinated effort to identify and encourage superior blogging in Jamaica is a bold initiative that will develop an interest in and awareness of this dynamic medium of expression across the nation.

This is our 3rd staging of the event and we anticipate the our blogging community will continue to grow.

2012 in review

Posted on

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.

Here’s an excerpt:

4,329 films were submitted to the 2012 Cannes Film Festival. This blog had 19,000 views in 2012. If each view were a film, this blog would power 4 Film Festivals

Click here to see the complete report.

How to clear the Immediate window in Microsoft Visual Studio

Posted on Updated on

If you have used Visual Studio x for any length of time you would have become familiar with the immediate window, this window allows you to quickly evaluate expressions when a break point is hit. You would have equally been frustrated with having to right click in the window to then clicking clear allHere is a neat trick that will allow you to clear the command window, just type >cls  then hit return and surprise the window will be cleared ;-).