import

how to import a csv or excel to pgAdmin III?

Hi people, How can you import to a table in PgAdmin III from an excel or CSV? Command copy works only when the file is in the server! :S ...

How to use .NET configuration files (app.config, settings.settings) to save and restore all application data?

Although there are a lot of posts about .net config files, I believe that my requirements do not allow for any of the solutions proposed (or I don't understand the process enough to make it work for me). The situation is that I have a Windows Forms application (could just as well be another app) which binds certain user input fields (e....

Not include the database name in the execution string when using the Import Export Wizard?

I have a process where data is transferred from an Excel spreadsheet into SQL Server. To do this, I've created a dtsx using the SQL Server Import / Export Data wizard. The trouble is, the script could be run against any database. But the wizard seems to default to using the format CREATE TABLE [Database].[dbo].[table] when creating th...

Import data into R with an unknown number of columns?

I'm trying to read a text file with different row lengths: 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 7 1 2 3 4 5 6 7 8 To overcome this problem, I'm using the argument fill=TRUE in read.table, so: data<-read.table("test",sep="\t",fill=TRUE) Unfortunately, to assess the maximum row length, read.table reads ...

Complex Flat Files in SSIS

SSIS is great at handling flat files where all the records are the same, but not so good when there is a little complexity. I want to import a file similar to this - Customer: 2344 Name: John Smith Item Description Price Qty 543455 Widget 1 4.00 2 543556 Widget 2 8.00 1 I want to ...

Import exported SVN

Hello all, I have a bit specific question. How would I import an exported SVN repo? I have already read few of the import/export questions around here, but my case is more specific. What I got was an exported SVN repo (with my projects' source), now I need to import it again. How would I do it? ...

What's the difference between these imports?

For example, sometimes there's an import like this: #import <Cocoa/Cocoa.h> and sometimes the import looks like this: #import "Foo.h" Now what's the difference there? The first is in < > tag things, and the second is in doublequotes. What does the first do? Is that used for pre-compiled files like frameworks which are compiled alre...

NetBeans importing libraries on its own

I am having a problem with NetBeans projects. It affects everyone on my team, for every project. Whenever a project is opened, or even sometimes seemingly at random, NetBeans (6.1) will add two libraries to the compile-time list. Normally this would go unnoticed, but the inclusion of these libraries causes JBoss to unceremoniously grenad...

question regarding jsp page import and <jsp:useBean id

Hi I have a J2EE application which is working and I has the basic structure as APP |____login.jsp |____ other files/directories (several other directories and files required) |____WEB-INF |__classes |__top |___web (has more sub directories with class files) | ______NewDir |__login...

read in data file from MATLAB to Dev C++

Here's what I want to do: Take 2x101 matrix for x and y coordinates and import that data in Dev C++ in program and use it for that code. Right now my Dev code has double Cord[NCargo][2] = {{x0,y0},{x1,y2},{...},{x100,y100}} You get the idea. I want my .mat file matrix read into and put into this Cord Matrix. The name of my C+...

Having models' declarations at two folders in Django

How can you have model declarations at two different directories in Django? I have the model at the directory Code which contains "init.py", "models.py" and "admin.py". It is working properly alone. I want to have the directory History which has the model of the revisions of the given questions. I have the similar files in the director...

Why import urlfetch from Google App Engines?

Here in Google App Engines I got this code that would help fetch an HTML code of any web page by its URL: from google.appengine.api import urlfetch url = "http://www.google.com/" result = urlfetch.fetch(url) if result.status_code == 200: doSomethingWithResult(result.content) I don't understand one thing here (among many other things, ...

Python app engine import issues after app is cached

I'm using a modified version on juno (http://github.com/breily/juno/) in appengine. The problem I'm having is I have code like this: import juno import pprint @get('/') def home(web): pprint.pprint("test") def main(): run() if __name__ == '__main__': main() The first time I start the app up in the dev environment it works fin...

Imports with Pydev/Eclipse

I'm working with the interactive console in eclipse, and reload does not show updated functions in my code. My code was : def func1(): return 1 def func2(): return 2 but when I changed it to def afunc1(): return 1 def func2(): return 2 def func1(): return 3 and ran imp.reload(TestMod), I go...

How to access a builtin module in Python when there is a local module with the same name?

How can a built-in module (say math) be accessed when a file prog.py is placed in the same directory as a local module with the same name (math.py)? I'm asking this question because I would like to create a package uncertainties that one can use as import uncertainties from uncertainties.math import * Thus, there is a local math modu...

Import typed DataSet to SQL Server

Dear guys I want to import a typed DataSet with DataTables (not with TableAdapters) to my SQL Server database. The structure of all DataTables in the DataSet is the same like in the SQL Server database. With the same fields. How can I import the whole typed DataSet to my SQL Server database? Best regards ...

Oracle -- Import data into a table with a different name?

I have a large (multi-GB) data file exported from an Oracle table. I want to import this data into another Oracle instance, but I want the table name to be different from the original table. Is this possible? How? Both importing and exporting systems are Oracle 11g. The table includes a BLOB column, if this makes any difference. Th...

Importing text files with comments in MATLAB

Is there any character or character combination that MATLAB interprets as comments, when importing data from text files? Being that when it detects it at the beginning of a line, will know all the line is to ignore? I have a set of points in a file that look like this: And as you can see he doesn't seem to understand them very well. Is...

A way to automatically organize #imports in Xcode

I love the "Organize Imports" command in Eclipse to implicitly add and remove classes imported into a source file (as in Java or ActionScript). Is there a command in Xcode to update the #import directives at the top of.m Objective-C files based on the classes referenced within the file? ...

Cocoa: What's the difference between importing in the header and importing in the main file?

I've no idea why, but on occasion I've managed to fix some compile errors, most notably error expected specifier-qualifier-list before 'someClass' by moving #import "someClass.h" from the .h file into the .m file. This has also worked with a couple of other problems i've encountered that have been (mysteriously from my point of view)...