import

Is there a way to fix the imported project error for Microsoft.CSharp.targets, other than changing the reserved property to $(MSBuildBinPath)?

So I am getting the error: The imported project "C:\Microsoft.CSharp.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. When I run this command: %WINDIR%\Microsoft.NET\Framework\v2.0.50727\msbuild.exe MyProject.csproj /target:publish I found others stating that...

How to include all boost header files?

In Java if you wanted all the classes in a namespace you could just do this: import com.bobdylan.*; Is there anyway I can get a result similar to: import boost.*; (except in C++) ...

Any advice on parsing an OPML file with PHP so I can import the addresses into a mySql database?

I want to be able to have the user select an OPML file that contains a large number of bookmarks, then loop through each one and toss it in a mysql database. Any direction would be much appreciated. ...

Which language to use for scripting PostgreSQL?

I am about to embark on a PostgreSQL project for a client. They want to develop a huge professional database with many complex joins, so after consideration I have chosen to go with PostgreSQL over MySQL. An important consideration is how to effectively interface to the database with scripts. Currently, the client uses about a million s...

Python: How do I disallow imports of a class from a module?

I tried: __all__ = ['SpamPublicClass'] But, of course that's just for: from spammodule import * Is there a way to block importing of a class. I'm worried about confusion on the API level of my code that somebody will write: from spammodule import SimilarSpamClass and it'll cause debugging mayhem. ...

Haskell tool to rewrite import statements to name all imports?

While writing Haskell code, I often simply type import System.Environment import System.Directory Is there a tool available that will amend these import statements and add the function names I actually use back into the import statements? Such as: import System.Environment (getArgs) import System.Directory (getDirectoryContents) Th...

Dynamically import a callable given the full module path?

>>> import_path('os.path.join') <function join at 0x22d4050> What is the simplest way to write import_path (in Python 2.6 and above)? Assume that the last component is always a callable in a module/package. ...

Combine Separate Git Repository Branches

I have two separate git repositories. One is mine, and has "Branch A", the other was developed by someone else and has "Branch B". They both have the same master branch. How do I import his branch inside my git repository? So I want the result to be: $ git branch Branch A Branch B master ...

importing a module in nested packages

This is a python newbie question: I have the following directory structure: test -- test_file.py a -- b -- module.py where test, a and b are folders. Both test and a are on the same level. module.py has a class called shape, and I want to instantiate an instance of it in test_file.py. How can I do so? I have tried: from ...

import from raima

Hello, I have an old in DOS program (1) with Raima(db_vista) database and i must create import data from program (1) to other program (2). Program (1) has *.dat and *.key files, but i can't find *.dbd file. Is it possible that file *.dbd not exists? Can it be compiled in EXE? Is it possible export data to .txt files from .key and .dat fi...

SQL Server 2008 Import Data Wizard doesnt recognize Integer data for a column.

Hi, I have an excel sheet with 10 columns with headers. For a column I can have the data as "FF5" or else 620. The sheet name is IODE. I am trying to import this data from SSIS Import data wizard into the database of table IODE. On selecting source and destination in the wizard, when I click on PREVIEW DATA in Select Source Tables and...

Importing globally and locally

I created a module which is going to be used in several python scripts. The structure is as follows: Main file: import numpy as np from mymodule import newfunction f = np.arange(100,200,1) a = np.zeros(np.shape(f)) c = newfunction(f) mymodule.py: def newfunction(f): import numpy as np b = np.zeros(np.shape(f)) return b ...

AS4 Flash Importing Custom Classes

I am trying to import classes to no avail. test.fla timeline 1: var main:Main = new Main(); main.as package{ import flash.display.MovieClip; public class Main extends MovieClip{ public function Main() { var _myClass:myClass;//this line will fail trace("Main"); ...

Multiple import into SVN repository

Hi, is there any way how to do multiple imports into SVN repository? I.e. I want to import first file a/b/file1.txt and then file a/b/file2.txt. First import is OK, but second one throws "directory a already exists" error. Is there any way how to accomplish this multiple import? ...

mysql data import from excel

how to import the data from excel to mysql database. if i convert my worksheet to csv and import it says "Invalid field count in CSV input on line 1." ...

data sync from rails with iphone sqlite db

Hi all, I'm wondering whether there is a bossibility to export some selected data from my rails mysql db to a other sqlite db. The aim is to send that sqlite file directly to my iPhone application... That way I don't have to do a lot of xml integration in the iPhone app. That seems to be very slow... Markus ...

Why both, import logging and import logging.config are needed?

Should not it be handled by a single import? i.e. import logging. If I do not include import logging.config in my script, it gives : AttributeError: 'module' object has no attribute 'config' ...

How to convert XML element data into PHP numeric array

I'm not really a web developer and I'm trying to make a web interface for parsing and displaying experimental data, so I apologize if this is a ridiculously easy solution. I'm trying to take data from an XML element and convert it into a PHP numerical array that I can plot using GD. So far, I have the XML creation, XML loading, and GD ...

android import export database

Hi, there. I am trying to implement a feature into my app to copy the current database unto the sdcard. Are there any tutorials or code snippets to achieve this. I've already looked at this site, http://mgmblog.com/2009/02/06/export-an-android-sqlite-db-to-an-xml-file-on-the-sd-card/ ... but I wont be able to import the data with this m...

I'm programming an Android application. I want to use XPath to parse XML.

How do I include this in my Android package? When I do: import javax.xml.parsers.*; import javax.xml.xpath.*; It simply doesn't work? Do I have to put files into my JAVA project? Where? ...