I'd like to put the yuicompressor jar file in a single folder so that I can call
java -jar yuicompressor-2.4.2.jar ...
from anywhere on my system, with cygwin. For bash files I use I simply put them in a common folder, and added the folder's path to my windows user's PATH environment variable and the bash commands were found in cygwin...
Is it possible to tell Ruby in Windows to use only \n instead of r\n?
I'm having an issue where a file is being saved with \r\n and it is causing it to not function properly. Is there a setting somewhere I can change to fix this?
...
I am streaming wav data from a flash application. If I get the data and do the following:
f = File.open('c:/test.wav', 'wb')
f << wav_data.pack('c'*wav_data.length)
f.close
The wav file works perfectly. If I do this:
f = Tempfile.new('test.wav')
f << wav_data.pack('c'*wav_data.length)
f.close
FileUtils.mv(f.path, 'c:/')
The file is...
Working on an iPhone application through a TightVNC connection into a Mac Mini; the control+drag operation in Interface Builder to connect a view element to file owner doesn't work - I don't see the connecting line.
It does work when I connect keyboard, mouse and monitor to the Mini and work on it directly, however it is a lot more conv...
My requirements are:
easy tools exist to create/format the help file
from our software, we can launch the help file at a certain location, specified ideally by keyword or tag and not by page number.
to be deployed with a Windows software.
Thanks!
...
RFC1123 defines a number of things, among them, the format of Dates to be used in internet protocols. HTTP (RFC2616) specifies that date formats must be generated in conformance with RFC1123.
It looks like this:
Date: Wed, 28 Apr 2010 02:31:05 GMT
How can I generate an RFC1123 time string from C code, running on Windows?
I don't ...
Hi,
I am using an HP RS232 pole display with the following setting:
Char type: USA/Europe (default)
Command mode: EPSON (default) Baud
rate: 9600, n , 8, 1 (default?)
Passthru None (Default)
Here's the code
using System.IO.Ports;
private SerialPort port;
port = new SerialPort("COM2", 9600, Parity.None, 8, StopBits....
I have a Windows service that needs to access registry hives under HKEY_USERS when users log on, either locally or via Terminal Server. I'm using a WMI query on win32_logonsession to receive events when users log on, and one of the properties I get from that query is a LogonId. To figure out which registry hive I need to access, now, I n...
Hi,
I wrote an application which will be able to open files of particular extension and show it to users. Now I want the users to be able to just double click the file and have it open with my application. I tried to set the "Always use the selected program..." option in the windows "Open With" dialog box, but do not know how to receive...
Hey,
I'm trying to develop a toolbar for Microsoft Outlook. For getting it to work I need mso.dll and msoutl.olb as an import.
My problem is: the path is hardcoded , but it varies for every OS and of course if someone doesn't install Office to the default path.
I tried it this way
http://support.microsoft.com/kb/234788/en-us/
but ...
Hello all,
I'm opening a word document through IE on a local network, it opens up fine but if a document is password protected then it should prompt for the password which it doesn't.
Is there something that I should be doing to get the password prompt?
The way I'm opening the document is by a link on a web page e.g.
<a href="\\path\...
We have the following interface:
[object, uuid("uuidhere"), dual ]
interface IInterface : IDispatch
{
[id(1), propget] HRESULT CoolProperty( [out, retval] BSTR* result );
}
Now there's a minor problem. On one hand the parameter is "out" and so any value can be passed as input, the parameter will become valid only upon the successf...
Hi,
Is it possible to abort computer shutdown from windows service?
...
I've been working on a windows application lately. It's build up from several classes that basically draw an image together. After that was done, I made 2 buttons with an event on click that changed a few colors of the drawn objects.
Everything works fine including the buttons, but my problem is that each time I hover over the buttons w...
In a Unix world I've been happily using gdb for debugging and valgrind for memory analyzation.
Are there open-source quality alternatives for Windows?
I'm looking for lightweight pieces of software that do what you need, and never get in your way (just like gdb and valgrind).
...
I need to take a file and move it to a windows machine on a specific folder where it is then to be printed automatically. How would I accomplish something like this? Is it possible with PHP?
...
Hi all, as the title says I'd like to somehow get the cache behavior of my code. I'm running Windows 7 64-bit edition, compiling on Visual Studio 2008 Professional Edition, compiling C++ code.
I understand that there's Valgrind under Linux, but are there any free alternatives I could use, or methods otherwise?
Thanks!
...
How can i use "ClearCanvas.Server.ShredHost" to get all images on my servers?
...
I'm now doing it in a very ugly way by manually including all the required path(the gtk bundle is at D:/Tools/gtk+-bundle_2.20.0-20100406_win32):
include_directories(D:/Tools/gtk+-bundle_2.20.0-20100406_win32/include/gtk-2.0 D:/Tools/gtk+-bundle_2.20.0-20100406_win32/include/glib-2.0 D:/Tools/gtk+-bundle_2.20.0-20100406_win32/lib/glib-2...
I need to provide a C++ application as a service. Client of the service and the service can be on the same machine or distributed on different machines based on the load. This application takes a ~2KB string as input and returns almost similar size of string after some processing. Turnaround time for the client should be really quick. Wh...