date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/06 | 810 | 3,556 | <issue_start>username_0: In the AWS RDS documentation, it is written that automatic daily backups are performed. But it is not specified whether it is incremental or differential.
<https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html>
Can you please tell the type of backup AWS ... |
2018/03/06 | 1,282 | 4,718 | <issue_start>username_0: So I'm trying to make it possible for users to update their Avatar/Profile image by allowing them to upload their image + I want to implement an image cropper so they can crop the image to a ratio of 1 to 1. All tho I think the first thing is making it possible to upload.
I've searched around ... |
2018/03/06 | 404 | 1,524 | <issue_start>username_0: I wrote an OLEDB program and now I want to Create install a msi Setup file, but at the time of rebuilding the following error.
Error : [Error Pic](https://i.stack.imgur.com/Q6hnY.png)The installer has encountered an unexpected error installing this package. the error code is 2330<issue_comment>... |
2018/03/06 | 571 | 2,057 | <issue_start>username_0: I'm working on project that requires different classes to have the same name like this:
lib/command.rb
```
class Command
end
```
lib/command/group.rb
```
class Command
class Group < Command
end
end
```
lib/command/group/add.rb
```
class Command
class Group
class Add < Group
... |
2018/03/06 | 491 | 1,875 | <issue_start>username_0: I have implemented a form with a few TextFormFields. When i scroll the form the TextFormFields that are out of the view loses entered data. There is a similar question already posted [here](https://stackoverflow.com/questions/45240734/flutter-form-data-disappears-when-i-scroll). I have to no id... |
2018/03/06 | 550 | 1,921 | <issue_start>username_0: I am trying to create a loop where a randomly generated number is used to determine if a win/loss occurs up to a number of wins. The problem I am having is that when vba uses the RND function to define a variable, it is not generating a new random number after each loop. How can I make it so th... |
2018/03/06 | 950 | 3,462 | <issue_start>username_0: How to simplify below nested query? there are some performances issues related to this query
```
select
t.GroupName as ProviderName,
t.GroupName as Groupname,
t.idPriceGroup,
sum(t.fixed_value) as fixed_value,
avg(isnull(t.percent_value, 0)) as percent_value,
isnu... |
2018/03/06 | 1,257 | 4,818 | <issue_start>username_0: I am confused about whether we add elements to the front of a linked list or the back. Let's assume that we have a linked list that goes like: `x->a->c->v`; here, is `x` the first or the last element? Secondly, what should I do if I want to add `x->a->c->v->h` or `h->x->a->c->v`? This confused ... |
2018/03/06 | 1,240 | 5,487 | <issue_start>username_0: My code is doing the following (note all HTML, JavaScript and PHP code is on the same file):
A form is used for entering data and is validated by PHP. The PHP gets JSON data from a Google API and sends it to JavaScript . A JavaScript function parses the JSON and displays the required fields in... |
2018/03/06 | 1,675 | 4,581 | <issue_start>username_0: **Want to concatenate two audio files. i used an npm package known as audioconcat but when i installed and configured the below code i am confronted with the following error**
```
Error: Error: Cannot find ffmpeg
at E:\VoiceMan\registercheck\node_modules\fluent-ffmpeg\lib\processor.js:136:... |
2018/03/06 | 848 | 2,933 | <issue_start>username_0: I am rebuilding login page now.
I have original one without password\_verify code is working fine.
Original code without password\_verify code:
```
$username = $_POST['username'];
$password = md5($_POST['password']);
if($username != "" && $password != "") {
try {
$query = "SELE... |
2018/03/06 | 305 | 961 | <issue_start>username_0: I want to insert a line break using CSS, there are two classes : select2-search-field and select2-search-choice they are coming in same div as li element
Could please suggest any way I could break them to populate in two lines.
I have tried : [How to insert a line break before an element using... |
2018/03/06 | 464 | 1,529 | <issue_start>username_0: I have a small dataset of ~150 images. Each image has an object (rectangle box with white and black color) placed on the floor. The object is same in all images but the pattern of the floor is different. The objective is to train network to find the center of the image. Each image is of dimensi... |
2018/03/06 | 1,049 | 3,297 | <issue_start>username_0: I have a enum like this,
```
enum Traits {
None = 0,
Friendly = 1 << 0, // 0001
Mean = 1 << 1, // 0010
Funny = 1 << 2, // 0100
Boring = 1 << 3, // 1000
All = ~(~0 << 4) // 1111
}
let traits = Traits.Mean | Traits.Funny
console.log(traits);
```
this cons... |
2018/03/06 | 850 | 2,907 | <issue_start>username_0: When elements A, B, or C change, they change the properties of `filename.a`, `filename.b`, etc.
But the input value is only assigned once. Is there a way to have the input text value change whenever the variables that make it up change?
Or must I update the text inside of every `change` funct... |
2018/03/06 | 957 | 3,386 | <issue_start>username_0: I am facing a Problem with Angular 5 Forms, when I Get Exchanges Array of Object from Server, after Iteration I tried to populate in HTML but default value not show while other fields are populated from other service
**This is My HTML**
```
{{ExchangeName.Exchange}}
```
**This is My TS Co... |
2018/03/06 | 1,571 | 4,800 | <issue_start>username_0: new for docker implementation, trying after R&D.
**TASK TO BE ACHIEVED** :- To run the docker after a scheduled time (i.e 5 min) through writing CRON.
I have written a simple java application which just contain a println statement. I want to execute the project using Docker.
My `Dockerfile`:... |
2018/03/06 | 878 | 2,702 | <issue_start>username_0: I have a dynamic URL like
<http://example.comjobdetail.php?id=24> and
I want to change this URL like
<http://example.comjobdetail/24>
how can we do this ?<issue_comment>username_1: This happens, because you can't add any files to the Docker container from outside of the [build context](https... |
2018/03/06 | 2,892 | 9,599 | <issue_start>username_0: Can anyone tell me what's wrong with my code error and I couldn't solve it and I wondered can you guys tell me what is wrong with my code.
This is my MapsActivity.java
```
package com.ite.googlemap;
import android.support.v4.app.FragmentActivity;
import android.os.Bundle;
import com.google.a... |
2018/03/06 | 628 | 2,704 | <issue_start>username_0: We are using spring-cloud-starter-hystrix with spring-cloud-starter-archaius where we are unable to stop the poolingconfigurationSource thread of archaius once the war is un-deployed. But spring-cloud-starter-archaius is working fine without hystrix and thread is stopped once war is un-deployed... |
2018/03/06 | 1,438 | 5,355 | <issue_start>username_0: I'm very new in quantitative and scientifical programming and I've run into the minimizer function of scipy `scipy.optimize.fmin`. Can someone explain me the basic intuition of this function for a non-engineering student?
Letz say I want to minimize following function:
```
def f(x): x**2
``... |
2018/03/06 | 509 | 1,764 | <issue_start>username_0: Original List:
```
def list = [[category: "DLF", name: "some name one"],
[category: "EF", name: "some name two"],
[category: "RW", name: "some name five"],
[category: "EF", name: "some name four"],
[category: "DLF", name: "some name two"],
[category: "R... |
2018/03/06 | 509 | 1,418 | <issue_start>username_0: here in two condition, $data & $data1 are diifferent.
```
function f_report_by_year($data, $data1){
$this->db->join('student', 'student.student_id = pay_log.student_id', 'left');
$this->db->where('pay_log.timedate >=', $data.'-04-01');
$this->db->where('pay_... |
2018/03/06 | 1,360 | 2,183 | <issue_start>username_0: I have some data like this,
`u'1\t\u80a1\u7968\r2\t\u503a\u5238\r3\tTOT-\u6211\u53f8\u5355\u4e2a\u4fe1\u6258\u8ba1\u5212\uff08\u7a7f\u900f\u5f0f\uff09\r4\tTOT-\u6211\u53f8\u591a\u4e2a\u4fe1\u6258\u8ba1\u5212\r5\tTOT-\u5916\u90e8\u4fe1\u6258\u8ba1\u5212\r6\tFOF-\u6307\u5b9a\u5355\u4e2a\u5916\u9... |
2018/03/06 | 570 | 1,987 | <issue_start>username_0: My column values are as follows:
```
1-1
1-2
2-1
2-2
...
12-1
12-2
13-1
13-2
...
n-1
n-2
```
On cells containing 1-1 up to 12-2, excel doesn't meddle with me, but starting on 13-1 up to the nth row, it shows warning "**Text date with 2-digit year**". Unfortunately, this are really not dates.... |
2018/03/06 | 719 | 2,430 | <issue_start>username_0: I have a path files which are named by time (201803061500) etc. What I need is a time conversion, because I use `while` loop to open a few of them there is an error when I want files from for example (...1555 to ... 1615) and Python sees an obivous problem because after 1555 is 1560, but I want... |
2018/03/06 | 534 | 2,255 | <issue_start>username_0: I am facing a conflict with class and package names that have same name under different source. In a nutshell, the directory structure looks somewhat like this:
```
src/test/java
com.service.helper
Constants.java
src/intTest/java
com.service.helper
Constants.java
c... |
2018/03/06 | 709 | 2,525 | <issue_start>username_0: I am using selectable function where when user select a date, it will shows the start and end date in a modal. but the the end date showed is extra one day from the actual selected date. for example, of i click on 1st march, the end date will showed 2nd march. here is my code:
```
select: func... |
2018/03/06 | 643 | 2,704 | <issue_start>username_0: I have an application made with Polymer that I need to automate. The problem is it has a lot of Shadow DOMs.
I'm using FluentAutomation that only knows to work with CSS selectors and some jQuery.
Is there a way to identify the elements inside a Shadow DOMs using CSS selectors?<issue_comment>u... |
2018/03/06 | 2,159 | 6,309 | <issue_start>username_0: i've a docker with redis container
configuration of it
docker-compose.yml
```
# Redis
redis:
image: redis:4.0.6
build:
context: .
dockerfile: dockerfile_redis
volumes:
- "./redis.conf:/usr/local/etc/redis/redis.conf"
ports:
- "6379:6379"
```
dockerfile\_redis
```
C... |
2018/03/06 | 385 | 1,349 | <issue_start>username_0: I use this code for show pages thumbnails
```
php the_post_thumbnail('thumbnail', array('class' = 'img-responsive')); ?>
```
but images crop from 1290px\*400px to 150px\*150px
I add the following code to functions.php but problem not resolved
```
function remove_image_size_attributes( $htm... |
2018/03/06 | 427 | 1,467 | <issue_start>username_0: I want to use CSS vars the first time and am doing that
```
#circle_1 {
width: 50px;
height: 50px;
width: var(--size_1);
height: var(--size_1);
}
```
and fill it with JS like so
```
var input_1 = document.querySelector("#groesse_1");
var circle_1 = document.querySelector("#circle_1... |
2018/03/06 | 491 | 1,662 | <issue_start>username_0: Pseudo-code:
```
struct Time {
// constructor from zero
constexpr T(const int i)
: m_(i) {
static_assert(i == 0, "Can only construct from zero");
}
// other constructors from seconds, microseconds, etc.
int m_{};
};
int main() {
T t1(0); // co... |
2018/03/06 | 518 | 1,878 | <issue_start>username_0: I'm asking myself : "How could I trigger an IO event to a specific user (like notification when sucess on something)". But on a post request for example I don't have any socket objet.
I want to be able to do this: (should I store the socket object in a cookie? Or there are other possibilities ... |
2018/03/06 | 541 | 1,907 | <issue_start>username_0: I'm trying to check an XML document for two rules via XPath evaluate.
The rules are:
* /root/path1/text()='TABLE1'
* /root/path2/text()='TABLE2'
My code looks like:
```
XPathDocument document = new XPathDocument(myDocument);
XPathNavigator navigator = document.CreateNavigator();
XmlNamespac... |
2018/03/06 | 399 | 1,639 | <issue_start>username_0: in my FE-User-Registration Extension i want to add a 2nd Password-Field, just for checking the spelling of the first password entered.
I don't like to add an extra field for this in the database, because it's only for first entering the password and changing the password purpose.
If the norma... |
2018/03/06 | 443 | 1,378 | <issue_start>username_0: With AngularJS this worked fine:
```
```
but with Angular5 it doesn't. How to do it with Angular5?<issue_comment>username_1: ```
...
```
or
```
...
```
[Docs](https://angular.io/api/common/NgStyle#ngstyle)
How to use ngStyle
>
>
> ```
> ...
>
> ...
>
> ...
>
> ```
>
>
Upvotes: ... |
2018/03/06 | 1,025 | 3,948 | <issue_start>username_0: i'm facing a problem that seems very weird.
i want to loop through all files in a directory to count the number of file (to do a For i=1 to number file) ((OK), to open each one of them (OK) and copy a range to a mastersheet.
my problem is that i want that after each file, my paste destination ... |
2018/03/06 | 1,196 | 4,372 | <issue_start>username_0: I am trying to create an auto shutdown policy with Powershell for my Azure VM, but keep running into this error:
>
> New-AzureRmResource : MissingRequiredProperty : Missing required property TargetResourceId.
> At C:\Users\home\Documents\CreateAzureVM.ps1:167 char:1
> + New-AzureRmResource ... |
2018/03/06 | 1,133 | 4,062 | <issue_start>username_0: I've tried to use QueryStringQueryBuilder in a very simple case, but I dont understand why I get another result than the result I get from Kibana. What am I doing wrong?
Kibana:
```
GET .../_search
{
"query": {
"query_string" : {
"query" : "\"this is a query\"",
... |
2018/03/06 | 610 | 2,502 | <issue_start>username_0: What is the standard way to handle web.config files during major upgrade.I'm aware how the unversioned files are handled during upgrade,the file will not be replaced if the file has been modified by the user.
Is there a way to deal with the scenario where in there are new entries added to conf... |
2018/03/06 | 1,521 | 5,332 | <issue_start>username_0: So there is this 3rd party website that contains a button that, when clicked, sends a GET request and performs some server-side task which updates the logged in user's data into its database. This desired task has to be performed on every calendar day. Is there an alternative way to making this... |
2018/03/06 | 327 | 1,194 | <issue_start>username_0: I am executing some java script in an if/else block that prints some tags/content to the html file using document.write() function. This piece of javascript is within the "script" tag just before I end the "body" tag. But I see a very weird behaviour: when my if() condition satisfies, I see som... |
2018/03/06 | 1,333 | 4,178 | <issue_start>username_0: I'm entirely new to COBOL. I have a small COBOL program and a small C file. According to this article: <https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.ceea400/sdtpt.htm>
the equivalent of a C signed integer in COBOL is
```
PIC S9(9) USAGE IS BINARY
```
I want t... |
2018/03/06 | 903 | 3,682 | <issue_start>username_0: We have the following situation:
A Stored Procedure is invoked by a middleware and is given a XML file as parameter. The Procedure then parses the XML file and inserts values into temporary tables inside a loop. After looping, the values inside the temporary tables are inserted into physical ... |
2018/03/06 | 504 | 1,935 | <issue_start>username_0: Is there a way in **dart language** to keep the maximum input length fixed in `TextFormField`?<issue_comment>username_1: Use `inputFormatters` property. The following code would limit the textFormField to 42 in length :
```
new TextFormField(
inputFormatters: [
new LengthLimitingTextInp... |
2018/03/06 | 1,497 | 5,458 | <issue_start>username_0: I'm tying to learn Java. I need to make a method called reverse that gets a string and return a string (but in reverse order). Here is what i tried. Can you fix the code and explain what I'm doing wrong? Please also give me some advice about a good start in Java. Thank you!
```
public class Te... |
2018/03/06 | 1,044 | 4,092 | <issue_start>username_0: I have some issue understanding the `jQuery().change()` behavior.
The HTML is basically a lot of input elements - checkboxes ( each with ID of `id^='o99-post-visible-XXX'` - and they are pure CSS images as Checkboxes, but this is irrelevant ) and I have another checkbox (`"#o99-check-all"`) to... |
2018/03/06 | 383 | 1,626 | <issue_start>username_0: I'm currently working on a stored procedure that will perform a couple of inserts into a database table and I want to test and see if it can return the total rows affected in a way I'd like it to. And I'm calling this stored procedure from my C# .NET code inside a transactionscope.
My question... |
2018/03/06 | 801 | 2,983 | <issue_start>username_0: I have used following to upload image and save it in server and database. Now I want to write a controller to update the uploaded image. how to do it???
controller
```
public function actionInvitfile()
{
$model = new Applicants();
$imgName = Yii::$app->user->identity->id;
if(... |
2018/03/06 | 597 | 2,218 | <issue_start>username_0: Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
>
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
>
>
><issue_comment>username_1: I think this can work
```
publi... |
2018/03/06 | 601 | 2,258 | <issue_start>username_0: When creating Vue2 instance, how can I inject configuration and make it accessible to child component (except assigning it to window object)?
```
const config = axios.get('./run-configuration.json')
new Vue({
el: '#app',
template: '',
components: {
App
}
})
```<issue_comment>user... |
2018/03/06 | 902 | 3,371 | <issue_start>username_0: I'm creating a Grails app following this tutorial: <http://grails.asia/grails-tutorial-for-beginners-display-data-from-the-database>
When I try to display data from database though, nothing happens. Below is my controller code:
```
def index(){
def users = User.list();
[users:... |
2018/03/06 | 1,183 | 4,085 | <issue_start>username_0: I'm trying to get into Optional issues in Java 8. I've written an extremely simple program, consisting of one class and `main()` method.
I expect the output data to be `[aaa, DDD, ccc]`. However, I'm getting `[aaa, bbb, ccc]`. But if change to `s = new TestClass("DDD")` line to the commented o... |
2018/03/06 | 1,453 | 5,525 | <issue_start>username_0: I can convert a `String` to a `Date`:
```
private static final SimpleDateFormat CARD_DATE_FORMAT = new SimpleDateFormat("yyMMdd", Locale.getDefault());
public static Date toCardDateFormat(String date){
try {
return CARD_DATE_FORMAT.parse(date);
} catch (ParseException e) {
... |
2018/03/06 | 803 | 2,758 | <issue_start>username_0: I have added code to add an asterik after a text (with css classes in it). When the code runs it displays the code instead of the html being processed.
Code:
```
jQuery(document).ready(function(){
document.getElementById("billing_state_field").getElementsByTagName('label')[0].after("\*"))... |
2018/03/06 | 922 | 3,092 | <issue_start>username_0: I want to use Ruby httpclient to make requests. I tried to implement this code:
```
def submit!
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = HTTPClient.new(url)
request.basic_auth('username', 'pass')
... |
2018/03/06 | 734 | 2,542 | <issue_start>username_0: ```
id class count day
1 2 5 5
2 2 4 5
3 2 4 5
3 2 4 5
4 2 5 3
4 1 5 3
4 2 5 3
```
So I have a query for finding all duplicates based on multiple columns, however, this also returns i... |
2018/03/06 | 2,086 | 6,042 | <issue_start>username_0: I am trying to get something like this working - <https://www.acnestudios.com/nl/en/avalon-double/12F163-1G2.html?categid=woman-coats-jackets>.
The idea is to have the product description sticky, until the end of the image/images are scrolled and then stay in that container, at the bottom unti... |
2018/03/06 | 1,223 | 4,580 | <issue_start>username_0: I am writing a python script using BeautifulSoup. I need to scrape a website and count unique links ignoring the links starting with '#'.
Example if the following links exist on a webpage:
<https://www.stackoverflow.com/questions>
<https://www.stackoverflow.com/foo>
<https://www.cnn.com/>
... |
2018/03/06 | 605 | 2,157 | <issue_start>username_0: I have a question about some python dictionary behavior i haven't seen yet. (i am using python3.6)
I have a dictionary **first\_dict** containing two keys "kk" and "aa", both linked to a list. Then i make a new dict namly **second\_dict**. Now comes the strange thing, whenever i make a variabl... |
2018/03/06 | 2,001 | 6,838 | <issue_start>username_0: What most people are concerned about is what happens if they receive a byte array with data and they want to cast the array to a struct pointer - this can violate strict aliasing rules. I'm not sure whether initializing an empty byte array of sufficient size, casting it to a struct pointer, and... |
2018/03/06 | 2,317 | 10,398 | <issue_start>username_0: From this page I am logging out. It is logging out properly but when back button is pressed it gets logged in again. i have given a proper intent function but yet it is not acting as per my commands. Please advice me a solution for this problem.
>
> WELCOME PAGE CODE:-
>
>
>
```
public c... |
2018/03/06 | 572 | 2,202 | <issue_start>username_0: I'm self studying firestore and I could not figure out a way to only allow a user to update, delete or read only the collections added by them.
This is the structure I'm using:

I use firebase auth for user handing. I save t... |
2018/03/06 | 558 | 2,046 | <issue_start>username_0: I'm currently using RStudio for doing text mining on Support tickets, clustering them by their description (freetext). For this, I compare kmeans to EM algorithm. I prepared the data with the tm package, and now I try do apply clustering algorithms to the data matrix.
With the kmeans() functio... |
2018/03/06 | 322 | 1,178 | <issue_start>username_0: Consider I want to rewrite a URL from `/register` to `/tenant/register`, where:-
* `/register` does not have an actual view, as it only serve to make URL nicer.
* `/tenant/register` is the actual view, with a view element.
Is it possible to rewrite URL using ? So that it can sort of have a v... |
2018/03/06 | 757 | 3,079 | <issue_start>username_0: i need some help in rendering json inside jsx in react native..The response i'm getting from server is object so how do i loop through them?I'm getting a valid response from server , but i'm getting the issue on map method because i think map method work only on arrays.So please help me to do t... |
2018/03/06 | 1,902 | 7,048 | <issue_start>username_0: have a to do list task.
there are three components. class TodoAppComponent, class TodoFormComponent and class TodoListComponent.
inspect my doneTask() in TodoListComponent please.
when I add a task I need to cross the row when state of checkbox change to 'checked'
it seems doesn't work properly... |
2018/03/06 | 1,183 | 4,691 | <issue_start>username_0: I have an adapter like this
```
if(modelSalesAct.getStatus().equals("2"))
{
viewHolder.ivStatus.setImageResource(R.drawable.ic_black);
}
else
if(modelSalesAct.getStatus().equals("3")||modelSalesAct.getStatus().equals("4"))
{
viewHolder.ivStatus.setImageResou... |
2018/03/06 | 1,025 | 3,125 | <issue_start>username_0: I have a query that uses the row\_number function. I want to return all rows greater than 1 but also include 1.
When I try
```
row_number()over(partition by .. order by)rn
...rn > 1
```
I get rn = 2, 3, 4...
If I do
```
rn >= 1
```
I get rows that only = 1 along with rows greater than 1... |
2018/03/06 | 494 | 1,601 | <issue_start>username_0: While building angular reactive form it occurred to me that I should capitalize first letter on each input, so in my **css**, I wrote
```
input {
text-transform: capitalize;
}
```
But in my html I have input for email and don't want to style that, how can I exclude that?
my html... |
2018/03/06 | 773 | 2,693 | <issue_start>username_0: I am trying to make a website that would have http functions including http post functions, and also web sockets (such as signalR). I am trying to host this website on an ubuntu server using nginx. Generally the set up is something like this on nginx:
```
server {
listen 80;
location / {
... |
2018/03/06 | 834 | 2,713 | <issue_start>username_0: I am trying to check whether a key is in a map(Java) and am a bit confused about why one of my solutions works and the other doesn't.
In particular: when I compare `myMap.get(s)` directly to `null` it works but when I first save `myMap.get(s)` to a variable (`number`) and then compare to `nul... |
2018/03/06 | 2,902 | 9,614 | <issue_start>username_0: I need to open phone app when I click on the callButton and to internt a map location when I click mapButton, PS: the adapter got filled correctly but it did nothing when I click on any objects
here is my Adapter codes
```
package com.voyage_eg.voyage;
import android.content.Context;
import ... |
2018/03/06 | 541 | 1,805 | <issue_start>username_0: I am getting the below error while calling Watson Visual Recognition API through Java. Any help will be highly appreciated.
```
VisualRecognition service = new VisualRecognition(VisualRecognition.VERSION_DATE_2016_05_20);
service.setApiKey("api_key");
InputStream imagesSt... |
2018/03/06 | 390 | 1,276 | <issue_start>username_0: I'm having matching a user input with an element in the Array. "Index === lengthOfBoat" doesn't output "Works", even though the user input is matching a number in the Array. If I use a ">" sign, the console outputs "Works".
Thought this should be pretty simple.
What am i doing wrong?
```
var... |
2018/03/06 | 590 | 2,194 | <issue_start>username_0: I am using the tensorflow object detection api from <https://github.com/tensorflow/models> and I am trying to make an object detection program using open cv with tensorflow. When the code reaches at line 30 (see code below), the program will get an error and will print:
>
> Traceback (most re... |
2018/03/06 | 616 | 2,081 | <issue_start>username_0: I want to just clarify that following is a MISRA violation or not before using it in my code. I am calling one function from a file as under:
```
(void)Dem_SetEventStatus((Dem_EventIdType)(dtcFlt_t.dtc[dtcIndex]),DEM_EVENT_STATUS_FAILED);
```
Here `Dem_SetEventStatus` is defined in one heade... |
2018/03/06 | 366 | 1,292 | <issue_start>username_0: I want to carry out a symbolic regression with R. The rgp package is the most recommended package on the internet but it was removed from CRAN.
<https://cran.r-project.org/web/packages/rgp/index.html>
Does anybody know some other equivalent packages in R?<issue_comment>username_1: Ok, so you ... |
2018/03/06 | 295 | 882 | <issue_start>username_0: Was the cca function deprecated in R's ade4 package?
```
library(ade4)
cca(mammals, environment)
```
outputs
```
could not find function "cca"
```
I can't find any documentation on this error.<issue_comment>username_1: There is no `cca` function in `ade4` package version 1.7-10. However, ... |
2018/03/06 | 1,331 | 4,908 | <issue_start>username_0: I have follow code
```
interface Drivable {
}
@Component
class Bmw implements Drivable {
}
@Component
class Mercedes implements Drivable {
}
class Driver {
private Drivable drivable;
public Driver(Drivable drivable) {
this.drivable = drivable;
}
}
```
And Spring Ja... |
2018/03/06 | 334 | 1,150 | <issue_start>username_0: ```
const { finalScore1, finalScore2, finalScore3, finalScore4, finalScore5, finalScore6,
finalScore7, finalScore8, finalScore9, finalScore10, finalScore11, finalScore12,
finalScore13, finalScore14, finalScore15, finalScore16, finalScore17, finalScore18
} = this.state
```
See... |
2018/03/06 | 258 | 962 | <issue_start>username_0: I am trying Jgit and Egit to raise PR using deploy key on github.com but I am unable to find a way to do it. There are no relevant documents present.
Can somebody point me to documentation or suggest some other java library to do it?<issue_comment>username_1: You could use `this.state["finalSco... |
2018/03/06 | 986 | 3,548 | <issue_start>username_0: I'm trying to use a custom view I created.
I use instantiation from nib, but it causes an infinite loop which I'm not sure how to fix. Any idea?
Here is the image of the run result:
[](https://i.stack.imgur.com/OE8Wk.png)
... |
2018/03/06 | 618 | 2,458 | <issue_start>username_0: If in a dataset we have missing values in both categorical and continuous variables, how can I deal with them by replacing with mode for the categorical variable and mean for the continuous variable?<issue_comment>username_1: It is not clear from your example (please next time provide the whole... |
2018/03/06 | 538 | 1,716 | <issue_start>username_0: In **demo.html**
```
{{ form1.as\_p }}
| Test Case | File Name | Coverage |
| --- | --- | --- |
{% for key, value in d.items %}
| {{ key }} |
{% for k,v in value.items%}
{% if forloop.counter <= count1 %}
| | {{ k }} | {{ v }} |
{% endif %}
{% endfor %}
{% endfor %}
```
In *... |
2018/03/06 | 457 | 1,217 | <issue_start>username_0: I retrieved the object type data from the firestore and stored in a variable document
```
{ Invite1: { Amount: 25, PhoneNumber: 917995954482 },
Invite2: { Amount: 25, PhoneNumber: 918179405940 },
Invite3: { Amount: 25, PhoneNumber: 918179441493 },
Invite4: { Amount: 25, PhoneNumber: 9183... |
2018/03/06 | 300 | 906 | <issue_start>username_0: My website is running behind an AWS Classic Load Balancer. It has some scaling policies and it launches some new EC2 instances when it has to.
Is it possible to have the range of public IP addresses that will be used for the EC2 instances when they will be launched by the load balancer ?<issue... |
2018/03/06 | 848 | 3,529 | <issue_start>username_0: There is an app that wants to authenticate with my users using oAuth2.
So they open a window, with the `authorize` URL, and parameters (such as redirect uri)
Like: <https://my-website.com/api/authLauncherauthorize?redirect=SOME_URI>
Now I have my own firebase-login, and when the user logs in... |
2018/03/06 | 811 | 2,714 | <issue_start>username_0: I am having two lists:
```
ListA:
[
{
Id = 1,
Name = "A",
Summary = ""
},
{
Id = 2,
Name = "B",
Summary = ""
}
]
ListB:
[
{
Id = 1,
Value = "SomeThing"
},
{
Id = 2,
Value = "EveryThing"
}
]
```
I want to join that tw... |
2018/03/06 | 726 | 2,650 | <issue_start>username_0: here is the php code am trying ,it only works on one user and i dont know to use the user type code.
```
php
class Admin{
/// User Login
public function AdminlogIn($user,$password)
{
$con = new mysqli("localhost","root","","animal");
$sql = "SELECT ... |
2018/03/06 | 560 | 2,031 | <issue_start>username_0: I writing algorithm for converting roman to integer (Code below) and I got error 'too many parameters for this function', but I need two parameters for my comparison. Does someone know how fix my code?
```
#include
using namespace std;
int main() {
class Solution {
private:
struct symbol ... |
2018/03/06 | 503 | 1,468 | <issue_start>username_0: How can I replace this
```
String str = "KMMH12DE1433";
String pattern = "^[a-z]{2}([0-9]{2})[a-z]{1,2}([0-9]{4})$";
String str2 = str.replaceAll(pattern, "repl");
Log.e("Founded_words2",str2);
```
What I got: KMMH12DE1433
What I want: MH12DE1433<issue_comment>username_1: If you just want ... |
2018/03/06 | 1,997 | 8,163 | <issue_start>username_0: I added a callback to decay the learning rate:
```
keras.callbacks.ReduceLROnPlateau(monitor='val_loss', factor=0.5, patience=100,
verbose=0, mode='auto',epsilon=0.00002, cooldown=20, min_lr=0)
```
Here is my tensorboard callback:
```
keras.callbacks.Ten... |
2018/03/06 | 1,153 | 4,410 | <issue_start>username_0: I'm new to Spring and trying to do a rest request with RestTemplate. The Java code should do the same as below curl command:
```
curl --data "name=feature&color=#5843AD" --header "PRIVATE-TOKEN: xyz" "https://someserver.com/api/v3/projects/1/labels"
```
But the server rejects the RestTemplat... |
2018/03/06 | 805 | 2,972 | <issue_start>username_0: I have following association with user and semester. And I created user table with semester id as foreign key. So user is not created if semester id not present. But semester id is optional in the registration form.
```
class User < ApplicationRecord
belongs_to :semester
end
class Semester ... |
2018/03/06 | 549 | 2,064 | <issue_start>username_0: I am new to machine learning and I just finished implementing my first method (`Random Forests`). Now I want to analyze how accurate this method actually is. The first performance metric that I used was to calculate how many correct predictions were made using the following formula:
`accuracy ... |
2018/03/06 | 455 | 1,781 | <issue_start>username_0: Application package name `com.harish` signatures do not match the previously installed version; ignoring!
My app was there in `playstore` with version 1.0, now I need to update the app with version 1.1.
When I did migration like this, its failing and giving below error.
**Step1:**
Freshly in... |
2018/03/06 | 2,335 | 6,011 | <issue_start>username_0: I am using **readxl** library to read many excel worksheets in the same excel workbook (called **data.xlsx**) with the following format:
Data starts in row 3.
```
row1
row2
companyName 1980 1981 1982 ... 2016
company1 5 6 7 8
company2 10 20 ... |
2018/03/06 | 845 | 2,653 | <issue_start>username_0: I would like to "draw" a scalable square root sign with CSS; my current attempt is:
```css
.root {
display: inline-block;
vertical-align: middle;
}
.radix1 {
display: inline-block;
width: 0.2em;
height: 1.5ex;
vertical-align: bottom;
border-top: 0.2ex solid;
border-ri... |