I have a very complicated audio setup for a project. Here's what we have:
3 applications playing sound
2 applications recording sound
2 sound cards
I really don't really have the code to any of these applications. All I want to do is monitor and control the audio streams. Here are a few examples of operations I'd like to do while ...
hi ,
i wish to load linux using my own bootloader .. preliminary research and google told me that i ll have to use start_kerne() function ..
i want to ask how can i call start_kernel() from assembly .. i have already formatted my usb into ext3 and pasted the compiled kernel there .. now how can i start the linux kernel ? any help is we...
Is it possible to run jRuby and native ruby on the same machine?
For example installing rake or gem under both it find's Matz Ruby extensions /usr/bin/gem or /usr/bin/rake
The MRI gems and jruby gems are mixed up.
Is there any experience in that constellation ?
Thanks erhard
...
Hi
I want to create a remote webservice for an application that is now avaliable only localy. This application controlls three devices (each is controlled separately) connected on serial port. The problem is that I don't know how to take care of passing back information that a device return requested data. For example - I send move comm...
I want to have such pipe in bash
#! /usr/bin/bash
cut -f1,2 file1.txt | myperl.pl foo | sort -u
Now in myperl.pl
it has content like this
my $argv = $ARG[0] || "foo";
while (<>) {
chomp;
if ($argv eq "foo") {
# do something with $_
}
else {
# do another
}
}
But why the Perl script can't recognize the parameter passed t...
How can i get the start and end sectors of the partitions of my harddisk via a bash script?
...
Is there a script i can use to copy some particular sectors of my Harddisk?
I actually have two partitions say A and B, on my Harddisk. Both are of same sizes. What i want is to run a program which starts copying data from the starting sector of A to the starting sector of B until the end sector of A is copied to the end sector of B.
L...
Hey,
I need to know active screen DPI on Linux and Mac OS. I think on linux xlib might be useful, but I can't find a way how to get currect DPI.
I want this information to get real screen size in inches.
Thanks in advance!
...
Sometimes, when running a Mono .NET application (it seems to not depend on the input data, as it does not change), I run into following situation:
when trying to Dequeue an element from a (non-empty, I check its Count beforehand) Queue, an exception is thrown:
Unhandled Exception: System.InvalidOperationException: Operation is not va...
I tried to install MonoDevelop on Suse 11.0 Enterprise, using the 1-click install on the MonoDevelop download page, but quickly wound up in a tangle of missing dependencies. I then tried using the Suse software repositories to get MonoDevelop, and waded through several of the dependencies for awhile trying to get the necessary packages ...
Howdy All,
First time poster, so please excuse any stupidity.
I'm working on porting a custom CPLD driver on a linux kernel built for an MPC83xx from 2.6.22 to 2.6.26, and am receiving an unexpected Oops. The driver works fine for the .22 kernel, but the .26 kernel chokes on my call to request_irq. Does anybody know why there was a cha...
As far as file permissions are concerned, when you use a php script to unzip a tar file, who is the "owner" user of the files created?
I'm wondering if its my ftp user because I uploaded the script file? Or does apache own the file? I know their are flags to be set to preserve the original permissions which I don't want (files where cr...
Hello,
I work on shared linux machines with between 4 and 24 cores. To make best use of them, I use the following code to detect the number of processors from my ruby scripts:
return `cat /proc/cpuinfo | grep processor | wc -l`.to_i
(perhaps there is a pure-ruby way of doing this?)
But sometimes a colleague is using six or eight of t...
Hi all.
I've to port to Qt/Linux a Win32 code that relies on GetCharacterPlacement() call for properly handle Arabic ligatures in strings.
While I've no problem at displaying these strings via QTextEdit or QLineEdit (Qt widgets correctly show ligatures), I can't "identify" and manage these ligatures.
In other words, if I type 3 Arabic...
Hi all
i have a file like this:
term1 term2
term3 term4
term2 term1
term5 term3
..... .....
what i need to do is to remove duplicates in any order they appear, such as:
term1 term2
and
term2 term1
is a duplicate to me.
It is a really long file, so I'm not sure what can be faster.
Does anyone has an idea on how to do this? awk...
Hi,
I have used just Windows for programming so far. Now, I have an internship starting in two weeks and I will be using just Linux environment with Python programming language. I've installed Ubuntu on my system but have no exposure to shell scripting.
I need some advice on how I can quickly learn to use the Linux terminal quickly. An...
Is there a Linux utility of a bash command I can use to sort a space delimited string of numbers?
...
How do I redirect the output of a sed command as input to a tr command?
...
Hi all,
I have a header file with all the enums listed (#ifndef #define #endif construct has been used to avoid multiple inclusion of the file) that I use in multiple cpp files in my application.One of the enums in the files is
enum StatusSubsystem {ENABLED,INCORRECT_FRAME,INVALID_DATA,DISABLED};
There are functions in the applicati...
What is the correct interpretation of the following kernel error message:
[N] swapper: page allocation failure. order:1, mode:0x20
[N] Pid: 0, comm: swapper Not tainted 2.6.x #15
Is the error fatal (similar to an OOM-kill) or is it just a warning message?
...