Modeling, simulation, and engineering

Archive for the ‘Linux’ Category

Building and linking to a shared Fortran library

Monday, October 26th, 2009 Posted in Fortran, Linux, Scientific computing | No Comments »

I'm using GNU Fortran (gfortran) to build several shared libraries, and then dynamically linking to them from a Fortran program.  The process is a little different than what I'm used to for C libraries, so I thought I'd explain it.  ...

X.org configuration for a Gentoo guest on VMWare Fusion

Wednesday, October 21st, 2009 Posted in Linux, Mac | No Comments »

Here is an xorg.conf for a Gentoo guest running in VMWare Fusion on MacOS 10.6 (Snow Leopard).  It's surprisingly simple to set up X when the hardware is fake ;)  Gentoo runs great on a Macbook Pro 13".  I was ...

Kernel configuration for a Gentoo guest in VMWare Fusion

Friday, October 9th, 2009 Posted in Linux, Mac | No Comments »

I recently installed Gentoo Linux (amd64) as a guest on my Mac (OS 10.6 Snow Leopard) using VMWare Fusion.  I thought I'd post the kernel config that I am using, since I didn't find any out there that I trusted. ...

Profiling memory usage of Python code

Friday, April 17th, 2009 Posted in Linux, Python, Scientific computing, Software development | 2 Comments »

In a previous post, I explained how to use the Python profiler.  The profile is great for finding out which parts of the code run the slowest, or are called most often.  However, the profiler doesn't give any information about ...

How to make two mice work with xwindows (x.org)

Friday, April 10th, 2009 Posted in Linux | No Comments »

It's a real pain to surf the Web when the batteries die in your wireless mouse or trackball.  I use some old rechargeables that are no longer fit for digital camera service, so this happens to me fairly often.   My ...

The Python configparser: a way to read simple data files

Tuesday, February 3rd, 2009 Posted in Linux, Software development | 1 Comment »

My simulation library, which is written mostly in Python, needs a lot of data and parameters in order to run. In some cases, I just hard-code the values in the script that calls the library, and in other ...

Deploying Python applications on Windows

Thursday, January 15th, 2009 Posted in Linux, Python, Software development | No Comments »

Writing applications in Python on a Linux system is almost too easy.  Deploying Python apps on other Linux systems is not hard, because most Linux systems already have Python, with its core libraries and tools, installed.  Most Linux systems also ...

Scipy.integrate ODEPACK import error solved!

Wednesday, January 14th, 2009 Posted in Linux, Python, Scientific computing | No Comments »

I recently found a solution to a problem that had been vexing me for about a year. In order to successfully import anything from scipy.integrate, I had edit the file scipy/integrate/__init__.py and comment out the line from odepack import * If ...

Tools for Python software development

Tuesday, January 6th, 2009 Posted in Linux, Python, Software development | No Comments »

I have found a few tools over the years that I find extremely useful for developing software. Python is my language of choice at the moment, but I'm sure these tools will be handy for any language. Subversion is an ...

Update 2: building 64-bit Numpy with Intel compilers and MKL

Tuesday, December 9th, 2008 Posted in Linux, Python, Scientific computing | No Comments »

In a previous post I described how I built Numpy with Intel compilers and the Math Kernel Library on a 64-bit cluster. Today I upgraded to Numpy-1.2.1 and I made a few improvements to my install process. Please ...

Using Python to generate XML files for visualization in Paraview

Thursday, November 13th, 2008 Posted in Linux, Python, Software development | No Comments »

VTK is an open-source software system for "3D computer graphics, image processing, and visualization" developed by by Kitware. VTK is the foundation of Paraview, an industrial-strength CFD visualization tool that I have found to be very useful. I ...

Updated: building 64-bit Numpy with Intel compilers (icc)

Friday, October 17th, 2008 Posted in Linux, Python | 1 Comment »

I had to re-build Numpy because our cluster was upgraded and the Intel compilers and libraries were moved to a different directory.  This turned out to be a half-day affair of trial-and-error.  I learned a few important things, which I ...

Installing numpy with the Intel Math Kernel Library (mkl)

Friday, September 19th, 2008 Posted in Linux, Scientific computing | 1 Comment »

Today I installed numpy on a cluster. Normally, as a Gentoo admin, I just install things with emerge, and all the details are taken care of automagically. However, this cluster runs Red Hat Enterprise, and I don't have ...

Server move completed and general update

Sunday, June 22nd, 2008 Posted in Linux, Software development, Stage Lighting | No Comments »

The site is back online after a server move.  Actually I can't blame the server move for the downtime, because I went out of town and then had a lot of catching up to do, and as a result I ...

Connecting to a Windows file server from a Linux box

Wednesday, January 23rd, 2008 Posted in Linux | No Comments »

I was surprised how hard it was to find out how to mount a Windows file server as a drive on a Linux box. Fortunately, once I found out how, it was really pretty easy. First of all, ...

Found a bunch of templates

Tuesday, January 22nd, 2008 Posted in Linux | No Comments »

I use XFCE as my window manager, with Thunar as my file manager.  Thunar has always had this "Create Document -> from template" entry in the File menu, but it didn't come with any templates.  I finally went looking for ...