import

SQL Server 2008 - Shredding XML to tables need to keep UNKNOWN DATE value as NULL

Hello. I was wondering if someone could help I've successfully been able to import an XML document to a table with an XML data type in SQL Server2008, how ever when I try and shred from that table to a staging table any DATE values without an entered date are inserted to the staging table as 1900-01-01. Is there a cleaver way i'm mi...

Python tool for incorporating imported items

Is there a tool in python to rewrite some code which imports things such that it no longer has to import anything? Take a library that draws a box called box.py def box(text='Hello, World!') draw the box magic return Now in another program (we'll call it warning.py) it says: from box import box box('Warning, water found in ...

Dependent Classes in Java

For our assignment we need to write code for a neural network. The way I planned to do it was to write a Node class, which is a node within the network; a Layer class, which is a layer of nodes and a NeuralNet class, which is a network of layers. I'm having a lot of trouble understanding the way Java is designed to work for imports. To ...

What's the difference between @class Foo and import "Foo.h"?

What's the difference when using these codes: #import <UIKit/UIKit.h> #import "Foo.h" @interface EditFooViewController : UIViewController { Foo *foo; } @end and #import <UIKit/UIKit.h> @class Foo; @interface EditFooViewController : UIViewController { Foo *foo; } @end ...

Import/include another XUL file in XUL.

I am writting an Firefox add-on in XUL and I want to include another XUL file within my browser.xul. In PHP I would use something like this: include("anotherFIle.php"); but I don't know the equivalent in XUL. What is the best way to accomplish this? ...

How to export & import functions and execute them with MEF?

I am creating an application that imports several plugins. I need the ability to execute functions that are implemented in each of the plugins. For example, I need to do something like this. ///////////////////////////////////////////////////////////////////////////////// MainApp: [ImportMany(?)] public IEnumerable<Lazy<?>> PluginFu...

Export SQL file into Excel

Hi guys, I have a sql file which has a lot of insert statements (1000+), e.g. insert into `pubs_for_client` (`ID`, `num`, `pub_name`, `pub_address`, `pub_tele`, `pub_fax`, `pub_email`, `publ_website`, `publ_vat`, `pub_last_year`, `titles_on_backlist`, `Personnel`) values('2475','2473','xxx xxx xxx','xxx xxx, xxxx, xxxx, xxxx, ','000...

Importing from one database to another, with confllicting ID fields

I have a Ruby on Rails application that has two active environments, Stage and Production. Our development team has been using Stage, but we would like to move our data onto the production server for various reasons. However, there are conflicting ID's in the new database, so it's not as simple as pulling the data from one location and...

How do I do a faster MySQL Import?

We need to dump existing production data and then import it to a development DB for final rounds of testing. In pseudo-commands, currently we: mysqldump .... mysql -u __USER__ __DB__ < ./dbdump.sql mysql "sanitize script" The problem is that the middle command does the import and takes over an hour to import 600MB of data. Maybe thi...

Java Imports Error

I'm trying to import org.apache.commons.fileupload.* but I am being told that it does not exist. I am downloading this JAR: http://commons.apache.org/fileupload/ And placing it on the classpath. So what am I doing wrong here? ...

Importing between two applications in a django project.

I've got two applications (app1 and app2) in my django project. I'm curious if there is a way to import things between applications. baseProject --app1 ----models.py ----etc.. --app2 ----models.py ----etc.. I'd like to be able, while in app2, to import something from the models section of app1. Is there an intended method to do ...

import degree symbol (°) from excel or csv file to mssql database

I have a field in my csv file which contains the text: Frozen at 20°C but when i import into my database it appears as: Frozen at 20�C anyone know how i can keep the correct degree symbol? my import code looks like this string fieldValue = csv[i].Trim(); ...

How to get the assembly information of an imported MEF function?

Is it possible get the assembly information from an imported MEF function? I need to know the assembly version and name of the Plugin control that contains the function. Tried the following, but it just returns the System.ComponentModel.Composition version. foreach (Lazy<Func<int>, IMetadata> func in PluginFuncs) { // get assembl...

how can I ignore id column when importing into mySQL via phpMyAdmin?

I need to export data from a table in database A, then import it into an identically-structured table in database B. This needs to be done via phpMyAdmin. Here's the problem: no matter what format I choose for the export (CSV or SQL) ALL columns (including the auto-incremented ID field) get exported. Because there's already data in the t...

Java Classpath at Runtime

I am importing import org.apache.commons.httpclient.*; in a program, but whenever I go to run it, I have to include the JAR in the classpath. Why is this necessary? Are there any ways around this? ...

Why does Importing a dotted module name fail when upper level is matched by a module in current directory?

I was trying out one of the Python standard library modules, let's call it foo.bar.baz. So I wrote a little script starting with import foo.bar.baz and saved it as foo.py. When I executed the script I got an ImportError. It took me a while (I'm still learning Python), but I finally realized the problem was how I named the script. ...

How do I use Perl's import, use, require and do?

Can someone explain exactly the usage recomandations regarding the 4 perl imports: do, import, use and require? I'm looking for practical recommendations and keeping in mind possible issues that might arise in the context of mod_perl or something similar. We all love simple examples, good ones! So far the best resource I found was htt...

PHP file_get_contents after php has evaluated

Hey guys, I know how to use file_get_contents and fopen etc, but when I do it to one of my own file, I get the literal string, meaning, the code is not preprocessed! How can i import text from a file without using require etc. because I want to store the value into a string ...

Easy osCommerce Import Method Using CSV / XLS ?

Are there any easier ways to import/export products in osCommerce? I tried Easy Populate, but it isn't easy at all. I only need an importer that lets me add: Item Number Product Name Product Description Product Image Capsule Count Quantity Category Price Any ideas? ...

jqgrid Data Load from Excel

Hi, does jqgrid (free or commercial with PHP) have an OOTB function to Import Data from Excel? i see export options and examples in my search, but i dont see any for Import. Is this supported Out of the Box, or does one have to write their own PHP for that? I am considering purchasing the commercial version, but want to be sure before ...