windows-xp

git.cmd vs git.exe - what is the difference and which one should be used?

拜拜、爱过 提交于 2019-12-03 01:25:29
I have a rough idea that git.cmd is only a wrapper (but added to PATH by default), but I found out that git.exe works as well and I intend to use it as a workaround to this issue (comments to it rather, regarding chcp on XP64). Would that be not recommended for any reason at all? Also, is git.cmd really needed in the first place? Note: The chcp issue I am referring to is not caused by missing PATH entries as in 'chcp' is not recognized as an internal or external command, operable program or batch file. on a Windows PC git.cmd no longer exists in current versions of msysgit (e.g. 1.8.0). git

Handling large dense matrices in python

五迷三道 提交于 2019-12-03 00:45:53
Basically, what is the best way to go about storing and using dense matrices in python? I have a project that generates similarity metrics between every item in an array. Each item is a custom class, and stores a pointer to the other class and a number representing it's "closeness" to that class. Right now, it works brilliantly up to about ~8000 items, after which it fails with a out-of-memory error. Basically, if you assume that each comparison uses ~30 (seems accurate based on testing) bytes to store the similarity, that means the total required memory is: numItems^2 * itemSize = Memory So

using py2exe with wxPython and Matplotlib

只愿长相守 提交于 2019-12-03 00:12:58
I'm trying to generate an .exe file from a python script that uses wxPython and Matplotlib and it looks like to be impossible. The imports I'm doing (related with Matplotlib) are the following: from numpy import * import matplotlib matplotlib.interactive(True) matplotlib.use("WXAgg") from matplotlib.figure import Figure from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigCanvas from matplotlib.ticker import MultipleLocator Here is the setup.py file I'm trying to use: from distutils.core import setup import py2exe import matplotlib opts = { 'py2exe': {"bundle_files" : 3,

Enable/disable network connection from command line

邮差的信 提交于 2019-12-02 23:50:15
I know that there exists ton of results in Google for this: results , but I didn't make it in my Windows XP machine. I want to disable LAN connection from command line. >netsh interface set interface "Local Area Connection" DISABLED One or more essential parameters not specified The syntax supplied for this command is not valid. Check help for the correct sy ntax. >netsh interface set interface name="Local Area Connection" admin="disabled" One or more essential parameters not specified The syntax supplied for this command is not valid. Check help for the correct sy ntax. >netsh interface set

What are the main differences between programming for Windows XP and for Vista?

廉价感情. 提交于 2019-12-02 23:37:52
From a desktop application developer point of view, is there any difference between developing for Windows XP and developing for Windows Vista? User Interface Looking at the Windows Vista User Experience Guidelines you can see that they have changed many UI elements, which you should be aware of. Some major things to take note of: Larger icons New font (Which affects some custom UI constistency) New dialog box features ( task dialogs ) Altered common dialogs (like File Open, Save As, etc.) Dialog text style and tone , and look and feel New Aero Wizards Redesigned toolbars Better notification

Windows XP vs Vista: NTFS Junction points

*爱你&永不变心* 提交于 2019-12-02 21:36:43
Problem: I relied heavily on NTFS Junction points in Windows XP, even though they apparently were not an "official" feature of the operating system. Now MSFT has generously made NTFS Junction points an official part of Vista, but apparently they also intentionally broke them. Now my WinXP-created junction points on portable USB drive don't work when I plug that drive into a Vista box. Questions: Does anyone have a script that will force NTFS junctions created on XP to work correctly within BOTH Vista and XP? Is there documentation or a spec that explains what MSFT did to cause this breakage?

Bizzarre issue trying to make Rpy2 2.1.9 work with R 2.12.1, using Python 2.6 under Windows xp - Rpy can't find the R.dll?

荒凉一梦 提交于 2019-12-02 21:09:21
I've been having a real issue trying to make Rpy2 play nice with my R install. I first tried installing the rpy2 MSI package, and this didn't appear to work. When I ran the recommended tests, it was giving me an error saying that it couldn't find the R.dll, because the new R installs (post 2.11) install the DLLs into an i386 folder, where rpy2 can't find them because its looking in the bin folder instead of the bin/i386 folder. Then I tried to build the install from scratch myself using the command line tools (distutils) included with python. This didn't work, because setup.py claimed to be

HTTP client example on win32

混江龙づ霸主 提交于 2019-12-02 20:58:12
I wanted to develop one HTTP example on win32 platform, which is asynchronous. I am new to win32 programming, what are the api and library win32 platform provides for HTTP send and receive request? I am using Windows XP with VS 2005. If any example is available please provide a link to it. You can use WinHTTP library. Here is an sample on Asynchronous completion. Window HTTP Services "provides developers with an HTTP client application programming interface (API) to send requests through the HTTP protocol to other HTTP servers." HTTP Server API "enables applications to communicate over HTTP

How do I toggle between a Vertical and a Horizontal split in vimdiff?

三世轮回 提交于 2019-12-02 20:03:12
I already know how to use the diffopt variable to start diff mode with horizontal/vertical splits but not how to toggle between the two when I already have two files open for comparison. I tried the accepted answer found in this older post , but to no avail. The Ctrl+W commands didn't work for me. Perhaps because I'm running gVim in Windows-friendly mode? The following command will change a vertical split into a horizontal split: ctrl + w then J To change back to a vertical split use either: ctrl + w H or ctrl + w L For more information about moving windows: :h window-moving :h ctrl-w_J :h

Is AppData now the 'correct' place to install user-specific apps (which modify their own data)?

半腔热情 提交于 2019-12-02 18:48:35
I'm probably just being very thick here, but it's not clear to me where I'm supposed to install 'new' user-specific programs on Windows 7 ( and presumably Vista too, though I've not specifically looked at that scenario yet ). Under Windows XP (rightly or wrongly) we always installed our programs into folders under ' Program Files ' and accepted that they'd be kind-of available to everyone. From what I can gather under Windows 7 I'm supposed to install my software under the user's AppData folder (possibly AppData\Local\MyApp ). That makes a degree of sense, but the fact that this folder is