compare_oracle / oraclechunk25.json
xPXXX's picture
Upload 10 files
b34f274
Raw
History Blame Contribute Delete
11.9 kB
Invalid JSON:Unexpected non-whitespace character after JSONat line 2, column 1
{"QuestionId": 17521493, "AnswerCount": 2, "Tags": "<svn><subclipse>", "CreationDate": "2013-07-08T07:51:44.493", "AcceptedAnswerId": "17521733", "Title": "org.apache.subversion.javahl.ClientException - client is too old", "Body": "<p>I get the following error message when I try to compare files in Eclipse using Subclipse:</p>\n\n<blockquote>\n <p>Unsupported working copy format svn: This client is too old to work with the working copy at 'C:\\XXX' (format 31). You need to get a newer Subversion client. For more details, see <a href=\"http://subversion.apache.org/faq.html#working-copy-format-change\" rel=\"nofollow\">http://subversion.apache.org/faq.html#working-copy-format-change</a>.</p>\n</blockquote>\n\n<p>I'm using, svn (command line): 1.8.0, Subclipse: 1.8.22, Subversion JavaHL: 1.7.10.</p>\n\n<p>What could be wrong?</p>\n", "Lable": "No"}
{"QuestionId": 17546967, "AnswerCount": 1, "Tags": "<javascript><json><arguments>", "CreationDate": "2013-07-09T11:22:59.893", "AcceptedAnswerId": "17547122", "Title": "What's going on with JSON.stringify(arguments)?", "Body": "<p>Why doesn't arguments stringify to an array ? </p>\n\n<p>Is there a less verbose way to make arguments stringify like an array?</p>\n\n<pre><code>function wtf(){\n console.log(JSON.stringify(arguments));\n // the ugly workaround\n console.log(JSON.stringify(Array.prototype.slice.call(arguments)));\n}\n\nwtf(1,2,3,4);\n--&gt;\n{\"0\":1,\"1\":2,\"2\":3,\"3\":4}\n[1,2,3,4]\n\n\nwtf.apply(null, [1,2,3,4]);\n--&gt;\n{\"0\":1,\"1\":2,\"2\":3,\"3\":4}\n[1,2,3,4]\n</code></pre>\n\n<p><a href=\"http://jsfiddle.net/w7SQF/\">http://jsfiddle.net/w7SQF/</a></p>\n\n<p>This isn't just to watch in the console. The idea is that the string gets used in an ajax request, and then the other side parses it, and wants an array, but gets something else instead.</p>\n", "Lable": "No"}
{"QuestionId": 17565664, "AnswerCount": 2, "Tags": "<opengl><projection><glu>", "CreationDate": "2013-07-10T08:20:25.633", "AcceptedAnswerId": "17566748", "Title": "gluProject and 2D display", "Body": "<p>I would like to display a 2D image at a 2D point calculated from a 3D point using gluProject().\nSo I have my 3D point, I use gluProject to get its 2D coordinates, then I display my image at this point.\nIt works well but I have a problem with Z coordinate which makes my image appear two times on the screen : where it should really appear and at \"the opposite\".</p>\n\n<p>Let's take an example : the camera is at (0,0,0) and I look at (0,0,-1) so in direction of negative Z.</p>\n\n<p>I use 3D point (0,0,-1) for my object, gluProject gives me as 2D point the center of my window which is the good point.</p>\n\n<p>So when I look in direction of (0,0,-1) my 2D image appears, when I rotate, it moves well until the point (0,0,-1) is not visible, which makes the 2D image go out of screen so not displayed.</p>\n\n<p>But when I look at (0,0,1), it also appears. Consequently, I get the same result (for the display of my 2D image) if I use 3D point (0,0,-1) and (0,0,1) for example. I assume there is something to do with the Z coordinate that gluProject returns but I don't know what.</p>\n\n<p>Here is my code : my zNear=0.1 and zFar=1000</p>\n\n<pre><code> GLint viewport[4];\n GLdouble modelview[16];\n GLdouble viewVector[3];\n GLdouble projection[16];\n\n GLdouble winX, winY, winZ;//2D point\n\n GLdouble posX, posY, posZ;//3D point\n posX=0.0;\n posY=0.0;\n posZ=-1.0;//the display is the same if posZ=1 which should not be the case\n\n //get the matrices\n glGetDoublev( GL_MODELVIEW_MATRIX, modelview );\n\n viewVector[0]=modelview[8];\n viewVector[1]=modelview[9];\n viewVector[2]=modelview[10];\n\n glGetDoublev( GL_PROJECTION_MATRIX, projection );\n glGetIntegerv( GL_VIEWPORT, viewport );\n\n int res=gluProject(posX,posY,posZ,modelview,projection,viewport,&amp;winX,&amp;winY,&amp;winZ);\n\n if(viewVector[0]*posX+viewVector[1]*posY+viewVector[2]*posZ&lt;0){\n displayMyImageAt(winX,windowHeight-winY);\n }\n</code></pre>\n\n<p>So, what do I need to do to get the good display of my 2D image, that's to say to take Z into account?</p>\n", "Lable": "No"}
{"QuestionId": 17634052, "AnswerCount": 4, "Tags": "<python-2.7><caldav><owncloud>", "CreationDate": "2013-07-13T20:41:25.690", "AcceptedAnswerId": null, "Title": "Python library to access a CalDAV server", "Body": "<p>I run ownCloud on my webspace for a shared calendar. Now I'm looking for a suitable python library to get read only access to the calendar. I want to put some information of the calendar on an intranet website.</p>\n\n<p>I have tried <a href=\"http://trac.calendarserver.org/wiki/CalDAVClientLibrary\" rel=\"nofollow noreferrer\">http://trac.calendarserver.org/wiki/CalDAVClientLibrary</a> but it always returns a <code>NotImplementedError</code> with the query command, so my guess is that the query command doesn't work well with the given library.</p>\n\n<p>What library could I use instead?</p>\n", "Lable": "No"}
{"QuestionId": 17685540, "AnswerCount": 1, "Tags": "<ruby-on-rails><ruby-on-rails-3>", "CreationDate": "2013-07-16T19:40:12.380", "AcceptedAnswerId": "17685737", "Title": "no routes to destroy an element of a child association", "Body": "<p>I have two models</p>\n\n<pre><code>Parent\n has_many :children\n\nChild\n belongs_to :parent\n</code></pre>\n\n<p>And I would like to have a clean rails route to destroy children from parent.</p>\n\n<pre><code>resources :parents do\n resources :children do\n delete 'destroy'\n end\nend\n</code></pre>\n\n<p>but I get an error while calling parent_child_destroy_path</p>\n\n<pre><code>No route matches {:action=&gt;\"destroy\", :controller=&gt;\"ads\"}\n</code></pre>\n\n<p>The action nevertheless exists...</p>\n\n<p>Anyone does know how to get such a clean route?</p>\n", "Lable": "No"}
{"QuestionId": 17747084, "AnswerCount": 1, "Tags": "<java><osb><oracle-service-bus>", "CreationDate": "2013-07-19T13:16:34.363", "AcceptedAnswerId": null, "Title": "Is there a way to handle custom java exception in OSB?", "Body": "<p>For example, i created a exception that extends RuntimeException.\nMy exception has a new field called \"code\". I want to handle this exception in Oracle Service Bus process and retrieve this code to throws another exception with a XML structure that includes the code.\nIs there a way to do that ?</p>\n", "Lable": "No"}
{"QuestionId": 17788525, "AnswerCount": 1, "Tags": "<syntax><grammar><bnf><ebnf>", "CreationDate": "2013-07-22T13:12:02.043", "AcceptedAnswerId": null, "Title": "Extended BNF problems", "Body": "<p>I have some question about the Extended BNF.</p>\n\n<pre><code>(* Extended BNF grammar *)\nmin = 5;\nmax = 10;\nvalue = integer; (* How can I set the range rule: `min &lt;= value &lt;= max`? *)\n</code></pre>\n\n<p>Second question:</p>\n\n<pre><code>name = letter, { letter | decimal digit };\n(* The common length of the comment line must be not more than 128 characters. \nBut I don't know the name's length. How can I set this restriction? *)\n comment line = ';', name, ' ', 128 * [ character ], new line;\n</code></pre>\n\n<p>I've read the ISO/IEC 14977:1996(E) completely, but don't find the answers.</p>\n\n<p>Thank you.</p>\n", "Lable": "No"}
{"QuestionId": 17975445, "AnswerCount": 2, "Tags": "<c><variadic-functions>", "CreationDate": "2013-07-31T16:07:02.310", "AcceptedAnswerId": "17975630", "Title": "va_list and char* strings", "Body": "<p><strong>[EDIT]</strong> inserted NULL terminated in samples</p>\n\n<p>I have a function that receives a <code>va_list</code> which ends with a <code>NULL</code>. I concatenate each string in a <code>char*</code> called <code>joinedString</code>. Function works as expected except by my <code>joinedString</code> grows its size each time I call this function. I mean the previous string remains and new string is joined.</p>\n\n<p>Example:\nFirst call:</p>\n\n<pre><code>ShowMsg(style1, \"a\", \"s\", \"d\", NULL);\n</code></pre>\n\n<p>Yielded result: \"asd\"</p>\n\n<p>Second call:</p>\n\n<pre><code>ShowMsg(style1, \"w\", \"w\", \"q\", NULL);\n</code></pre>\n\n<p>Yielded result: \"asdwwq\"</p>\n\n<p>This behaviour is strange because each time this function is called <code>joinedString</code> is initialized. Does va_list holds values previously used?\nI'm using C, not C++ and I know, using std::string will be far more easy.</p>\n\n<pre><code>int ShowMsg(MSGBOXSTYLE msgStyle, char* str, ...)\n{\n char* title = \"\", *joinedString = \"\", *theArg = \"\";\n wchar_t* convertedTitle = \"\", *convertedString = \"\";\n\n va_list args;\n theArg = str;\n va_start( args, str );\n while(theArg != NULL)\n {\n if(msgStyle == WARN)\n {\n title = theArg;\n }\n else\n {\n strcat( joinedString, theArg );\n strcat( joinedString, \"\\n\\r\" );\n }\n theArg = va_arg(args, char*);\n }\n va_end(args);\n ...\n convertedTitle = (wchar_t*)malloc((strlen(title)+1)*sizeof(wchar_t));\n convertedString = (wchar_t*)malloc((strlen(joinedString)+1)*sizeof(wchar_t));\n mbstowcs( convertedTitle, title, strlen(title)+1 );\n mbstowcs( convertedString, joinedString, strlen(joinedString)+1 );\n ...\n free(convertedTitle);\n free(convertedString);\n}\n</code></pre>\n", "Lable": "No"}
{"QuestionId": 18039782, "AnswerCount": 2, "Tags": "<php><html>", "CreationDate": "2013-08-04T04:41:22.693", "AcceptedAnswerId": "18039800", "Title": "submit data via URL bar in PHP and HTML", "Body": "<p>I have this very basic form in my html page.</p>\n\n<pre><code>&lt;form action=\"post.php\" method=\"post\"&gt;\n Message: &lt;input type=\"text\" name=\"message\" /&gt; &amp;nbsp; \n &lt;input type=\"submit\" name=\"submit\" value=\"send\"&gt; \n&lt;/form&gt;\n</code></pre>\n\n<p>and then stores the data onto my database backend.</p>\n\n<p>id also want to submit data via URL bar, such as this.</p>\n\n<p><code>http://localhost/test.php?message=test&amp;submit=send</code></p>\n\n<p>but when i try to do above, nothing happens.</p>\n\n<p>how can i achieve such method?</p>\n\n<p>[EDIT]\nmy post.php</p>\n\n<pre><code>&lt;?php\ninclude_once(\"connect.php\");\n\n if (isset($_GET['submit'])) {\n if ($_GET['message'] == \"\") {\n echo \" no input, return\";\n exit();\n }\n else {\n $message = $_GET['message'];\n mysql_query(\"insert into data (message) values ('$message')\");\n header ('location:index.php');\n exit ();\n }\n }\n\n else {\n echo \"invalid\";\n }\n\n?&gt;\n</code></pre>\n", "Lable": "No"}
{"QuestionId": 18212455, "AnswerCount": 1, "Tags": "<c#><javascript><asp.net>", "CreationDate": "2013-08-13T14:55:00.023", "AcceptedAnswerId": "18212515", "Title": "Passing ASP.NET Elements to JavaScript Functions", "Body": "<p>I have created the following text-box and label:</p>\n\n<pre><code>&lt;asp:TextBox ID=\"MyTextBox\" runat=\"server\"/&gt;\n&lt;asp:Label ID=\"MyLabel\" runat=\"server\"/&gt;\n</code></pre>\n\n<p>Moreover, I have created the following JavaScript function:</p>\n\n<pre><code>function characterLimit(myTextBox, myLabel)\n{\n myLabel.innerHTML = myTextBox.value.length + '/' + myTextBox.maxLength;\n}\n</code></pre>\n\n<p>Finally, in the code-behind, I have performed the following:</p>\n\n<pre><code>TextBox1.Attributes.Add(\"OnKeyUp\", \"characterLimit(MyTextBox, MyLabel);\");\n</code></pre>\n\n<p><code>characterLimit()</code> gets called. However, nothing happens; it is as though I am passing <code>MyTextBox</code> and <code>MyLabel</code> incorrectly (above). What is the correct way of doing this?</p>\n", "Lable": "No"}