linux

Socket performance on linux

Following on from my last question: http://stackoverflow.com/questions/2251051/performance-issue-using-javas-object-streams-with-sockets I'm looking at socket performance on Linux. With the above example I get a round trip time of ~65μsec. If I make two fifos on the file system this goes down to ~45μsec. The extra time using localhost...

How to pass argument with exclamation mark on linux?

I have simple python script that receive username and password as argument. But my password contains two exclamation marks.When i call script: salafek@dellboy:~/Desktop/$ emailsender.py -u username -p pass!! command that I enter earlier replace exclamation marks salafek@dellboy:~/Desktop/$emailsender.py -u username -p "passemailsender...

Reading from a file in assembly

I'm trying to learn assembly -- x86 in a Linux environment. The most useful tutorial I can find is Writing A Useful Program With NASM. The task I'm setting myself is simple: read a file and write it to stdout. This is what I have: section .text ; declaring our .text segment global _start ; telling where pr...

Dynamic linking a library - successful when executable is built, same setup fails when another .so is made

I am writing a numerical code, in which I would like to use a third-party-written shared library. I am working on an x86_64 k8 architecture, under CentOS. The desired target that I would like to build would be either a Python or a Matlab extension module, which are, from what I understand, gcc-built dynamically-linked shared libraries, w...

Linux/Perl: Additional output buffers other than STDOUT and STDERR?

Out of curiosity, is it possible to create, instantiate, or otherwise access additional output buffers besides STDOUT and STDERR from within a Perl script? The use case would be additional outputs to pipe in to files or other commands, eg ./doublerainbow.pl 3>full_on.txt 4>all_the_way!.txt ...

Gnome-terminal - How to Copy selection to clipboard automatically?

I want to make gnome-terminal behave in such a way that when the end user selects a region on the terminal (with a mouse or mouse key), it gets automatically copied into the clipboard. Is it possible at all? If so, how? ...

OpenAL output to multiple devices (Linux)

I'm developing a Linux application on a computer with two audio cards and I want to use both at once in OpenAL, each in its own context. When I call OpenAL's enumeration extension, alcGetString(NULL, ALC_DEVICE_SPECIFIER), to get a list of possible output devices, the list only consists of 'ALSA Software' and 'OSS Software'. I know these...

how to use irc, do u know any online chat tools for linux online help

Can you please told we how we can use the irc (Internet relay chat) this name was just new to me ***what i heared about this is that this is online community for sharing various queries ... is there any other utilty through which we can share linux related queries through online chatting. ...

Any way to run shell commands on android programmatically?

Is there any way to run terminal commands on my application and then access the data on my UI? Specifically top. ...

How to configure pam in linux such that the login id and password should not be same?

How to configure pam in linux such that the login id and password should not be same? ...

mmap regions allocating from reserved stack space?

In our product we use a malloc implementation that relies exclusively on mmap for memory allocation. We also do a fair use of allocaing. We've just encountered a problem where mmap will allocate regions that should be reserved to stack space (thus causing very bad things to happen when one of our larger alloca's spills into the malloc'...

Nautilus file explorer and GtkIconView

Hello all, In order to learn GTK programming, I am building a simple GTK application that reads files in a directory and displays them as icons. I am trying to build something like the Nautilus icon view file explorer. I know the right pane uses GTK IconView but what does the left pane use to display list of places? Also I have looked at...

Creating binary with CMake removes runtime path

Hi, I am using CMake to build a program on linux. The program compiles successfully and runs from the project build directory. The program is linked with a custom library in the directory ${HOME}/build/lib I have an install stage with: install(TARGETS ProgName RUNTIME DESTINATION bin) When I run make install the program gets put in ...

What changes needed to support IPv6

What changes website needed to support IPv6 and IPv4? Also using socket service in java what changes i require to accept both type of connection ? Environment OS - Linux Webserver - Tomcat 5.5 ...

fuse utimensat problem

Hi. I am developing fuse fs at python (with fuse-python bindings). What method I need to implement that touch correctly work? At present I have next output: $ touch m/My\ files/d3elete1.me touch: setting times of `m/My files/d3elete1.me': Invalid argument File exists "d3elete1.me": $ ls -l m/My\ files/d3elete1.me -rw-rw-rw- 1 r...

how to translate fedora yum source into RHEL?

I use fedora 13 on my laptop, and I use 'yum' to install "recordmydesktop" just for fun.One day ,my boss ask me to install "recordmydesktop" into his computer(whose operator is Redhat Enterprise5.2) . Oh ,god ,the yum in his computer does not work! I can't "~#yum install recordmydesktop"!I know the reason is in the 'yum's source',but how...

HTML to XHTML Mobile Profile Converter

Hi! I looking for Linux Library/Service that can make conversion of supplied HTML to XHTML-MP format. It will be perfect if this library also know to make resizing of embedded images. ...

Python Script Calling Make and Other Utilities

Hi all. I have a python script that invokes the following command: # make After make, it also invokes three other programs. Is there a standard way of telling whether the make command was succesful or not? Right now, if make is successful or unsuccessful, the program still continues to run. I want to raise an error that the make ...

Best (and short) book on network security

For Linux and maybe other platforms. Could you suggest? ...

bash: output \n \t characters from mysql query

Hi there, I currently have $ echo "`echo "use joomla; describe jos_content" | mysql --batch -u root -ppassword`" and I would expect output that starts like this Field\tType\tNull\tKey\tDefault\tExtra\n but instead I get Field Type Null Key Default Extra I have tried all sorts of items at the moment. I could use mysql --h...