Programming :: Adding Third Colum And Normalizing?

Dec 18, 2010

I have a file for plotting contour graph in gnuplot.The data in the fine as below:Quote:

1 1 3
1 2 7
1 3 6

[code]....

View 9 Replies


ADVERTISEMENT

Ubuntu Multimedia :: Normalizing MP3 Volume Levels ?

Apr 24, 2011

I have a rather extensive mp3 collection.

The problem is some of the songs are louder than others, in other words set the volume and next thing a song comes along that scrambles your brains it's so loud, Or you get one you can't hardly hear.

I've used a couple of GUI's in the past, but all of them seem to do one song at a time. Not really an option with over 10,000 songs.

What would be nice is if I could pick one song as a base line and using terminal run a batch of say 500 songs through it.

Running 10.10 2 gig of memory

Use Rhythm box to handle music currently.

Been using since Dapper Drake, I'm not afraid of the command line, but I am far from an expert user, in other words I know just enough to be a danger to myself and others

I've never written a script file to automate anything but this may well be a time to learn one.

View 5 Replies View Related

Programming :: Adding Two Arrays?

Mar 1, 2010

I have a problem on a program,the problem take a very long time when i try to add two big arrays element by elementI know that matlab make adding vectors more faster than adding element by element but I don't know how!!!do any body knew how matlab make vectors operations more faster than element by element???I want to make my calculation more faster because the program is very big

View 8 Replies View Related

Programming :: Adding User Through The Script?

Jun 6, 2010

Im trying to create the following script...I want to create an interactive script that prompts the user for the following:

user name
user home directory
user login shell
user comment

the script then needs to read those variables that are entered by the user and actually create the user account. and of course, would like the script to display what user account was just created so that i know in fact the script worked successful.

View 2 Replies View Related

Programming :: Adding Different Data Types?

Jun 9, 2011

i am searching for a table that gives info about the result of operations (+ , - , * , /) on data types

i mean if we * int by another int, the result should be assign in long so no overflow happens.

something like that.

like what will be the result of mult unsigned int by signed it , is there tables for such operations.

View 6 Replies View Related

Programming :: Adding Directory To The Path?

Apr 2, 2009

I have made the installation of Qt4 in my Fedora/MacBookPro. It also got a first compiling and running a simple program. The point is that for the compiler to run I need to point out every time where the bin is located, as that:

$ /home/threader/kinetic/bin/qmake -project

I have tried the following, but it still doesn't work:

# script
#-----------------------------------------------------------#
# /etc/bashrc or /home/threader/.bash_profile
# config to Qt compiler

[code]....

View 5 Replies View Related

Programming :: Adding Further Function On Sh Script?

Apr 10, 2010

I use following script:-

Code:

#!/bin/sh
# cd Linbread
TODAY=`date +"%m%d"`
DATA=`grep $TODAY linbread.dat`

[code]....

sound file .wav and background .gif are available. Please advise what shall I add to the script to do the job as expected.

View 1 Replies View Related

Programming :: Adding Gtk Libraries To Eclipse Using C

Jan 30, 2010

So I decided to take my first steps into programming with C + gtk. So far I have doneI loaded eclipse and ensured I had the cdt package Created a new C/C++ project called "play" Added a new source file called "Playfullsrc.c" Added the following to paths and symbols (output of the command: pkg-config --cflags gtk+-2.0)

Code:
/usr/include/gtk-2.0
/usr/lib/gtk-2.0/include
/usr/include/atk-1.0
/usr/include/cairo
/usr/include/pango-1.0
/usr/include/pixman-1
/usr/include/freetype2
[Code]....

added "/usr/lib/libgtk-x11-2.0.so" to GCC C Linker Libaries (I have cheacked and this file exists) When I build the project I get the error message "cannot find -l/usr/lib/libgtk-x11-2.0.soplayline 0C/C++ Problem" I have been following this tutorial: [URL]

