Unnamed: 0.2 int64 0 499 | Unnamed: 0.1 int64 0 499 | Unnamed: 0 int64 66 15k | Id int64 34.6M 60.4M | Title stringlengths 16 149 | Body stringlengths 91 9.91k | Tags stringlengths 3 90 | CreationDate stringdate 2016-01-05 05:05:09 2020-02-25 02:31:01 | Y stringclasses 3
values | system stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|
0 | 0 | 12,256 | 53,335,899 | Can someone explain how this function works? function{} (function | <p>Can anyone explain to me how this works / what it does (more specifically the ( before the function) as I don't understand why the function after inArray has a ( around it?</p>
<pre><code>function geoip(g){window.top.location.href=inArray(g.country_code,filter)?targetVisitorsUrl:allVisitorsUrl}
function inArray... | <javascript> | 2018-11-16 10:25:28 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
1 | 1 | 3,100 | 38,921,003 | add library on makefile | <p>I execute the guide of "Using a “Real” Cross-Compiler" descript on the <a href="http://www.ev3dev.org/docs/tutorials/using-brickstrap-to-cross-compile/" rel="nofollow">link</a>. In the botton of the guide there is a standard makefile. I write a simple program write in C and with the comand make it run. Now I would t... | <c><makefile> | 2016-08-12 14:59:38 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
2 | 2 | 10,833 | 50,556,824 | Set IAM Role Description | <p>In the AWS Console there is an option to set a description for an IAM Role. How do you do this with CloudFormation? The documentation does not state how to do this. So far I have tried.</p>
<pre><code>Resources:
MyRole:
Type: "AWS::IAM::Role"
Properties:
Description: My Description
</code></pre>
<p... | <amazon-cloudformation> | 2018-05-27 21:49:18 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
3 | 3 | 649 | 35,289,762 | What is best tool/framework for android app testing for developer? | <p>I want to test my app after development, i test it manually,But what is the best tool for do a automation testing, so that i can make sure that app has been tested enough before release. </p>
| <android> | 2016-02-09 10:35:20 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
4 | 4 | 3,326 | 39,309,669 | Exception in thread "main" java.lang.IllegalStateException | <p>I am studying automation testing tutorial by selenium and was writing my first script in java language and have got that message in "Console" at Eclipse.</p>
<pre><code>Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system prop... | <java><eclipse><selenium><testing><automation> | 2016-09-03 17:41:52 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
5 | 5 | 1,329 | 36,156,887 | uWSGI raises OSError: write error during large request | <p>My application uses nginx, with uWSGI on the server side. When I do a large request (with a response time > 4s), the following appears:</p>
<pre><code>SIGPIPE: writing to a closed pipe/socket/fd (probably the client
disconnected) on request _URL_ (ip XX.XX.XX.XX) !!!
uwsgi_response_writev_headers_and_body_do()... | <python><nginx><uwsgi> | 2016-03-22 14:18:01 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
6 | 6 | 6,634 | 43,610,441 | PHP variable defaults radio button checked | <p>I have a variable called music. I would like if that variable = no the no radio button is checked and if it = yes the yes radio button is checked. Any ideas? Here's what I have so far but isn't working: </p>
<pre><code><?php
$music = $venue['music'];
echo $music;
?>
No<input type="radio" name="musi... | <php> | 2017-04-25 12:18:12 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
7 | 7 | 857 | 35,530,545 | overlaping divs within flex child | I'm trying to position some `div`s on top of each other (i.e., overlapping) within a `div` that is a child flex element. I guess a js fiddle would help:
https://jsfiddle.net/498xpp6n/12/
The `#m1` and `#m2` divs should appear on top of each other and take up the whole space of the `#mainpanel` div. (In this example ... | <css><flexbox> | 2016-02-20 23:50:59 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
8 | 8 | 2,221 | 37,558,697 | How to change date format in hive? | <p>My table in hive has a filed of date in the format of '2016/06/01'. but i find that it is not in harmory with the format of '2016-06-01'.
They can not compare for instance.
Both of them are string .
So I want to know how to make them in harmory and can compare them. Or on the other hand, how to change the '2016/0... | <sql><hadoop><hive> | 2016-06-01 03:00:38 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
9 | 9 | 10,108 | 49,453,498 | How can i pass string to string[]? | <p>I need to pass a string with type A,B,C,D,E(Separated with comma) in each string[] value.</p>
<pre><code>String Test ="A,B,C,D,E";
string[] arr1 = new string[5];
</code></pre>
| <c#> | 2018-03-23 15:42:45 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
10 | 10 | 2,302 | 37,767,195 | Redux vs services in Angular 2 | <p>I want to ensure I have understood Redux right. My understanding is that it will store the <em>complete</em> state of an application (including all subsystems) like models of all components and cache of fetched data and user generated data. Does that mean I should never use service to load/save state of an component... | <javascript><design-patterns><architecture><angular><redux> | 2016-06-11 18:27:47 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
11 | 11 | 4,415 | 40,568,776 | Create tuple of multiple items n Times in Python | <p>A list can be created n times:</p>
<pre><code>a = [['x', 'y']]*3 # Output = [['x', 'y'], ['x', 'y'], ['x', 'y']]
</code></pre>
<p>But I want to make a tuple in such a way but it not returning the similar result as in the list. I am doing the following:</p>
<pre><code>a = (('x','y'))*4 # Output = ('x', 'y', 'x', '... | <python><tuples> | 2016-11-12 23:16:13 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
12 | 12 | 7,411 | 44,857,085 | why not just ping? why ping/pong for websockets? | <p>TCP can detect whether a packet was sent successfully anyways so instead of waiting for the pong, why not just check if there's an error when the ping is sent? I just don't find the need for pong.</p>
| <tcp><websocket> | 2017-07-01 03:31:38 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
13 | 13 | 725 | 35,366,477 | Setting CSS margin-top so that the content does not appear on screen in any device before scroll? | <p>Maybe this is a noob question but I cant find any proper solution for this.</p>
<p>I have a single page website and there is two div. Lets say div1 and div2. I want to show the first div1 while page load but div2 will be under div1. User only see on scroll but it can not be appear on viewport. </p>
<p>I can manage... | <jquery><html><css> | 2016-02-12 15:37:08 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
14 | 14 | 9,419 | 48,442,426 | Delete HTML elements with JS. WORKING JSFIDDLE | <p>I made code to generate html rows.</p>
<p>How do I delete them now?? THis doesn't work</p>
<pre><code> $('.deleteEnv').click(function () {
$(this).parents().remove();
});
</code></pre>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<p... | <javascript><jquery><html> | 2018-01-25 12:03:54 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
15 | 15 | 3,294 | 39,265,821 | How to upload an iPhone app to spp store? | Can I upload an iPhone app to appstore by using team developer admin account?
If there is any way, please tell me the way step by step.
thank you. | <ios><app-store> | 2016-09-01 07:56:07 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
16 | 16 | 7,377 | 44,807,269 | ES6 how to do multiple default exports | <p>I am still getting a hang of react+redux, and ES6. I am trying to implement socketio, and I come across the problem of having to export socketio connect with my redux's connect.</p>
<p><strong>redux connect</strong></p>
<pre><code>export default connect(mapStateToProps, matchDispatchToProps)(UserList);
</code></pr... | <reactjs><ecmascript-6><react-redux> | 2017-06-28 15:49:01 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
17 | 17 | 5,547 | 42,000,653 | How can I transmit the contents of a struct over a named pipe (fifo)? | <p>I am working on a software project and need to transmit a few values from one process to another. I tried the better half of the day now and its still not working. Could someone write me a brief example of how to do this?</p>
| <c><struct><pipe><fifo> | 2017-02-02 11:09:43 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
18 | 18 | 8,369 | 46,370,836 | Android - Movable/Draggable Floating Action Button (FAB) | <p>I am using a <a href="https://developer.android.com/reference/android/support/design/widget/FloatingActionButton.html" rel="noreferrer">FloatingActionButton</a> in my app. Occasionally, it overlaps essential content, so I would like to make it so the user can drag the FAB out of the way.</p>
<p>No drag and drop fun... | <android><floating-action-button> | 2017-09-22 18:10:19 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
19 | 19 | 7,600 | 45,183,102 | How to create feature vector in Scala? | <p>I am reading a csv as a data frame in scala as below:</p>
<pre><code>+-----------+------------+
|x |y |
+-----------+------------+
| 0| 0|
| 0| 33|
| 0| 58|
| 0| 96|
| 0| 1|
| 1| 21|
| ... | <scala><apache-spark><dataframe> | 2017-07-19 07:00:11 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
20 | 20 | 14,227 | 58,152,451 | How to get a forked code files into my local computer from GitHub? | <p>I am new to GitHub. I have forked a big sized codebase from an instructor who has posted it on GitHub. Now it is under my GitHub account. I want to get the code into my local computer so that I could work on it. I see an option, Clone\Download. I think if I use it, it will download a disconnected copy of the code fi... | <git><github> | 2019-09-29 05:17:18 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
21 | 21 | 14,595 | 59,238,592 | sql query PDO bindParam | <p>I was trying to insert email and email password to a table where it already contains the username and password. the query i am using : </p>
<pre><code><?php
session_start();
include 'config.php';
$username = $_SESSION['username'];
$uname = $_POST['email'];
$pass = $_POST['passne'];
$... | <php><mysql><pdo> | 2019-12-08 18:31:12 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
22 | 22 | 5,696 | 42,208,721 | How to connect Google Sheets to Database | <p>I'm trying to auto-populate some raw data on a sheet in my google sheets file with a query.</p>
<p>It doesn't look like sheets has any built in functionality to do so like Microsoft Excel does.</p>
<p>Am I missing something? I found one add-on that has since been discontinued and no longer works called data every... | <google-sheets><google-sheets-api> | 2017-02-13 16:19:00 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
23 | 23 | 9,445 | 48,476,547 | Make the existing column of a table as NA using IronPython - Spotfire | Tablename : Employee
Columns : EmpId, Salary, Designation
On click of the button, it should make the column "Salary" as NA
To be done using IronPython | <ironpython><spotfire> | 2018-01-27 14:01:34 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
24 | 24 | 7,817 | 45,498,874 | Not able to edit the registry in c#? | <p>i have code which is used for setting windows10 auto login using c#,
this code was written way back, i hope it worked then.</p>
<p>but when i tested it now it is not able to set the key value in registry.</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sys... | <c#> | 2017-08-04 05:30:21 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
25 | 25 | 6,678 | 43,718,300 | How do i find an integer at position x in a linked list? | <pre><code>if (choice == 1)
{ for (int x = 1; x <= Small.Count()-1;x++)
{
Number min = (Number)Small[x-1]; // i know this how you do it for an array list
int minpos = x - 1;
</code></pre>
<p>Number is the value in the list i want to find and small is the lis... | <c#> | 2017-05-01 11:21:42 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
26 | 26 | 9,611 | 48,693,987 | python list argument in argparse module | <p>suppose I want a command like <br/>
<code>python test.py --layer 3 --sizes 100,100,100 </code></p>
<p>where <code>layer == len(sizes) </code><br/>
and sizes is a comma separated list</p>
<p>please help me with this command </p>
| <python><command><argparse> | 2018-02-08 20:12:06 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
27 | 27 | 5,623 | 42,104,040 | Angular 2: How to provide interpolation with [routerLink] | <p>I have routing defined in routing.ts file in this way.</p>
<pre><code>const routesapp: Routes= [
{path:'user/id', component:UserComponent}
];
export const:routing ModuleWithProviders = RouterModule.forRoot(routesapp, {useHash:true});
</code></pre>
<p>and in HTML</p>
<pre><code><li class ="Some class">
&... | <angular><angular2-routing> | 2017-02-08 03:16:36 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
28 | 28 | 10,020 | 49,333,582 | PortAudio library not found by sounddevice | <p>I have been working with a python program which uses <code>sounddevice</code> module to play audio. The program works fine in my office pc (running <strong>Ubuntu 17.10</strong>), but not in my home pc (running <strong>Linux Mint 18.3</strong>). It generates the following error:</p>
<pre><code>Traceback (most recen... | <python><python-sounddevice> | 2018-03-17 07:26:33 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
29 | 29 | 9,330 | 48,324,701 | Google Compute Engine Ubuntu 17.04 zesty does no longer have a Release file | <p>I have just created a new Google Cloud Compute Engine server using Ubuntu 17.04 as the boot disk:</p>
<pre><code>Ubuntu 17.04
amd64 zesty image built on 2017-12-08
</code></pre>
<p>Before doing anything else, if I try to run <code>sudo apt-get update</code> I receive the following errors:</p>
<pre><code>Ign:1 htt... | <google-cloud-platform><google-compute-engine><apt><ubuntu-17.04> | 2018-01-18 15:24:04 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
30 | 30 | 7,185 | 44,542,165 | Problems in IDLE: can't install numpy | <p>I install some libraries like numpy from my terminal but it doesn't seem to install on my IDLE which says "no module called numpy". What might be the problem?</p>
| <python><numpy><python-idle> | 2017-06-14 10:29:55 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
31 | 31 | 5,737 | 42,256,624 | Dictionary of Pandas Dataframes to MultiIndex Dataframe | <p>I have a dict of Pandas Dataframes, say</p>
<pre><code>d = {A: pd.DataFrame([[0, 1, 2], [2, 2, 4]),
B: pd.DataFrame([[1, 1, 1], [2, 2, 2]}
</code></pre>
<p>and I'd like to change it into a MultiIndex DataFrame like this:</p>
<pre><code>A 0 0, 1, 2
1 2, 2, 4
B 0 1, 1, 1
1 2, 2, 2
</code></pre>
| <python><pandas> | 2017-02-15 17:48:03 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
32 | 32 | 6,374 | 43,200,826 | mysql_fetch_array() recieving null value | <p>Cant figure out why my query isn't returning the 'make'. I've checked the SQL many times.</p>
<pre><code>$DBConnect = @mysqli_connect("host.com", "name","pass", "database")
Or die ("<p>Unable to connect to the database server.</p>". "<p>Error code ". mysqli_connect_errno().": ". mysqli_connect... | <php> | 2017-04-04 07:26:30 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
33 | 33 | 5,755 | 42,277,666 | Crop picture on Android phone | <p>Have a question.</p>
<p>Can anyone give me some example of how to write an image cropping functionality for Android (taking pictures from library of camera)? I have found plenty of examples with staff like:
<strong>Intent cropIntent = new Intent("com.android.camera.action.CROP");</strong>
However, this kind of appr... | <java><android><crop> | 2017-02-16 15:06:50 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
34 | 34 | 3,423 | 39,416,430 | Reassigning a return variable to a function in Python | <p>I am trying to figure out why I am getting a "SyntaxError: invalid syntax " the variable title is highlighted red </p>
<pre><code>from urllib.request import urlopen
from urllib.error import HTTPError
from urllib.error import URLError
from bs4 import BeautifulSoup
def getTitle(url):
try:
html=urlopen(url)
... | <python> | 2016-09-09 16:57:56 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
35 | 35 | 10,598 | 50,203,875 | How to use Spring WebClient to make multiple calls simultaneously? | <p>I want to execute 3 calls simultaneously and process the results once they're all done. </p>
<p>I know this can be achieved using AsyncRestTemplate as it is mentioned here <a href="https://stackoverflow.com/questions/35214384/how-to-use-asyncresttemplate-to-make-multiple-calls-simultaneously">How to use AsyncRestTe... | <spring><spring-boot><spring-webflux><asyncresttemplate> | 2018-05-06 19:48:42 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
36 | 36 | 13,867 | 57,268,574 | JavaScript: Match any element within array and return the match | <p>I need to match any item within 2 array's and then return the value of that match. For example:</p>
<pre><code>let arr1 = [ 'grid-view' ,'list-view' ];
let arr2 = [ 'test', 'list-view' ];
</code></pre>
<p>From the above I would get <code>list-view</code> returned. </p>
<p>This is what I have at the moment, howeve... | <javascript> | 2019-07-30 09:33:07 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
37 | 37 | 3,515 | 39,526,535 | Elegant Way of Ignoring Specific Python ListElements | <p>I have recently started trying to learn Python, and I try to improve the way I write code, and make it more "Pythonic".
Therefore, it would really be nice if someone could explain to me if the following can be formulated more elegantly.
Hopefully this is not a duplicate (I checked, but you never know)</p>
<p>I have... | <python><list><duplicates> | 2016-09-16 08:03:48 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
38 | 38 | 9,601 | 48,688,680 | Can not get stdio.h to work in c# in visual studio 2017 | <p>I can not get stdio.h to work for my console application in visual studio 2017. I have researched for about 3 days now and have found nothing useful. All of the help topics I could find were for c++. It does work when I make a c++ console application but not when I create a c# console application. <a href="https://i... | <c#><visual-studio><visual-studio-2017> | 2018-02-08 15:09:44 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
39 | 39 | 11,549 | 51,874,513 | I need to prepare a file with 10 columns and 1 lakh rows by using java... can anyone pls pls help me with this.. | private static final String SAMPLE_CSV_FILE_PATH = "./users.csv";
public static void main(String[] args) throws IOException {
try (
Reader reader = Files.newBufferedReader(Paths.get(SAMPLE_CSV_FILE_PATH));
CSVParser csvParser = new CSVParser(reader, CSVFormat.DEFAULT);
) {
... | <java> | 2018-08-16 10:08:03 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
40 | 40 | 3,926 | 39,993,361 | ArrayList type variable assigned to another is passed as reference in Android Java? | I am developing an Android Project. First of all, I am not a Java developer. Now I want to know something in about java programming. Especially about ArrayList. Please see my code below
ArrayList<Bitmap> previewBitmaps = new ArrayList<Bitmap>();
//initialize values - total 3 elements... | <java><android><arraylist> | 2016-10-12 07:55:46 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
41 | 41 | 13,085 | 55,224,182 | What does the complete.cases() code do for the dataframe? | <p>I ran a summary of my data in R and got top results for my data and then I ran complete.cases(df) and reran another summary and the content in my top results changed. What does the complete.cases(df) do to your dataset? </p>
| <r><dataframe><rstudio> | 2019-03-18 14:55:40 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
42 | 42 | 2,043 | 37,313,780 | How can I start php-fpm in a Docker container by default? | <p>I have this Docker image - </p>
<pre><code>FROM centos:7
MAINTAINER Me <me.me>
RUN yum update -y
RUN yum install -y git https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
RUN yum install -y ansible
RUN git clone https://github.com/.../dockerAnsible.git
RUN ansible-playbook dockerFileBoots... | <php><docker><ansible> | 2016-05-19 04:04:49 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
43 | 43 | 1,499 | 36,417,694 | Zebra Printer Plugin Apache Cordova/PhoneGap | I notice your quite an expert with Apache Cordova/Phone Gap. I seek your advise and would also like to compensate you for your time. I am attempting to build an application for displaying my inventory online. Part of that requires to print a label and apply it to my inventory. The application itself works fine. The Pro... | <cordova><phonegap-plugins><phonegap-cli> | 2016-04-05 05:19:28 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
44 | 44 | 6,213 | 42,991,351 | Python: How to create a range for input() | <p>I'm in the middle of writing some simple Python code, however, I'm still a novice and I've encountered a problem that I have been unable to solve.</p>
<pre><code>name = raw_input("What is your name? ")
maths = int(input("Enter your maths test result: "))
psychology = int(input("Enter your psychology test result: "... | <python><input><range> | 2017-03-24 04:19:16 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
45 | 45 | 8,224 | 46,159,195 | Async Call to shell in C# is open a new thread? | <p>I've the following code from an answer in: <a href="https://stackoverflow.com/questions/4291912/process-start-how-to-get-the-output">Process.start: how to get the output?</a></p>
<pre><code>static void runCommand() {
//* Create your Process
Process process = new Process();
process.StartInfo.FileName = "... | <c#><multithreading><shell><console><delegates> | 2017-09-11 15:25:49 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
46 | 46 | 12,766 | 54,435,817 | how to access elements of json response | I have two types of answers that Jason's format is for me since then, and I want to parse this information.
response={'success':True,'alarms':[{'play_voice':True},{'voice_url':'my directory'}]}
response={'success':True,'alarms':[{'play_voice':False}]}
when i try this code i have this output:
voice_prof... | <python><python-3.x> | 2019-01-30 08:04:22 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
47 | 47 | 2,689 | 38,333,691 | R Markdown: Putting an image in the top right hand corner of HTML and moving title down | <p>I would like to put a company logo image in the top right hand side of my R markdown report, and then move the title down, say 3 or 4 cm lower than the default position. The idea being that it looks like company letterhead. </p>
<p>Could anyone suggest how I could code this in my .Rmd file? </p>
<p>Thanks for a... | <html><css><r><r-markdown> | 2016-07-12 15:53:10 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
48 | 48 | 10,912 | 50,731,692 | The accuracy on the training set is high, but the accuracy on the test set is not very high。overfiting? | The accuracy on the training set is high, but the accuracy on the test set is not very high. I have tried dropout and L2 regularization, training set accuracy can reach 90%+, but the test set up to 70%, I do not know where the problem? Is the parameter not adjusted? Or something else? I need help, thanks | <python-3.x><image><tensorflow><classification><conv-neural-network> | 2018-06-07 01:18:04 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
49 | 49 | 8,096 | 45,991,019 | Plotting Multiple Series In R | <p>I have a data set in which, for each day in the work week (Monday - Friday), I have a value that belongs to a category. In table form, it looks like this:</p>
<pre><code>cat | day | value
A | 0 | 1
A | 1 | 0
A | 2 | 2
A | 3 | 1
A | 4 | 3
B | 0 | 0
...and so on...
</code></pre>
<p>Every cat... | <r> | 2017-08-31 22:36:38 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
50 | 50 | 6,501 | 43,425,356 | What is the difference between using a compose() and a simple flatMap()? | <p>I just watched the conference by <strong>Jake Wharton</strong> <a href="http://jakewharton.com/the-state-of-managing-state-with-rxjava/" rel="noreferrer">The State of Managing State with RxJava</a>.</p>
<p>He proposes to transform the events from view to action in this way:</p>
<pre><code>Observable<Event> e... | <java><android><rx-java2> | 2017-04-15 11:14:30 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
51 | 51 | 7,663 | 45,265,751 | Using excel and regular expression | I am trying to get a value or all values similar to below in excel:
#123
#048309
#9385
I want to get the value proceeding the # however, I am not sure if there is an easier function? I want it to find the # then get however many numbers proceeds it. I am familiar with regex not with excel functions unfort... | <excel><spreadsheet> | 2017-07-23 13:41:46 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
52 | 52 | 2,155 | 37,487,230 | regex to check password consist of Character and Number | <p>I need a regex for jquery to check the password is between 8 to 32 character and consist of number and character. </p>
| <jquery><regex> | 2016-05-27 15:26:27 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
53 | 53 | 9,750 | 48,914,411 | Python in Python | <p>Scratch is made from flash. It isn't coding. But python is (or at least I think it is ). So I was wondering if it was possible to</p>
<p>a) Make a coding language in python for the user to make</p>
<p>b) Make the User's code executable.</p>
<p>P.S. Is there a way for variables when changed by the user, becomes ch... | <python><mit-scratch> | 2018-02-21 19:57:42 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
54 | 54 | 8,804 | 47,309,555 | String formating in python , subprocess output |
Below is my nslookup result using "subprocess" module in python.
b'Server: server.internal\r\nAddress: 192.168.0.2\r\n\r\nName: www.google.com\r\nAddresses: 2404:6800:4007:800::2004\r\n\t 216.58.197.68\r\n\r\n'
Could someone please help me to format the result as below.
Server: server.internal
Name: www.goo... | <python><python-3.x> | 2017-11-15 14:09:03 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
55 | 55 | 2,797 | 38,547,675 | How to connect to amazon aws database using given host and port | <p>I have a host, login, password and port. However, when I try to folow the host link, it fails. Tried to search for some guides, but there seems to be more information about creating your own databases rather then using someone else's.</p>
<p>What should I do with that data I have to access a database?</p>
| <amazon-web-services> | 2016-07-24 00:42:28 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
56 | 56 | 6,924 | 44,133,500 | Cant Insert to database CodeIgniter | My Model
>function InsertFeedback($data) {
>> $this->db->insert('tb_keluhan', $data);
> return;
> }
My controller
>>public function rateform($username,$id,$name) {
>
> $rating = $this->input->post('rating');
> $name2 = urldecode($name);
>
>
> $data = array
> (
> ... | <php><codeigniter> | 2017-05-23 11:26:43 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
57 | 57 | 7,337 | 44,764,023 | Is there any difference in naming the PHPunit configuration file phpunit.xml.dist or phpunit.xml | <p>Can someone explain to me what is the difference between using PHPunit configuration files named <code>phpunit.xml.dist</code> or <code>phpunit.xml</code>.</p>
<p>The <a href="https://phpunit.de/manual/current/en/organizing-tests.html#organizing-tests.xml-configuration" rel="noreferrer">official documentation</a> m... | <php><xml><symfony><unit-testing><phpunit> | 2017-06-26 16:11:47 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
58 | 58 | 828 | 35,502,840 | RPN calculator (swift xcode) - sine, cosine, tangent, reciprocal (1/x), log (base) functions | I have build a basic RPN calculator with swift and I need to add those functions: sine, cosine, tangent, reciprocal (1/x), log (base) & log (base10).
Here is the code that I have for the basic operations:
import Foundation
import UIKit
class CalculatorEngine: NSObject
{
var operandStack = Array<Double... | <swift><math><rpn> | 2016-02-19 10:21:06 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
59 | 59 | 12,567 | 53,989,520 | public static void main in Kotlin | <p>In <code>Java</code>, especially in <code>Android studio</code>, every time that I want to run or test some <code>Java</code> source code quickly, I will create <code>public static void main</code> (shortkey: <em><code>psvm + tab</code></em>) and the IDE will show "Play" button to run it immediately. </p>
<p><a hre... | <java><android><android-studio><kotlin> | 2018-12-31 16:32:54 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
60 | 60 | 368 | 34,962,026 | why golang has both values and pointers for struct types | <p>One of Go's design goals is to be simple. But Go have both values and pointers for struct types which I think is confusing for developers to choose from, while java and javascript have a very simple rule: primitive types are always values, object types are always pointers. Why doesn't Go adopt this simple rule from ... | <go> | 2016-01-23 09:54:58 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
61 | 61 | 3,044 | 38,858,334 | Why does the list "aa" get a value of None | <p>I was experimenting with another question on Stack. I was trying to extend the list <code>aa</code> so that it contain all elements of <code>complete</code>. However, I came across this error. The following print statement prints <code>None</code>:</p>
<pre><code>complete = [5,4,3,2,1]
aa = [1, 2]
aa = aa.extend(co... | <python><list><python-2.7><extend> | 2016-08-09 18:51:35 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
62 | 62 | 8,552 | 46,583,222 | C# Generate an unique ID | I want to generate unique ID's for clients and store them in MySql database. It's a C# winform application, when one client enter his data like name etc. and when clicking on savebutton the ID generator needs to give him an unique ID whitch won't be repeated later.
I made it work, but after about 30 inserting, the ge... | <c#><mysql><winforms> | 2017-10-05 10:17:34 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
63 | 63 | 14,298 | 58,356,172 | Why Visual Studio isn't showing my WinForm project build? | <p>I'm new to C#. Sometimes I create some windows forms project to studies some lectures. I made a simple program to search for a ID number from a bank account signed and showing it in some textboxes. The VS says that my project has no error in the files and codes. When I press Ctrl + F5 to run, it doesn't show anythin... | <c#><windows><forms><winforms> | 2019-10-12 16:29:36 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
64 | 64 | 6,701 | 43,779,871 | Call aws Lambda function without using API Gateway and EC2 Instance | <p>Can we call lambda function from outside aws without using API Gateway? I want to call lambda function directly from outside aws services is it possible?</p>
| <aws-lambda> | 2017-05-04 10:06:52 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
65 | 65 | 12,847 | 54,646,553 | useState vs useReducer | <blockquote>
<p>useReducer is usually preferable to useState when you have complex state logic that involves multiple sub-values or when the next state depends on the previous one. <strong>useReducer also lets you optimize performance for components that trigger deep updates because you can pass dispatch down instead... | <reactjs><react-hooks> | 2019-02-12 09:19:13 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
66 | 66 | 1,858 | 37,066,370 | What is the difference between /etc/apache2 and /usr/sbin/apache2 in ubuntu? | I want to know what exactly is the difference between /usr/sbin/apache2 and /etc/apache2. I have an idea that /etc contains all the installed ackages with the necessary configuration files but /usr/sbin/apache2 is what i m getting stuck. can sany one help me out ? | <linux><ubuntu><apache2> | 2016-05-06 07:09:26 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
67 | 67 | 14,053 | 57,731,390 | Why does this sql query return 0 rows in php? | <p>I'm trying to get entries from my database with a sql query in php. However the <strong>$result</strong> variable has 0 rows eventhought there are records in the database.</p>
<p>I've made the same query in phpMyAdmin and it returns all rows correctly.
I've made similiar queries on other .php pages and they return ... | <php><html><mysql><database> | 2019-08-30 18:04:26 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
68 | 68 | 9,959 | 49,251,001 | how to use intent according to the position in the recyler view | private class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.MyViewHolder> {
@Override
public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item, null);
return ... | <java><android><android-recyclerview> | 2018-03-13 08:00:07 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
69 | 69 | 687 | 35,321,826 | Python binary search tree height function wont work, would appreciate any help/hints I can get | I've been trying the recursive approach but been stuck for too long. I cant tell if it's my BST code that's wrong or my recursion.
Regardless of how many elements I put in my tree I still get the value 2 from my height function.
class Treenode:
def __init__(self, value = None, rchild = None, lchild = None... | <python><python-3.x><binary-search-tree> | 2016-02-10 17:22:11 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
70 | 70 | 13,652 | 56,702,259 | Is there a way to update all columns in a table using R? | <p>I have a List which is sourced from a table in MariaDB. After making changes in the table, I am trying to update all the columns in the table with the columns from the List.
db.WriteTable() updates only a specific set of columns</p>
| <r> | 2019-06-21 11:08:07 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
71 | 71 | 7,109 | 44,365,469 | Need Help for Developing XML file based Android App with Editable Item List | <p>I am currently working on an Android Application which shows Data from XML file and can be also edited.</p>
<p>This app parses XML document and displays contents of nodes in List of EditText Views, XML file contains nodes of items with child nodes as follows</p>
<ul>
<li>Item Image Path</li>
<li>Item Name</li>
<li... | <android> | 2017-06-05 09:11:29 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
72 | 72 | 10,257 | 49,673,064 | Does an array contain a specific item? | <p>I recently starting learning JS so a beginner level answer would be great! Thanks. </p>
<pre><code>function contains(arr, item) {
// check to see if item is inside of arr
// return true if it is, otherwise return false
}
</code></pre>
| <javascript><arrays> | 2018-04-05 13:00:39 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
73 | 73 | 13,839 | 57,204,217 | JavaScript: durch Liste Iterieren und jedem Element einen Eventlistener zuweisen, der Funktion in Abhängigkeit von Attribut des Elements ausführt | Ich habe eine Liste von Html Elementen, die ein Attribut taskNr haben. Bei Click auf diese Elemente soll ein Element gelöscht werden, dessen id aus dem Wort "task" und der taskNr des jeweiligen Elements besteht.
Mein Versuch funktioniert leider nicht.
for (i= 0; i< removeBtns.length; i++) {
var tasknumber = r... | <javascript> | 2019-07-25 14:20:38 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
74 | 74 | 11,578 | 51,915,133 | string copy error in c++ | i don;t understand why str1 is changing here. please help
#include<stdio.h>
#include<string.h>
int main (){
char str1[]="stackoverflowwwwwww";//str1
char str2[] = "stackoverflow";
char str3[40];
char str4[40];
char str5[] = "asdfgh";
strcpy(str2, str1);
... | <c> | 2018-08-19 06:33:56 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
75 | 75 | 6,132 | 42,811,777 | Error while using simple print in Python | <p>I'm new python, I've a code which crashes in the following line </p>
<pre><code> print("step %d, training accuracy %g"%(i, train_accuracy))
^
IndentationError: unindent does not match any outer indentation level
</code></pre>
<p>here is the whole code... | <python> | 2017-03-15 13:52:21 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
76 | 76 | 12,204 | 53,242,391 | Mystery? Azure DaaS Webjob | <p>This week I have noticed a continuous webjob on my teams azure portal.</p>
<p><a href="https://i.stack.imgur.com/YeKgh.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/YeKgh.jpg" alt="enter image description here"></a>No one on the team says they have deployed it, or are familiar with it. I found this blog... | <azure><azure-devops><azure-webjobs> | 2018-11-10 18:59:50 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
77 | 77 | 5,231 | 41,593,973 | How to conditionally wrap a div around ng-content | <p>depending on the value of a (boolean) class variable I would like my <code>ng-content</code> to either be wrapped in a div or to not be wrapped in div (I.e. the div should not even be in the DOM) ... Whats the best way to go about this ? I have a <a href="http://plnkr.co/edit/omqLK0mKUIzqkkR3lQh8" rel="noreferrer">P... | <angular><angular-ng-if><angular2-ngcontent> | 2017-01-11 14:53:04 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
78 | 78 | 14,794 | 59,779,158 | How to filter a list of tuples (or a list of lists) to remove all values that = 0? | <p>I originally had a vector, which I attached an index to, as shown below.</p>
<pre><code>keys = list(enumerate(x))
</code></pre>
<p>Output:</p>
<pre><code>[(0, 0.0), (1, 0.87), (2, 0.0), (3, 0.0), (4, 0.0), (5, 0.32), (6, 0.46), (7, 0.0), (8, 0.0), (9, 0.1), (10, 0.0), (11, 0.0)]
</code></pre>
<p>What I'm trying ... | <python> | 2020-01-16 23:10:26 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
79 | 79 | 11,219 | 51,244,514 | how to upload file in view directory of codeigniter? | I want upload php file in view directory of codeigniter using php?
I tried with following command..
1) $config['upload_path']
2) move_uploaded_file
thanks in advance.
| <php><codeigniter><file-upload><codeigniter-3><codeigniter-upload> | 2018-07-09 11:29:46 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
80 | 80 | 1,304 | 36,123,211 | Nil when unwrapping viewForKey(UITransitionContextFromViewKey) (Swift) | <p>I am trying to do a custom transition animation. I have create an animation object that conforms to <code>UIViewControllerAnimatedTransitioning</code>:</p>
<pre><code>import UIKit
class ViewControllerAnimator: NSObject, UIViewControllerAnimatedTransitioning {
let duration = 1.0
func transitionDuration(tr... | <swift><uiview> | 2016-03-21 04:34:12 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
81 | 81 | 7,355 | 44,779,907 | fetching data from mysql not working mobile only desktop | <p>Ihave a site on this site i have a responsive table for soccer tips.
So i can already connect to database to fetch date and it shows me on desktop.so it works on Desktop but on mobile i can not see anything.
I put the html and the css code down. so i am a beginner so please help me.</p>
<p><div class="snippet" data... | <javascript><php><html><css><mysql> | 2017-06-27 12:07:55 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
82 | 82 | 5,121 | 41,435,014 | Why am I unable to run django migrations via the 'docker-compose run web' command? | <p>So I am deploying django, postgress and nginx containers via docker-compose and I have an issue that I can't seem to figure out.</p>
<p>In order to resolve the following error in my Django app, I knew I just had to run a Django migration.</p>
<pre><code>docker@postgres ERROR: relation "accounts_myprofile" does no... | <django><docker><migration><docker-compose> | 2017-01-03 00:48:46 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
83 | 83 | 2,209 | 37,545,626 | Python - Loop parallelisation with joblib | <p>I would like some help understanding exactly what I have done/ why my code isn't running as I would expect. </p>
<p>I have started to use joblib to try and speed up my code by running a (large) loop in parallel.</p>
<p>I am using it like so:</p>
<pre><code>from joblib import Parallel, delayed
def frame(indeces, i... | <python><numpy><parallel-processing><joblib> | 2016-05-31 12:21:07 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
84 | 84 | 459 | 35,088,498 | How to get response body in Zuul post filter? | <p>How it is possible to read a response body while using Zuul as a proxy in <code>post</code> filter?</p>
<p>I am trying to call the code like this:</p>
<pre><code>@Component
public class PostFilter extends ZuulFilter {
private static final Logger log = LoggerFactory.getLogger(PostFilter.class);
@Override
... | <java><proxy><netflix-zuul> | 2016-01-29 15:48:07 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
85 | 85 | 14,904 | 60,128,442 | for k in data:how to reach k+1 in data in this loop | <p>How can I reach the k+1 object in this loop?
Is there a way in python like in java or c like <code>for(i=0;...)</code>?</p>
<pre><code>for k in data:
k+1
</code></pre>
| <python> | 2020-02-08 15:52:21 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
86 | 86 | 1,172 | 35,961,816 | Check if a string has 2 characters next to each other - Python | <p>Say we have a string </p>
<pre><code>"SS in a dark room"
True
</code></pre>
<p>I want to check if this string contains 2 or more 'S' characters next to each other, so here it would be True but in this string it would be False: </p>
<pre><code>"ss in a dark room"
False
</code></pre>
<p>Here it would be False:</p>... | <python><string><char> | 2016-03-12 18:42:15 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
87 | 87 | 3,601 | 39,636,757 | C, removing non alphabetic characters in a char array | I want to remove/replace non alphabetic characters in a char array but instead of removing it, it replaces it with a space.
For an example if I type in hello123hello it would ouput as hello hello.
I want it to output it as hellohello without the extra spaces.
#include <stdio.h>
#include <ctype.h>
#incl... | <c><arrays> | 2016-09-22 10:37:13 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
88 | 88 | 9,725 | 48,873,664 | What does the running time of this algorithm? | Hey i would ask what does the Running Time of this algorithm
i<-0
k<-0
while (i<=n)
{
for (j<-i to n**2)
{
k<-k+1
}
i<-i*2
}
Thanks. | <time-complexity> | 2018-02-19 20:26:42 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
89 | 89 | 9,742 | 48,893,716 | How can I use screensthat designed with HTML and css on Xamarin Forms? | Do all of UI designers xamarin screen using xaml syntax? I'm learning mobile development and want to use html and css design on Xamarin Forms. I don't know if I can. how to design professional xamarin screens? Thanks for your replies. | <html><user-interface><xamarin><xamarin.forms><xamarin.ios> | 2018-02-20 20:30:24 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
90 | 90 | 5,762 | 42,282,042 | How to use onclicklistener with programically created views? | I've created three imageviews in the following way:
ImageView imagev = new ImageView(getActivity());
Now whenever I click on these (each one of them) I want to load some information from string array. The thing is that these imageviews were created using another array that holds the drawables.
So my question is, how... | <android><onclicklistener> | 2017-02-16 18:35:01 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
91 | 91 | 13,629 | 56,636,914 | Why this javascript function won't fire? | The following code tracks the number of clicks on the element and then submits the result to Facebook Pixel. However, the event is not triggered for some reason. I have a similar setup for another function and it works perfectly. Not sure what the issue here is.
Thought it's a variable scope problem, changed countClic... | <javascript><jquery><facebook> | 2019-06-17 18:25:31 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
92 | 92 | 8,020 | 45,875,388 | How to compel a compiler to generate a code equivalent for a manual switch? | <p>The task is simple: we have a type list (i.e. <code>using list = std::tuple<A, B, C, ...>;</code>) and we want to dispatch its contents based on an index known at runtime. By "dispatch" I mean to call a templated handler, parameterized by a type from this list.
It's easy to write a <code>switch</code> manually... | <c++><c++11><gcc><clang><c++14> | 2017-08-25 06:12:35 | HQ |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
93 | 93 | 3,007 | 38,805,422 | what is the different between 'new()' int and 'int *p' | <p>As the following codes:</p>
<pre><code>int *p;
*p = 10;
int *q = new() int(10);
</code></pre>
<p>I want to know the differences between <code>p</code> and <code>q</code>. Can <code>int *q = new() int(10)</code> be replaced by <code>int *q; *q = 10</code> anywhere?
Thanks a lot.</p>
| <c++> | 2016-08-06 14:38:51 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
94 | 94 | 7,567 | 45,141,411 | setTimeout with variables passed in fuction | <p>I need a delay before executing certain function in java script. I could use setTimeout but the problem is I have two variables passed to function. I need to syntax for setTimeout in this case.Can anyone help?</p>
| <javascript> | 2017-07-17 10:09:19 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
95 | 95 | 9,896 | 49,152,026 | how to delete the back slash from any path | <p>1.I have a path \\\\arvind\chaudhary\newfolder\ want to remove two backword
slash from this path and want as below</p>
<p>2.I want the path \\arvind\chaudhary\newfolder\</p>
| <c#><c#-4.0> | 2018-03-07 12:30:07 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
96 | 96 | 66 | 34,604,508 | How to create a duplicate of a stack in Java | <p>My teacher requested that I create a duplicate of a Stack that returns a new Stack containing the same elements and in the same order as the specified Stack.</p>
<p>If I am only able to use methods that are unique to Stack, I would pop every element off the Stack and onto a que. Then I would pop from the bottom of ... | <java><nullpointerexception><stack> | 2016-01-05 05:05:09 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
97 | 97 | 14,522 | 59,013,685 | Loop does not break - Python3 | Here is my piece of code and for some reason it continues even if I enter AM or PM correct
while True:
user_in = input('Please enter the time in the following 12Hour format HH:MM AM|PM : ')
time_in = user_in.split()
time_input = time_in[0].split(':')
latin_input = time_in[1]
if (latin_input != 'AM' and latin_in... | <python><python-3.x><loops><user-input> | 2019-11-24 00:43:15 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
98 | 98 | 13,452 | 56,178,233 | What is the best way to store JSON response of third API? | <p>I'm using a third API where I have the concept of Orders and Offers, and I want save some things from the response of creation endpoint for both resources and I want save entire response if someday I need a particular thing from the response that I not consider yet.</p>
<p>What is the best pattern to follow in this... | <ruby-on-rails><ruby><database-design><architecture><software-design> | 2019-05-17 00:49:30 | LQ_CLOSE |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
99 | 99 | 10,926 | 50,760,515 | Why it cant retrieve/get the data in my columns in my database | another question again haha, why cant I fetch the or retrieve the data from the columns username and password from my database. Here is the display. I dont know why it cant retrieve any data from the database. I have used the syntax "SELECT" but still to no avail.
[Display that it returns null for username and password... | <java><mysql><database> | 2018-06-08 12:18:47 | LQ_EDIT |
This a stack overflow question from between 2016-2020 and it can be classified into three categories:
* HQ: High-quality posts without a single edit.
* LQ_EDIT: Low-quality posts with a negative score, and multiple community edits. However, they still remain open after those changes.
* LQ_CLOSE: Low-quality posts that... |
End of preview. Expand in Data Studio
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Annamoradnejad, I., Habibi, J., & Fazli, M. (2022). Multi-view approach to suggest moderation actions in community question answering sites. Information Sciences, 600, 144-154.
@article{annamoradnejad2022multiview, title={Multi-View Approach to Suggest Moderation Actions in Community Question Answering Sites}, author={Annamoradnejad, Issa and Habibi, Jafar and Fazli, Mohammadamin}, journal = {Information Sciences}, volume = {600}, pages = {144-154}, year = {2022}, issn = {0020-0255}, doi = {https://doi.org/10.1016/j.ins.2022.03.085}, url = {https://www.sciencedirect.com/science/article/pii/S0020025522003127} }
- Downloads last month
- 5