import

Accessing/importing user defined classes in jrxml

Hi, Have anyone tried to import user defined classes in jasper report (.jrxml file)? I want to use some (user defined) Util class inside my jasper report to cook some bean attributes. I am using Javabean datasource Please let me know if you need further clarification. syntax to import class is <import value="java.util.HashMap"/> I w...

How to import multiline csv files?

I got a file in this format. "abc";"def";"ghi asdasd asdasd asd asd aas d " Now i want to import it with Java. Does anyone know a library that support this kind of import? ...

Pilcrow appears in all the column values after importing from CSV file - MYsql

Hello All, my CSV content looks like this 1234,123;123;123 5675,123;567;234;565 No Space is provided at the end of each row in CSV i.e. 1234,123;123;123(No space here) Imported this using the following command mysql> load data local infile 'E:\sample.csv' into table Test.Table1 fields terminated by ',' lines terminated by '\n' (Co...

Expressing an SConscript's Own Dependencies

I have an SCons project set up as follows: Project/ SConstruct # "SConscript('stuff/SConscript', variant_dir = 'build') stuff/ SConscript # "import configuration" configuration/ __init__.py Thing.py When building, the SConscript is copied to the build directory, but the "configuration" ...

Python import mechanics

I have two related Python 'import' questions. They are easily testable, but I want answers that are language-defined and not implementation-specific, and I'm also interested in style/convention, so I'm asking here instead. 1) If module A imports module B, and module B imports module C, can code in module A reference module C without an...

How to import Oracle (C)LOB into another tablespace.

I'm importing a database dump from one Oracle 10g installation into another. The source has a layout with several tablespaces. The target has one default tablespace for the user I'm importing the dump into. Everything works fine, for ordinary tables. The tables are relocated from their original tablespace to the user's default. The prob...

Testing subpackage modules in Python 3

I have been experimenting with various uses of hierarchies like this and the differences between absolute and relative imports, and can't figure out how to do routine things with the package, subpackages, and modules without simply putting everything on sys.path. I have a two-level package hierarchy: MyApp __init__.py ...

python import a method that depends on a imported class

So if I have 2 files that look like this: File 1 import class1 import method1 def method2(something): result = method1(classname=class1) File 2 def method1(classname): some_result = classname.resultfinder return some_result Will this work? I mean, since I am not importing class1 in the file where method1 lives, but m...

python import fails when called from PHP

I'm having a puzzling problem when trying to import a module in python only when the script is called from php via system or exec. From the python shell: import igraph #This works. if the previous line was in a file, say, test_module.py, then: python test_module.py in the bash works. Within PHP: exec("python test_module.py",$output,...

When should I call SaveChanges() when creating 1000's of Entity Framework objects? (like during an import)

I am running an import that will have 1000's of records on each run. Just looking for some confirmation on my assumptions: Which of these makes the most sense: Run SaveChanges() every AddToClassName() call. Run SaveChanges() every n number of AddToClassName() calls. Run SaveChanges() after all of the AddToClassName() calls. The fir...

ESP Error when I call an API function?

platform : win32 , language : c++ I get this error when I call an imported function I declared: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different c...

get xml from excel, create dataset from xml and import into tables.

I need to create an dataset from excel. Currently I am doing it by following way :- Go through each worksheet in workbook, get each cells value..and create datatable for each worksheet..and create a dataset for given workbook. But we change the extension of an excel file to .xml(a.xls -> a.xml)..and create dataset out of this xml (this...

help with python urllib2 import error

In my script, I've imported urrlib2 and the script was working fine. After reboot, I get the following error: File "demo.py", line 2, in <module> import urllib2 File "/usr/lib/python2.6/urllib2.py", line 92, in <module> import httplib File "/usr/lib/python2.6/httplib.py", line 78, in <module> import mimetools File "/...

flex , ai,import,flash

can i import vector graphics file *.ai file(illustrator generated) into flex3 ?? ...

Generic import/merge logging preprocessing framework

We write reporting software. we want to do imports of data, when the user imports data we need to do a pre-process phase and display an overview of the impact the import will have. then the user will be able to choose actions based on this pre-processing phase that will determine how the actual import will proceed. usually in a situatio...

Oracle PL/SQL Import Japanese values CSV file

Hi. I am having problem with importing csv files containing values in japanese characters. When I do so it will display garbage when I query. my OS is japanese. My encoding for oracle NLS_LANG is JAPANESE_JAPAN.JA16SJISTILDE. I don't know what the problem is. When I try to import the very same file in some of my office mates' PC it just ...

Dynamically import class by name for static access

I am generating class names dynamically and then want to import that class by its name to access a static method. This is the class to import in "the_module.py": class ToImport(object): @classmethod def initialize(cls, parameter): print parameter According to a Blog post this is as far as I came: theModule = __impor...

Update Oracle table with values from CSV file

Hi, I have a CSV file which contains an ID and several other columns. I also have a table in oracle where the ID identifies a row. How can I best replace the values that are in the table with the values in the CSV file while keeping the other columns the way they were before? This has to be done with tools available in oracle itself (...

Why are there dummy modules in sys.modules?

Importing the standard "logging" module pollutes sys.modules with a bunch of dummy entries: Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32 >>> import sys >>> import logging >>> sorted(x for x in sys.modules.keys() if 'log' in x) ['logging', 'logging.atexit', 'logging.cStringIO', 'logging.codecs', ...

Absolute import failing in subpackage that shadows a stdlib package name

Basically I have a subpackage with the same name as a standard library package ("logging") and I'd like it to be able to absolute-import the standard one no matter how I run it, but this fails when I'm in the parent package. It really looks like either a bug, or an undocumented behaviour of the new "absolute import" support (new as of P...