Cartezian coordinate system in HTML 5 canvas

Normally canvas 2D context is using custom coordinate transform where Y coordinates are flipped vertically. Here is image with example (taken from; it is great book and you should read it 🙂 )

It is a bit inconvenient to use if you are drawing some shapes with points given in classic Cartezian coordinate system. Continue reading “Cartezian coordinate system in HTML 5 canvas”

Curious Case of Visual Studio project compatibility.

Recently I was asked at work for quick review of small project. It was created (or updated) in newest version of Visual Studio – 2012. I don’t have installed VS 2012.

I could install it, yes, but it would be just waste of time since browsing through code in that project took me only few hours.

So I decided to try to open that in VS 2010. Continue reading “Curious Case of Visual Studio project compatibility.”

Why I don’t like Python anymore.

It was few years back on my first year of studies, when my friend told me about Python. Then it was great for me. One-liners could read ftp folders, web pages, interact with operation system, list comprehension, injecting code into life programs, nested functions, procedural as object oriented programming styles etc. etc. All of this in builtin libraries with simple but yet quite functional editor, supported with great documentation. I wrote my first studies project in Python and I was proud with it a little 😉 During next years I was using Python for writing simple scripts to automate my professional work as PHP programmer. Python was and I still think is better language then PHP. After that I started to work as .NET/C# developer. It has different syntax but C similarities let me to learn it quite quick. Framework .NET is powerful tool also so I didn’t touch Python for 2 or 3 years at least for anything longer then few lines. Continue reading “Why I don’t like Python anymore.”

Using Matlab from C# application.

While writing an application for my Masters degree diploma, I wrote a simple application that was using COM Matlab server. I have found it hard to use it mainly due to lack of documentation, which is really basic with only few code examples for C#. I guess writing programs that use Matlab for calculating is not encouraged by MathWorks, you would became competition that way 🙂 Nonetheless, I accomplished why I was required to do, so I decided to share this with the rest of the world. Continue reading “Using Matlab from C# application.”