import

How to Perform a Bulk Product/Category/Sub Category Import With Magento?

Does anybody know where to find a detailed guide to performing a bulk product/category/sub category import With Magento? For example, what fields can be imported? What format can be imported? How to do it with a Chron job? etc ...

Dynamically importing modules in Python3.0?

I want to dynamically import a list of modules. I'm having a problem doing this. Python always yells out an ImportError and tells me my module doesn't exist. First I get the list of module filenames and chop off the ".py" suffixes, like so: viable_plugins = filter(is_plugin, os.listdir(plugin_dir)) viable_plugins = map(lambda name: nam...

Is there any difference between class imports and package imports in Java?

This is probably a dumb question but thought to ask it. In java we can either import single classes as well as the whole set of classes (a package). As an example import java.util.* includes import java.util.ArrayList; import java.util.Date; import java.util.Enumeration; import java.util.HashSet; import java.util.Hashtable; import ...

Circular import dependency in Python

Let's say I have the following directory structure: a\ __init__.py b\ __init__.py c\ __init__.py c_file.py d\ __init__.py d_file.py In the a package's __init__.py, the c package is imported. But c_file.py imports a.b.d. The program fails, saying b doesn't...

Import CSV from url address and export as XML -- Rails

Two questions: How can I import a file from a web address, without a form? Example: Organisation.import(:from => 'http://wufoo.com/report.csv') How can I use xml builder without pulling from the db? More Info My company uses wufoo for web forms. The data from wufoo is exported as csv files. To get the data into my company's cms, it...

Importing modules into postgres

I'm trying to import several modules that come bundled with 8.4.1 postgres, and all the commands to do so (such as contrib.import etc) do not work or cannot be found. Please help me. ...

Python: imports at the beginning of the main program & PEP 8

The PEP 8 recommends that modules be imported at the beginning of programs. Now, I feel that importing some of them at the beginning of the main program (i.e., after if __name__ == '__main__') makes sense. For instance, if the main program reads arguments from the command line, I tend to do import sys at the beginning of the main progr...

With .ics files can I delete old events?

Im currently working on an .ics export from our application. Can I somehow delete old events, so in my first import into outlook I have 152 events and during my second import I only have 100 events. Then I would like the import to automatically delete all 52 events from Outlook, is this possible? I know that I can make events canceled,...

Use of any class / namespace with ZendFramwork

EDIT: Additional questions: do I have to add the '.php' at the end of new NAMSPACE_CLASSNAME Can I access any Zend package inside my controller / model, for example: /* Controller // Methods // inside a */ method $client = new Zend_Http_Client('http://example.org', array( 'maxredirect...

How to concatenate multple python source files into single file

(Assume that: application start-up time is absolutely critical; my application is started a lot; my application runs in an environment in which importing is slower than usual; many file need to be imported; and compilation to .pyc files is not available.) I would like to concatenate all the python source files that define a collection o...

How do I make these relative imports work in Python 3?

I have a directory structure that looks like this: project/ __init__.py foo/ __init.py__ first.py second.py third.py plum.py In project/foo/__init__.py I import classes from first.py, second.py and third.py and put them in __all__. There's a class in first.py nam...

activestate pythonwin missing import modules?

I'm working my way through DiveIntoPython.com and I'm having trouble getting the import to work. I've installed ActiveState's Pythonwin on a windows xp prof environment. In the website, there is an exercise which involves 'import odbchelper' and odbchelper.name http://www.diveintopython.org/getting_to_know_python/testing_modules.ht...

Python: Do relative imports mean you can't execute a subpackage by itself?

I've recently ported my Python project to run on Python 3.1. For that I had to adopt the policy of relative imports within the submodules and subpackages of my project. I've don’t that and now the project itself works, but I noticed I can't execute any of the subpackages or submodules in it. If I try, I get "builtins.ValueError: Attempte...

C# Excel import data from CSV into Excel

How do I import data in Excel from a CSV file using C#? Actually, what I want to achieve is similar to what we do in Excel, you go to the Data tab and then select From Text option and then use the Text to columns option and select CSV and it does the magic, and all that stuff. I want to automate it. If you could head me in the right di...

Avoiding duplicate emails during first sync between IMAP account and new email client

Avoiding duplicate emails during first sync between IMAP account and new email client I have an IMAP account that I access through my email client at work, I plan to access this same account at home. The account has thousands of emails in it, and rather than downloading all of these during the first sync at home, I would like to export...

Setting up relationships while importing core data?

I have an in memory managed object context called importMoc that I use to import records (e.g. employees). I have parsed a file and set up the employee objects in importMoc with one very important exception. The user confirms they want to process %d employees but I can't quite figure out how or when to set the "parent" relationship of th...

System Out of Memory exception? Having this error when I try to use many functions for an import

The situation is that I can import a file successfully. But when i add data to different tables thru functions I get this error. Are their ways to solve this problem. Since Ive seen in other forums that it is a performance/memory issue. But the server has almost 8GB of ram. what can be the solution to this? ...

Importing certificate from .pfx file in Windows Server 2008

I need to automate installation of SSL certificates using scripts. I have been able to import server certificate from .pfx file using: certutil -user –p 123 -importpfx "C:\Users\test\Desktop\ISServer.pfx" However, it stores the certificate in Personal folder of Current User. I need to store it in "Trusted People" folder. Is there a wa...

System.OutOfMemoryException on WCF Web Service

I struggle on a System.OutOfMemoryException when performing an import process where a lot of objects are being created. The effect is that the ASPNET_WP.EXE blows up to 1.4 GB and the exception will be thrown. I already tried to implement IDisposable and calling the Garbage Collector (GC.Collect()) in that responsible functions, but no...

How to import csv files selected by user to database

Hi I wonder how i can import csv files that selected by user to database using php. is there any practical way on this ? thanks ...