compare_oracle / oraclechunk15.json
xPXXX's picture
Upload 10 files
0d91987
Raw
History Blame Contribute Delete
22.5 kB
Invalid JSON:Unexpected non-whitespace character after JSONat line 2, column 1
{"QuestionId": 10169237, "AnswerCount": 1, "Tags": "<ios><iphone><uiimage>", "CreationDate": "2012-04-16T05:47:46.133", "AcceptedAnswerId": "10170414", "Title": "UIImage from array", "Body": "<p>I am working with an API which gives me an image as the example below. I am unsure how I can convert this array of values into an image. I have not seen this before.</p>\n\n<p>Does anyone know how I can make the following array of values into a UIImage?</p>\n\n<p><code>[255,216,255,224,0,16,74,70,73,70,0,1,1,1,0,96,...]</code></p>\n", "Lable": "No"}
{"QuestionId": 10201830, "AnswerCount": 1, "Tags": "<powershell><active-directory><powershell-2.0>", "CreationDate": "2012-04-18T02:04:59.870", "AcceptedAnswerId": "10204290", "Title": "Get-ADComputer and MemberOf", "Body": "<p>I am very new to Powershell and am having an issue when using the <code>Get-ADUser</code> and <code>GetADComputer</code> cmdlets.</p>\n\n<p>I am trying to use the <code>Get-ADComputer</code> and <code>Get-ADUser</code> to retrieve the <code>memberOf</code> from Active-Directory of all the users and computers. It only appears to be retrieving information from users and computers that are in 2 or more groups. Any users/computers that are only in 1 group display nothing.</p>\n\n<p>For example: If UserA is in group Administrators I get no output when I use MemberOf. But if User2 is in both Administrators and Domains Administrators I get some output. However it will only output one of those groups.</p>\n\n<p>Get-ADGroup does the same thing.</p>\n\n<p>Is this normal? I can't imagine it is.</p>\n\n<p>Here is my code:</p>\n\n<pre><code>Get-ADUser -Filter * -Properties * | Select-Object -Property Name,MemberOf | Sort-Object -Property Name\n</code></pre>\n\n<p>Thanks</p>\n", "Lable": "No"}
{"QuestionId": 10216841, "AnswerCount": 5, "Tags": "<deployment><capistrano>", "CreationDate": "2012-04-18T19:46:28.317", "AcceptedAnswerId": "10290135", "Title": "Passing parameters to Capistrano", "Body": "<p>I'm looking into the possibility of using Capistrano as a generic deploy solution. By \"generic\", I mean not-rails. I'm not happy with the quality of the documentation I'm finding, though, granted, I'm not looking at the ones that presume you are deploying rails. So I'll just try to hack up something based on a few examples, but there are a couple of problems I'm facing right from the start.</p>\n\n<p>My problem is that <code>cap deploy</code> doesn't have enough information to do anything. Importantly, it is missing the tag for the version I want to deploy, and this <em>has</em> to be passed on the command line.</p>\n\n<p>The other problem is how I specify my git repository. Our git server is accessed by SSH on the user's account, but I don't know how to change <code>deploy.rb</code> to use the user's id as part of the scm URL.</p>\n\n<p>So, how do I accomplish these things? </p>\n\n<p><strong>Example</strong></p>\n\n<p>I want to deploy the result of the first sprint of the second release. That's tagged in the git repository as <code>r2s1</code>. Also, let's say user \"johndoe\" gets the task of deploying the system. To access the repository, he has to use the URL <code>johndoe@gitsrv.domain:app</code>. So the remote URL for the repository depends on the user id.</p>\n\n<p>The command lines to get the desired files would be these:</p>\n\n<pre><code>git clone johndoe@gitsrv.domain:app\ncd app\ngit checkout r2s1\n</code></pre>\n", "Lable": "No"}
{"QuestionId": 10248542, "AnswerCount": 1, "Tags": "<jquery><google-maps>", "CreationDate": "2012-04-20T14:52:09.893", "AcceptedAnswerId": "10251405", "Title": "possible to get the square coordinates using imgAreaSelect and Google Maps?", "Body": "<p>I had seen a site do this a long time ago...</p>\n\n<p>Is it possible to 'crop' an area in GoogleMaps using imgAreaSelect (http://odyniec.net/projects/imgareaselect/) or jCrop and get the coordinates for the square from it?</p>\n\n<p>thx</p>\n", "Lable": "No"}
{"QuestionId": 10304817, "AnswerCount": 2, "Tags": "<c#><.net><linq><entity-framework-4>", "CreationDate": "2012-04-24T19:36:31.650", "AcceptedAnswerId": null, "Title": "LINQ to EF4 Query Where clause not filtering as expected", "Body": "<p>I've googled for this but can't find anything obviously related, so posting here for some insight. Using LINQ / EF4. Here's the code snippet:</p>\n\n<pre><code> private const string JOB_FAILED = \"Failed\";\n// other code..\n\nvar successfulJobs = context.Jobs.Where(x =&gt; x.Status != JOB_FAILED);\n foreach (Job successfulJob in successfulJobs)\n {\n context.DeleteObject(successfulJob);\n }\n</code></pre>\n\n<p>I would expect successfulJobs to contain all jobs where Job.Status != \"Failed\". However, the code witihn foreach{} executes when Job.Status DOES equal \"Failed\". Am I missing something fundamental here about LINQ\\Lambda?</p>\n\n<p>EDIT: Generated SQL as requested, seems ok.</p>\n\n<pre><code>SELECT \n[Extent1].[Id] AS [Id], \n[Extent1].[Parameters] AS [Parameters], \n[Extent1].[Status] AS [Status], \n[Extent1].[Created] AS [Created], \n[Extent1].[Modified] AS [Modified]\nFROM [bws].[JobRunner_Tasks] AS [Extent1]\nWHERE N'Failed' &lt;&gt; [Extent1].[Status]\n</code></pre>\n", "Lable": "No"}
{"QuestionId": 10314954, "AnswerCount": 3, "Tags": "<sharepoint><master-pages>", "CreationDate": "2012-04-25T11:47:33.353", "AcceptedAnswerId": null, "Title": "Can the SharePoint 2007 site's MasterPage opened?", "Body": "<p>There was a Sharepoint 2007 site that was maintained without touching the code. People had their masterpage set by using links in the UI, SiteActions>>(under Look &amp; Feel)MasterPage selecting default.master.</p>\n\n<p>Now, they need some changes in the masterpage.</p>\n\n<p>When I opened the site in Sharepoint designer 2007, the masterpage was referenced as MasterPageFile=\"~masterurl/default.master\".</p>\n\n<p>I want to open this master page which they refer to ~masterurl/default.master.</p>\n\n<p>I have checked every .master inside the _catalogs folder but nothing is fruitful.</p>\n\n<p>My task is to identify the masterpage they have used &amp; to modify it.</p>\n\n<p>Help me loacte the master page ~masterurl/default.master</p>\n", "Lable": "No"}
{"QuestionId": 10397427, "AnswerCount": 4, "Tags": "<git><branch><master>", "CreationDate": "2012-05-01T12:06:50.330", "AcceptedAnswerId": null, "Title": "what should the master branch contain in git", "Body": "<p>I have read about multiple different git branching strategies and I was suprized that the master branch was often used as a 'production-ready' branch and there would be an additional uat and dev branch.\nI'm thinking to set up our git repository with the same 3 branches, but to let 'master' contain the dev code and add a production and uat branch. That way, developers can simply merge to the default git branch (being 'master'). Is there a reason not to do it like that?</p>\n\n<p>gr,</p>\n\n<p>Coen</p>\n", "Lable": "No"}
{"QuestionId": 10508117, "AnswerCount": 2, "Tags": "<android>", "CreationDate": "2012-05-08T23:53:59.217", "AcceptedAnswerId": "10508135", "Title": "Use onBackPressed to save a file", "Body": "<p>I want to allow users to save a list of favourite items from a list, so I display the full list using a Listview with checkboxes, and the user will check or uncheck items in the list.</p>\n\n<p>When the user presses the back button, I want to be able to save the checked items out to a separate file on the SD card.</p>\n\n<p>I'm using the following method in my Activity:</p>\n\n<pre><code>@Override\n public void onBackPressed() {\n // TODO Auto-generated method stub\n\n }\n</code></pre>\n\n<p>However, the list that I create within my OnCreate method is not available within the onBackPressed method - ie it's out of scope.</p>\n\n<p>If I try and pass the list into the onBackPressed method as follows:</p>\n\n<pre><code>@Override\n public void onBackPressed(ArrayList&lt;HashMap&lt;String, Object&gt;&gt; checked_list) {\n // TODO Auto-generated method stub\n\n }\n</code></pre>\n\n<p>Then I get the error:</p>\n\n<p>\"The method onBackPressed(ArrayList>) of type SetFavourites must override or implement a supertype method\" and Eclipse prompts to remove the @Override.</p>\n\n<p>But when I do this, then the onBackPressed method never gets called.</p>\n\n<p>How can I pass variables into the onBackPressed method so that I can perform actions on data within my Activity before exiting?</p>\n\n<p>Thanks</p>\n", "Lable": "No"}
{"QuestionId": 10535227, "AnswerCount": 2, "Tags": "<jsf-2><weblogic><myfaces>", "CreationDate": "2012-05-10T13:40:04.973", "AcceptedAnswerId": null, "Title": "No saved view state could be found for the view identifier", "Body": "<p>When I was running my JSF application on Jetty server it was running fine.</p>\n\n<p>But as I moved this to Weblogic server, it started giving me this error.</p>\n\n<pre><code>javax.faces.application.ViewExpiredException: /wsListing.xhtmlNo saved view state could be found for the view identifier: /wsListing.xhtml\nat org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:132)\nat org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:170)\nat org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)\nat javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)\nat weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)\nat weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)\nat weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)\nat weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)\nat weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)\nat weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)\nat weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)\nat weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)\nat weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)\nat weblogic.security.service.SecurityManager.runAs(Unknown Source)\nat weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)\nat weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)\nat weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1398)\nat weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)\nat weblogic.work.ExecuteThread.run(ExecuteThread.java:172)\n</code></pre>\n\n<p>wsListing.xhtml is given below:</p>\n\n<pre><code> &lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"&gt;\n&lt;html xmlns=\"http://www.w3.org/1999/xhtml\"\n xmlns:h=\"http://java.sun.com/jsf/html\"\n xmlns:f=\"http://java.sun.com/jsf/core\"\n xmlns:ui=\"http://java.sun.com/jsf/facelets\"\n xmlns:p=\"http://primefaces.org/ui\" xmlns:lang=\"en\"&gt;\n\n&lt;f:view xmlns:c=\"http://java.sun.com/jstl/core\"\n xmlns:s=\"http://www.springframework.org/tags\"\n xmlns:form=\"http://www.springframework.org/tags/form\"&gt;\n &lt;h:head&gt;\n &lt;h:outputStylesheet library=\"css\" name=\"../resources/css/style.css\"\n target=\"head\" /&gt;\n &lt;meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" /&gt;\n &lt;title&gt;Test Client&lt;/title&gt;\n &lt;link rel=\"shortcut icon\" href=\"../resources/images/favicon.ico\" /&gt;\n &lt;link rel=\"stylesheet\" href=\"../resources/css/style.css\"\n type=\"text/css\" media=\"all\" /&gt;\n &lt;/h:head&gt;\n &lt;h:body&gt;\n &lt;ui:include src=\"header.xhtml\" /&gt;\n &lt;div id=\"home-training-container\"&gt;\n &lt;h:form&gt;\n &lt;table align=\"center\" border=\"1\"&gt;\n &lt;tr&gt;\n &lt;td&gt;&lt;h:commandLink value=\"First Web Service\"\n action=\"#{wsListingBean.action}\"&gt;\n &lt;f:setPropertyActionListener\n target=\"#{wsListingBean.webServiceId}\" value=\"abcService\" /&gt;\n &lt;/h:commandLink&gt;&lt;/td&gt;\n &lt;/tr&gt;\n &lt;tr&gt;\n &lt;td&gt;&lt;h:commandLink value=\"Second Web Service\"\n action=\"#{wsListingBean.action}\"&gt;\n &lt;f:setPropertyActionListener\n target=\"#{wsListingBean.webServiceId}\" value=\"filterabc\" /&gt;\n &lt;/h:commandLink&gt;&lt;/td&gt;\n &lt;/tr&gt;\n &lt;tr&gt;\n &lt;td&gt;Third Web Service&lt;/td&gt;\n &lt;/tr&gt;\n &lt;tr&gt;\n &lt;td&gt;Fourth Web Service&lt;/td&gt;\n &lt;/tr&gt;\n &lt;tr&gt;\n &lt;td&gt;Fifth Web Service&lt;/td&gt;\n &lt;/tr&gt;\n &lt;/table&gt;\n &lt;/h:form&gt;\n &lt;/div&gt;\n &lt;ui:include src=\"footer.xhtml\" /&gt;\n &lt;/h:body&gt;\n&lt;/f:view&gt;\n&lt;/html&gt;\n</code></pre>\n\n<p>When I click on any of the command links then this issue is coming:</p>\n\n<pre><code>&lt;h:commandLink value=\"First Web Service\"\n action=\"#{wsListingBean.action}\"&gt;\n &lt;f:setPropertyActionListener\n target=\"#{wsListingBean.webServiceId}\" value=\"abcService\" /&gt;\n</code></pre>\n\n<p>Anyone having any idea regarding what this view state is?</p>\n", "Lable": "No"}
{"QuestionId": 10575893, "AnswerCount": 1, "Tags": "<internet-explorer-8><datepicker><css>", "CreationDate": "2012-05-13T23:00:46.723", "AcceptedAnswerId": "27694630", "Title": "JsDatePick's data picker appears all broken in appearance in IE8 when used in my page", "Body": "<p>I tried to use <a href=\"http://javascriptcalendar.org/\" rel=\"nofollow\">JsDatePick</a> .</p>\n\n<p>The example HTML supplied with the tool ran just fine in both FireFox and IE8</p>\n\n<p>However, when I tried to use the picker in my own HTML page with existing structure and CSS:</p>\n\n<ul>\n<li><p>In FireFox it worked fine (the picker appeared as a calendar next to the input field)</p></li>\n<li><p>In IE8, the picker apeared as a VERTICAL column of dates, BELOW my page (e.g. you need to scroll down to see it), e.g.</p>\n\n<pre><code> ----------------------------------------------\n | My main page DIV, sized ~100% page height |\n | |\n | &lt;INPUT FIELD&gt; |\n | |\n | |\n | |\n | |\n | |\n | |\n ----------------------------------------------\n ---- BOTTOM OF PAGE HERE ---\n\n [1] &lt;-- This was meant to be a 5x7\n [2] &lt;-- calendar pop-up appearing\n [3] &lt;-- under the INPUT FIELD\n [...] &lt;-- NOTE that the horizontal position is correct,\n [30] &lt;-- Fully aligned with INPUT FIELD\n</code></pre></li>\n</ul>\n\n<p>Unfortunately, I'm not enough of a CSS expert to even begin understanding how to troubleshoot it.</p>\n\n<ol>\n<li><p>If anyone used JsDatePick, and ran into this problem, any ideas on how to fix are appreciated</p></li>\n<li><p>Barring that, what would be the steps I need to take to troubleshoot this (Seemingly CSS conflict) problem?</p>\n\n<p>The page has its own stylesheets but one of them is 100% class-limited styles, \nwhile the second one has some global styles, BUT nothing with a position defined, and any styles that are not class specific are font style for <code>body</code> and <code>h1</code>.</p></li>\n</ol>\n", "Lable": "No"}
{"QuestionId": 10577543, "AnswerCount": 1, "Tags": "<oracle><cursor><sys-refcursor>", "CreationDate": "2012-05-14T04:34:38.440", "AcceptedAnswerId": "10581924", "Title": "dbms_sql.to_cursor_number - Getting Invalid Cursor error for SYS_REFCURSOR", "Body": "<p>I have the following code for table and view creation.</p>\n\n<pre><code>create table test_company\n(\n comp_id number\n , comp_name varchar2(500)\n)\n;\ninsert into test_company values(1, 'CompanyA');\ninsert into test_company values(2, 'CompanyB');\ninsert into test_company values(3, 'CompanyC');\ncreate or replace view test_company_view as select * from test_company;\n</code></pre>\n\n<p>And I have the following code for my cursor testing. But <code>dbms_sql.to_cursor_number</code> got error <code>ORA-01001: invalid cursor</code></p>\n\n<pre><code>set serveroutput on;\ndeclare\n reader test_company_view%ROWTYPE;\n datacursor SYS_REFCURSOR;\n v_cursor_id number;\nbegin\n open datacursor for select * from test_company_view;\n v_cursor_id := dbms_sql.to_cursor_number(datacursor); -- ERROR: invalid cursor\n loop fetch datacursor into reader;\n exit when datacursor%NOTFOUND;\n dbms_output.put_line(reader.comp_id);\n end loop;\n close datacursor;\nend;\n</code></pre>\n\n<p>What did I do wrong? Thank you for your helps!</p>\n\n<p>I have tried <code>strongly-typed REF CURSOR</code> and <code>weakly-typed REF CURSOR</code> but they got the same error.</p>\n", "Lable": "No"}
{"QuestionId": 10606076, "AnswerCount": 3, "Tags": "<c#><.net><datetime><time><datetime-format>", "CreationDate": "2012-05-15T17:44:44.360", "AcceptedAnswerId": "10606297", "Title": "Is there a way to print a calculated time format string in C#?", "Body": "<p>I know the title might be confusing, but I'm not sure how to word it better....</p>\n\n<p>I'm doing this to get the logs of the current hour:</p>\n\n<pre><code>'TraceSink-'yyyy-MM-dd HH'-Hourly.log'\n</code></pre>\n\n<p>How can I get the previous hour? i.e.:</p>\n\n<pre><code>'TraceSink-'yyyy-MM-dd (HH-1)'-Hourly.log'\n</code></pre>\n\n<p>Is there anything possible with time format like that?</p>\n\n<p><strong>EDIT</strong>: I don't have access to the C# code but a exe.config where I can change what goes inside.</p>\n\n<p>Like var on DateTime.ToString(var);</p>\n\n<p>Am I asking too much?</p>\n", "Lable": "No"}
{"QuestionId": 10707229, "AnswerCount": 2, "Tags": "<javascript><jquery><forms><jquery-ui>", "CreationDate": "2012-05-22T17:45:46.537", "AcceptedAnswerId": "10731817", "Title": "jquery: Disable/Enable button not working after reset", "Body": "<p>I have a form with n multiple choice questions implemented as radio buttons (using <code>jquery-ui</code>). I would like to ensure that all the questions have been answered before allowing the user to submit the form. I am running into two issues while performing this validation:</p>\n\n<ul>\n<li>On initial load, the submit button does not respond to clicks or mouseovers until all questions have a response selected as desired. However, it still appears to be clickable (I would like this to be faded out) </li>\n</ul>\n\n<p><img src=\"https://i.stack.imgur.com/nGabF.png\" alt=\"enter image description here\"></p>\n\n<ul>\n<li>If the reset button is pressed, the submit button is faded out (as desired) but I am unable to re-enable the submit button once the form has been completed.</li>\n</ul>\n\n<p><img src=\"https://i.stack.imgur.com/rXbPs.png\" alt=\"enter image description here\"></p>\n\n<p>This is my first time using javascipt/jquery. What is going wrong? How do I achieve the desired functionality across both cases?</p>\n\n<hr>\n\n<p>Here is the pertinent javascript portion:</p>\n\n<pre><code>$(document).ready(function(){\n $( '.button' ).button ();\n $( '.radio-set' ).buttonset ();\n $( 'input[type=\"submit\"]' ).attr( 'disabled', true );\n\n var progress = 0;\n var total_fields = $('.response').length\n\n /* Track Progress function*/\n $('input[type=\"radio\"]').click( function(){ \n progress = $('input[type=\"radio\"]:checked').length\n $(\".progressbar\").progressbar( {value: ( progress / total_fields ) * 100} )\n console.log(progress, total_fields)\n if( progress == total_fields ){\n console.log( \"Hello from inside the conditional\" )\n $( 'input[type=\"submit\"]' ).removeAttr( 'disabled' );\n } \n });\n\n $( 'input[type=\"reset\"]' ).click( function(){\n progress = 0\n $( \".progressbar\" ).progressbar( {value: 0} )\n $( 'input[type=\"submit\"]' ).attr( 'disabled', true );\n });\n});\n</code></pre>\n\n<p>Example of one of the questions within the form (with bacon filler text):</p>\n\n<pre><code> &lt;div class=\"model_feature\"&gt;\n &lt;span class=\"feature_name\" title=\"M1\"&gt;M1&lt;/span&gt;\n &lt;span class=\"response radio-set\"&gt;\n &lt;label for=\"M1-1\"&gt;1&lt;/label&gt;\n &lt;input type=\"radio\" name=\"M1\" id=\"M1-1\" value=\"1\" class=\"feature-input\" autocomplete=\"off\" /&gt;\n &lt;label for=\"M1-0\"&gt;0&lt;/label&gt;\n &lt;input type=\"radio\" name=\"M1\" id=\"M1-0\" value=\"0\" class=\"feature-input\" autocomplete=\"off\" /&gt;\n &lt;label for=\"M1-Unk\"&gt;Unknown&lt;/label&gt;\n &lt;input type=\"radio\" name=\"M1\" id=\"M1-Unk\" value=\"Unknown\" class=\"feature-input\" autocomplete=\"off\" /&gt;\n &lt;/span &lt;!-- close response --&gt;\n &lt;span class=\"feature_description\"&gt;Chicken spare ribs capicola beef brisket hamburger. Kielbasa filet mignon tail ribeye ball tip ground round.&lt;/span&gt;\n &lt;/div&gt; &lt;!-- close model_feature --&gt;\n</code></pre>\n\n<p>Input and Reset buttons for completeness: </p>\n\n<pre><code> &lt;input type=\"reset\" class=\"button\" id=\"reset-button\" /&gt;\n &lt;input type=\"submit\" class=\"button\" id=\"submit-button\" disabled=\"disabled\" /&gt;\n</code></pre>\n", "Lable": "No"}