compare_oracle / oraclechunk18.json
xPXXX's picture
Upload 10 files
0d91987
Raw
History Blame Contribute Delete
19.4 kB
Invalid JSON:Unexpected non-whitespace character after JSONat line 2, column 1
{"QuestionId": 12343233, "AnswerCount": 1, "Tags": "<maven><ant><cargo>", "CreationDate": "2012-09-09T21:40:48.437", "AcceptedAnswerId": null, "Title": "Cargo run / start not working, missing Ant dependency?", "Body": "<p>I've been trying to set up the cargo-maven2 plugin (although I am using Maven 3; and this is supposed to be ok) so that I can start a container during the pre-integration-test phase and shut it down in the post-integration test phase.</p>\n\n<p>I'm having no luck. I keep getting this error message:</p>\n\n<pre><code>Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.2.4:start (start-container) on project microgivr.web: Execution start-container of goal org.codehaus.cargo:cargo-maven2-plugin:1.2.4:start failed: Unable to load the mojo 'start' in the plugin 'org.codehaus.cargo:cargo-maven2-plugin:1.2.4'. A required class is missing: org/apache/tools/ant/BuildException\n</code></pre>\n\n<p>Easy fix, right? Add Ant as a dependency. So I add:</p>\n\n<pre><code>&lt;dependency&gt;\n&lt;groupId&gt;org.apache.ant&lt;/groupId&gt;\n&lt;artifactId&gt;ant&lt;/artifactId&gt;\n&lt;version&gt;1.8.4&lt;/version&gt;\n&lt;/dependency&gt;\n</code></pre>\n\n<p>(And lord only know why this should need Ant in the first place.)</p>\n\n<p>I can now find org.apache.tools.ant.BuildException on my classpath, but I STILL get this error.</p>\n\n<p>So, thinking this is surely some issue with my own build, I decided to start fresh, using the maven2-cargo-plugin archetype documented here: <a href=\"http://cargo.codehaus.org/Maven2+Archetypes\" rel=\"nofollow\">http://cargo.codehaus.org/Maven2+Archetypes</a></p>\n\n<p>You know what? Same problem!</p>\n\n<p>I've tried different versions of the plugin. I've tried different versions of Ant. No luck.</p>\n\n<p>Someone MUST have run into this before. I see mentions of this issue online, but don't see any solutions.</p>\n\n<p>Any insight is appreciated!</p>\n", "Lable": "No"}
{"QuestionId": 12370544, "AnswerCount": 9, "Tags": "<java><immutability><mutable><primitive-types>", "CreationDate": "2012-09-11T13:13:08.353", "AcceptedAnswerId": "12370590", "Title": "Why are Java wrapper classes immutable?", "Body": "<p>I know the usual reasons that apply to general immutable classes, viz</p>\n\n<ol>\n<li>can not change as a side effect </li>\n<li>easy to reason about their state </li>\n<li>inherently thread safe </li>\n<li>no need to provide clone/copy constructor/factory copy method </li>\n<li>instance caching</li>\n<li>no need for defensive copies.</li>\n</ol>\n\n<p>However, wrapper classes represent primitive types, and primitive types are mutable. So why aren't wrapper classes mutable?</p>\n", "Lable": "No"}
{"QuestionId": 12409968, "AnswerCount": 1, "Tags": "<android><eclipse><layout>", "CreationDate": "2012-09-13T15:39:15.470", "AcceptedAnswerId": "12410598", "Title": "How i can make a consumption bar in Android?", "Body": "<p>how i can make a consumption bar?\nI tried using seekbar but its not the expected result so whats the best way to do it?\nIm adding an image where this bar show up as example\nim using eclipse and android sdk plugin</p>\n\n<p><img src=\"https://i.stack.imgur.com/VJWQN.jpg\" alt=\"consumption Bars \"></p>\n", "Lable": "No"}
{"QuestionId": 12570912, "AnswerCount": 1, "Tags": "<internet-explorer-9><css3>", "CreationDate": "2012-09-24T18:40:24.853", "AcceptedAnswerId": null, "Title": "How to convert text-shadow so IE9 will work", "Body": "<p>How would I set the text-shadow property in ie9 to match the other browsers like I've got it below?</p>\n\n<p>How to use .sysMenu-item text-shadow</p>\n\n<pre><code>.sysMenu-item{padding:8px;padding-top:7px;height:110%;float:left; \n border-right:.2em groove #fff;margin-top:-2px; cursor: pointer;\n text-shadow: 0 1px 0 rgba(255, 255, 255, 0.64);\n}\n</code></pre>\n\n<p>--in ie9?</p>\n\n<p>I need the above text-shadow to work in the below css3</p>\n\n<pre><code>html.ie9 .sysMenu-item {\n background-color: white;\n filter: progid:DXImageTransform.Microsoft.Chroma(color=rgba(255, 255, 255, 0.64)) \n progid:DXImageTransform.Microsoft.Alpha(opacity=100) \n progid:DXImageTransform.Microsoft.dropshadow(color=#ffffff,offX=1,offY=1)\n progid:DXImageTransform.Microsoft.dropshadow(color=#ffffff,offX=-1,offY=1)\n progid:DXImageTransform.Microsoft.dropshadow(color=#ffffff,offX=1,offY=-1)\n progid:DXImageTransform.Microsoft.dropshadow(color=#ffffff,offX=-1,offY=-1);\n zoom: 1;\n}\n</code></pre>\n", "Lable": "No"}
{"QuestionId": 12661862, "AnswerCount": 3, "Tags": "<matlab><utc><epoch>", "CreationDate": "2012-09-30T14:09:27.870", "AcceptedAnswerId": "12663377", "Title": "Converting Epoch to Date in Matlab", "Body": "<p>I have an array of Epoch milliseconds (array of numbers) in Matlab. I would like to convert these into UTC date-time format, such as DD-MM-YYYY HH:MM.</p>\n\n<p>Is there a pre-defined Matlab way to do this or will I have to write my own function?</p>\n", "Lable": "No"}
{"QuestionId": 12682278, "AnswerCount": 2, "Tags": "<ant><junit>", "CreationDate": "2012-10-01T22:57:15.910", "AcceptedAnswerId": "12685119", "Title": "Junit test error with Ant, no message, no reason given", "Body": "<p>I'm trying to use Junit test with ant.</p>\n\n<p>Since I don't really know how to write Junit test without eclipse, I'll just start with something completely trivial I found online. This should always pass.</p>\n\n<p>Test1.java</p>\n\n<pre><code>import junit.framework.*;\npublic class Test1 extends TestCase {\n @Test\n public void testOne()\n {\n System.out.println(\"Heyy there I'm a test!\");\n assertTrue( \"TestExample\", true );\n }\n} \n</code></pre>\n\n<p>I add to my build.xml these...</p>\n\n<pre><code>49 &lt;target name=\"junit\" depends=\"jar\"&gt;\n50 &lt;junit printsummary=\"withOutAndErr\" fork=\"yes\" showoutput=\"yes\"&gt;\n51 &lt;classpath refid=\"application\"/&gt;\n52 &lt;test name=\"test.Test1\"/&gt;\n53 &lt;/junit&gt;\n54 &lt;/target&gt;\n</code></pre>\n\n<p>So now when I run \"ant junit\" I'm getting</p>\n\n<pre><code>junit:\n [junit] Running test.Test1\n [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec\n</code></pre>\n\n<p>So... that doesn't tell me anything... what was wrong? how to fix it? nothing.\nAnyone knows what's up?</p>\n", "Lable": "No"}
{"QuestionId": 12689456, "AnswerCount": 1, "Tags": "<tsql>", "CreationDate": "2012-10-02T11:27:45.663", "AcceptedAnswerId": "12689474", "Title": "T SQL: How get all minutes from Time type", "Body": "<p>I have the following code and I want get all minutes from time type.</p>\n\n<pre><code>declare @time time\nset @time = '01:30'\n\ndeclare @minutes int\n\n--select @minutes = convert time to minutes here\n\nselect @minutes -- @minutes == 90\n</code></pre>\n\n<p>Please help.</p>\n", "Lable": "No"}
{"QuestionId": 12691128, "AnswerCount": 2, "Tags": "<c++><class><operator-overloading>", "CreationDate": "2012-10-02T13:22:56.270", "AcceptedAnswerId": "12691162", "Title": "Operator overloading in C++ and the ampersand", "Body": "<blockquote>\n <p><strong>Possible Duplicate:</strong><br>\n <a href=\"https://stackoverflow.com/questions/1572016/whats-the-ampersand-for-when-used-after-class-name-like-ostream-operator\">What&#39;s the ampersand for when used after class name like ostream&amp; operator &lt;&lt;(&hellip;)?</a> </p>\n</blockquote>\n\n\n\n<p>I am new to C++ and I have probably a very noobish question. I have seen a thing like this:</p>\n\n<pre><code>Vector3f &amp; operator = (Vector3f &amp; obj)\n{\n _item[0] = obj[0];\n _item[1] = obj[1];\n _item[2] = obj[2];\n\n return *this;\n}\n</code></pre>\n\n<p>And I was wondering why is there an ampersand (&amp;) after Vector3f. What kind of magic is it doing? I couldn't find any explanations anywhere. Most importantly, what is the difference between the thing above and</p>\n\n<pre><code>Vector3f operator = (Vector3f obj)\n{\n _item[0] = obj[0];\n _item[1] = obj[1];\n _item[2] = obj[2];\n\n return *this;\n}\n</code></pre>\n", "Lable": "No"}
{"QuestionId": 12796546, "AnswerCount": 1, "Tags": "<perforce>", "CreationDate": "2012-10-09T09:10:55.837", "AcceptedAnswerId": null, "Title": "Issue while creating workspace in perforce", "Body": "<p>I am not able to create a workspace in perforce. I go to Connection --> New Workspace and then give desired workspace name and workspaceroot and then click \"OK\". And also it does not give any error. But when I try to access the workspace to add files in it,I am not able to access it, it gives error as \"the path is not found\". This means workspace has not been created in my local system. Can you please help here? I am new to perforce so please answer accordingly.</p>\n", "Lable": "No"}
{"QuestionId": 12801403, "AnswerCount": 2, "Tags": "<php><facebook><apache>", "CreationDate": "2012-10-09T13:40:08.133", "AcceptedAnswerId": "12817244", "Title": "include_path error when trying to access app in localhost", "Body": "<p>I realize that a question thread already exists, but it has been closed since and the OP hadn't responded to the answer. The question thread can be found here: <a href=\"https://stackoverflow.com/questions/5547333/include-path-c-php5-pear\">https://stackoverflow.com/questions/5547333/include-path-c-php5-pear</a></p>\n\n<p>So, my problem is this:</p>\n\n<p>I have my facebook app locally in my htdocs folder (my DocumentRoot) and it requires sdk/src/facebook.php. I receive the following error upon trying to view the page:</p>\n\n<pre><code>Warning: require_once(sdk/src/facebook.php) [function.require-once]: failed to open stream: No such file or directory in D:\\Apache\\Apache2\\htdocs\\www\\immense-headland-4743\\index.php on line 14\n\nFatal error: require_once() [function.require]: Failed opening required 'sdk/src/facebook.php' (include_path='d:\\php\\pear') in D:\\Apache\\Apache2\\htdocs\\www\\immense-headland-4743\\index.php on line 14\n</code></pre>\n\n<p>I have tried variations of the backslash and forward slash in my php.ini file; I have tried set_initial_path() and init_set() in my main index.php - but nothing works. What is going wrong here?</p>\n", "Lable": "No"}
{"QuestionId": 12883538, "AnswerCount": 3, "Tags": "<android><get><gps><location>", "CreationDate": "2012-10-14T15:18:38.513", "AcceptedAnswerId": "12883565", "Title": "android current location GPS but return null", "Body": "<p>i develop an app to retrieve current location via GPS but it return null i want my app use gps only not 3g or wifi i used bestprovider but it retrieve only when i run it and not always work</p>\n\n<p>this is the java code :</p>\n\n<pre><code> package com.example.loc2;\n\n import android.location.Location;\n import android.location.LocationListener;\n import android.location.LocationManager;\n import android.os.Bundle;\n import android.app.Activity;\n import android.content.Context;\n import android.view.Menu;\n import android.view.View;\n import android.view.View.OnClickListener;\n import android.widget.Button;\n import android.widget.Toast;\n\n public class MainActivity extends Activity {\nprivate static final long MINIMUM_DISTANCE_CHANGE_FOR_UPDATES = 1; // in Meters \nprivate static final long MINIMUM_TIME_BETWEEN_UPDATES = 1000; // in Milliseconds\nprotected LocationManager locationManager;\nprotected Button retrieveLocationButton;\n\n@Override\npublic void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n retrieveLocationButton = (Button) findViewById(R.id.retrieve_location_button);\n\n locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n\n locationManager.requestLocationUpdates(\n LocationManager.GPS_PROVIDER, \n MINIMUM_TIME_BETWEEN_UPDATES, \n MINIMUM_DISTANCE_CHANGE_FOR_UPDATES,\n new MyLocationListener()\n );\n\nretrieveLocationButton.setOnClickListener(new OnClickListener() {\n // @Override\n public void onClick(View v) {\n showCurrentLocation();\n }\n}); \n\n} \n\nprotected void showCurrentLocation() {\n\n Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n\n if (location != null) {\n String message = String.format(\n \"Current Location \\n Longitude: \"+location.getLongitude()+\" \\n Latitude:\"+\n location.getLatitude());\n\n Toast.makeText( MainActivity.this,message,\n Toast.LENGTH_LONG).show();\n }\n\n} \n\nprivate class MyLocationListener implements LocationListener {\n\n public void onLocationChanged(Location location) {\n String message = String.format(\n \"New Location \\n Longitude: %1$s \\n Latitude: %2$s\",\n location.getLongitude(), location.getLatitude()\n );\n Toast.makeText(MainActivity.this, message, Toast.LENGTH_LONG).show();\n }\n\n public void onStatusChanged(String s, int i, Bundle b) {\n Toast.makeText(MainActivity.this, \"Provider status changed\",\n Toast.LENGTH_LONG).show();\n }\n\n public void onProviderDisabled(String s) {\n Toast.makeText(MainActivity.this,\n \"Provider disabled by the user. GPS turned off\",\n Toast.LENGTH_LONG).show();\n }\n\n public void onProviderEnabled(String s) {\n Toast.makeText(MainActivity.this,\n \"Provider enabled by the user. GPS turned on\",\n Toast.LENGTH_LONG).show();\n }\n\n}\n\n}\n</code></pre>\n\n<p>and this is the manifest:\ni used this permission </p>\n\n<pre><code> &lt;manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\npackage=\"com.example.loc2\"\nandroid:versionCode=\"1\"\nandroid:versionName=\"1.0\" &gt;\n\n&lt;uses-sdk\n android:minSdkVersion=\"8\"\n android:targetSdkVersion=\"15\" /&gt;\n&lt;uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/&gt;\n&lt;uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/&gt;\n&lt;uses-permission android:name=\"android.permission.ACCESS_MOCK_LOCATION\"/&gt;\n\n&lt;application\n android:icon=\"@drawable/ic_launcher\"\n android:label=\"@string/app_name\"\n android:theme=\"@style/AppTheme\" &gt;\n &lt;activity\n android:name=\".MainActivity\"\n android:label=\"@string/title_activity_main\" &gt;\n &lt;intent-filter&gt;\n &lt;action android:name=\"android.intent.action.MAIN\" /&gt;\n\n &lt;category android:name=\"android.intent.category.LAUNCHER\" /&gt;\n &lt;/intent-filter&gt;\n &lt;/activity&gt;\n &lt;/application&gt;\n\n &lt;/manifest&gt;\n</code></pre>\n\n<p>please help </p>\n", "Lable": "No"}
{"QuestionId": 12898338, "AnswerCount": 3, "Tags": "<javascript><jquery><json><widget><ruby-on-rails-3.2>", "CreationDate": "2012-10-15T14:58:06.990", "AcceptedAnswerId": "12910750", "Title": "Ruby on rails/Javascript widget", "Body": "<p>So here is my point, i tried to follow some tutorial and read all of the references in the end from <a href=\"http://8raystech.com/2011/11/28/how-to-create-embeddable-widgets-with-rails\" rel=\"nofollow\">http://8raystech.com/2011/11/28/how-to-create-embeddable-widgets-with-rails</a></p>\n\n<p>I spent almost 2 days searching for the little mistake I obviously made somewhere since I'm new to ruby on rails.\nI think it might be a route error since when I inspect elements via Chrome, i see the following error:\n<strong>EDIT:</strong></p>\n\n<pre><code>\"GET http://localhost:3000/widget 500 (Internal Server Error)\"\n</code></pre>\n\n<p>I tried many things on it desperately but here is my current code:</p>\n\n<p>My widget controller looks like this: (widget_controller.rb)</p>\n\n<pre><code>class WidgetController &lt; ApplicationController\n def show\n @content = render_to_string(:partial =&gt; 'widget/embed', :layout =&gt; false)\n end\nend\n</code></pre>\n\n<p>My view using javascript (show.erb.html)</p>\n\n<pre><code>(function() {\n document.write(&lt;%= @content.to_json %&gt;)\n})()\n</code></pre>\n\n<p>The partial is not really important i think but here is an example: (_embed.erb.html)</p>\n\n<pre><code>&lt;style&gt;...&lt;/style&gt;\n&lt;div class=\"widget-communication\"&gt;\n &lt;div&gt;Bla bla bla&lt;/div&gt;\n ...\n&lt;/div&gt;\n</code></pre>\n\n<p>and for the last, in the routes.rb</p>\n\n<pre><code>...\nmatch 'widget', to: 'widget#show'\n...\n</code></pre>\n\n<p>So I tested in local to load my widget using this:</p>\n\n<pre><code>&lt;script src=\"http://localhost:3000/widget\" type=\"text/javascript\"&gt;&lt;/script&gt;\n</code></pre>\n", "Lable": "No"}
{"QuestionId": 12934584, "AnswerCount": 2, "Tags": "<sql><sql-server-2008><stored-procedures>", "CreationDate": "2012-10-17T12:42:59.590", "AcceptedAnswerId": "12934596", "Title": "Error when creating stored procedure", "Body": "<p>I'm noob at stored procedures, I have created a stored procedure that take some parameters from C# page, then send back result as <code>OUTPUT</code> parameter.</p>\n\n<p>I need to do some calculation to get end date, so I end up using a lot of IF statements. However, when I create the stored procedure I get error that I didn't know how to solve, every thing seems correct!.</p>\n\n<p>Here is the stored procedure code:</p>\n\n<pre><code> CREATE PROCEDURE sp_RenewSubscription \n -- Add the parameters for the stored procedure here\n @Reference nvarchar(100),\n @SubscribtionID nvarchar(100),\n @Months int,\n @Result nvarchar(200) OUTPUT\n AS\n\nBEGIN\n -- SET NOCOUNT ON added to prevent extra result sets from\n -- interfering with SELECT statements.\n SET NOCOUNT ON;\n\n DECLARE @EndDate as nvarchar;\n DECLARE @MonthCounts as int;\n\n IF NOT EXISTS(SELECT [Reference] FROM [Norton].[dbo].[SubscriptionStatus] WHERE [Reference] = @Reference)\n SET @Result = '0: Reference ID not found'\n ELSE\n IF NOT EXISTS(SELECT [Reference] FROM [Norton].[dbo].[SubscriptionStatus] WHERE [Reference] = @Reference AND [SubscribtionID] = @SubscribtionID)\n SET @Result = '0: Subscribtion ID not found'\n ELSE\n BEGIN \n SELECT TOP 1 @EndDate = [EndDate], @MonthCounts = [SubscriptionMonthCount] FROM [Norton].[dbo].[SubscriptionStatus] WHERE [Reference] = @Reference AND [SubscribtionID] = @SubscribtionID\n IF @EndDate = '0'\n BEGIN \n UPDATE [Norton].[dbo].[SubscriptionStatus]\n SET [SubscriptionMonthCount] = @Months + @MonthCounts\n WHERE [Reference] = @Reference AND [SubscribtionID] = @SubscribtionID\n END\n ELSE\n BEGIN \n UPDATE [Norton].[dbo].[SubscriptionStatus]\n SET [SubscriptionMonthCount] = @Months\n WHERE [Reference] = @Reference AND [SubscribtionID] = @SubscribtionID\n END\n\n SET @Result = '1: Done Successfully'\n END\nGO\n\nEND\nGO\n</code></pre>\n\n<p>This is error I got:</p>\n\n<blockquote>\n <p>Msg 102, Level 15, State 1, Procedure sp_RenewSubscription, Line 44<br>\n Incorrect syntax near 'END'.<br>\n Msg 102, Level 15, State 1, Line 2<br>\n Incorrect syntax near 'END'.*</p>\n</blockquote>\n\n<p>Thanks,</p>\n", "Lable": "No"}