C: shellsort function

The following function is a Shell sort for sorting an array of integers. The basic idea of this sorting algorithm, which was invented in 1959 by D. L. Shell. The shellsort function is from K&R C, added test driver to verify. test result: $ shellsort The original number array: 4 …

VS 2012 command line env

The command line env setting is in C:\"Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin"\vcvars32.bat. After run this bat file, you will see difference: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft SDKs\F#\3.0\Framework\v4.0\;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VSTSDB\Deploy;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN;C:\Program Files (x86)\Microsoft Visual Studio …

Pydev for Eclipse

Pydev is Eclipse plugin to integrate Python to IDE, can download from here: http://pydev.org/download.html Somehow I cannot see Pydev in eclipse language list, found issue is on mismatched Java SDK, I installed JDK 1.7 64 bits but Eclipse 4.3 used 32bits, however everything in Eclipse is in Java including plugin. …

Python for VS 2012 Installation Issue

Installed IronPython for VS 2012 by PTVS, seems ok but in fact not working: 1) cannot find python in New Project other language list 2) VS 2012 crash when click Python Tool-> Fresh DB ‘devenv.exe’ (Managed (v4.0.30319)): Loaded ‘C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Interop.10.0\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Interop.10.0.dll’ ‘devenv.exe’ (Managed (v4.0.30319)): Loaded ‘C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Language.Intellisense\v4.0_11.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Language.Intellisense.dll’ An unhandled exception of type ‘System.InvalidOperationException’ …

portable ipython in Console2

http://portablepython.com/ is best portable python so far, here is discussion how to run them from Console2. 1) install portable python package Portable Python 2.7.5.1 This package contains following applications/libraries: PyScripter v2.5.3 NymPy 1.7.1 SciPy 0.12.0 Matplotlib 1.2.1 PyWin32 218 Django 1.5.1 PIL 1.1.7 Py2Exe 0.6.9 wxPython 2.9.4.0 NetworkX 1.7 Lxml …