Programming :: Does The "Exhibit A" Section At The Bottom Of The MPL Need To Be Filled Out Within The License Text Itself

Mar 1, 2011

Does the "Exhibit A" section at the bottom of the MPL need to be filled out within the license text itself? Is just including the "boiler-plate" license comment from [URL] in all source files and a verbatim copy of the MPL sufficient to cover a project?

There are blanks within the "Exhibit A" section that look like they should be filled out, yet it doesn't make sense that the license text should need to be modified in addition to the boiler-plate license comment.

View 1 Replies


ADVERTISEMENT

Programming :: Append A Block Of Text Into A Particular Section Of A File?

Mar 16, 2010

So I have file which looks something like this:

cat .opera/operaprefs.ini
Code:
[User Prefs]
Language Files Directory=

[code]...

View 1 Replies View Related

Programming :: Make The Program Check If Either On Of The Input (either $Title Or $Author) Is Not Filled Up

Jan 11, 2010

Title : Author : Price
France : Mark : 40
Persia : John : 50

how i arranged my database. I am trying to write aprogram which does a search either using Title, Author or both.

[Code]....

but i am still unclear on how i am able to make the program check if either on of the input(either $Title or $Author) is not filled up, and if one of it is not filled up, use the other one which is filled to do a search.

View 6 Replies View Related

OpenSUSE Install :: Immutable Section Of HDD + Differencing Section?

Jul 8, 2010

You maybe know that VirtualBox has an "immutable" feature for HDD images. I.e. setup the system, if the stuff is in place, you can set the image to IMMUTABLE to prevent any changes to the image. Differences are written to a separated image. So on the next boot you'll see that all the (unintended) changes are gone and the "old" system is up & running again. I run an old SuSE 10.3 on a write-protected SD-IDE-Adapter. Changing and playing with RPMs is a mess due to around 50 changes I had to do to make that work. Is there any option to mount an SD-card as RO and having all the changes written to e.g. /dev/sda3? To make it clear: I thought about something like a RAID-X system, but could not find any description on how to setup a raidtab.

View 3 Replies View Related

Ubuntu :: Two IDLE Icons In Application Programming Section?

Feb 16, 2011

For some reason I have two IDLE icons in my application programming section:

IDLE
IDLE(using python-2.6)

Both are the exact same versions, and I'm not sure if I need both. I understand that ubuntu runs on 2.6 so I'm a bit hesitant to just delete one without checking here first.

View 1 Replies View Related

Programming :: Deadlock Due To Crash Inside Critical Section?

May 12, 2011

The following two pieces of codes share printing to stdout with a POSIX semaphore /dev/shm/sem.abcd

sema1.c:

