windows-7

Connect to PostgreSql database in Linux VirtualBox from Win7

依然范特西╮ 提交于 2019-12-21 11:09:07
问题 As said in headline, from Win7 host I'm trying to access Postgres 9.3 established in Linux Centos 5.8 which is in VirtualBox on the same machine. I'm trying to access it from PGAdmin and everything is OK when I start the Postgre from Win7 services, so PGAdmin is well configured. What have I tried? I've read many articles about this subject, and even some questions on this forum but nothing worked. I have: switched to NAT and forwarded port 5432 in VirtualBox GUI set listenadresses = '*' in

First line of batch file fails - is not recognized as an internal or external command, operable program or batch file

荒凉一梦 提交于 2019-12-21 11:02:15
问题 on Windows 7 in VS2012, I have setup an External Tool to call a bat file (let’s call it BatA.bat). In the external tool, I am passing in $(ItemDir) as the one and only Argument and I have the Initial Directory to $(ItemDir) as well. Within BatA.bat, a call is made to run BatB.bat like this: call "%1BatB.bat" This command calling BatB.bat results in the following in the output window: 'rem' is not recognized as an internal or external command, operable program or batch file. hello BatB.bat

How to create a very large file cheaply using Python in Windows 7? [duplicate]

爷,独闯天下 提交于 2019-12-21 09:33:12
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Quickly create large file on a windows system? For testing purposes, I would like to be able to create and delete very large files (several GB's). I have no need to write anything specific to them. They could be random data. Is there a way to generate a large file by simply allocating the space on disk? If not, what is the quickest way to write such a file? To create the file in a matter of a few seconds is

Using CMake with Windows 7, Visual Studio 2010, and the command line

╄→гoц情女王★ 提交于 2019-12-21 09:13:33
问题 How do I use CMake with Visual Studio 2010 on the command line? With Visual C++ Express Edition (2010) I would type: cmake . nmake nmake install simple. I noticed with Visual Studio 2010, CMake generates a solution file instead of a Makefile. So I type: cmake . msbuild mysolutionfile.sln But then what? I used to be able to type "nmake install" and it would install the project. What do I type now to install the project? 回答1: Two points: 1- CMake: You can choose your generator. Visual Studio

How do I install PyOpenSSL on Windows 7 64-bit?

不羁岁月 提交于 2019-12-21 07:13:28
问题 To get Scrapy working on HTTPS, I need PyOpenSSL, but I can't seem to get this to work. So, is there a 64-bit version available? I don't see one... I have installed the 32-bit version but... I currently get this error back from Scrapy: ERROR: Error downloading <https://SOME_PRIVATE_URL_HERE>: [Failure instance: Traceback: <class 'scrapy.exceptions.NotSupported'>: HTTPS not supported: install pyopenssl library Does anyone have a clue how to obtain or compile a 64-bit version? Or is that

Open default browser as standard user (C++)

纵然是瞬间 提交于 2019-12-21 05:42:10
问题 I'm currently using ShellExecute "open" to open a URL in the user's browser, but running into a bit of trouble in Win7 and Vista because the program runs elevated as a service. When ShellExecute opens the browser, it seems to read the "Local Admin" profile instead of the user's. So for example, if the user at the keyboard has Firefox as his default browser, it may open IE (which is the admin's default). I know that the "runas" verb can be used to elevate, but how do you do it the other way

Problems installing Python Fabric on Windows 7

橙三吉。 提交于 2019-12-21 05:21:35
问题 I'm trying to install Python Fabric on Windows 7 using the guide from Getting Python and Fabric Installed on Windows. What i did so far: Installed Python 2.7 to C:\Python27 Added the Python-Directory and Python/Scripts to the Windows System Paths Installed SetupTools Installed MinGW Added MinGW-Directory to the System Path Modified the distutils.cfg to match the MinGW-Path This seemed to work fine until now. When I try to install Fabric via easy_install Fabric it starts to download the files,

How to detect and disable Windows 7 virtual wifi adapter

孤街醉人 提交于 2019-12-21 05:17:33
问题 Windows 7 has a (neat?) new feature called a 'virtual wireless adapter'. Read about it here: http://www.istartedsomething.com/20090516/windows-7-native-virtual-wifi-technology-microsoft-research/ I have an application that directly controls the windows wifi interface card using the Native Wifi API ( http://msdn.microsoft.com/en-us/library/ms706556%28VS.85%29.aspx ). Please take as a given for this question that I need to directly control the wifi adapter using this documented api and can't

Visual Studio 2008/2010 & SQL Server 2008 on Windows 7 Home Premium

老子叫甜甜 提交于 2019-12-21 05:12:13
问题 Are there any limitations with respect to developing ASP.NET and WPF apps using VS 2008/2010 and SQL Server 2008 on Windows 7 Home Premium? I know you can run IIS 7.5 on Home Premium. I Googled and Binged on Home Premium and VS/SQL Server and couldn't find much. It doesn't look like the features missing from Home Premium, domain joining, xp mode, etc... shouldn't prevent one from running and developing in VS/SQL Server. Update I did discover one limitation w/IIS 7.5 and it applies to all

Programmatically limit CPU usage by any application on Windows 7?

半城伤御伤魂 提交于 2019-12-21 04:30:59
问题 I'm looking for a way to limit the CPU usage by any application on Windows 7 to 50%. I've tried searching the Internet for a way to do this, and it looks like this is an easy thing to do on Linux and Mac OS X (one command in the terminal) but I'm not sure how to do it on Windows 7. Any help would be much appreciated. Thanks! Rohan 回答1: You can use BES. It throttles CPU-hungry applications when asked. You can limit 3 programs maximum. I use this to run multiple online game clients and it works