Date Tags tips

About Git, mintty, and Console

The official Git for Windows uses mintty as the terminal by default. Mintty is a quite good console for general use on windows, it's used as a part of Cygwin, Msys or Msys2. It can be install with Cygwin or Mingw. If you directly install mintty from Cygwin or Mingw, then there's quite a few things to do in the future, especially in the case you need other languages than English, say, in the case of Chinese, you may need to refer to this article. And the main problems with mintty are in total two: the look and the interactive property. The first one can be tackled easily. The main idea of both Cygwin and Mingw is making a virtual directory structure as Linux including /bin, /etc, /doc and so on. And you can just create a file in you home directory as .bashrc or .vimrc in Linux, named .minttyrc, containing info about the font and color settings. Refer to this link for the color settings and this link for fonts. But the second one cannot be tackled perfectly as far as I know. It means that you cannot use mintty as an alternative of the Windows command line to run Python interactive interface, because it cannot respond you correctly.

The best choice to install mintty, if your original goal is just to use Git Bash, is to install the official Git for Windows. It includes a Mingw environment itself, and must with customization as much as possible against the interactive problem. So at least some basic operation of Git can be done with it. If you are not satisfied with the color/font settings, just modify it using the trick mentioned above.

But I still found some problems with mintty bounding with Git Bash in terms of interaction. My best practice is using an alternative of Windows command line named Console. After customization on color schemes, it can be quite convenient, I can use it smoothly with Python virtualenv and Git. The only con is that there's no reminder indicating which branch you are in currently. I prefer it anyway.

About virtualenv

The best references are the Hitchhiker's Guide and the official document. The former is preferred for a quick glance. And another trick is to avoid installing packages in non-virtual environment, which can be done by editing (creating) %HOME%/pip/pip.ini with following lines:

    [global]
    require-virtualenv = true

For all operating systems, refer to the Hitchhiker's Guide. By the way, the default value of variable %HOME% on Windows is C:\users\yourname\, at least in my case. All configuration files should be put there, such as .vimrc and .minttyrc.

About Kile on Windows

First install Tex live, just google and run the installer. It takes quite a long time. At the same time, download the installer of KDE for Windows. Here's a reference.

About Intel MKL, numpy and others

Intel MKL has been released for free again, you can find it on the official website. I tried to follow this guide to build manually numpy with Intel MKL, but failed for unknown reason. I was told that I'd better install Intel python. Refer to my post on Intel MKL forum. Intel python is a standalone python distribution including everything related to science computation installed. You can install it, activate it, then install virtualenv with pip, in order to create virtual environments under this distribution. To install development version of scikit-learn, just uninstall scikit-learn first, then create a virtual env, follow this note.


Comments

comments powered by Disqus