windows-7

Tomcat 7 as windows service not accessible from other systems

筅森魡賤 提交于 2019-12-09 16:33:55
问题 I have downloaded Tomcat 7 zip for 32 bit windows 7 machine. I have unzipped the package and created the windows service using ..\bin\service.bat. But when i start the service from windows services.msc, i could NOT access by web application from other systems. It can be accessed from localhost. But when i start the tomcat from command line using ..\bin\startup.bat i CAN access my web application from other systems. I have added address="0.0.0.0" in ..\conf\server.xml of tomcat. But still the

Using the TaskBarItemInfo in WPF for the progress bar in Win 7 taskbar

荒凉一梦 提交于 2019-12-09 16:28:20
问题 Does anybody have a WPF example of updating the ProgressState through the available enum states when progressing through ProgressValue? I have the following code which binds my progress value to run from 0 to 1: <Window.TaskbarItemInfo> <TaskbarItemInfo Description="An app with a taskbar info description" ProgressValue="{Binding Count}" ProgressState="Normal"/> </Window.TaskbarItemInfo> But, what is a good way to go from None to Normal to None or other flows: None-Normal-Paused-Normal-None .

Setting up Windows 7 for LAMP development

╄→尐↘猪︶ㄣ 提交于 2019-12-09 16:09:32
问题 I'm a .Net guy who has just been handed a LAMP-based project (where P=PHP), without a 'no' option. I am going to have to build this on a Windows 7(64) machine, but it is targeted for a pure LAMP platform. I am not too worried about PHP or mySQL, I have enough to get by but Linux and Apache may as well be NASA's Curiosity platform. In the production environment I am going to rely mostly on the Host to configure L and A with the hope that I can pretty much synch up my M and P files, figure out

How to create a partition without Windows assigning a drive letter?

痞子三分冷 提交于 2019-12-09 16:08:31
问题 I am trying to initialize and partition an attached virtual hard disk through the Windows API. I have been successful using DeviceIoControl() to do so, however whenever I apply the desired drive layout Windows is automatically assigning a drive letter to the partition and popping up an annoying "Would you like to format?" dialog. My intent is to handle the formatting and mounting of this partition later in the program, but I'm not sure how to stop this behavior. I have tried setting

Installing numpy, matplotlib on windows 7 64 bit

本小妞迷上赌 提交于 2019-12-09 12:19:16
问题 The version of Python I have working on my computer is Python2.7 (32 bit) even though I have Windows 7 64-bit (Python works fine, no problem there) --> I downloaded - numpy 1.8.0 from https://pypi.python.org/pypi/numpy but I don't know how to proceed with installation. --> I tried downloading from here - http://www.lfd.uci.edu/~gohlke/pythonlibs/ (tried with both 32-bit and amd64-bit versions) . However, I kept getting the following error - Python27 not found in the registry. --> After moving

C# Error creating directory in SpecialFolder.LocalApplicationData on Windows 7 as a non Admin

為{幸葍}努か 提交于 2019-12-09 11:17:39
问题 I'm getting the error "Access to the path 'LocalApplicationData\MyProgram\' is denied." when trying to create a directory for my log file. This is when I'm running the program as a non-admin user. Directory.CreateDirectory(System.Environment.SpecialFolder.LocalApplicationData + "\\MyProgram\\"); Why would this be? Thanks 回答1: LocalApplicationData is just an enum value. You will have to use it in combination with GetFolderPath: string folder = Path.Combine(Environment.GetFolderPath(

Stop CMD from always opening with administrator privileges

匆匆过客 提交于 2019-12-09 11:08:01
问题 No matter how I open it, cmd.exe always opens with admin privileges. How can I open it without? Is there some registry setting missing? Even if I open it directly from the run dialog or by double clicking in the system32 folder it still opens with admin privs. Thanks. 回答1: Found out I was missing a registry key. In HKEY_CLASSES_ROOT\Directory\shell\cmd I was missing the String Value "Extended". Added this back in and restarted the machine got rid of the defaulting to admin privileges. EDIT :

Get Cached Credentials in PowerShell from Windows 7 Credential Manager

北慕城南 提交于 2019-12-09 11:02:26
问题 Can I do this with some API I am overlooking or do I have to figure out porting the C# .NET API calls mentioned here into PowerShell to make this happen in a script? 回答1: You can use Add-Type cmdlet to easily port it I believe: $sig = @" [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct NativeCredential { public UInt32 Flags; public CRED_TYPE Type; public IntPtr TargetName; public IntPtr Comment; public System.Runtime.InteropServices.ComTypes.FILETIME LastWritten;

What is difference between BaseAddress and AllocationBase in MEMORY_BASIC_INFORMATION struct?

本秂侑毒 提交于 2019-12-09 10:14:03
问题 In MSDN i find following` BaseAddress - A pointer to the base address of the region of pages. AllocationBase - A pointer to the base address of a range of pages allocated by the VirtualAlloc function. The page pointed to by the BaseAddress member is contained within this allocation range. But i don't understand what is difference really. Can anyone tell me difference? (not like in MSDN :) ) 回答1: Virtual memory allocations on Windows are made with a granularity of 64 kilobytes, the value of

Keeping the terminal in focus

故事扮演 提交于 2019-12-09 09:49:44
问题 I have a python script which uses selenium to automate web page, drawing focus away from the terminal where user input is required. Is there anyway in python to switch focus back to the terminal, programmatically? I will be running my program in the Windows Command Prompt on Windows 7, if it matters, but a cross platform answer would be most useful. Attempts Looking at the pywin32 package bindings for the win32 API I have the following: import win32console import win32gui from selenium import