windows

JMX Port not getting opened when server is started via service.msc (is visible when started over cmdline)

Hi Guys, I need to monitor a java application remotely via visualvm. I have added the port (value 5555), ssl and authenticate properties (both false)) in the prop file. It works ok when I start the process via cmdline, I can connect via jconsole/visualvm by specifying the hostname:port. However it does not connect to the same process ...

Java Classpath Issue

I have two classes: MyApplication Library The Library has already been compiled into Library.class and the source code is no longer available. I am now trying to compile MyApplication from source. MyApplication depends on the Library. The Library has a package name of org.myCompany. I tried setting my classpath to the following: s...

Scheduling jobs on windows

Hi all, What is the best way of scheduling simple batch jobs on windows? My current need is to dump some SVN repositories each night and FTP the dumps to our external FTP side and then e-mail one or more people that the backup has completed/failed. This sounds like the sort of thing I would usually do in a unix script + cron. Is that...

Steps on howto install PySide on windows

I followed what they said at pyside.org but somehow i can't get it to work. I downloaded the two files that they are linking from their site (qt libraries and pyside for python 2.6) When I try one of their examples I get the following message: Traceback (most recent call last): File "2dpainting.py", line 28, in <module> from PySi...

my C# winform needs to detect when other applications enter/exit/run-in TRUE fullscreen, prefer by events.

my C# winform application needs put itself in standby mode during time other application runs in true fullscreen mode (not only maximized), like video games, video movies, powerpoint. I need a method to detect if currently there is other application in fullscreen. Is there a possibility to register to events which will fire when other ...

Batch file to change all network shares on computer

I need to change all shares of //foo to //bar in a batch file. Say i have R: //foo/foo and Z: //foo/bar I need to have a batch script that makes them R: //bar/foo and Z: //bar/bar Anyone have any idea how to do this? I'm thinking of looping through somehow with net use but that's as far as I've come. Will be researching myself as well ...

Background/foreground color problem on Emacs on Windows

I'm using Emacs on Windows. In my .emacs file, I changed the background and foreground colors. When I opened Emacs, the color changes occurred. But when I opened a new frame using C-x 5 2, the color changes did not occur. Why? ...

Mutliple Executables From Single C# Project in Visual Studio

I currently have a single solution with a single project and this generates executable A.EXE. The project consists of dozens of C# source files, forms, etc. I now need to generate executables B.EXE and C.EXE as well. B.EXE will use about 95% of the code base for A.EXE (i.e. a subset of functionality). C.EXE will use about 80% of the cod...

Debugging "Multiple-step OLE DB operation generated errors."

This is kinda a general question, looking for as much info as possible. I have code which generates this error (the define is DB_E_ERRORSOCCURRED), and I'm looking for the best methods to debug it (eg: figure out what the particular errors were). I'm aware that there are some other SO questions related this this error (eg: here, here, he...

draw over opengl/D3D with GDI?

I'm wondering if it's possible to draw over an opengl/direct3D surface with GDI? and if so, how might it be done? The reason I ask is because I'm writing a simple app to draw a few things in games. Such things would all be 2D or text such as framerate info, custom crosshair, clock, etc. I know the best way is to hook in and use whateve...

professional-quality charting library for c++

Hi, I'm writing an application in c++/MFC and there's a need to create good-quality charts (bar charts, line graphs, maybe even some custom graphics...). As an additional feature, I need to be able to export my graphs in MS Office Graph/Drawing binary file format (so that people can see them in Excel, bitmaps and metafiles just don't c...

Printing debug output in Windows programs

I am starting to do some work with the Windows API. However, I noticed that you can not use functions like printf if you have a windowed application. What is the standard way of printing debug and logging information? Sorry if this is an obvious question. ...

Send Events to a Windows Service from Kernel Mode

I am writing a piece of software that consists of a kernel mode driver and a user mode Windows service. The kernel driver needs to notify the service of different events and information, which the service will then process. My question is this: What is the best way to set up this communication? I know it is possible to get a message ...

How can I specifiy the drive letter (windows) for the PROVIDER_URL of the JNDI InitialContext

I am using the com.sun.jndi.fscontext.RefFSContextFactory file based JNDI context factory. It seems to take the drive of the where the java application is started in. Hashtable properties = new Hashtable(2); properties.put(Context.PROVIDER_URL,"file:///tmp/jms/mycontext"); properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.f...

I can't delete a folder that I just extracted from a zip file in python

So here's my problem. I have a python script that takes a zipfile and extracts its contents. Then based on some constraint, I will try to delete the folder whose contents were just extracted. For some reason I get an error, WindowsError: [Error 5] Access is denied: 'Foldername' when i try to delete that folder. The simple code looks like...

Handling Events in C# Assembly

I have an executable project called A.EXE which references a C# class library B.DLL. A.EXE generates events which are handled by a class in B.DLL. The events use a custom EventArgs child called ProjectEventArgs. Do I need to add a reference for A.EXE to the B.DLL project so that the ProjectEventArgs class is defined? That doesn't seem ...

Php Eclipse on windows azure

Hello, After following all the steps: Getting started with PHP on Windows Azure Tools for Eclipse Easy Setup for PHP On Azure Development When I do "Run in developement fabric" nothing happens (the packaging must be failing)..... Help please Thanks a lot! ...

Create animated gif from a set of jpeg images

I need something that can be scripted on windows 7. This image will be used in banners. ...

Adobe AIR: Windows Application Directory Access

While I realize Adobe discourages use of the application directory for reading/writing, I have been able to successfully write data there on OSX, so long as the user selected the file. However, this same application is giving me trouble in Windows 7. Even a browseForSave() doesn't seem to allow the FileStream to write to the file. Is t...

How can I run a specific function of thread asynchronously in c/c++?

Performance tuning: writing data to multiple pipes Now I'm doing it in a single thread: for(unsigned int i = 0; i < myvector.size();) { tmp_pipe = myvector[i]; fSuccess = WriteFile( tmp_pipe, &Time, sizeof(double), &dwWritten, NULL ); if(!fSuccess) { myvector.erase(myvector.begin()+i); printf("Client pip...