I've been chasing a very mysterious bug for days now, which seems to revolve around the (ZLIB library); it occurs once every month or so, and only on some specific production environments. Here is what the code does:
The program calls gzopen to write to a file X.
The program writes data to the file, doing several gzwrite.
The program f...
Hi,
What tool / technique would you recommend for Explorer.exe profiling?
Mainly on Windows XP / x86...
To avoid confusion it is not a system kind of question.
Imagine, you have developed a BHO or another shell extension and you have to profile it.
For now, I'm using AMD CodeAnalyst, but I'm looking for somethign better suiting for p...
Win32 ReadFileEx is defined as:
BOOL WINAPI ReadFileEx(
__in HANDLE hFile,
__out_opt LPVOID lpBuffer,
__in DWORD nNumberOfBytesToRead,
__inout LPOVERLAPPED lpOverlapped,
__in_opt LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
);
I am trying to figure out how to make the completion routine (the last arg...
We have a thick-client that needs to access resources on a share where a client may not be logged on. The client might be on a Windows domain or it could be a mixed environment without a domain, so the user would have to log on to the server locally. In the past, one work around was to create a shortcut on the user's desktop to the share...
In one of our current web application we are using the getClientInfo() from a java.lang.Object reference in our Oracle Forms application which works great for egtting the client IP address of a system. However we recently started to use Windows Terminal Servers in our organization, and we are now having the problem with this code return...
I have a program in Python that gets a window handle via COM from another program (think of the Python program as an addin) I set this window to be the main Python frame's parent so that if the other program minimizes, the python frame will too. The problem is when I go to exit, and try to close or destroy the main frame, the frame.clos...
OS: Vista Business 64-BIT
Coding: .NET and 3-rd party EXE
Issue: Security
I have downloaded curl.exe to assist me in loading Product information from Amazon. Curl.exe has been pre-compiled and is NOT a .NET app, so I do not feel comfortable in making any changes to the build of curl.
On to the problem.
When I execute CURL I get thi...
Is there any function that I can call to in a 32-bit app that would convert the paths that it thinks it's using to and from the paths that it's actually using? (For instance, call it to convert the path for a folder in Program Files to a path in Program Files (x86) or vice versa when running on a 64-bit system.) I need to do this so that...
I have a line chart, where the chart legend also in forms
of line. Is there a way I can change the legend type from colored 'line'
to colored 'circle' or 'square'?
Figure like
...
os.path.getmtime() and os.stat() seem to return values in whole seconds only.
Is this the greatest resolution possible on either a Windows or OSX file system, or is there a way of getting greater resolution on file times?
...
I have the following code
class TimeReport
def run
init_screen
lines = Curses::lines
cols = Curses::cols
read=""
begin
crmode
noecho
gotoDay diaActual.data.to_s #loads the screen with data
while !read.eql?("q")
printPrompt #simply prints the command prompt
read=STDIN.get...
On projects with end-to-end tests that drive the GUI, it is awkward to run the tests on a developer workstation because the GUI automation driver interferes with the desktop. It moves the mouse, steals focus away from apps we want to use, and can start typing text into the wrong application if we switch to another app during a test run.
...
i have used following code to disable the Windows Control Panel. It successfully disables the Control Panel, but it needs a sytem restart to apply changes. Does anybody know how I can apply these changes to the Control Panel immediately, without requiring a system restart? Can anybody can help me?
RegistryKey RegKey = Registr...
I'm looking for the windows executable for the linux man (manual reader).
I tried googling around, but got frustrated with the kind of results it came up with, owing to 'man' being such a common phrase.
I got results that read "man executed in texas..".
So I look to the SO community now. Any clues?
...
I have a C# console application that logs a lot to the console (using Trace). Some of the stuff it logs is the compressed representation of a network message (so a lot of that is rendered as funky non-alphabetic characters).
I'm getting system beeps every so often while the application is running. Is it possible that some "text" I am wr...
--edit--
What application development frameworks/component models for Linux and Mac OS X are analogous to Windows Communication Foundation & COM, which provide high level IPC mechanisms for manipulating/communicating with software applications?
By high level communication model I mean RPC, publish/subscribe, etc.
I'm writing software ...
My XP machine has become terribly slow and I want to identify the application at fault. It seems to be related to disk access rather than processor hogging. I can look at the task manager to get a good idea but it's not ideal. I was wondering if there was some application that can monitor all aspects of processes effectively. Is Proc...
I'd like to create a new InstantRails-type app for Rails developers who use Windows. It would be free & open-source of course.
Reasons:
Use nginx over Apache, especially
since the nginx guys are now
releasing original Windows versions.
Use the newest version of Rails.
I haven't developed a Windows app before. Could anyone please pro...
I have a fairly simple bash script that does some grep to find all the text in a file that does not match a pattern.
grep -v $1 original.txt >trimmed.txt
The input file ends each line with the Windows line end characters, i.e., with a carriage return and a line feed CR LF.
The output of this command (run in Cygwin) ends each line wit...
Here is my scenario:
A dozen of clients reading from memcached-like store.
Read-only access
50K gets/sec
99.999% availability
300 million records, 100 bytes each
If one of the stores goes down the system should be able to automatically switch to another replica. When it is time for update the system should be able to quickly reload...