linux

Linking problem with FreeMagic & GraphicsMagic

Whenever I link in either FreeMagic & GraphicsMagic, i get a SIGABRT as soon as main starts, possibly even before. Any ideas? It is not sufficient to just add the link flags, but for instance adding the call to FreeImage_Initialise(FALSE); somewhere in main() makes the program die in a SIGABRT. Stacktrace from where it crashes: #0 0...

When should I use TCP_NODELAY and when TCP_CORK?

Hi, I understood that both of them disable Nagle's algorithm. When should/ shouldn't I use each one of them? Thank you. ...

Find Help with multiple finds + multiple prunes

Hi! I need to come up with a find command that includes a few prunes as well as a find for multiple files. Here's what I need to come up with, in one command: ./virtfs -prune -o -type f -name error_log \( -path "./virtfs" -prune -o -path "./*/mail" \) -prune -o -type f -wholename '*/.trash/*' -path ./virtfs -prune -o -type f -ireg...

Developing software for an RFID reader with open-source Linux support: Which direction to go, hardware-/system-wise?

I'll be working on a project that will work with RFID readers. The target platform for our software is Debian stable (currently 5.0.6). I have investigated the following options so far: Parallax RFID card reader (USB) • Here I'm not quite sure about the Linux support. The manual PDF from that link ("useful links") references this ven...

sqlmetal error with given key was not present in the dictionary for tables with foriegn key defined

I am using sqlmetal on Ubuntu Linux and want to generate the dbml for a sqlite database that has just 2 tables created as follows: CREATE TABLE "user" ( "uid" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" TEXT NOT NULL ); CREATE TABLE "bridge" ( "pkey" INTEGER NOT NULL, "rkey" INTEGER NOT NULL, "location" TEXT, PRIMARY KEY (pkey...

how to read the header block gcc compiler put to .o .a and an executable

I'd like to read the header block gcc put to the beginning of all .o .a and executables. In those days, on Solaris, there was an utility for this purpose. On linux, is similar utility available? ...

Portable JRE on Linux - possible?

I am making a remastered distribution that was at first packed with Sun Java, however I decided I would like Java to run from a folder on the hard drive with my application instead. I see there's a portable Java for Windows - how can I do this with Linux? I haven't tried simply putting the whole folder in there but that seems like an ugl...

Launching multiple processes of shell

Hello, I'm trying to use python to launch a command in multiple seperate instances of terminal simultaneously. What is the best way to do this? Right now I am trying to use the subprocess module with popen which works for one command but not multiple. Thanks in advanced. Edit: Here is what I am doing: from subprocess import* Popen(...

Google analytics; Short setup Q

I have just added the code to my index.html and uploaded the file. But Google Analytics Status says the code is not installed (not found). I have a VPS (own server) which I manage myself. Thing is, in my case, I have a setup like this: IP adress at a VPS provider Domain name at an ISP A-Pointer to point my domain to my IP adress...

how to include cutil.h in linux

I don't know how to include cutil.h in linux, i know where it is, but I don't know how to include it. Ideas please. ...

GCC Handling Float comparison differently at different Optimization Levels

I have some simple code that is comparing two float values to illustrate a problem I see with GCC's optimization and am hoping someone can help me figure out why the output it produces is different under some repeatable circumstances. First, I know it's bad to compare float values with == because you can be off by some very small amou...

How would I use PHP to authenticate with Linux users and passwords?

Say I wanted to create something like how cPanel works, it uses the username and password from the system. You can run 'passwd user' on the server, and the password would still work with cPanel and FTP (not necessarily MySQL, but you get the point) How would I accomplish this in PHP? I haven't the slightest idea, besides running /bin/...

Help with Make error

When I run make I get an error: root@vagrantup:~/npm-1285112852/scripts# ./install.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 568k 100 568k 0 0 267k 0 0:00:02 0:00:02 --:--:-- 466k node cli.js ca...

Undeclared identifiers in C

Hi all I've been trying to compile a program that uses PCL. However, I keep getting this error: test.c:23: error: ‘PCL_CNT_TYPE’ undeclared (first use in this function) test.c:23: error: (Each undeclared identifier is reported only once test.c:23: error: for each function it appears in.) test.c:23: error: expected ‘;’ before ‘i_result_...

how i can add Add text at the beginning of each line?

how i can add Add text at the beginning of each line? for example:- i have file contain:- /var/lib/svn/repos/b1me/products/payone/generic/code/core /var/lib/svn/repos/b1me/products/payone/generic/code/fees /var/lib/svn/repos/b1me/products/payone/generic/code/2ds i want it to become:- svn+ssh://svn.xxx.com.jo/var/lib/svn/repos/b1m...

cancel password of svn list

how i can cancel the password of svn list .... when i execute svn list it is Requests the password twice... i need to execute it without password ...

How to check if a shell command executed properly or not?

#!/bin/sh tar=$1 if [ -f $tar ] then tar xvf $tar else exit 1 fi ... <more code> I need a conformation that the tar actually happened successfully, otherwise abort the execution of the script. The tar file extract might not go through because some problems with tar command access issues with $tar Do Linux utilities have s...

XML -> C parser generator

I have a c program, that gets its settings from an XML file. Currently I'm using Xerces to traverse the data, but it's getting quite tedious to map each XML-value to a variable. The same XML is also read by a Java program, which is much more convenient due to JAXB creating all the necessary classes and such in Java. I'm looking for some...

send a file using c in an adhoc network

i want to send a file using c in an adhoc network in mt linux platform...plz help me with the header files and functions that i need to use ...

how i can make svnlook tree view just 2 level ?

how i can make svnlook tree view just 2 level ? ...