A collegue told me once that the last option when everything has failed to debug on linux was to use strace.
I tried to learn the science there is behind this strange tool but I am not a system admin guru and I Don't really get results.
So what is it exactly and what does it do ?
How to use it ? In which case ?
How to understand the ...
Hi,
In few months I start a project in PHP and I am hesitating to do like usual : develop on my Windows Vista 64bits machine. Since I know few things on Linux, I think it can be a good way to learn by working on a Linux distribution.
Do you think it's a good idea or not? I would run a VirtualBox with Ubuntu (on my Vista64bits). I was t...
I've been using htmldoc for a while, but I've run into some fairly serious limitations. I need the end solution to work on a Linux box. I'll be calling this library/utility/application from a Perl app, so any Perl interfaces would be a bonus.
...
Whenever I start our Apache Felix (OSGi) based application under SUN Java ( build 1.6.0_10-rc2-b32 and other 1.6.x builds) I see the following message output on the console (usually under Ubuntu 8.4):
Warning: The encoding 'UTF-8' is not supported by the Java runtime.
I've seen this message display occasionally when running both T...
How can I programmatically lock/unlock, or otherwise prevent/enable editing, a source file on Linux using C++.
I want to be able to lock source file so that if I open it in an editor it will not allow me to save back to the same source file.
I am thinking of maybe changing the permissions to read-only (and change it back to read-write ...
is there any easier solution in porting a windows manual-reset event to pthread,
than a pthread conditional-variable + pthread mutex + a flag if event is set or unset?
...
on KDE, there's a possibility to execute a command when some event happen.
for example one can execute a script when kmail receives a mail or when a akregator fetches a new feed.
I want to execute the script on a way I can retrieve the mail/feed subject in my script.
is there a possibility to specify the program to execute:
myprogram <...
On NTFS there is a nice but mostly unused feature called
"Alternate Data Streams" (ADS) which I recently used in a hobby-dev project.
I am thinking of porting this project to Linux, but I do not know if any Filesystem on linux has such a feature?
...
Every time I use the "at" command, I get this message:
warning: commands will be executed using /bin/sh
What is it trying to warn me about? More importantly, how do I turn the warning off?
...
I am in need of an IDE that can open and understand a .vcproj file. Does anyone know of something that can open these files that is free and an IDE?
It needs to be able to run on Linux (Ubuntu preferably). Also, I am not looking for a .NET IDE. The code is in C++ that I am working with.
The IDE is important because I have no clue how t...
I'm working on a commercial (not open source) C++ project that runs on a linux-based system. I need to do some regex within the C++ code. (I know: I now have 2 problems.)
QUESTION: What libraries do people who regularly do regex from C/C++ recommend I look into? A quick search has brought the following to my attention:
1) Boost.R...
The situation is this: I have a USB device (a custom device I'm trying to talk to) with two endpoints, one writing to the device, one reading from the device. Both are bulk transfers. Every communication transaction takes the form of (1) Write a command to the device (2) Read the response. I'm using libusb (version 0.1 rather than the 1....
I would like to send a (as yet undetermined) SIGnal from a bash script to a Gambas program when a specific file has been changed.
How can I get my Gambas program to process this SIGnal?
...
Just that. I would like some information (links, reference, examples...) to guide me to do that.
I don't even know if it's possible.
My objective is to compile a program in Linux and get a .exe file that I can run under windows.
...
I need a very accurate way to time parts of my program. I could use the regular high-resolution clock for this, but that will return wallclock time, which is not what I need: I needthe time spent running only my process.
I distinctly remember seeing a Linux kernel patch that would allow me to time my processes to nanosecond accuracy, ex...
I am doing .net programming in addition to c and c++ development and want more flexibility on my home machine. I want to be able to have both Linux (probably Ubuntu) and Windows Vista on my home computer. Is there a way I can install both and on boot be prompted for which one to start? Is there a way to set Windows to default?
I have...
I have one question maybe someone here can help me. If i do "ps aux --sort user" on linux console I have one list of users and their processes runing on the machine. My question is how do I remove the users name and print that list like this in a C program:
for example:
(…)
--------------------------------------------------------------...
I am trying to install newgem on my linux box (sudo gem install newgem) and i am getting the following error:
Building native extensions. This could take a while...
ERROR: Error installing newgem:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb install newgem
extconf.rb:1:in `require': no such file to load --...
I need to compare strings in shell:
var1="mtu eth0"
if [ "$var1" == "mtu *" ]
then
# do something
fi
But obviously the "*" doesn't work in Shell. Is there a way to do it?
...
Here is the situation: the customer machine is a Dell Inspiron 6400 running Fedora Core 9 installed from the i686 Live CD (not x86_64 as the T2400 Core Duo did not have 64-bit support). The customer wireless adapter is a ENCORE ENUWI-N USB 2.0 802.11n Wireless Adapter.
My question is, how do I make this USB-wireless work with this lapt...