import

Should wildcard import be avoided?

I'm using PyQt and am running into this issue. If my import statements are: from PyQt4.QtCore import * from PyQt4.QtGui import * then pylint gives hundreds of "Unused import" warnings. I'm hesitant to just turn them off, because there might be other unused imports that are actually useful to see. Another option would be to do this:...

Importing enums in GWT

I have following code import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.UIObject; import com.google.gwt.dom.client.Style.Unit; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.LayoutPanel; import com.google.gwt.user.client.ui.RootLayoutPanel; import com.google.gwt.user.cl...

How do I export my source from TFS for import into CVS?

TFS version is 2010. CVS version is 1.11.17. ...

Consolidate multiple MySQL databases into one preserving referential integrity

I'm wanting to consolidate numerous MySQL databases, all with the same schema definition, into a single database. If I have a dump file from each database, how will I import them all into the same database without their primary keys and foreign keys clashing? Is there a fairly simple way to do this, or will I need to write some custom c...

Getting modules from a zip file?

There is a module I'd love to download, but it is only available in a zip file, how do I get such a file to work properly in python, so That I can import what I want? This is in Windows 7 BTW. ...

Importing SPSS dataset into Python

Hi, Is there any way to import SPSS dataset into Python, preferably NumPy recarray format? I have looked around but could not find any answer. Joon ...

Import MooseX::Method::Signatures into caller's scope

I've made a "bundle" module which does a bunch of things: imports Moose, imports true, namespace::autoclean, makes the caller's class immutable (taken from MooseX::AutoImmute). The one thing I haven't been able to figure out is how to include MooseX::Method::Signatures. Here's what I've got so far: package My::OO; use Moose::Exporter;...

How to avoid eclipse importing a class when putting the class name in the comments

Sometimes I put the class name in the comments of methods or class just for referencing. But eclipse does the import automatically and leaves an import statement in the file which causes "unused import" checkstyle errors later. Is there some configuration I can change to avoid eclipse automatically importing when I type the class name in...

Why is MySQL auto_increment skipping numbers.

We are running an import of an existing product table into a new table of our own. The import script we've written runs perfectly and inserts the right amount of rows (6000 or so). However, after the import the next auto incremented primary key/id is 1500 entries (or so) above the number of rows in the table. We can't understand why MyS...

what's wrong with renaming imported static functions?

Consider the following Scala code: object MainObject { def main(args: Array[String]) { import Integer.{ parseInt => atoi } println(atoi("5")+2); println((args map atoi).foldLeft(0)(_ + _)); } First println works fine and outputs 7, but the second one, attempting to map array of strings ag...

Conditional Import in LaTeX?

Hi everybody! I'm going to be taking a ton of lecture notes, and then compiling them into LaTeX so that I can have excellent documents for future me to look over. I'm trying to organize things so that I can have a bunch of little documents containing the notes from a lecture, and then compile them at the end of the semester into one la...

Phpmyadmin - import new column to existing records

Hi, I already have a table in phpmyadmin that contains users records. Each user has a unique admission number. I now want to add a new column to this table and was wondering how I can import data for this new column using just the admission number and new data. Is this possible? I have a CSV but can't work out the best way to import th...

Import data from excel into multiple tables

Hey all, I'm building an offline C# application that will import data off spread sheets and store them in a SQL Database that I have created (Inside the Project). Through some research I have been able to use some code that can import a static table, into a Database that is exactly the same layout as the columns in the worksheet What I...

Is this the right way to import Oracle dump database?

I need to import Oracle Database from production to development just for one schema. What's the easiest way to do this? What I did is to drop the user with this schema and recreate the user with the same options and run import command. Is this the right way to do? I use Oracle 10g and I am a developer not DBA but my DBA gives me the du...

add<Key>Object vs insertNewObjectForEntityForName Core Data Relationships

Hi, Although I have a lot of experience in database development, I'm having a hard time conceptualizing linking relationships in Core Data. As I understand it, the many relationship is an NSSet attached to the one file. After reading the documentation, I've understood part of it and gotten it to work in the first import in my code bel...

What are the mandatory steps to import a module ?

Hi, I'm new to python and I face an issue: I try to extend my SConstruct file and to import a module located in a sub-directory of my project. Here is my SConstruct file: import os, sys sys.path.append(os.path.abspath(os.path.join('.', 'custom_dir'))) import mymodule mymodule.foo() Here is the mymodule.py file, located into a subd...

How can I import my database (articles and tags) into blogger?

Is there are minimal XML specification which can be used to import blog using Import blog feature? ...

Trouble importing csv file with ruby CSV Module

I'm trying to use Ruby's csv module to import the records contained in a csv file to my local table in a Ruby on Rails 3 application. The table was created through the creation of model Movie. Here is what I've been executing in console: require 'csv' CSV.foreach('public/uploads/VideoTitles2.csv') do |row| record = Movie.new( ...

SCM (Subversion + XCode) doesn't import .a file

Hi folks, I have a simple question: My XCode project has a file called someLib.a, which I can see both inside the Xcode project and in the project's directory if I Reveal it in Finder. As usual, I made an import operation through the SCM by selecting the projects folder, however, If I make a checkout afterwards and open the project I ...

Importing date & time data from a txt file in Matlab

Hello, I have a txt file from which I want to load date & time data. UI import wizard ignores date & time string and loads only numeric data, which is also present in the file. How can I write a script that would load this date & time data as a vector of multiple values (I mean, 1st date, 2nd date and so on). I know how to manipulate th...