I'm writing an Apache module and want to get a string with the Apache name version and other details. Much like what gets added to outgoing headers, e.g.:
Server: Apache/2.2.13 (Win32)
I've tried code like this:
apr_table_get(request_rec->headers_out,"Server")
But that doesn't seem to work. Is there an API call I haven't found or a...
Not completely a programming question, but its close enough so here goes:
In Mac OS I'll put user-specific files for my app in ~/Library/Application Data/{MyApp}/ and in *nix I'll put them in ~/.{MyApp}/ - where should I put them for Windows?
I'll be using Ruby's File.expand_path to get to this directory, so if there's a windows equiva...
So I created a TCP\HTTP server (IN C#). I want to give to it namespace on my 80's port near to other HTTP servers I have. How to do such thing (step - by step)?
...
Hi,
I have a question about getting DLL's directory on Windows system.
The situation is like this :
I have a DLL and an EXE file. The exe file must load the DLL to run.
These 2 modules are in different directories.
Moreover, the directory of the DLL is changeable.
Now I have to get the directory of the DLL in "run time".
How could I ...
I'm trying to make a PHP script that will take a potentially infinite number of URLs from the command line as arguments. I also need to pass an argument that only has a single numeric value possible (to specify timeout), e.g.:
./urltest.php 60 url1.com url2.com url3.com
I'm not exactly sure how to specify argv[1] to be a single numeri...
In my application I tried using following codes to do this:
<mx:HTML x="0" y="0" width="100%" height="100%" location=“http://www.example.com”/>
The page is loaded fine.But when I click the links I found sometimes there was no any response while I need a new explore window opened with the linking url.And also I tried:
<mx:Script>
<...
When we command "net use" on command prompt, the result has four columns.
Status Local Remote Network
OK Z: \\10.x.x.x\Public Microsoft Windows Network
X: \\10.y.y.y\Public My Network Redirector
The Microsoft Windows Network(SMB)'s Status has OK value, but we don't. It's just empty.
...
Hi,
I just finished building up a new web server (2k8 x64) and have installed 'URL Rewrite' and 'Application Request Routing' but noticed that the 'URL Rewrite' option in IIS Manager is missing.
I messed around for a little while by re-installing both modules repeatedly and in different ways and then gave up.
I returned later, only to...
I want to scrape text data from a windows application to do additional processing using existing ruby code. Would it be possible to scrape the data as it is updated in the windows application using Ruby and where do I start?
...
I've bought a new notebook yet I'm not sure whether Linux fully supports it or not, so I decided to use a VM for the time being. The only virtualization software I've used so far is VirtualBox on linux, but I think it's a bit overkill for my needs.
All I need is to use it like a vps hosted on my machine. Command line access would be eno...
I have a variable define as:
set filePath=".\file.txt"
I'm writing a windows batch file. Need to convert the path stored in variable 'filePath' to its fullpath (physical path).
How can I get the full path of this path? Please help!
...
Is there a reliable way to know what executable has called my executable?
I have a .NET executable but I would like to know who has started my application.
...
I am using Microsoft Date and Time Picker control(SP4) in my application.My application runs fine in xp and vista machines as date and time picker refers to mscomct2.ocx which is present in system32 for xp and vista,but for windows 7 i dont have this dll in my system .In windows we need admin rights to register that control. So is there ...
I'm coming from a Java / web background with no C# experience and I want to write a prototype C# / .NET desktop app to run against my existing DB2 database. The idea is that the prototype should use libraries and tools which are suitable for scaling up to full production and should be standard and free.
Of the top of my head, the two b...
Hi, I would like to know what lines of C code to add to a program so that it tells me the total time that the program takes to run. I guess there should be counter initialization near the beginning of main and one after the main function ends. Is the right header clock.h?
Thanks a lot...
Update I have a Win Xp machine. Is it just addin...
I am used to embed WAV into .exe and Play it using PlaySound(). However, using this method causes the .exe to become pretty big.
Is it possible to do the same with MP3 files and how to do it?
I have taken a look at DirectShow but it seems to be able to play from files only?
I am developing for Windows Mobile 6 Series
...
I need to execute a command 100-200 times, so far my research indicates that I would either have to copy paste 100 copies of this command, OR use a FOR loop, but the for loop expects a list of items, hence I would need 200 files to operate on, or a list of 200 items, hence defeating the point.
I would really not have to write a C progra...
I want the ability add properties and tags to a file
(specifically ebook files and ebook related properties in Windows 7 but interested to go so for as many OSes as possible)
For e.g. Example.txt or Example.doc or Example.epub should all store and carry properties like 'Author', 'Publication date', 'Tags' etc..
the properties should b...
I have a PlayList loaded into my WMP instance, and I want it to loop just one song. Everything I've Googled up so far tells me to do this:
private AxWindowsMediaPlayer wmp;
wmp.settings.setMode("loop", true);
However, this only seems to make the entire PlayList repeat. The behavior I want is that, if I enable "repeat" when song 5 in t...
I've been looking at the possibility of ReHosting a WF4 Workflow to be used to debug running Workflows. All the posts and samples I've seen regarding WF4 Rehosting are using a WPF application to initially Host the Workflow, and then use the WorkflowDesigner in ReHosting it. Is there any way to Rehost a Workflow that was hosted in a non...