load

MySQL .csv load failing due to “Cannot add or update a child row: foreign key constraint fails”

你说的曾经没有我的故事 提交于 2019-12-10 21:19:24
问题 I'm trying to load a .csv file with baseball schedules into a table of games. The csv file contents look like this: 5/17/2011,8:10 PM,14,13,Kansas City,MO 5/18/2011,8:10 PM,14,16,Chicago,IL 5/19/2011,8:10 PM,14,16,Chicago,IL 5/20/2011,7:05 PM,26,14,Columbus,OH and my sql statement to try and insert them is: LOAD DATA LOCAL INFILE 'c:/ftpsite/comp.csv' INTO TABLE game FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' (@DATE_STR, time, awayteam_id, hometeam_id,locationcity

SyntaxException with Neo4j LOAD command

这一生的挚爱 提交于 2019-12-10 20:42:41
问题 I'm using neo4j 2.1.2 for windows I was attempting to use Neo4j's load csv command but I get the following error... neo4j-sh (?)$ load csv with headers "file:../test/unclaimed.csv" AS csvLine MERGE (o:Original_Transaction_Number { value: csvLine.OTN }) MERGE (i:Institution {name: csvLine.Institution }) MERGE (i)<-[:TRANSACTION_OF]-(o) ; SyntaxException: Invalid input 'l': expected <init> (line 1, column 1) "load csv with headers "file:../test/unclaimed.csv" AS csvLine" ^ infact I get the same

dynamically load external JS and write response to a div

天大地大妈咪最大 提交于 2019-12-10 18:59:16
问题 I'm embedding a delicious feed into my page. When I just add the script tags inside the div it obviously loads before the rest of my JS (at the bottom of the page). I'd like to load this script into the specified div dynamically after all other js has loaded. I've tried the getscript function, but it definitely breaks the page when I use it with .html(): $('#delicious').html(function(){ $.getScript("http://feeds.delicious.com/v2/js/bayonnebridge?title=My%20Delicious%20Bookmarks&icon=m&count=5

google.load never calls callback

送分小仙女□ 提交于 2019-12-10 18:45:23
问题 I am trying to use the Google Earth plug-in, and have found that it's rather particular about how it is called: if called outside the main flow of the Javascript execution (via setTimeout, for example), it simply refuses to call the load callback. The example below is self-contained illustration. Change change which of the last two lines is commented out to see it work or not. What's going on? <html> <head> <title>Sample</title> <script type="text/javascript" src="https://www.google.com/jsapi

JQuery load doesn't seem to process <script type=“..” src=“a.js”>?

一笑奈何 提交于 2019-12-10 18:14:19
问题 I'm loading a page like this: function loadGUIComponents() { // load contents into each accordion area $("#listEntryDiv").load("listEntry/listEntryIndex.html"); $("#openEntryDiv").load("openEntry/openEntryIndex.html"); }; In listEntryIndex.html, scripts like this can be called right: <script> alert("AHA!"); </script> <h1>the world is helloed.</h1> But if I try to externalize JS into a separate file: <script type="text/javascript" src="listEntryIndex.js"></script> <h1>the world is helloed.</h1

VS2013 Test agent and controller not communicating

半腔热情 提交于 2019-12-10 18:07:08
问题 I have a Windows Azure VM running VS2013 Load Test Controller and a second Azure VM running 2013 Load Test Agent. I have not been able to get the two communicating successfully. I added the hostname and IP of each VM to the other's HOSTS file. I also created a local admin account with the same username and password on both machines. Neither machine is joined to a domain. I have also created endpoints for each VM to port 6901/TCP. I am able to telnet from the agent VM to port 6901 on the

jquery function that load html code into a div and then load other content into div inside html loaded

谁说我不能喝 提交于 2019-12-10 17:32:04
问题 I'd like to know what's the way to load an html page (page1.html) into a div in webpage active (index.html) and then load another html page (page2.html) into a div that will be inside of page loaded (page1.html). I mean. index.html <div id="content"></div> <a class="link" href="#">load</a> script $(document).ready(function() { $('a.link').live('click', function() { $('#content').load('page1.html', function(){ $('#content2').load('page2.html'); }); }); }); page1.html <div id="content2"></div>

How to load previously stored svm classifier?

╄→尐↘猪︶ㄣ 提交于 2019-12-10 16:59:37
问题 I'm working with openCV SVM in Visual Studio. (OpenCV 2.4.4.0) I trained it: mySVM.train(trainingDataMat, labelsMat, Mat(), Mat(), params); Saved it: mySVM.save("classifier.xml"); I'm loading it like this: CvSVM mySVM1; mySVM1.load("C:\classifier.xml"); mySVM1.predict(testingDataMat0,result0); And i want to use in other project. But when i try to load classifier this error bumps all the time: "Bad argument (The SVM should be trained first) in CvSVM::predict" Path is correct, and .xml seems

Loading all content (images) at once to increase site performance

好久不见. 提交于 2019-12-10 16:55:29
问题 I recently did some website analysis On My Site to find that 90% of my site's loading time is coming from the 100's of images I have on the site. I have already cropped and compressed all images so that they are around 120kb in size (each). Is there a way using jQuery perhaps that I could cache each image as the site loads so that each page doesn't take 10 - 12 seconds to load? If not, does anyone reading this have any better ideas? As of now, when each page loads it first loads the thumbnail

Live() keyword not working on load with dynamic html images

≡放荡痞女 提交于 2019-12-10 16:54:57
问题 I have images being dynamically added to a page, I don't seem to be able to get the 'load' event working dynamically with live(). This is the code I currently have: $('#largeImg' + nextUniqueItemID).hide(); $('#largeImg' + nextUniqueItemID).live('load' , function() { $('#loader' + nextUniqueItemID).hide(); $('#largeImg' + nextUniqueItemID).show(); }); with '#largeImg' + nextUniqueItemID being an image that was added to the page earlier in the function and '#largeImg' + nextUniqueItemID being