windows

How can I run command prompts with VBA and restart if they fail?

I'm a Perl programmer with some nice scripts that go fetch HTTP pages (from a text file-list of URLs) with cURL and save them to a folder. However, the number of pages to get is in the tens of millions. Sometimes the script fails on number 170,000 and I have to start the script again manually. It automatically reads the URL and sees if...

How can I build Qt Application in Qt creator with static links on Windows with VS2008 runtime?

I have downloaded qt-win-opensource-4.7.0-vs2008.exe from nokia site and use it when I build my application. My application realy use VS2008 runtime not MinGW, but it has the dynamic linkage with QtCore4.dll and others Qt libs. How can I create application with static linkage with qt libs? ...

Callstack address

Hi! Does anybody know if/how I can read from the callstack from a specific address? suppose I have a offset address from the base address of the callstack, how can I get the base address? thanks :) ...

Accurate benchmark under windows.

I am writing a program that needs to run a set of executables and find their execution times. My first approach was just to run a process, start a timer and see the difference between the start time and the moment when process returns exit value. Unfortunately, this program will not run on the dedicated machine so many other processes ...

Change visible application name (Windows)

Hello, I am looking for a way to change my application name (that appears on right click on Windows 7 taskbar): To something more informative like: How do I do that? I am using: Qt 4.7 (MinGW), Windows I have found some info about using certificates and signing executables, but I am not sure if it is what I need. I know how to c...

Best development environment for PHP?

What is the best development environment for PHP? I use Notepad++ with Vibrant Ink style and Windows Explorer for ftp. very amateurish ...

How to configure an HTTP Proxy like Fiddler2 or Charles Web Proxy with the latest Android Emulator on Windows?

I'm at complete odds over configuring a proxy to inspect the HTTP(S) traffic for the app I'm developing. I've tried running Fiddler2 and Charles Web Proxy, both run on 127.0.0.1:888, and starting up the Android emulator with the parameter: -http-proxy http://127.0.0.1:8888 To test it out I open the Android browser. I see in Fiddler2 ...

PHP GTK short path

I have the following PHP GTK code located in C:\gtk <?php if (!class_exists('gtk')) { die("Please load the php-gtk2 module in your php.ini\r\n"); } $wnd = new GtkWindow(); $wnd->set_title('Background'); $wnd->set_resizable(false); $wnd->set_position(GTK_WIN_POS_CENTER); $wnd->connect_simple('destroy', array('gtk', 'main_quit')); ...

Running a process with lowest possible privileges in winapi

I am writing something similar to the http://ideone.com/. Currently I am running user processes with CreateProcess call. I kill the process if it runs longer then specified amount of time but I don't know how to deny read/write filesystem rights / creating process rights etc. to the created process. The given executable can be literally ...

VB.NET OpenFileDialog Latency on Win7

I have a winform, VBExpress 2008 with a single button and this code behind it to illustrate the problem: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click OpenFileDialog1.ShowDialog() MsgBox(OpenFileDialog1.FileName) End Sub When I select a file (in my case small PDF's) I am g...

How to read data using ReadFile when file has disabled sharing on read.

Hello, I have a problem, i have a file who opened other process and this process defined in CreateFile non file sharing, then i have other application and i want read data from this file in same time, but how to do. I can't change file sharing in first application. I can reach computer administrator right's, i can do changes in system,...

[AMD CodeAnalyst] which params show cache misses?

I need to know which parts of my code make the most cache misses.. suggest which parameters of the profiling report I need to monitor, there are too many of them there ^_^ ...

what is Psychic window in relation to VC++ ?

Hi, I saw above question in http://www.geekinterview.com/question_details/67202 Then i searched in Google, got below links. http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/470448e8-546f-4f5a-82b1-abbafe64b856 http://forums.windowsforum.org/index.php?showtopic=28783 I had some fun :D but no answer. Is there anyth...

Annoyance when running scripts in Vim (Windows, Ruby)

Hi, I started using vim for my programming projects (mostly Ruby) and mostly everything works just as I want but I have a problem with compiling. Lets say I am working on a Ruby script and I want to run it. I type :ruby sometging.rb (mapped to some other key). Then vim opens a new cmd.exe window and runs 'ruby something.rb'. Then it w...

How to add item to windows explorer content menu in delphi ?

I would like to create menu item in windows explorer content menu (for all file types) which after click will open my application and pass the selected file name to it. Is there any tutorial for this ? I know there is ShellPlus component available but it's a bit outdated. ...

Append text to Blob in Azure

Hello, After looking at this tutorial on blobs: channel 9, I was thinking of using a blob container to save a bunch of tweets (storing the json of each tweet that is). Ideally I would like to create a blob reference for each hour of the day, and append new tweets to this blob as they come in. The issue is that the method UploadText(stri...

How to get windows user id in web2py for an intranet application?

I'm using web2py for an intranet site and need to get current login windows user id in my controller. Whether any function is available? ...

How can I manipulate a local database with Perl?

I'm a Perl programmer with some nice scripts that go fetch HTTP pages (from a text file-list of URLs) with cURL and save them to a folder. However, the number of pages to get is in the tens of millions. Sometimes the script fails on number 170,000 and I have to start the script again manually. It automatically reads the URL and sees if ...

WriteProcessMemory ERROR_PARTIAL_COPY 299

I am trying to write to the memory of another process, I open it with permission 38h (VM_OPERATION, VM_READ, VM_WRITE), then i use VirtualProtectEx with permission 4h(PAGE_READWRITE), but i also tried PAGE_EXECUTEREADWRITE - same error later. Then I invoke ReadProcessMemory, and successfully read out the value of a fix address. But as I...

Why C function _stat does not set errno properly when access is denied to the folder

I'm developing a C-program with VS2005 and I found out that when folder access is restricted in a way that I can't create folders or delete anything from a folder the _stat function for the folder does not set errno correctly. errno is set to value ENOENT. I absolutely cannot modify the permissions so I could get value EACCES. Either _st...