Showing posts with label python. Show all posts
Showing posts with label python. Show all posts

Sunday, 2 August 2009

PyOpenGL Segmentation Fault

A while back I posted in this thread on the Ubuntu Forums about a segmentation fault people were receiving when using the PyOpenGL module for Python.

Today however I found that a solution for the problem here.

If you call glutCreateWindow before glutInitDisplayMode the problem seems to go away.

Friday, 1 May 2009

Eric Python IDE

Interesting thread here on the Ubuntu forum about different IDEs for Python. I'd never heard of Eric before so I thought I'd install it in Windows. Building & Installation was successful but I recommend looking at the list of prerequisites before trying yourself, to minimize any possible errors.

Monday, 30 March 2009

PyInstaller

If you're programming in Windows using Python you'll encounter a problem where you need to distribute your program. But if you use PyInstaller you'll find that the process is quite simple. It takes your source files & binds them up into an .exe containing any dependencies they need & it can be downloaded from here.

Saturday, 14 March 2009

Blender Tutorial Videos

If you need help using the 3D animation program Blender, look at this video tutorial site.

Sunday, 22 February 2009

Django Windows Download

If you're wondering what Django is, it's a Web framework which basically makes it easier for you to create Web applications. Installation is remarkable simple even in Windows, first of all you need to make sure that you've got Python installed. I suggest getting version 2.5.4; it may not be the newest version but it's the most compatible. Django is compressed in the .tar.gz format so you'll need something like 7-Zip installed in order to open it. You'll then need to open a Command-Prompt (as an Administrator if you're using Vista), navigate to the directory where you extracted Django to then type the following.

python setup.py install


Friday, 6 February 2009

Python File Association

If you need to check that the Python File Extensions are registered correctly in Windows, just open a console as an Administrator & type what you see in the image.

Friday, 5 December 2008

Understanding Python Files

What's the difference between a .pyo file & a .pyc file. Find out here.

Friday, 28 November 2008

More Python 2.6 Infomation

There is a thread here on the Ubuntu forum which contains more information about how to install Python 2.6.

Tuesday, 25 November 2008

Python: String Conversion

If you need to know how to convert a string into a number in Python, look at this thread on the Ubuntu Forum.


Powered by ScribeFire.

Sunday, 23 November 2008

Debugging in Python

Two useful links to help you in debugging your Python applications, here & here.

Monday, 3 November 2008

OpenGL in various languages

The same OpenGL program written using FreeGLUT in various programming languages, here.

Friday, 17 October 2008

DrPython Error

If you encounter an error when you've reinstalled DrPython, like the following...



It can be solved quite simply, just go the the Options menu in DrPython & click Preferences... .Then scroll down & change the Default Current Working Directory: from what it is currently set to. It should be set to the Directory where you installed DrPython to.



  • The above image shows the error.
  • I installed DrPython in C:\DrPython the above Directory is incorrect.
  • The image below shows the correct Path.


  • I discovered that the error had been reported here too.

Thursday, 16 October 2008

Install Python 2.6 in Windows Vista

Currently the installation procedure for Python 2.6 is a bit tedious.
  • Download Python 2.6 from here.
Now open a Command-Prompt as an Administrator by Right-Clicking it's icon & selecting the option.


  • Now locate the Directory where you downloaded the installer.
  • Type in the following...

msiexec /i python-2.6.msi
  • The following image maybe helpful...

Saturday, 11 October 2008

Py2exe Updated

Apparently a new version of Py2exe was released a few Months ago. You can find out more here.

Monday, 6 October 2008

Radians Degrees

Interesting post here on the Ubuntu forum about converting Radians to Degrees in Python.

Thursday, 11 September 2008

Pygments

Pygments is a generic syntax highlighter module for Python. It's very useful.

Here is a site which uses Pygments to add bbcode syntax highlighting to your program code.


Powered by ScribeFire.

Monday, 18 August 2008

DrPython for Ubuntu

If you want to install the Python IDE; DrPython for Ubuntu.

Just type the following in a terminal.

sudo apt-get install drpython

Tuesday, 5 August 2008

Project Euler

Is a site dedicated to solving mathematical problems, you can check it out here.

People use a lot of different programming languages to solve the problems.

Here are the solutions to the first 40 problems in Python. Here are the first five in Ruby (I think). Finally here are some more different solutions in Python.