linux

Add Custom Green BAR MSG with EV SSL

Hello, I am interested in purchasing a SSL/TSL certificate for my website and I would like to know which retailer allows me to add my custom message in the green address bar like in this image : http://tinyurl.com/33yug4y You can see there : "COMPANIA NATIONALA DE TRANSPORTURI AERIENE ..." I want something like that too. ...

How can I compile a standalone FFTW library?

I need to compile a standalone .a or .so library in Ubuntu 10.04 from the FFTW source code. I find that the directory layout of the source distribution is so complex that I have no idea where to start. I need to use an older version of gcc as well. ...

semaphore related - smtctl use IPC_RMID failed with Invalid argument

If I do not define LINUX_ENV macro,everything goes well(especially,the IPC_RMID cmd return 0). but if I define LINUX_ENV(I am running on linux system-ubuntu10.04),the last semctl's IPC_RMID cmd return EINVAL,and says Invalid argument, i.e. the semaphore is not removed. it seems earlier semctl SEM_INFO cmd causes later IPC_RMID cmd return...

How can I limit USB2.0 transfer rate on linux ?

Hi everyone, I have a simple project which can limit USB2.0 transfer rate on linux. With this program users can select any transfer speed they want, let say 10 Mbps. But I don't know where to start or what to do. I will be very glad if you have any idea. An useful library or function or whatever. Thanks in advance for any help. ...

Is it possible to make a bash shell script interact with another command line program?

I am using a interactive command line program in a Linux terminal running the bash shell. I have a definite sequence of command that I input to the shell program. The program writes its output to standard output. One of these commands is a 'save' command, that writes the output of the previous command that was run, to a file to disk. A...

http live streaming for mp3 files

Hello Guys... I need help in converting mp3 files to Apples Http Live Streaming protocol files. I am working on a music application and wants to use Live streaming in this app. I got this link http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/ from google but it contains how to liv...

Python daemon will not run in background on Ubuntu

Hi, My python daemon runs fine in the foreground of my Ubuntu system using this command in the terminal: python /opt/my-daemon.py foreground However when I try to call the daemon using the "start" command it fails, why? python /opt/my-daemon.py start This is how I call the command in the /etc/rc.local file: python /opt/my-d...

Issue with Google font API. Windows 7 and Linux

I got an for me strange problem with google font api. It woks on several computers but I have 2 computers that will not work. I can´t figure out what´s the problem so I´m interested to know if some one out there know any operating system bug or google font api bug. Here is a test list. Computer 1 OS Windows 7: working in - Firefox, chro...

java jdialog taskbar button

hi, i'm traying a jdialog on linux, but it still appears in my taskbar. this is the code? what's wrong? import javax.swing.JDialog; public class Main { public static void main(String [] args) { new mydialog(); } private static class mydialog extends JDialog { public mydialog() { super(); ...

Getting 'attachments' out of MySQL BLOB fields, and into the filesystem

I have a standard LAMP server, and currently there is a way to attach/upload PDF's, or JPEG's with an inventory record. I designed this system way back in 1999/2000, and it has of course grown fairly large in size. The table that holds the attachments is approaching 10GB, which has made working with the data somewhat slow (especially w...

Is it possible to create a script to save and restore permissions?

I am using a linux system and need to experiment with some permissions on a set of nested files and directories. I wonder if there is not some way to save the permissions for the files and directories, without saving the files themselves. In other words, I'd like to save the perms, edit some files, tweak some permissions, and then rest...

gSOAP C++ client memory leak

I have read the gSOAP docs and seen mentions of the fact that one should call soap_destroy(soap) and soap_end(soap) etc., however they are always examples with a single invocation on the service object. The service I am using returns about 40KB of text with each invocation. My problem is that memory usage grows linearly by about the same...

How do I kill an OpenVPN connection using Perl?

Is there any way to kill an OpenVPN connection with a Linux command or Perl command? ...

How to interpret linux's top correctly?

We're running to profile a java program on its memory usage. We have a 512 ram box and top shows that 500 or so MB of ram is used with very little free. However over at the RES column we can see that the jvm is only using 100MB or so. And all the other processes are not even significant (less than 1k). So what exactly is consuming all th...

What parts are needed for a mono based music server?

Hi all, I have recently installed Ubuntu Linux on my machine. This machine is on pretty much all of the time and houses my music collection. I have looked at various solutions for a central repository for music and each one is lacking in one way or another. I have done some .net programming and thought this would be an ideal project to ...

Linux developement towards iOS4-like touch-screen tablet

Is there any project or effort in the Linux community trying to develop something similar to Apple's iPad or iOS4? Or it is trivial to emulate the same touch-screen experience with Linux? I ask this question because I found iPad or iPhone UI experience is very friendly to young children and if possible could there be some linux-based tab...

Serial port reading and writing with C

I am writing a C program that will read and write from/to a serial port. Each write will be followed by a read which will contain data based on the write. I will have about 16 different writes to perform, each followed by a read. I am still new to serial programming and am trying to determine how to approach this. Should the program blo...

How can I specify an icon with a RELATIVE path for a Linux desktop entry file?

For one of my Linux applications, I have the application binary, a launcher.sh script (for the LD_LIBRARY_PATH) and a .desktop file, all in the same folder. I'd like to use a relative path rather than an absolute path for the icon. I've tried: Icon=app.svg Icon=./app.svg Icon=$PWD/app.svg Icon=$(dirname %k)/app.svg but none of these...

Perl system command not acting as a normal prompt

I am trying to modify a perl script to comment out all lines matching some pattern. In normal command prompt, here is the line I'm trying to add: grep -lIRZ --exclude="*\.svn*" "pattern" . | xargs -0 -l sed -i -e 's/.*pattern.*/\/\/&/g' Here it is in the context of the perl script: my $rmcmd = "grep -lIRZ --exclude=\"*\\.svn*\" \"pa...

Android init.rc import statement not working

I am trying to add a separate init file called init.Mine.rc that holds other services that I want to start myself. I am trying to import this from init.rc so that it will just run the stuff from init.Mine.rc but it doesn't seem to be doing anything. I am starting logcat from init.Mine.rc and its not even showing up when I do a ps. I k...