I created a java project and then tried to import Java source code from two different projects. I've been working on it for a few hours, deleting and re-creating the project dozens of times to try to reconcile all of the messed up references between these two projects - which other people say are supposed to work together reliably.
What...
I updated my python version on windows 2003 server from 2.4 to 2.5.
In 2.4 I could import a file "sub1.py" from a subdirectory c:\application\subdir\ like this:
import sub1
as long as the calling script main.py that lives in c:\application was started like this:
c:\application\subdir>python ..\main.py
But in 2.5 it no longer works...
I want to know how much time an import takes for both built-in as well as user defined modules.
...
How could one test whether a set of modules is installed, given the names of the modules. E.g.
modules = set(["sys", "os", "jinja"])
for module in modules:
# if test(module exists):
# do something
While it's possible to write out the tests as:
try:
import sys
except ImportError:
print "No sys!"
This is a bit cumbersome f...
I'm developing a gae application on a windows machine. to have session handling I downloaded gaeutilities and added its path (C:\Python25\Lib\site-packages\gaeutilities-1.2.1) to the registry ("PythonPath" item under python25).
in my code this is how I import the gaeutilities Session class:
from appengine_utilities.sessions import Sess...
This may seem like a really stupid question, but what is the cost of including (actually, calling #import) a header file in Objective-C? I get tired of constantly including the same headers in various locations, so I decided to simply create a GlobalReferences.h file that includes several commonly-referenced headers.
Is there any apprec...
I am trying to import a CSV file into MySQL 5.0 with the following line:
LOAD DATA LOCAL INFILE 'file' INTO TABLE MYTABLE FIELDS TERMINATED BY ';' ENCLOSED BY '"' ESCAPED BY '\\'
My table schema is as follows
CREATE TABLE AUCTIONS (
ARTICLE_NO VARCHAR(20),
ARTICLE_NAME VARCHAR(100),
SUBTITLE VARCHAR(20),
CURREN...
I have this exported file of some weird (standard for this industry!) format, which I need to import into
our Database. The file basically looks like this:
DATRKAKT-START
KAKT_LKZ "D"
KAKT_DAT_STAMM "1042665"
DATRKAIB-START
KAIB_AZ "18831025"
KAIB_STATUS_FM 2
KAIB_KZ_WAE "E"
DATRKAIB-END
DATRKARP-START
K...
My team and I are using multiple virtual machines on our local computers to develop a Sharepoint Site and, as this is really not supported, we are running into problems:
I am attempting to use the in-house import/export features with the following commands:
-- Export --
stsadm.exe -o export -url http://localhost/ -nologfile -haltonwarn...
I'm using an XML schema document to validate incoming data documents, however the schema appears be failing during compilation at run time because it refers to a complex type which part of an external schema. The external schema is specified in a element at the top of the document. I had thought it might be an access problem, so I moved...
I have a groovy script that uses a third party library. Each time I open the application and attempt to run my script I have to import the proper library.
I would like to be able to open GroovyConsole and run my application without having to import the library.
...
I'm writing a program which imports a module using a file path, with the function imp.load_source(module_name,module_path). It seems to cause a problem when I try to pass objects from this module into a Process.
An example:
import multiprocessing
import imp
class MyProcess(multiprocessing.Process):
def __init__(self,thing):
...
Hello,
I have to import dates into oracle with this type of format
03JUN2008
The only example I've seen this done before has dashes and this does not.
Should I just bring it in as varchar and manipulate or is there another way?
Thanks
...
Given a package, how can I automatically find all its sub-packages?
...
I am trying to create a generic importation VBA function in access database. (I will link the external tables of a similar database and then import their data into the local tables.)
For starters, the function should get a list of the tables in the local database, ordered by their primary/foreign key, so as to allow importation based on...
Firstly I'm not a Java guy, but I came across what appears on the surface to be an inconsistency with the way imports work.
Say you have a file and in this file you have your main function and you have also defined a class Foo, now a different implementation of Foo also exists in a package. Suppose you want to use both versions in your ...
If a group of Python developers wants to put their shared code somewhere, in a hierarchical structure, what's the structure, and what's the related "import" syntax?
Does java-style reference work in Python also? I.e., do directories correspond to dots?
What is standard setup for an internal-use-only library of Python code, and what'...
Trying to use @import url('myfile.css'); in my css file in Adobe AIR but it's not working.
I have tried variations such as url('file:///myfile.css') and url('file:///abs/path/myfile.css') and none of it seems to be working.
...
I'm sorry for the verbal description.
I have a wxPython app in a file called applicationwindow.py that resides in a package called garlicsimwx. When I launch the app by launching the aforementioned file, it all works well. However, I have created a file rundemo.py in a folder which contains the garlicsimwx package, which runs the app as...
I'm pretty new in Java, so perhaps this question is not make me sound very stupid. How can I include one java file into another java file?
For example:
If I have 2 java file one is called Person.java and one is called Student.java. How can I include Person.java into Student.java so that I can exstend the class from Person.java in Stude...