Programming :: How To Import Script Into Another Script
Dec 28, 2010
how I can import a script into another script so that the variables can be used.I wish to create a directory of scripts that are separate from my bashrc and have each of them import some generic variables, such as ANSI colours and environment variables.
I am new to pygame and Linux and I am using Red Hat Linux and I cannot import pygame. I thought I installed it but when I open up Python IDLE It says "No module named pygame". Does anyone know what is wrong?? I downloaded pygame1.9.1.release.tar.gz from URL...I might not have installed it or maybe I need something else too, I don't know.
I have this simple code written in python: Code: import os os.system("xterm -e 'ls /usr/lib'") Is there anyway I can hide the xterm window that is opening ?
I want the LAMP server to present an upload page to the user The user uploads a zip file containing txt files which are tables in clear-text format The server : opens the zip validates the text files (going to skip this for now, but will try to make later) converts the files as here imports them to MYSQL tables All this is supposed to happen automatically, then the user can immediately use the website with the updated data How to implement this (esp. the first part with the zip file)
I have been trying to write a simple snip of bash shell code to import from 1 to 100 records into a Bash array.
I have a CSV file that is structured like: record1,item1,item2,item3,item4 record2,item1,item2,item3,item4 record3,item1,item2,item3,item4 record4,item1,item2,item3,item4
And would like to get this data into corresponding arrays as such: $record1[item1-4] $record2[item1-4] $record3[item1-4] $record4[item1-4]
I'm trying to make a java application in netbeans 6.9.1 (ubuntu 10.10) and I need to use the webcam on the system. Now I found this project: [URL] I am able to run the program and see the vid imput from the webcam using: "java -cp /usr/share/java/v4l4j.jar -Djava.library.path=/usr/lib/jni au.edu.jcu.v4l4j.examples.DeviceChooser" The problem is how to import the libaries into netbeans, there is an explanation on the site how to do it with eclipse but I don't have any experience with ecplipse and judging from what people have to say about how it works I don't want that either. I get the following error as output:
I'm quite a newbie when it comes to MySQL but i heard that its possible to import data from a CSV into a mysql table.
Can anyone enlighten me on how to do it please? Im running CentOS and usiong MySQL Workbench to connect and run queries.
I have my CSV formatted so that the first row has the names of my columns on the table that I want to import it to and the following rows are the data that needs importing.
I have Ubuntu installed on my laptop, and I have some CD's that I need to burn. I have to use Amarok since Rhythmbox and Banshee don't recognize the songs on it, they just say "Track 1" (instead of the actual name of the song). Amarok recognizes the songs, but won't import as mp3. In fact it only imported a couple of the songs, not the whole CD, even though it recognizes the songs. How can I get Amarok to import my CD's, or get Banshee and Rhythmbox to recognize them?
I have enrolled some certificates from my own ca, to use to a couple of different services, like FTP, WEB, Mail etc. All these certificates comes from the same CA (my own), and I have created a root CA. But is it possible to import this root CA to the whole system, so I do not have to import the certificate or root CA to the different applications like iceweasel/firefox, chrome, icedove, filezilla etc.
I'm running GNOME on Fedora 11. My daughter is shortly due to take possession of a digital SLR camera - a Canon EOS 400D. Apparently it comes with a USB cable. I know very little of photography, or of image stuff on Linux, so I have a few questions: Will I be able to connect it to my Linux box and import the images? Is gthumb-importer the appropriate application for this? Is there better? Are the images jpegs, or something else? I only need to copy the images to the laptop and to be able to view them - I don't need to edit them or any such.
Here is what i want:I want to import from Windows XP all cookies and bookmarks i use in Firefox in to Suse.I can not start windows as the hard drive is damaged, i was able to copy the cookies and favorites as well other important data from Windows.The question is how to use this data in suse, can this be just copied into the Firefox directory?If possible what is the path to put all this info?
I can get music from cds into banshee, but when i try to import media from my library in the music folder nothing happens except banshee reports its scanning for a couple of seconds but nothing is imported into banshee,
I just installed openSUSE 11.4 and want to import my public/private keys to use in Kmail. However, after a great deal of searching, I can't find a keyring manager. Is there one installed with 11.4, or do I have to add one and if so, which should I use?
whenever I try to include a SVG picture into a ODT document (e.g. in Writer) I get a "Graphics filter not found" error message. I'm using the "Insert->Picture->From File" menu. I still have .odt files from OpenOffice in 11.3 around that contain SVG cliparts, so it used to work and SVG support is one of the feature highlights in LibreOffice.
how to import Yast to Debian. I need to know the idea of creating Yast. That is, Yast is designed so that each function has its own konfiguratsioony file whose name is invoked in the code when working with this function. And every function has a number of konfiguratsioonyh files?
I'm using Inkscape, and I'm trying to import an EPS file to use it as a vector and eventually save it as an SVG.
This link here mentions several methods:
[URL]
But the responses aren't rated since it's a forum, so I thought I'd ask here to find the best answer. I'd prefer not to have to use some website to convert the file to a PDF first.
Either way, when I import an EPS into Inkscape, or use the website to convert it to a PDF, in both cases the resulting file loses all colour and gradients, and the EPS file gets cut off on the right side.
It looks like ps2pdf is clipping the file incorrectly, and Inkscape is eliminating the colour.
I have these version installed in Ubuntu Lucid Linux:
I have looked at heaps of the citation software and have settled on using Zotero for a few months to really get a feel for it. One major barrier is how to import my (large) pdf collection into it in one easy step.
Goal: have zotero import my PDF library in one batch. (ubuntu 9.04)
1. I have tried to do it 1 at a time. The sun will explode before I get that done.
2. I have tried this work around without success: Drag and drop from Konqueror (KDE 3.5, opensuse 11.1) fails for me, too. A workaround to allow drag N drop is to use Firefox as a file browser (enter "file://<location_to_file>" as the URL), and to drag and drop from there. [URL]
Firefox cant find the directory
3. I have tried drag and drop as suggested on the Zotero forums (largely for windows users). No luck.
4. I have searched the web, with no other suggestions that have worked.
I have my data on an NTFS drive. When I try to import pictures from this drive, I only get an option for the drive. That is, I cannot choose a sub-folder from which to import. I understand I can tell F-Spot to use sub-folders, but I have many sub-folders with pictures, and I do not want all of them in F-Spot. Is there any way to import a single folder with F-Spot?
I have also tried drag and drop, but I have a hard time getting that to work as well.
All I want to do, is import all my other music files to Ubuntu, so I can play them on Rhythmbox music player. The other files are on my Windows hard drives though. Is there some way that I can just click a few buttons and import all my music?
I'm using U10.04 and have installed all sorts of photo apps, but nobody can see the raw (*.RW2) files on my Panasonic DMC-FZ35. I borrowed a Win7 machine and Windows sees them. I put them on a stick and come back home and thenGimp with UFRaw sees them. How can I get U10.04 to see them right when I plug in the camera with USB?