Dataset Viewer
Auto-converted to Parquet Duplicate
title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Parsing json directly using input stream
<p>I am doing a api call and in response i am getting json. So for that I want to parse it directly through input stream so that there would not be need of storing it in memory. For this I am trying to use JSONReader but that i am unable use for api's less than 11. So i dont know how to proceed with. I want it to be d...
0
2,466
Gradle: Project "x" not found in root project "myProject"
<p>Having upgraded to Android Studio from Eclipse I wanted to update my TouchDB library which is now <a href="https://github.com/couchbase/couchbase-lite-android" rel="nofollow">Coubasebase-lite-android</a>. I removed TouchDB from my project, git cloned couchbase-lite-android added to my project in Android Studio via F...
0
2,850
Docker: How to fix "Job for docker.service failed because the control process exited with error code"
<p>I'm trying to use docker in Manjaro (my kernel version is 4.19) and it is not working.</p> <p>After running <code>sudo pamac install docker</code> I run <code>sudo systemctl start docker.service</code> and receive this message:</p> <pre><code>Job for docker.service failed because the control process exited with er...
0
1,047
"img" must be terminated by the matching end-tag
<p>When parsing some an XSL XML file using docx4j, I keep receiving this error: </p> <blockquote> <p>'The element type "img" must be terminated by the matching end-tag <code>"&lt;/img&gt;"</code>. Exception Error in Docx4JException'</p> </blockquote> <p>I have tried all sorts of combinations to solve the issue but ...
0
1,996
Springboot could not extract ResultSet
<p>Currently I am getting a problem with fetching mysql data for my springboot project:</p> <p>There was an unexpected error (type=Internal Server Error, status=500). could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet</p> <p><strong>Tes...
0
1,549
How do you dynamically create an AWS IAM policy document with a variable number of resource blocks using terraform?
<p>In my current terraform configuration I am using a static JSON file and importing into terraform using the file function to create an AWS IAM policy.</p> <p>Terraform code:</p> <pre><code>resource "aws_iam_policy" "example" { policy = "${file("policy.json")}" } </code></pre> <p>AWS IAM Policy definition in JSON...
0
1,038
Angular 7 - Reload / refresh data different components
<p>How to refresh data in different component 1 when changes made in component 2. These two components are not under same parentnode.</p> <p><strong>customer.service.ts</strong></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="...
0
1,129
Add embedded image in emails in AWS SES service
<p>I am trying to write a Java app which can send emails to specify emails. In the email i also want to attach some pic.</p> <p>Please find my code below :-</p> <pre><code>public class AmazonSESSample { static final String FROM = "abc@gmail.com"; static final String TO = "def@gmail.com"; static final Str...
0
1,223
Running multiple async queries with ADODB - callbacks not always firing
<p>I have an Excel workbook that fires three queries to a database to populate three tables on hidden sheets, and then runs three 'refresh' scripts to pull this data through to three visible presentation sheets (one per query). Running this synchronously is quite slow: The total time to refresh is the sum of the time o...
0
1,532
ClassPathResource cannot access my spring properties file (using Spring web MVC)
<p>The actual location of the file is in "D:\eclipse\projects\issu\src\main\webapp\WEB-INF\spring\spring.properties"</p> <p>I tried:</p> <pre><code>Resource resource = new ClassPathResource("/src/main/webapp/WEB-INF/spring/spring.properties"); Resource resource = new ClassPathResource("/WEB-INF/spring/spring.propert...
0
2,151
Stratified sampling with Random Forests in R
<p>I read the following in the documentation of <code>randomForest</code>:</p> <blockquote> <p>strata: A (factor) variable that is used for stratified sampling.</p> <p>sampsize: Size(s) of sample to draw. For classification, if sampsize is a vector of the length the number of strata, then sampling ...
0
1,131
how to drag and drop files from a directory in java
<p>I want to implement dragging and dropping of files from a directory such as someones hard drive but can't figure out how to do it. I've read the java api but it talks of color pickers and dragging and dropping between lists but how to drag files from a computers file system and drop into my application. I tried writ...
0
1,720
Butterknife is unable to bind inside my Adapter Class
<p>I have an Adapter that draws the layouts for my Navigation Drawer. My navigation drawer contains two inner xml files: One being the <code>Header</code> and the other being the <code>Row</code>. I draw these out in a single adapter, but when I'm trying to <code>setText()</code> on my header, I get failure to bind. He...
0
1,187
Problems with unixODBC and FreeTDS config
<p>I have been working on this for way too long and can't seem to figure it out. I am sure I have something wrong in my freetds.conf, odbc.ini or odbcinst.ini. I can connect to my mssql 2008 server using tsql, but still can't with isql or of course through php.</p> <p>I am on CentOS 5.6.</p> <p>Can anyone offer some ...
0
1,550
jQuery Validation plugin: submitHandler not preventing default on submit when making ajax call to servlet - return false not working
<p>I have a simple form that uses jquery and a servlet. The jquery makes an ajax call to the servlet, the servlet makes some server side calculations, then displays the results on the same page via jQuery. I don't want the form to do a default submit (and go to the servlet) because I want to stay on the same page and...
0
1,155
C# MemoryStream - Timeouts are not supported on this stream
<p>I'm trying to create a csv file dynamially and output the stream to the browser.</p> <p>Here is my api end point:</p> <pre><code> [System.Web.Http.HttpGet] [System.Web.Http.Route("export-to-csv")] public FileStreamResult ExportDeposits([FromUri(Name = "")]DepositSearchParamsVM depositSearchParamsVM) ...
0
1,662
The entity or complex type ... cannot be constructed in a LINQ to Entities query
<p>Why does one method work but not the other, when it seems they are both doing the same thing, i.e. constructing an entity. My question then, is there a way to construct the entity in a L2E query instead of having to use just Linq or indeed both?</p> <p>This works fine...</p> <pre><code>var queryToList = (from ac i...
0
1,379
ClassNotFoundException: Didn't find class "com.google.android.gms.ads.AdView"
<p>I did a lot of research and this seems to be a common error for many users but for very different reasons. None of which I found worked for me.</p> <p>I'm getting</p> <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{ [...]/[...].activities.StartActivity}: android.view.InflateException:...
0
1,905
Which .NET collection is faster: enumerating foreach Dictionary<>.Values or List<>?
<p>Are one of these enumerations faster than the other or about the same? (example in C#)</p> <p>Case 1:</p> <pre><code>Dictionary&lt;string, object&gt; valuesDict; // valuesDict loaded with thousands of objects foreach (object value in valuesDict.Values) { /* process */ } </code></pre> <p>Case 2:</p> <pre><code>...
0
5,204
Spring Boot Microservice cant connect to Eureka Server
<p>I try to connect my service (auth-service) to the Eureka Server for the service registry. The Eureka server is running, but when I try to connect the auth-service nothing happens.</p> <p>I added the configurations to application.yaml and application.properties, but nothing helped.</p> <p>application.yaml from auth...
0
4,721
How to set linker flags for OpenMP in CMake's try_compile function
<p>I would like to verify that the current compiler can build with openmp support. The application has do deploy across a wide variety of unix systems, some of which might have old versions of OpenMP, and I would like to test for important OpenMP functionality. So, I want to build a test source file that incorporates...
0
1,139
System.DirectoryServices.DirectoryServicesCOMException: An operations error occurred
<p>I have the same web app working in three others servers. Anyone have any idea why is not working in the 4th server? See the error and stacktrace:</p> <blockquote> <p><em>An operations error occurred.</em></p> <p><em>Description: An unhandled exception occurred during the execution of the current web reques...
0
2,221
COBOL Program to read a flat file sequentially and write it to an output file, not able to read at all loop is going infinite
<p>I'm trying to write COBOL Program to read a flat file sequentially and write it to an output file, I'm able to read only one record at a time, not able to read next record what should I do?</p> <p>Here is my code:</p> <pre><code>PROCEDURE DIVISION. OPEN INPUT FILEX. ...
0
5,610
Connecting to telnet server and send/recieve data
<p>So I am trying to connect to my telnet server, which works. It recives the first lot of data from the server which is us being asked to enter password to connect. But when I type in the password it does nothing and nothing that is recieved is printed to my console.</p> <p>An example of the output is as follows:</p>...
0
1,259
Using std::ostream as argument to a print function
<p>I have always used <code>cout</code> to print the statement but now I want learn printing by <code>passing the stream</code>, something like <code>void print(std::ostream&amp;) const;</code> my current print function looks like</p> <pre><code>template &lt;class T&gt; void Mystack&lt;T&gt;::print() { for (int ...
0
5,633
Codeigniter Pagination From Database limit, offset
<p>I started a web application in CI 3.0, everything working smooth, I got my pagination working, but there is a problem wich I cannot figure out...</p> <p>For example, I have the following URL: <strong>localhost/statistics/api_based</strong> When navigate, $query results are displayed, links are generated, OK. But, w...
0
1,609
MSB3411 Could not load Visual C++ component
<p>I have MS Visual Studio 2012 Ultimate and OS is Windows 7, and have nodeJs installed.I wanted to install socket.io using npm,but I get the following error.</p> <pre><code>C:\Users\NEW&gt;npm install socket.io npm http GET https://registry.npmjs.org/socket.io npm http 304 https://registry.npmjs.org/socket.io npm htt...
0
1,210
Flutter - Container width and height fit parent
<p>I have a <code>Card</code> widget which includes <code>Column</code> with several other Widgets. One of them is <code>Container</code>.</p> <pre><code>Widget _renderWidget() { return Column( children: &lt;Widget&gt;[ Visibility( visible: _isVisible, child: Container( ...
0
2,391
invokedynamic requires --min-sdk-version >= 26
<p>Today downloaded the studio 3.0 beta 2.0 version, after that tried to open an existing project in it and faced some difficulties, most of them I could solve with the help of Google and Stack Overflow, but this one I can not. </p> <pre><code>Error:Execution failed for task ':app:transformClassesWithDexBuilderForDebu...
0
3,080
How Should VSCode Be Configured To Support A Lerna Monorepo?
<p>I have a <a href="https://github.com/lerna/lerna" rel="noreferrer">lerna</a> monorepo containing lots of packages.</p> <p>I'm trying to achieve the following:</p> <ol> <li>Ensure that VSCode provides the correct import suggestions (based on package names, not on relative paths) from one package to another.</li> <l...
0
1,954
How can I dynamically name an array in Javascript?
<p>I am using jQuery and JSON to pull data from a database. Each row of the database is a different product and each product has a number of properties associated with it.</p> <p>What I'm trying to do in js, is create a named array for each product containing all of the products properties. I know how to pull the data...
0
1,030
Knockout.js mapping JSON object to Javascript Object
<p>I have a problem mapping a Json object recieved from the server into a predefined Javascript-object which contains all the necessary functions which are used in the bindings</p> <p>Javascript code is the following</p> <pre><code>function Person(FirstName, LastName, Friends) { var self = this; self.FirstNam...
0
1,296
android: Data refresh in listview after deleting from database
<p>I have an application which retrieves data from DB and displays it in a list view. I have a custom adapter for the same. So when I press the "delete" button, a delete button for each row in the list is displayed. If I press that, the particular row gets deleted in the DB and the same should be reflected in the listv...
0
1,568
Oracle VirtualBox terminated unexpectedly, with exit code -1073741819 (0xc0000005)
<p>My VirtualBox virtual machine suddenly doesn't work, instead producing an error. I don't know what is causing this error; I searched Google for a solution, but failed. I have already reinstalled it, uninstalled, rebooted and reinstalled, but to no avail.</p> <p>What can I do to solve this problem?</p> <h2>Logs:</h...
0
7,857
Using javascript to set value of hidden field then access value from serverside c# code
<p>I am using a nested html unordered list styled as a drop down. When the a tag within the inner lists list item is clicked it trigger some javascript which is supposed to set the value of a hidden field to the text for the link that was clicked.</p> <p>The javascript seems to work - I used an alert to read the value...
0
1,192
How to Disable future dates in Android date picker
<p>How to Disable future dates in Android date picker</p> <p>Java Code :</p> <pre><code>mExpireDate.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // To show current date in the datepicker final Calendar mcurrentDate = Calen...
0
1,105
Open downloaded file on Android N using FileProvider
<p>I've got to fix our App for Android N due to the FileProvider changes. I've basically read all about this topic for the last ours, but no solution found did work out for me.</p> <p>Here's our prior code which starts downloads from our app, stores them in the <code>Download</code> folder and calls an <code>ACTION_VI...
0
1,594
Python: simple list merging based on intersections
<p>Consider there are some lists of integers as:</p> <pre><code>#-------------------------------------- 0 [0,1,3] 1 [1,0,3,4,5,10,...] 2 [2,8] 3 [3,1,0,...] ... n [] #-------------------------------------- </code></pre> <p>The question is to merge lists having at least one common element. So the results only for the ...
0
1,104
End of preview. Expand in Data Studio

stackoverflow questions for text classification: 'long'

This is pacovaldez/stackoverflow-questions filtered for 1024 GPT2 tokens or more in title + body

https://huggingface.co/datasets/pacovaldez/stackoverflow-questions


Downloads last month
6