linux

How can I modify the keyboard repeat delay in a linux console, with or without ncurses

I'm writing a little pong clone with ncurses and C. I need to find a way to set the keyboard repeat delay to make it easier for a player to move the paddle, otherwise they are stuck hitting the down key and waiting about 50 milliseconds until the key begins to repeat. I've checked the ncurses man pages and documentation, and I can't see...

Can't build readline when trying to install Python 2.6.5 in Debian 4.3.2

I am trying to install Python 2.6.5 on my web server running Debian 4.3.2.1-1. I unpacked the tarball, ran "./configure --prefix /usr/", then ran "make". I saw this message. Failed to find the necessary bits to build these modules: _bsddb _hashlib _ssl _tkinter bsddb185 bz2 ...

server client :socket programming

Hi, i am using Linux fedora 2.6.by using server client (socket) programming ,the LISTEN system call how many connections server accept(default :how many clients) once. Regrds venkat ...

Are the benefits of SFIO over STDIO still valid?

I have just noticed about a library SFIO for a safe and fast IO processing in C. But it is not very up to date. The last version of library is released in 2005 and I couldn't assess that if the claimed benefits of SFIO over STDIO are still valid with comparison to the recent releases of standard IO library. Also Would it be reasonable to...

What's the redundant data in TCP packet?

I am reading "Unix Network Programming" and tcpdump the packet generate by the example. The example is just send out a packet contain string "liha". I read the TCP/IP RFC and found normal IP header is 20B. and normal TCP header except data is 24B. So, there are 8B before string "liha" in the captured packet. Are "0121 3d2a 0120 b43e" ...

How to apply diff made by windows SVN on linux?

On windows i created a multi-file diff with: svn diff > mydiff.diff Then moved it to linux machine (with the same version of the same repo, no changes). How cai i apply it? After executing patch -p0 < mydiff.diff I get the following output: patching file licstat/test/unittest/test_licstatactioncontainers.cpp File licstat/test/uni...

Error compiling m3ua sample app

Hello everyone, I have downloaded this m3ua package from http://sourceforge.net/projects/m3ua/ and i have been getting this error while doing make sctp: struct sctp_event_subscribe has no member named sctp adaptation layer Any clues? Thanks! ...

Auto Executing Script For linux??

My Actual Problem was to auto execute a sh file to another host and return that output in my system. Is this possible?? "" I've to execute file @ host2 and get write input @ host1 "" ...

choosing autoconf and automake versions

Hello guys, I see there are many version of autoconf and automake available in my ubuntu linux. If I want create a new project from scratch, what's best choice, latest versions or older versions? ...

start-stop-daemon problem from www-data

i want to call script start-stop-daemon bla.. from file web example data.php , but process www-data (web oder data.php) wait from file skript who was start-stop-daemon command why, procee bla run but www-data wait answer, have youd idea ...

find with -regex flag ti match files

hi all under /tmp directory I have the following files file1 file2 when I run the following find command with -regex , find command not match the files why? find /tmp -regex '/file(\d{1,3})/' ...

Defining table structure for a database?

Up until now, my experience with databases has always been working with an intermediate definition layer that we have where I work. i.e. SQL wasn't directly written for the table definitions, but generated from an intermediate file which wrote out SQL scripts for creating the appropriate tables, upgrade scripts between schema changes, a...

How can I convert a file pointer ( FILE* ) to a file descriptor (fd)?

I have a FILE *, returned by a call to fopen(). I need to get a file descriptor from it, to make calls like fsync(fd) on it. What's the function to get a file descriptor from a file pointer? ...

Problem in reading from linux serial port....

I am working on robot which has to control using wireless serial communication. Robot is running on micro controller( by burning .hex file). I want to control it using my Linux(Ubuntu) pc. I am new to serial port programming. I am able to send the data but I am not able to read data. few piece of code which is running over micro controll...

Linux - mounting a user space file system(mimicking one :-) ) as a FileSystem

Hi Guys, I have a piece of C code which with a chunk of memory(static array) can mimic file operations (It has APIs similar to fopen/fclose etc). So, any code that is compiled with this mimicking FileSystem can use these APIs as a FileSystem for all their needs :) But I was wondering, if its possible somehow to register these APIs with...

linux time result is not written to file

hi, i am using debian. running my program with time command and want the result of time written to a file, doing as follows: time ./myprog > out.asc ./myprog's output is written to out.asc but not the time's result. is there any way to send the time's output also to out.asc? thanx! ...

Cross-platform Audio Playback in Python

Is there a cross-platform Python library for audio playback available? The operating systems I am targeting are (in order of importance) Windows, Linux, and Mac OSX. The file formats which need to be supported are (in order of importance) MP3, OGG, WAV, and FLAC. Does something like this exist? I have tried a few of the Python libraries...

Graphical Application in Windows, Linux, MacOS

I would like to build a graphical application that must work on at least Windows, Linux and MacOS. I would like to know what do you suggest I should use. I have some experience with Java and C++ but I thought about using Java Swing first. What do you think or further suggest (like maybe tools or frameworks)? I also may be needing to con...

How to execute a very large cron in PHP/Linux environment

Hi here's my problem. I need to transfer a large amount of data (hits) from Redis to Mysql everyday. I can't use daily cron, because it'll timeout due to the large amount of data transferred at one go. Anyone got any idea / solution they implemented to this problem? ...

rotatelogs in lampp

Hi, i'm using lampp and i'm trying to configure the rotation for the apache log files. I've readed about rotatelogs and i've added this in my httpd.conf: CustomLog "|/opt/lampp/bin/rotatelogs /opt/lampp/logs/%Y/%m/%d_access_log 86400 +60" common problem is that i get this error: Could not open log file '/opt/lampp/logs/2010/07/03_acc...