title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
java dom modify xml file | <p>I want to add some nodes into an existing xml file.
The xml file structure looks like:</p>
<pre><code><?xml version="1.0" encoding="utf-8" standalone="no"?><?xml-stylesheet type="text/xsl" href="new2.xsl"?><patients>
<patient>
<stoixeia_astheni>
<arithmos_eksetasis&g... | 3 | 2,914 |
TSQL: Count on outer joined tables is producing incorrect results | <p>Producing a report on SQL Server 2008. I have joined one table with five others using <code>LEFT OUTER JOIN</code>. When I run a count against those other tables, I get incorrect data. I know WHY, but I'm unsure how to fix it.</p>
<p>The query is tracking admissions candidates for a school. As they move through the... | 3 | 1,050 |
Facebook share button does not work in some situations | <p>I have a blog and I placed a facebook share button next to all my latest posts which appear on my landing page. (Title, Image, Short description, Facebook share button)</p>
<p>This share button looks like this:</p>
<pre><code><a href="https://www.facebook.com/sharer/sharer.php?u=http://www.myblog.fr/article-pat... | 3 | 1,209 |
Jsonschema validate | <p>I am working on a Json schema validation and below is the code. I need to have a schema check for element 'pii'.</p>
<p>The values should only be columns defined in columns (field1,field2 or field3) with a combination of none to all column names.
The columns names and number of columns are dynamic and differs for ev... | 3 | 1,544 |
why in my methods the methods are being calculated only after the second digits is placed in the input values | <p>error:-The specified value "NaN" is not a valid number. The value must match to the following regular expression: -?(\d+|\d+.\d+|.\d+)([eE][-+]?\d+)?</p>
<p>when i place the values in input values the in quantity and in rate, then expected result of input likes should be 4*5 = 20 but it doesn't do so instead 4*5a w... | 3 | 1,044 |
Why do I get a 403 error when trying to start Grails 3.1.12? | <p>I'm trying to run Grails 3.1.12 on Mac OSX (10.11.5).</p>
<p><code>grails -version</code> gives me the following output:</p>
<pre><code>| Grails Version: 3.1.12
| Groovy Version: 2.4.7
| JVM Version: 1.8.0_71
</code></pre>
<p>And then if I run <code>grails --stacktrace --verbose</code> I get this:</p>
<pre><code... | 3 | 1,339 |
WiFi broadcast receiver not delivering in Android 7.1.1 | <p>Using Android-7.1.1, SDK-25.3.0</p>
<p>I am having problems with the WiFi-broadcast-receiver. Until Android-7.0.x everything worked well. But now, having updated to Android-7.1.1. with its newest SDK, my WiFi-broadcast-receiver does not return any values anymore.</p>
<p>The <code>List<ScanResult> resultList ... | 3 | 2,782 |
JSF and Maven simple example. Unable to print managed bean message to the xhtml | <p>I am new in JSF and I am trying to do a basic exercise: Print a ManagedBean message on xhtml file.
I've searched some information that can help me but no luck.</p>
<p>This is how my files look like:</p>
<p><strong>EngineController.java (where my managed bean is)</strong></p>
<pre><code> package java;
impo... | 3 | 3,315 |
java wso2esb developer studio | <p>I have installed Eclipse Luna( wso2developer studio) but when i open eclipse i am facing this error An error has occurred See the log file null.</p>
<p>Log file:</p>
<pre><code>!SESSION 2015-10-13 01:50:23.162 -----------------------------------------------
eclipse.buildId=4.4.2.M20150204-1700
java.version=1.7.0_1... | 3 | 2,533 |
Android Crash SQLite Unable to Replicate | <p>I have an Android App published in which I updated to a new version adding a SQLite database. All of my testing seems to work fine. However, since I've had about 300 users update since release in past 2 days, I have had 9 users reports the exact same crash. </p>
<p>The error comes on the very first call to the S... | 3 | 1,636 |
Passing around/Serving Large Model Object in Poltly Dash and using it in multiple callbacks | <p>I have what I believe is a relatively technical question about dash callbacks and enabling user interaction with a large simulation model.</p>
<p>Currently I have in my repository an app directory which contains all things plotly <code>dash</code> related and an <code>src/engine</code> directory which contains all t... | 3 | 1,204 |
How to plot a graph that creates vertical lines with labels that change based on input parameters | <p>I am witting a program that plots spectral data and i need to know the given Redshift, what i am attempting to do is place vertical lines where the elements should be with labels to know which one it is on the graph. however i am unable to find an effective way to plot these lines but also their corresponding labels... | 3 | 1,170 |
postfix operators linked list generic node iterator | <p>I am trying to iterate through a linked list node iterator. The code has shown no error in compilation, however, the data placed in the linked lists node does not print. Here are the codes.</p>
<pre><code>#pragma once
using namespace std;
template <class T>
class ListNode {
public:
T fData;
ListNode*... | 3 | 1,213 |
Hyperledger 2.1 with Node SDK: Can't invoke the chaincode | <p>I am using Hyperledger Fabric 2.1 container in server-1 and node SDK in server-2. My <code>connection-org.json</code> file is given as:</p>
<pre><code>{
"name": "first-network-org2",
"version": "1.0.0",
"client": {
"organization": "... | 3 | 1,798 |
C: Queue and Memory Limit Excedeed | <p>I'm a <code>C</code> beginner and decided to participate in a small online contest in order to practice.</p>
<p>In the current problem I'm asked to write a queue with a <code>struct</code> that responds to the commands <code>PushBack</code> and <code>PopFront</code>.</p>
<p>The input consists of</p>
<ul>
<li>A nu... | 3 | 1,896 |
Using java, json, ajax and html to display image/name pairs in a row - currently displays in a column | <p>I am trying to display some images with their names below them using json. I want the image/name pairs to be next to each other. At the moment they are one under the other.</p>
<p>HTML:</p>
<pre><code> <form data-toggle="validator" role="form" id="selectForm">
<div class="row">
&... | 3 | 2,027 |
Can't append file extension to array of string in Bash - Terminal Mac OSx | <p>I have this CSV with 2 column: one contains names and the other file names with no extension. </p>
<p>When I parse it and store the values in 2 array I'd like to add a path and PDF extension to the file names but when I do it, I get something like this:</p>
<pre><code>Giacomos-MBP:test Jack$ ./test.sh -p e.csv -a ... | 3 | 1,205 |
Magento - No invoice on Payment method cash (Mindstretch modules) | <p>we are maintaining a webshop based on Magento which has payment modules installed from Mindstretch. We are using the 'cash on pick-up' option, but the problem is that the module creates an invoice when the order has been send in. However, when 'cash on pick-up' is selected it should not create an invoice. This shoul... | 3 | 6,240 |
Red Black Tree delete malfunction in C | <p>I have almost completed a red black tree but my delete is malfunctioning. It may delete a node it may not. After i delete the root and press the print option my screen is spammed of nodes that i already have in the tree. in a test tree of <code>2,1,7,5,8,11,14,15,4</code> if i delete <code>root=7</code> and press in... | 3 | 1,359 |
cannot make static reference error in line 42 | <p>The code is to get contacts list. But for one error. Pleas help me resolve.
The mContext on line 42 returns and error "cannot make a <strong>static reference to the non-static</strong> method <code>getapplicationcontext()</code> from the type contextwrapper".</p>
<pre><code>package com.example.demo;
import java.i... | 3 | 1,478 |
Renaming the field with special character with Simple Message Transform Kafka Connect | <p>I'm using SMT in Splunk Sink Connector and having trouble with renaming the field. I need to change name of the field from, for example, "metric1" into "metric_name:cpu.usr".</p>
<p>That's how configurations of my connector look like:</p>
<pre><code>SPLUNK_SINK_CONNECTOR_CONFIG='{
"name&quo... | 3 | 1,573 |
How to inject logger in an extended class (XClass) in Typo3? | <p>I want to extend the \TYPO3\CMS\Backend\Controller\NewRecordController in Typo3 and log something to the logging system. The Logging section in Typo3 help says that I should instantiate the logger by injecting LoggerInterface to the constructor of my class. So my code is something like this:</p>
<pre><code><?php
... | 3 | 1,079 |
Swagger with django - why am I getting a missing coreapi.Document error? | <p>I'm trying to get a nice swagger UI working for a django webserver, but am running into a cryptic error.</p>
<p>urls.py</p>
<pre><code>from django.urls import path
from djangofun import views
from rest_framework.schemas import get_schema_view
from rest_framework_swagger.renderers import SwaggerUIRenderer, OpenAPIRen... | 3 | 1,249 |
Error creating bean with name 'blJaxrsObjectMapperProvider' and 'blJaxrsObjectMapperProvider' | <p>I build a project on JBoss 7.0 and 7.1, but I receive the following error when I try. I'm waiting for your help.</p>
<p>JDK 1.7</p>
<p>Thanks</p>
<p>11:47:16,733 INFO [stdout] (MSC service thread 1-10) [ WARN] 11:47:16 MergeXmlWebApplicationContext - Exception encountered during context initialization - cancelli... | 3 | 4,220 |
unable to load template file using spring and tile integration | <p>I am new to Apache tiles, trying to configure it in spring 4. But the templates, i am extending is not visible in my jsp page.For ex: If i am hitting url "/admin", then content of admin.jsp is visible, nothing else.
blow is the code snippet.</p>
<p><strong>application-context.xml</strong></p>
<pre><code><beans:... | 3 | 1,343 |
JSON Trouble cannot convert to JSONArray | <p>I know that there are many answers about JSON Arrays but in this case the difference is I found an Android example using JSON when I run it works perfectly, it has 3 classes. Each of them makes a PHP request to a website, which returns a JSON, then the program parses it and makes a list view, my problem is when I ru... | 3 | 8,473 |
Traverse JSON data structure into tree in java | <p>I need to build a tree from JSON. The JSON structure reads, for every restProjectLevel : restProjectLevels I have an id = level were on. A sequenceNr = root or child. For every restProject : restProjects I have an id = projectId and a projectIdHook = the projectId that's attached.</p>
<p>I think the JSON data will ... | 3 | 2,715 |
How to dynamically add widgets on a different screen depending on which button is pressed if the buttons were added dynamically as well? | <h1>The Problem</h1>
<p>I'm attempting to create dynamic buttons tied to "pages" in my program. Each button and page inherits a name from a database that I have tied to the program. In this case, I'm having trouble adding widgets to a screen and changing to that screen on button press. So far, I'm able to imp... | 3 | 1,558 |
Using lambda to provide stack-based context (eg. path for file manipulation) | <p>I've though of a subtle way (which might have already be implemented and discussed) to do the equivalent of this in Groovy (taken from the <a href="https://stackoverflow.com/questions/25565020/is-java-lambda-expression-is-similar-logic-of-groovy-closure#comment39927502_25567047">Groovy documentation here</a>) and I ... | 3 | 1,898 |
Wrong databinding to tag id making Bootstrap nav tabs fail | <p>I am using the nav-tab class in bootstrap but I have these tabs as content to an accordion's panel body. I'm using Ng-repeat to fill in the number of tabs and the content of the tags. </p>
<pre><code><div class="panel-body">
<ul class="nav nav-tabs">
... | 3 | 1,462 |
Undefined index solved using isset, but cannot insert data in database | <p>I have already used <code>isset</code> function to erase the undefined index, but problems occur on other function such as when I submit my data into my database in localhost server it cannot be seen or inserted.
**</p>
<pre><code> <?php
$con = mysqli_connect ('127.0.0.1','root','');
if ... | 3 | 3,985 |
Why do my Firebase functions always have an undefined auth in the context object? | <p>I have this configuration in 2 different projects (Frontend + Backend) that run locally.
I'm trying to figure out how can I use context.auth to be working automatically as it is mentioned in the documentation.</p>
<p>So far, the only way that all this is working for me is if I do this in the backend:</p>
<pre><code>... | 3 | 1,130 |
Multiple Views on one Container View | <p>I currently have some coding in place that I followed from a tutorial to allow multiple view controllers inside one container view and the use of custom segues with identifiers to present a new view controller when a row in a table is selected.</p>
<p>I am coding in xamarin.ios</p>
<p>Now I have the row selected p... | 3 | 1,770 |
Perl regex & data extraction/manipulation | <p>I'm not sure where to start with this one... my client gets stock figures from his supplier but they are now being sent in a different format, here is a sample snippet:</p>
<pre>[["BLK",[["Black","0F1315"]],[["S","813"],["M","1378"],["L","1119"],["XL","1069"],["XXL","412"],["3XL","171"]]],["BOT",[["Bottle","15451A"... | 3 | 1,167 |
Class and interface design. Method not determined | <p>I've created a super class (abstract) as it and its child classes inherit data from an interface (named Profitable). During compilation, an error is returned where it does not recognize method calcuateRevenue(). The method is declared in the interface, and then it is defined in the child classes (each class uses dif... | 3 | 2,013 |
R include "#" in R manual hyperref | <p>I am attempting to include a hyperref link in R documentation using roxygen2 and devtools in a repo. <a href="https://github.com/trinker/dummy" rel="nofollow">Here's a dummy version</a>.</p>
<pre><code>#' Test
#'
#' Test 2
#'
#' @param x An object
#' @section Suggestion: Looky here:
#' \enumerate{
#' \item{\... | 3 | 1,326 |
Extract Data from API and show in another page | <p>This question may sound silly to some people, but I am really confused on how to do it</p>
<p>I have 3 file: App.js, HomePage.js and Profile.js</p>
<p>App.js :</p>
<pre><code>import React from "react"
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import HomePage fro... | 3 | 1,735 |
sending e-mail via exchange unsuccessfully | <p>I can't find anywhere where I have a problem sending emails, it only happens to some users, while for others everything normally works with this code:</p>
<pre><code> Dim service As New ExchangeService(requestedServerVersion:=ExchangeVersion.Exchange2013_SP1)
Sub SendMail(ByVal Mailadressen As List(Of String), B... | 3 | 1,117 |
How to remove the gap after spanning columns in grid? | <p>I was trying to do a shape using grid instead of flex and that is to make the first article span two columns and the other two article be under the first article, when i spanned the two columns a gap showed up between the second and third article elements, here's the code below, please help.</p>
<p><strong>html</str... | 3 | 1,029 |
Cannot npm run dev. cross-env: not found . I have put path. however it says not find | <p>My project is not able to do <code>npm run dev</code>.
cross-env: not found .error happened.
I changed my package.json.
below</p>
<pre><code> "private": true,
"scripts": {
"dev": "npm run development",
"development": "node node_modules/cr... | 3 | 1,341 |
Using keycloak as an IdP when building a Rest API - the protect() method returns HTML | <p>I'm trying to build a Rest API in NodeJS and I want to use Keycloak to secure it.</p>
<p>I'm currently using keycloak-connect from npm to integrate it.</p>
<p>The problem is that when an Authorization token is not attached to the Request at all, I get this page as a response in Postman and I don't want that.</p>
<pr... | 3 | 1,373 |
Unable to render flat list while searching | <p>I have a list view in which list item component is designed by me.
If I render listItem alone it is working fine but after integrating ith with SearchBar I am not able to render them even though am able to get object matching a particular search</p>
<h3>SearchListItem</h3>
<pre><code>import React from 'react';
imp... | 3 | 2,143 |
_mysql_exceptions.IntegrityError: (1215, 'Cannot add foreign key constraint') | <p>I use the Ontonotes DB tools, but I encounter a problem.</p>
<p>I read its document, and it say that this tool works well on mysql 5.0. However, I can't find this version. So, I install mysql 5.7. This problem appears, and the problem is like this:</p>
<pre><code>python on/tools/init_db.py --init ontonotes localho... | 3 | 1,335 |
CUDA memory allocation performance | <p>I'm working with image filters on CUDA. Image processing is much faster than it is on CPU. But the problem is that the allocation of the image is really slow.</p>
<p>That is how I allocate memory and set the image.</p>
<pre><code>hr = cudaMalloc(&m_device.originalImage, size); ... | 3 | 1,206 |
Merge Sort - Wrong Output | <p>I have just implemented Merge Sort in C. In terms of logic I think my code is right. Although, the output is wrong. And the output is not the number I have in the original array. That is what I find odd. Please help me. The output I receive is: -1 0 0 -1 0 4.</p>
<p>Here is the code:</p>
<pre><code>#include <st... | 3 | 1,044 |
Bootstrap 3 - Img on top of Img when resizing | <p>I have been using the code from <a href="https://stackoverflow.com/questions/48474/how-do-i-position-one-image-on-top-of-another-in-html">this</a> post to place two images (fbook icon and a banner) on top of a main poster image. This is how the code looks like in my bootstrap index file:</p>
<pre><code> <div c... | 3 | 1,155 |
Getting count of same fileds in Table SQL | <p>I have 3 tables </p>
<pre><code>1)question
2)options
3)answers
</code></pre>
<p>Table 1 contains list of multiple choice questions. Table 2 contains multiple choices for the question. </p>
<p>Consider an example, I have the question "Which game do you like most?"</p>
<p>It is stored in table 1 with id 1. For t... | 3 | 1,026 |
Python: Tkinter and pyplot to replot data | <p>I am trying to write a simple program that reads the values of three different widgets and plots a graph of a function depending on what the input values are. I run into the following problems:</p>
<p>1) On the button press I get the error "App_Window instance has no attribute 'refreshFigure'"</p>
<p>2)On exiting ... | 3 | 1,485 |
Java tile based map from array positioning | <p>I don"t understand why my code is producing what is shown below. I want the tiles to be aligned in the window. The window size is set in the main class:</p>
<pre><code>this.getContentPane().setPreferredSize(new Dimension(WINDOW_X, WINDOW_Y));
</code></pre>
<p>This is my class for the map.</p>
<pre><code>public cl... | 3 | 1,733 |
javascript - Cannot update a component while rendering a different component warning | <p>I am getting the following warning:</p>
<p><strong>Warning: Cannot update a component (Container) while rendering a different component (Form). To locate the bad setState() call inside Form</strong></p>
<p>When I delete dispatch in if in form.js, the error does not appear, but I need to dispatch.</p>
<p>How can I so... | 3 | 1,466 |
How can I affect the state of just one individual component(card) when i have multiple versions of that component? | <p>Current situation:
I have a card component called LockedCard.
The LockedCard is rendered to the page by being mapped using stored database information. It is on Home.js that these multiple cards exist.
So it is rendered to the page as multiple separate versions of itself.
On Home.js I have the state of locked: true... | 3 | 2,315 |
Make responsive views in android | <p>I'm having much trouble with android responsive design. In web design we can use percentage as view size but in android we don't have such thing.
No matter I use ImageButtons or normal Buttons or anything else when I change "device for preview" my hole design will be messy cause the width and height won't change dyn... | 3 | 1,237 |
Why does hypothesis consider this code slow? | <p>Hypothesis complains vehemently that this was slow:</p>
<pre class="lang-py prettyprint-override"><code>@composite
def f_and_g_and_padding(draw, in_channels = channel_ints, out_channels = channel_ints, fs = shapes_2d, fill=None, elements=well_behaved_floats):
shape_f = draw(basic_shape)
padding = draw(shapes... | 3 | 1,341 |
Train/Test samples are not random when downsampling R | <p>My data set consists of information collected from inpatients on their satisfaction about the services they received at the hospital. Data looks as below (only a set of variables are mentioned here);</p>
<pre><code> $ Advised : Factor w/ 2 levels "0","1": 2 2 2 2 2 2 2 1 2 2 ...
$ Ov... | 3 | 1,602 |
Even splitting of a group to within 1% | <p>I have been tasked with taking a group of customers and splitting them into two equal groups for each store location. The result set requested would have the two groups for each store location within 1% of each other on customer count, within 1% of each other on order count, and within 1% of each other on amount ord... | 3 | 1,443 |
knex.js - reading then updating throws an Error | <p>I'm trying to chain read and update operations. First I read (fetch) data from the database based on the <strong>id</strong>, then I change it and want to update the data in the database as well but I get a <code>Unhandled rejection Error: There is no pool defined on the current client</code> error.</p>
<p><strong>... | 3 | 1,226 |
logcat error can't find the error | <p><strong>This is my main activity, this is the code for camera filter. I didn't figure it out any error. but when i run this code it is crashing in my real device.can any one help in this please where is the error and what is error belongs to. I am attaching the log cat error as a pic. please find it</strong></p>
<p... | 3 | 9,641 |
Unable to assign series to Highcharts even after the data is correctly decoded | <p>I am getting json decoded data back from the server, and using $.parseJSON to decode it. Subsequently, assigning it to the series in high charts. Everything seems okay. No console errors, but the chart won't display. </p>
<p>Here is the code</p>
<pre><code> <!DOCTYPE html>
<html lang="en">
<head>... | 3 | 1,082 |
$routeProvider and angularJS? | <p>Ok I have a simple web app that I'm trying to update with route provider it works fine when click on the li list on page but when i refresh the page it just give me a 404 it looks like it's trying to access the url instead of going to root and passing in the template...
why?</p>
<pre><code>'use strict';
angular.m... | 3 | 1,694 |
ListView with Custom Layout including two RadioButtons | <p>I am tryin to make a quiz app with translations. So there are two ArrayLists with Question Loaded in differnt languages. </p>
<p>I can show them in the List View as well. My problem is when I click on One Radiobutton I want the other Radiobutton to get selected as well. </p>
<p>I am using a ListView with a custom ... | 3 | 3,025 |
Extending the functionality of std::vector<uint8_t> - namespace, composition or inheritance? | <p>Very often I need to provide a <code>uint8_t</code> array to some third-party library. Usually the third-party library asks for a <code>uint8_t*</code>, together with a length argument. Generally I use a <code>std::vector<uint8_t></code> and use its <code>data()</code> and <code>size()</code> methods to get th... | 3 | 1,671 |
A script to update time | <p>So, I have a script that fetches the date and time, but in standard string format. Now, when I set the date via date -s "Feb 11 2021 8:43:00" the shell allows it. But when that same string is attempted to be inserted by my script, it doesn't work and instead throws this error:</p>
<pre><code> #!/bin/bas... | 3 | 1,232 |
How I can test what paged list return error during response? | <p>I am trying to test error in PagedList's data source (when load new group of data). My DataSource looks like that:</p>
<pre><code>package com.ps.superheroapp.ui.character_screen.list
import androidx.paging.PositionalDataSource
import com.ps.superheroapp.api.MarvelApiService
import com.ps.superheroapp.objects.Sched... | 3 | 1,108 |
How to solve "Error: tool" with RSAGA? | <p>I am using R 3.1.1 on Ubuntu 14 64 bit version. I installed SAGA GIS 2.1.2 and RSAGA 0.93-6.</p>
<p>So far all seems to work fine.</p>
<p>rsaga.env() works, I use: </p>
<pre><code>work_env <- rsaga.env(modules='/usr/lib/x86_64-linux-gnu/saga/')
</code></pre>
<p>because on the 64 bit the modules are located so... | 3 | 1,549 |
SciKit-Learn Text Classification from ODBC | <p>I'm trying to adapt <a href="http://scikit-learn.org/stable/auto_examples/document_classification_20newsgroups.html" rel="nofollow">this example</a> to some social media data I have in a SQL server database.</p>
<p>I've intentionally forced both the training and test sets to only have social media posts that contai... | 3 | 1,038 |
What's the Correct Way to Run Code After Event Handlers? | <p>I am deriving a class from <code>Gtk.Button</code> that is supposed to run some code when the button is clicked, but only <em>after</em> the user-defined event handlers.</p>
<p>Based on .NET conventions, this wouldn't be a problem. The following exemplary Windows Forms code shows a subclass of <code>System.Windows.... | 3 | 2,351 |
Highchart with dynamic data | <p>I am trying to generate chart when a user click on link so the data.php get data from db based on user request and redirect user to chart.php to generate the chart while user is redirected the chart is totally blink.</p>
<p>Data.php file code bellow</p>
<pre><code><?php
include('../../conn.php');
@$query = $c... | 3 | 3,160 |
How to work external javascript in ASP.NET SignalR? | <p>I am new to asp.net signalR and I am trying to allow number of users to draw on canvas. The drawing logic is in a separate js file and I do not understand how to do it....</p>
<p>Here is my html code</p>
<pre><code><html lang="en">
<head>
<title>Finger Painting</title>
<script src="~/Sc... | 3 | 1,251 |
quicker way to run this simple c++ program (sort array of structs) | <p>This program is going very slowly when I call the sort arrays function. If i print out elements of the array before it is sorted it runs in seconds. If not, it will take sometimes a minute to run with a farily short text file. My first command line argument this program takes is a "book" (a text file with all lo... | 3 | 1,881 |
React application returning an empty div when deployed on github pages | <p>I have been working on deploying the website I am working on to github pages but It seems to return an empty div when deployed. when served with <code>npx serve build</code> it displays all information fine, and is displays on local host normally but just returns a blank div when deployed on github pages.</p>
<p>ste... | 3 | 1,162 |
:IPythonCellExecute does not send code to terminal using neovim | <p>I installed <a href="https://github.com/hanschen/vim-ipython-cell" rel="nofollow noreferrer">vim-ipython-cell</a> and set it up with tmux. When i now try to send a cell to the terminal using for example <code>\+c</code> the command <code>:IPythonCellExecuteCell</code> shows up but there is nothing in the IPython ter... | 3 | 1,828 |
Understanding subtleties of dynamic programming approaches | <p>I understand that there are mainly two approaches to dynamic programming solutions:</p>
<ol>
<li><p><strong>Fixed optimal order of evaluation</strong> (lets call it <strong>Foo approach</strong>): Foo approach usually goes from subproblems to bigger problems thus using results obtained earlier for subproblems to so... | 3 | 3,766 |
Firebase ML Kit does not detect faces | <p>I am using Google Firebase's ML Kit to detect facial contours of images captured from the phone camera. However, it doesn't actually detect any faces. I've verified that the image was captured and saved properly from the camera by displaying the image in an ImageView. I also made sure to add </p>
<pre><code> <me... | 3 | 1,154 |
Are there any DOM/Browser API events or callbacks that are immediate (interrupting the current flow) | <p>Most JavaScript/HTML/DOM/Browser callbacks and events are not immediate or not reentrant (not sure that's the right word here). What I mean is even if an event comes in it is added to a queue in the browser and not processed until after the current event exits. </p>
<p>As an example if I try to load an image</p>
<... | 3 | 1,196 |
Function template bizzare problem | <pre><code> // UsingDirective.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
#pragma once
#include <type_traits>
#pragma region CheckForFailureSignalPolicy
template<class Exception>
... | 3 | 1,997 |
G++ create a share library which depends on GDAL | <p>I follow this tutorial: <a href="https://www.baeldung.com/jni" rel="nofollow noreferrer">https://www.baeldung.com/jni</a> and I am trying to also use GDAL.
This is the cpp file:</p>
<pre><code>#include <jni.h>
#include <gdal.h>
#include <ogr_geometry.h>
#include <util_gdal_GDAL.h>
JNIEXPORT ... | 3 | 1,537 |
How can I fix my OpenCV4 installation on Ubuntu | <p>I need some help. I want to install Opencv4 on my computer (which runs on Ubuntu) and use it with VSCode.</p>
<p>A lot of tutorial explains how to do it, so here is one of thoses I followed: <a href="https://vitux.com/opencv_ubuntu/" rel="nofollow noreferrer">https://vitux.com/opencv_ubuntu/</a></p>
<p>I, next, took... | 3 | 1,599 |
DeprecationWarning, MongoNetworkError | <p>Here is my database connection code</p>
<pre><code>'use strict';
const config = require('../config');
const Mongoose = require('mongoose').connect(config.dbURI);
const mongoose = require('mongoose');
var options = {
promiseLibrary: require('bluebird'), useNewUrlParser: true, useUnifiedTopology: true
};
var ... | 3 | 4,520 |
Dockerizing gRPC Server (Node) Issue: [Error: Failed to load gRPC binary module because it was not installed for the current system] | <p><strong>Whenever I run my docker image, I keep getting an error in terms of incompatibility between systems/architecture for node...</strong></p>
<p><strong>I tried this command:</strong></p>
<pre><code>npm rebuild --target=8.1.0 --target_platform=linux --target_arch=x64 --target_libc=glibc --update-binary
</code></... | 3 | 1,991 |
Dojo dijit add Div buttons dynamically | <p>I am having an issue with trying to dynamically create layers that can be be built and removed with a div as a button being added upon the layer's creation. Here's how the code goes:</p>
<p>I am having an issue with trying to dynamically create layers that can be be built and removed with a div as a button being a... | 3 | 2,604 |
Javascript function working on one page but not when included on main page | <p>I'm relatively new to using javascript and having an issue when using it alongside php.</p>
<p>I am creating a budgeting calculator that allows users to select items(e.g cinema ticket) from a menu. I have created a database with a list of common goods and their associated price and am using php to pass this this in... | 3 | 1,918 |
Memory error while implementing BFS(Breadth First Search) | <p>I am trying to implement BFS of graph.
These are my header files-</p>
<p><strong>nodes.h</strong></p>
<pre><code>typedef struct Node
{
int data;
struct Node* next;
}Node;
typedef struct Queue
{
Node * front;
Node * rear;
}Queue;
</code></pre>
<p><strong>control.h</strong></p>
<pre><code>#include... | 3 | 2,251 |
Heroku app w/ socket.io refuses connection or sends 404 | <p>After days of trying to figure out what's wrong, I came here to seek help.
My Heroku app is using React as frontend and Socket.io as backend. Here's the drill:
Heroku runs dyno with command "npm run start", which is set to <code>concurrently 'npm run react' 'npm run server'</code> to run both front and back ends.</p... | 3 | 1,254 |
flexbox containers and children structure | <p>The problem is whatever I change in one of the children??? classes seems to have no effect on the images?? which is why I've resorted to using style for each image...</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-c... | 3 | 1,449 |
Tree Panel 'nodeexpand' event in Extjs6.5 not working | <p>I am trying to create a TreePanel is something like a folder explorer. I am trying to find the event when I click the Node Expander (as the following screenshot) in my tree panel.</p>
<p><a href="https://i.stack.imgur.com/dlicc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dlicc.png" alt=""></a... | 3 | 1,051 |
Unexpected behavior when refreshing token of a user who is the unique member of a device group | <p>I implemented the mapping between devices, registration ids, and groups as explained <a href="https://stackoverflow.com/questions/40140201/handling-refresh-tokens-for-fcm-device-groups/40158260#40158260">here</a></p>
<p>Basically came up with a table where to store the device reg id and the notification key of the ... | 3 | 1,936 |
UICollectionView vertical flow layout keep in collection bounds | <p>I have a UICollectionView with vertical cells alignment, but I want also vertical section alignment, I also want to keep the sections inside the current frame of the UICollectionView, that means if a section reach the end and it's longer then the collection itself, then it will go to next line.</p>
<p>This is how i... | 3 | 1,403 |
Attribute error two classes | <p>I am trying do two classes but I get an <code>AttributeError: Application has no attribute "make_request"</code> and it says that about <code>make_requests</code> and <code>city_data</code> too.</p>
<p>Here is my GUI:</p>
<pre><code>from tkinter import *
from tripinator2 import Functions
class Application(Frame):... | 3 | 2,337 |
Unable to Tween ThreeJS Camera Rotation | <p>I'm trying to animate the ThreeJS camera rotation using TweenJS, I have no problem tweening the camera.position, but for some reason camera.rotation refuses to change?</p>
<p>I've setup a minimal example using the code from the official ThreeJS documentation: <a href="https://threejs.org/docs/index.html#manual/en/in... | 3 | 1,116 |
Play: Restart on code change takes long to shutdown and starting the Hikary Pool | <p>Waiting for the server to restart when working with Play cost us a lot of time.
One thing I see in the log is that shutting down and starting the <em>HikaryPool</em> takes a lot of time (> 40 seconds).</p>
<p>Here is the log:</p>
<pre><code>2019-10-31 09:11:47,327 [info] application - Shutting down connection pool... | 3 | 1,469 |
Operator In/Contains for a Rules Engine | <p>I am trying to implement the IN operator for a rules engine
LeftResult IN RightResult</p>
<pre><code>object leftResult = methodInfo.Invoke(classInstance, leftParams.ToArray());
object rightResult = methodInfo.Invoke(classInstance, rightParams.ToArray());
</code></pre>
<p>leftResult is a list of values and RightRe... | 3 | 1,156 |
How do I count the number of replies in a board of my custom forum? | <p>I am developing a custom forum with PHP and MySQL. I have three primary tables in this scenario: boards, threads, and messages. I would like to count the number of messages in a board. The threads table has a column called "first_msg_id" that is a reference to the first message of that thread. My query shouldn'... | 3 | 1,034 |
Unnexpected output in js sort function | <p>guys I am trying to sort an array but I have a little problem, the sorting starts but
one of the elements is marked as undefined and I can't figure out why. In general I am not sure whether I call the function the right way. Please help me! :)</p>
<p>that's the code:</p>
<pre><code><p>JavaScript can chang... | 3 | 1,269 |
Xcode 5 Just Corrupted Every xib | <p>I was uploading an update for an app using Xcode, and it failed because I forgot to change the version number. I went into Xcode and made that one change, clicked Archive again, and it failed, giving me this message:</p>
<pre><code>CompileXIB LinkControllerViewController2.xib
cd /Users/candacebrassfield/Deskto... | 3 | 1,249 |
SQL Error SQL DB function failed with error number 1064 | <p>I have prblem with sql when i try to check if table extist.</p>
<p>Am making component for joomla and when make install.sql i have sql syntax error.</p>
<p>check this and tell me what i do wrong:</p>
<pre><code>DROP TABLE IF EXIST `#__ik_property_item`;
DROP TABLE IF EXIST `#__ik_property_categories`;
DROP TABLE ... | 3 | 1,349 |
WindowBuilder adds a LOT of unneeded empty Label | <p>I'm using Google's WindowBuilder to create UIs in Eclipse for desktop Java/SWT applications.
I'm using Mac OS X.</p>
<p>I've got this simple class (imports removed for clarity):</p>
<pre><code>public class CustomersTab extends Composite {
CustomersList mCustomersList;
CustomerBadge mCustomerBadge;
priv... | 3 | 3,883 |
Display type not changing during parent hover | <p>I'm trying to make a slider which changes the div in the direction of the arrows. The arrows shouldn't be available unless you're hovering above the parent div. But the arrows are only available when I hover on the outer-right side of the image in the parent div. Also the hover on the subtitle link doesn't work eith... | 3 | 1,036 |
Apply the average to a timedelta column for two group conditions | <p>I have the following dataframe in Python:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>ID</th>
<th>country_ID</th>
<th>visit_time</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>ESP</td>
<td>10 days 12:03:00</td>
</tr>
<tr>
<td>0</td>
<td>ENG</td>
<td>5 days 10:02:00</td>
</tr>
<tr>
<... | 3 | 1,068 |
Using function objects to speed up the training | <pre><code>from datasets import load_dataset #Huggingface
from transformers import BertTokenizer #Huggingface:
def tokenized_dataset(dataset):
""" Method that tokenizes each document in the train, test and validation dataset
Args:
dataset (DatasetDict): dataset that will be tokenized (t... | 3 | 1,451 |
Python Flask REST API freezes during a call to subprocess command | <p>We have a working REST API that handles many diff endpoints for FrontEnd. During one specific endpoint where subprocess command should process operation all other endpoints halts and wait for the subprocess to finish. Can anyone help me to understand why it's happening? My thoughts that Python Flask runs asynchronou... | 3 | 1,148 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.