import

Why won't my objective c implementation file recognize my import statement

Here is my header file #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import <PolygonShape.h> @interface Controller : NSObject { IBOutlet UIButton *decreaseButton; IBOutlet UIButton *increaseButton; IBOutlet UILabel *numberOfSidesLabel; //IBOutlet PolygonShape *shape; } - (IBAction)decrease; - (IBAction)incr...

How can I create a totally dependent SWF from an existing dynamic one?

I manage a website that has ModX and for some reason I just can't get dynamic SWF files to load. This is not normally a problem as I have a Flash menu creator program that makes static SWF files. However, this new one only makes dynamic SWFs (ones that rely on external files and XML). I've tried making a Projector of the file but with th...

Efficient function for reading a delimited file into DataTable

Hi all, I was wondering if anyone knew of an efficient c# function for reading a tab delimited file into a datatable? Thanks ...

Using MySQLdump for sub-set of database migration

I've been using both mysql and mysqldump to teach myself how to get data out of one database, but I consider myself a moderate MySQL newbie, just for the record. What I'd like to do is get a sub-set of one database into a brand new database on a different server, so I need to create both the db/table creation sql as well as populating...

Convert Access queries to SQL Server views when using DTS

I'm using DTS to import data from an Access database to SQL Server 2005. It seems that DTS imports Access queries as tables instead of views, which won't work for me. Is there any way around that? ...

django - circular import problem when executing a command

I'm developing a django application. Modules of importance to my problem are given below: globals.py --> contains constants that are used throughout the application. SITE_NAME and SITE_DOMAIN are two of those and are used to fill some strings. Here is how I define them: from django.contrib.sites.models import Site ... SITE_DOMAIN = Sit...

Can eclipse prevent you from using particular classes?

For example, I don't want to use org.testng.v6.Maps, (I want com.google.common.collect.Maps) I don't want to use org.hibernate.mapping.List, (I want java.util.List like everyone else!) Is there a way to tell Eclipse not to suggest these in the autocomplete box? ...

Any way to import multiple (csv) files to an Access db

I have multiple csv files with the same scheme, and I want to import them in one step. A solution could be to use the "import wizard", but I can only import one file with it. Oh, and it would be the best to work in msaccess2003. THX ...

How can I start X11 window with no display associated

I'd like to start Firefox for example with no display associated and eventually take a screenshot with import. Can I in fact make it periodically with cronjobs? I'm now making a ssh -X connection, take the xwininfo for the window started in background and everything's OK. But I'd like to automate it. ...

Why is there module search path instead of typing the directory name + typing the file name?

Is there an advantage? What is it? ...

How to export text data from a SQL Server table?

I am trying to use the MS SQL Server 2005 Import/Export tool to export a table so I can import it into another database for archival. One of the columns is text so if I export as comma-delimited, when I try to import it into the archive table, it doesn't work correctly for rows with commas in that field. What options should I choose to e...

good or bad practice in python: import in the middle of a file

Suppose I have a relatively long module, but need an external module or method only once. Is it considered ok to import that method or module in the middle of the module? Or should imports only be in the first part of the module. Example: import string, pythis, pythat ... ... ... ... def func(): blah blah blah fr...

How to import to SQL Server 2005 from flat file with data transformations

I have a flat data file that I need to import into my SQL Server 2005 DB. Many of the fields need to be split off into different, related tables. For example, the flat file has names, addresses and telephone numbers, all in one record. In my DB, the Person table has many Telephones and Addresses. Is there a one-step process whereby I...

MSBuild - Target Dependent Imports

I want to make an import dependent on which target I call MSBuild with from the commandline but I'm having a hard time figuring out how to programatically access the target name(s) the .proj file was called with i.e. <Import Project="some.targets" Condition="$(TargetName) == myTarget"/> In general is there a way to dump all defined env...

How to import python module in a shared folder?

I have some python modules in a shared folder on a Windows machine. The file is \mtl12366150\test\mymodule.py os.path.exists tells me this path is valid. I appended to sys.path the folder \mtl12366150\test (and os.path.exists tells me this path is valid). When I try to import mymodule I get an error saying the module doesn't exist. ...

Python: How to get rid of circular dependency involving decorator?

I had got a following case of circular import (here severly simplified): array2image.py conversion module: import tuti @tuti.log_exec_time # can't do that, evaluated at definition time def convert(arr): '''Convert array to image.''' return image.fromarray(arr) tuti.py test utils module: import array2image def log_exec_time...

Importing files in Python from __init__.py

Suppose I have the following structure: app/ __init__.py foo/ a.py b.py c.py __init__.py a.py, b.py and c.py share some common imports (logging, os, re, etc). Is it possible to import these three or four common modules from the __init__.py file so I don't have to import them in every one of the files? Edit: My goa...

Importing the entire Python standard library

I need a way to import the entire Python standard library into my program. While this may seems like a bad idea, I want to do this is so py2exe will package the entire standard library with my program, so my users could import from it in the shell that I give them. Is there an easy way to do this? Bonus points: I would prefer that thi...

How do I import the entire package but exclude some in Clojure?

I want to import the entire weka.classifiers.functions package but dont want to import RBFNetwork class. (ns com.wekatest (:import (weka.classifiers Classifier Evaluation) (weka.classifiers.functions) (weka.core Attribute FastVector Instance Instances))) Thanks. Edit: (weka.classifiers.functions) doesnt impor...

How to transfer tables/databases between two remote T-SQL Servers programatically in .NET?

I think the question explains itself ...