import

I get an error during a template import attempt in Dot Net Nuke 5.x.x

Hello all, I get a error during a template import, the template is created in Dot Net Nuke 5, I am trying to create a new child portal and import a template, during the process I get: Tab Exists at DotNetNuke.Entities.Tabs.TabController.AddTabInternal(TabInfo objTab, Boolean includeAllTabsModules) at DotNetNuke.Entities.Tabs.TabControll...

Using T-SQL to read an XML feed directly into an XML field in a table?

I see a LOT of resources about producing feeds from T-SQL2005, about parsing XML into a database schema, processing, bulk operations, etc. What I don't see is how to have, for example, a statement/s in a stored proc or function which can simply access a URL for an XML feed, load the XML into a table field or sproc variable and close the...

RGoogleDocs authentication failure

Here's the deal: I've installed RGoogleDocs package from OmegaHat repository and everything worked fine during installation, but when I try to load specific document (spreadsheet) it states that I'm unauthorised! I did: # installation install.packages("RGoogleDocs", repos = "http://www.omegahat.org/R") library(RGoogleDocs) auth <- getG...

SQL Server - Copy stored procedure's from one database to other

I am trying to copy a database with huge data from SQL Server 2005 to SQL Server 2008. I tried using the Copy Database Wizard but could not use the wizard because they are two different server 2005 and 2008. So I copied all the tables using Import data wizard from SQL Server 2008. I had about 1120 stored procedures to be copied, so on ...

How do to multiple imports in Python ?

In Ruby, instead of repeating the "require" (the "import" in Python) word lots of times, I do %w{lib1 lib2 lib3 lib4 lib5}.each { |x| require x } So it iterates over the set of "libs" and "require" (import) each one of them. Now I'm writing a Python script and I would like to do something like that. Is there a way to, or do I need to ...

Importing large amounts of flat XML files to excel

Hi, I have a bunch of XML files that have a flat hierarchy, but each contain a differing amount of (uniquely named) nodes. Example: <?xml version="1.0" encoding="UTF-8"?> <SomeName> <Node1> DataA </Node1> <Node2> DataB </Node2> <Node3> DataC </Node3> <AnotherNode1> DataD </AnotherNode1> ...

SQL: Normalizing Code / Export - Import

I've decided to rewrite a database I have that is poorly normalized. I've created the new database but now need to move data from the old database into the new one. I'm not sure exactly how to accomplish though. For example, in the old database I have a webDorms table that looks like this: id (PK, int) room_type (varchar) description (...

Scala value slf4j is not a member of package org

I'm trying get cross compiling between 2.7.7 and 2.8.0. The package is included, this works just fine in 2.7.7. Here's the code: package bizondemand.utils { package logging { import _root_.org.slf4j.LoggerFactory /**This code copied and pasted from http://johlrogge.wordpress.com/2009/06/27/loggingtools-in-scala/ * */ I keep get...

Wordpress Database Import

I just imported my Wordpress database from a localhost installation on my computer to the online server. However, all the links still point to localhost instead of the server's url. Is there something extra I forgot to do? (Note: I did not hard write my links so for example the navigation which still points to localhost is generated w...

Problems importing a .lib into another project.

I'm using Visual Studio 2008 under Windows 7. I have a .lib and accompanying .h files (which make use of wxWidgets if that makes a difference) which compile without any issues. I'm trying to import that library into a GUI project but when I do, the main class I'm interested in doesn't appear to be there? I've added #include "MyLib.h" ...

Importing csv file into postgres

Using Mysql Administrator GUI tool - I have exported some data tables retrieved from an sql dumpfile into csv files. I then tried to import these csv files into a postgres database using the postgres COPY command. I've tried entering "COPY articles FROM '[insert .csv dir here]' DELIMITERS ',' CSV;" and also the same command without the ...

How to read multiple files in parallel?

I have a number of text files that I need to open, then allocate certain fields to set strings inside PHP to eventually write into MySQL. Each txt file does have the same unique value for app_id, eg So text file 1 has app_id name description text file 2 has app_id category text file 3 has app_id price I want to get name, descript...

How do I import an existing GIT project into SVN, preserving GIT history on master branch?

I've a project developed with GIT and have a few hundred commits. I only have one master branch and the commits are linear. Now I'm asked to put the source into an existing SVN and ultimately I'd like to preserve the master commit history (the messages and the diffs, author is preset by SVN access). It's like I need to replay the whole...

Splitting comma delimited cell data

I have a spreadsheet with multiple columns, one of which is an owner_id column. The problem is that this column contains a comma delimited list of owner id's and not just a single one. I've imported this spreadsheet into my sql database (2008) and have completed other importing tasks and now have a parcel_id column as a result of this p...

How to copy a MSDE database to SQL Server 2008 Express?

We have a client environment that has MSDE. We're looking to install SQL Server 2008 Express on the clients but must retain MSDE for other applications. Assuming both MSDE and SQL Server 2008 Express exist on a single machine what options are available to copy a database from MSDE to SQL Server 2008? Suppose that MSDE may or may not be...

Import multiple files from a folder in Python

I have a folder in my Application directory called Commands.folder. What I want to do is import all the modules in that folder, regardless of the name, into the python file that imports. How can I do this? ...

How to import several instances with MEF ?

I have coded a service like that : public interface IMyInterface { ... } [Export(typeof(IMyInterface))] internal class MyService : IMyInterface { ... } Now, I'd like to import several instances of MyService with MEF in my main program. How can I do that ? With [Import] private IMyInterface MyService { get; set; } I only get 1 i...

Java Packaging Woes

OK so I decided to work somemore on my test files in Java.. I decided to .rar up the folder from my Home PC and bring it to my Work PC. The problem? When I compile -- I get: C:\Documents and Settings\djasnowski\Desktop\gJson\readGoogle.java:1: package com.google.gson does not exist import com.google.gson.*; ^ C:\Documents and Settings\...

Do I need to validate uploaded files (PHP) if they are not going to be stored on the server?

I have a wordpress theme with an options page. I have included a basic export/import options feature. The export feature allows the users to download the options to a text .dat file and store them on their own computer. The import options button reads a .dat file and overwrites the current options in the database. Then the file is delete...

Exporting and importing selected rows in a database

Let's say I have a database like this: Users ----- ID int PK Identity Name vchar(max) Sales ----- UserID int FK Description vchar(max) And some data: Users 1, "Daniel" 2, "Barnie" 3, "Frank" Sales 2, "New computer" 2, "Rubber duck" 3, "Cabbage" There are also several other tables that link to this primary key. Now there is a req...