import

How can I import only a couple of functions from a Ruby module?

Suppose I have a module with the methods : function1,function2,function3. I want to import function1 and function2 but not function3. Is there a way to do this in ruby? ...

Importing in Python between three or more files not working

Hello, I hav codes eg1.py , eg2.py , eg3.py eg3.py imports eg2.py which in turn imports eg1.py When i run eg3.py for first time everything is fine If i import it again and again only eg3.py runs I need a solution for this. I will code eg3.py in such a way that : while(1): import eg2.py Where I went wrong.Please give me a solut...

Can you define aliases for imported modules in Python?

In Python, is it possible to define an alias for an imported module? For instance: import a_ridiculously_long_module_name ...so that is has an alias of 'short_name'. ...

MS Access interop - Data Import

I am working on a exe to export SQL to Access, we do not want to use DTS as we have multiple clients each exporting different views and the overhead to setup and maintain the DTS packages is too much. *Edit: This process is automated for many clients every night, so the whole process has to be kicked off and controlled within a cursor i...

SQL 2005 CSV Import Quote Delimited with inner Quotes and Commas

I have a CSV file with quote text delimiters. Most of the 90000 rows are fine, but I have a few rows that have a text field that contains both a quote and a comma. For example the fields value would be: AB",AB When Delimited this becomes "AB"",AB" When SQL 2005 attempts to import this I get errors such as... Messages Error...

Is there any open source program that use the inpout.dll ?

Is there any open source program that use the inpout.dll to hook up the parell port and turn LED's on and off ive been looking for almost a whole month and havent found jack. I want to do this without any microcontrollers. ...

Python: Importing modules from parent folder

I am running Python 2.5. This is my folder tree: ptdraft/ nib.py simulations/ life/ life.py (I also have __init__.py in each folder, omitted here for readability) How do I import the nib module from inside the life module? I am hoping it is possible to do without tinkering with sys.path. (Note: The main module being r...

MS Access: How can I automatically reduce Text columns to an appropriate size for the data stored in them?

MS Access has a passable text file import wizard. (File -> Get External Data -> Import.) Unfortunately, text columns (fields) are always imported with 255-character size, regardless of the actual data found in the input file. How can I reduce these 255-character Text columns to a reasonable size without manually doing a bunch of "SELECT...

Find out field type based on data

Im doing a one-time import routine from one system to another. The first step is to import a lots of data from a lots of csv-files. The first line in each csv-file is fieldnames tab separated. The rest is the data, also tab separated and rows are separated with a CR. I have written a 20-liner routine that creates the tables and reads in...

VBA: How do you prevent a QueryTable from refreshing?

I wrote a macro that imports a CSV file into my spreadsheet, using a QueryTable. My goal is to import the CSV data and be able to save it in the spreadsheet for future reference. However, the QueryTable updates with the external CSV file, of course, and I would like to prevent this (because I want to forget about the external file). ...

force excel to stop applying "auto-corrections" to csv import data

NOTE: this question is almost a dupe of: http://stackoverflow.com/questions/284092/stop-ms-excel-auto-formatting-numeric-strings-as-numbers I say "almost" because this specific question was not asked ... Question: Is there a way to attach a "schema" to a CSV file, prior to Excel import, that allows Excel to understand the correct form...

Incorporating text files in applications ?

Is there anyway I can incorporate a pretty large text file (about 700KBs) into the program itself, so I don't have to ship the text files together in the application directory ? This is the first time I'm trying to do something like this, and I have no idea where to start from. Help is greatly appreciated (: ...

How to import a net assembly

Hello, I downloaded zlib.NET and there's a file that I must import,its named "zlib.net.dll". My question is :How do I import that file so I can use it in C# Express 2008 like "System.zlib.etc"? Thanks. ...

JScript 'import' syntax for ASP classic

I'm using an ASP "classic" server, with JavaScript as the language engine, specified by the directive: <%@LANGUAGE='JAVASCRIPT'%> I've noticed that `import' seems to be a keyword. Technical Information (for support personnel) * Error Type: Microsoft JScript compilation (0x800A03F2) Expected identifier /Default....

How to execute differnet import.sql in Hibernate/JPA for each persistence unit?

I have configured two persistence units in my JPA/Hibernate configuration. Now i need to execute different import.sql for each persistence unit. How can I specify which import.sql should be executed for each persistence unit? According Hibernate to documentation, I should place import.sql in classpath. If I do that, import.sql is execute...

Google Search API Inside Firefox Extension

Hi, I am developing a firefox extension and I need to include the Google Search API. But I am encountering an error in the google.load('search','1') line. Can anyone tell what the problem is Thanks. ...

How can I import data to SQL from CSV or XLS automatically incrementing a string field based on current records in DB?

I need to import data from Excel into a SQL 2000 db. I need to import 6 fields from the worksheet and increment a string field containing an integer padded to 5 characters with leading zeros. This field is not the primary key and the db does not automatically populate this. Also the DB will allow this field to be entered as NULL if this...

No response in Eclipse: File ->Import->Existing Projects into Workspace

I'm trying to import one of the GWT samples into Eclipse by following the instructions below. But when I browse to the directory containing the "Hello" sample and uncheck "Copy projects into workspace", the Finish button is grayed out, preventing me from completing the import. Any ideas why? -- Option A: Import your project into Ecli...

Import de-normalized relational data from Excel into SQL Server

I need to import data from an Excel spreadsheet into SQL Server, but the data isn't in a relational/normalized format so the import wizard isn't going to cut it (as far as I know). The data is in this format: Category SubCategory Name Description Category#1 SubCategory#1 Product#1 Description#1 Category#1 SubCatego...

Data import wizard library for .Net?

Does anyone know of a 3rd party data import wizard that can be embedded into applications? It should import from Excel, Access, SQLServer, csv, tab-separated flat file, XML, Oracle etc. We have a fixed data structure within our application and the user should be able to configure the wizard to match his/her import fields to our own data ...