I want to be able to retrieve an SD Card's Serial Number, Manufacturer, and any other information it may provide. Java or just a command to run would be great. Compact Framework does it, but that doesn't help me.
...
Currently what I have a Linux application that was written using Xlib and I needed to add video playing capabilities into it.
What libraries would you recommend that I could use for video decoding and rendering that works well with Xlib?
...
Hi,
I want to learn Java and Linux.
Java itself (as a language) is not a big deal for me as I know pretty well .NET and C# (so the paradigm is similar).
The biggest issue for me would probably be doing Java on Linux platform (I have never used Linux before). I think Ubuntu should be good for me (a friend of mine recommended it).
...
we have a java application running under fedora core 5. the jdk version is 1.5. after installed the chinses/TrueType under the /usr/share/fonts the firefox can display chinese pages but the java application display nothing for those chinese unicode (\uXXXX). I modified the jre/lib/fontconfig.properties.src file to add a line of "appended...
Hi,
I have a requirement to run a java jar on a low privilege user on linux.
e.g. If I am currently logged in as a 'root' user and want to execute a shell script that should run with the privileges of a low privileged linux user like 'postix' user account.
Is it possible?
If yes, please post relevant references as I don't know how to...
Hello,
I have read about Thrift while trying to find out how to use Google Protocol Buffers. I have been searching for some reference that shows how to go about using it with a simple working example for C++. It's been frustrating not being able to find any such site. It is a bit surprising that almost all the examples use Java, a langua...
Hi everybody,
If I don't make a mistake, Safari currently need MP4 (H.264/AAC) video encoded for the HTML5 <video> element.
So I tried to convert a video to this format with ffmpeg. However when I enter the shell command ffmpeg -i video.flv video.mp4, the returned error is :
Seems stream 0 codec frame rate
differs from container ...
On Linux pwrite operation (which is seek+write) is atomic, meaning doing pwrite-s in multiple threads with one file descriptor is safe.
I want to create file descriptor duplicate, using dup(). Now, having fd1 and fd2 - will pwrite-s work as expected, or there's danger of race condition?
...
Hi all, I have this bash script whose job is to monitor a log file for the occurrence of a certain line. When located, the script will send out an email warning and then terminate itself. For some reason, it keeps on running. How can I be sure to terminate bash script below:
#!/bin/sh
tail -n 0 -f output.err | grep --line-buffered "Exc...
Is there an easy procedure to build an RPM.If so Please explain or provide the link.........
My requirement is very simple ..
I have two other RPMs which should be combined into one single RPM....
Please explain the process....
Thanks in advance..........
...
I've never used python before. I've used php for about 5 years now. I plan to learn python, but I'm not sure what for yet. If I can think of a project that might be better to do in python, I'll use that to learn it.
Edit: just to add this as an important note, I do mean strictly for linux, not multi-platform.
Edit 2: I'm hoping for obje...
On a Linux machine I would like to traverse a folder hierarchy and get a list of all of the distinct file extensions within it.
What would be the best way to achieve this from a shell?
...
We recently had a problem with our test LDAP server - it was hung and wouldn't respond to requests. As a result, our application hung forever* while trying to bind to it. This only happened on Unix machines - on Windows, the ldap_simple_bind_s call timed out after about 30 seconds.
* I don't know if it really was forever, but it was at ...
I have a PHP code block I've written that uses imagemagick's convert program (called through exec()) to create thumbnails of uploaded images (originally we tried using the PHP module calls, but kept running into memory errors).
Of course to do this I have to have the full path to convert, which varies from system to system (on my mac it...
I noticed in the definition of the sigaction, sa_sigaction callback, the last argument is a void *.
struct sigaction {
void (*sa_handler)(int);
void (*sa_sigaction)(int, siginfo_t *, void * );
sigset_t sa_mask;
int sa_flags;
void (*sa_restorer)(void);
}
This would sort of indicate that you can pass an user argume...
This is on a Redhat EL5 machine w/ a 2.6.18-164.2.1.el5 x86_64 kernel using gcc 4.1.2 and gdb 7.0.
When I run my application with gdb and break in while it's running, several of my threads show the following call stack when I do a backtrace:
#0 0x000000000051d7da in pthread_cond_wait ()
#1 0x0000000100000000 in ?? ()
#2 0x0000000000...
It's very on the Mac to create a loadable plugin as a bundle and make it use symbols in the Host executable. How can this be done on Linux and Windows?
I hear there's -rdynamic on Linux that may come in handy but I'm completely at a loss as far as Windows goes.
The point is to move away from linking both the host and the plugin against...
Which signal should I send to a background process to move it foreground? SIGTTIN, SIGTOU or...?
...
I want to implement a Linux C program to do the following task: it uses FIN scanning to scan all the open ports of a host.
Here's a short description for the FIN scanning(skip if you already know it):Wikipedia: FIN scanning
In FIN scanning, an open port will not respond in any form, while closed port will send back a RST packet. And ev...
Hello,
I am developing a multithread modular application using C programming language and NPTL 2.6. For each plugin, a POSIX thread is created. The problem is each thread has its own stack area, since default stack size depends on user's choice, this may results in huge memory consumption in some cases.
To prevent unnecessary memory us...