date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/16 | 762 | 2,917 | <issue_start>username_0: Im trying to change between two colors when I click on the event listener using JavaScript. When I trigger the `click` event, it changes the color to black. When I click on it again, I want it to change back to the default, which is white. I think that an if statement is involved, but Im not su... |
2018/03/16 | 762 | 2,315 | <issue_start>username_0: **CodeIgniter / PHP / MYSQL**
I have Two Tables with this structure.
1. COUNTRY : id, country\_name (1,Indonesia,2,India)
2. STATE : id, country\_id, state\_name (1,1,Sulawesi Selatan) (2,1,Sulawesi Tengah) (3,1,Sumatera Utara) (4,2,Gujarat)
I want to make search with multiple tables.
For E... |
2018/03/16 | 668 | 2,117 | <issue_start>username_0: I am trying to implement max drawdown for my loss function using code with the format of:
```
x = cumulative product of returns tensor
z = cumulative max of x
g = minimum of z / x
```
But I'm stuck on how to calculate cumulative maximum of `x` in Tensorflow. For example: given an array `[0,2... |
2018/03/16 | 711 | 2,260 | <issue_start>username_0: Here I am searching for a number say 4, Although it is presented in my array num[] but still not founded by using if condition . If I remove else condition it is prints founded..quite confusing for me that why this happening.
```
int n=0;
Scanner sc= new Scanner(System.in);
int num[]={1,2,3,4,... |
2018/03/16 | 811 | 2,448 | <issue_start>username_0: I was hoping this would o/p the last letter of my argv[1]:
```
$ cat input_string_fu.c
#include
int main(int argc, char \*argv[])
{
if (argc !=2){
printf("Error: Invalid syntax\n");
return 1;
};
int a;
a = strlen(argv[1]);
if (a >= 2){
printf("Last char of %s : %c\n", argv[1], arg... |
2018/03/16 | 1,114 | 3,798 | <issue_start>username_0: I'm having trouble casting a a response from a valueset expansion to the valueset resource object in c#.
I'm currently using RestSharp, the REST call is successful, and the following outputs the expected JSON.
```
IRestResponse response = client.Execute(request);
var result = JsonConvert.Dese... |
2018/03/16 | 414 | 1,220 | <issue_start>username_0: This is my code
```
SELECT IDENTITY(INT, 1, 2) AS Orderid , CODE , [DATE] , [TIME] INTO #Temp
FROM Table1 ORDER BY CODE ,[DATE],[TIME]
SELECT * FROM #Temp
```
Output from this code is here:

But I need the following ou... |
2018/03/16 | 631 | 1,806 | <issue_start>username_0: stuck with create dbf file in python3 with dbf lib.
im tried this -
```
import dbf
Tbl = dbf.Table( 'sample.dbf', 'ID N(6,0); FCODE C(10)')
Tbl.open('read-write')
Tbl.append()
with Tbl.last_record as rec:
rec.ID = 5
rec.FCODE = 'GA24850000'
```
and have next error:
```
Tra... |
2018/03/16 | 3,346 | 15,809 | <issue_start>username_0: I have created an Android app in Android Studio and linked it with Firebase Realtime database. I have used Firebase's Authentication by phone and Notification Services to send OTP to the CUG phone no. and then verify it(The code is given below).
```
public class PhoneLogin extends AppCompatAct... |
2018/03/16 | 877 | 4,233 | <issue_start>username_0: Can someone please help me how to get only specific file extension(for example: .sql) changed from svn command line between two dates
Following command gets all files
```
svn diff -r{2017-10-12}:{2017-10-28} --summarize https://svn.blah.com/../ > output.txt
```<issue_comment>username_1: No,... |
2018/03/16 | 914 | 3,319 | <issue_start>username_0: I am unable to import pandas profiling in jupyter notebook. Could someone please tell me whats wrong.
[](https://i.stack.imgur.com/o1L7F.png)<issue_comment>username_1: `conda install -c conda-forge pandas-profiling` Try this co... |
2018/03/16 | 2,363 | 6,791 | <issue_start>username_0: I'm debugging some recursive code via Codeception and it's only showing the last 10 calls, so I don't know what the path through the code is. Xdebug is set to show as much information as possible so, I don't think it's that.
I haven't yet found any configuration option to increase the number o... |
2018/03/16 | 1,670 | 7,167 | <issue_start>username_0: so i have this **button** to take a picture contains Text :
```
takePic.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent,100);
... |
2018/03/16 | 728 | 2,502 | <issue_start>username_0: There are Code A、Code B and Code C.
1. Is Code A equivalent Code B ?
2. Is Code A equivalent Code C ?
**Code A**
```
if (IsRegistered(myContext) ) {
}
```
**Code B**
```
if (IsRegistered(myContext) == true) {
}
```
**Code C**
```
if (IsRegistered(myContext) === true) {
}
```
**F... |
2018/03/16 | 912 | 3,224 | <issue_start>username_0: I am posting my form data to A controller but when I post data I am not getting in the controller when I call `print_r($_POST);` its returning null array I don't know what I have missed
Please let me know what inputs you want from my side
```
var data2 = [];
data2['user_firstname'] = user_f... |
2018/03/16 | 572 | 1,799 | <issue_start>username_0: I am updating a table which has 4 columns together as primary key.
```
|Col1|Col2|Col3|Col4|val|
| 1| 2| 3| 4|234|
```
Col 1-4 make primary key
I need to update Col1 in some rows. But some rows already have the value which i want to update. Thus when i run the query it gives :
```... |
2018/03/16 | 826 | 3,373 | <issue_start>username_0: When creating a react app, service worker is invoked by default. Why service worker is used? What is the reason for default invoking?<issue_comment>username_1: You may not need a service worker for your application. If you are creating a project with create-react-app it is invoked by default
S... |
2018/03/16 | 989 | 3,750 | <issue_start>username_0: I've come across a peculiar focusing issue. I have created the following "search" program:
1. It runs in the background.
2. When you double-tap the `Ctrl` key it becomes visible.
3. You can type in the textbox because the form has focus.
4. If the form loses focus (I click on my desktop, for e... |
2018/03/16 | 662 | 1,698 | <issue_start>username_0: ```js
const uniqBy = (arr, fn) => {
let res = []
const hash = new Set()
for (let i = 0; i < arr.length; i++) {
const foo = typeof fn === 'function' ? fn(arr[i]) : arr[i][fn]
if (!hash.has(foo)) {
res.push(arr[i])
hash.add(foo)
}
}
return res
}
cons... |
2018/03/16 | 2,991 | 7,828 | <issue_start>username_0: I started to use Rcpp and be able to speed up R-code incredibly. However changing names of vector elements (like 'v.attr("names")=X' or 'v.names()=X') is very slow in my hand. Is there any solutions to improve? Plese see attached example.
sample of rcpp; test\_names.cpp
```
#include
using na... |
2018/03/16 | 981 | 3,043 | <issue_start>username_0: I'm having a hard time understanding why the output for various metrics on my models differs when I use h2o.
For example, if I use 'h2o.grid' then the logloss measure is *different* when I look at the mean model$cross\_validation\_metrics\_summary. It is the same as model$cross\_validation\_m... |
2018/03/16 | 238 | 889 | <issue_start>username_0: I have developed a custom skill, which is working well with Alexa test tool, but even after enabling the skill on Alexa app, it is not working with reverb.
PS:
* I'm running skill server locally on my computer with the help of reverse proxy.
* skill is not published yet.
* I've logged in with... |
2018/03/16 | 321 | 1,188 | <issue_start>username_0: Hi am a beginner in javascript and to programming.
i just made a live conversation using html,css and javascript.
I can't access the enter key in the button tag .
```
function typo(){
var currentText = document.getElementById("demo").innerHTML;
enterkey();
var x = '<p class=chatbox>' + do... |
2018/03/16 | 822 | 3,338 | <issue_start>username_0: I want to get the value of all text-area boxes and store into database on click of submit button.
Multiple text-area's are appearing on click of add button.
I am using nodejs, express and mongodb.
I have one select field and two textarea's. i am able to post the first values of textarea's on ... |
2018/03/16 | 208 | 738 | <issue_start>username_0: I'm sending a `HTML` form and `javascript` array using AJAX post method. But I can't get my data in the `PHP` file.
```
$.post("addOrder.php", {
"form": $("#placeOrderForm").serialize(),
"array": array
}, function(responce) {});
```<issue_comment>username_1: Better use ... |
2018/03/16 | 1,343 | 4,165 | <issue_start>username_0: I'm building a website from `CSS` and `HTML`. I'm up to the point of adding a background image to my website. The trouble is, the image isn't showing up as the website's background.
My CSS code:
```css
.bg {
background: url('https://ak9.picdn.net/shutterstock/videos/12047219/thumb/10.jpg?i... |
2018/03/16 | 423 | 1,197 | <issue_start>username_0: I am using `File` class for getting extention of image url.
```
File::extension($image_path)
```
But my image URL is `example.com/images/new.png?v=21212154`
It returns `png?v=21212154`
How to get the value `png` only?<issue_comment>username_1: You should try this way:
```
$url = 'example.... |
2018/03/16 | 424 | 1,268 | <issue_start>username_0: I want to to add 2 Section Headers in Recycler View..
I want to develop Header inside a Header.
I dont want to use Expandable view.I need it in Scroll-able view.
I want to show Tour Name as 1st Header.
Under that i want to show Location as 2nd Header
<i... |
2018/03/16 | 512 | 1,768 | <issue_start>username_0: I have following data:
**Table**: PriceTable
```
Price Applicable1 Applicable2 Percentage
--------------------------------------------
100 Yes Yes 0.10
200 Yes No 0.50
300 No Yes 0.30
500 Yes Yes 0.40
``... |
2018/03/16 | 374 | 1,385 | <issue_start>username_0: I tried to build a image upload tool, every child component have there own upload button.
Is there the way to let the upload function control by parent component?
following the code:
Child Component
```
class Child extends Component{
constructor(props){
super(props)
this.state={
ima... |
2018/03/16 | 3,629 | 8,463 | <issue_start>username_0: Suppose I have a Pandas Series `s` whose values sum to `1` and whose values are also all greater than or equal to `0`. I need to subtract a constant from all values such that the sum of the new Series is equal to `0.6`. The catch is, when I subtract this constant, the values never end up less t... |
2018/03/16 | 2,149 | 7,257 | <issue_start>username_0: I'm using ui-bootstrap pagination, I use $index value to add a comment on every row it is working fine but on 2nd page and 3rd and so on $index value starts from 0 again. how to read index value on 2nd 3rd ... pages,
why it is taking from 0th index again in page 2 and so on. i'm passing index ... |
2018/03/16 | 1,494 | 4,936 | <issue_start>username_0: Here is my object,
```
{'name': 'Lipika', 'monday': 1}
{'name': 'Ram', 'monday': 0}
{'name': 'Lipika', 'tuesday': 1}
{'name': 'Ram', 'tuesday': 0}
```
**Here is the two condition**
I want to check whether Lipika is present in the DB, If not present i should create his name in the User Coll... |
2018/03/16 | 1,777 | 6,911 | <issue_start>username_0: I am getting error in my codeignitor application:
>
> Unable to load the requested file: helpers/files\_helper.php
>
>
>
Can you please elaborate where is the issue?
File: autoload.php
```
php
defined('BASEPATH') or exit('No direct script access allowed');
/*
| ------------------------... |
2018/03/16 | 461 | 1,594 | <issue_start>username_0: The question is very simple how to get Apple search ads popularity index for any given keyword?
It's possible since i see a lot of ASO tools provide such metric. But there are not any open API documentation how to get this data.<issue_comment>username_1: There is no helper call `files_helper`.... |
2018/03/16 | 480 | 1,570 | <issue_start>username_0: how do i add up all the strings together in a list into a big string?
For example:
```
alist = ["Hi","How are YOU","THANK YOU"]
```
How do i make it into:
```
alist = ["Hi,How are YOU, THANK YOU"]
```<issue_comment>username_1: There is no helper call `files_helper`. Use [**`file`**](https:... |
2018/03/16 | 2,294 | 6,164 | <issue_start>username_0: I have a pandas dataframe as follow:
```
Names Cider Juice Subtotal (Cider) Subtotal (Juice) Total
Richard 13 9 $ 71.5 $ 40.5 $ 112.0
George 7 21 $ 38.5 $ 94.5 $ 133.0
Paul 0 23 $ 0.0 $ 103.... |
2018/03/16 | 1,988 | 5,633 | <issue_start>username_0: I have a table with data. Above the table I have an add button and when clicking that button a form will display. But what I want is to display that form in a popup window to submit when clicking the add button.
How can I do that?
Below I have attached my screenshot.
My table view code:
```... |
2018/03/16 | 463 | 1,768 | <issue_start>username_0: I sent in a PR to a remote repo and discovered I had the commit from a previous PR included is it possible to delete this unwanted commit?<issue_comment>username_1: You can make a `revert` commit for unwanted commits. In this [answer](https://stackoverflow.com/questions/927358/how-to-undo-the-m... |
2018/03/16 | 1,177 | 3,423 | <issue_start>username_0: I have a structure as below, Similarly there could multiple structures with multiple fields.
```
struct A
{
int a;
int b;
char * c;
float d
};
```
Now if I want to print each field of the above struct I need to manually type,
```
cout << A.a << endl;
cout << A.b << endl;
cou... |
2018/03/16 | 360 | 1,261 | <issue_start>username_0: Hi in my reactJS application I use this
```
this.props.history.push("URL");
```
to redirect to another page or to the same page when I want to reload the page.
But I got this error:
```
Hash history cannot PUSH the same path; a new entry will not be added to the history stack
```
how can... |
2018/03/16 | 317 | 1,084 | <issue_start>username_0: After migration to QBS my QML debugging stopped working.
I made sure that:
1. I'm building a debug build, C++ debugging works
2. I've checked "Enable QML Debugging" in qt creator's Project tab
3. I've even tried to add qbs properties manually `Qt.declarative.qmlDebugging:true Qt.quick.qmlDebu... |
2018/03/16 | 1,113 | 4,917 | <issue_start>username_0: I am sitting with a situation where I need to provision EC2 instances with some packages on startup. There are a couple of (enterprise/corporate) constraints that exist:
* I need to provision on top of a specific AMI, which adds enterprisey stuff such as LDAP/AD access and so on
* These change... |
2018/03/16 | 974 | 2,947 | <issue_start>username_0: I'm generating a report in SQL. I had an error of divided by zero. To resolve this error, I used case in SQL query. Now I'm getting a syntax error at 'as'. Is there anyone who can help me to resolve this issue?
```
create procedure dbo.CompanyAverageSales @startdate as varchar(50),@enddate
as... |
2018/03/16 | 1,709 | 6,517 | <issue_start>username_0: I'm working on a third person controller and I'm trying to prevent movement when a raycast in front of the player hits something. Currently when the player collides with a block the blend tree is set to 0 so that it shows the Idle animation. In this case the player appears to be not moving, whi... |
2018/03/16 | 1,270 | 4,658 | <issue_start>username_0: I am using `react-chartjs-2` for visualizing data.
I want to make a nested doughnut chart.
<https://jsfiddle.net/moe2ggrd/152/> this link shows how I want to visualize two different datasets.
Above example shows that if I use `tooltip` to label each data, it creates nested doughnut chart w... |
2018/03/16 | 608 | 2,279 | <issue_start>username_0: I am using the `ref.on()` function to monitor the change in firebase nodes,
but there is a problem, `ref.on()` gives whole database record.
How can I get only those rows/nodes whose state is changed
```
function watch()
{
riderequests.once('value', function(snapshot)
{
aler... |
2018/03/16 | 1,319 | 4,629 | <issue_start>username_0: On this example, the promise that i created works ok.
But the promise from the google api don't work.
It says that the `this.youtube` is undefined
*index.html*
*app.component.html*
```
custom Promise
---
youtube Promise
```
*app.component.ts*
```
import { Component } from '@angular/... |
2018/03/16 | 1,244 | 3,870 | <issue_start>username_0: Using a bash script, I'm trying to iterate through a text file that only has around 700 words, line-by-line, and run a case-insensitive grep search in the current directory using that word on particular files. To break it down, I'm trying to output the following to a file:
>
> 1. Append a new... |
2018/03/16 | 1,133 | 3,441 | <issue_start>username_0: I have two lists, which are like following. I am looking for an output where every row of dat1 will match on complete column in dat, and on the basis of that, I will get the results
```
dat <- data.frame(v=c('apple', 'le123', 'app', 'being', 'aple',"beiling"))
dat1 <- data.frame(v1=c('app','1... |
2018/03/16 | 1,905 | 5,369 | <issue_start>username_0: I'm using ros kinetic and Ubuntu 16.04
I'm trying to do run [this project](https://github.com/erlerobot/gym-gazebo) but not running inside a Docker container.
After, I had done
```
user@user-HP-Pavilion-15-Notebook-PC:~/gym-gazebo/gym_gazebo/envs/installation/catkin_ws$ catkin_make
user@user... |
2018/03/16 | 1,012 | 3,148 | <issue_start>username_0: I'm having an annoying problem with Bootstrap glyphicon icons. The icon has white rectangular background around the image and it looks very ugly when used on top of colored backgrounds. Example of problem:
[](https://i.stack.i... |
2018/03/16 | 728 | 1,939 | <issue_start>username_0: I have the following code:
```
use strict;
use warnings;
my $find = "(.*\s+)(subject:)(.*)(_1)(\s+.*)";
my $replace = '"\nsubject: \t\t$3_2"';
my $var_1 = "Time: 1000-1200 subject: Physic_1 Class: Room A";
my $var_2 = "Time: 1000-1200 subject: Math_1 Class: Room A";
$var_1 =~... |
2018/03/16 | 697 | 2,631 | <issue_start>username_0: I'm making an Chrome Extension which interacts with Gmail API.
Basically it needs to extract email senders from emails that match some keyword.
Problem is that sometimes there are over 10K emails matching this keyword.
I utilize `gapi.client.gmail.users.messages.list` to fetch all emails that m... |
2018/03/16 | 805 | 2,881 | <issue_start>username_0: I have multiple element with the same class. When I use this method below, it does not work.
```
$(".tab-content")[index].addClass("active-content");
```
My code:
HTML:
```
* [Lodon](javascript:;)
* [Paris](javascript:;)
* [Tokyo](javascript:;)
### Lodon
London is the capital of En... |
2018/03/16 | 1,033 | 4,531 | <issue_start>username_0: I have created an activity which is transparent. The background is click-able, anything can be performed on mobile with activity opened. Now I want to set click listeners on the `textview` that is inside the transparent activity. I have searched but didn't find anything.
Here is the code to my... |
2018/03/16 | 173 | 697 | <issue_start>username_0: How can I troubleshoot an apk file which I created with react-native and Android Studio? It works to run in the expo dev environment. Then I ejected it into Android Studio and build an apk and build succeeded. But when I actually try and load the apk in my Samsung S8 phone it says that a proble... |
2018/03/16 | 409 | 2,047 | <issue_start>username_0: This is just a simple way of registering new account credentials. My problem is that whenever I click the save button, the data will be saved twice in the database.
[Sample image of the double entry in the database.](https://i.stack.imgur.com/EgKxc.png)
```
using (SqlConnection con = new Sql... |
2018/03/16 | 991 | 3,942 | <issue_start>username_0: We are using kafka 0.10.2.1. The documentation specifies that a buffer is available to send even if it isn't full-
>
> By default a buffer is available to send immediately even if there is additional unused space in the buffer. However if you want to reduce the number of requests you can set ... |
2018/03/16 | 1,132 | 4,025 | <issue_start>username_0: I am trying to get an local asset image loaded into an ui.Image object. But the ui.Image is an abstract class. I basically have this :
```
import 'dart:ui' as ui;
class MyImage implements ui.Image{
int height;
int width;
MyImage(String file){
}
@override
voi... |
2018/03/16 | 278 | 1,004 | <issue_start>username_0: How to verify Keyboard is opened or not in the screen.That means if Keyboard opened i have to hide or else have to open keyboard.
Using Appium Version : 4.1.0
```
io.appium
java-client
4.1.0
```<issue_comment>username_1: Try below the snippet to identify that Soft Keyboard is opened or close... |
2018/03/16 | 321 | 1,328 | <issue_start>username_0: In hdfs sink connector, I need to configure key and value converter at topic level i.e. different topic using different converter . Is it possible ?<issue_comment>username_1: You just need to create different worker config files for the topics you'd like to use different key/value converters.
... |
2018/03/16 | 517 | 1,865 | <issue_start>username_0: // Add Images
var aspect\_ratio = '';
var itemImagesHtml = '';
itemImagesHtml += ' 0) {
aspect\_ratio = images[0]['width'] / images[0]['height'];
itemImagesHtml += 1 / aspect\_ratio \* 100;
} else {
itemImagesHtml += 100;
}
itemImagesHtml += '%;">';
itemImagesHtml += '';
itemImagesHt... |
2018/03/16 | 881 | 2,895 | <issue_start>username_0: I am storing all of my items into lines in a text file like so, with the ID at the start
```
1/item name/content/etc
2/item name/content/etc
3/item name/content/etc
4/item name/content/etc
```
This method of storage is for a simple script we are using on a game that is editable by the differ... |
2018/03/16 | 988 | 3,099 | <issue_start>username_0: I'm trying select the results of a one-to-many relation and get the results in multiple columns. My tables look like:
Table users:
```
+----+----------+
| id | user |
+----+----------+
| 1 | jenny |
| 2 | chris |
| 3 | harry |
+----+----------+
```
Table locations:
... |
2018/03/16 | 574 | 1,832 | <issue_start>username_0: ```
scope :created_after, ->(start_time,end_time) { where("start_time > ? and end_time ", start_time,end_time) }
</code
```
I want to add if condition if start time present then only `start_time` query run if `end_time` then its query run<issue_comment>username_1: You need to use `file()` flag... |
2018/03/16 | 823 | 2,204 | <issue_start>username_0: I have a list of dictionary items
```
[{'x': 0, 'y': 0}, {'x': 1, 'y': 0}, {'x': 2, 'y': 2}]
```
I want to have an array of "array of dictionaries" with all the maximum permutation order of the list for example for the above array it would be (3 factorial ways)
```
[[{'x': 0, 'y': 0}, {'x':... |
2018/03/16 | 768 | 2,495 | <issue_start>username_0: I have setup my navigation menu from a ViewComposer (see laravel view composers: <https://laravel.com/docs/5.6/views#view-composers>) like this
```
View::composer('partials.nav', function ($view) {
$view->with('menu', Nav::all());
});
```
What I need is that from some con... |
2018/03/16 | 402 | 1,326 | <issue_start>username_0: i am trying to update a table column which same column from same table select.
Here is the code (updated)
```
public function UpdateStockIn($id, $subUnitValue) {
$query = "UPDATE BRAND_LIST SET CURRENT_STOCK_BOTTLE = (SELECT CURRENT_STOCK_BOTTLE FROM BRAND_LIST WHERE ID = ?) + '.$subU... |
2018/03/16 | 334 | 963 | <issue_start>username_0: Can any one please explian me the below bteq code.
Is this script valid?
```
exec 1> $CODE/edlr2/logs/AGP_MBR_BTEQ_CSA_MBR_STG_LOAD_$(date +"%Y%m%d_%H%M%S").log 2>&1`echo "script file =" $0 PARM_FILE=$1 echo "parm file= "$PARM_FILE.parm . $CODE/edlr2/scripts/$PARM_FILE.parm select name from c... |
2018/03/16 | 1,011 | 4,463 | <issue_start>username_0: I want to send multiple checkbox values to Firebase database. I took three Checkboxes in XML and a Button. I want to store selected checkbox text to Firebase when the Button is clicked and go to another Activity. This is my code, but it isn't working.
```
mFirstCheckBox = findViewById(R.id... |
2018/03/16 | 578 | 1,964 | <issue_start>username_0: I cant find this option in *Unity 2017.3*
[](https://i.stack.imgur.com/XSAtb.png)
[](https://i.stack.imgur.com/WzNlx.png)
[ == 'a0':
L0[1] = 'x'
print('\n')
all()
```
100 times, then even another 100 if I want to add a way to delete the 'x',
is there any way to shorten that process using the range ... |
2018/03/16 | 716 | 2,816 | <issue_start>username_0: I am very new to React and TypeScript. I am developing a web page in Visual Studio 2017 where I have a search component which I would like to use in my home component. But after importing search into my home component, I get a compile time error saying:
```
Type {} is not assignable to type 'I... |
2018/03/16 | 634 | 2,300 | <issue_start>username_0: I saw answer "JavaScript's code gets executed before the DOM contains #annual element. Put the javascript after the div or use jQuery.ready()" But I don't know to put after what div?
this is script include?
[enter image description here](https://i.stack.imgur.com/TxWTE.png)
error:
```
Unc... |
2018/03/16 | 653 | 2,254 | <issue_start>username_0: I tried so many things to change the navbar colour such as
[Android lollipop change navigation bar color](https://stackoverflow.com/questions/27839105/android-lollipop-change-navigation-bar-color)
[android change navigation bar color](https://stackoverflow.com/questions/41303597/android-chan... |
2018/03/16 | 890 | 2,840 | <issue_start>username_0: I want to ask someone to type in a letter, and when they do, check if that letter is a certain letter that I am asking them. If it is, my output will display a list of an array. My Code:
```
import java.util.Scanner;
Scanner input = new Scanner(System.in);
public static void main(String[] args... |
2018/03/16 | 639 | 2,323 | <issue_start>username_0: I implement TabbedPage with 3 tabs like the following picture.
[](https://i.stack.imgur.com/uOJcQ.png)
On top of these 3 tabs, I am trying to set a title, which will be common for all the 3 tabs. Tried title property of tabb... |
2018/03/16 | 417 | 1,507 | <issue_start>username_0: Does anyone know how to convert this into mips 32? Please show the code and explain for me. Thank you so much
```
int service (int n) {
if (n <= 10)
return n;
else
return n + service(n+1) + service (n+2);
}
```<issue_comment>username_1: ```
public class MainPageCS : T... |
2018/03/16 | 448 | 1,651 | <issue_start>username_0: ```
InputTags = document.getElementsByTagName("input")
for (inputTag in InputTags) {
if (inputTag.name == 'username') inputTag.value = "abc"
else if (inputTag.name == 'password') {
inputTag.value = "<PASSWORD>"
}
}
```
In the above segment, DOM elements are manipulated by Javascrip... |
2018/03/16 | 621 | 1,288 | <issue_start>username_0: I am trying to find all permutations of elements in a list and add it to a global dictionary
Code:
```
outp={}
k=0
def func(i,arr):
global outp
global k
arr=arr.copy()
for j in range(i,len(list)):
arr[i],arr[j] = arr[j],arr[i]
if i!=j or i==0:
k=k+1... |
2018/03/16 | 516 | 1,630 | <issue_start>username_0: So I am working with this code:
```
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Leap;
using Leap.Unity;
public class iliketomoveit : MonoBehaviour {
Controller controller;
float HandPalmPitch;
float HandPalmYam;
float HandPalmRoll;
... |
2018/03/16 | 226 | 1,018 | <issue_start>username_0: I'm managing few iOS devices, so I want to create a app to add security feature like collecting the user information from the user like UserID to track which user is currently using the device .
**Desired output:**
So I want to trigger my app as soon as a user unlock the device and without g... |
2018/03/16 | 468 | 1,786 | <issue_start>username_0: I created a folder in res folder and it named draw2 which i will use for specisific imageviews.I want to access the images inside this folder how to do it?<issue_comment>username_1: You cannot. Custom folders in res folder are not supported.
Upvotes: 2 <issue_comment>username_2: Just Put the im... |
2018/03/16 | 709 | 2,454 | <issue_start>username_0: I am linking my navigation bar list items to includes folder page with href Attribute
```
- [Brands](/opt/lampp/htdocs/FoundationFlex/admin/includes/brands.php)
```
I have tried copying full path
I have tried setting permission on htdocs to 777 but still not working.
[My code and folder st... |
2018/03/16 | 775 | 2,772 | <issue_start>username_0: I am using contao 4.4 instance.I have a problem in google sitemap generation.
I have a newsletter page (page type = regular ) . In that page I have some newsletter articles (with teaser) . When I generate the sitemap, the url of these articles generated twice. When I checked the core I found a ... |
2018/03/16 | 244 | 800 | <issue_start>username_0: I want to horizontally align center the div with the red border and vertically align middle the image. Vertically align middle is working but horizontally align center is not working. Here is my code:
```css
.vcenter {
display: table-cell;
vertical-align: middle;
}
```
```html
xyz
--... |
2018/03/16 | 1,582 | 4,607 | <issue_start>username_0: I have tried to make a simple snake game with Free Pascal, when I started the programme, it drew the map exactly what I want but after that, I pressed the button that I have set to control the snake and it exited with exit code 201.
I don't know much about that exit code, could you explain me... |
2018/03/16 | 300 | 1,059 | <issue_start>username_0: I'm using ASP.NET Boilerplate, on ASP.NET Core.
I have some model classes.
```
public class AClass : FullAuditedEntity
{
}
```
and one interface like below.
```
public interface ISomeInterface where T : BaseFileEntity where TEntity : class, IEntity
{
}
```
Now If I add one extra model c... |
2018/03/16 | 401 | 1,494 | <issue_start>username_0: I can do `const A& a = A()` and `A&& a = A()`, but why cannot I do `A& a = A()`?<issue_comment>username_1: By "initialising an lvalue reference" you refer to defining the lavalue which the reference is referring to from then on.
So the lvalue-reference will propagate any access to the rvalue... |
2018/03/16 | 281 | 838 | <issue_start>username_0: I am also using socket.io. There is an HTML table, and when a user clicks a button, my code is supposed to replace that table with a new one, however it gives the error message in the title.
Here is my code:
HTML:
```
| | | |
| | | |
| | | |
```
JQuery script:
```
socket.o... |
2018/03/16 | 669 | 1,511 | <issue_start>username_0: A data frame and I want to pick some it by the value in a column. In this case, rows of 'reports' between 10~31.
```
import pandas as pd
data = {'name': ['Jason', 'Molly', 'Tina', 'Jake', 'Amy', 'Daisy', 'River', 'Kate', 'David', 'Jack', 'Nancy'],
'month of entry': ["20171002", "20171206... |
2018/03/16 | 724 | 2,378 | <issue_start>username_0: I'm trying to insert a move-only type into a map. I have the following piece of code:
```
#include
class Moveable
{
public:
Moveable() = default;
Moveable(const Moveable&) = delete;
Moveable(Moveable&&) = default;
Moveable& operator=(const Moveable&) = delete;
Moveable& operator=(Moveab... |
2018/03/16 | 697 | 2,619 | <issue_start>username_0: So i'm following the Storm-Crawler-ElasticSearch tutorial and playing around with it.
When Kibana is used to search I've noticed that number of hits for index name 'status' is far greater than 'index'.
Example:
[](https://i.stack.imgur.com/bLO3w.png)
... |
2018/03/16 | 286 | 854 | <issue_start>username_0: So, I query a database and I succeed with this query:
```
$sql = 'SELECT * FROM log WHERE dokumen_name LIKE "%A12345%" ORDER BY Id DESC LIMIT 1';
```
and the result is this:
[](https://i.stack.imgur.com/aAXNe.jpg)
Then I want to take from the red... |
2018/03/16 | 672 | 2,045 | <issue_start>username_0: I am trying to parse this json file but I cannot store it as an array in php. I have been having a problem with accessing the objects of the json file as i get an "Illegal string offset 'name' error.
My code is as follows:
This is my json:
```
"{\"Data\":[{\"id\":21,\"name\":\"<NAME>\",\"i... |
2018/03/16 | 1,894 | 8,681 | <issue_start>username_0: I have two array one is list of hours array and second is my result array. I have to fill `$current_play` array with 24 hours elements.
For that first I search hours array value into second array with `$watch_hour` value. If value not match not value fill with zero value and add array elements... |
2018/03/16 | 854 | 3,013 | <issue_start>username_0: I have setup my .htaccess file to redirect <http://example.com> to <https://www.example.com>. But <http://www.example.com> does not redirect to https.
I have my AWS route 53 setup at site.com and an alias of www.example.com pointing to example.com.
Here is my .htaccess file. I cannot for the... |
2018/03/16 | 400 | 1,329 | <issue_start>username_0: I'm developing Delphi Firemonkey mobile application. I want to make a rounded button in Firemonkey. How can i do this without using 3rd party components?<issue_comment>username_1: There are a lot of ways to do rounded buttons in FMX. You can use some different components for making buttons like... |
2018/03/16 | 1,400 | 4,382 | <issue_start>username_0: I want to create a docker file using alpine(as it creates a light weight image) with a cron (to execute a task periodically) , As a newbie I initially tried with ubuntu it worked perfect as i took the help from this link [UbuntuExample with CRON](https://www.ekito.fr/people/run-a-cron-job-with-... |