title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Using JavaScript with Angular Component: Cannot read property 'id' of null | <p>I have successfully managed to connect my external <code>JavaScript</code> file to my <code>angular</code> component, however it doesn't work in some instances.</p>
<p>I connected my <code>src/custom.js</code> file to my <code>app.component.html</code> through <code>angular.json</code>, as illustrated below: </p>
... | 3 | 1,091 |
Spring MVC not loading resources | <p>This is really frustrating I would appreciate some help with this as I have a deployment on coming weekend and suddenly the application has stopped working.
I have a Spring 4.3.3 application hosted on Apache Tomcat 7 with JDK 1.7. The application was running fine when it suddenly stopped loading all the JS, CSS and ... | 3 | 4,644 |
Jenkins run up an Amazon EC2 Linux Ubuntu instance failing | <p>I have configured and tried to run Jenkins System Configuration from AWS windows system: </p>
<p>It is failed and thrown the fallowing error.</p>
<p>I insalled manually Java 1.7</p>
<hr>
<pre><code>Jun 29, 2018 6:22:29 PM null
FINEST: Node RocketChat-Server (i-034fb93609641e1b1)(i-034fb93609641e1b1) is still pen... | 3 | 2,693 |
Processing exception while streaming http response object using Data Buffer | <p>Getting error "Unable to find a MessageBodyReader" while writing the response to a file using DataBufferUtils.</p>
<p>My code</p>
<pre><code>
public class Downloader {
public static void main(String[] args) {
Client targetClient = ClientBuilder.newClient();
WebTarget target = targetCli... | 3 | 4,629 |
MySql calculate multiple column | <p>I have code below and in my query but the results it gives me is way off chart, so I thought maybe my calculation is wrong. <code>The Logic</code> is to have multiple column <code>sum</code> <code>minus</code> and <code>times</code> to eachother and the result based on my database numbers has to be <code>4.581.709.5... | 3 | 3,229 |
Optimal way of multiprocessing a rowwise matching operation between two data frames | <p>I'm working on an entity resolution task with large databases (<code>df1</code> ~0.5 mil. rows, <code>df2</code> up to 18 mil. rows).</p>
<p>In <code>df1</code> I have first and last names, with first names being in regex form to allow for multiple variations of the same name - I didn't bother including it in the at... | 3 | 1,222 |
How to feed a list of files into a bash script | <p>I'm having problems feeding a large list of filenames into a command in (git for windows git, I think it's cygwin)bash shell.</p>
<p>This is the basic command that works fine with a small set of arguments: <code>git filter-branch -f --tree-filter 'rm -rf file1 directory2 file3 file4'</code> However, I have about 1... | 3 | 1,033 |
'paypal' is not defined in PHP | <p>I have codes in ajax which calls php file to show the paypal sdk button in that page :</p>
<pre class="lang-js prettyprint-override"><code>function redirectPaypal() {
$('#tabs2').html('<img src="' + webroot + 'facebox/loading.gif">');
callAjax(webroot + 'TESTS.php', 'mode=paypall', function (... | 3 | 4,054 |
Vscode rust-analyser plugin, on macOS; failing to load workspace due to permission denied | <p><strong>Goal</strong></p>
<p>I'm trying to setup Visual Studio Code(vscode) on macOS for rust development.
I had my setup working, using the official rust extension, but it wasn't always consistent.
I saw that the rust-analyzer extension could provide a better experience.</p>
<p><strong>Problem</strong></p>
<p>Now t... | 3 | 4,847 |
Reading XML nodes in a C# program without the use of int.TryParse(node.InnerText) | <p>The following is a snippet of a much larger C# code. For the sake of convenience, I'm only providing the relevant information.</p>
<p>I'm trying to do a program that reads XML variables and puts them in a list. You then choose a name from the list based off of the names listed in the XML, and the values for that spe... | 3 | 1,987 |
Why PMP (poor man's profiler) don't work on nginx? | <p>There is one very useful gdb "script" called <a href="http://poormansprofiler.org/" rel="nofollow">poor man's profiler</a>. It calls this command:</p>
<pre><code>gdb -ex "set pagination 0" -ex "thread apply all bt" --batch -p $pid
</code></pre>
<p>It works well for most linux processes, but don't work for <a href=... | 3 | 2,394 |
I am trying to store the Authorization Token fetched from the Rest API and then use it in the headers of other API calls in Flutter | <p>As the title of the problem explains most of it but will still elaborate more.
So I am calling an API using the POST method and registering a user which gives me response data containing only the Authorization token which needs to be used while calling other APIs.</p>
<p>Now I want to store the token and use it in t... | 3 | 1,734 |
Debugging foreach in R using dorng | <p>I am parallelizing a task in R using <code>foreach</code> loop with reproducible results using the <code>dorng</code> operator. It is a complex code, and I have an error that I have not been able to identify even though I have run the same code with a regular <code>for</code> loop.</p>
<p>My fundamental question is:... | 3 | 1,423 |
Optimizing MySQL CREATE TABLE Query | <p>I have two tables I am trying to join in a third query and it seems to be taking far too long.</p>
<p>Here is the syntax I am using</p>
<pre><code>CREATE TABLE active_users
(PRIMARY KEY ix_all (platform_id, login_year, login_month, person_id))
SELECT platform_id
, YEAR(my_timestamp) AS login_year
, MONTH(m... | 3 | 1,180 |
How to create a generic function to load a view controller? | <p><strong>I have been trying to write a function that works with 3 parameters in order to load a view controller but I haven't been able to make it work.</strong> </p>
<p><em>I'm new into coding</em> and I am reading a tutorial that uses 2 view controllers (login & chat). In order to go from one to the other, the... | 3 | 1,201 |
Icons are scoped in a veird way (CSS scoping Vue.js 3) | <p>I am not 100% sure it is the scoping issue here, but here is the thing.</p>
<p>HTML:</p>
<pre><code><div class="search__sort">
<div class="search__bar">
<unicon class="search__icon" name="search" fill="#7f7d7d"/>
&l... | 3 | 1,199 |
Mapbox : Add data layer for POIs - transportation, school and retail / grocery stores | <p>I am rendering a map using mapbox API and would like to enrich the map by displaying additional location / POI data.</p>
<p>Here's a similar example: <a href="https://github.com/patelnisarg61/Toronto-Fatal-Collisions-Analysis/blob/master/collision.py" rel="nofollow noreferrer">https://github.com/patelnisarg61/Toront... | 3 | 1,705 |
Flutter: *** 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] | <p>I am pretty new to coding, but working on a flutter app and trying to integrate the ability to share images to Instagram Stories using the <a href="https://pub.dev/packages/social_share" rel="nofollow noreferrer">Social Share</a> package. Everything works fine to generate the photo and the dynamic link (can test by ... | 3 | 1,470 |
Run git post-receive hook as user1, and checkout as user2 | <p>I'm setting up a deploy-on-git-push process on a remote Debian server. It is basically the common approach of having a bare repository with a post-receive hook which does a checkout to the web server's docroot, more or less.</p>
<p>I've used slightly simpler variations of this set up successfully for years, but thi... | 3 | 1,164 |
how to count lines in a csv file in java where the file doesn't have ".csv" extension? | <p>I want to get file lines count where file is similar to "csv" but it doesn't have ".csv" file extension. I have only filename.</p>
<p>The code i have mentioned here is the function that count file lines of only those files which have name as abc.txt or abc.csv,, but it will not read the file if the extension doesn'... | 3 | 2,044 |
Error: Unhandled Rejection (TypeError): Cannot read property 'livres' of undefined, ReactJS, Search | <p><a href="https://i.stack.imgur.com/pyFda.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pyFda.png" alt="console result"></a>I am creating a search bar. The user write his request, and when he press the filter button corresponding, it's stocked in <code>search</code>, sent via Axios, and return th... | 3 | 1,844 |
Android development in IntelliJ IDEA -v Eclipse (Starting an Activity) | <p>I am just beginning with developing Android projects and I've run into a road bump. I am starting with the developer site (http://developer.android.com/training/basics/firstapp/index.html) and my problem begins with starting a new Activity (http://developer.android.com/training/basics/firstapp/starting-activity.html... | 3 | 1,578 |
Something in this function is crashing my program! | <p>Howdy, When my program begins executing the code in case N of the switch statement it crashes. I am not sure why. Anyone care to take a gander?</p>
<p><strong>Code:</strong> (I suspect the problem is occurring somewhere in case N of the switch statement)</p>
<pre><code>#include "header.h"
void findSeats(int& ... | 3 | 3,114 |
Issue setting up spring cloud gateway | <p>I'm trying to set up spring cloud gateway for a test project but it keeps failing when i use the "lb://" url.</p>
<p>This is my pom.xml</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
</code></pre>
<p>
4.0.0
org.springframework.boot
spring-boot-starter-parent
2.4.1
com.b... | 3 | 2,420 |
unable to show two observable array by one ngFor : showing same values | <p>I have two Observable array. They have the same number of rows and columns every time. Now I want to show them by a single ngFor for loop.</p>
<pre><code>scoreCardViewProfile$: Observable<ScoreCardView[]>;
scoreCardViewBuffer$: Observable<ScoreCardView[]>;
</code></pre>
<p>These two array will be filled ... | 3 | 1,799 |
Js animate a ball wrong, slow then faster everytime | <p>When I run this code first time the animation speed is slow, then every time faster.The code moves a ball, and after you touch the screen, the ball goes to where you touched. </p>
<p>But the first time, it is very slow, then every time it goes faster. Why?</p>
<p>I was expecting a similar speed, not perfectly cons... | 3 | 1,250 |
Django markers using geoposition | <p>I use django-geoposition to manage my geodata.
in my home.html:</p>
<pre><code><!-- Add Google Maps -->
<script>
function myMap() {
{% for posts in post_list %}
myCenter=new google.maps.LatLng(34.8402781,135.592376);
var myLocation=new google.maps.LatLng({{posts.position.latitude}},{{posts.positio... | 3 | 1,399 |
Generating XML from SQL existing XSD file (complex) | <p>I have an XSD file. I get data from SQL and fill data to dataset.
note: I get 1000 records from SQL. </p>
<p>I want to make this; generate XML file exisiting xsd format. </p>
<p>Here is my XSD.:</p>
<pre><code> <xs:element name = 'automation'>
<xs:complexType>
<xs:sequence>
<... | 3 | 1,318 |
Deploying Angular2 on Heroku yields 'Uncaught SyntaxError: Unexpected Token <' on all external references | <p>I'm trying to deploy an angular4 app on Heroku. But I get errors on all my <code>.js</code> references linked from my <code>.html</code>.</p>
<p>The errors are as such </p>
<pre><code>16:29:54.613 myapp.herokuapp.com/:1 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://myapp.her... | 3 | 1,132 |
Difference in .htaccess behaviour | <p>I have finished developing a micro app with Phalcon and tried to move it to production server, but have encountered some problems with <code>.htaccess</code> rules.</p>
<p>Directory layout on the serwer is like this : </p>
<pre><code>/var/www
|- .htaccess
|- redmine/
|- wordpress/
|- (other dirs)
|- MyApp/
|- .... | 3 | 3,528 |
generating POJOs from JSON Schema for non-object types | <p>I am trying to generate POJOs from the JSON Schema of XMBC.
I do this with <a href="http://www.jsonschema2pojo.org/" rel="nofollow">jsonschema2pojo</a>.
However, nothing gets generated. It doesn't even bring me an error.</p>
<p>This is a reduced sample json schema I am trying to generate from:</p>
<pre><code>{
"... | 3 | 1,406 |
Using Ghost4j with MaxProcessCount on a tomcat causes jna error | <p>I'm trying to develop a web-service (based on jersey) which is converting a pdf document into jpeg images.
I choosed GhostScript because I have good experiences with it and it's results (especially with embedet fonts). So I searched a way to use GhostScript with Java and found Ghost4j.</p>
<p>So I put all the Ghost... | 3 | 2,371 |
My custom JMeter listener cannot work in Linux | <p>I want to save the information about sampleResult into MySQL. So I write my own listener named Performance Logger. And it can work well on my Windows. But when I move the same JMeter Script into Linux, it failed. Here are some code about my custom listener.</p>
<pre><code>LoggerVisualizer.class
public class Logger... | 3 | 1,673 |
Twitter reply-to-mentions bot programmed in Python works once and then crashes with error 400: what is the problem? | <p>I´ve been building a bot and it works exactly as intended, but only for one Tweet. Then, it waits 60 seconds, and, if it doesn´t find a new Tweet to reply to (since it´s configured to reply to the most recent Tweet), it throws an error (it´s 400 as in "400: Bad Authentication Data", but I think the issue i... | 3 | 2,801 |
Form rendering for many to many relation in symfony 4 does not work | <p>I have many to many relation between two entities Recipient and Recipient Group. I am trying to setup a form for Recipient where I must be able to add multiple Recipient Group to Recipient. But when I try to run the rendered form, I get the following error even though addXXX and removeXXX methods exist in both the c... | 3 | 2,264 |
Issue with reading and writing a name | <p>I am just learning js and have the following issue that I cannot seem to resolve. The object of the exercise is to read in the name when the button is clicked and then display a message that says "hello "</p>
<p>All of the functions are contained within the mainC div.</p>
<p><div class="snippet" data-lang="js" da... | 3 | 1,155 |
Requiring a package is causing an error | <p>Each time I am bundling scripts, I have following error:</p>
<pre><code>ERROR in ./resources/assets/scripts/main.js
Module not found: Error: Can't resolve 'datatables.net-colreorder-bs4' in '/home/vagrant/sites/laravel/resources/assets/scripts'
@ ./resources/assets/scripts/main.js 12:23-63
</code></pre>
<p>My web... | 3 | 1,115 |
Draw/erase button in java | <p>I am struggling to find a way to implement a way that whenever you click a draw button it will decide whether you are drawing or erasing.</p>
<pre><code> private void drawButtonActionPerformed (java.awt.event.ActionEvent evt) {
solveButton.setEnabled(true);
slider.setEnabled(true);
captur... | 3 | 1,875 |
Adjusting Datepicker | <p>I have small knowledge of JS, but I was assigned a task to add some functionality to page. I need to add a datepicker in <code>birthDate</code> field, but once I add datepicker function to page my, validation(Jquery validation) stop working.
Here is code:</p>
<pre><code><%@ taglib uri="http://java.sun.com/jsp/js... | 3 | 2,676 |
C# Windows Phone 8.1 GetOutputStreamAsync(...) blocking after first use | <p>i'm currently trying to create a very basic test app which should:</p>
<p>1) Broadcast "sometext" on port "1234"<br>
2) Wait a second for answers<br>
3) Return all answers </p>
<p>While the solution posted below works fine for the first time, every subsequent call blocks forever at:<br>
<i>stream = await socket.G... | 3 | 1,780 |
EOFError when open https | <p>I've been trying to use facebook graph api, though ruby raise EOFError when open api url (https://graph.facebook.com/.....)
I'm using Ruby 1.8.6 and Rails 2.2.2.
The code is as follows:</p>
<pre><code>require 'uri'
require 'https'
access_token = open("https://graph.facebook.com/oauth/access_token?client_id=app_id&... | 3 | 1,190 |
audio and seekbar in android | <p>i created audio activity with seekbar, it was played but i have problem when seekbar in progress there is cutting each 1 second in sound because i used (Thread.sleep).</p>
<p>i check another solution in Internet, all codes i checked were use same concept.</p>
<p>this is my code</p>
<pre><code>public class PlaySou... | 3 | 1,415 |
Splitting header and implementation causes significant slow-down | <p>When I split the header and implementation in c++, I found that significant slow-down occurs in some situation compared to the header-only one. The minumum working example is like below. In the case below, <code>get_sum</code> function is implemented in the header file and <code>get_sum2</code>, which is exactly the... | 3 | 1,094 |
How to boost documents matching one of the query_string | <p>Elasticsearch newbie here. I'm trying to lookup documents that has <code>foo</code> in its name but want to prioritize that ones having <code>bar</code> as well i.e. those with <code>bar</code> will be at the top of the list. The result doesn't have the ones with bar at the top. <code>boost</code> here doesn't seem ... | 3 | 1,692 |
Partial specialization of members | <p>Trying to specialize member methods.<br>
Reading this previous question: <a href="https://stackoverflow.com/q/6972368/14065">std::enable_if to conditionally compile a member function</a><br>
I can quite understand what I am doing wrong.</p>
<pre><code>#include <string>
#include <iostream>
#include <t... | 3 | 1,056 |
Trying to set different styles on two items from JSON | <p>I try to build a news app that shows on the MainPage an overview of news items.
The first 3 items need to be rendered different as the rest, using a FlatList.</p>
<ul>
<li>First item is a 100% background image with some text on it (did this with: if index === 0))</li>
<li>The second and third item needs to be backg... | 3 | 1,441 |
How to remove parent row and its items in array : jquery | <p><strong>Summary:</strong></p>
<p>I am creating a web page which shows results of user selections. First user select items from the given panel and clicks on add button. This creates a table row of selected items of the user(Just like adding items to the cart). User can remove items in the list when remove button is... | 3 | 1,461 |
Bootstrap <select> element only gets 1 value | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(()=>{
$(".userChoice").on("click",()=>{
var selectedItem = $(".userChoice").val();
//con... | 3 | 4,942 |
Web dev - setup firebase firestore question | <p>i asked here few questions before and i did always got help so here i am again,
im kinda new to HTML,CSS,JS and i just wrote some html- css -js code for single webpage and i need to add some data that i can manage (data base) i searched online and found firestore and good solution for me (if u recommand on other way... | 3 | 1,416 |
Inner join 3 table | <p>I have 6 table in my database <img src="https://i.stack.imgur.com/EzxmW.jpg" alt="booking_system">. And now I would like to inner join car_space, transaction and sport_facilities. However, I got a problem. </p>
<p>When I use these two sql command respectively, these command also can be run and I can get the result ... | 3 | 7,261 |
How to have type transfer of ChartJS configuration from a react component prop? | <p>I made a <code>ChartJS</code> component that is a simple react wrapper to correctly setup and destroy ChartJS instances with some default options:</p>
<pre class="lang-js prettyprint-override"><code>import React, {
useEffect,
useState,
VFC,
} from 'react';
import {
ArcElement,
BarController,
BarElement,
... | 3 | 2,521 |
How can we add multiple color for multiple jquery ui datepicker? | <p>I have a project in laravel. On one page I have several jQuery ui datepicker see the image below. When page loads I need to get some date from database and mark some color on calendar, based on data. At-present I can mark color only on one datepicker. How can I mark color on multiple datepicker?<a href="https://i.st... | 3 | 1,104 |
Button not working when sidenav is out | <p>I'm working on a login page on my site button for some reason the submit button isn't clickable when the sidenav is out (I'm using the materialize framework).</p>
<p>I have modified my sidenav a bit so that the overlay is removed when it is out and it doesn't close when clicked outside it.</p>
<p><div class="snipp... | 3 | 2,994 |
Spawning enemies in four different positions with a fixed trajectory in android game | <p>This is my first android game, I appreciate all the help. I want to define 4 spawning zones starting from out of the screen (left, right, up and down). Enemies coming from this areas have a fixed trajectory to the center, when this enemies come into the screen the player can move them to a specific corner, but if it... | 3 | 2,454 |
Getting error while using pip installation | <p>I am trying to install <a href="https://github.com/gunthercox/ChatterBot" rel="nofollow noreferrer">Chatterbot</a> using pip but getting following error.</p>
<blockquote>
<p>Command "python setup.py egg_info" failed with error code 1 in
/private/var/folders/nw/vxggqrcx463g3f3zxp71dc5r0000gn/T/pip-build-8wG6yW/r... | 3 | 2,440 |
How to resolve "System.UnauthorizedAccessException: Authorization for Microsoft App ID xxx failed with status code Unauthorized" | <p>I've created a simple bot using the .net framework. Messages are received but when replying, the application throw the exception below</p>
<pre><code>System.AggregateException: One or more errors occurred. ---> System.UnauthorizedAccessException: Authorization for Microsoft App ID xxx failed with status code Una... | 3 | 4,745 |
Writing geotiff is grayscale instead of color python-gdal | <p>I am trying to upscale an geotiff, using deep learning network. I read in a color geo-tiff using gdal and process each band separately and write that band back into the new geo-tiff driver. The code snippet that does this is given below.</p>
<pre><code> # Remove the scale the image and create separate image for each... | 3 | 3,861 |
Add new sheet in Excel from windows application c# | <p>Hi i want to add new sheet and populate data from data-table into excel from windows application c#.If If the excel is already existing i have to create a new sheet for the same excel and get data from db using datatable and save. while adding new sheet i get typemismatch error
<a href="https://imgur.com/6zlSub9" re... | 3 | 1,876 |
SwiftUI: NavigationLink weird behaviour | <p>I'm trying to build a store in order to navigate in a SwifUI flow.
The idea is that every screen should observe the state and push into the next one using a NavigationLink.</p>
<p>It seems to work for pushing one view, but a soon as I push several views into the stack, it starts behaving oddly: the view pops itself.... | 3 | 1,804 |
Jquery data json not showing in Html [Laravel] | <p>I want to get json data, But when the row in html code it's now showing anything
<strong>Html Code</strong></p>
<pre><code> <thead>
<tr>
<th>No</th>
<th>Waktu</th>
</tr>
</thead>
<tbody id="bodyData&qu... | 3 | 1,095 |
ReportServer database deadlock on dbo.DataSource table | <p>I get several deadlocks a day on the DataSource table with the stored procedures dbo.AddDataSource and dbo.GetDataSources. They are page level locks. Any ideas on how to alleviate the situation?</p>
<p>XML Deadlock Graph:</p>
<pre><code><deadlock> <victim-list>
<victimProcess id="process1d1d... | 3 | 1,600 |
AWS AMI Cleanup w/Ansible iterate through results array | <p>I have a previous task that creates weekly backups, labeling them with the server name followed by a date/time tag. The goal of this job is to go in behind it and clean up the old AMI backups, leaving only the last 3. The <code>ec2_ami_find</code> task works fine, but it could also return empty results for some serv... | 3 | 1,255 |
Query the database in foreach results | <p>I'm trying to build a webpage with simple status posts. I've created foreach loop to query the database and load all the posts:</p>
<pre><code> <?php
$user_id = Check::isLoggedIn();
$dbstories = DB::query('SELECT * FROM stories WHERE user_id=:user_id ORDER BY story_time DESC', array(':user_id'=>$user_id));
... | 3 | 1,535 |
Firefox html5 validation anomaly with dynamic select options | <p>Here is a simple html5 form with two select controls. Changing the selection in the first select generates a new list of options for the second select. Both have the "required" attribute, and an initially selected blank option. The odd bit is that I get a red validation outline around the second select control, with... | 3 | 1,454 |
Displaying the last object of nested relationship | <p>i'm having trouble with returning data from many to many relationship between two models. i wan't to show all <code>Currency? objects with their newest</code>Ticker<code>object related to that currency based on the</code>created_at` field. i'm wondering how i can create such an output in json?</p>
<p><strong>desire... | 3 | 1,158 |
Agile Web Development with Rails 5.1 Playground - Ch 15 Password Trouble | <p>I can't figure out something in Agile Web Development with Rails, Chapter 15 - Playgrounds question 1.
It asks <strong>Modify the user update function to require and validate the current
password before allowing a user’s password to be changed.</strong></p>
<p>I really can't understand how I can get the <em>has_sec... | 3 | 1,127 |
Cannot download any plugins with PhpStorm - "Read Timed Out" | <p>I cannot download any plugins via PhpStorm. When I select a plugin and click <strong>install</strong>, I get the following error:</p>
<p><a href="https://i.stack.imgur.com/GRaKv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GRaKv.jpg" alt="enter image description here"></a></p>
<p>Here is what... | 3 | 2,012 |
Getting a 403 when calling Azure Resource Rate API using certificate auth | <p>I am trying to create a console app that can call the <a href="https://msdn.microsoft.com/en-us/library/azure/mt219004" rel="nofollow noreferrer">Azure Resource Rate API</a> using certificate authentication. For this, I used the following branch <a href="https://github.com/HarvestingClouds/billing-dotnet-ratecard-ap... | 3 | 2,412 |
Difficulties with dependencies in maven | <p>i'm really new to creating projects in java with maven and so i've stumbled on quite a error for something really basic. I've created a maven project with the following pom.xml</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.... | 3 | 1,347 |
How to render JS to a content generated with JS? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/2592092/executing-script-elements-inserted-with-innerhtml">Executing <script> elements inserted with .innerHTML</a> </p>
</blockquote>
<p>I have a problem, when generating content with Java Script, an emb... | 3 | 1,064 |
How to send values form javascript to php | <p>I created two files, one is an html and the other is a php file. I have created an array in java script. In java script, I create a dynamic table, and get values from the HTML file and pass into the array. Also I created an on click event. Whenever the button is clicked from the html page, I want to send a java scri... | 3 | 9,035 |
Cannot close a running event loop | <p>What is the way to close the discord.py bot loop once tasks are done?</p>
<p>Added:</p>
<pre><code>nest_asyncio.apply()
</code></pre>
<p>Tried:</p>
<pre><code>bot.logout(), bot.close(), bot.cancel()
</code></pre>
<p>Code:</p>
<pre><code>async def helper(bot, discord_user_feed):
nest_asyncio.apply()
await bot... | 3 | 1,400 |
R shiny: slickROutput disappears when switching tabpanel() | <p>I am making a <code>Shiny</code> app with <code>tabPanels</code> embedded in a <code>navbarPage</code>.
In each <code>tabPanel</code>, I generate a serie of image. When switching from one panel to the other one, the image loaded in one of them disappear.</p>
<p>I have to "refresh" manually the page to see ... | 3 | 1,751 |
Html5 - Overlapping of footer over the main content | <p>I have this html file:</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width = device-width">
<meta name="description" content="Some training on web design">
<meta name="keywords" content="web, design">
<meta name="author" content=... | 3 | 2,317 |
WPF elements are in visual tree, but not animated? | <p>I'm trying to figure out how to generate animations procedurally. I create a Line, create four animations, and associate the line's endpoints to the animations. I add the animations to a storyboard, then I run the storyboard.</p>
<p>The panel itself is visible (I could change the background orange, and that chang... | 3 | 1,242 |
React: override internal components with custom component | <p>I have a modal that is completely self contained. The modal is opened via going to the modal route and all the functionality to close the modal from button or outside clicks is within the modal component. Basically the modal is not controlled by any parent passing state. I was given a task of making the modals butto... | 3 | 1,238 |
Passing DateTime variable to controller causing an error | <p>I am building a small prediction feature into my application. Running into an issue which I cannot seem to understand. I am calculating some basic results and returning a Dictionary containing the 2 results. Thought this would be a good way to get back both results from one function instead of calling two. I have fo... | 3 | 2,474 |
notifyDataSetChanged() not updating RecyclerView Adapter | <p>I am working on a very simple implementation of a RecyclerView that displays data stored in a ViewModel. I am still very new to Android development and am trying to learn the fundamentals. In this situation, all the data to be stored in the ViewModel is stored in a simple list, later on I want to use Room to do thi... | 3 | 1,408 |
SQL Grouping columns by row | <p>Struggling with the SQL query to convert the data I have into the required format. I have an event log for machines and would like to associate the start and stop time and event outcome in the same row.
I am unable to use LAG due to the version of SQLServer. Any help appreciated.</p>
<p>current dataset:</p>
<pre><co... | 3 | 1,050 |
How do I create a function that will return a value in a dictionary for each row within a data sheet using Python? | <p>I need to create a new column in my table for a state region that populates a region for every row of data (each having a state). How do I write a function to call upon a dictionary for each row item?</p>
<p>I have about 30,000 row items, and I believe a loop would take too long. I am certain there is some way to d... | 3 | 1,708 |
Binding column width programmatically in UWP? | <p>I am trying to create columns that can be resized by the user during runtime just like in excel. However, I am creating fields dynamically and don't know how to bind the programmatically created column's width to the width of my column created in xaml.</p>
<p>Question: How can I bind column width programmatically ra... | 3 | 3,336 |
Valgrind invalid read and segmentation fault with QApplication | <p>I'm stuck with run-time errors in my Qt application. This is part of my Valgrind output. There is more before it but it is a lot to post.</p>
<pre><code>==13659== Invalid read of size 8
==13659== at 0x75E4085: QCoreApplication::arguments() (in /usr/local/Qt/5.2.1/gcc_64/lib/libQt5Core.so.5.2.1)
==13659== by 0... | 3 | 3,076 |
Android: Detect single fragment viewpager with Tab | <p>I have a problem with android a <code>ViewPager</code> setup with <code>FragmentPagerAdapter</code> and <code>TabLayout</code> </p>
<p><code>TabLayout</code> works fine. But, the code in all tabs run simultaneously. I want the code in the currently selected tab to run</p>
<p>This is my activity</p>
<pre><code>pac... | 3 | 1,919 |
Getting the check changed event for a dynamically created Radio Group within a ListView | <p>We are working on a project where there is a questionnaire with dynamically created radio groups with radio buttons.At the bottom of the listview we have placed a button and we need the selected values from the radio buttons on clicking the button.<strong>The issue is how to get the selected Radio button values.Also... | 3 | 1,795 |
HTMLEditorExtender inside a repeater - buttons not rendering correctly | <p>I have a <code>HTMLEditorExtender</code> inside a repeater:</p>
<pre><code><asp:Repeater ID="rptEditItem" runat="server">
<HeaderTemplate>
<table border="0" style="width: 100%" class="DefaultText">
</HeaderTemplate>
<ItemTemplate>
<tr>
... | 3 | 1,078 |
key error value 0 on modelformset when queryset is empty | <p>i want to create multiple instances of a model using a modelformset.
but when the queryset is empty and the parameter <code>extra</code> is greater than 0 it raises this error:</p>
<pre><code> Environment:
Request Method: GET
Request URL: http://localhost:8000/alta_socies/proces_alta_projecte_autoocupat/adrece... | 3 | 4,021 |
How to pan and zoom svg file in shiny app | <p>I have the shiny app below in which I want to pan and zoom the .svg.</p>
<pre><code>library(shiny)
library(DiagrammeR)
library(tidyverse)
# probably don't need all of these:
library(DiagrammeRsvg)
library(svglite)
library(svgPanZoom)
library(rsvg)
library(V8)# only for svg export but also does not work
library(xml2)... | 3 | 1,088 |
Processing touches on moving/ animating UiViews | <p>I currently have the problem that touches are not always identified correctly,
My goal is to have 3 gestures,The 3 gestures are</p>
<ol>
<li>A user can tap on a view and the tap gets recognised,</li>
<li>A user can double tap on a view and the double tap is recognised,</li>
<li>A user can move their finger on the sc... | 3 | 6,844 |
How to add a word per minute calculator to a website using Javascript, html, or css? | <p>Iv'e been trying to complete a typing test website for some time and am stuck on how to add a word per minute counter. I have tried multiple ways but none of them work. What I want it do do is give the words per minute after the user types a prompt correctly.
Code is below:</p>
<p>HTML:</p>
<pre><code><!DOCTYPE h... | 3 | 1,770 |
When using Google's Cloud Speech and sending Speech Contexts the returned transcriptions are not returning expected results | <p>Ref see: <a href="https://issuetracker.google.com/u/1/issues/128352542" rel="nofollow noreferrer">https://issuetracker.google.com/u/1/issues/128352542</a></p>
<p>We are having an issue where certain words added in the user's speech context are not being returned or prioritized. </p>
<p>When using phrase hints, the... | 3 | 1,977 |
Problem in debugging templates. Build fails specifically for Linux GCC 7, GCC 6, GCC 5, GCC 4.9 error: template argument 1 is invalid | <p>My Travis is only failing for Linux GCC 7, GCC 6, GCC 5, GCC 4.9 with error</p>
<pre><code>libs/astronomy/test/coordinate/equatorial_coord.cpp:22:57: error: template argument 1 is invalid
RightAscension<double, quantity<bud::plane_angle>>
... | 3 | 1,831 |
We can't do account linking using iOS's Google assistant app | <p>I want to realize account linking to Google account with Google Home.
On realizing this, our app's flow of account linking follow to
<a href="https://stackoverflow.com/questions/50931590/google-home-authorization-code-and-authentication-with-google-account/50932537#50932537">this page</a>.<br></p>
<p>It page shows t... | 3 | 1,357 |
Regex Date and Time Delimitter and Sort | <p>My logs are getting stored in multiple Sun based unix servers.</p>
<p>So logs of Req1 might be in server1, Req2 and Req3 might be in server2 and then Req4 could be in server1 again. There is no proper sequence as it is stored based on what load balancer decides.</p>
<p>We use grep to get the data from all the server... | 3 | 1,135 |
What kind of CSS positioning can I use that isn't going to have (many) side effects? | <p>I'm currently building a website and and I can't find a CSS positioning method that works, meaning any CSS positioning element that doesn't make other HTML elements behave weirdly. Is there any CSS positioning methods that would position an HTML element precisely, accurately and not cause (many) issues with other e... | 3 | 3,047 |
PHP simple XML parser not returning data | <p><strong>I cannot display data from an XML file using the simple PHP parser. How do I fix it?</strong></p>
<p>I cannot find the problem to this simple task and I am completely stuck. I am following a w3schools.com tutorial and the code won't display the data. I am using an apache web server on my raspberry pi.</p>
... | 3 | 1,292 |
C#, ASP.NET MVC: Multiple image upload and uploaded images all remain the same problem | <p>I'm trying to upload multiple images, I managed to upload as many images as I wanted. My only problem is that all the images I chose duplicate by copying the first one. I could not find the error in my codes.</p>
<p>My <code>UploadImage</code> method:</p>
<pre><code>public static string UploadImage(string serverPath... | 3 | 1,470 |
Golang REST API Deployment on AWS EKS Fails with CrashLoopBackOff | <p>I'm trying to deploy a simple REST API written in Golang to AWS EKS.</p>
<p>I created an EKS cluster on AWS using Terraform and applied the AWS load balancer controller Helm chart to it.</p>
<p>All resources in the cluster look like:</p>
<pre><code>NAMESPACE NAME RE... | 3 | 4,106 |
Canvas returns blank image | <p>I have simply a button 'Create screenshot' and live stream 'rtsp-relay'. When that button is cliked it should take a snapshot or screenshot and show that under image, my problem is it shows blank image, i have tried to do this in two ways and both of them show blank image (live stream works fine).</p>
<p>code works... | 3 | 1,464 |
passing values to bootstrap modal | <p>I am trying to pass values to my <code>modal</code> in html using <code>JQUERY</code>.</p>
<p>I have this:</p>
<pre><code><a class="dropdown-item" href="javascript:void(0);" data-toggle="modal" data-target="#clientStatus" data-clientCurrentStatus="inactive">Cha... | 3 | 1,421 |
create , publish vuejs component on npm using vue/cli version 4 and use it in typescript based class style vuejs project | <p>i am learning vuejs and i am using latest versions of it like vue/cli version 4.x.x and now i want to perform a task which is like:</p>
<ol>
<li><p>I need to create a simple header using vue/cli version 4.x.x which will take an array inside headers variable as a
props.</p>
</li>
<li><p>Now, i want to publish it ove... | 3 | 3,160 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.