Can I install Python 3.x and 2.x on the same Windows computer?

The official solution for coexistence seems to be the Python Launcher for Windows, PEP 397 which was included in Python 3.3.0. Installing the release dumps py.exe and pyw.exe launchers into %SYSTEMROOT% (C:\Windows) which is then associated with py and pyw scripts, respectively. In order to use the new launcher (without manually setting up your own … Read more

I want to get Year, Month, Day, etc from Java Date to compare with Gregorian Calendar date in Java. Is this possible?

Use something like: Date date; // your date // Choose time zone in which you want to interpret your Date Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(“Europe/Paris”)); cal.setTime(date); int year = cal.get(Calendar.YEAR); int month = cal.get(Calendar.MONTH); int day = cal.get(Calendar.DAY_OF_MONTH); // etc. Beware, months start at 0, not 1. Edit: Since Java 8 it’s better to use java.time.LocalDate … Read more

IE11 Document mode defaults to IE7. How to reset?

By default, IE displays webpages in the Intranet zone in compatibility view. To change this: Press Alt to display the IE menu. Choose Tools | Compatibility View settings Remove the checkmark next to Display intranet sites in Compatibility View. Choose Close. At this point, IE should rely on the webpage itself (or any relevant group … Read more

How to install both Python 2.x and Python 3.x in Windows

I found that the formal way to do this is as follows: Just install two (or more, using their installers) versions of Python on Windows 7 (for me work with 3.3 and 2.7). Follow the instuctions below, changing the parameters for your needs. Create the following environment variable (to default on double click): Name: PY_PYTHON … Read more