import

How to import a .dmp file (Oracle) into MySql DB?

The .dmp is a dump of a table built in Oracle 10g (Express Edition) and one of the fields is of CLOB type. I was trying to simply export the table to xml/csv files then import it to the MySql, but the export simply ignored the CLOB field... (I was using sqldeveloper for that). I noticed this post explaining how to extract the CLOB t...

Unimporting in Scala

I heard recently some advice to "unimport an implicit conversion from Predef" - I presume that this means it is possible to unimport unwanted classes too: import java.awt._ unimport java.awt.List But this is not the syntax of an "unimport" (i.e. there is no such unimport keyword). What is the correct syntax? ...

Python: importing through function to main namespace

(Important: See update below.) I'm trying to write a function, import_something, that will important certain modules. (It doesn't matter which for this question.) The thing is, I would like those modules to be imported at the level from which the function is called. For example: import_something() # Let's say this imports my_module my_...

Namespace-respecting relative import in Python

I have this folder structure: package/ __init__.py misc/ __init__.py tools.py subpackage/ __init__.py submodule.py I am in submodule.py, and I would like to import misc.tools. I don't want to use absolute import to import package.misc.tools, because then my package would only work when it's ...

SQL Compact import DB from SQL Server Express with Server Management Studio

Hi! I try to import sql script, generated with Server Management Studio, into SQL Compact 3.5 and get a lot of error. What I am doing wrong? I generate script with "Task/Generate Script" context menu. Part of my script: CREATE TABLE [LogMagazines]( [IdUser] [int] NOT NULL, [Text] [nvarchar](500) NULL, [TypeLog] [int] NOT NULL, [Date...

How do I make Python pick the correct module without manually modifying sys.path?

Hi, I have made some changes in a python module in my checked out copy of a repository, and need to test them. However, when I try to run a script that uses the module, it keeps importing the module from the trunk of the repository, which is of no use to me. I tried setting PYTHONPATH, which did nothing at all. After some searching a...

[VB.NET] Better Way of Getting the Text Value of Cells in an Excel (*.xls) File

I'm trying to write an import function for getting data out of an excel file. How I currently do it is as follows: Private Sub ReadExcel(ByVal childform As PhoneDiag.frmData, ByVal FileName As String) Dim xlApp As Excel.Application Dim xlWorkBook As Excel.Workbook Dim xlWorkSheet As Excel.Worksheet xlA...

How to import mysql sql file into microsoft visio 2007 ?

Hello, Does anyone know how to import a mysql sql file into microsoft visio 2007, and then generate a database chart automatically? Thanks a lot. ...

Why am I getting a little-endian error when importing .so file in python.

Im attempting to use a C++ extension for Python called PySndObj. and getting an error I have never seen and cannot find anything about on the web :( ImportError: /home/nhnifong/SndObj-2.6.6/python/_sndobj.so: ELF file data encoding not little-endian I know that probably means the byte order is backwards, So I tried writing a little scr...

Visual Studio 2008 automatically add namespces like Eclipse

Does VS2008 have a feature akin to Eclipse's ability to automatically add import declarations for undefined namespaces? ...

How do I import a third party lib into git?

Hi I'm looking at how to import some third part code into a git repository. The third party code is the "stm32f10x_stdperiph_lib" that is provided by ST. The lib is actually a bunch of normal c-files (and header-files) that you just include and build with when you do a STM32 project. The problem is that they only provide it as a zip...

Importing from excel "applications" using SSIS

Hello, I am looking for any tips or resources on importing from excel into a SQL database, but specifically when the information is NOT in column and row format. I am currently doing some pre-development work for a project, and in most ways I would like to use SSIS for the project. The one area that my research and googling is leaving...

How can I make the PyDev editor selectively ignore errors?

I'm using PyDev under Eclipse to write some Jython code. I've got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ISubInterface The problem is that PyDev will always flag this as an error and say "Unresolved import: ISubInterface". The code works just fin...

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As far as I can tell my code is correct and my file is file fine. Does anyone have any ideas? Thanks. ExcelWorksheet Ew = ExFi.Worksheets[0]...

Python (and Django) best import practices

Out of the various ways to import code, are there some ways that are preferable to use, compared to others? This link http://effbot.org/zone/import-confusion.htm in short states that from foo.bar import MyClass is not the preferred way to import MyClass under normal circumstances or unless you know what you are doing. (Rather, a bette...

List all the modules that are part of a python package?

Is there a straightforward way to find all the modules that are part of a python package? I've found this old discussion, which is not really conclusive, but I'd love to have a definite answer before I roll out my own solution based on os.listdir(). ...

How to Increase the Max Length of the Product Description in Magento (when importing)?

Edit: This was a bogus question. The problem was that I had quotes in my description field. The entire field should be wrapped in one set of quotes with none inside. Changed quotes to apostrophes to fix. Magento is working correctly. I am using a Profile in the Import/Export section of my Magento admin to import a CSV document. My desc...

How to import images into magento using an absolute path?

I tried importing product images into Magento using an absolute path, but it did not work. The image was not uploaded. For example, I tried importing "http://somewebsite.com/someimage.jpg". The image was not imported. (I listed the abosolute path on a csv doc and imported using a Profile on the Import/Export screen of the Magento Admi...

Moving Data Views Across Sharepoint Sites

We have a production SharePoint site that uses a custom database quite a bit. We have a dev site on a separate box where we develop all of our things then move them over to a live site when they are ready for our customers. We have many pages that use data views to show information from the database. Most of the actual programmability...

Usage/availability of import function in Processing.js

The reference page (use "toggle all") for Processing.js says the import command remains unimplemented. It references a page for the Java Processing language that describes a usage pattern like this: import processing.opengl.*; I see at Github that some work on the import command was committed to the root in May. Does anyone know how thi...