title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
SQL statements locking recurrently
<p>Hello I am facing a critical issue since 2 weeks, where all the tables involved in below trigger are getting locked in a some scenario and not loading the view pages in the web application in the production region. Below SQL statement is hit continuously in the same request_session_id and when lock occurs while clie...
3
8,191
Organize and adjust the UILabel position per devices - Swift 3
<p>I have SQLite database file and UILabel, and I set text for label from database on the number of characters after convert <code>String</code> to <code>Characters</code>, and I added extension its name (<code>length</code>), its job counts the number of characters.</p> <p><a href="https://i.stack.imgur.com/03API.jpg...
3
1,031
Header elements not resetting when page has been resized (in Safari)
<p>I’ve got this header made up of a nav element and a heading element containing an inline image and words. I chose to place the words into spans in order to target them individually with media queries. Here is a link to the header. <a href="http://noahenart.com/header/" rel="nofollow">http://noahenart.com/header/</a>...
3
1,526
corona sdk - scene keep old items
<p>I'm using director , to move from one scene to another. I have a problem that the buttons and text fields from intor still in the top of screen when moving to any scene.</p> <p>How to remove items (text fields, btns from intro.lua screen) before move to next scene?</p> <pre><code> enter code here -- into.lu...
3
1,333
What's the right version of Angular to use that supports ngRx/data?
<p>I'm trying to build a project (<a href="https://www.learmoreseekmore.com/2021/07/ngrx-v12-an-angular-state-management-using-ngrx-data.html" rel="nofollow noreferrer">https://www.learmoreseekmore.com/2021/07/ngrx-v12-an-angular-state-management-using-ngrx-data.html</a>) that uses ngRx/data. I have the following vers...
3
4,513
Cannot implicitly convert WebApi
<p>I am working on a challenge and I have an error I cannot figure out. It says &quot;Cannot implicitly convert type 'HolidayChallenge.Models.Ornament.Ornament2ListItem[]' to 'System.Collections.Generic.IEnumerable&lt;HolidayChallenge.Data.Ornament2&gt; I am not at all sure how to fix this. The error is on the return q...
3
1,062
HTML E-Mail gets surrounded by white space (just on mobile)
<p>my HTML mails receive a white space around the actualy mail when viewed on mobile clients like the Outlook or GMail App.</p> <p>As you can see here there is some white space on each side.</p> <p><a href="https://i.stack.imgur.com/9bt8y.png" rel="nofollow noreferrer">https://i.stack.imgur.com/9bt8y.png</a></p> <p>In ...
3
2,414
Clear API errors [UWP]
<p>I have a problem with my API, the GET, POST, DELETE and PUT work perfectly. but if for some reason at the time of making a PUT or a POST I generate errors (404, 400, 500, etc) and it is normal that in some times for any query I generate errors ... the problem is that the next Once I go back to do a POST or PUT (bein...
3
1,169
BS4 MemoryError: stack overflow and EOFError: Ran out of input when using multiprocessing in python
<p>I have a simple python script that utilizes Python's BS4 library and multiprocessing to do some web scraping. I was initially getting some errors where the script would not complete since I would exceed the recursion limit, but then I found out <a href="https://stackoverflow.com/questions/52021254/maximum-recursion-...
3
1,206
Gatsby deploy on Netlify failed with Field 'browser' doesn't contain a valid alias configuration
<p><strong>Note:</strong> I know there are similar questions with the same error code here on StackOverflow, but their solutions didn't work for me.</p> <hr> <p>I'm trying to deploy a Gatsby site on Netlify using GitHub. I followed <a href="https://www.gatsbyjs.org/docs/hosting-on-netlify" rel="nofollow noreferrer">t...
3
7,988
Is there someone that could help me with Contact-form validation?
<p>I am trying to combine inputs validation functions with submit function in order to have fully functional simple contact-form that reacts to wrong/right input types and empty fields. Using boostrap 4, read documentation of validation but I don't understand why contact form is sent even if only one field is filled an...
3
1,054
Djnago CheckboxSelectMultiple group
<p>I want to create dependent select fields. For example, if I сhoose <code>PROCEEDING_CHOICES[0][1]</code> of model Card I can't choose any of options field <code>first_dispute</code>. Different situation: if I choose <code>CHOICES[1][1]</code> of model FirstDispute I can't continue my work with field <code>second1_di...
3
1,527
Simple opengl triangle function not drawing anything to screen
<p>I am just getting started with OpenGL, and have already hit a pretty frustrating bug with it. I've followed the learnopengl tutorial, encapsulating most stuff into a renderer class, which has uints for buffers and such. Here is the main code that does everything:</p> <pre class="lang-cpp prettyprint-override"><code>...
3
1,666
React: Content is not adjusting right on form in webpage
<p>I am using ReactStrap to build my web application. This is my code:</p> <pre><code>class Address extends React.Component { render() { return ( &lt;Media body&gt; &lt;Container&gt; &lt;Form&gt; &lt;FormGroup className="d-block"&gt; &lt;Label for="address1"&gt...
3
1,258
MVVM Light RelayCommand binding not working in user control
<p>I'm working on a WPF application which uses the MVVM Light toolkit. I'm creating a wizard and I want to show buttons for navigating to the previous step and the next step on every page. In order to avoid code duplication, I use a user control which provides the buttons.</p> <p>I'm trying to bind the next button's <...
3
1,142
XmlTextReader - XML reading old content after file update
<hr> <p>So I am using a "<strong>Updater.exe</strong>" which is reading an <strong>XML</strong> file on my <strong>webserver</strong>. The Updater checks if a <strong>new version</strong> of the program is available who <strong>transfers</strong> the new file (replacing the old one) and runs it. (The file name is gibb...
3
1,437
UnsatisfiedDependencyException , BeanCreationException..in Spring
<p>I am at the beginner level in Spring , was trying to learn spring by building a basic application , in which data will be stored in dynamo DB and for which I am using Java SDK for dynamo DB, I am including all the files and error here</p> <p><strong>Main Application</strong></p> <pre><code>package main.java.com.anku...
3
6,917
I am trying to throw an exception from another function, but it crashes and gives me unhandled exception. What should I do instead? c++
<code> //checks every turn whether player 1 or player 2 wins using switch and case method <pre><code>void caseCheck() { //when a player wins if (x == &quot;O&quot; &amp;&amp; y == &quot;O&quot; &amp;&amp; z == &quot;O&quot; || a == &quot;O&quot; &amp;&amp; b == &quot;O&quot; &amp;&amp; c == &quot;O&quot; || d =...
3
2,924
There is an error code whenever I try to do the following codes for UE4 FPS Tutorial Section 2.7. What am I missing?
<p>FPSCharacter.h This is the first code needed for the tutorial. Essentially, I was told to add a camera component to this.</p> <p>// Fill out your copyright notice in the Description page of Project Settings.</p> <pre><code>#pragma once #include "CoreMinimal.h" #include "GameFramework/Character.h" #include "FPSCha...
3
1,574
Replace Dropdown Button Text With Selected Dropdown Text
<p>I know this has been asked before - one answer led me to this <a href="http://jsfiddle.net/tuiaverde/vsfsap8m/" rel="nofollow noreferrer">JSFiddle</a>, which is what I want, but it doesn't work in my navbar. The selected dropdown text doesn't replace the dropdown button (Categories). If someone could please point ou...
3
1,685
While loop starts without requirements
<p>This is for tictactoe project . I don't know for how many days I'm trying to fix this it seems like I am making it worse everytime I try. It was working without AI making the moves for the human player. I tried for loop, swicth statement, while loop to write every AI code from stratch to catch what I'm missing. So f...
3
5,452
Menu with line-height makes menu dissappear on zoom
<p>I have a fixed header with a menu floated on the right (<a href="http://outletdokkum.nl/nofcom/" rel="nofollow">http://outletdokkum.nl/nofcom/</a>)</p> <p>This menu uses Line-height to vertically center in the header bar. It's working great but there's one problem. I'm working on the responsive styles now and when ...
3
1,912
How to secure user data in ASP.NET Forms Authentication
<p>I am making an ASP.NET website and am using <code>Forms Authentication</code>; I am using a custom provider for all the security parts (the excellent TinyProviders xml based data providers).</p> <p>Currently, the users data store (an xml file called Users.xml) contains completely unencrypted data:</p> <pre><code>&...
3
1,545
Spark Scala: How to Pass column value from one table as column condition another Dataframe Creation
<p>I have a use case like this - I have a look-up table which contains formula and original table contains columns values and the final table need to create with formula and columns value from original table. For each client , formula will get changed .</p> <p><img src="https://i.stack.imgur.com/AiYkF.png" alt="Lookup,...
3
1,233
Common Lisp macro let-curry - not working
<p>I found myself calling lots of methods whose first argument is a complex object from a given class. Whilst with-slots and with-accessors are useful, generic methods cannot be bound in this way. So I thought: if we could locally curry any functions, slots + accessors + generic functions + functions could all be addre...
3
1,587
Problems migrating to Spring boot 2 with CXF and Apache Camel
<p>In my project we were working with Spring Boot 1.5.7, Apache Camel 2.19.3 and Apache CXF 3.2.1 and we had no problems with SOAP services. But when migrating to Spring Boot 2.1.3 with Apache Camel 2.24.1 and Apache CXF 3.3.2, the SOAP services have stopped working.</p> <p>I hope that when invoking the SOAP services,...
3
2,005
CSS subgrid element overflow issue
<p>I have an overflow issue with a subgrid element. Considering the following code, the second element in the subgrid is prohibited from overflowing by overflow-wrap. This works, but the Gri container does not increase in size to make the grid element fit, and it flows into the third item of the sub grid. How do I pre...
3
1,930
How to remove only the parent element and not its child elements in Python?
<p>A similar question to the one in JavaScript</p> <p>I have a xml and want to comment just the parent tag without its children like in the example below:</p> <pre><code>&lt;object id="12"&gt; &lt;process name="Developer"&gt; &lt;appdef&gt; &lt;attributes&gt; &lt;attribute name="X"&gt; &lt;ProcessVa...
3
1,201
Can't figure out why variable is unassigned or undeclared
<p>Visual Studio just threw this warning screen at me:</p> <p><img src="https://i.stack.imgur.com/kdWBV.png" alt="enter image description here"></p> <p>I know what it means but I can't figure out how to fix it. When I look through the "InitializeComponent()" method everything seems fine. It's a custom control consist...
3
7,181
Single statement consuming ~1000 ms to execute - Is it obvious?
<p>rerouted from <a href="https://drupal.stackexchange.com/questions/83846/single-statement-consuming-1000-ms-to-execute-is-it-obvious">here</a> </p> <p>The <code>concat.=$concat .= $ref_wrapper-&gt;$er_field_mac_id-&gt;nid-&gt;value();</code> line is consuming more time to execute. Is it obvious or is there some thi...
3
1,238
Send Delphi Record via Socket to C#
<p>as the topic mentions I try to send a Delphi record via a socket to C# and try to marhsal it as a struct.</p> <p>IDE: XE7 and MS Visual Stidio 2010</p> <pre><code>Type Data = record intDiscipline: Integer; intNumberOfSets: Integer; strPlayer1ID: string[50]; strPlayer2ID: string[50]...
3
1,604
how to change order of factors in post hoc contrasts after GLM, categorical data with interaction, in R
<p>I have a multiway contingency table with 2 predictor variables: tmt (2 levels) and year (4 levels) and a response variable, number (out of n plots) where a species is present (succ). </p> <p>The data (testsumm):</p> <pre><code> year tmt n succ 1 2012 1 72 27 2 2012 0 68 6 3 2013 1 71 37 4 2013 0 7...
3
1,251
Converting JSON object into Python Dictionary
<p>I have a json object coming from an api call to TMDb(Movie Database) and it looks like the following:</p> <pre class="lang-json prettyprint-override"><code>{ &quot;page&quot;: 1, &quot;results&quot;: [ { &quot;adult&quot;: false, &quot;backdrop_path&quot;: &quot;/8Y43POKjjKDGI...
3
6,015
Android Kotlin custom BottomSheetDialog automatically open when I insert something to Room Database
<p>In my custom <em>BottomSheetDialog</em>, I've made a pop up to register something. But when I insert data from dialog to Room Database, The <em>BottomSheetDialog</em> again appear on the top of screen elements !! But I didn't wrote any code for re-opening the <em>BottomSheetDialog</em>!!</p> <p><em><strong>Here is t...
3
1,412
ReadTheDocs will not autogenerate API documentation for a project that uses Matplotlib
<p>I am able to use Sphinx to auto generate my project's API documentation locally, but I run into trouble when I try to use ReadTheDocs. When ReadTheDocs builds the documentation, the API pages are all blank (see <a href="http://clearplot.readthedocs.org/en/latest/api/clearplot.axes.html" rel="nofollow">this</a>, for...
3
1,218
Dynamic Ajax Content Icelandic charset issue
<p>I'm working on a double drop down menu a'la <a href="http://http://www.coursesweb.net/ajax/multiple-select-dropdown-list-ajax_t" rel="nofollow">http://http://www.coursesweb.net/ajax/multiple-select-dropdown-list-ajax_t</a> See <a href="http://www.hafdal.dk/testing/test.php" rel="nofollow">http://www.hafdal.dk/testi...
3
1,234
error when trying to load file information java.lang.NullPointerException
<p>NetBeans are sending error messages when ever i try to read the file after selecting the file from hard disk using JFileChooser the error message i get this messages but and the file are not loading in the JTable</p> <pre><code>Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at AnimeAid.GuiInt...
3
2,392
.getBoundingClientRect() not changing values on scroll
<p>I am trying to make a side pagination bar, and I want it to change colors when different parts of the page come into view, so I am using the .getBoundingClientRect in javascript. However, everytime I scroll, the position of the element is the same in the console logs, even if I have scrolled all the way to the botto...
3
1,102
Django "Internal Server Error" and "MultiValueDictKeyError" when calling external function
<p>I am running a django project on ubuntu that is supposed to build a website where I can</p> <ul> <li>upload an image</li> <li>run an external script to modify the image on click when uploaded</li> </ul> <p>The uploading process works fine, but when I try to run the external script I get an the internal server error...
3
1,641
HPA NOT scale up on Custom Metrics after updating targetValue
<p>I have an AWS EKS cluster, and I have set up the Prometheus and the Prometheus-Adapter. The thing is, I have tried different values for my HPA metrics target value (the threshold one), in some cases, I can see the scale-up works, but the other fails.</p> <p>Provided my HPA:</p> <pre><code>apiVersion: autoscaling/v2b...
3
2,634
Get placeId of state from city in here geocode api
<p>I have a problem with geocoding states and citys in Germany. I'm not able to get the correct place id for specific countys or states. Lets take a county for example: Oldenburg.</p> <p>Oldenburg county exists twice inside the Here API. </p> <ol> <li><code>Oldenburg (Oldb.)</code> - which is the county from the city...
3
1,234
Finding average data per hour based on the day of the week to simulate data for missing days
<p>I have a set of hourly data taken from 07-Feb-19 to 17-Feb-19:</p> <pre><code> t v_amm v_alc v_no2 0 2019-02-07 08:00:00+00:00 0.320000 0.344000 1.612000 1 2019-02-07 09:00:00+00:00 0.322889 0.391778 1.580889 2 2019-02-07 10:00:00+00:00 0.209375 0.325208 2.3...
3
1,044
How to import a CSV file in remote mode in neo4j in java?
<p>Mysql and PostgreSQL it is possible to import a CSV file from a JAVA program (SpringBoot) remotely so without sending it first in FTP/SFTP and then import csv locally;</p> <ul> <li>PostgreSQL =&gt; COPY %s (%s) FROM STDIN WITH DELIMITER ',' CSV;</li> <li>Mysql =&gt; LOAD DATA LOCAL INFILE '%s' INTO TABLE `%s` %s (%s...
3
4,942
How do I access the value of the first of multiple uploaded files
<p>Currently the code below will display the last uploaded image as a large image after the submit click event. I want the full-image class to display the first uploaded image instead of the last. Is there a way to display the first uploaded image instead of the last uploaded image. Is there a way to grab the value of...
3
4,483
Using R, is there a way to train and cross validate a random forest algorithm with the F1 score?
<p>I have data with class imbalance (the response variable has two classes, one of the classes is significantly more common than the other). Accuracy does not seem to be a good metric to train a model in this situation (I can get 99% accuracy and completely misclassify the minority class). I think that using the F1 sco...
3
1,331
getItem() Adapter method returning an object from other class
<p>so basically my I am making an activity which has 2 fragments that we can navigate through using a viewPager. Each one of those 2 fragments has a listView and a CustomAdapter to populate those lists. Problem is the getItem(int) position in one of the adapters is returning an object of the second. (note that I am not...
3
8,233
intentservice doesn't work as I expected it to
<p>I made a small app that would receive ringer mode change broadcasts and then display a small toast whenever it is received. Although it can be achieved by using only a single activity, I intend to use an intentservice. However, the intentservice I made is making the app crash everytime, and there hasn't been a singl...
3
1,065
Can I change grandparent inline CSS without triggering a re-render?
<p>I'm trying to change a component's inline CSS by clicking one of its 10,000 grandchildren.</p> <p><code>World</code> passes a callback function to its child <code>Terrain</code>. This component creates a grid of 100 by 100 child components <code>Tile</code>. Each one has a position property, which can be passed to ...
3
1,721
jquery multi autocomplete with remote source, showing the results on focus
<p>I'd like to wrap standard jQuery UI autocomplete with jQuery plugin for multi-value autocomplete. Everything works good, except one small thing. I'd like to show suggestions on focus. How should I modify my code?</p> <pre><code>(function ($) { $.fn.myautocomplete = function (options) { var defaults = { ...
3
1,105
Finding 5 elements of the same color in a row
<p>I created a two dimensional array [19,19] of labels. On click a user changes the color of a label to either black or white depending on the iteration. I want a message box to pop up when there are five labels of the same color lined up horizontally, vertically, or diagonally. Only the diagonal check is not working a...
3
3,344
Python text RPG error
<p>I'm making a textual RPG, and I'm running into a problem. So in the code below, mobHP is a global variable, which is equal to 20000. This is only a part of the code. So what's happening is that once the attack takes place, the new HP of the monster is shown, but then by the second attack, the HP again becomes 20000 ...
3
5,170
Associated models in Rails?
<p>In my rails application I have two models called Kases and Notes. They work in the same way comments do with blog posts, I.e. each Kase entry can have multiple notes attached to it.</p> <p>I have got everything working, but for some reason I cannot get the destroy link to work for the Notes. I think I am overlookin...
3
1,087
Converting CSV from two rows into columns with a timestamp
<p>I have a CSV file which is in the format of two rows with 24hr of data in it: (Comma separated. I failed to specify this in my original question, sorry!)</p> <pre><code>Site ID,Meter Reference,Date,Units,00:30,A,01:00,A,01:30,A,02:00,A,02:30,A,03:00,A,03:30,A,04:00,A,04:30,A,05:00,A,05:30,A,06:00,A,06:30,A,07:00,A,...
3
1,041
React Native: Inserting new object inside Array
<p>after successfully implementing sockets, i can now listen to my event from one screen to another. My problem now is that i want to display the new object that i obtained inside my flatlist.</p> <p>Here is the new msg object:</p> <p><code>messages: Object { &quot;conversationId&quot;: 33, &quot;message&quot;: &quot;H...
3
2,280
How can I update my ChartJS in real time (It's works only when I zoom-in and zoom-out)
<p>I want to have a graph with changing every time but it's works when I zoom-in and zoom-out the page, but not when I do nothing. My goal is to have a graph who change every 5 secondes, or in real time but I don't know how I should do but I think it's not very complicated but I don't find the solution.</p> <p>Every 5 ...
3
1,299
How do I properly resize this navigation text?
<p>Bear with me but I'm a total HTML/CSS nooby, couldn't find anything on here that asked this SPECIFIC question. I want to align these ul tags to completely to the right side as they get scaled, but If I scale it any more it'll be too big when the window is scaled-down but just right for the max window and vice versa ...
3
1,067
(Unity Error)hThe option 'android.enableR8' is deprecated and should not be used anymore. It will be removed in a future version of the Android Gradle
<p><a href="https://i.stack.imgur.com/KS3GW.png" rel="nofollow noreferrer">enter image description here</a></p> <blockquote> <p>Configure project :launcher WARNING: The option 'android.enableR8' is deprecated and should not be used anymore. It will be removed in a future version of the Android Gradle plugin, and will n...
3
1,693
Deleting all occurrences in a circular linked list. (java)
<p>I want to implement a method that deletes all occurences of a certain value given as argument.<br /> I created 2 temporary elements and referenced them to the head and I will be browsing the list using them. I was able to write a whole code but I'm not getting any result, I don't know where the problem is, neither I...
3
4,318
Custom post type loop the parent category
<p>On single.php i have a standard WP loop which displays post content.</p> <pre><code>&lt;main&gt; &lt;div class="container"&gt; &lt;?php if (have_posts()): while (have_posts()) : the_post(); ?&gt; &lt;article&gt; &lt;div class="col-md-12"&gt; &lt;h2&gt;&lt...
3
1,180
failed to create menuitem click method in resource directory
<p>I'm struggling with this below problem. my style file in resource directory. but it can't apply click method to context menu item. it's showing below this error. please help me how can i achieve this.</p> <p><strong>Error : "'Failed to create a 'Click' from the text 'OnMenuItemClick'.' Line number '10' and line pos...
3
1,638
How to transfer this code with JQuery Ajax?
<p>Hope you can help me, I recently was told it would suit me best was to use Ajax with JQuery. The trouble is that this code programmed it long ago and following tutorials. I tried to pass the JQuery format but does not work in any way, do not know if some kind soul can guide me how to do it.</p> <p>The code is as fo...
3
1,809
Trouble concatenating data from within nested functions and if statements
<p>Will try to explain this as best as possible with my limited knowledge but sorry if it's not completely coherent!</p> <p>Context - Using puppeteer I'm aiming to extract a list of SKU's from a number of business webpages (all structured the same) that each has a number of pages.</p> <p>Issue - I am able to loop throu...
3
1,230
rmse function issue in R
<p>I have an <code>R</code> code that contains some nested bracket for loop within which I used <code>rmse()</code> function from <code>Metrics</code> package. I tried it without the function and it worked, but inside my nested <code>R</code> code it does not.</p> <p><strong>Here is what I desire to do with <code>R</c...
3
1,297
unable to get selected spinner value when assign values from strings.xml in android application
<p>In <code>android application</code> to <code>populate values</code> into <code>spinner</code> I have <code>used values from values\strings.xml</code></p> <pre><code> &lt;string-array name="myList"&gt; &lt;item&gt;first&lt;/item&gt; &lt;item&gt;second&lt;/item&gt; &lt;/string-array&gt; </code></pre...
3
1,409
How to apply this function to an array without reusing all elements
<p>I'm fairly new to programming and I'm working on a project,</p> <hr /> <p><strong>HTML</strong></p> <pre><code>&lt;div class=&quot;textAnimation&quot;&gt; &lt;span&gt;&lt;h2 class=&quot;animatedHeader&quot;&gt;Text1&lt;/h2&gt;&lt;/span&gt; &lt;span &gt;&lt;h2 class=&quot;animatedHeader twoH...
3
1,058
Enqueue function of queue using linked list in c
<p>I'm having a problem when using linked list to build a queue program. Here's the full code.</p> <pre><code>#define _CRT_SECURE_NO_WARNINGS #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #define ERROR_VALUE -300000 typedef struct LinkedNode { int data; struct LinkdedNode* link; }Node; Node* front; Node* ...
3
1,343
Sticky subheader is flikering on scroll
<pre><code> Hi please check my code pen, just at the time of hiding the subheader it is flickering. `Please help. </code></pre> <p><a href="https://codepen.io/dassuvendu/pen/PoWJNxP" rel="nofollow noreferrer">https://codepen.io/dassuvendu/pen/PoWJNxP</a>.</p> <p><div class="snippet" data-lang="js" data-hide="false" ...
3
1,335
List<Map<String, Object>> to List<Map<String, Object>> group by key with nulls
<p>I have a use case where I need to merge multiple rows from a query with the same key.</p> <p>Input (List&lt;Map&lt;String, Object&gt;&gt;):</p> <pre><code>[ {&quot;brand&quot;: &quot;A&quot;, &quot;sum of A&quot;: NULL, &quot;sum of B&quot;: NULL, &quot;sum of C&quot;: NULL, &quot;sum of D&quot;: NULL}, {&quot;brand...
3
1,230
How to prevent click on raycasted object during mousemove?
<p>I have a group of clickable objects that can be spun either using the scroll wheel or by clicking and dragging. The problem I am having is when you drag and then release on top of an object, it will launch the click animation. </p> <p><a href="https://jsfiddle.net/jacob_truax/j4okp5c6/" rel="nofollow noreferrer">He...
3
1,903
Error java.lang.Integer is not within bounds of type-variable T; BinarySearchTree
<p>I want to create a simple Binary Search Tree which uses generics to specify the data type. However, when I want to create a new tree of Integers, I get the following error:</p> <blockquote> <p>type argument java.lang.Integer is not within bounds of type-variable T</p> </blockquote> <p>I tried other data types wh...
3
1,159
How to choose a field number when using protobuf-net inheritance?
<p>I'm using protobuf-net for serializing a number of types, some of which are inherited from a base type. I know that the Protocol Buffers spec does not support inheritance, and that the support in protobuf-net is basically a workaround because of that.</p> <p>Rather than using the protobuf-net attributes I am config...
3
1,069
How do I get my nav bar to stick to the top of the screen when you scroll?
<p>I am trying to use overflow: sticky; to get my nav bar to stop at the top of the screen when scrolling but its changing nothing, I've seen people say to set margin and padding on ul to 0 which I've done but had no change, I've also tried getting rid of overflow: hidden but that gets rid of the background color of th...
3
1,053
Problem in viewing in custom-listview in android
<p>I wanted to display some images from a folder form mobile SD card. I written an adapter to display image and file name.</p> <p>Unfortunately the app is not showing the list view. What's wrong with the code please help me out.</p> <p>This is listview</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;...
3
1,953
Node.js debugger has a default value of --inspect-brk=PORT without specifying this in the script
<p>When I run my mocha tests in debug mode, Node.js debugger has a default value used as the <code>--inspect-brk=</code> value. Without specifying it in the script, my test script looks like that</p> <pre><code>--timeout=15000 --appName=ejbrowser --role=adminUserOne --env=tst --reporter=spec tests/api/ejbrowser/devices...
3
3,802
Incorrect differences in days between 2 dates
<p>I cannot understand why I get incorrect differences (in days) between 2 dates. From the codes below, I think it is a formatting issue which I am unable to fix. The TZ is Europe/Berlin.</p> <p>This is my data:</p> <pre><code>dat &lt;- structure(list(date_until = structure(c(18657, 18634, 18653, 18637, 18636, 18650, ...
3
1,864
C++ Send a variable List of type ref class to a native class
<p>I basic have the following code.</p> <pre><code>//*** Field.h ***\\ public ref class Field { public: String^ Name; UInt16 Lenght; Field(void); } //*** SNVT.h ***\\ public ref class SNVT { public: String^ Name; UInt16 Index; List&lt;Field^&gt; FieldList; SNVT(void); } //*** Viewer.h ***...
3
1,303
Why can I use onClick in an activity/feed, but, NOT in a dialog fragment?
<p>On Android here is for example an excellent code fragment,</p> <p>showing how to achieve five buttons on a <strong>dialog fragment</strong>...</p> <hr> <p><a href="https://stackoverflow.com/q/19381185/294884">android DialogFragment android:onClick=&quot;buttonCancel&quot; causes IllegalStateException could not fi...
3
1,591
For in assembly, "syntax error" without errors
<p>I'm trying to do a for loop in assembly. I'm using TASM and TLINK. I also have a library that my professor gave to me, but I'm trying to do all the things on my own, and to my surprise, it's not working. So, I just copy pasted my profesor's code and I receive the same error. The error is as follows.</p> <p>I can c...
3
1,429
Control scroll view when having two listview
<p>I'm using uiautomator to turn on the WiFi switch and then connect to WiFi AP.<br> What I want to do is:</p> <ol> <li>Turn on WiFi</li> <li>Connect to WiFi AP</li> </ol> <p><strong>But the problem is the setting page in tablet have two listview.</strong><br> When I turning on WiFi, I need to control the left listvi...
3
1,154
operator does not exist: json = unknown
<p>I am setting up my scraper to my Postgres database and I seem to be getting this peculiar error.</p> <p>After fixing the first issue given by @Adrian Klaver, I am having issues with converting a <code>defaultdict</code> to <code>JSON</code> with postgresql.</p> <pre><code>sqlalchemy.exc.ProgrammingError: (psycopg2.e...
3
11,006
Convert HTML table row to object without HTML tags
<p>I have a table populated from a Webapi call. I'm allowing a person to make changes to the section via selector. What i need to do is get the name of the section, the "add level", "edit Level", "Delete Level" and "read Level" for each row. What i had planned to do was SerializeArray() to get the value pairs(name / va...
3
1,454
WPF DataGridColumnHeader: ContextMenu disappears after hiding/re-showing column
<p>I'm trying to come up with a System.Windows.Interactivity.Behaviour that, when applied to a WPF DataGrid, adds a context menu (or items to an existing context menu) that allow users to show or hide columns.</p> <p>I came up with a solution that <em>almost</em> works very well. Everything works just as expected - un...
3
2,190
main.js:295 DELETE http://127.0.0.1:8081/messages/:0 405 (Method Not Allowed) in Javascript
<p>I'm trying to send a restful with JSON Delete request in JavaScript to nodeJS server to delete a message in a chat app. I tried to enable DELETE method through the request headers but it wouldn't work..</p> <p><strong>How can I enable DELETE method in here?</strong></p> <p>Here is the client request: </p> <pre><c...
3
1,080
Generating a character-type pattern of a field
<p>I want to look at the character content of a field, then produce a count of character-type patterns in that field. So a value of 'SomeStuff 123' would have a pattern of 'XXXXXXXXX 999'. </p> <p>I have a couple of ways of doing this already but they seem long and clumsy. I'd like to find the shortest/most elegant wa...
3
9,039
Specifying a number of nodes in each cluster of clustered force layout in d3js
<p>I am trying to design an infographic using the Clustered Force Layout III example and I have it almost the way I want, but I need to specify a number of nodes per cluster. Cluster 1 - 10 nodes, Cluster 2 - 7 nodes, Cluster 3 - 11 nodes, Cluster 4 - 18 nodes, Cluster 5 - 16 nodes, Cluster 6 - 19 nodes, Cluster 7 - 42...
3
1,582
groupBy autocomplete sorting of options in material ui
<p>I am using material ui Autocomplete and react for generating grouped autocomplete dropdown.</p> <p>Below is the data</p> <pre><code>let top100Films = [ { title: &quot;The Shawshank Redemption&quot;, genre: &quot;thriller&quot; }, { title: &quot;The Dark Knight&quot;, genre: &quot;super hero&quot; }, { title: &...
3
1,115
Google dataflow JDBCIO passing SSL certificate using Java?
<p>I am trying to pass the SSL certificate to the connection properties in JDBCIO. read() and I keep getting the error &quot;No such file or directory exists - /tmp/.jks&quot;</p> <p>What I have tried - I have a class that reads the .jks file from my GCS bucket and then writes it to local file system - /tmp/.jks file.<...
3
1,793
heroku host successfully but application error
<p>I successfully deploy the to Heroku. but when I run Heroku open it throws Application error occurred &quot;An error occurred in application and your page could not be served. if you are the application owner, check your logs for details</p> <p>my logs is here</p> <pre><code>2022-01-23T02:24:56.663017+00:00 app[api]:...
3
3,822
I've got a problem in case 2 of the switch that gives me the NoSuchElementException?
<p>I have the following code that works correctly at the school in a Windows computer, but it doesn't work in my MacOS. Case 2 should give a student's class number but it is giving me the <code>NoSuchElementException</code> only in my MacOS. Why it doesn't work in my MacOS?</p> <pre><code>case 2: System.ou...
3
1,481
I am having trouble loading the Flask image
<p>I uploaded the <a href="http://flask.pocoo.org/docs/1.0/patterns/fileuploads/" rel="nofollow noreferrer">Uploading Files</a> document for photo albums in the project. İmage upload is not working.</p> <p>Python Code : </p> <pre><code>UPLOAD_FOLDER = '/static/uploads' ALLOWED_EXTENSIONS = set(['png', 'jpg', 'jpeg', ...
3
1,050
Manifest registered Activity no longer working with Intent Filter(s)
<p>I have read several questions and answers in the forum, without getting a reason for why my manifest registered Activity is not being executed (and previously was)</p> <p>Not duplicated of <a href="https://stackoverflow.com/questions/14256537/android-intent-filter-for-custom-file-extension">this</a> or <a href="htt...
3
1,232
Sort array by value
<p>I am creating a "Pinned" feature for my forum and I am looking for a way to put my pinned topics at the beginning of the array so that they are "stuck" to the top of the page.</p> <p>If the topic is not pinned then <code>topic_pinned=NULL</code> if it is pinned then <code>topic_pinned=0</code>.</p> <p>The array is...
3
2,235
How do I show options in a spinner that, when selected, save that option as an integer variable?
<p>I'm working on an app that helps a rental business. I have a spinner that pulls in it's content from an array...</p> <p>From datalist.xml :</p> <pre><code>&lt;string-array name="dur"&gt; &lt;item&gt;@string/dur1&lt;/item&gt; &lt;item&gt;@string/dur2&lt;/item&gt; &lt;item&gt;@string/dur3&lt;/item&gt; ...
3
1,147
buildbot: not building, instead shows a "?"
<p>I'm trying to use buildbot for CI purposes. I have setup a buildmaster and buildslave. And, they are both connected. (I'm attaching my master.cfg below)</p> <p>I have the following problems:</p> <p>a) I can see the changes committed on the Waterfall page, which means SVNPoller is working fine. However, none of the...
3
1,076
Laravel, VueJS - keeping 2 arrays in sync while dragging & dropping
<p>I currently have code referencing vuejs packages to handle dragging &amp; dropping and it IS WORKING.</p> <p>Packages:</p> <ul> <li>src=&quot;//cdn.jsdelivr.net/npm/sortablejs@1.8.4/Sortable.min.js&quot;</li> <li>src=&quot;//cdnjs.cloudflare.com/ajax/libs/Vue.Draggable/2.19.2/vuedraggable.umd.min.js&quot;</li> <li>s...
3
1,469
Wasserstein GAN problem with last discriminator layer and clipping
<p>When I use linear or No activation in the last Discriminator layer using weight clipping Discriminator accuracy goes to 1 and Generator goes to 0. In case when I remove weight clipping, Generator accuracy goes to 1 and discriminator goes to 0 around 300 iterations. But when I use sigmoid activation as the last layer...
3
2,719
MariaDB comparing number count from two tables
<p>I'm trying to compare the total <code>COUNT</code> of one value in a table with the total <code>COUNT</code> of another, I'm just not sure how to do it properly. </p> <p>If a <code>SalesID</code> total <code>COUNT</code> in <code>total_sales</code> table is higher than <code>fid</code> total <code>COUNT</code> in <...
3
1,219
Laravel - How to get id for other function in controller
<p>I am beginner of laravel. I am involving in a small project and facing some issue. I want to get the id from the function 'getVoucher' in order to display it in my function 'index'. But I have tried my code at the below, I can't get any id from it. The dd displayed 'null' and I don't know any other solution. Any com...
3
1,119
CSFML with VS Code and MSVC cl.exe LNK2019 error
<p>So I'm brand new to the C language and have started taking a look at CSFML and have run into an issue when trying to compile in VS Code this is my tasks.json:</p> <pre class="lang-json prettyprint-override"><code>{ &quot;tasks&quot;: [ { &quot;type&quot;: &quot;cppbuild&quot;, &qu...
3
2,226
How to separate string input in two, and use the second one to open/create file, to read and write
<p>I am doing a program that reads user input files (coordinates) and it creates a minesweeper mini-game, with bombs placed at given coordinates. My problem is with the read option, the input should be: read filename. I am trying to separate the string in two, but I'm not doing great.</p> <p>ps. I'm a beginner so I pro...
3
2,944