compare_oracle / oraclechunk16.json
xPXXX's picture
Upload 10 files
0d91987
Raw
History Blame Contribute Delete
14.1 kB
Invalid JSON:Unexpected non-whitespace character after JSONat line 2, column 1
{"QuestionId": 10852477, "AnswerCount": 1, "Tags": "<asp.net><silverlight><internet-explorer><cookies><browser-cache>", "CreationDate": "2012-06-01T14:47:37.910", "AcceptedAnswerId": null, "Title": "How to simulate Full IE cache for ASP.NET or Silverlight app", "Body": "<p>What is the best approach to similate a browser full cache when debugging a Silverlight or ASP.NET application? There is some intermittent behaviour that I want to make a determination if browser cache or full cookie cache is playing a part in this behaviour I am seeing.</p>\n\n<p>Thanks for the help, in advance :)</p>\n", "Lable": "No"}
{"QuestionId": 10865201, "AnswerCount": 2, "Tags": "<sql-server><tsql><size>", "CreationDate": "2012-06-02T19:19:10.847", "AcceptedAnswerId": "10865279", "Title": "Database size bigger after delete from table", "Body": "<p>After I delete huge amount of data from a SQL Server database table, the database size increased.</p>\n\n<p>When I run <code>sp_spaceused</code> it shows me 2625.25 MB. It used to be ~ 1800.00 MB before I deleted from table.</p>\n\n<p>Is there any specific reason it keeps growing even if I delete data?</p>\n", "Lable": "No"}
{"QuestionId": 10868406, "AnswerCount": 1, "Tags": "<.net><c#-4.0><.net-4.0><pia><office-pia>", "CreationDate": "2012-06-03T06:35:48.143", "AcceptedAnswerId": null, "Title": "c#.net 4.0 - no pia - is this all I need?", "Body": "<p>Reference the Microsoft.Office.Interop.Excel and set Embed Interop Type to true? </p>\n\n<p>Will doing so ensure my app is backward compatible? (As long as I use safe methods that work on all versions.)</p>\n\n<p>Or do I have to use something like late binding and all in order for it to be compatible against multiple versions?</p>\n", "Lable": "No"}
{"QuestionId": 11055976, "AnswerCount": 1, "Tags": "<php><html><wordpress>", "CreationDate": "2012-06-15T18:06:48.877", "AcceptedAnswerId": "11056660", "Title": "How to retrieve attachments from child pages of a specific Page in WordPress?", "Body": "<p>How would I retrieve attachments from all <strong>subpages</strong> of a specific Page ID? </p>\n\n<p>Example:</p>\n\n<p>SPECIFIC PAGE</p>\n\n<ul>\n<li>Child (with attachments) </li>\n<li>Child (with attachments) </li>\n<li>Child (with attachments) </li>\n</ul>\n\n<p>I'm currently using this code to retrieve all attachments site-wide, however I would like to limit this to only pull images from all children of a specific Page.</p>\n\n<pre><code>&lt;?php\n$args = array( 'post_type' =&gt; 'attachment', 'numberposts' =&gt; -1, 'post_status' =&gt; null, 'post_parent' =&gt; null ); \n$attachments = get_posts( $args );\nif ($attachments) {\n foreach ( $attachments as $post ) {\n setup_postdata($post);\n the_title();\n the_attachment_link($post-&gt;ID, false);\n the_excerpt();\n }\n}\n?&gt;\n</code></pre>\n\n<p>Almost there using this code as per Nick's suggestion below:</p>\n\n<pre><code>&lt;?php\n\n$mypages = get_pages('child_of=19');\nforeach ( $mypages as $mypage ) {\n$attachments = get_children(array('post_parent' =&gt; $mypage-&gt;ID, 'numberposts' =&gt; 1, 'post_type' =&gt; 'attachment', 'post_mime_type' =&gt; 'image', 'orderby' =&gt; 'rand'));\n\n\nif ($attachments) {\n\n foreach ( $attachments as $post ) {\n\n setup_postdata($post);\n the_title();\n the_attachment_link($post-&gt;ID, false);\n the_excerpt();\n }\n}\n}\n?&gt;\n</code></pre>\n\n<p>However, there are two remaining issues:</p>\n\n<ol>\n<li>Limiting the amount of <strong>total photos</strong> pulled. Using 'numberposts' only limits the amount of images pulled from each post</li>\n<li>Randomization. Orderby => rand only randomizes the images within each post. I would like to randomly shuffle the order for everything. </li>\n</ol>\n", "Lable": "No"}
{"QuestionId": 11106123, "AnswerCount": 1, "Tags": "<sql-server-2008><ssas><bids>", "CreationDate": "2012-06-19T17:22:42.033", "AcceptedAnswerId": "11207679", "Title": "How do you apply a Weight Factor to an M2M Dimensional Relationship in SSAS?", "Body": "<p>I have a many-to-many relationship with a weight factor column in the bridge table but I don't know how to make use of this when developing my cube in BIDS. Via Google, I have found many descriptions of what a weight factor is and why you would use one (I understand all this perfectly), but I can't find a practical tutorial of how to configure this in a cube in BIDS.</p>\n\n<p>Click-by-click instructions would be ideal but if some one could at least point me at the right window I could probably figure out the rest. Thanks in advance.</p>\n", "Lable": "No"}
{"QuestionId": 11190457, "AnswerCount": 3, "Tags": "<android><android-layout>", "CreationDate": "2012-06-25T13:42:16.687", "AcceptedAnswerId": "11194037", "Title": "Memory leaks, singleInstance", "Body": "<p>I've got a couple of activities where I display images with help of <a href=\"https://github.com/thest1/LazyList/blob/master/src/com/fedorvlasov/lazylist/ImageLoader.java\" rel=\"nofollow noreferrer\">this lib</a>. The thing is the app is running out of memory. I tried to gc.clean(), null references, call clear on imageloader object but in vain.</p>\n\n<p>In MAT i've found out that I have multiple objects of the same activity and it a default behaviour, if I'm not mistaken. I used singleInstance to suppress multiple instances and it has helped with memory leaks.</p>\n\n<p>Right now, due to singleInstance, I'm having troubles with navigation. Do you think I should continue with singleInstance or try to fix memory leak with multiple instances ?</p>\n\n<p>Here's ImageView gc roots inspection:\n<img src=\"https://i.stack.imgur.com/iDHCE.jpg\" alt=\"enter image description here\"></p>\n\n<p>UPD:</p>\n\n<pre><code> Bitmap bitmap=null;\n URL imageUrl = new URL(url);\n HttpURLConnection conn = (HttpURLConnection)imageUrl.openConnection();\n conn.setConnectTimeout(30000);\n conn.setReadTimeout(30000);\n conn.setInstanceFollowRedirects(true);\n InputStream is=conn.getInputStream();\n OutputStream os = new FileOutputStream(f);\n Utils.CopyStream(is, os);\n os.close();\n bitmap = decodeFile(f);\n return bitmap;\n\n ImageView imageView = (ImageView) convertView;\n if(convertView == null){\n imageView = new ImageView(_currentActivity);\n }\n</code></pre>\n\n<p>UPD2(navigation strategies):</p>\n\n<p>I've got a constant header with buttons which start home activity(with gallery) and profile activity; secondly there's a subheader wich also holds 3 buttons which point to another 3 activities with listviews(consisting of imageviews + labels).</p>\n\n<p>These header, subheader elements are available on every activity in application; The link-buttons do nothing but:</p>\n\n<pre><code>startActivity(new Intent(getActivity(), MainActivity.class));\n</code></pre>\n\n<p>or</p>\n\n<pre><code>Intent activityIntent = new Intent(getActivity(), SomeActivityWithListViewInside.class);\n// passing some data like list id\nactivityIntent.putExtra(\"list_id\", listId);\nstartActivity(activityIntent);\n</code></pre>\n\n<p>So, those activity instances are caused by those startActivity calls - do you think I should play with singleTop or any other intent parameter to avoid this issue ?</p>\n", "Lable": "No"}
{"QuestionId": 11217948, "AnswerCount": 1, "Tags": "<r>", "CreationDate": "2012-06-27T00:52:17.860", "AcceptedAnswerId": "11217985", "Title": "call to sapply() works in interactive mode, not in batch mode", "Body": "<p>I need to execute some commands in batch mode (e.g., via Rscript). They work in interactive mode, but not in batch mode. Here is a minimal example: <code>sapply(1:3, is, \"numeric\")</code>. Why does this work in interactive mode but return an error in batch mode? Is there a way to make a command like this work in batch mode?</p>\n\n<p>More specifically, I need to write scripts and to run them in batch mode. They need to call a function (which I didn't write and can't edit) that looks like this:</p>\n\n<pre><code>testfun &lt;- function (...)\n{\n args &lt;- list(...)\n if (any(!sapply(args, is, \"numeric\")))\n stop(\"All arguments must be numeric.\")\n else\n writeLines(\"All arguments look OK.\")\n}\n</code></pre>\n\n<p>I need to pass a list to this function. A command like <code>testfun(list(1, 2, 3))</code> works in interactive mode. But in batch mode, it produces an error: <code>Error in match.fun(FUN) : object 'is' not found</code>. I tried <code>debugger()</code> to get a handle on the problem, but it didn't give me any insight. I also looked through r-help, the R FAQ, R Inferno, but I couldn't find anything that spoke to this problem.</p>\n", "Lable": "No"}
{"QuestionId": 11241318, "AnswerCount": 1, "Tags": "<centos><virtual-machine><virtualization><virtualbox><samba>", "CreationDate": "2012-06-28T09:05:15.183", "AcceptedAnswerId": "11465419", "Title": "I can ping my centOS virtual machine but I cant access its shared folders", "Body": "<p>so this is the setup:</p>\n\n<p>I have a Windows XP installed, VirtualBox and a centOS 6.2 virtual machine.\nI installed Samba, and currently, my VM and host Windows are in the same subnet.\nI can ping my VM from Windows and vice versa. \nI have a created a shared folder via Samba like this:</p>\n\n<pre><code>[Share]\n path = /home/share\n writable = yes\n guest ok = yes\n guest only = yes\n create mode = 0777\n directory mode = 0777\n share modes = yes\n</code></pre>\n\n<p>*<em>I followed a full tutorial <a href=\"http://www.server-world.info/en/note?os=CentOS_6&amp;p=samba&amp;f=1\" rel=\"nofollow\">here</a></em></p>\n\n<p>My problem now is that, when I try to access such folder like this \\192.xx.xxx.xxx\\home\\share (192.xx.xxx.xxx is the IP address of my VM) from Windows \"Run\",\nWindows can't find it.</p>\n\n<p>P.S. I've turned off my Windows Firewall (although Trend Micro personal firewall is still on)</p>\n", "Lable": "No"}
{"QuestionId": 11486900, "AnswerCount": 2, "Tags": "<objective-c><cocoa-touch><cocoa><core-data>", "CreationDate": "2012-07-14T19:46:38.080", "AcceptedAnswerId": "11488910", "Title": "NSOperationQueue designated thread", "Body": "<p>I want to use an <code>NSOperationQueue</code> to dispatch CoreData operations. However, operation queue behavior is not always the same (e.g. it dispatches using <code>libdispatch</code> on iOS 4.0/OS 10.6 which uses thread pools) and a queue might not always use the same thread (as <code>NSManagedObjectContext</code> requires).</p>\n\n<p>Can I force a serial <code>NSOperationQueue</code> to execute on a single thread?\nOr do I have to create my own simple queuing mechanism for that?</p>\n", "Lable": "No"}
{"QuestionId": 11489151, "AnswerCount": 1, "Tags": "<objective-c><nsarray><nscoding>", "CreationDate": "2012-07-15T03:24:14.687", "AcceptedAnswerId": null, "Title": "Saving nested objects and NSArrays in Objective C using NSCoding", "Body": "<p>I'm attempting to save an object that has an NSMutableArray of nested objects. I want to use the NSCoding Protocol to save the file under the documents directory. Do I need to encode every object (including the nested ones) or just the super class itself? Right now I'm only encoding the super class' objects. </p>\n\n<p>To better illustrate what my object hierarchy looks like:</p>\n\n<pre><code>Main Object\n -NSString\n -int\n -NSMutableArray\n -int\n -double\n -char\n</code></pre>\n", "Lable": "No"}
{"QuestionId": 11494105, "AnswerCount": 3, "Tags": "<c#><awesomium>", "CreationDate": "2012-07-15T17:32:47.137", "AcceptedAnswerId": null, "Title": "C# - Using Awesomium to Interact with Gmail", "Body": "<p>I'm able to navigate to gmail, but then I want to do something as simple as enter the credientials and click the login button.</p>\n\n<pre><code>private void btnSubmit_Click(object sender, EventArgs e)\n{ \n btnSubmit.Enabled = false; \n webGmail.LoadURL(\"http://www.gmail.com\");\n\n webGmail.LoadCompleted += ExecuteSomething;\n}\n\nprivate void ExecuteSomething(object sender, EventArgs eventArgs)\n{\n webGmail.ExecuteJavascript(@\"&lt;script src = 'http://code.jquery.com/jquery-latest.min.js' type = 'text/javascript'&gt;&lt;/script&gt;\");\n webGmail.ExecuteJavascript(@\"$('#Email').val('foo');\");\n webGmail.ExecuteJavascript(@\"$('#Passwd').val('bar');\");\n webGmail.ExecuteJavascript(@\"$('#signIn').click();\");\n}\n</code></pre>\n\n<p>Nothing happens. I know using developer tools with Chrome that you cant modify anything on the page. But is there a way of filling in forms?</p>\n\n<p><strong>Are there any other better headless browsers? I actually need one that supports a web control that I can put into my form so that I can see what is going on. This is mandatory</strong></p>\n", "Lable": "No"}
{"QuestionId": 11562215, "AnswerCount": 2, "Tags": "<java><eclipse><memory-leaks><threadpool>", "CreationDate": "2012-07-19T13:43:48.553", "AcceptedAnswerId": "11564125", "Title": "Getting compile error using getThreadAllocatedBytes() in ecplise", "Body": "<p>I am trying to monitor my threads in the Quartz scheduler. I need to come up with an estimation of how much memory needed for executing my jobs.</p>\n\n<p>I am trying to use the method:</p>\n\n<pre class=\"lang-java prettyprint-override\"><code> import java.lang.management.ManagementFactory;\n\n ManagementFactory.getThreadMXBean().getThreadAllocationBytes();\n</code></pre>\n\n<p>However, in Eclipse I am getting an error:</p>\n\n<pre><code>The method getThreadAllocationBytes() is undefined for the type ThreadMXBean\n</code></pre>\n\n<p>I searched and found out that the method was introduced in JDK6u25 and since Eclipse is using its own compiler I cannot fix the problem. </p>\n\n<p>Compiling the class without Eclipse seems to be a weak solution since I need to be able to compile the project using Eclipse.</p>\n\n<p>Can you give me some advice on how to fix this problem?</p>\n", "Lable": "No"}