Code:
int j;
sem_t *sem = sem_open( "/abcd", O_CREAT, S_IRUSR|S_IWUSR, 1 );
j = 0;
while (j < 100) {

[Code].....

If started at the same time, the first will finish in about 10 seconds; the second 20 secs.

What I want to ask is, if the first program crashes at Checkpoint A, then B will never gets to continue, then normally how do programmers avoid this kind of deadlock due to crashes inside the critical section?

View 3 Replies View Related

Programming :: Extract Dwarf Information Debug A Section?

May 10, 2011

I would like to extract debug information but I have some problems. For example, I have a executable a.out...

Quote:

nm -f sysv a.out | grep ".global_var" >vars.txt

With this command I extract all my variables. All of them are in .global_var section, and it give me follow information:

Quote:

CAN_station_n |08073258| D | OBJECT|00000001| |.global_var
CONTROLend |080732a7| D | OBJECT|00000001| |.global_var

[code]....

Well, I have only address of my vars, but I would like to know type var or struct of the variables. With dwarf dump I have all of information, but it is a mess...

Quote:

<1><117bc>: Abbrev Number: 32 (DW_TAG_variable)
<117bd> DW_AT_name : (indirect string, offset: 0x153d): draw_limits
<117c1> DW_AT_decl_file : 128
<117c2> DW_AT_decl_line : 207

[code]...

Is there any parser or way to put in order this information?? create a file with the follow information:

name of var - address - type - size - struct or not

View 5 Replies View Related

Programming :: Extracting Last Section Of File (Separated By Hashes)

Feb 22, 2011

I have a file which looks something like this:

##########
some
text
text also includes empty lines
##########
some
more
text
##########

Basically all sections are separated by 10 hashes and I need to somehow only print all lines in the last section (the "some more text" part in the example above"). I tried all kind of things with sed and awk but I didn't find any way to identify the last "section".

View 8 Replies View Related

Programming :: Underscores In Standard Functions, An Example Section From Cat.c Is Included

Sep 4, 2010

From cat.c in GNU coreutils:

Code:
void
usage (int status)
{
if (status != EXIT_SUCCESS)
fprintf (stderr, _("Try `%s --help' for more information.

[Code]...

I don't remember ever seeing this in any examples I've ever seen, so I'm sure I've never seen an explanation of this.

View 1 Replies View Related

Ubuntu :: Broken Shortcuts For Netbeans On Section Applications -> Programming?

Feb 16, 2010

I have two broken shortcuts for Netbeans on section Applications -> Programming.

View 3 Replies View Related

Programming :: Bash Text To Variable Accessing Individual Text Lines?

May 2, 2010

i am on processing text tasks And i found that if you assign a text to a variable is chomp'ed automatically the newline

Code:

variable=$(cat file.txt)

The problem is i can only access the items/lines using:

Code:

for line in $variable
do
echo $line
# Other commands
done

how do i convert this to an indexed array. More importantly, how do i get access to individual $line[0], ..., $line[n] Another thing, if the file.txt, has lines with spaces it is a mess using the for...in..., but echoing prints line by line...o_0

View 11 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 :: Delete Line Of Text From Text File Via Shell?

Jan 13, 2010

I have to delete a certain line of text from the a textfile via ubuntu's shell scripting.I have done research, and it seems that most people advocate the usage of sed /d option. sed makes does not edit the text file. Hence, most options I discovered involved the use of a temporary variable/textfile and then overwriting the old file with the temporary new file. Is there anyway whereby I can bypass the use of temporary storage containers? I hope there is any magical combination of commands to edit the file directly.

View 3 Replies View Related

Programming :: Exporting Glade Text View To Text File?

Jan 8, 2011

I want to display something in my text view widget in glade using c code. that's all right.
now I need to attach a save button beneath the text view.so that on click the text view content should save as a txt file..

View 8 Replies View Related

Programming :: Formatting Fields And Text Being Displayed From Text File?

Feb 9, 2011

I want to display the contents of a particular log file (simple text file, I mean in Linux). But there is a problem: The contents need to be organized in a fixed format. Have a look at this log file:

sampleLog.txt

Code:

User Name: XYZ
Reported Problems Description: Blah! Blah! Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah!

[code]....

So, while displaying the contents of above file on a web page, I want to format the field names found in the log file: User Name:, Reported Problems Description:, and Remarks:. These fields may contain a variable length of text and no specific line number is assumed for them to appear on.

The desired output should look like this:

User Name: XYZ
Reported Problems Description: Blah! Blah! Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah! Blah!Blah!

[code]....

Well, what I am trying to do may sound wierd to some of you. The filed "Reported Problems Description:" can possible contain text which embeds colon (.

View 15 Replies View Related

Programming :: Sed To Output Block Of Text If Specified Text Is Matched?

Feb 13, 2010

I am trying to find sed command combination to print out the "start command" line, the id line and all lines between "details" and "stop command" only if "error" exists. Here's the original output (test.txt):

start command
id 1
kajsdlfjsalj

[code]...

View 3 Replies View Related

Programming :: Add Text Before Line Number In Text File?

May 3, 2010

a sed command to add a text before line number in text file? I have text file with 500 lines, and i want to add 3 more lines with text after line 300, OR before line 302, isn't no problem.

View 16 Replies View Related

Ubuntu :: Monitor Off Center - Bottom Of Tool-bar On The Bottom Of The Screen Is Cut Off

May 22, 2010

So about an hour ago I put my computer on standby. For whatever reason I couldn't bring it back so I restarted it. It works fine except now Ubuntu has pushed my display down. This means that the bottom of my tool-bar on the bottom of the screen is cut off, and there's a black bar on the top. I'm using a T.V. screen so there is no way I can manually adjust it. I also plugged my desktop back into an old monitor and it was off-center downward too.

View 1 Replies View Related

Programming :: Displaying The Contents Of Buffers In A Protected And Non-protected Critical Section?

Nov 19, 2010

I have this project for my operating systems class and I have put together the basic flow chart to aid me in writing the program. I know how to use pipes as a buffer to hold info. I know how to create a binary semaphore. But what I dont know is this:

How to "use a delay adjustment parameter K in the critical section to adjust the speed of the display process to show that without semaphore protection the displayed contents of the buffer are randomly interleaved."

First off, I am definitely not asking anyone to give me the solution. But I do need some guidance. So I figure there will be an if statement with two options:

1. If true, use semaphore protection to enter/exit critical section

2. If false, no semaphore protection -- this is where the contents of the buffer should be interleaved.

Now does that mean that as each child process enters the non-protected critical section, it should "sleep" for a randomized time? I mean, will this allow my output to be interleaved?

So lets say my command line looks like this:

what happens to the 100? Is it randomized using rand and srand and passed as a parameter to sleep() inside the critcal section?

View 5 Replies View Related

Programming :: Remove Lines In A Text File Based On Another Text File?

Jan 28, 2009

I have a text file called file1.txt containing many lines eg.

line1
line2
line3
line4
line5
line6

Then i have another text file called file2.txt contains

3
5
6

Is there a command to remove the lines in file1.txt based on the keywords in file2.txt? note: It should remove line3,line5,line6 based on 3,5,6

View 10 Replies View Related

Fedora :: Swap Never Used And Memory Filled Up

Sep 12, 2010

I've an 8GB swap (I know, overkill, but I don't have space issues, and I'd rather have too much instead of too less). The problem is that my physical memory fills up, and the system crashes, but swap usage is ALWAYS 0%
Mem: 8060580k total, 5193436k used, 2867144k free, 1013788k buffers
Swap: 8388604k total, 0k used, 8388604k free, 2262112k cached
Setting aside the fact that I can't trace why memory usage goes up to 8GB with just firefox/terminals/pidgin, why isn't my swap EVER used?

Also, if I run
Code:
# top
2301 hugo 20 0 1887m 665m 38m S 19.9 8.5 267:38.63 firefox-bin
1811 root 20 0 166m 67m 10m S 10.8 0.9 128:04.59 X
1973 hugo 20 0 306m 78m 16m S 0.8 1.0 42:30.04 compiz
2024 hugo 20 0 487m 13m 8836 S 0.2 0.2 2:14.73 Terminal
1980 hugo 20 0 333m 7228 5492 S 0.1 0.1 0:54.49 lxpanel
7048 hugo 20 0 15016 1168 820 R 0.1 0.0 0:00.03 top
(The rest are all "0 0 0 0 S 0.0 0.0")

If add up all of the RES columns, I get <1GB. If I add all the VIRT column, I get about 3GB. Where's the other 2GB being used? This goes up all the way to 8GB, without being able to add up where my memory's going.

View 12 Replies View Related

Ubuntu One :: Web Store Get Filled And Corrected?

Jan 4, 2010

I use one PC only, I paste some files and folders into the U1 folder. Files upload to the webstore, I can see them via the web. Now, *what* is subsequently used as a *reference* for content? For example, what should happen if I rename a folder in the PC U1 folder? Should the new name later appear appropriately on the webstore? What should happen if I use the web access, and delete a folder in the webstore? The PC U1 folder remains full, does the web store get filled and corrected? At a time when the webstore is complete and correct, if the contents of the PC U1 folder is deleted by me, will the webstore contents act as a form of backup? Or will the webstore contents also get removed by U1 process?

View 2 Replies View Related

Ubuntu :: Root Filesystem Is Getting Filled Up

Jun 18, 2010

Lately however my root filesystem is getting filled up every night-- I come in in the morning and have notices that I have 0 bytes remaining. There's tons of room on the disk, but the root is full. Here's what it looks like with a df -h:

[Code]....

View 4 Replies View Related

General :: Hard Drive Filled Up?

May 30, 2010

I have just recently installed Ubuntu 8.04 (i had 10.04, but the video drivers were not compatible). Here's my dilemna. I run the "df" command and notice that it appears as though the drive is 100% full with no space free. Is that correct? And where do I look for the offending file/directory?

Code:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 304072908 304066468 0 100% /
varrun 1037700 108 1037592 1% /var/run
varlock 1037700 0 1037700 0% /var/lock
udev 1037700 68 1037632 1% /dev

[Code]...

View 2 Replies View Related

Programming :: Getting Syntax Error On 4th Line From Bottom "else:"

Aug 24, 2010

keep getting a syntax error on the 4th line from the bottom "else:" fix this error and make this program work. It is a game.

[code]...

View 8 Replies View Related

Ubuntu :: 56GB Of 65GB Filled But 57.5GB Free?

Feb 16, 2010

i have a HP wx8000 with a scsi drive on it that has a max capacity of 65GB. my HDD reports that it has 57.5 Free. it also reports that i have 56.2GB used. i am really confused at this point. it was a brand new install 5 days ago.

View 4 Replies View Related

Ubuntu :: Drive Filled UP With Two 55GB Log Files?

Mar 16, 2010

I realized that I had 0 k free on my drive and when I search to find out what was the problem this is what I have found.

In /var/log/ I had two 55GB files, one called "user.log" and the other "syslog", since it had 55GB I had to tail it and came out with this:

lucian@lucian-laptop:~/luciserver$ tail log_2ndfile_55G_tail
Mar 16 15:40:39 lucian-laptop scanadf: io/hpmud/pml.c 375: SetPml channel_write failed ret=31
Mar 16 15:40:39 lucian-laptop scanadf: sane_hpaio_cancel: already cancelled!
Mar 16 15:40:39 lucian-laptop scanadf: io/hpmud/hpmud.c 632: invalid channel_write state

[Code].....

View 2 Replies View Related

Ubuntu :: Zero-filled A Micro Sd Card, Now It Won't Allow To Repartition?

Sep 4, 2010

i have an 8gb sandisk micro sd card that i was having problems with, so i decided to zero it out, problem is now i can't repartition it.i have tried gparted, the disk won't appear, but when it is attached, i can see a /dev/sdb in devices that isn't there otherwise.is it possible to create a new partition table on this, and how?also i am trying to 'sudo mkfs.vfat /dev/sdb' but it is saying

View 5 Replies View Related

Ubuntu :: Saving PDFs With Filled-in Forms?

Oct 2, 2010

I read few threads from 2006, and at that time it seemed there was no good way to save a PDF which had data input in the form fields. Has this changed? Printing is not really an option, since I won't fill these forms in one sitting. When I save with Ubuntu's default PDF viewer, the form field data does not seem to be saved along with the PDF.

View 3 Replies View Related

Server :: Can't Run Script After Hard Disk Was Filled

Dec 13, 2010

I have a MythTV backend setup with videos also transcoded to a directory for streaming to my Roku frontend. A week ago, the backend had an issue that caused the hard disk to fill up, which borked a bunch of things up. I've since repaired the damage (and learned a lot about log size settings for logrotate.d). Anyway, my last problem is that a script I wrote to compare the files in the transcoded directory to the MythTV base directory and delete files no longer relevent doesn't work anymore. I get the following error when run by any user, including root:

Code:
bash: ./roku-autoexpire.sh: /bin/bash: bad interpreter: Permission denied

The script worked fine before the hard disk fill, but now I can't seem to get it to work. Both the original MythTV partition and the streaming partition are XFS. Here's the pertinent lines from fstab:

Code:
/dev/sdb1 /var/www/mythroku xfs defaults,auto,grpid,exec,user 0 0
/dev/sdc1 /mnt/mythtv xfs defaults,exec,user 0 0
Permissions for the directories are the following:
Code:
drwxrwxr-x 2 mythtv mythtv 16384 2010-12-13 19:21 /var/www/mythroku
drwxrwxr-x 2 mythtv mythtv 20K 2010-12-13 20:13 /mnt/mythtv

I tried fiddling with the mount options for the partition, but that didn't seem to solve the problem.

View 4 Replies View Related







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