View 2 Replies View Related

Programming :: Adding Mod-Perl And Using Apache ASP?

Sep 16, 2010

I have a debian lenny machine that I am trying to add mod_perl to and use apache asp on. I have had a range of failures on it. Is ther a way I can build apache2 with mod_perl in it? Instead of separate. Apache2 is built with some modules built in by default, how can I make mod_perl one of them?

View 1 Replies View Related

Programming :: Adding Some Code To Like 50 PHP Files

Jan 15, 2010

I need to basically add some code to like 50 php files. It's basically a script that I want to add near the end of these 50 php files. I figured I could use sed to replace </body> with the code. However the code, is very long and has a bunch of newlines obviously. How would I be able to do this?
sed -e 's/<//body>/(all the text)/' *.php

Since it has newlines, I don't know how to paste it in cause it would take me to a '>' prompt without allowing me to complete the sed command. I want to insert this code.
Code:
<br><br>
<center>
<form action="test.php" method=post>
<textarea name="comments" cols=40 rows=6>

View 3 Replies View Related

Programming :: Adding Functionality To Perl Script?

Mar 18, 2011

I am a C++ programmer and never used Perl. add a functionality to a script, in Perl language. Originally, the script takes 1 file input and I run it in this way: ./script.pl file1 It is designed to return specific words from that file, example:

user
admin
printer-1
user-2
server

The idea is that I need to be able to provide the script with a second input file that contains only few words, each on a new line. These words might have a "dash". Example:

printer-2
server
user-2

I will be running the script as: ./script.pl file1 file2 In return, the script should check if every word in file1 does exist in file2. If it does exist, then the script displays it. In the example I provided above, the script should only return:

server
user-2

Here is the script I have. What's in black is the original working Perl script and what's in red is what I would like to add in Perl Language:

