windows-7

Import-Module with -force removes imported module function?

限于喜欢 提交于 2021-02-19 03:38:04
问题 I have "ModuleA" that imports functions from modules "ADAutoDeployUtilities" and "Common_LoggingNotifications" using the code below. However, I keep receiving the exception (listed below) when I try to import Common_LoggingNotifications using -force. If I do not load Common_LoggingNotifications, only the ADAutoDeployUtilities functions are imported (which doesn't include writeJobLog) and everything runs fine, although I get the indicated exception when running on the server. I have also

Close a newly opened tab or window in Selenium IDE

↘锁芯ラ 提交于 2021-02-19 03:28:13
问题 Using Selenium IDE with Windows7 and Firefox, an automatic click on a link may produce either a new tab or a new window. close() closes the original window or tab, not the new one. Maybe if I had the ID of the newly created one I could select it and then close it but I don't know how to do this automatically. I've asked on the Selenium forum and read the questions here, but they focus on WebDriver, not the IDE. Any help would be appreciated! Stig 回答1: I had same problem and found a solution:

Why won't cygwin read the .ssh/config file in my home directory?

半腔热情 提交于 2021-02-19 02:50:51
问题 I am using cygwin and I am trying to set up an .ssh/config file. Cygwin's folder is in my C: drive. My Home directory is C:\Users\USER. I have noticed that when I edit C:\Users\USER.ssh\config, cygwin does not even notice it (even though it notices the other files I have in my USER folder, i.e. .bashrc). But it does notice the config file if I put it in C:\cygwin64\home\USER.ssh\config. Is there a way to get cygwin to read the .ssh folder in my USER home directory instead? 回答1: Make sure your

Windows 7: Prevent application from losing focus

北战南征 提交于 2021-02-17 19:08:10
问题 I have a self-made fullscreen application for Windows 7 written in C++ which should run for a long time on its own as a public presentation. Problem is, there are several applications or drivers or Windows itself that steal focus from time to time and/or especially at system startup. Result is: My fullscreen application gets minimimized. It is very annoying and nearly impossible to always find out which things you have to deactivate to prevent that. Especially because those focus stealing

Cant loop over files with spaces in the filename, windows batch file and image magick

百般思念 提交于 2021-02-17 06:18:03
问题 I'm trying to loop over a bunch of folders, create subfolders then loop on the files, convert them with imagemagick and put them into the new subfolders and rename them. Some files have spaces in their name and cause the error... How can I fix this? error message : convert: unable to open image 'photo': No such name or directory @error/blob.c/OpenBlob/3489. convert: no decode delegate for this image format '' @ error/constitute.c/ReadImage/554.** The Folder Structure looks like this... The

Windows environment variables change when opening command line?

六月ゝ 毕业季﹏ 提交于 2021-02-17 02:00:11
问题 Sometimes when I change my environment variables in Windows, and then use software the depends on those variables, they are not properly updated. And good example is to change a variable, then open up Windows Command Line and echo the variable and see that it hasn't been changed, even though you properly changed it in the Environment Variables window. Another example I'm dealing with right now: I've been using Python 2.4.x for a while for a project, which uses the env var PYTHONPATH who's

Environment Variable for AppData\Local / Access Downloaded custom assemblies

余生颓废 提交于 2021-02-15 11:12:23
问题 I am trying to setup my TFS2010 Build and I want to access the files that are downloaded via the "Version control path to custom assemblies". From what I can tell those files are downloaded to: C:\User\<Build User>\AppData\Local\BuildAgent\<Built Agent Number> I can directly access that folder via the above path, but it would be nice if there was an environment variable (or something I can use in the build) to access that folder indirectly. Or... Is there a better way to get at these files?

Git bash black screen (windows)

一个人想着一个人 提交于 2021-02-11 12:29:29
问题 I am trying to access git bash, but nothing happens (black screen). I used git bash many times during September and October, but when I tried today it did this. What can I do to solve this? Thanks. 回答1: Have you had Cygwin installed? I was having this exact issue, then I found out I still had a "etc" and "bin" directories in my user folder on Windows. After removing these (As I didn't want Cygwin) GitBash worked for me again :) 回答2: Perhaps as a temporary solution you could navigate to C:

Rawprinterhelper network printer ASP.NET MVC

江枫思渺然 提交于 2021-02-10 15:21:20
问题 I'm having trouble trying to print a document from a ASP.NET MVC3 application using RawPrinterHelper (the printer support class developed by Microsoft). I need to send RAW data to a printer which is locally connected to a computer in the network. In my development environment (MS Visual Studio 2010) everything works well. I installed the printer in my OS as a network printer and I pass the name of that printer to RawPrinterHelper. On the real test server things don't work at all. The OS is

No module named psycopg2

安稳与你 提交于 2021-02-08 15:23:41
问题 I have Django project which uses postgresql 9. I installed psycopg2 and when I run project I receive 'Error loading psycopg2 module: dll load failed'. I met this issue for the first time. I have windows 7 x64 with python2.7. How can I solve this one? 回答1: I had the same problem, it was that psycopg2 does not install well in Windows with _easy_install_, I followed the instructions on the follow SO answer: Installing psycopg2 (postgresql) in virtualenv on windows You need to manually install