Checking if Python is 32-bit or 64-bit version

I keep forgetting this one, but it comes in really handy to track versions. It was especially handy 2 days ago, when the Orange installation silently overwrote my 64-bit Python with a 32-bit version. Sigh.

import platform
platform.architecture
Advertisements

Keyboard shortcuts for remote desktop

Useful keyboard shortcuts for working with a remote access server:

  • Ctrl-Alt-End – display the Task Manager (Ctrl + Shift + Esc is the local command)
  • Alt + Page Up – Switch between programs (Alt + Tab is the local command)
  • Alt + Home – Brings up the Start menu on the remote computer
  • Ctrl + Alt + (+) Plus/ (-) Minus – Minus takes a snapshot of the active window and plus takes a snapshot of the entire remote desktop window.

OMG! 64-bit versions of best scientific Python libraries!

This page is the answer to all my dreams come true. Well, some of them, anyway.

32 and 64-bit versions of scientific open-source Python libraries, for Python 2.6 and Python 2.7! Saved me from a 64-bit Orange disaster.

Unofficial Windows Binaries for Python Extension Packages

Working with Python behind a proxy server

If you’re working behind a proxy server, you may run into some unexpected issues when configuring a work environment with Python and Eclipse. Here are some quick fixes:

Configuring the proxy server in Eclipse:

  1. Window -> Preferences -> General -> Network Settings.
  2. Set the Active Provider drop-down box to Manual.
  3. Edit the HTTP entry in the Proxy Settings list.
  4. Fill in the proxy server and port number (user name and password if necessary).
  5. And here’s MKYong’s long version, with screenshots!

 

Configuring the proxy server for other tasks, like easy_install:

Set an environmental variable:

set http_proxy=http://user:some%20long%20password@webproxy.mycompany.com:80

(The %20‘s are only needed if you happen to have spaces in your password.)