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

Internet Explorer 11 disable “display intranet sites in compatibility view” via meta tag not working

Make sure: <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> is the first <meta> tag on your page, otherwise IE may not respect it. Alternatively, the problem may be that IE is using Enterprise Mode for this website: Your question mentioned that the console shows: HTML1122: Internet Explorer is running in Enterprise Mode emulating IE8. If so you may need … Read more

Fragments onResume from back stack

For a lack of a better solution, I got this working for me: Assume I have 1 activity (MyActivity) and few fragments that replaces each other (only one is visible at a time). In MyActivity, add this listener: getSupportFragmentManager().addOnBackStackChangedListener(getListener()); (As you can see I’m using the compatibility package). getListener implementation: private OnBackStackChangedListener getListener() { OnBackStackChangedListener … Read more

Was PreferenceFragment intentionally excluded from the compatibility package?

Discovering that PreferenceActivity contains deprecated methods (although these are used in the accompanying sample code) The deprecated methods are deprecated as of Android 3.0. They are perfectly fine on all versions of Android, but the direction is to use PreferenceFragment on Android 3.0 and higher. Can anyone tell me whether this was intentional? My guess … Read more

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

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)