hi, everybody,
In my new centos5.2 system, there are not any component.
if using Source code installing method, failled! because there is not a compiler for c/c++ code.
how to use rpm method? which dependencies i need?
thanks!
Michael zhou.
...
How can I do the lock profiling (spin and other kind of locks) in 2.6 Linux kernel? I want to get the lock contention numbers for few locks which I have added in my module. Is there any .config option which I can enable and get the profile or any other tool?
...
I'm building a web page screen capture application for an internal R&D project.
Environment: Ubuntu 9.04 (default desktop install), Apache, PHP.
So far I've got a bash script that takes one parameter (URL), fires up firefox, grabs the screen and saves it as a PNG. I've tried running this from terminal and it works fine.
Here's the Bas...
I know it is possible to get an absolute path of a file with realpath() function. However, according to BUGS section the manpage, there are some problem in its implementation. The details are following:
BUGS
Avoid using this function. It is broken by design since (unless using the non-standard resolved_path == NULL feature) it is ...
I have a memory mapped file, from which I wish to parse the contents of the buffer. The mmap() returns success, and I can print out the buffer contents to a file using fprintf successfully. However, when I try to access the buffer as an array in my program directly, I get a segmentation fault. Why is this happening?
Here is the code:
...
I'm wondering about best practices to develop ASP.NET MVC apps with an option to deploy on Linux. If you are creating these kinds of MVC apps,
What Linux/Mono platform are you targeting?
How much of the development are you doing on Windows and how much on Linux?
Are you using an ORM to abstract the database? Which one?
Are you running ...
Is there any way to get the status of the Battery (charging/discharging/Current Charge/Capacity/etc...) from a C++ program in a portable manner between Windows & Linux. I'm doing a small program for my own use and require some help with it. Kindly look over the description of the program on my blog:
The JB Journals
Also, is there any...
For some specific networking tests, I've created a VLAN device, eth1.900, and a couple of aliases, eth1.900:1 and eth1.900.2.
eth1.900 Link encap:Ethernet HWaddr 00:18:E7:17:2F:13
inet addr:1.0.1.120 Bcast:1.0.1.255 Mask:255.255.255.0
eth1.900:1 Link encap:Ethernet HWaddr 00:18:E7:17:2F:13
inet...
Hi all
In one of my application, I am using "mqueue.h". I was able to compile and execute it. But one of our customer to whom I released the code, is complaining something like
* mqueue.h is not found *
He has not attached the exact error message though. In my linux PC, it is available in /usr/include. Can anyone guess any reason why ...
When I setup stunnel as a client on a machine to forward to another system on SSL port. I am able to connect once using that but when I disconnect from that server and then try to connect again it doesn't connect and shows the following in the logs:
2009.07.24 10:00:58 LOG5[4164:800]: my_server connected remote server from
192.168....
I need a compiler for Fortran 77 in linux.
Are there any free compilers out there that people use?
I've heard about g77, but I can't find the rpm or how to install it in linux.
Thanks!
...
How do you run Scheme programs from the terminal in linux(ubuntu)? Also how to accept arguments from the command-line in a Scheme program?
Edit: Im using the DrScheme implementation.
...
I've been working on some older C code. I found out that there are quite some POSIX calls that are now outdated and marked deprecated in the manual pages.
What's the best way to check if there are still deprecated POSIX calls in your code? I'm thinking of either:
special gcc warning options.
some kind of lint tool detecting these call...
I am looking for an rpm or simple install instructions for getting f2c to work on my redhat linux os. I am new to linux and it is difficult finding something like this on google.
(The goal is to use f2c to convert a simple fortran77 file to c, then compile)
Does anybody have any suggestions?
...
I have a large flat file that I need to process in php. I convert the flat file into a normalized database in mysql. There are several million lines in the flat file.
I originally tried to use an ORM system while importing the flat file. There was a massive php memory leak problem with that design even with careful freeing of objects. E...
Can anyone point me at good books for Active Directory Programming in C++ ( Linux ) or refer me to libaries for doing this?
I need to authenticate application with is developed C++ and Sever has Active Directory , And before going to Start the application . I need to test user credentials information with Active Directory .
...
How can I determine the maximum filename length on a linux box?
Preferred in PHP programming language.
...
I have a file that was deleted, but is still held open my a program. I found the inode number using lsof. How can I create a hard link back to that inode?
Any code helps, but Perl would be handy.
...
I am sourcing a file in a bash terminal that needs to export some environment varibles.
Example:
source linux_x86.env
the env file looks kinda like this:
export ARCH=/home/user/project/linux_x86
I have a bunch of different architectures to compile for and I want be able to do something like this:
export ARCH=/home/user/project/...
In Windows' and MacOS's metafiles (WMF/EMF and PICT/PDF) you can attach any information that goes along with the metafile - it can be something specific for you application. How can I achieve same result on Linux? I'm not using GDK or Qt - just "plain" XLib, Xt and Motif.
The idea is that I want to copy and send something from my applic...