linux

How to join webcam FLVs

I want my website to join some webcam recordings in FLV files (like this one). This needs to be done on Linux without user input. How do I do this? For simplicity's sake, I'll use the same flv as both inputs in hope of getting a flv that plays the same thing twice in a row. That should be easy enough, right? There's even a full code exa...

Good Java Practices in Ubuntu

Hey all, my Computational Science course this semester is entirely in Java. I was wondering if there was a good/preferred set of tools to use in ubuntu. Currently I use gedit with a terminal running in the bottom, but I'd like an API browser. I've considered Eclipse, but it seems to bloated and unfriendly for quick programs. ...

Has Ubuntu reached the point yet where it's user friendly for most users?

I remember once before (1-2 yrs ago) if you needed to configure ANYTHING in Ubuntu, you needed to go use the command line. How is it today? Can I use it as my full desktop? Can I take it to presentations around the country and not embarrass myself because the projector won't work? Does it work well when I have to connect to various ...

How do I figure out which /dev is a USB device?

I want to mount a USB drive, two of them and I need two different mount points. Unfortunately, the Linux kernel underwent a name change and I can't figure out which /dev location is the right one. Is there a way to look through dmesg or /proc or somewhere else to find out which device node is a USB drive. (I'm using ArchLinux if that he...

Advice on buidling an Interactive Voice Response (IVR) system using Asterisk

What are some good resources that i can start with? I don't have any hardware yet, What advice can you give me if i want to start development/testing without hardware? ...

Remote Linux server to remote linux server dir copy. How?

What is the best way to copy a directory (with sub-dirs and files) from one remote Linux server to another remote Linux server? I have connected to both using SSH client (like Putty). I have root access to both. ...

Take a screenshot via a python script. [Linux]

I want to take a screenshot via a python script and unobtrusively save it. I'm only interested in the Linux solution, and should support any X based environment. ...

Get two linux boxes talking over a serial port

What is the best way to setup one linux box to listen on its serial port for incoming connections? I've done a lot of googling but I can't find the right combination of commands to actually get them to talk! My main objective is to provide a serial interface to running instances of kvm/qemu VMs which currently only have a VNC interface (...

how could I intercept linux sys calls?

Hello ! Besides the LD_PRELOAD trick , and Linux Kernel Modules that replace a certain syscall with one provided by you , is there any possibility to intercept a syscall ( open for example ) , so that it first goes through your function , before it reaches the actual open ? ...

Best Budget SOA Web Application Platform For Mac + Linux + Windows?

I am a Windows guy with an ASP.NET background but I have a hosted Linux server (dedicated) on the Internet, and meanwhile I'm spending more and more time on my Mac. I want to start doing web app and web service (iPhone-to-Internet services) development on the Mac, as well as some server development on my Windows laptop, and then deploy o...

Which text/code editor on Linux is most similar to TextMate?

I'm using TextMate on Mac OS X, which I am very happy with, but I would also like a nice editor on my Ubuntu box. So I have been looking for something like TextMate, which is very simplistic in its interface but very powerful beneath that surface, with a plugin system and all. Is there any similar editor for Linux? ...

Execute program from within a C program

How do I run another program from within my C program, I need to be able to write data into STDIN of the programed launched (and maybe read from it's STDOUT) Not sure if this is likley to be a standard C function, but I need the solution to work under Linux. Thanks Simon ...

Determine the size of a pipe without calling read()

I need a function called SizeOfPipe() which should return the size of a pipe- I only want to know how much data is in the pipe and not actually read data off the pipe itself. I thought the following code would work fseek (pPipe, 0 , SEEK_END); *pBytes = ftell (pPipe); rewind (pPipe); but fseek dosent work on file descriptors. Anothe...

What can I use as a Notepad++ alternative in Linux (ubuntu)?

I got addicted to notepad++ on windows and I've recently moved to Ubuntu. I'm missing a tool as such. ...

How to determine visible region of a Windows in X Windows / Linux?

I have several nested X Windows - let's say - a scrollable window within a scrollable window (see the example below). In such case the main window contains (at least) the major scroll bars and the (major) drawing area they control. This drawing area on its turn contains (at least) a scrollable window batch - a (minor) main window, contai...

Embed data in a C++ program

I've got a C++ program that uses SQLite. I want to store the SQL queries in a separate file -- a plain-text file, not a source code file -- but embed that file in the executable file like a resource. (This has to run on Linux, so I can't store it as an actual resource as far as I know, though that would be perfect if it were for Windows...

can't delete directory under linux due to broken files

kt@rails-ubuntu:~/rails/ledger/releases/20080820144914/.git/hooks$ ls -al ls: cannot access post-commit: No such file or directory ls: cannot access update: No such file or directory ls: cannot access post-update: No such file or directory ls: cannot access commit-msg: No such file or directory ls: cannot access pre-rebase: No such file...

X/Gnome: How to measure the geometry of an open window

Is there a standard X / Gnome program that will display the X,Y width and depth in pixels of a window that I select? Something similar to the way an xterm shows you the width and depth of the window (in lines) as you resize it. I'm running on Red Hat Enterprise Linux 4.4. Thanks! ...

Not able to delete directory

I am having a frequent problems with my web hosting (its shared) I am not able to delete or change permission for a particular directory. The response is "Cannot delete. Directory may not be empty". I checked the permissions and it looks OK. There are 100s of files in this folder which I dont want. I contacted my support and they solv...

how do you search for files containing dos line endings (CRLF) with grep under linux?

something like grep -IUr --color '\r\n' . the above seems to match for literal 'rn' which is not what is desired the output of this will be piped through xargs into todos to convert crlf to lf like this grep -IUrl --color '^M' . | xargs -ifile fromdos 'file' ...