import

Problem in importing the CSV file containing multiple commas in a sigle field

Hi Experts, I am having an issue with importing a large(60MB) CSV file in MYSQL DB. The problem arises when an address field has multiple comma seperated values e.g. home no, street no, town etc. I tried to use BigDump for it but, the problem did not solved because of a single field containing multiple comma separated values. Any idea...

Import MySQL file in PHP

I have a MySQL file which I want to import via PHP 5. In the name of user friendliness the user should not use tools like PHPmyadmin etc. Just hit a button and the file will get imported. I have already created code to upload the file to a location on the server. The file looks like this: INSERT INTO products VALUES ('', '0', '10', '...

SQL Server Import table keeping default values

I am importing a table from one database to another in SQL Server 2008 by right-clicking the target database and choosing > Tasks > Import Data... When I import the table I get the column names and types and all the data fine, but I lose the primary key, identity specifications and all the default values that were set in the source tab...

Import xml to database with high end performance and Audit log- A best Practice

Hi, I have to import big xml files to Ms SQL 2005 Database by using C# with high end Performance. Even if any record fails in middle, i have to take next record for process and failed record need to log for audit. I don't want to put insert query with in for loop. Could you please suggest a best way to do this. If I can use bulkcopy ...

Looking for a Python IDE with good support for libraries (Twisted).

I'm looking for a Python IDE that can help me easily locate and manage and use the libraries on my system (Ubuntu). Specifically Twisted. Code completion is important including the symbols I import. (I've so far had a look at PyDev as well as OpenKomodo, but while both offer code completion for default Python concepts, I wasn't able t...

export eclipse configurations

I have moved recently to a new version of eclipse 3.5 from 3.2.I dont want to recreate all the configurations/settings i did ,is there a way to export /import these settings?please forgive if this is a duplicate question,but i tried to search in SO but couldn get it . ...

Scope of "library" methods

Hello, I'm apparently laboring under a poor understanding of Python scoping. Perhaps you can help. Background: I'm using the if __name__ == "__main__" construct to perform "self-tests" in my module(s). Each self test makes calls to the various public methods and prints their results for visual checking as I develop the modules. T...

#import <FTUtils/FTAnimation.h> returns "No such file or directory exists error"

Anyone out there using the FTUtils library for iPhone development? Following the instructions here BUT getting an exception when I: #import <FTUtils/FTAnimation.h> The funny thing is, I can import every other header file BUT this one. Any ideas? ...

User Controls Importing Problem (asp.net)(vb)

I have this class that contains vars for db connection; Imports Microsoft.VisualBasic Imports System.Data.SqlClient Imports System.Web.Configuration Public Class DBVars Public Shared s As String Public Shared con As String = WebConfigurationManager.ConnectionStrings("NMMUDevConnectionStr").ToString() Public Shared c As New S...

Import a python module without the .py extension

I have a file called foobar (without .py extension). In the same directory I have another python file that tries to import it: import foobar But this only works if I rename the file to foobar.py. Is it possible to import a python module that doesn't have the .py extension? Update: the file has no extension because I also use it as a ...

How to use methods defined in a python scipt from a console like ipython.

Hello, I have written a python script with methods in it. Now I want to use methods from that script in ipython. How do I import it for use in ipython? Cheers ...

Import AppleScript methods in another AppleScript?

Is there a way to use defined AppleScript methods in other AppleScripts which reference the original AppleScript with something similar to import (f.e. in PHP)? I wrote a methode to set Skype status and mood-text: on setSkypeStatus(status, mood_text) tell application "System Events" set skypeRunning to count (every process ...

PHP Load variables from external file

Hello, How can I import a variable from an external file? What I want to do is to have a configuration file in which I can write all my website settings and then to import these settings to every file, so I can set the website skin and things like that.. How can I do this? Thanks! ...

Java Package - To create a button and import one when needed.

This is more like a package/import test. We'll start with my base folder at .../javaf/test.java My goal is to create subcategory and create a class with a button that I can import to test.java when I need a button. I feel like I've done it right, I know that the button doesn't do anything as of now, but I just want to make the whole thi...

Groovy load .csv files

Hi all, How to read and import .csv file in groovy on grails. I have .csv file with data and need to import in to db using user interface . thanks in advance, srinath ...

How can you check if a file exists before including/importing it in JSP?

Assuming that requestScope.importMe is expecting a path to a jsp file <c:choose> <c:when test="${!empty requestScope.importMe && fileExists(requestScope.importMe) }"> <c:import url="${requestScope.importMe}" /> ... How can I check if the file exists before trying to include it so that an error is not thrown? I'd like to ...

Python module seeing a full list as empty in another module

I'm working on a pygame project and have the main engine layed out. The problem is I hit a bug that I just can not seem to figure out. What happens is one module can't read a variable from another module. It's not that the variable can't be read, it just sees an empty list instead of what it really is. Instead of posting the entire s...

Add DLL to NetBeans Project

I want to add dll file into my project. But i don't know where and how to add my dll in NetBeans anyone please help me.. ...

MS-Access to SQL Server 2000 problem with datetime

I'm trying to transfer some data from Access to SQL Server 2000 (there are no other way to do this sadly), I'm using Access to mssql to do the job. The program fails everytime it finds a datetime in this fashion: 03/07/2009 10.17.00 While it imports date like this: 29/12/2008 I don't understand where this problem come from so I ask...

Accessing Python module fails although its package is imported

Hey Stackers! :) My Django project's directory hierarchy looks like this: + pybsd |---+ devices |---+ templates |---+ views |---+ interaction |---- __init__.py |---- geraete.py |---- geraetemodelle.py |---- geraetegruppen.py |---- __init__.py |---- ajax.py ...