Hello Everyone , I will explain on how to create a rotating circle using the concept of multithreading , qraphicsscene aand qgraphicsview. I struggled a lot to get the syntax( noobish I know) , but this is just to ensure no-one suffers the same. We will be inheriting QtGui.QWidget , to create the basic user […]

Here are a few code snippets I had to search for . This is for my future reference and for any one who might needing it. 1 . First of all , a simple concept that I did not understand before.   2 . And I had just started this thing called QtGraphicsView . It […]

My exams finally got over . I got back home and slept for a week continuously . After that I realised I had to solve a differential equation for a project . Seniors told me the Runge-kutta method is numerically the best method to find function values at a particular point provided you are given […]

Since I was bored , I wanted to write a script to build a simple version of Hangman using PyQt4. The logic (of course) wasn’t that difficult , however finding syntax for certain parts of the program was difficult , so I thought this post should save time , for those needing the syntax as […]

Continuing with my previous post about cycle simulation , I will focus on the three , important gas cycles , Otto , Diesel and Dual Cycle. I used PyQt4 for the graphical user interface ,  and matplotlib for the simulation . This was quite easy for the following reasons: 1 . Gas cycles are those […]

If you are a mechanical engineer continue reading. If you are not then please still continue reading because you have taken efforts to click on the link. So coming to the point , a Rankine cycle is a cycle that according to wiki , generates 90% of the electric power across the world. Before , […]

When it comes to installing a python – package in linux , most of the times you just need to do this. or you could download an archive and go to the downloaded folder and do However I faced a lot of trouble while installing the python package Orange.I downloaded the nightly builds from this […]

Okay , the code that I wrote in the previous post , sucked and it sucked badly. There were many bugs while using it , i was iterating through lists multiple times , when I could have used a simple inbuilt python module. I have revised(rewritten) the code and can be found in this gist […]

Hello. I wanted a python module by which I could access thermodynamic properties of steam. On googling I came across this module called thermopy http://packages.python.org/thermopy/  .  But the range of temperatures and pressure  which I could use was very limited.  Then I came across this library , called freesteam , which I couldn’t install , […]

I had downloaded 2012 id pics but couldn’t view them due to the following error . Error interpreting JPEG image file (Not a JPEG file: starts with 0x89 0x50) On googling I found out that the image had to be renamed as a ‘.png file’ . But I couldnt do them manually as there are […]

Design a site like this with WordPress.com
Get started