linux

Suggestions for *nix framework to write a menu interface

I am going to write a full-screen menu interface to run on Linux and *BSD which is controllable primarily by a game pad and wanted suggestions for a language/framework that is well suited to this problem. Each menu item will launch an external program. It would preferably be easily theme-able, and load menu data from text files, perhap...

walking through a building created in google sketchup

I am looking for a way to take a model of a building and allow people to walk through it like a video engine. We are also looking to run this on a viz wall, which requires OpenGL on Linux and be open source. But Something running on windows or closed source on Linux would be better than nothing. I have found Panda3D, but I am not sure...

Locating etc and share directories on Linux

I'm writing a program for Linux in C++, and I need to store some additional data, such as images. Stuff like that is usually in /usr/share on Linux. The user can decide where to install the software (I'm using CMake), thus I should either use /usr/share, /usr/local/share, /home/theuser/somefolder/share or whatever, depending on where he...

How do you keep track of your progress while reading about a new technology or language?

I just started reading an book on Linux kernel in my free time. Its my first book on this topic so to me everything seems important so I got overloaded by the information very soon. I have tried to quit many times but really cant as I love this subject. My question for all the experts here is how you tackle this while reading new topic/...

Looking for a small, x86 PC104 board that has data acquisition

I'd really like to find a small board (probably EBX size or smaller) that uses an x86 processor, can run Linux, has a PC/104 expansion bus, and has around 10 analogue and digital I/O ports. The only boards I can find that meet this criteria are from a company called Diamond Systems, but they seem to be having a lot of issues with their ...

Add to $PATH in linux so that it's available to daemons

Where can I add to a $PATH so that it's available to all daemons? So that it's "included" or "sourced" before daemons start? Many thanks! ...

OS X permission denied for /usr/local/lib

I'm looking for any advice/intuition/clues/answers on a permission issue that has been plaguing me ever since I switched over to a new Macbook pro. Here's the dilemma. Certain programs copy libraries under /usr/local/lib during install and upon running these programs I get a crash which I believe is related to permission restrictions to ...

SWT ExpandListener executes before collapse occurs on Linux

This is a simple executable snippet that shows the issue. When using the ExpandBar the desired outcome is to resize the window when there is a collapse or expand. It works properly on Mac but does not on Linux. It looks like the ExpandListener is called before the collapse/expand actually occurs and therefore the pack() resizes inco...

Linux kernel that runs python file for init

Would it be possible and not incredibly difficult to build a linux kernel, with a python interpreter built in or accessible from the kernel, that could run a python file as it's init process? ...

Send message from linux terminal to some web server

I am trying to figure out how I can post a message to an http server from the linux shell. What I want is for the shell to post the message and then I can write a small php program to reroute the message to its intended recipient based on the contents and the sender. I cant seem to find a command to do this in Linux. I would really li...

gcc, static library, external assembly function becomes undefined symbol

Hello everybody, I have a problem with g++ building an application which links to a static library, where the latter shall contain some global functions written in external asm-files, compiled with yasm. So in the library, I have #ifdef __cplusplus extern "C" { #endif extern void __attribute__((cdecl)) interp1( char *pSrc ); extern voi...

Find and Copy a String within HTML code

I'm trying something new, I would normally do this in C# or VB. But for speed reason I'd like to do this on my server. Open File terms.txt Take each item one at a time from terms.txt and open a url (possibly curl or something else) and go to http://system.com/set=terms View the HTML source and extract pic names (stringB). Look for ima...

Can any one tell me the details about the stackframe layout of ARM on linux?

I tried to googled these, but failed. The msdn have the stackframe layout of arm on WinCE.msdn But It's not i want. ...

Filtering Rows Based On Number of Columns with AWK

I have lines of data that contain single column and two columns. What I want to do is to extract lines that contain only 2 columns. 0333 foo bar 23243 qux yielding only: 0333 foo 23243 qux Note that they are tab separated, even for lines with only one column you have tab at the beginning. What's the way to do it? I tried this...

Recommended IDE for R under linux

Hi, I found this question from over a year ago, but I wonder if there's anthing new under the sun. Spedifically, I do not get along with Emacs so well... p.s. I use eclipse for java and perl programming. ...

Create multiple SquashFS partitions

Hello I'm working on embedded platform (Broadcom's bcm5358u processor with MIPS core), where I need extra partitions for the purpose of further upgrade procedure. The filesystem used is SquashFS, so I modified 'struct mtd_partition' accordingly, which is passed to MTD related code, and I ended up with this: #cat /proc/partitions major ...

Linux: Processes and Threads in a Multi-core CPU

Is it true that threads, compared to processes, are less likely to benefit from a multi-core processor? In other words, would the kernel make the decision of executing threads on a single core rather than on multiple cores? I'm talking about threads belonging to the same process. ...

md5sum of file in Linux C

I want to find md5sum of a file in Linux C, Is there any API where I can send file name to get md5sum of that file. ...

file descriptor polling

Hi, I have created a following program in which I wish to poll on the file descriptor of the file that I am opening in the program. #define FILE "help" int main() { int ret1; struct pollfd fds[1]; ret1 = open(FILE, O_CREAT); fds[0].fd = ret1; fds[0].events = POLLIN; while(1) ...

Perl script usable as a program and as a module

I have a Perl script (standalone program) which contains some subs I'd like to reuse in other scripts. Due to limitations of the execution environment, I can't move the functions to a common .pm file. Is it possible to differentiate whether the script was run as a standalone program or it was requireed/doed by another script? The only ...