title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Karate is not loading spring boot class with Autowired annotation | <p>I have a requirement to automate apache kafka test where my development team is using @Autowired annotaion to load the beans.</p>
<pre><code>@Component
public class getAccountsBuilder {
@Autowired
EventBuilder eventBuilder;
@Value("${uk.ipay.contract.account.get.req}")
... | 3 | 1,101 |
jQuery Ajax each function for btn-group bootstrap | <p>I'm sorry, but I have no idea how I can set my JSON times in the next btn-group div.<br />
I need it be grouped in 4 "button", and than the next <code><div class="btn-group mt-1"</code> <br />
Here is my JSfiddle: </p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="fals... | 3 | 2,156 |
How to POST a form with Django and not reload the page | <p>I'm working on an app where the user will submit a value and I want to hide the div containing the form on submit and display a div containing the results. The goal is to have them submit the form and display a different hidden div. What am I doing wrong with either the Django code or Javascript?</p>
<p>views.py</p... | 3 | 2,779 |
Text does not show string in CountDownTimer | <p>I have a CountDownTimer Class to set a countdown which will start will when the user clicks some Button.<br>
This is the code that includes the CountDownTimer </p>
<pre><code> public class play extends Activity implements View.OnClickListener{
private TapCountDownTimer countDownTimer;
private fi... | 3 | 1,100 |
Read HTTP POST from mobile in java | <p>I have iOS Swift code, which sends a POST request to server. If i send this code directly to apple server i get response back with proper data. But when i send this to my server, server could not get the body of the HTTP POST. </p>
<p>I have no idea whether this issue is related to client side or server side.</p>
... | 3 | 2,452 |
error: cannot allocate an object of abstract type | <p>As much as I want to create an MVCE of this problem...I really can't. I am using an open source fluid flow solver called Palabos with its dev guide also available . It is based on generic structures and mpi. Probably the best available open source solver of its kind</p>
<p>The developers there use Box Processors fo... | 3 | 2,129 |
Apache Tiles 3 with Freemarker basic setup, not working | <p>I have not been able to get a very simple freemarker template working with Tiles 3. The examples on the site seem to be for version 2.x as the programmatic configuration references classes that don't exist in tiles 3.</p>
<p>With the following cofiguration, my template displays as is (that is it does not include an... | 3 | 3,892 |
Improper behavior of Host Alias | <p>I have two host alias in my directory structure that fail to properly register with g-wan. My folder structure is as follows:</p>
<blockquote>
<p>/srv/gwan_linux64-bit/192.168.3.101_80/$dg.lcl <br>
/srv/gwan_linux64-bit/192.168.3.101_80/$myapp <br>
/srv/gwan_linux64-bit/192.168.3.101_80/#192.168.3.101 <br>
... | 3 | 1,745 |
SPAlbumBrowse - Getting an Accurate List Of An Artist's Albums | <p>Okay. This is getting crazy. I've been working on this for a few days trying different weird things. I think I had a nightmare last night about libSpotify, might be a product of my sleeping habits, but, I digress.</p>
<p>Anyway. Let's look up the artist "The XX" with the following code. Assume that <em>artist</em> ... | 3 | 7,365 |
Is there a different way to put 3 plots together into 1 image besides using ggpubr in R? | <p>I have been using the code below to create 3 separate plots and then using ggarrange in the ggpubr package to combine them into one plot and saving it as an image. However, once I created an Rmd of my script this function is very temperamental and gives me the error "Faceting variables must have at least one value" ... | 3 | 1,156 |
Spinner still empty | <p>i was create a spinner base on an BaseAdapter</p>
<p>but when i select a value still always empty</p>
<p>it's my code</p>
<p><strong>SpinnerAdapter.class</strong></p>
<pre><code>public class SpinnerAdapter extends BaseAdapter {
private List<School> schools;
private Activity parentActivity;
pri... | 3 | 1,317 |
Android - OpenGL Image doesnt rotate (almost completed) | <p>I was following a OpenGL tutorial (<a href="https://developer.android.com/training/graphics/opengl/touch.html#angle" rel="nofollow noreferrer">https://developer.android.com/training/graphics/opengl/touch.html#angle</a>) and I did everything right I think. <strong>My problem is that the triangle doesnt rotate on the ... | 3 | 4,377 |
How to get the selected texts and display them? | <p>What I'm trying to do is to grab the selected option from each of the selection boxes, click 'submit' and store them in the "stored" paragraph.</p>
<p>Here is my HTML:</p>
<pre><code><body>
<div id="container">
<button id="button" onclick="rolldices()">Roll dices</button>
<span id="dic... | 3 | 1,325 |
Passing by value in menu driven Java program | <p>I am trying to write a simple program that utilizes passing by value to calculate total revenue for all three ticket classes when user selects option <strong>4</strong>. I want method income_Generated to run all first three methods again so I can pass the revenues calculated from each ticket class to calculate total... | 3 | 2,144 |
Print filtered array(object) ionic4/angular | <p>I didn't understand how to pass data from .ts page to .html page in ionic angular.</p>
<p>Array:</p>
<pre><code>this.s1mstatus = [
{
"code" : "01",
"descr" : "Text1."
},
{
"code" : "02",
"descr" : "Text2."
},
{
"code" : "03",
"descr" : "Text3."
}
]
</code></pre>
<p>HTML page</p>
<pre><cod... | 3 | 1,233 |
Bind the error data of datagridrow to a tooltip textblock | <p>I am trying to show the validation error message of data grid row in a tooltip. Here is the code that works when I use the ToolTip property of the Grid control directly (wihtout styling):</p>
<pre><code><Grid Margin="0,-2,0,-2" ToolTip="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type D... | 3 | 1,335 |
React native create custom modal using render props | <p>I want to create a Modal component and I want to have possibility to inject to it everything what I want. Firstly I decided to use HOC but then I've changed my solution to render props. Everything works fine but I don't really like this solution. I'm wondering how could I optimize it to make it better. What is the b... | 3 | 1,622 |
How can I change several Active Directory user passwords? | <p>I'm trying to programaticaly change several user's password, specifically without using System.DirectoryServices.AccountManagement (PrincipalContext)
I have this piece of working code:</p>
<pre><code>using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
usin... | 3 | 1,936 |
ArrayList printing values missing? | <ol>
<li><p>When entering my games in this format: </p>
<p>test : 120 : 120<br>
game : 120 : 120<br>
quit</p></li>
<li><p>My txt file is only showing my first entry and not my second entry, in my text file it is displaying this below: </p>
<p>Player : adam </p>
<hr>
<p>Game: test , score= 120 , minutes played= ... | 3 | 1,538 |
Substituting text inside buttons with widgets | <p>My app (using kivy) needs to substitute text with widgets inside an unspecified number of buttons using iteration. I don't use kv language. Only the last button displays any content.</p>
<p>My app should display an unspecified number of buttons. Simplified example:</p>
<pre><code>import kivy
kivy.require('2.0.0')
f... | 3 | 1,290 |
Vue - Component abstraction and inheritance | <p>I have a Vue application that allows users to create quizzes made up of different types of questions. I have multiple choice questions (both single selection/radio button and multiple selection/checkbox), open answer, attachment answer, so on and so forth.</p>
<p>I'm looking to create a generic <code>Question</code>... | 3 | 1,875 |
Jest function fails to fire after network request in react component | <p>Full Repo</p>
<p><a href="https://github.com/brianbancroft/sample-testing-msw-sb-jest-rtl" rel="nofollow noreferrer">https://github.com/brianbancroft/sample-testing-msw-sb-jest-rtl</a></p>
<p>Using mock service worker (msw) to respond to a network request, I have a React login component. On submit it sends a network... | 3 | 1,159 |
Why some methods are not either private or public? | <p>I have seen some examples that don't declare methods to be private or public. Just static like: <code>static Bitmap resamplePic(Context context, String imagePath)</code></p>
<p>Why is that? And when to do that?
This is my example code:</p>
<pre><code>/*
* Copyright (C) 2017 The Android Open Source Project
*
* Lic... | 3 | 2,663 |
Error : Cannot call methods on dialog prior to initialization; Attempted to call method 'close' | <p>I have cancel button that is not working properly on a JQuery Modal Dialog and I would really appreciate some help. This is the exception I'm getting when I click on the cancel button of the modal: JavaScript runtime error: cannot call methods on dialog prior to initialization; attempted to call method 'close'</p>
... | 3 | 2,269 |
Plot rows of numbers that fall within a defined proximity to other rows in R | <p>I have a dataframe of numbers (genetics data) on different chromosomes that can be considered factors to separate the numbers on. It looks like this (with adjacent columns containing Sample info for each position): </p>
<pre><code>awk '{print $2 "\t" $3}' log_values | head
Chr Start Sample1 Sample2
1 ... | 3 | 1,225 |
Reading CSV From R returning an error and weird html | <p>So my script below reads a csv from google drive:</p>
<pre><code> ---
title: "Funnel"
output:
flexdashboard::flex_dashboard:
orientation: rows
vertical_layout: fill
runtime: shiny
---
</code></pre>
<pre><code>
#rm(list = ls())
library(flexdashboard)
library(dplyr)
library(ggplot2)
library(coll... | 3 | 2,428 |
Django Rest Framework serialize additional fields from intermediate model | <p>I am developing a small application that lists the customers of a store. I'm trying to retrieve the additional fields of the intermediate model because a contact can belong to several stores but depending on the store it is premium or not and if he is happy or not.</p>
<p>Here's the JSON response I'd like to get fo... | 3 | 1,067 |
MVC Parent Child Modal File Upload problem | <p>I have a parent child scenario for getting header detail data. here is my code attached, the problem is when i use a file upload it does not work</p>
<p><code>Person</code> Model:</p>
<pre><code>public class Person
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
public int Id { get; set; }
[D... | 3 | 5,055 |
ffmpeg Python command only runs once in PM2 environment | <p>PM2 is running as a <code>web</code> user. ffmpeg was installed native to Ubuntu 16.04 LTS using <code>sudo apt install ffmpeg</code>. The Python version is 3.6. The software uses <a href="https://github.com/kkroening/ffmpeg-python" rel="nofollow noreferrer">ffmpeg-python@0.1.17</a>.</p>
<p>The applications spawned... | 3 | 1,320 |
Listview show only last item over and over | <p>I am new to android development. I enrolled Udacity course and I get to where I have to use a costume arrayAdapter to display a listView of data (text) I nailed most of it but i have a problem with data displayed which is : when I launch my activity listView displays last item on may arraylist
i have tried almost ev... | 3 | 1,447 |
Initialize FileInputStream in JMH @Setup and use in @Benchmark | <p><code>InputStream</code> initiliazed in <code>@Setup</code>, when trying to use it in <code>@Benchmark</code> its closed. Changing <code>@State</code> doesn't work. Am I doing this correctly? Is there are way to avoid stream initialization overhead and do proper benchmark?</p>
<p>This doesn't work for <code>XMLStre... | 3 | 2,302 |
Property not found in cellForRowAtIndexPath: method | <p>I am getting an error which I don't understand because I have declared the property/ies. Have commented out the error in the AllListViewController.m file in the cellForRowAtIndexPath: method.</p>
<p>Here are the files:</p>
<p>Checklist.h</p>
<pre><code>#import <Foundation/Foundation.h>
@interface Checklist... | 3 | 3,268 |
How to fix 401 error when the credentials work on one end but not the other | <p>When I try to log in the angular portion of my app I get a 401 error but the credentials work in the spring portion. No matter what I try I can't seem to fix it. I was following this <a href="https://www.youtube.com/watch?v=QV7ke4a7Lvc&t=11s" rel="nofollow noreferrer">tutorial</a></p>
<p>Header</p>
<pre><code>Re... | 3 | 1,618 |
converting text file to comma delimited csv file or json file | <p>I have a text file that I want to convert to a comma-delimited CSV file, where the first row(headers) are the MySQL table fields. My text file looks like this</p>
<pre><code> id purchase-date last-updated-date status, name
305-0847312-2761164 2022-04-1... | 3 | 6,428 |
Janus VideoRoom plugin subscribe operation took too much seconds before i saw remote video | <p><br/>Im using Janus VideoRoom plugin and i want to subscribe/unsubscribe 2 or more different publishers.
<br/>First 4 or 5 subscriptions (start subscribe -> got video visible) take 2-3 seconds.
<br/>I call it <strong>NORMAL</strong>.
<br/>But next subscriptions take MUCH more time.
<br/>I call it <strong>UNNORMAL... | 3 | 10,792 |
Calculator GUI problems | <p>I'm in my first semester of programming as a first year college and we were tasked to make a calculator GUI. I'm almost done but I need to make the "Error" appear if the denominator is 0 but it outputs 0.0. My other problem is that I need the gui to restart after showing the final answer but what happens i... | 3 | 1,383 |
ExpressJS & AJAX - Session Returns Undefined | <h2><strong>Structure</strong></h2>
<p>I have an API hosted on a secure server with HTTPS.</p>
<p>as such: <code>https://example.com</code></p>
<p>Also, I have a frontend <code>index.html</code> located on my Desktop.</p>
<hr />
<h2><strong>Goal</strong></h2>
<p>I would like to send an ajax post request to the api and ... | 3 | 1,230 |
Add and edit form in one page | <p>I have two buttons 'Add' and 'Edit' in my page. When I try to click the 'Add' button I get one popup form and I fill the details and will be added in to the database. The same thing when I click the 'Edit' button the same form should be displayed with the filled in details. I know how to get the data from the backen... | 3 | 4,268 |
Get prop that passed from child component | <p>I have an react native app where I render map in App.js and this is the states of App.js:</p>
<pre><code>this.state = {
region: null,
shops: [
{
name: "name",
rating: 0,
coords: {
latitude: 543543,
longitude: 656546
}
}
... | 3 | 1,160 |
Pass a named list of models to anova.merMod | <p>I want to be able to pass a named list of models (merMod objects) to anova() and preserve the model names in the output. This is particularly useful in the context of using mclapply() to run a batch of slow models like glmers more efficiently in parallel. The best I've come up with is to use do.call on a de-named ve... | 3 | 1,158 |
PHP cURL GET request is not returning JSON object | <p>I'm attempting to use PHP cURL to write a GET request that returns information in JSON format so I can decode it and store the header values accordingly in a Response class. My request goes through successfully with a 200 Status code, but the actual response is coming back as a string rather than an object that I c... | 3 | 1,481 |
Cassandra UNREACHABLE node | <p>I have Cassandra v3.9, 3 node cluster. Replication factor 2</p>
<p>10.0.0.11,10.0.0.12,10.0.0.13</p>
<p>10.0.0.11,10.0.0.12 are seed nodes</p>
<p><strong>What could be the possible reasons</strong> for following error in /etc/cassandra/conf/debug.log</p>
<p>The error is</p>
<p>DEBUG [RMI TCP Connection(174)-127... | 3 | 2,703 |
OpenSSL error while loading RubyMine on Snow Loepard 10.6 | <p>I installed Rais and Ruby 2.x via RVM months ago when I was using OSX 10.6. Today I made blunder to try installing <code>PhantonJS</code> via HomeBrew. it also tried to install <code>openssl-1.0.1i.tar.gz</code> and installed too. I could not install PhantomJS as it was taking time but resta assured OpenSSL was ins... | 3 | 5,815 |
Networking not working on Docker / Centos 7.9 | <p>I'm running Docker on Centos 7.9.2009 and have a very strange issue. The containers do not have network access and cannot be accessed from the host. I've searched for potential solutions, a lot of which seem to be related to DNS issues (which I don't think is what's going on here since even pinging 8.8.8.8 from with... | 3 | 1,365 |
Using LESS how to target the granparent from child element? | <p>I'm trying to target a specific popover that a div with class "s-formgroup" and set its background RED as I have multiple popovers. Either my js nor my less do the trick</p>
<p><a href="http://jsfiddle.net/2XmVC/" rel="nofollow">FIDDLE</a></p>
<h1>HTML</h1>
<pre><code><div class="popover>
<div class="p... | 3 | 1,503 |
Is there a way to pass certain info, that is specific to a user, to the fields of a (new) django form? | <p>I have the following "problem":
I have automated a "prediction-game" where users can win points when they predict the correct winners in a sports event over multiple weeks (for example: Tour de France).
They are allowed to choose 5 athletes of which they think that will win in the races.
At the e... | 3 | 1,859 |
CSS file is styling unintended elements | <p>Bear with me as I am new to web development and will try to explain my issue properly.</p>
<p>So basically I'm trying to style a certain element on my web page but the issue is that it is also applying that styling to the footer as well, which is not what I want. Here's what I'm trying to achieve:</p>
<pre><code>&... | 3 | 1,268 |
Laravel 6.10 Application works locally but fails on production server with "Target class [] does not exist." | <p>This problem deals specifically with Laravel 6.10 and queue processing. On my local machine, the program runs fine, and all queued jobs load well and process to completion. On my GoDaddy server, I get a mysterious error when the job tries to load that reads:</p>
<pre>
Error thrown on line 805 in /home/jaredclemence... | 3 | 3,159 |
HTTPS Giving Segfault in cpp-httplib | <p>I'm trying to do some HTTP(<strong>S</strong>) requests with cpp-httplib. Why does</p>
<pre><code>#include <iostream>
#include "httplib.h"
using namespace std;
int main()
{
cout << "hi" << endl;
auto res = httplib::Client("http://stackoverflow.com").Get(&quo... | 3 | 1,129 |
"The replica master 0 ran out of disk." During Sklearn Fit in Google Cloud ML Engine | <p>I'm trying to use Google Cloud ML Engine to do an <code>sklearn LDA gridsearch</code> on 500 MB data (10000 rows x 26000 columns) to find what number of topics would be the best for my topic modeling project.</p>
<p>The maximum number of iterations for each CV fold was set to 100.
After 47 iterations, the job woul... | 3 | 3,180 |
Navigating to the Nested child Attribute and Merge with the another Element | <p>Here i am stuck with the XSLT transformation as i am very new and started learning.</p>
<p>Input XML</p>
<pre><code><SHOW_LIST>
<SHOW ID="12345">
<SHOW_INFO>xxx</SHOW_INFO>
<SHOW_ELEMENT_LIST>
<SHOW_ELEMENT ID="1">
<SHOW_ELEMENT_LIST>
... | 3 | 3,003 |
Overflow:hidden not working | <p>When I run my code in a browser, the background is exactly where I already want it to be, the problem is that I can still scroll down, revealing the part of the background which is originally hidden. I need it so that the picture which I am trying to input does not come off the page, and does not reveal any more of ... | 3 | 1,550 |
Change button name when the button is clicked | <pre><code>import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_form_builder/flutter_form_builder.dart';
import 'package:paylater/res/asset_strings.dart';
import 'package:paylater/res/motito_colors.dart';
import 'package:paylater/res/string_en.dart';
import 'package:p... | 3 | 2,966 |
How to set the environment when using `conda build`? | <p>Trying to take advantage of Conda's build function to install a package not in conda repositories. I've downloaded the source files for the package I want. At the same level I created a folder for my <em>conda recipes</em> which contains the <code>meta.yaml</code> setting <code>source: path: ../<package-name><... | 3 | 2,560 |
Plotting polygons from SQL type geo column in Python | <p>I have an Sqlite database with a table that includes a geo column. When I add this table into QGIS as a layer, it shows a map of Chicago with polygons as shown below. I think, the polygon points are stored in the column named geo.</p>
<p><a href="https://i.stack.imgur.com/ZZvh2.png" rel="nofollow noreferrer"><img sr... | 3 | 1,381 |
Insert a dict into a sql table | <p>i wanted to insert some data into my sql but having trouble because there is alot of columns so i would have to write alot of parameters after VALUE. I have a table with all attributes from the json file and a player_id which i add myself</p>
<pre><code>#Gamelogs for players and Teams
import requests
import json
imp... | 3 | 5,824 |
I have 10 buttons that I want when I press a button, a function occurs | <p>I have a page with 10 buttons I want when I press a button the speech inside it changes
And div appears, and when you click the second time, everything returns as it was</p>
<p>button 10 html</p>
<pre><code><button class="button" id="movetool">click 1</button>
<button class="b... | 3 | 1,189 |
ReactJS issue with map and find | <p>so i have an array of this type,</p>
<pre><code> (5) [{…}, {…}, {…}, {…}, {…}]
0: {naam: "Tafel 1 ", id: 1, aantalPersonen: 3, aantalMinuten: 3, bezet: 1, …}
1: {naam: "Tafel 2 ", id: 2, aantalPersonen: 1, aantalMinuten: 3, bezet: 1, …}
2: {naam: "Tafel 3 ", id: 3, aantalPersonen: 2, aantalMinuten: 6, bezet: 1, …... | 3 | 1,290 |
setup.py ignores full path dependencies, instead looks for "best match" in pypi | <p><em>Similar to <a href="https://stackoverflow.com/questions/12518499/pip-ignores-dependency-links-in-setup-py_">https://stackoverflow.com/questions/12518499/pip-ignores-dependency-links-in-setup-py</em></a></p>
<p>I'm modifying <a href="https://github.com/joke2k/faker" rel="nofollow noreferrer">faker</a> in anticip... | 3 | 1,285 |
Hover box position issue | <p>I have a great(for me) problem</p>
<p>I'm building a website, trying to make a category top bar with a box showing downside of text on hover.</p>
<p>But when I hover on the category name, appearing box makes the categories go down.</p>
<p>How to make them stay up, and just make box going down overlapping content?... | 3 | 1,997 |
Debug Test in vscode fails inside container | <h2>Configuration:</h2>
<p>I am using the following version of VSCode:</p>
<pre><code>Version: 1.46.1
Commit: cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
Date: 2020-06-17T21:13:08.304Z
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.3.0-59-generic snap
</code></pre>
<p>With ... | 3 | 1,996 |
use a custom function to find all words in a column | <p><strong>Background</strong></p>
<p>The following question is a variation from <a href="https://stackoverflow.com/questions/56826420/unnest-grab-keywords-nextwords-beforewords-function">Unnest grab keywords/nextwords/beforewords function</a>. </p>
<p><strong>1)</strong> I have the following <code>word_list</code></... | 3 | 1,399 |
MediaWiki $wgUser to $this->getUser() and $context->getUser() not working | <p>I am learning Mediawiki and looking at some of the extensions.</p>
<p><a href="https://www.mediawiki.org/wiki/Manual:$wgUser" rel="nofollow noreferrer">Manual:$wgUser</a> on mediawiki.org states the global variable <code>$wgUser</code> should not be used for new code.</p>
<p><a href="https://www.mediawiki.org/wiki... | 3 | 1,080 |
Dynamic initial form data | <p>I am attempting to add a button to the customer's page to add a new device but when rendering the form I would like to pass the customer's name as an initial value.</p>
<p>This was my personal Christmas project to make my work projects a bit more centralized in 2021.
Im almost over the finish line but I've hit this ... | 3 | 1,839 |
How to normalise my data | <p>First post i have been lurking for many years but finally stumped enough to ask for help? Please excuse the formatting</p>
<p>I have generated a mind map (categories, subcategories, questions and responses) Im trying to find a data structure to map this. Once I map the data I end up with lots of repetition where a ... | 3 | 1,938 |
Unable to fetch search results via fetch - Github API | <p>I am trying to search users via a search String using Github API
I am using fetch with the url but unable to access the result json.</p>
<p>This is where I am fetching the data</p>
<pre><code>componentDidMount() {
console.log(this.props.searchString);
let furl = 'https://api.github.com/search/users?q='.con... | 3 | 5,825 |
ListView items does not fit in Grid cells | <p>Help me please. In Xamarin.Forms I have a main ListView containing cards (Frame with Grid). Each Grid has Labels and a ListVew with phones. The ListVew with phones takes up three rows and three columns. I need all the elements of the phone ListView inside the Grid to always be visible (usually their number is up to ... | 3 | 1,831 |
Display glitches with html emails sent from Java | <p>I am using the below code to send html emails, but somehow the output is coming different on different mailboxes. On gmail its coming fine, on yahoo,rediff,hotmail and ms outlook the whole layout gets break. </p>
<p>How can all display be same irrespective of mail clients.</p>
<pre><code>StringBuffer sb = new Stri... | 3 | 1,535 |
App is crashing while running AVD in Android Studio. I am running on virtual device pixel 5x with API 27 | <p>When I try to create and instance of FusedLocationApi it doesn't get recognized some How. it is in red. It is not importing any classes. seems to me that there might be some problem in Gradle Build App. Please Check it out.</p>
<p>This is My MapActivity.java File</p>
<pre><code>package com.matt.mapapp;
import andr... | 3 | 1,750 |
Comparing old and new prices in a bootstrap thumbnail? | <p>As can be seen from the code below I am dynamically generating thumbnails using the template in <code>var sProductTemplate</code>. The thhumbnails are populated via ajax request which is getting the information from a json file.</p>
<p>My task is to compare the current price in the thumbnail vs the updated price in... | 3 | 1,588 |
conways game of life from automate boring stuff book | <p>i need to create a python conways game of life. i have this code given below from book "how to automate boring stuff with python" i had run this code but the output doesn't seem that the code is correct. i intended to get a result of the conway program to be in grid. can you please review the code and brie... | 3 | 1,587 |
unable to compile googletest in eclipse | <p>I am trying to compile googletest (git clone <a href="https://github.com/google/googletest.git" rel="nofollow noreferrer">https://github.com/google/googletest.git</a> -b release-1.11.0) but keep getting 1000+ linker errors.</p>
<p>I am running windows 10, eclipse CDT (latest), mingw (latest) gcc. I created an eclips... | 3 | 1,089 |
Data exists, but the map function returns no value React Native | <p>I guess I'm not realizing something. I have the structure where I list the friends of the logged in user. Data appears to exist on console.log, but the map function does not work. Also, when I press the component in tab transitions, useEffect only works once. It doesn't work after that. Can you help me? Thanks.</p>
... | 3 | 4,942 |
How can I redirect users to different pages after inserting into the database using Sweet Alert in PHP? | <p>I am finding it difficult to use the sweet alert after a successful login and also add the sweet alert after a user successfully inserts his/her data into the database. I am finding it difficult to use the sweet alert after a successful login and also add the sweet alert after a user successfully inserts his/her dat... | 3 | 6,567 |
netdiagnostics Java agent startup error with Adobe Experience Manager | <p>We are using Adobe Experience Manager, and I need to set up monitoring for it via javaagent (we have the special tool for java application monitoring called netdiagnostics).
Usually, for enabling monitoring I only need to pass parameters of netdiagnostics to the application via javaagent option.
But after passed jav... | 3 | 2,662 |
TensorFlow batch tensors with different shapes | <p>I am studying Neural Network and I have encountered what is probably a silly problem which I can't figure out. For my first ever network, I have to create a flower image classifier in Keras and TensorFlow using the <a href="https://www.tensorflow.org/datasets/catalog/oxford_flowers102" rel="nofollow noreferrer">oxfo... | 3 | 1,039 |
How to I make my php include stay at the bottom? | <p>So I've been editing my website and recently tried to upload the basics (index, css and some other pages) but when I have looked at one of the pages, the actual article overlaps the bottom div and I don't know how its done that.</p>
<p>Here is the css for the bottom:</p>
<pre><code>div#bottom {
background-colo... | 3 | 5,613 |
MongoDB View vs Function to abstract query and variable/parameter passed | <p>I hate to risk asking a duplicate question, but perhaps this is different from <a href="https://stackoverflow.com/questions/52786830/passing-variables-to-a-mongodb-view">Passing Variables to a MongoDB View</a> which didn't have any clear solution.</p>
<p>Below is a query to find the country for IP Address 16778237. ... | 3 | 2,184 |
JQueryUI datepicker is not setting/posting the value of the textbox after a date is selected | <p>The textbox starts with a value of 1/1/0001, which I am assuming is the default starting date for a new datetime. The issue is that after a date is selected from the datepicker menu, the value on the HTML element is never changed and 1/1/0001 gets posted to the controller after the form is submitted. The text with... | 3 | 1,123 |
My activity keeps force closing because of this error | <p>My activity keeps force closing because of this class exception</p>
<pre><code> 07-02 01:24:59.244: ERROR/AndroidRuntime(660):
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.fttech.collection/com.fttech.collection.book_list}:
java.lang.IllegalArgumentException: column '_id' does not ex... | 3 | 2,754 |
Convert array of types to union of object type | <p>Let's say I have these types:</p>
<pre class="lang-js prettyprint-override"><code>type StepA = // ...
type StepB = // ...
type StepC = // ...
type Steps = [StepA, StepB, StepC]
</code></pre>
<p>I want to have an utility type <code>SomeUtilityType<T></code> so that:</p>
<pre class="lang-js prettyprint-override... | 3 | 1,131 |
C# WPF App silently crashes if I use "open with" | <p>I am making a text editor in C# WPF. After publishing the project to a folder, I can double-click the .exe, it runs fine, and I can load files using my Open (CTRL+O) function perfectly fine.</p>
<p>I want to use <strong>Open with > Choose another app > More apps > Look for another app on this PC</strong>
(I... | 3 | 1,249 |
Upload files in vb.net | <p>I have a code in vb.net (as shown below) in which it ask to upload a file after the selection of yes button. On checking No button, it doesn't ask us to upload a file as shown below in the images. </p>
<p>************************************************VB Code****************************************************** <... | 3 | 3,446 |
Why does strip.white work when trimws does not? | <p>I am reading in a .csv that NA observations are recorded as "- ". </p>
<pre><code>returns <-read.csv("~/R/ADFG_Obtained_AKReturns.csv", stringsAsFactors = FALSE)
str(returns)
'data.frame': 4222 obs. of 15 variables:
$ Year : int 1975 1976 1977 1977 1977 1977 1977 1978 1978 1978 ...
$ Region ... | 3 | 2,301 |
boost::spirit and strict_real_policies fails to parse a too long integer | <p>I've to deal with really long integers in text format -- so long that they won't fit into an 32bit int.
I need to parse such text into a </p>
<pre><code>boost::variant<int, double>.
</code></pre>
<p>So if there is a long integer to big for an integer it needs to go into a double. See the example below. It d... | 3 | 1,200 |
How to clear Select Box old Data & Fill with new Data on Selection Javascript? | <p>I have 2 drop downs, this thing here is when user select BMW i want to fill data 1,2,3,4,5 & when he selects Volvo i want to display 5,6,7,8,9. Data is getting populated in second drop down but i can see old data as well & as many times i click the list is getting increased. I want to show only specific data... | 3 | 1,083 |
Post form always returning null | <p>I have an application in asp .net mvc 4 as follows:</p>
<p><strong>1.ProductsController.cs</strong></p>
<pre><code>namespace MvcApplication2.Controllers
{
public class ProductsController : Controller
{
//
// GET: /Products/
[HttpGet]
public ActionResult Products()
{... | 3 | 1,653 |
Unable to create Generic CustomAttributeData properly when using programatically generated Enum | <p>I am trying to source a PropertyGrid with a dynamically generated object.</p>
<p>For combo selections on this property grid, I have built a TypeConverter (where T is an enum, defining the list of options):</p>
<pre><code> public class TypedConverter<T> : StringConverter where T : struct, IConvertible
... | 3 | 1,193 |
Python multithreading - writing to file is 10x slower | <p>I've been trying to convert a large file with many lines (27 billion) to JSON. Google Compute recommends that I take advantage of multithreading to improve write times. I've converted my code from this:</p>
<pre><code>import json
import progressbar
f = open('output.txt', 'r')
r = open('json.txt', 'w')
import math
n... | 3 | 1,024 |
timestamp issue | <p>I have some scripts and in the database table I have set the dato to int(25) and timestamp </p>
<p>I have a create topic script and then I create a topic it insert the date and time in the timestamp tabel (dato).</p>
<p>But somehow my comment script will not insert the time :S and its the same stuff I use :S.</p>
... | 3 | 1,317 |
MS Access Join sub query | <p>I have data in Table2 which I need to use as the key to retrieve information in Table1. Table2 contains information about the part number including its plant of manufacture and production process. I need to pass to Table2 the warehouse (plant) and the part number and have it pass back to me, the production plant i... | 3 | 1,055 |
jquery duplicating dynamically created content | <p>im building a phone app using html5, jquery and php and database. I have a messaging system im trying to develope and have an issue with jquery dynamically creating buttons. I have code that creates a message subject div and message content div using details from the database called using ajax and json, I have then ... | 3 | 1,665 |
jQuery Ajax load table not whole page | <h1>FIXED</h1>
<p>My problem is resolved. My issue was not the jQuery command as much as i was using the same template as when first loading the page and the table included in that jsp page. </p>
<h2>Solution</h2>
<p>MY solution:
Create a new template to be called on new page load name ControlTable.
Create a new js... | 3 | 3,336 |
Radzen nested Datagrid not showing | <p>I'm new to Radzen and I've been trying to make a nice yet simplified nested master detail datagrid following <a href="https://blazor.radzen.com/master-detail-hierarchy-demand" rel="nofollow noreferrer">this example</a>. I have managed to make two seperate datagrids appear properly but when I try to nest them nothing... | 3 | 4,294 |
Android Signed Apk crashed in below 5.0 Versions | <p>I create a signed APK and upload that, it crashes in all below version of marshmallow. The signed APK works on Android above version 5.0, but not on <5.0. The AppCompat Library is linked with the project in Android.</p>
<p>And when I normally run the same project in android 5.0 it work perfectly but signed apk n... | 3 | 1,448 |
Error 404: The links on my website don't work, only index (using Codeigniter & .htaccess) | <p>I am hosting my website <a href="http://tstspanama.com/" rel="nofollow noreferrer">http://tstspanama.com/</a> on a Apache server. It was created with the PHP framework Codeigniter. I can only see the home page but nothing else, the links don't work.</p>
<p>If I want to go to <code>http://tstspanama.com/servicios</co... | 3 | 1,259 |
Sorting attachments into different folders | <p>I updated a (working) macro which I received from my friend (this macro sorts attachments into different folders) The update relates to select - case block in SaveAttachment Procedure. I'd like to save attachments into 2 different paths - PATH and PATH2 depending on the folder. For TargetFolderItemsAA and TargetFol... | 3 | 2,612 |
Resource allocation algorithm for an airlock on a moon base | <p>I'm trying to find an algorithm or problem name on a resource allocation problem that goes something like this.</p>
<p>A moon base has an airlock that only one person can use at a time, either to enter or exit, and takes 20 seconds to pass through. Airlock transitions cannot be aborted early or reversed. Astronauts... | 3 | 1,173 |
Nginx Setup on Ubuntu | <p>I'm trying to setup nginx with passenger to work on Ubuntu with RVM.
I should get my apps home page when i go to localhost, instead I recieve the default nginx home page. </p>
<pre><code>user antarr;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log i... | 3 | 1,192 |
What do these networkx errors mean which I am getting after setting a filter on my pandas dataframe? | <p>I have a source, target and weight dataframe called <code>Gr_Team</code> which looks like this (sample) -</p>
<pre><code>Passer Receiver count
116643 102747 27
102826 169102 10
116643 102826 7
167449 102826 8
102747 167449 4
</code></pre>
<p>Each Passer and Receiver have their uni... | 3 | 1,792 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.