how to get python25_d.lib and python25_d.dll (via void function(args*))

works for me

Recently, because the need of my job, we need the python25_d.lib. But unfortunately, there is no such lib existing in the python25's libs. So we have to create our own python25_d.lib by compiling the source code of python25. Here is the steps: 1. Download the python-2.5.tgz from python's official website: 2. Uncompressed the archive and you can see there is a folder called "Python-2.5" 3. Open the pcbu … Read More

via void function(args*)


Killing a task from dos or batch file

Use taskkill, such as here below:

dos:> taskkill /f /im "notepad.exe"

Running a process in background from Batch file or DOS

In Unix/Linux, it is simply ending the command with an ampersand “&”, but in DOS, there is no such thing. One way to do it is to use “start” command and then minimize the window. This is an example how to do it:

dos:> start "window1" /min myprogram.exe
dos:> start "window2" /min myprogram.exe

Client-server communication with OpenModelica using CORBA

I tried to communicate with OpenModelica using OmniORB implementation of CORBA. First I need to download several packages:

  1. OpenModelica 1.5.0 from NOTE: Install to directory without space, avoid install at “Program Files” since it contains space, the reason is that MinGW has trouble recognizing path with space.
  2. Python 2.5
  3. python2.5-omniORBpy_3.3-win32 from
  4. omniORB-4.1.3, choose “vs7” version.

We need to edit some of the environment variables:

  1. set PYTHONPATH=%PYTHONPATH%; <your omniORBpy root>\lib\python; <your omniORBpy root>\lib\x86_win32; < your python_2.5-omniORBPy_3.3-win32 >\
  2. set PATH=%PATH%; < your python 2.5 directory >; < your omniORB-4.1.3 directory >\bin\x86_win32 ;<your omniORBpy root>\bin\x86_win32;

Once this is set, we can run the python script inside python_2.5-omniORBPy_3.3-win32 directoroy by typing:

short article on DFT (Discrete Fourier Transform)

qualitative explanation on DFT:

nm-applet not shown in panel Ubuntu 10.04

sometimes the nm-applet is not shown up, and hence I couldn’t connect to the wireless. I checked using ps aux command and it is shown that it is running. I found the solution from a forum by restarting the network manager:

sudo restart network-manager

OpenModelica simulate() options

Modelica is a nice language, unfortunately, the documentation is still lacking a lot of details. For example, there is not much description on the options in the simulate() command.  We can find the following options:

  • numberOfIntervals
  • outputInterval
  • method
  • tolerance
  • fixedStepSize.

I found one reply to this from the forum describing the options:

  • outputInterval and fixedStepSize do not exist in OpenModelica
  • numberOfIntervals changes the step size (why it’s not called stepSize, I do not know). anyway, step size ~ (stopTime-startTime)/numberOfIntervals
  • tolerance is used in dassl (it knows how large an error there is from integrating a derivative); I’m unsure if it’s used when solving non-linear systems or the like
  • method = “euler” “rungekutta” “dassl” “dassl2” “inline-euler” or “inline-rungekutta” (default dassl). Newer omc versions give an error if it finds that you select an unsupported solver.