import

Eclipse and python: library will import in interprer, but not in IDE

I'm running Windows 7, Python 2.6.4 and the latest version of Eclipse. I downloaded the boto library (http://code.google.com/p/boto/) and ran python setup.py install, which created boto-1.9b-py2.6.egg in C:\Python26\Lib\site-packages. Importing a class - say, by doing 'from boto.sqs.connection import SQSConnection' - works fine from th...

Uiimport does not save variable to base workspace

I tried using uiimport to load a file to the base workspace.....It worked first time....but after trying again after a while...I wasnt seeing the variable in the base work space. I used the default variable name which is given by 'uiimport". This was the command I used: uiimport(filename) And two variables where created by default.....

Is there a posibillity to import own data into google analytics?

I want to compare own data with data generated by google analytics. For example I want to see the number of my twitter followers compared with my page visitors per day. Is there a way to do something like this? ...

How does #import search for files in Objective-C

I can only find a little bit of information on the topic. My understand right now is that #import <my.h> // searches in the system paths #import "my.h" // searches in the same dir as the source file - is that right? I have an static library with .h files in a different location. Can I have the compiler search a new folder for .h fi...

What is an "import" called?

It is not a statement nor an expression. What is that called then? A directive? ...

Flex: How to access movieclips within an imported swf

Hello, I have imported a swf (not created with Flex, i.e. non-framework) into a Flex application. Once loaded, I would like to access movieclips within that imported swf. Looking at Adobe's docs (http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html), it seems straightforward; however, their examples are between a...

Import mysql database in osx

Hi, I have a mysql dump generated from phpmyadmin in a windows environment, when i try to import in osx (using mysql command line) there are encoding problems, the databases have the same encoding and collation. I've also noticed that this problems occurs also when i try to import a diferent database from a unix virtual machine. When ...

Should I use static import?

How important it is to convert all my import to static import? Why are people still reluctant to use static import? ...

[BDE paradox] Read paradox DBF files and import in H2 database

Hi all, can i import DBF files (i think it is files of paradox database) into H2 database? I think a good solution is to write a small wrapper in java to read dbf data and save in h2 database, there is a jdbc driver to use paradox with java? Thank you. ...

iPhone best location for code used by more than one viewcontroller?

The more I develop iPhone apps, the more reusable functions I write. At the moment I just copy them into the .m files that need them. But would it be better to have a separate .m file and #import it instead? I don't wish to compile a library, I just want to know how other folks have handled this. Thanks. Clarification: I want other .m f...

Python Finding all packages inside a package, even when in an egg

Given a Python package, how can I automatically find all its sub-packages? I used to have a function that would just browse the file system, looking for folders that have an __init__.py* file in them, but now I need a method that would work even if the whole package is in an egg. ...

Have a problem importing to MapPoint through a C# DLL

We're trying to import a file from a C# dll into MapPoint, and can get it to read the data just fine, but we are having trouble with MapPoint not recognizing all of the addresses. Currently, our file contains not only address information, but latitude and longitude as well (under the headers of Lat and Lon). Is there any options we can...

Programmatically import CSV data to Access

I have an Access database and the source of data comes from generated CSV files. I'd like to have an easy way for the users to simply select the data file and import it. Import should append the existing data to the data already in the data table. Is there a way in Access to create a file selector and import using saved CSV import settin...

Drools rules import with wildcard

Hello everyone, I am working with Drools rules. Some developers have created rules which I have to put on Guvnor (rules repository) and build packages. In these rules they have import statements with wildcards, for example: import org.drools.runtime.rule.*; When I upload this on Guvnor and try to build, it tells me: Unable to introspe...

MYOB Service Sales Import

I have developed an export file from our Job Management system that I want to be able to import into MYOB Accounting Plus v18.5. The file is generated without issue and I have included every single field to make it easy for upload (i.e. Match All matches every field) The problem I am having is no matter what I do, I cannot get the sale...

Using a C file in an xcode/objective-c project

I am making an iPhone app. I have a code that is in C. The C code contains a lot of pointers and global variables. I want to use this C code in my objective-c project. Can anybody please help me with this? ...

stored procedure for importing txt in sql server db

I have to insert new records in a database every day from a text file ( tab delimited). I'm trying to make this into a stored procedure with a parameter for the file to read data from. CREATE PROCEDURE dbo.UpdateTable @FilePath BULK INSERT TMP_UPTable FROM @FilePath WITH ( FIRSTROW = 2, MAXERROR...

Create a new table and import data from csv file into SQL Server 2005

Hi, I have several files about 15k each of CSV data I need to import into SQL Server 2005. What would be the simplest way to import the csv data into sql server? Ideally, the tool or method would create the table as well, since there are about 180 fields in it, this would simplify things. ...

how to import the blog.py(i import the 'blog' folder)

my dir location,i am in a.py: my_Project |----blog |-----__init__.py |-----a.py |-----blog.py when i 'from blog import something' in a.py , it show error: from blog import BaseRequestHandler ImportError: cannot import name BaseRequestHandler i think it import the blog folder,not the blog.py ...

how to import a.py not a folder

zjm_code |-----a.py |-----a |----- __init__.py |-----b.py in a.py is : c='ccc' in b.py is : import a print dir(a) when i execute b.py ,it show (it import 'a' folder): ['__builtins__', '__doc__', '__file__', '__name__', '__path__'] and when i delete a folder, it show ,(it import a.py): ['__builtins__', '...