title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
WSO2 API Manager Gateway cluster is not working | <p>I configure the gateway cluster follow this guide:<a href="https://docs.wso2.com/display/AM210/Clustering+the+Gateway" rel="nofollow noreferrer">https://docs.wso2.com/display/AM210/Clustering+the+Gateway</a>.</p>
<p>172.19.28.71: Gateway Manager Host
172.19.28.84: Gateway Worker Host</p>
<p>Gateway Manager axis2.x... | 3 | 1,564 |
How to select itemclick event for listview with multiple rows in android? | <p>I am trying to get values from server and retrieved response from server, the details responsed from server are need to be displayed in a listview, i achieved that too, but while onitemclick process only first row in list view performs the click action but it is not performing for the remaining rows, how can i achie... | 3 | 1,918 |
$_GET works $_POST does not | <p>I tried to create a create a database that stores values as soon as submit button is pressed but I got:</p>
<blockquote>
<p>"Notice: Undefined index: SUBMIT in C:\xampp\htdocs\WebSite\examp.php
on line 10"
which prevents my program from executing
This is my webpage:</p>
</blockquote>
<pre><code><!DOCTYP... | 3 | 1,144 |
Making a simpler parser function for a wiki | <p>I need a template on a wiki about a game (<a href="https://alphabettysaga.fandom.com/fr/" rel="nofollow noreferrer">Alphabetty Wiki</a>) that gives a range of levels when given a particular level (e.g. "42" -> "1-50")</p>
<p>I could make one using many #ifexpr, but I am wondering now if there ... | 3 | 1,052 |
Using Ray in Python to parallelize task, get "Aborted (core dumped)" | <p>I've a Python program like this</p>
<pre><code>if __name__ == "__main__":
..
for t in th:
..
</code></pre>
<p>And I'm trying to parallelize it using Ray library that seems to be faster than multiprocessing, so I wrote</p>
<pre><code>import ray
ray.init()
@ray.remote
def func(t):
..
if __name__ == "__ma... | 3 | 1,461 |
Overriding the generic abstract method of `ParamConvertorProvider` | <p>I am providing an implementation of <code>ParamConverterProvider</code> in a JAX-RS application. This implementation provides gives a definition of the abstract method in the interface with signature as:</p>
<pre><code>public <T> ParamConverter<T> getConverter(Class<T> rawType, Type genericType, ... | 3 | 1,284 |
A very strange behavior of a function when I pass arguments in Keras | <p>I have created a function to train and evaluate a model in keras2 , tensorflow2.</p>
<p>Here is my code:</p>
<pre><code>def f_compile_fit_evaluate_model1(filters1, kernel_size1, filters2 , kernel_size2, epochs):
setting1 = Input(shape = (10,8), name = 'setting1')
setting2 = Input(shape = (10,8), name = 'set... | 3 | 3,719 |
Square gets stuck when it reaches the bottom of the canvas | <p>I am trying to make a simple JavaScript based game, where the user would move the square around the canvas and dodge elements / squares coming towards it (however this is just a plan, I am far from that point at the moment).</p>
<p>The problem I am experiencing is that whenever I would make my canvas width value bi... | 3 | 2,657 |
Jenkins outOfMemory when try to deploy in archiva | <p>I use Jenkins on my local machine and try deploy my jar in archiva ( on local too).
After a build succes in jenkins's log I have a out of memory when jenkins try to deploy jar into archiva :</p>
<p>My Jenkins log output :a </p>
<pre><code>[INFO] -------------------------------------------------------------------... | 3 | 2,382 |
Is my code to change the CSS of an element when clicked efficient? | <p>I want to know if there is a more efficient way to change the CSS of multiple elements when one is clicked.</p>
<p>I have working code whereby clicking on a subheading within the "About" section changes its color, the color of the other subheadings, and the opacity of reach respective paragraph. It looks like a lot... | 3 | 1,115 |
How to use xml attributes from higher api on lower api? | <p>I want to use xml attributes from higher api on lower android system. How to do that without changing much? like <code>android:layout_columnWeight</code> and <code>android:layout_rowWeigh</code>.
Here is my xml code:</p>
<pre><code><GridLayout
android:layout_width="match_parent"
android:layout_height="match_pare... | 3 | 1,278 |
Need to duplicate code | <p>So guys I have a code that outputs text boxes and the information will be saved.</p>
<pre><code><tbody id="1111111">
<tr>
<td class="ObjektiivneLeid">The function</td>
<td class="Hinnang">
<input class="Hinnang_Valimata" type="radio" name="1111111_Hinnang" value="Val... | 3 | 1,196 |
rust: Define a trait that returns a non consuming iterator. (associated type bounds for both T impls IntoIterator and &T impls IntoIterator) | <p>I want a trait that returns a generic collection and let me iterate over the references in that collection.</p>
<p>e.g:</p>
<pre><code>trait DuckCollection {
type CollectionType: IntoIterator<Item=Duck>;
fn get(self) -> Self::CollectionType;
fn as_ref(&self) -> &Self::CollectionType;
... | 3 | 1,540 |
Problems with the Text Views | <p>I am facing a strange behavior of my text view. I have already constrained both 'Sleep Timer' text view and the 'this feature ...' text view, but somehow when I run it on my emulator, I couldn't see the 'Sleep Timer'. Here's a screenshot of my Emulator: <a href="https://i.stack.imgur.com/2431l.png" rel="nofollow nor... | 3 | 1,830 |
create generic type from generic function | <p>I'm trying to declare a generic type based on another generic type without success.</p>
<p>The objective is the write my own test framework and to type some parameters depending on another one (the method).</p>
<pre class="lang-js prettyprint-override"><code>type Arguments<T> = T extends (...args: infer U) =... | 3 | 1,155 |
I want to edit my fortran generated file in fortran | <p>I have a fortran 95 program, which writes an array in this form:</p>
<pre><code>do temp = 1, temp_final
do MC = 1, N_MC
do x = 0, N
do y = 0, M
write(1,*) x, y, array(x,y)
enddo
enddo
enddo
write(1,*) T
T = T - temp*factor
enddo
</code></pre>
<p>In my program, I am writing ... | 3 | 2,343 |
Aparapi multiple put/get seems to have no effects | <p>I am facing a problem by using explicit buffer management with Aparapi.
The code hereafter shows that I am trying to manage several put/get in a loop to refresh/get-back data from GPU. It seems that the first <code>put</code> and <code>get</code> are done but not the others.</p>
<pre><code>import com.amd.aparapi
/... | 3 | 1,475 |
Handsontable : datas aren't returned to the php file | <p>I'm french so excuse me for my english :)
I checked a lot of topics. Some seems to be the same problem but it still doesn't work. I'm a beginner in javascript too.</p>
<p>So, here is my code :
`<br> <br></p>
<p></p>
<pre><code>$(document).ready(function () {
var container = document.getElementById('Grille_com... | 3 | 2,067 |
MVC DataReader connection related issue | <p>I have two models with a navigation property in one to the other. Model looks like this:
I am calling the two models in the same view. SuiteCategoryModels as the default and SuitesModels as a partial view.</p>
<pre><code>public class SuiteCategoryModels
{
[Key]
[DatabaseGeneratedAttribute(DatabaseGeneratedO... | 3 | 1,130 |
A twitter api either not connecting on node or some other issue | <pre><code>sony@Tesla MINGW64 ~/Downloads/Twitter API JavaScript Node Exercise/1. Introduction to Connecting to Twitter API/tweet
$ npm start
> tweet@1.0.0 start
> node index.js
**RESTART**
node
node:_http_outgoing:576
throw new ERR_HTTP_HEADERS_SENT('set');
^
Error [ERR_HTTP_HEADERS_SENT]: Cannot set ... | 3 | 1,229 |
Convert bean to flattern the json | <p>Request:</p>
<pre><code>{
"messageHeader":{
"serviceId":"SPECTRUM_MOBILE",
"requestType":"MNO",
"referenceNumber":"2343422324340239243223"
},
"data":{
"transactionType":"GD",
&qu... | 3 | 1,578 |
Turning a pl/pgSQL select statement into an insert | <p>I'm trying to turn this select query into an insert query to insert the results into another table, but PostgreSQL is telling me no. This query works and returns a 'reports' data type:</p>
<pre><code>drop function counties();
create or replace function counties()
returns table(code varchar(16), county varchar(50),... | 3 | 1,161 |
React Motion: Leaving object becomes visually indistinguishable from entering object | <p>I am trying to create a basic animation with React Motion: I have two elements, either of which can be displayed depending on the component state. When the state changes, I want one element to replace the other. The replacement animation is a combination of sliding to the left and fading out of the leaving element.<... | 3 | 1,528 |
Error permission denied (publickey) on GitHub | <p>I'm having an issue with connecting via ssh git@github.com. <a href="https://help.github.com/articles/error-permission-denied-publickey/" rel="nofollow">This article</a> was not any help, unfortunately. I was trying to install something with composer for a project, using a github library and it was giving me the sam... | 3 | 1,124 |
Photo/Document Upload in Android Webview | <p>I'm working on a wrapper application for Android and need to connect to the camera/photo gallery (so the user can upload a picture of themselves for example). I've found a number of posts on the subject, including <a href="https://stackoverflow.com/questions/15725814/upload-an-image-from-camera-or-gallery-in-webview... | 3 | 1,941 |
How to appropriately call functions from another class with a changing variable? | <p>I am trying to use a while loop to call functions from a class in another file, and then change the function to be called next based on what the original function returned. You may recognize some of this from "Learning Python the Hard Way." </p>
<p>I have two files: engine.py and rooms.py. Engine.py contains the wh... | 3 | 1,051 |
How do I output HTML form data using Javascript? | <p>I hit a little bit of a wall. With my current JS how do I output the current form field results in the class="household" when the user hits "add"?</p>
<p>*I still want to keep the remove functionality.</p>
<p>I cannot edit HTML only JS. Any help gladly is appreciated. Thanks!</p>
<p>HTML</p>
<pre><code><ol cl... | 3 | 1,588 |
Style to display data in gridview | <p>I am trying to display data in <code>Gridview</code> in c#. I have been asked to make the gridview look as close as a table in SQL database. I have been able to achieve a bit but my grid is far from a Sql table. Can someone help me out? This is what I tried so far.</p>
<p><strong>Aspx</strong></p>
<pre><code><%... | 3 | 1,369 |
Assign text read from file in network to TextView in Android fragment | <p>I am trying to read a file over the network and assign the returned text to a TextView widget of a Fragment. The file is read in an Async thread, after being called by a method in ManActivity. The codes are given below:</p>
<pre><code>MainActivity.java (relevant part):
public void myClickHandler(View view){
Co... | 3 | 1,469 |
Display <div> relative to <textarea> | <p>I have a box (a single absolutely positioned <code><div></code>). I also have a series of <code><textarea></code> and <code><input type="text"></code> form controls. When I focus on any <code><textarea></code> I want to display the box to the left on the focused item (covering whatever lies b... | 3 | 1,089 |
Does the change of object in js is also local in a function? | <p>The bellow generates a file containing code and prints the output of the program:</p>
<pre><code> class Code {
static list = require("./settings.json");
static fs = require("fs");
constructor(
code="print('Hello World')",//default code
lang = "py",//language
... | 3 | 1,075 |
How to change text on a label on a specific row | <p>I have a piece of code where I make labels and buttons on a loop until I have enough to fit all the data, now I am trying to change the text in label 3 (lbl3) with a click of a button in the same row.<br /><br /></p>
<ul>
<li>So the first thing I had to do was to get the row it was on which I have and the column whi... | 3 | 1,289 |
How to find the dependency where I should exclude the library? | <p>I updated Maven from <strong>3.0.5</strong> to <strong>3.5.3</strong> version. I use <strong>maven-site-plugin-3.7</strong>.</p>
<p>After the updates I try to execute command "mvn site site:deploy". I have the following error:</p>
<pre><code>[ERROR] : org.apache.commons.logging.LogConfigurationException:
org.apa... | 3 | 2,341 |
Laravel test not working when running whole test suite, ReflectionException : Class config does not exist | <p>I am currently developing a test suite for my lumen API. I am using lumen 5.6 with phpunit 7.</p>
<p>I have the following test:</p>
<pre><code>use PHPUnit\Framework\TestCase;
class ExportControllerTest extends TestCase
{
public function testGetHeader()
{
$controller = app()->make("App\Http\Con... | 3 | 1,711 |
chrome.storage.sync.get not returning complete JS object | <p>I am trying to write a Chrome extension that allows users to easily login to an internal webpage. The extension would show a menu containing pre-defined credentials from which the user can pick one and immediately be logged into the corresponding web page.(think Bookmarks++). </p>
<p>As a first step, I wanted to wr... | 3 | 1,230 |
This regex to strip punctuation also incorrectly strips spaces. Help :( | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/4431130/this-regex-to-strip-punctuation-also-incorrectly-makes-the-word-baenou-into-benou">This regex to strip punctuation also incorrectly makes the word Báenou into Benou</a> </p>
</blockquote>
<p>I wrot... | 3 | 9,323 |
How test listener on my custom event emitter in node typescript | <p>I'm trying to test a service that has a listener of the a custom Event Emitter in node with typescript and mocha, sinon.</p>
<p>My custom emmiter;</p>
<pre><code>class PublishEmitter extends EventEmitter {
publish(id: string) {
this.emit('publish', id);
}
}
</code></pre>
<p>My service use case:</p>
<pre><cod... | 3 | 1,401 |
Spring Hibernate - class member used twice as foreign key | <p>I'm programming a "Deezer-like" application for my studies and I'm having problem with the mapping of foreign keys. Here is the code concerned :</p>
<p><strong><em>Abstract Class TrackList</em></strong></p>
<pre><code>@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@DiscriminatorColumn(name = "list_type")
... | 3 | 7,952 |
ng include partials in html with grunt gives 404 not found | <p>I have included </p>
<pre><code>grunt.loadNpmTasks('grunt-nginclude');
</code></pre>
<p>and </p>
<pre><code>nginclude: {
options: {
discardReferencedFiles: false,
parserOptions: {
decodeEntities: false
},
replacementElementClass: '',
replacementElementTag: '... | 3 | 7,200 |
How to add zlib as an external project as a dependency for another external project in CMake? | <p>I have a project where I write a library that uses the <a href="https://github.com/Exiv2/exiv2" rel="nofollow noreferrer">exiv2</a> library. <code>exiv2</code> itself needs <a href="https://github.com/madler/zlib" rel="nofollow noreferrer">zlib</a>. If I don't import <code>zlib</code> as an external project, I get i... | 3 | 1,916 |
Always got 403 response code when check all link with selenium java | <p>I made script for checking all link in one page, but all of the link always give 403 response code, it will opened normally with browser but if checking it by getting response code using selenium java always give 403(Forbidden), i also bring all cookies but it doesn't work, if anyone have solution please let me kno... | 3 | 1,236 |
how do I update TFS test results by configuration? | <p>I have a method that seems to be working to update a TFS test result ONLY for the configuration that it ran on. But it seems very inefficient. Can someone help me to figure out what I'm doing wrong? - specifically it doesn't seem that I should have to get testSuites for a given test ID, then iterate through all te... | 3 | 2,036 |
Cannot set output layer to classification | <p>I am currently trying to implement a CNN which purpose is to perform classification, but for some reason am I not able to define my output dimension to 1. </p>
<p>Here is an example code: </p>
<pre><code>import keras
from keras.layers.merge import Concatenate
from keras.models import Model
from keras.layers import... | 3 | 1,515 |
sending Special chars (String) from android to php | <p>My problem is that the value inserted in the database is question marks <code>???????</code> when sending string like <code>éèçà</code> or <code>يبلا</code> </p>
<p>Here is my java code </p>
<pre><code>private void uploadFile(String filePath) {
try {
try {
HttpPost httpost = new HttpPos... | 3 | 3,386 |
DJANGO - Issue using formsets | <p>So I have a form class in my forms.py file that i will use for creating a formset with a variable number of forms (the client will set the number of forms to display).</p>
<p>The form class would be like this:</p>
<p><em>forms.py</em></p>
<pre><code>from django import forms
class example(forms.Form):
CHOICE... | 3 | 1,552 |
triyng run the crawler with docker image | <p>I'm triyng run the crawler with docker image, but it's returning this error.</p>
<pre><code>PS C:\Users\Santosgab\Desktop\documentation> docker run -it --env-file=.env -e "CONFIG=$(cat config.json | jq -r tostring)" algolia/docsearch-scraper
Traceback (most recent call last):
File "/root/src/conf... | 3 | 1,265 |
How to Create an Element from Two Surrounding Elements? | <p>I am stuck with an XML to XML transformation using XSLT 2.0 where I need to transform this:</p>
<pre><code><p>some mixed content <x h="">START:attr="value"</x> more mixed content <x h="">END</x> other mixed content</p>
</code></pre>
<p>To this:</p>
<pre><code><p>some mixe... | 3 | 1,296 |
Not getting the output I want | <p>I am trying to write a c++ program to read a txt file containing data (122X300 matrix - tab delimited matrix) into my code and get it to display. The following is the code I wrote after referring extensively to google and many similar questions on this site. On running the code, I do not get any errors, however it d... | 3 | 1,607 |
Windows (RVM) vs Linux (jruby): how to fix different gem requirements? | <p>I suffer incompatible gem requirements when creating a Rails App on Windows (RVM) and deploying them to Linux (jRuby). How can I reconfigure the Rails requirements on the Linux/jRuby side, so I can bundle and run the app?</p>
<p>Since <strong>debug_inspector</strong> only exists on RVM, the gem requirements don't b... | 3 | 1,416 |
django many to many field - programmatically retrieve relations | <p>I have been working on a model for tags and am trying to avoid using contenttypes. I have couple questions related to ManyToManyField in django. </p>
<p>I have the following model</p>
<p>taggables/models.py</p>
<pre><code>class Tag(models.Model):
tag_statuses = (
(u'P', _('Pending approval')),
... | 3 | 1,323 |
MVVM WCF Entity as Model... How to implement propertychange notification in the view model when using Entity as your model | <p>I am implementing an MVVM Pattern using Entity as my model... When I instantiate the Model in the setter I add a propertychanged handler to the object to capture the field changes within the entity object...</p>
<p>When I step through code I find that after I modify the field within the object it is firing the Pro... | 3 | 6,706 |
Canvas text click not working. How to fix? | <p>JS Code -</p>
<pre><code>var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
var $canvas = $("#canvas");
var BB=canvas.getBoundingClientRect();
var offsetX = BB.left;
var offsetY = BB.top;
var mx;
var my;
var texts = [];
var images = [];
var dragF = -1;
va... | 3 | 1,316 |
Application Bot on_raw_reaction_add send message in specified channel with payload | <p>I'm working on an application Bot that asks questions in a DM and saves the answers. I just have a small problem and that is I want to send the answers in a specified channel in an embed. but I didn't find and another way than doing it with <code>await applychannel.send(embed=Embed)</code>, but that doesn't work it ... | 3 | 2,185 |
Need site to direct itself to /html.finds.html | <p>I want my site to redirect itself to the relative path: instead of but it does not seem to be picking up the page that I want it to use. Am I placing the in the correct spot in order for it to work? </p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class... | 3 | 3,947 |
Symfony2.1 with EAV Return Values | <p>I have three Entity:</p>
<p>1.Feature</p>
<p>2.Value</p>
<p>3.Product</p>
<p>I am getting Value In Product without mentioning It's Feature. I am trying to Get Value according to feature But But I am unable to do it.I don't Know How it can be done? </p>
<h1>Feature:</h1>
<pre><code>/**
* @ORM\Table(name="feat... | 3 | 1,090 |
Wordpress loop showing blank page | <p>I'm using the code below to display an Owl Carousel of pages that have the same parent page as the current page, it works but the first item in the loop is blank.</p>
<p>Any Ideas? Thanks</p>
<pre><code><?php
// [service_page_carousel]
function service_page_carousel_func() {
global $post;
$direct_... | 3 | 1,315 |
Why asctime(localtime(<ime)) function does work on gcc 4.8.4 properly and cause problem with gcc 9.4.0 | <pre><code>ltime=time(NULL);
sprintf(buffer,"\n%sTwo matrices of size %dx%d have been read. The number of threads is %d \n",asctime(localtime(&ltime)),side_Array,side_Array,val_M);
write(STDOUT_FILENO,buffer,strlen(buffer));
</code></pre>
<p>This the code that cause problem with output file that threads w... | 3 | 1,305 |
Upload attachment to Confluence using Nifi ExecuteScript in Python | <p>I'm trying to upload a PDF file to Confluence using Nifi's ExecuteScript processor. I can upload the file successfully, but when I download and open it, it's BLANK. There must be something wrong with my conversion. Can anyone please help check?</p>
<p>So this is how I do it:</p>
<ol>
<li>download the PDF file from... | 3 | 1,409 |
Trying to create a home page with a login form, but getting 'NameError: name 'url' is not defined' | <p>I'm relatively new to django and trying to create a home page that has a login form on it, consisting of username and pw bars. I was trying to recreate what I saw here in my own project:</p>
<p><a href="https://stackoverflow.com/questions/20208562/homepage-login-form-django">homepage login form Django</a></p>
<p>b... | 3 | 1,596 |
Scala future strange error on completion | <p>I am just getting started with futures and stumbled upon an error which seems quite strange to me:</p>
<p>Using play-ws to perform a post request and map the result:</p>
<pre><code>wsClient.url(url).withHeaders("Content-Type" -> "application/json")
.post(payload)
.map { wsResponse =>
if (... | 3 | 1,376 |
Routing/Navigation bug in Cordova | <p>I have an Angular JS app and I would like to use it with Cordova. In the browser the Angular app works fine. On Cordova however, the navigation is very buggy. I tried the ngRoute and the ui-router methods, but both show similar problem.</p>
<p>The problem is as follows: I go to a state (newsitem), the controller of... | 3 | 1,490 |
Exception in Form authentication with Glassfish v3 | <p>I have seen this question posted many places but there seems not to be a solution for it. Therefore, I test my luck trying it here. I am using Glassfish 3.0.1 b.22 with Java EE 6 framework.<br>
Here is my form authentication inside <code>Login.jsf</code></p>
<pre><code> <form action="j_security_check">
... | 3 | 1,679 |
Chart is not defined, chart.js in javascript template | <p>I'm having some trouble getting charts to show up. I get the error "chart is not defined" although it seems to be defined when I hover over it in my javascript template. Here's my code:</p>
<p>javascript file</p>
<pre><code>var myChart = new Chart("myChart", {
type: "bar",
data: {
... | 3 | 2,445 |
Solr DataSource Request Parameters Not Being Recognized | <p>I'm trying to make the username/password for a Solr (7.5) data import handler to be dynamic, following the guidance <a href="https://lucene.apache.org/solr/guide/7_5/uploading-structured-data-store-data-with-the-data-import-handler.html#dih-request-parameters" rel="nofollow noreferrer">here</a>.</p>
<p>Here's my dat... | 3 | 1,070 |
Spring Scheduler example (Spring boot and Vaadin 14 project) | <p>I created a chat for communication.For the interface I use vaadin, I want to test the chat, it’s necessary that when the chat opens, it needs to start every 1 second (hello 1, hello 2, hello 3 .......) I wrote a sheduler, but how can it be correct? I seem to have written it wrong. </p>
<p><code>MainView</code></p>
... | 3 | 1,422 |
Values passed to <include> layout is not displayed | <p>I have a included an layout and passing data using app:variable-name but cannot see the results. The variable-name is defined in the layout to be included. Do the way I pass data to the layout incorrect?</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android="http://schemas.androi... | 3 | 1,924 |
Excel 2013 VBA Creating Buttons for a New Workbook | <p>Long time user, first time poster!</p>
<p>I work at a Campus Food Shelf and I've recently become very involved in streamlining their reporting and data entry. The task I'm currently preforming is making a program that would create a uniformed sheet 1, so that the reporting programs I've built thus far can be easily... | 3 | 1,196 |
pow(); function causing inconsistent results | <p>This is the code:</p>
<pre class="lang-c prettyprint-override"><code>#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>
int findIntLen(int num); // A function that finds the amount of digits an integer has.
int main(void)
{
int num = 0, temp = 0, res = 0;
int index = 0, digit... | 3 | 1,117 |
I am having a problem with Struct identifier is undefined and incompatible declarations for funtions on AVL tree program | <p>This is the header file for an AVL tree program using a struct. The other private member functions are in my BinaryTree.cpp file and there are no issues there. However, I have discussed further below in the code the issue I am having. Any help or suggestions will be appreciated!
#ifndef BINARYTREE_H
#define BINARYTR... | 3 | 1,938 |
My components are compressing when i use the keyboard | <p>My problem is when i use the keyboard, all of my components are compressed and i want to know why this is happend and what can i do to prevent this happening?</p>
<p>Here is my code
i use image_height export</p>
<p>@react-native-community/masked-view": 0.1.6
expo: ^37.0.0
react: 16.9.0
react-dom": "16... | 3 | 1,059 |
Firebase dependencies, firebase-crash:10.0.1' | <p>Please if anyone have any explanation regarding this, then help me understand. </p>
<p>The Issue is:</p>
<p>If in dependencies I'm using this, </p>
<pre><code>compile 'com.google.firebase:firebase-crash:10.0.1'
</code></pre>
<p>then the below code is not visible, in the layout.</p>
<pre><code> <android.su... | 3 | 1,549 |
Parsing String to Date error | <p>Why is this not working? I'm parsing a String using the SimpleDateFormat, but this is producing an error on the line inside the try {}.</p>
<pre><code>String timerDate = "28 05:24:50"; // timer will stop when reached this date
public String getTimer() {
SimpleDateFormat format = new SimpleDateFormat("dd HH:mm:... | 3 | 1,065 |
Cometd Java Client won't publish to Cometd server | <p>I followed the examples that I could find for making a Cometd java client application. I am trying to make it so when the user presses a button on the screen, cometd publishes a message to the server. Right now the publish gets called but the server never receives message to its listener. I have this server liste... | 3 | 1,505 |
FacebookAuthenticatedContext returns a null Email | <p>I have this problem with Facebook authentication, here are the following steps that we go through to encounter this problem:</p>
<ul>
<li>User A uses device A to register onto our app via Facebook
authentication.</li>
<li>User A successfully goes to the registration page with his first
name, last name and email tak... | 3 | 1,096 |
Android PHONEGAP app / cant open in browser | <p>I have an android app that we are deploying to the problematic BES12 secure workspace. This has a web browser which has to use a proxy.</p>
<p>This app is really simple, it opens a webpage, however it opens using a browser within the app which will not use the proxy settings.</p>
<p>I need this app to open a webpa... | 3 | 1,244 |
Android UDP Multicast(Server) to C# WPF(Client) sometimes works only with registered multicast ip | <p>I am working on a simple app which sends camera byte stream to c# wpf app using UDP Multicast. I am able to achieve this using UDP Broadcasting.</p>
<p>But what I want is to connect it using UDP multicast but its working for me only if I am using registered multicast IP's like "224.0.0.1".</p>
<p>About my Android ... | 3 | 1,590 |
Issues Using Foreach Loop | <p>I am trying to use Foreach loop to calculate the Interest paid by those that were issued loan in my application. The application loads the list of all those issued loan, those whose loan account balance is less than zero are debited for repayment. It runs fine if the person has received loan only once but if he rece... | 3 | 4,311 |
symfony 5 - event not being dispatched | <p>I use an event subscriber to handle some actions when my order form is submitted.</p>
<p>Problem my event is not being dispached but symfony is able to find him because he tells me that my OrderEvent::ORDER_CREATE is orphan.</p>
<p>I excpected that execution was stopped with <code>die('Hello you from subscriber');</... | 3 | 1,668 |
Logstash configuration error and I think this a dumb question | <p>I am trying to get logstash to work (well I have gotten it to work but I want to try growing my skill set) and this is my config file setup...</p>
<pre><code>
input {
file {
path => "C:/temp/Machine Learning/Dash.txt"
start_position => "beginning"
sincedb_path => "/tmp/sin... | 3 | 1,195 |
AudioSource.Play() not working in Enumerator | <p>I have an Enumerator for the effects played when you shoot a gun. It is:</p>
<pre><code>private IEnumerator ShotEffect()
{
gunAudio.Play();
laserLine.enabled = true;
yield return shotDuration;
laserLine.enabled = false;
}
</code></pre>
<p>When I take the <code>gunAudio.Pl... | 3 | 1,493 |
How to deal with MVC controllers using angular 5? | <p>I am trying to build my first app using angular 5 and .Net core 2 API in visual studio 2017. I am using angular 5 for the client-side, and to maintain data-access, security, authorization ... I am creating Web API controllers using .Net core 2 which will be called from angular I succeeded to implement both (angular ... | 3 | 1,374 |
Extract operating system version with osversion | <p>I created a small program that extracts my operating system version with OSVERSIONINFO APIs.
My problem is that when I run the program on a Windows 10 Enterprise 2016 LTSB PC it turns out to be VER_SUITE_SINGLEUSERTS instead of VER_SUITE_ENTERPRISE.</p>
<pre><code>Scada.Windows.API.OSVERSIONINFO osvi2 = new Scada.W... | 3 | 2,531 |
Canvas animations | <p>I've looked around for help on this but i can't find any answers. Currently, when i want to animate a ball, within a surfaceview, i call a method that:</p>
<ol>
<li><p>Sets an animation variable in the surfaceview to a custom class extending AnimationModule (which extends AnimationSet) which changes properties of t... | 3 | 2,051 |
REMOTE_EXEC_OUTPUT_MARKER_ build.txt doesn't exist | <p>This PhpStorm 2022.2.1 issue may happen when you are trying to Download your IDE after assertively pointing the Installer the remote development server project folder.</p>
<p>I can see the remove folder is recognized, the SSH connection is OK, but it suddenly stops to work and displays the following log. The above-m... | 3 | 1,462 |
Two autocompletes on a page, not adding selected item to correct place | <p>I have a page that has used a single autocomplete successfully for a long time. I am trying to add a second autocomplete, but the first and the second autocomplete add the item to the same table; what am I doing wrong? If I switch the order of the two autocompletes it will always add the items selected from either a... | 3 | 2,157 |
My Android layout design is not on the same placement when running it on emulator, and shows them incorrect positioned | <p>I am using Android 2.3.3 version and making a tic tac toe game on it. I am having a problem with a placement of objects when designing the layout, and also there is something wrong with a game state of the game.
Any help would be great ! </p>
<p>look below image of my layout
<a href="https://i.stack.imgur.com/... | 3 | 3,350 |
"WindowsError: access violation 000001" on DispatchMessageW in EventLoop | <p>I research Python internals and write GUI Generic windows use Windows API.</p>
<pre><code># -*- coding: utf-8 -*-
import time
import threading
import logging
import uuid
import ctypes
import ctypes.wintypes
import const
INT = ctypes.wintypes.c_int
LPVOID = ctypes.wintypes.c_void_p
HCURSOR = ctypes.wintypes.HAN... | 3 | 4,271 |
Some doubts related to the use of the BorderLayout object | <p>I am studying Java Swing and I have a doubt related to the use of the <strong>BorderLayout</strong> object.</p>
<p>I have this simple example program that create a ToolBar:</p>
<pre><code>package com.andrea.menu;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener... | 3 | 1,033 |
radiobutton checked property is always false when control.find(id) is used to find dynamically generated radio button | <p>i have dynamically added radio button to webform as shown below.
On submit click when i try to find the radio check property using control.find(radiobuttonid). It always return false even when radio button is checked. can some body help me how to do it?</p>
<pre><code> RadioButton r1 = new R... | 3 | 1,514 |
Cannot use object of type App\Exports\OffetTableExport as array - Laravel Excel | <p>I am working on multiple sheets on laravel excel. And, I am exporting data on two sheets using two export. But, half of the data to pushed on 2nd sheets will be generated in 1st export. So I am having difficulties in passing this data from 1st expor to second sheets. This could be further clarified with the code giv... | 3 | 5,971 |
Google BigQuery SQL issue with combining regular functions with WINDOW functions | <p>I'm looking at a table of orders for an ecommerce website and trying to build a customers table with some basic info about each customer.</p>
<p>I'm getting caught up when trying to use WINDOW functions like NTH_VALUE in combination with normal functions.</p>
<p>The orders table looks like this:</p>
<pre><code>or... | 3 | 1,138 |
PHP/SQL script stops unexpectedly, works in debug | <p>I have a fairly long script that ran fine until last night (no changes made, that I know of).</p>
<p>The query that needs to be run is this:</p>
<pre><code>$query = "INSERT INTO results SET
compId = ".$comp_id.",
eventId = ".$eventId.",
eventSession = '".$eventsession."',
driverId = ".$driverid.",... | 3 | 6,374 |
Get String of a main function from another class | <p>I have this main function (Class: <code>DialogBoxForIt.java</code>):</p>
<pre><code>public void main(final SimpleCallback<HashMap<SPARAM, Object>> sr) {
if(mainwindow == null){
JFrame jf = new JFrame();
jf.setTitle(_T.PasswordEncrypt_title.val());
jf.setResizable(false);
... | 3 | 3,048 |
How to redirect google sign in button | <p>After adding the Google sign in button, connected with Firebase of course, where do i add the redirect after the user signs in to a new activity?</p>
<p>tried adding it in the same function as the button, no errors or anything, the app just crashes</p>
<p>here's the main java code:</p>
<pre><code>package com.exam... | 3 | 1,784 |
UI Alignment - Could not resolve | <p>I have tried many ways and i could not get this alignment issue resolved . And i am not sure that where i am going wrong . </p>
<p>My XML :</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"... | 3 | 2,444 |
Logic Error; TextView returns even after setting to null | <p>I have a logic error in a simple android app;</p>
<p>I have 3 <code>Buttons</code> (Permute, Clear and GC), 1 <code>EditText</code> and a <code>TextView</code>. When the Permute button is clicked it sends the text in the <code>EditText</code> box to a method from another class and sets the returned value to the <co... | 3 | 1,710 |
MVVM with Hilt,RxJava 3,Retrofit, Live Data and View Binding | <p>I currently get stock on this part. I want to display simple data from GSON and I practice using MVVM structure and with Hilt and "RxJava".</p>
<p>This is my "View Model" and I don't know what to do.(This is my first time using this structure and dependencies.)
At my "getTip()" function... | 3 | 1,669 |
Flutter Bloc Rx dart combineLatest2 combine function not running | <p>I'm writing a flutter app and and using the bloc library. I have a bloc and a cubit, within the state of each is a list of ids of some other documents I need to fetch from firestore. There can be some overlap and some docs are already fetched so I want to get the list of ids from both states, compare them, and then ... | 3 | 1,511 |
Ionic 5 - ASSERTION ERROR: Expecting flags | <p>I tried creating another page and modifying the paths but the error only appears when an ion-tabs is present.</p>
<p>And if I remove the <strong>component: MenuPage</strong>, the page works normally (without the tabs)</p>
<p><strong>menu-routing.module.ts</strong> :</p>
<pre><code>const routes: Routes = [
{
pa... | 3 | 1,299 |
ng-repeat not coloring elements properly? | <p>I am stumped on why the fields in my data aren't coloring correctly. I used a simple greater than logic to assign an ng-class of either green, or red. I added debug lines to check that inside the function the values are correct, and the bool is correct, but on the main page items are 'randomly' colored incorrectly. ... | 3 | 1,428 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.