linux

Is there a minimal message queue?

Hi, I'm searching for a minimal message queue project. With minimal I mean something along this: No/Minimal setup / administration Uses http (so I don't need protocol/queue specific libraries/code) (Persistence would get extra points ;) (It should run on linux.) Is there such a project available? I once heard about a message queu...

What do I need to fill in when using IP_HDRINCL

I'm awaiting the arrival of "Linux Network Programming" but in the meantime I thought I'd ask my brothers (and sisters) here for some info. If I have constructed a raw packet structure containing the ethernet header, ip header and tcp/udp/icmp header. What do I actually have to fill in when using the option IP_HDRINCL? At first I thought...

Java application monitoring via SNMP

Java application and monitoring via SNMP. I want to do possibilities to monitoring my Java application via SNMP. I think, i should write to MIB messages from my application. Is it right? And how it usually implemented this? Thanks! ...

wireshark and tcpdump -r: strange tcp window sizes

I'm capturing http traffic with tcpdump and am interested in TCP slow start and how window sizes increase: $ sudo tcpdump -i eth1 -w wget++.tcpdump tcp and port 80 When I view the dump file with Wireshark the progression of window sizes looks normal, i.e. 5840, 5888, 5888, 8576, 11264, etc... But when I view the dump file via $ tcpd...

configure linux box to have a static ip

hi, I need to make a machine on my home network use a static ip address. It's a linux box. My question is can I make just my linux box use a static ip address where the rest of my network (which is comprised of all windows machines linked up to a router) uses dynampic ip's? It not so much the info on configuring the linux box to use a...

open limitation based on file size

Is there any limitation on "open" based on file size. ? My file size is 2 GB will it open successfully and is there any timing issue can come ? filesystem is rootfs. ...

listen for harware change events from the linux kernel or udev

I need to run some code on storage device mounting and unmounting. How can i listen for these events on linux? I was thinking on adding some udev rules to run some script (any know-how in this matter is appreciated). But I would much rather listen for events from the kernel in some netlink socket with my daemon (just like udev does...

Can I use Ubuntu to create a Apple iPod/iPhone/iPad app?

I was wondering if I could make some money by creating an iDevice app and posting it on the Rock your Phone Store. Which language should I use and are there exceptions to it. ...

grep command working in my testdir but not in the "real" directory why`?

I just thought I had found my solution because the command works in my test directory. grep -H -e 'author="[^"].*' *.xml | cut -d: -f1 | xargs -I '{}' mv {} mydir/. But using the command in the non-test-direcory the command did not work: This is the error message: grep: unknown option -- O Usage: grep [OPTION]... PATTERN [FILE]... ...

Cross-platform svn management (Makefiles & Visual Studio)

I'm working on a little game called freegemas, it's an open source version of the classic Bejeweled written in C++ and using gosu as the graphic API. I've been developing it under Ubuntu Linux as usual, but the other day I wanted to give it a try and I compiled it on Windows using Visual Studio 2005 (which I had never used before). The p...

Does usleep create thread cancellation point?

According to the Linux manpages, only the following functions are thread cancellation points: pthread_join, pthread_cond_wait, pthread_cond_timedwait, pthread_testcancel, sem_wait, sigwait. In my test program, thread exits on usleep. Thread function: void* ThreadFunction(void* arg) { int n = 0; pthread_setcancelstate(PTHREAD_C...

Not able to read data through serial port

Dear all, I am to read data on serial port. My setup OS: Ubuntu linux Device 1: BeagleBoard Device 2: My laptop I am using a serial to usb converter. Serial device on BeagleBoard: ttyS2 Serial device on Laptop : ttyUSB0 I did a simple thing to test the connection, I ran minicom on both the machines. when I type something on Beagl...

Use gprof on a .so library?

Hey, I'm building a .so plugin and would like to profile it using gprof. At the moment, I don't have the ability to rebuild (with the -pg option) the executable that links to it. Is it possible to use gprof to profile just this .so file once it's loaded up and linked to? ...

Is there a Linux console command line MVC framework?

Is there a framework for developing Linux console application, where controllers are console commands and views are their stdout output? ...

How to best server >10,000 iPhone clients from server (not web server)

I'm trying to build a server that will handle many concurrent connections to iPhone clients without multi-threading. I will be sending messages to all clients approximately every 10-30 seconds, but most messages will be identical or very similar and easy to sort. Given the setup of high-concurrency but low need for data sorting, I am t...

Visually improving emacs

Hey all, I'm looking for a more visually appealing emacs. Is there anything I can do to make it look more aesthetically appealing or more up to date? I understand that its not how it looks but how it functions that counts, but I was wondering if anyone had any success in beautifying emacs. My platforms are Linux and Windows. I'm aware ...

Is there a shell script that can monitor partition usage?

When I used to use cPanel it would send me an email when any partitions were approaching full. Is there a script out there that monitors df output that I can put in a cronjob? Thanks ...

c++ - How to serialize an object to send over network

I'm trying to serialize objects to send over network through a socket using only STL. I'm not finding a way to keep objects' structure to be deserialized in the other host. I tried converting to string, to char* and I've spent a long time search tutorial, posts in internet and until now I found nothing. Is there a way to do it only with...

getting HTML source or rich text from the X clipboard

How can rich text or HTML source code be obtained from the X clipboard? For example, if you copy some text from a web browser and paste it into kompozer, it pastes as HTML, with links etc. preserved. However, xclip -o for the same selection just outputs plain text, reformatted in a way similar to that of elinks -dump. I'd like to pull ...

C++ Portability between Windows and Linux

I have a question about writing programs to be portable between windows and linux. Recently I have realized that if you write a program that uses any sort of external library, if that library doesn't have a linux version (or a windows version when developing in linux) then you're screwed. Here then is my question: if I write a program ...