!/usr/bin/env perl
my ($table);
for (every value in file2)
{

[code]....

View 7 Replies View Related

Programming :: Adding Strlcpy() Function To Library?

May 2, 2011

I am running on windows, i don't have strlcpy() function as it's not a standard function, so i want to add it to my library, i know how to do that thankfully ^_^This is the function:

Code:
/*$OpenBSD: strlcpy.c,v 1.11 2006/05/05 15:27:38 millert Exp $*/
/*

[code]....

View 4 Replies View Related

Programming :: Adding Job From Script (Custom Built RPM)

Mar 10, 2011

I'm building an RPM that requires adding a cron job into a user's(service account) crontab...from what I see in the manpages, this isn't possible, as the only viable option is to replace the crontab entries already there for previous scripts being run. Either way, as an example I've found I can make it work by directly modifying the crontab file using:

Code:
echo "* * * * * /bin/ls -la ~/ >> ~/ls.log" >> /var/spool/cron/userName

I'd just like to know, is there any MAJOR issues with modifying a the crontabs like this? This is running on a Redhat Enterprise Linux server by the way.

View 1 Replies View Related

Programming :: Adding New Selections To The Existing Script?

Mar 19, 2010

i have two scripts called:

"type" & "selecttype".

In "type" i have only the name of the products ex.: product1 & product2. Now, i have to ADD product3 which includes sub categories: productA, productB, productC, productD, productE, productF. so my New type script (menu) looks as below:

1) product1
2) product2
3) product3

and my current selectype looks how can I add the new product3 argument with all other multiple selections (productA, productB, productC, productD, productE, productF) into my current selectype (as below which is set only for product1 & product2), so when a user select: 3) product3 from "type" would get a new menu of all the sub categories, and the script would process the new additional arguments.

Here is the copy of my selectype script:

#!/bin/sh
echo SELECTTYPE
export -n selecttypechoice
if [ "${upgrade}" == "yes" ] ; then

[code]....

View 5 Replies View Related

Programming :: C - Adding Up Array Column Total?

Jan 25, 2010

I'm having problems adding up column totals using arrays. I've got it to add up the row totals and display at the end of the row. Here is my code so far

Code:

#include <stdio.h>
#include <string.h>
const int maxrows=10;

[code]...

What i need it to do is, add up the columns and display it at the bottom of each column similar to how the row totals display

View 2 Replies View Related

Programming :: Adding An Item To A Java Swing Jlist?

May 4, 2011

I need to make a quick gui to interface with another application. I'm using Java swing to produce it, however have no experience with JAVA. I have used net bean to produce the gui. At one part I have a jList private javax.swing.JList jSymbolList1;

I want on a button press to add or change members of the list from a text field. I thought I could so this simply by using the addelement eg jSymbolList1.addElement("hello world"); However this produces an error. Can anyone tell me how to add a string or how to change a string at a set position?

View 4 Replies View Related

Programming :: Adding External Module To Kernel Source?

Apr 27, 2010

There is a module A which is compiled with the kernel. I wrote an external module B which exported a symbol using EXPORT_SYMBOL.The module A now needs to talk with that exported symbol (function call). For that i modified A so that it includes the function call from B. However i now get unidentified symbol errors during 'make' operation as symbols of B are not present during kernel compile and A now kind of depends on B.

One solution is that make B part of the kernel as well. However, it would mean that whenever now i try to compile a kernel with a different source, i have to modify the config files and everything to accommodate B.Hence i am seeking a solution which does not include modifying the kernel.

View 3 Replies View Related

Programming :: Adding Form Feed After Newline For Windows?

Apr 27, 2010

I can't get x to work with a mouse so I have to use a windows computer to do that from for now. The problem is I remember there being something about windows using a newline AND carriage return and linux just using a newline. I was about to cut and paste code but the lines go on and on instead of breaking off where they did in linux. I was going to write a perl script but don't know how to add a carriage return to the end of each line.

View 3 Replies View Related

Programming :: Adding A Entry In The Right Click Menu - Java Opensuse?

May 25, 2011

Ok, first is it possible to take a program I wrote and make it to be a entry in the right menu of a file browser program.

Also, can this happen if the program is developed in Java?

OpenSuSE 11.4
Kde 4
Dolphin(file browser)

View 8 Replies View Related

Programming :: Adding Number And String To Each Line In Data File

Apr 10, 2010

I have a very large data file, with 3 numbers in each line, ex. 3 4 5 ; 6 7 8.I want to add two numbers (0 and 1) at the end of every line, and a string at the beginning of the line. Does anyone know a efficient way to do so?

View 7 Replies View Related

Programming :: Adding Source To C Project To Include Mysql.h = New Errors?

Jul 14, 2009

I am trying to modify the source code of a C application (quagga) in order to insert data into a mysql table. I have added 2 new source files to the source (neto_mysql, neto_trend) which in turn use mysql.h. I have also modified the Makefile.am file to include the /usr/include/mysql directory.

When trying to compile, i get the following error. What am I missing? I have minimal experience with formal C applications like this. I feel like I may also have to include the mysql.h file in the libbgp? I dont understand why it cant find the mysql functions...

Code:

if gcc -DHAVE_CONFIG_H -DSYSCONFDIR="/usr/local/etc/" -I. -I. -I.. -I.. -I.. -I../lib -I/usr/include/mysql/ -fPIE -Os -fno-omit-frame-pointer -g -std=gnu99 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes

[code]....

View 12 Replies View Related

Programming :: Handle Non Argument Error While Adding Two Alphabets Using 'expr'

Feb 19, 2011

how to handle non argument error while adding two alphabets using 'expr' (not bc).

View 1 Replies View Related

Programming :: Simple Example Document For Adding A System Call On Fedora 14 Kernel?

Nov 20, 2010

Does anyone have straightforward simple example document for adding a system call on fedora 14 kernel?

View 12 Replies View Related

Programming :: Bash Scripting - Taking User Input And Adding It To A Particular Area Of A File?

Jan 12, 2010

in bash scripting...say I want to take the input from a user via a question...I would do this:

Quote:

#!/bin/bash

echo "How large do you want this partition to be in GB (enter only the number)?" read PART_SIZE echo "You want your partition to be $PART_SIZE GB" But I don't want to echo it back to the screen, I want to add it to the content of /etc/fstab. I have been mucking around with sed to find the tmpfs partition in /etc/fstab and add the partition size attribute (this is to use the onboard RAM as a volatile partition)...but am not having any luck...

The portion of /etc/fstab that uses /dev/shm for the tmpfs partition is:

tmpfs /dev/shm tmpfs defaults 0 0

So, if a user says "24" GB to the answer (from above), how do I get it to automatically add that value to the tmpfs partition line in /etc/fstab? So it would look like:

tmpfs /dev/shm tmpfs size=24g,defaults 0 0

I understand that I would also have to come up with a way to put "size=XXg", which I could do with a copied over generic file before this action...then the script would have to find "XX" and replace it with the user's figure...

View 7 Replies View Related

Programming :: Adding Line From File1 Into A Line Of Another File Based On Maching IDs

Jan 3, 2011

I wish to add information to one of my files based on matching IDs,

Here is an example

(the id is the 3 colunm)

(the ID is the 2 colunm)

And the output i wish to be

OUTPUT:

So as you can see the ones that do not match are still present, and the ones that do match just have the extra information from file2.txt added to them.

I thought about using join but that only seems to join the ones that match displays thoes only. i would like all the information in the output file.

View 6 Replies View Related

Programming :: Adding Lines Of Text To Beginning Of Text File

Jan 19, 2009

I need to insert 3-4 lines of text to the beginning of a text file. The file is a largish MYSQL dump, the result of a backup shell script. This shell script should insert the required text.I've wrestled with sed, but lost.

View 2 Replies View Related

Programming :: Shell Script For Adding A Statement In A File After A Particular Statement?

Jun 28, 2010

We are building our C++ project in Kdevelop IDE. Every time we run "Run Configure" from the "Build" menu, a file named "libtool" gets automatically generated. This file contains a statement as "ECHO="echo"".f we run "Automake", without modifying the "libtool" the system hangs and theputer needs to be restarted.Therefore every time we run "Run Configure" we need to include the line "echo="echo"" below the statement "ECHO="echo"" manually.I think a script can be written which does the above on its own.I am not a shell script programmer, I know the good tutorials for shell scripts are available on the net, but learning scripting only for this task would be time-consuming and painful.

View 4 Replies View Related

Fedora :: Adding Another OS To Bootloader?

Jul 24, 2009

I just installed Ubuntu 9.04 on this computer and I told it not to install a bootloader since I already have Fedora and it is my main OS. I then realized I didn't know how to add it to menu.lst here so I can't boot Ubuntu. How do I do this?

View 10 Replies View Related

Fedora :: Adding MP3 Support To 12

Feb 15, 2010

I am trying to convert my own CD's that I own into .MP3 format for my Sony 16GB MP3 Walkman. I did some looking on Google and found these free/nonfree repositories that you can add and then update YUM, etc....well I still can not get it to work. I am rather new to Linux. I am trying to use Audio CD Extractor under applications/sound & Video. It does not work in Rythmbox either. What do I do now? I am trying to use Linux day in and day out and no longer use Windows.

View 6 Replies View Related

Fedora :: Adding A Repo To Yum?

Oct 13, 2010

i want to add http://carme.pld-linux.org/~arekm/RPMS/ to yum repos for searching packages and installing them.(as ATrpm and dag ,...)

i do this :
#sajad added this:
[carme.pld-linux.org]
name=For VirtualBox
baseurl=http://carme.pld-linux.org/~arekm/RPMS/

[Code]...

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved