If you run this code in a controller action (notice the backticks)
def index
…
`pwd >> tc.log`
`git status >> tc.log`
`ls >> tc.log`
…
end
, only the 1st and 3rd command will pipe their output to the tc.log file.
I'm trying to get the output of git status (f.ex) in a controller action and have tried many variations (captur...
I want to create a recording of desktop content, but without a certain window. The role of this window is to provide a text that will be read, while recording desktop changes.
Any suggestions?
...
I need to capture the remote addresses that a program connects to and the data that it sends and receives on Win 7. any suggestion for the program I can choose?
...
hello
I am developing an kind of outlook calendar application where I need to make the appointment resizable from mouse.
My first try with a thumb did not work properly so I tried another way.
What I did is that:
1) on the botton of the appointmennt panel I added a rectangle to figure out the resize zone (the thumb). The appointment p...
Hi,
I was wondering how do software like GotoMeeting capture desktop. I can do a full screen (or block by block) capture using GDI but that just seems too wasteful to me. Also I have looked into Mirror devices but I was wondering if there's a simpler technique or a library out there which does this.
I need fast and efficient desktop ...
I'm trying to write a POS-style application for a Sheevaplug that does the following:
Captures input from a card reader (as I understand, most mag card readers emulate keyboard input, so basically I'm looking to capture that)
Doesn't require X
Runs in the background (daemon)
I've seen examples of code that will wait for STDIN, but th...
Hi experts...
I need your help , i'm trying to quit a msgbox from a ocx , i put the ocx into a vb6.0 form , when i run the proyect appear each 5 minutes a msgbox with the invitation to visit a web page , i want to quit this msgbox , but i´m junior programmer only , and i want to quit this screen fom my exe.. can any help me....this drive...
Hi,
Is there a way to create a screenshot of the browser in Flash? I know that in Java this is possible, and it will popup a dialog asking for trusting the signed Applet, but is there a way to do this in Flash?
...
Hi all, I'm trying to put an image, generated from some text, in a RichEditableText. Since it's a styled text, I thought about putting it another RichEditableText, style it, then print it to a Bitmap to use as source for InlineGraphicsElement.
I use the following code to do that
var txt:RichEditableText = new RichEditableText();
txt.te...
Hi,
I'm trying to capture a video stream using the video camera on a Java ME capable cell phone. How do I go about doing this? I've read about using MMAPI for capturing still images through a live camera feed, but I'm not sure whether it can capture a video stream that can be saved (with sound) and forwarded to a remote server.
...
I'm creating a console application in which I'd like to record key presses (like the UP ARROW). I've created a Low Level Keyboard Hook that is supposed to capture all Key Presses in any thread and invoke my callback function, but it isn't working. The program stalls for a bit when I hit a key, but never invokes the callback. I've checked...
I am trying to port my screensaver from windows to mac and one of its features was reacting on system sound output. On windows it was easy using Direct Sound, but I can't find any example of capturing sound output on mac. Is it possible even possible without writing something like kernel extension? Using flash it is also very easy — it e...
I found some interesting possibility in many regex engines:
It's possible to place backreference inside the capture group and reference this group.
For example: (\1)
My question: for what regex patterns it may be used? I can't imagine...
...
(Context: I'm trying to monitor a long-running process from a Perl CGI script. It backs up an MSSQL database and then 7-zips it. So far, the backup part (using WITH STATS=1) outputs to a file, which I can have the browser look at, refreshing every few seconds, and it works.)
I'm trying to use 7zip's command-line utility but capture t...
Hi- I'm stumped on this, and I'm really hoping someone could point me in the right direction.
I'm currently capturing video in Windows Mobile and encoding it using the WMV 9 DMO (CLSID_CWMV9EncMediaObject). That all works well enough, but the output video's bitrate is too high, resulting in a video file that's much too large for my nee...
I would like to be able to capture an image (or choose an image from the photo library) and upload it to a remote server using Monotouch. I am not sure how to obtain and encode the image or how to upload the image and I am having difficulty finding relevant instructions. Can you help me get started? Thank you.
...
I would like to capture some sound from the microphone in cpp, in order to use it in a Qt application.
So I'm looking for a multi platform library easily integrable in a Qt4 project.
...
I want to access the audio data that my microphone is recording with Java. How would I do that?
My goal is to save the audio data that is recorded and simultaneously play it to the user.
...
I'm using the JMF Framework to capture audio data from the microphone.
I try to find the audio device for the mic through this code:
AudioFormat audioFormat = new AudioFormat("linear", 44100, 16, 2);
Vector<CaptureDeviceInfo> deviceList = CaptureDeviceManager.getDeviceList(audioFormat);
The problem is that I don't really kno...
I'm trying to capture the last digits in this line in a regex group:
The input:
9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 54654
My pattern:
/Power_On_Hours.+Always\s.+([0-9]{1,5})/
I just can't seem to get it to capture "54654", it's returning undef :(
...