Hi all
I'm trying to watch for a file being modified in a long running php script. The basic algorithm is this:
...
$mtime = filemtime($filename);
sleep($delay);
if($mtime < filemtime($filename))
... // do something because file was changed elsewhere
Problem is filemtime returns the same value withing same script, e.g. if a scr...
Hello *,
Is there any way to extend the information in the Windows File Version dialog. All standard attributes are already in use, in a way that I am not allowed to append additional information to them. What I need is a sort of new attribute class, which can be used as additional value shown as one of the items of File Properties/Vers...
Control Panel items are normally registered under HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace, however a lot of the built-in panels aren't listed there, such as the Automatic Updates item.
I'm trying to find out where the icon used for the Automatic Updates item is. If you open the Control Panel in Til...
I want to know how long a command takes to run. At the moment I am doing this:
echo | time | find "current" & dowahdiddy.exe & echo | time | find "current"
Which shows me the time before and after:
The current time is: 11:39:14.38
...dowahdiddy output...
The current time is: 11:39:15.44
I have to determine the difference. I could p...
I have a slide bar to adjust the brightness of the screen on notebook displays in my application, but I found those articles from internet are adjusting the Gamma value, the behavior is not really like pressing the special key in keyboard. Is there a way to do it? Thanks in advance.
Here is some links what I found.
http://www.codeproj...
Hi. I am getting following error while importing SQLObject on Window. Does anyone knows what is this error about and how to solve it?
==============================
from sqlobject import *
File "c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg\sqlobject\__init__.py", line 5, in <module>
from main import *
File "c:\p...
I have an application which is based on a Postgres database and I need to be able to examine the requests the application sends of the database.
I want to have Postgres log all of the queries it receives somewhere that I can examine them in order to rebuild some of its functionality in another application.
Can someone recommend a simpl...
I'm writing some code (Python, but really isn't important) that analyzes strings inside PE files. I'm looking for a command line tool I could invoke that will return the complete list of strings inside the PE file.
I know PEDUMP, but it seems to give incomplete strings.
Also, it is very important that this tool would be able to handle ...
Is it possible to implement drag and drop behavior in the notification area of the windows taskbar? Like having the icon there that can monitor something dragged and dropped on it. I suppose it should be a little bit tricky (if ever possible)
...
In Windows I would like to be able to run a script or application that starts an another application and sets its size and location. An example of this would be to run an application/script that starts notepad and tells it to be 800x600 and to be in the top right corner. Does anyone have any ideas regardless of language?
...
I am wondering if it is possible to use WinDbg to kwown the callstack that lead to the allocation of a handle.
For example:
#include <windows.h>
#include <conio.h>
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
cout << "Press ENTER to leak handles." << endl;
_getch();
cout << "Leaking ha...
i am new to windows services programming. I have confusion about what to set the Account type while writing a windows services.
how to choose or how to determine to which account type we need to set while writing a service.
...
I'm starting a project to make a wall paper rotator for computers with multiple monitors.
1) how do you detect the monitors in windows and the associated resolution
2) how would i set the image per monitor. do I make one image that's crafted together or do I set each one individually and how?
thanks
...
I have this windows mobile application.
I'd like to launch an updater.exe that will update my mobile app. But I need to stop my mobile app before the updater process launch .. how can I achieve this?
...
Hi,
I'm just learning f# so possibly I'm doing something very silly. Feel free to point me to the relevant documentation, I've searched but wasn't able to find. I am using Visual Studio 2010 beta on windows 7 (.Net 4.0).
Everything is going well with my first f# project. Well.. almost everything. In particular
I'm writing a very simpl...
I have a C# Windows Forms app.
I have a TabControl on it, and depending on user settings, will dynamically use TabControl.Controls.Add to add a specific set of TabPages to the tabs. The TabPages aren't special, they just have buttons and text.
Doing this dynamically, even for small amount of tabs, is slow as hell. Every "Add" call, o...
I'm having a debate with some developers on another forum about accurately generating MIDI events (Note On messages and so forth). The human ear is pretty sensitive to slight timing inaccuracies, and I think their main problem comes from their use of relatively low-resolution timers which quantize their events around 15 millisecond inte...
I am trying to create a SOCKS proxy in C++ that runs as a background process on localhost.
If the user's browser is configured to use the proxy, I want all HTTP requests to be passed along through the normal TCP/IP stack. i.e. The browser will behave exactly as it normally would.
Eventually I will add another layer which will check to ...
I'm writing a small windows application what is used to sync the photo between Facebook and user computer, I would like to delete the photo too when I delete it in my computer side, but Facebook don't provide the delete function in his API. How can I achieve it? I saw Apple iPhoto can do it, is Apple using private interface?
...
I have built the ezrgb24 sample project successfully, which is in the DirectShow SDK. But I encountered a confused problem when I debug it.
The following Copy method was called by the Transform method.
HRESULT CEZrgb24::Copy(IMediaSample *pSource, IMediaSample *pDest) const
{
...
// Copy the sample data
BYTE *pSourceBuffer...