linux

Need to upload a single file across 2 load balanced servers.

Hey guys, Currently my company has a 3 server set-up. 2 web boxes behind a load-balancer and another box not behind the load-balancer (used for Admin, CMS and stats). Due to the state of funds at the moment we are looking to decommission our single box which is not behind the load-balancer. The box has our CMS on it and a media subdomai...

integrated windows authentication equivalent for java and linux

Hi All, For windows there is integrated windows authentication. We can configure active directory and join the cleint to the domain. Then all the services on the client that communicates with the iis on the server can use the integrated authentication transparently. Is there something similar for java, linux and some application server...

Changing temporary file folder location in linux (for everything on the system)?

Currently its /tmp How can I set it to /anythingelse so that all applications use that subsequently? ...

Capture virtual printer output on linux

I'm writing a Java screen-scraping application for a 3270 mainframe and rather than scroll through page after page of 80x24 chars I'd like to output all pages to a printer and then capture and parse the printer output. The 3270 client has a print option, so I just need to virtualise a printer device and then somehow capture the output....

Using OpenGL without a window manager in Linux.

I've just finished the LFS book and my Linux system is working right now. I want to use OpenGL to display graphics on the screen, while the only installed package right now are those described on http://www.linuxfromscratch.org/lfs/view/stable/chapter03/packages.html. I don't want to install something like Gnome, KDE or X.org. Instead, ...

Have bash script autocomplete prompts

Is it possible to have a bash script automatically complete prompts that would normally be presented to the user with default actions? Currently I am using a bash script to call an in-house tool that will display prompts to the user (prompting for Y/N) to complete actions, however the script I'm writing needs to be completely "hands-off...

signal acknowledgement

how to kill a child process on sending an interrupt with key stroke and then sending a signal to parent that the child process has been killed? ...

EMGU library OPENCV problem with native memroy management - does really work with mono?!

Hi to everyone, we are working in a project involving the use of EMGU and in particoular the SVM functions of OpenCV and we have a problem using Mono on a Ubuntu platform and we don't have this problem on windows. The problem appears when we call the Emgu.CV.ML.SVM.Train method. All the parameters are correct and we canno't debug the wra...

Does sdl support ARM lcd video display?

Hi, am new to SDL and I have used the spcaview code to get video stream from a camera to a FriendlyARM LCD but the video display is not good and moves very fast. It however works well on the computer screen. I was wondering if SDL supports LCD display; if yes what am I missing?. If no, what can I do because I need to stream video from a ...

how to get ubuntu file timestamp in millisecond

Linux friends, how do you guys get a file timestamp in the resolution of milliseconds in Ubuntu? When I tried the command "stat" on my system, I get: File: `tmp.dat' Size: 14 Blocks: 8 IO Block: 4096 regular file Device: 811h/2065d Inode: 13895454 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 1000/ yqi...

View large text files online in web browser (logs, linux)

Does anybody know any linux (php preferred) simple app to view large files online in browser? Like phpMyAdmin(MySQL) but for files. My php application writes some debug, error and informational events to logs. I know, I can log into database, but for me personally appending file seems as more reliable (because it simple) solution for th...

access/view linux ide notebook drive from windows box

hey. trying to figure out if/how i can view the contents of a notebook linux ide from the usb port of a windows box... should be straightforward.. don't want to write to the disk, just read.. also.. if i have a linux box, and i assume that the drive was formatted, using the default processes (using fedora/centos), what's the basic cmd...

Creating a website to communicate with an embedded device

I'm currently working on a project where I'm trying to control an embedded device through an Internet facing website. The idea is is that a user can go to a website and tell this device to preform some kind of action. An action on the website would be translated into a series of CLI commands and then sent to the device. Communication cou...

How do I tell `gar` or `ar` to output `elf32-i386` output?

When I look at the help output from gar -h, it tells me: [...] gar: supported targets: elf64-x86-64 elf32-i386 a.out-i386-linux [...] How can I instruct gar to create an elf32-i386 output? ...

C++ equivalent of mbsrtowcs and wcsrtombs using locales and streams

Is there a C++ equivalent of mbsrtowcs and wcsrtombs type functions using std::locale and C++ streams functionality? I'm trying to figure out the best way to convert back and forth between std::string and std::wstring using the standard library. It seems std::locale can almost do this, but I'm a little iffy on some details, or on what l...

opengl es 2.0 on linux

I would like to develop openGLES 2.0 apps on my ubuntu machine. I could not find any libraries/emulators that support ES 2.0 yet. Any suggestions? ...

How to substitue character matches with trailing characters from the same text line?

I'm using pdftotext to convert Spanish language text. Characters with accents or tildes are output in a systematic way that requires further conversion. Accents and tildes appear in the converted text in the correct position but without the letter. The letter almost always appears at the end of the output line. When it doesn't, I can...

rlwrap hangs jobs while running at the background

I have a problem with rlwrap (see the man page here). Consider this situation: empty.tcl is an empty file. At bash this line tclsh empty.tcl & runs the job in the background and exits it, so i get this prompt [1]+ Done tclsh empty.tcl. While this line rlwrap tclsh empty.tcl & runs the job in the background and ...

creating symbolic link from select file type in a folder

i have a folder with many different types of files...but i want to create a symbolic link of only files that are of a certain file type (the data files with extension *.txt.mrg) in this case...i want to have the same file names for the symbolic links as the original files...how do i do this? i want to be able to create all the symbolic l...

howto send data to (linux based) embedded system

Hi all, i got a Linux Kernel from http://www.at91.com/linux4sam/bin/view/Linux4SAM/LinuxKernel running on my ARM board. I have a connection through serial port to my host system windows, i also got a SAM-ICE JTAG debugger device. so how can i send some data from my windows to my embedded linux? ...