linux

Telephone user identification process

I have no idea where to start so apologies for what might be a vague question. I would like a telephone verification system like elance.com where a user gets a telephone call, and has to either input the numbers displayed on his computer screen, or he has to type in the numbers spoken to him on the phone. I need this as I want my appli...

Java or mono for a new project

Hi, I need your advice about framework selection (Java vs Mono) for a new large scale web project which will be developed for linux hardware. Which platform do you prefer and why ? Best Regards, Sirmak ...

How to run processes piped with bash on multiple cores?

I have a simple bash script that pipes output of one process to another. Namely:. dostuff | filterstuff It happens that on my Linux system (openSUSE if it matters, kernel 2.6.27) these both processes run on a single core. However, running different processes on different cores is a default policy that doesn't happen to trigger in th...

Determining if .NET socket is currently connected bug?

Hi, I'm trying to find out whether a Socket is currently connected - according to the MSDN docs for Socket.Connected - I should do the following: // This is how you can determine whether a socket is still connected. bool blockingState = client.Blocking; try { byte [] tmp = new byte[1]; client.Blocking = false; client.Send(...

Java: Howto know where the jar is located in Linux

Hello, In Linux, the JVM sets the working direcory equal to the homefolder from the user. In Windows is this the folder where the jar is located. How can I find where the jar (from my app) is located to change the working dir? Martijn ...

Low Memory throughput in Linux-Embedded ( ARM ).

Hi Friends, I am using ARM926EJS. I am getting 20 % more memory speed in memory copy test, without Linux ( Just as a Getting Started executable). But in linux same code is running 20% slower. Code is /// Below code just performs burst mode memcopy test. void asmcpy(void *a, void *b, int iSize) { do { asm volatile ( ...

Perl regular expression problem

I have this conditional in a perl script: if ($lnFea =~ m/^(\d+) qid\:([^\s]+).*?\#docid = ([^\s]+) inc = ([^\s]+) prob = ([^\s]+)$/) and the $lnFea represents this kind of line: 0 qid:7968 1:0.000000 2:0.000000 3:0.000000 4:0.000000 5:0.000000 6:0.000000 7:0.000000 8:0.000000 9:0.000000 10:0.000000 11:0.000000 12:0.000000 13:0.00000...

Understanding Linux /proc/id/maps

I am trying to understand my embedded linux application's memory use. The /proc/pid/maps utility/file seems to be a good resource for seeing the details. Unfortunately I don't understand all the columns and entries. Is there good resource/documentation for the proc//maps utility/file? What does the anonymous inode 0 entries mean? T...

Use printf to display off_t, nlink_t, size_t and others

I have been programming an FTP server in my free time. But I have a problem with sending listings of a directory. I use the Unix format, also used by ls drwxr-xr-x 28 kasper kasper 4096 2009-08-14 01:32 Music drwxr-xr-x 4 kasper kasper 4096 2009-09-06 13:52 Pictures drwxr-xr-x 14 kasper kasper 4096 2009-09-09 18:49 Source drwxr-xr-x 2...

Cannot build "cyrus-sasl-2.1.23" on SUSE Linux 10.0

I downloaded the source code from "ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/". Configure went well but when i build I end up with following errors: digestmd5.c:852: error: 'des_context_t' has no member named 'keysched' digestmd5.c:853: error: 'des_context_t' has no member named 'keysched2' digestmd5.c:854: error: 'des_context_t' has n...

Swap space in 64 bit Linux

Hi All, I have a 64 bit Linux (SUSE 10) dual processor. When I run my process it uses around 4 G of virtual memory. Only 3G is resident memory. Rest around 9G memory is free. How to load this 1 G also in RAM? Why it is still in swap space why kernel can't load this into RAM when all the RAM is available. Rahul ...

Can you recommend a free light-weight MySQL GUI for Linux?

I'm setting up my first development Linux box - a netbook actually. I'm quite fond of MySQL Yog for Windows, but that's not on linux. I've checked these two threads What is the best free SQL GUI for Linux (MSSQL, MySQL, Oracle, Etc…) and Developer tools to directly access databases I'm not interesting in something large and resource hu...

URL mapping - in browser

i wanna to map a URL into a simple on e.g: i have a URL : www.test.com/var?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=SXz i wanna to write instead something like: www.test.com Thanks in advance ...

Problem with Awk & Grep

I like to get window pid (only firefox) from wmctrl, i tried wmctrl -lp | grep Firefox | awk -F" " "{print $1}" but output not match my expect. Help please. beer@beer-laptop# wmctrl -lp 0x0160001b -1 6504 beer-laptop x-nautilus-desktop 0x016000bd 0 6504 beer-laptop conference - File Browser 0x03e00003 0 0 N/A XBMC Me...

Problem in Line Editor in Qt?

Hi all, I am trying to set the text of line editor in Qt on linux. It works for all but 2 line editors which for some strange reason don't display the text even when we set the text using mValueLineEdit->setText("Hello") I have debugged each and every line of code in my application but nothing fishy was found.I checked after setting ...

How to get output from external command combine with Pipe

I have command like this. wmctrl -lp | awk '/gedit/ { print $1 }' And I want its output within python script, i tried this code >>> import subprocess >>> proc = subprocess.Popen(["wmctrl -lp", "|","awk '/gedit/ {print $1}"], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) >>> proc.stdout.readline() '0x0160001b -1 6504 ...

Simple Server Monitoring with Java

I'm trying to find a solution that allows me to monitor resource consumption of a server. Preferably, the metrics I'm wanting to obtain are network utilisation IO, and if possible CPU usage/load average and disk IO. The only other requirement I have is that this information be obtainable by Java so it can be manipulated, and at least wo...

Linking with a different .so file in linux

I'm trying to compile a piece of software which has the standard build process e.g. configure make make install The software requires a library e.g. libreq.so which is installed in /usr/local/lib. However, my problem is I'd like to build the software and link it with a different version of the same library (i have the source for the ...

Special considerations for using Python in init.d script?

Are there any special considerations for using Python in an 'init.d' script being run through init? (i.e. booting Ubuntu) From what I understand through googling/testing on Ubuntu, the environment variables provided to an 'init.d' script are scarce and so using "#!/usr/bin/env python" might not work. Anything else? ...

parsing proc/pid/cmdline to get function parameters

Hello all, I'm trying to extract the parameter with which an app was called by using the data inside cmdline. If I start an application instance like this: myapp 1 2 and then cat the cmdline of myapp I will see something like myapp12. I needed to extract these values and I used this piece of code to do it pid_t proc_id = get...