linux

Zip3.0 exclude file list

Does Info-Zip's latest release Zip3.0 support exclude list file? As in, can one pass a file(containing names of the files to be excluded) name as a parameter to zip? I could see that one can pass only exclude patterns as arguments. Is there any limit on the number of exclude patterns that one can pass? ...

Restricting symbols to local scope for linux executable

Hi All, Can anyone please suggest some way we can restrict exporting of our symbols to global symbol table? Thanks in advance Hi, Thanks for replying... Actually I have an executable which is statically linked to a third party library say "ver1.a" and also uses a third party ".so" file which is again linked with same library bu...

Linux Daemon written in Java location

I'm currently writing a Java daemon. I'm writing a script that will have the standard daemon commands (start, stop, restart, status) and I'm trying to decide on where things should go when installing the daemon. My current idea is: PID File: /var/run/myapp.pid Daemon Script: /etc/init.d/myapp Java App (.jar): /usr/bin/myapp Logs: /var/l...

Which Linux software do you recommend for C++ programming?

I would like to learn to program using the Linux environment. What do you suggest for Editors/ IDEs? ...

Socket: Client was disconnected or not?

I am creating socket server. But I do not know, How I can know client disconnected or not? I am creating server under Windows and using berkeley sockets function (read, send, connect....). Preferably I want a cross-platfomennoe solution (without WSA functions). I can write to socket 0 byte and ckeck error. But it is not good solution. ...

C / C++ Library for HTTPS Client with Basic Authentication

Do you recommend any good library or examples online for implementing an HTTPS client that can connect to a website using basic authentication? This is meant to run in linux servers. Any pointers help. Update: Question about the unanimous libcurl - does it come bundled by default in major distributions like Debian, Ubuntu, Gentoo, Slac...

Organizing logs with log4j

Hey all, I'm currently working on a Linux daemon written in Java. What is the common naming scheme for logs? Right now I'm thinking of doing something like: DEBUG = /var/log/myapp.debug INFO = /var/log/myapp.info WARN = /var/log/myapp.warn ERROR = /var/log/myapp.err FATAL = /var/log/myapp.err Does anyone have any opinions / suggestio...

Handling power-off of an embedded board

Hi, I'm working with an embedded board (a BeagleBoard), running a Linux distribution (Angstrom Linux). I would like to gently halt the operating system when a given button is pushed on the board. What I plan to do is : At the init, launch a "power-off" daemon as root user "power-off" run the magic code to check if a given button is pr...

Linux - Replacing spaces in the file names

I have a number of files in a folder, i want to replace every space character in all file names with under scores. How can I achieve this? ...

realistic free TTS program

I have tried Festival, espeak, and MBROLA, but the voices are mediocre at best, and no where near as realistic as current commercial systems. For example this demo: http://www.acapela-group.com/text-to-speech-interactive-demo.html What is the most realistic free TTS voice you have tried? ...

Is there any open source comand line library?

I want to add command line interface support to a server program. So each time I want to check server's status, I can telnet to the server's control port, and input command to check the server's status. Is there any open source library implements such functionality so I need not write it from scratch? Further more, if the library can...

prototype of int64_t or offset64 both linux and windows 32bits system

I am developing a application which needs functions of int64 variables. and i was told offset64 or int64_t is viable for my need... But i just wanna what is the prototype of int64 under 32bit system... How can i use the variable. is it a struction which consists of two ULONGs? thanx ! ...

Zero Window when sending files through posix sockets

Hi I have a problem - when I'm trying to send huge amounts of data through posix sockets ( doesn't matter if it's files or some data ) at some point I don't receive what I expect - I used wireshark to determine what's causing errors, and I found out, that exactly at the point my app breaks there are packets marked red saying "zero windo...

How to get average number of times a line in a file is repeated?

Suppose I have a file of five lines with IP addresses: 1.2.3.4 5.6.7.8 5.6.7.8 9.9.9.9 5.6.7.8 I need to find the average number of times every IP is repeated consecutively. In this example, every sequence of the same IPs has the length of 1, except for 5.6.7.8, which is repeated twice. So, for this example the answer is (1 + 2 + 1 + ...

Gambas - How can I create radio (mutually exclusive) menu?

I'm using Gambas 2.13 on Ubuntu 9.10. I have created a QT graphical application and I'm trying to create radio (mutually exclusive) menu items, with a radio icon instead of a check mark when selected. I can't find any property in the Menu documentation that does that. Can you help? ...

Oracle C++ linux and more weird stuff

So here is the story. I have this device that uses Linux and more open source tools(btw its an ARM). And I was given the task of creating some magic cashier application with it. I have done it and now my boss have made a new request. He wants me to make that stuff(the device) connect to a remote database(preferably Oracle). So thats wha...

Library locations and packages for software development on Linux

We will shortly be spinning up a new Linux-based development effort; and we are new-ish to Linux development on a large scale. We have a well-defined process to handle third-party and internal libraries on Windows, but I am interested in Linux-specific variations and optimizations. It seems logical to (as on Windows) Not have everyon...

ASP.NET MVC 2 Preview 2 under Mono in Linux

I am actually successfully running a production website with ASP.NET MVC under Mono in a Ubuntu LTS Linux. This server is located somewhere in the cloud and it rocks! Today, I have tried to make it all work with ASP.NET MVC 2 Preview 2, which can be found here: ASP.NET MVC 2 Preview 2 I have downloaded the source code because I wanted ...

How to find all files which are basically soft or hard links of other directories or files on linux?

How could I get the list of all linked files on my system or from a certain directory. I used to create links but they became unmanageable with time. I want the list of all such links from a directory. Can anyone help? ...

What to look for in a candidate with over 8 years of experience in C, C++, Linux Application Development?

I need to interview a candidate with over 8 years of experience in Linux using C/C++. What would be the best way to judge such a candidate? Do I need to test his understanding of algorithms? Do I need to test his programming skills by asking to write a program? How should I test his understanding of Linux? ...