windows-xp

Script Error: Exception in thread “main” java.lang.NoClassDefFoundError: org/codehaus/classwor lds/Launcher

假装没事ソ 提交于 2019-12-11 06:04:19
问题 I'm running OpenStreetMap's Osmosis in Windows XP to cut a subset of data from a larger set. In various incarnations, the program either hangs or gives me the following error: C:\Documents and Settings\mmorisy\tools>osmosis.bat --read-xml enableDateParsing =no file="us_zipcodes.osm" --log-progress interval="10" --bounding-box top=43.22 868195 left=-73.5981635 bottom=41.2283584 right=-69.814204 --write-xml file="mas s_zipcodes.osm" Exception in thread "main" java.lang.NoClassDefFoundError: org

GetSaveFileName() not returning path of CD burning staging area on XP

北城余情 提交于 2019-12-11 06:01:48
问题 I have a feature where I save a file to a location that user specifies. I'm using GetSaveFileName() to show the Save As dialog. I then use the path that it returns to write out the file to that location. I've noticed that it does not work when the user chooses the CD-RW drive on an XP machine. This same process works correctly on Vista and Windows 7. I've made the following observations: The path returned by GetSaveFileName() returns the path of the temporary staging area when choosing the CD

Fetching user name (windows) from a java application

断了今生、忘了曾经 提交于 2019-12-11 05:32:21
问题 Problem: I am logging into a virtual machine(RDC) using the below credentials: The user is part of a domain group called as teldept user:147852 pass:helloworld when i try to get the user details from java application it gives me : 147852 but when i click on start menu at the top i can see my Name displayed. How is this done? i want to access this name from java application I use the below snippet: System.getProperty("user.name"); Whatever the above snippet gives me is correct as aper oracle

Running File from Notepad Plus Plus and Current Directory

允我心安 提交于 2019-12-11 04:35:13
问题 There are a number of examples on the web of how to run a file from the Notepad Plus Plus (NPP). But they all fail to account for the fact that the current working directory is the location of the NPP's executable, and not the location of the file. Usually they go something like this: cmd /K "$(FULL_CURRENT_PATH)" Consider the following Python script: with open('somefile.txt', 'a') as file: file.write('Hello there.\n') This file will be created in the NPP folder, which is not at all what most

Login to Windows xp programmatically

為{幸葍}努か 提交于 2019-12-11 03:03:27
问题 Anyone heard that it's possible to login to Windows xp programmatically, I want to modify the way the Domain Controller authenticates the user and if the user authenticated in my special way it returns the user name and password to the service working on the client machine so it should login the user using its passed credentials from the DC without waiting for user to insert his original credentials. 回答1: Have a look at this: Gina.dll MSDN Gina is the system that fingerprint readers etc. use

How to change master volume programmatically?

青春壹個敷衍的年華 提交于 2019-12-11 02:39:24
问题 In C/C++ on windows xp how to get master volume or how to change master volume...? Thanks in advance... 回答1: The starting point for API documentation in the MSDN library would be here. Helpful code can be found by searching for MIXERCONTROL_CONTROLTYPE_VOLUME , yielding code like this (taken from here) static const unsigned MAXIMUM_VOLUME_LEVEL_DEFINED_BY_USER = 100; Win32VolumeControl::Win32VolumeControl(const AudioDevice & audioDevice) { std::string deviceName = audioDevice.getData()[0]; /

Batch rename pc by prepending the current pc name

为君一笑 提交于 2019-12-11 02:24:06
问题 Background: I am migrating several thousand computers from xp to 7 as a sub-contractor. The computers are on a domain. We have admin rights to add, modify and delete computers from the domain. When we first approach a xp machine, we have to add "delete" in front of the name and rename it (example: old name "pc12345" new name "deletepc12345"). I am working on a batch file that will help with this process, but I am running into some trouble. Script: @echo off SET /P PCNAME=delete%computername%

.NET - Is there a way to change the GC behavior for the entire machine?

…衆ロ難τιáo~ 提交于 2019-12-11 02:21:34
问题 A co-worker said this is possible (but it looks a bit strange to me). If there's a way to do it, where can I do this? I'm talking about winXP OS. 回答1: Yes, the GC has two modes of operation: Server and Workstation. You can change modes in either your app.config (per application) or machine.config. See http://blogs.msdn.com/junfeng/archive/2004/07/13/181534.aspx for more information. <Configuration> <runtime> <gcServer enabled="false" /> <gcConcurrent enabled="true" /> </runtime> <

Getting error “getaddrinfo: No such host is known. (Socke tError)” with mechanize gem

我只是一个虾纸丫 提交于 2019-12-10 23:35:22
问题 I tried the below code: require 'mechanize' agent = Mechanize.new{|a| a.ssl_version, a.verify_mode = 'SSLv3', OpenSSL::SSL::VERIFY_NONE} page = agent.get "https://gegsltraining.aravo.com/" page=page.link_with(:dom_class => "button").click() But my bad getting the below error. D:\WIPData\Ruby\Scripts>mechanize_dowload.rb C:/Ruby193/lib/ruby/gems/1.9.1/gems/net-http-persistent-2.8/lib/net/http/persist ent/ssl_reuse.rb:29:in `initialize': getaddrinfo: No such host is known. (Socke tError) from C

Windows XP , Python 2.7 and Pygame

瘦欲@ 提交于 2019-12-10 21:32:14
问题 How can I make pygame work with Python 2.7 under Windows XP? I think I need to compile it, but I'm not sure. Thank you. 回答1: Try the pygame-1.9.2pre.win32-py2.7 installer from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame 来源: https://stackoverflow.com/questions/4587018/windows-xp-python-2-7-and-pygame