import

Magento Api is too slow for lakhs of products

Hello all! I need your suggestion please, currently am using magento API for import products in magento admin (magento database) and I come into notice that .. its really too slow ..its taking approx 1 hr to add 1000 products ..and I have to add almost 2,60,000 + products ... how can I speed up the process .... is there process any alte...

Import email leads into joomla database

I have 5000 registered users on another domain database, I want to import all these users in joomla database as Registered user. how to do this....... ...

How to import module in parent folder not working in egg

My project has the following structure: setup.py project/ __init__.py main.py errors.py lib/ li1b.py lib2.py I'm importing the errors module with from . errors import Error1, Error2, Error3 which works fine when running the program with python main.py. However when I build and install it as an egg with ...

With Django, is there a better way to dynamically import views in urls.py?

Summary: Say I have a project in Django called "devsite" which will be deployed first to a staging project (also called "devsite") and finally to the live codebase (where the project is called "livesite"). During live deployments, I'd have to make manual changes to urls.py in order to import views from the right project. Which means url...

Postgres rule to help with CSV import

I need to import a csv file that has 10's of thousands of rows into a Postgres database daily. I'm looking into the most efficient way to do that as each line in the csv file can be a new record or an existing one that should be updated if it's there. After many searches, I stumbled upon a solution, which I used: CREATE OR REPLACE RULE ...

How to read XML CDATA with SAS

I have XML files containing multidimensional arrays of numeric data and I need to read them into SAS. To make files smaller, the format has been specified so that the data are stored in an one-dimensional CDATA array. To get an idea of the structure of the files, consider something like this: <!-- Metadata --> <table name=foo> <axis i...

MVC multi-model data import (fat model?)

I'm developing an app that will need to import data for three models from a single CSV file (with one-to-many associations). I have set up a Datafile model & controller to handle upload / parsing of the file. Right now, all the logic for parsing and saving the records is in the controller. This allows me to save to several different mode...

importing modules' files into submodules

i have a module with many files, which i import in themselves for sharing of functionality myModule/ -myFile1.py -myFile2.py -mySubmodule/ --myFile3.py i can do import myFile2, inside of myFile1, but how can i do a import myFile2 in myFile3 without referencing the base module? i dont want to reference myModule, because i am working o...

Usage of constants from interface

Recently i came across static import feature available in java . But was not so happy as this is available only for 1.5 or above. We work on jdk 1.3 and constantly implement interface just for the ease of accessing the constants. But i feel this is a wrong way of utilizing inheritence. Is there any alternative for this? other than of cou...

How can I automatically escape quotes in content when exporting from MySql to an sql file?

We have a Joomla website which we want to copy over to another host website. So far everything has been copied except for the database. The problem we're experiencing is as follows: After exporting the database information from our old website into an .sql file and trying to import it into an empty database on our new host, it seems tex...

import and compile axapta 2009 xpo by commandline

hi there, i'm looking for a way to import an existing xpo-export via command-line into ax2009 aot and afterwards compile just this imported xpo. google tells me how to compile the whole aot by commandline, which takes quite long. so is there a way to import an xpo ( shared project ) and compile just these objects? what possibilities ar...

In Scala, is it possible to write a script which refers to another script.

Hey all, I am currently looking at using Scala scripts to control the life-cycle of a MySQL database instead of using MS-DOS scripts (I am on Windows XP). I want to have a configuration script which only holds configuration information, and 1 or more management scripts which use the configuration information to perform various operat...

How to use importlib for rewriting bytecode?

I'm looking for a way to use importlib in Python 2.x to rewrite bytecode of imported modules on-the-fly. In other words, I need to hook my own function between the compilation and execution step during import. Besides that I want the import function to work just as the built-in one. I've already did that with imputil, but that library ...

Help adding files to new Subversion repository

I have an application running on my server which currently is not using any version control. I would like to start using Subversion version control and have signed up for a hosted Subversion Repository. My question is, how do I populate my hosted Subversion repository? Do I need to install Subversion on my server as well as having th...

In java, how do you import one project into another without having them in the same (Eclipse) workspace?

I've been a c++ programmer for 10 years, i'm used to just creating libraries and then linking to them from my existing project. However in java, i have 2 projects, one is my game engine, the other is the test environment that i would like to use, here is how it is structured: com.logic.engine com.logic.testapp yet in my test app, i ca...

Import large csv file to mysql database using php

I have a very large CSV file (150 MB). What is the best way to import it to MySQL? I have to do some manipulation in PHP before inserting it into the MySQL table. ...

Why do Python modules sometimes not import their sub-modules?

Hi all. I noticed something weird today I would like explained. I wasn't 100% sure how to even phrase this as a question, so google is out of the question. The logging module does not have access to the module logging.handlers for some odd reason. Try it yourself if you don't believe me: >>> import logging >>> logging.handlers Traceback...

How to set up Database for ASP.NET MVC Application

I created an data driven ASP.NET MVC Application locally and it works fine. Within my App_Data Folder of my project i see two databases: ASPNETDB.mdf and myProjectDatabase.mdf. I uploaded my project files an the webserver, so that I can actually open the website. But I couldn't figure out how to connect my Database that I created locall...

Problem with Python relative imports

I am using Python 2.6 and have the Facebook API installed as a python package (under /usr/lib64/python2.6/site-packages/facebook/...) which means, it is available with a plain import facebook or from facebook import .... This works well, as long as there is no name clash. For example, in my project, I try to import the Facebook API in m...

[Android] import class/method from java file

I'm currently learning android and java, and I am having some issues with importing a java file. I am working with the time and date example in the android api demos, and I want to put all the code relating to creating the time and date dialogs setting the values etc into a separate java file, and in my main java file run when the appli...