title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Authentication Pages spec with valid information tests failing
<p>I am following Michael Hart'l RoR Tutorial but seem to have a problem getting the authentication_pages test "with valid information" to pass in chapter 8.</p> <p>Specifically, the test complains that the relevant links are missing from the page, even though when I actually visit the page, they are there just fine. ...
3
2,425
NSMutableArray won't fill up
<p>I am trying to fill up an NSmutableAray with data from sqlite database.</p> <p>ItemShow class:</p> <pre><code>@interface ItemShow : NSObject { NSInteger itemID; NSString *itemYear; NSInteger rarity; NSString *mintage; NSInteger availability; NSInteger quality; NSString *mintMark; NSString *masterMark; NSString *d...
3
1,336
useState updating for all list elements
<p><a href="https://i.stack.imgur.com/FehvQ.png" rel="nofollow noreferrer">Before Clicking on picture</a></p> <p><a href="https://i.stack.imgur.com/Q5oVp.png" rel="nofollow noreferrer">After clicking on picture</a></p> <p>So I used useState to play with margins and make a description slide down div which initially hide...
3
2,316
How to speed up the deletion of entries from a table with a large number of entries
<p>I have a table that currently has over 150 million records. The table has no foreign keys.</p> <p><a href="https://i.stack.imgur.com/s7VOR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s7VOR.png" alt="[TABLE]" /></a></p> <p>The database was previously based on MySQL and was migrated to SQL Serve...
3
2,643
Toggling TableColumn.setVisible resets width, setPrefWidth doesn't change it
<p>I have a TableView full of nested columns. On these columns, I have 2 context menu options -- "Hide Column" and "Unhide All Columns", which toggle the visibility of the columns and their children as such.</p> <p>The tableview is populated after the UI is initialized, so the size of the columns is set to the defaul...
3
2,882
ImageView inside listview getting changed on search refresh
<p>I have a <code>listview</code> which contains <code>TextView</code> and <code>ImageView</code>.</p> <p>Here it is: </p> <p><img src="https://i.stack.imgur.com/T3BCA.png" alt="enter image description here"> </p> <p><code>OnClick</code> of <code>ImageView</code> changes opens an <code>alertdialog</code> with button...
3
1,054
Python Pandas fill missing column with left join
<p>I have following two data-frames.</p> <p>df_1</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>AA</th> <th>BB</th> <th>CC</th> <th>DD</th> </tr> </thead> <tbody> <tr> <td>&quot;Apple&quot;</td> <td>XYZ1</td> <td>XYZ2</td> <td></td> </tr> <tr> <td>&quot;Apple&quot;</td> <td>PQR1</td> <td>P...
3
1,650
Running chrome extension process while popup is closed
<p>Basically I am trying to create an Auto Visitor Extension for Chrome to open a website's URL after some specific time. When I open the popup everything works fine but when the popup is close nothing works. I am trying to find out a method to run that Auto Visitor Extension even when the popup is close I have read mu...
3
1,100
My onActivityResult() is never called
<p>I have 2 Activities, Parent Activity starts Child Activity. When we are in Child Activity, the User closes it via the "Up"-Button in the menu and is returned to Parent Activity.</p> <p>Essential code snippets:</p> <p><strong>Parent (Main) Activity:</strong></p> <pre class="lang-java prettyprint-override"><code>pr...
3
1,246
RestKit 0.20 NSArray serialization problems
<p>I'm trying to serialize an NSArray of objects.</p> <p>The object serializes as:</p> <pre><code>{"age":1,"name":"Foo"} </code></pre> <p>If I have an NSArray Containing these objects, it should serialize as:</p> <pre><code>[{"age":1,"name":"Bob"},{"age":4,"name":"Sally"},{"age":2,"name":"Jill"}] </code></pre> <p>...
3
2,027
Starting a Service in an AlertDialog and have an outside Activity bound to it
<p>First of all I've tried searching for this ans was unsuccessful. If my question is out there already answered could someone please point me to it? Thank you very much for either helping me here by looking at this, or even by skimming this and pointing me in the right direction. I really do appreciate it!</p> <p><st...
3
4,930
NullPointerException while trying hilt injections in JUnit5/Jupiter test cases
<p>I'm trying to inject an JUnit5/Jupiter test case with hilt injection but getting a null pointer exception. Using JUnit4 everything works.</p> <p>To reproduce a simple test case is sufficient.</p> <p>my project gradle file</p> <pre><code>// Top-level build file where you can add configuration options common to all su...
3
6,223
i want to make change my container color when i pressed the container
<p>** i am making the quiz app. consider each questions have four options(each option is a container in code). what i want is when i select the wrong option it need to show to selection container as red and also the correct answer as green. and when i press the right option it need to show selected container as green.<...
3
7,063
I am getting a "TypeError: form is undefined" when I first load my page
<p>I am developing a form that i can transmit new hire data to our recruiting with JSON. I just started this but am also kinda new with Node.js and am testing as i go. Can you please let me know how i can stop this error from coming up.</p> <p>Error: TypeError: form is undefined <a href="http://localhost:63342/VAP_FOR...
3
8,809
Heroku Scheduler: undefined local variable or method `params' for CreditsController:Class
<p>I am trying to automate a task with Heroku Scheduler. I tested the task in local and it works. I created a temporary route for testing, and it works everytime I hit the route:</p> <pre><code>get 'create_expired_credit_lines' to: 'credits#create_expired_lines' </code></pre> <p>credits.controller.rb</p> <pre><code>...
3
2,316
Excel mql4 mismatch
<p>This is an indicator I am working on. The problem I am having is it doesn't match the same output as my excel file, and I am pretty sure my excel file is correct. If you would like to help me solve this issue just email me at thetfordjw@gmail.com Subject: Excel mql4 please and I will send you the excel file. Otherwi...
3
6,001
SAPUI5 Reusable Table Fragment Data Binding
<p>I am starting to develop SAPUI5, trying to apply concepts and best practices from other web dev toolkits I know so far, please be kind as my knowledge is still fairly limited.</p> <p>I want to re-structure a project and replace copy-paste code with reusable parts. Custom controls are not the right way as far as I ch...
3
1,330
Apache Solr atomic update results in NullPointerException
<p>Im trying to partially update a document via an atomic update, when I do so, the web sever responds with a 500 status with the stacktrace of</p> <pre><code>{ &quot;responseHeader&quot;:{ &quot;status&quot;:500, &quot;QTime&quot;:1}, &quot;error&quot;:{ &quot;trace&quot;:&quot;java.lang.NullPointerExc...
3
3,066
symfony contact form is submitted but emails dont arrive
<p>I need some help regarding sending emails in symfony 4.</p> <p>I made a contact form in symfony 4. where i use formbuilder and swiftmailer. The contact form works, it validates and i can submit. but emails don't arrive plus i don't get a confirmation message on the contactpage itself after sending. i use mailer wit...
3
2,112
Update 1.7 class to 1.12.2 spigot
<p>i am trying to update a 1.7 class to 1.12.2. i fixed some errors but i dont know how to fix the other errors. if anyone have a suggestion, i would be very very happy...</p> <p>The Class:</p> <pre><code>package de.beastsoup.utils.spigot.bo2; import java.io.BufferedReader; import java.io.File; import java.io.FileRe...
3
4,005
jQuery fullcalendar doesn't update database after resizing
<p>Ola,</p> <p>I got some events stored in a database and i'm showing these in my jquery fullcalendar. Now i also got it working so that i can change the day of an event by draging and dropping. Changing the time by resizing a event i can't get working tho.</p> <p>I guess it has something to do with me not giving a t...
3
1,613
Fix RegEx to properly capture text inside parenthesis
<h2>SCENARIO</h2> <hr> <p>Time ago I asked a question to format music filenames in certain conditions:</p> <ul> <li><a href="https://stackoverflow.com/questions/32807698/regex-pattern-to-limit-dashes-in-these-circumstances">RegEx pattern to limit dashes in these circumstances</a></li> </ul> <p>However, I noticed to...
3
1,571
Call a PHP File with AJAX
<p>I have been looking at other questions and based my code out of the corresponding answers, but I can't seem to make this work. I would appreciate if someone more experienced than me can help me see clearer on this one.</p> <p><strong>jQuery:</strong></p> <pre><code>$(function () { $(".going-decision").click(functi...
3
2,060
android : calling class from onResume()
<p>I am trying to call a class from onResume() of my activity. But evrytime i am getting class not found error. </p> <p>Here is the code for the onResume():</p> <pre class="lang-java prettyprint-override"><code> @Override protected void onResume() { super.onResume(); try { sendHiddenMai...
3
3,173
Why is my browser preventing me from submitting empty fields ? Symfony
<p>I made a form that allows users to register.</p> <p>There is one question that asks what language they want to learn. In order to make the question optional I created the new field type to my User entity in Terminal and I specified that it can be <strong>null</strong>.</p> <p>But, when I validate the form without an...
3
5,984
Error - model sent to the view is incorrect
<p>I am getting following error message.Could somebody tell me why I am getting the following error message. My model is getting initialized with values when I debug the controller.</p> <pre><code>The model item passed into the dictionary is of type 'AngularJSMvcExample.Models.RegistrationVm', but this dictionary requ...
3
1,883
python mysql query not displaying correct result
<p>I have a code here and it's supposed to show all results where the selection from combobox like id = the value in the entry box. But when the code is executed I get a empty set "[]", it skips to the if statement which gives me a messagebox, despite the fact that the database is populated and it's displaying properly...
3
2,095
How To Apply Regex in Shiny App Filter/Button?
<p>I'm super new to Shiny Apps and to R. How would I add a button that allows me to filter the passed-in dataset using this regex? The uploaded dataset would all contain the same column names, and the column I want to apply the regex to is &quot;close_notes&quot;. I want to first <strong>convert this column to a string...
3
1,165
Recursive custom thumbnail for embedded YouTube API won't replay
<p>I have an embedded YouTube video, but I want to use my own custom image for the face (thumbnail) of the video before <strong>and after</strong> the video plays. I have it working successfully up to where it shows the custom image in place of the video, and when the image is clicked, the image is removed and the vide...
3
1,739
How do I get this banner to show up using bootstrap?
<p>I'm trying to get an image to take up the width of the page but for some reason it wont show up. I think I've set up the path to the banner correctly i did background-image:url('/images/banner.png');</p> <p>HTML</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;link rel="stylesheet" type="tex...
3
1,383
Socket connection to ftp not receiving answers
<p>I'm using C#, Visual Studio 2008, Framework 2.0 for embedded device.</p> <p>I'm having trouble with the use of a Socket connection to communicate with FTPs.</p> <p>In the purpose of you guys to help me, I wrote a snippet to explain my troubles...</p> <pre><code> IPEndPoint endpoint; Socket cmdsocke...
3
1,322
How do I use a ListView tool to list my activity classes in Eclipse (Android) within an activity?
<p>I am making an app that shows a list of campfire songs, and currently all I can see on my app is a list of all the songs and when clicked on, they open up another activity. The next activity that is opened looks how I want it to, but the list of songs on the first activity (menu) only shows a list with no formatting...
3
1,605
Retain fragment data on screen rotation
<p>I have 3 fragments where 1 fragment makes changes to the other 2.</p> <p>The problem is: When I rotate the screen background color and places of fragments 2 and 3 are restored. I want to keep them without modifying <code>AndroidManifest.xml</code>. Is it best to use onSaveInstanceState or setRetainInstance or both?<...
3
1,504
Construct count array in better than O(n^2) time complexity
<p>Given an array <code>A[]</code> of size <code>n</code>, construct two arrays <code>C_min[]</code> and <code>C_max[]</code> such that<br> <code>C_min[i]</code> represents number of elements smaller than <code>A[i]</code> in <code>A[0 to i]</code> and<br> <code>C_max[i]</code> represents number of elements greater tha...
3
1,572
How to make my menu items do something?
<p>I am new in Android world. I have followed <a href="http://developer.android.com/training/implementing-navigation/nav-drawer.html" rel="nofollow noreferrer">this tutorial</a> to create a swipe menu but the items of this menu just show an image. I want to link every single one to a new activity, is this possible?</p>...
3
2,298
Getting information out of a listbox windows phone 8
<p>i'm currently developing an app for windows phone 8, that grabs JSON data from the internet, parses it into a collection, binds this collection to a listbox and shows it. This works fine, and i do it like this:</p> <pre><code>void downloadData() { // Instance of a WebClient object WebClient downloader = new...
3
1,224
Latest compiler versions and GLIBC_2.32 dependency
<ul> <li><p>When I compile my library with <strong>GCC 11</strong> or <strong>Clang 12</strong> I get a GLIBC_2.32 dependency.</p> </li> <li><p>When I compile the same library with the same arguments but with older version compilers (<strong>GCC 10</strong>, <strong>Clang 11</strong>) I don't get the GLIBC_2.32 depende...
3
1,745
Nodes Title around a Circle
<p>I created a force layout around a circle in d3js (<a href="https://stackoverflow.com/questions/22439832/d3-js-how-do-i-arrange-nodes-of-a-force-layout-to-be-on-a-circle">D3.js how do I arrange nodes of a force layout to be on a circle</a>) and now I want to put the labels around like this:</p> <p><a href="https://i...
3
5,097
ActiveRecord::AssociationTypeMismatch in Controller#create Error in my Project
<p>Can I get some assistance with my code which is throwing an <code>ActiveRecord::AssociationTypeMistach</code> in my JobsController#create. </p> <pre><code>ActiveRecord::AssociationTypeMismatch (JobCategory(#70843392) expected, got "At Home" which is an instance of String(#20478408)): app/controllers/jobs_contro...
3
1,517
Bug with a certain SECRET_KEY, when trying to handle filebrowser, on settings
<p>I encounter this message : I don't use widgy for information, just Mezzanine at 3.1.10 and Django 1.6.11</p> <pre><code>Traceback (most recent call last): File "C:\Users\olive\git\MezzanineRoxdev\MezzWidgy\manage.py", line 10, in &lt;module&gt; from MezzWidgy.settings import PROJECT_ROOT, PROJECT_DIRNAME File "...
3
9,410
listview with button and call the previous step after clicking
<p>I'm new to android development. I have 2 <code>ListView</code>s. when I click on one item on the first <code>ListView</code>, the new dataset will show in the second one. I have added a <code>Button</code> to the second <code>ListView</code> (<code>onItemClick</code>). Using an <code>Adapter</code>. So when I click ...
3
1,372
how to change the display amount of viewpager title?
<p>Can i know how to change the specific amount of the view-pager title? Currently, the view-pager only able to show 3 title at once by default. In this case, i intend to change the total display amount into 5. I tried to use tab host and others layout cannot achieve what i want to display. </p> <p>Actually what i wan...
3
1,237
Django Form Date Input Field Not Showing Errors
<p>I have a form on a registration page that requires a date to be entered, along with a few other fields. If the user enters non-valid information into the date field (like a string) and submits the form, Django rejects the form as non-valid, but I don't get any error messages on the page - But for the other fields on...
3
5,224
popup alert - search loop
<p>I am a beginner so the question may be strange :)</p> <p>I want to test the Main Menu of the website &quot;https://tvn24.pl/&quot;</p> <p>I am looking for elements, I put them into the list and then iterating through it opening each page found - Works fine</p> <p>Now step two: On only two pages(<a href="https://kont...
3
1,173
Pagination did not work on the first page. The current path, &vacancy=2, didn't match any of these
<p>I am implementing search with pagination in Django. When I clicked Next pagination button, received error:</p> <blockquote> <p>Page not found (404) Request Method: GET Request URL: <a href="http://127.0.0.1:8001/&amp;vacancy%3D2" rel="nofollow noreferrer">http://127.0.0.1:8001/&amp;vacancy%3D2</a></p> </bl...
3
3,765
Enabling Logs for AWS WAF WebAcl does not work in CDK
<p>My goal is to enable logging for a regional WebAcl via AWS CDK. This <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html" rel="nofollow noreferrer">seems to be possible</a> over Cloud Formation and there are the appropriate constructs in CDK. But when ...
3
1,135
SAXParser to parse XML data from CLOB in Java-Hibernate
<p>I'm working on a web application that uses Spring MVC and Hibernate,</p> <p>I want to parse a XML data from CLOB and print it, I was follow this tutorial <a href="http://thinktibits.blogspot.com/2013/01/read-xmltype-as-clob-java-jdbc-example.html" rel="nofollow">thinktibits</a> and <a href="http://www.mkyong.com/ja...
3
4,140
How to read file zip using JSZip in Firefox SDK
<p>I want to make addons to work to extract the zip file locally like this (<a href="https://stuk.github.io/jszip/documentation/examples/read-local-file-api.html" rel="nofollow">here</a>). But I have a problem when making use firefox SDK. Which can not be read zip because somethings wrong when get path of <strong>filei...
3
2,014
formSheet never works on iOS
<p>I've been trying to integrate &quot;onRequestClose&quot; that basically closes the formSheet on iOS whenever swiped down but it never really seems to work.</p> <p>Demo Link: <a href="https://snack.expo.dev/aN0gVemPi" rel="nofollow noreferrer">https://snack.expo.dev/aN0gVemPi</a></p> <p>Or the code:</p> <pre><code>im...
3
1,457
Strange output while iterating in Python using While loop and If statement
<p>I am trying to iterate over the range (1,10).</p> <p>For each number in the range, I want to apply the below logic.</p> <ol> <li><p>If the number is even at the start or turns even at a subsequent stage, I would like to collect the quotient of the number devided by 2 in a list.</p> </li> <li><p>If the number is odd ...
3
1,707
Not able to query dynamoDb data using GeoDataManager in Node
<p>I am trying to follow the very basic tutorial of Geo Library for Amazon DynamoDB given here <a href="https://www.npmjs.com/package/dynamodb-geo" rel="nofollow noreferrer">https://www.npmjs.com/package/dynamodb-geo</a>. Even after following the steps mentioned in link, my myGeoTableManager.queryRadius() call is not g...
3
1,143
Passing data between angular controllers using service
<p>I am having trouble passing data between controllers using a service. What i want to happen is when send data is clicked the data inputted into the text field should be populated in the Results controller. However nothing shows</p> <p>Home.html:</p> <pre><code> &lt;html&gt; &lt;body&gt; &lt;ion-header-bar class=...
3
1,190
PHP Functions - Comparison error
<p>I am getting an error trying to run the following code. Can you help me fixing this? </p> <pre><code> if((invite_limit($id_usr) &gt;= 2)||(pending_users() == ' ')){ echo '&lt;div class="new_ativa_off"&gt;'; echo '&lt;div class="new_qtd"&gt;0&lt;/div&gt;'; echo '&lt;div class="new_txt...
3
1,240
not able to send form data through ajax via json object
<p>I am trying to send json data through ajax in jersey api . however i am not able to send the data. Here is my code:</p> <h3>javascript code</h3> <pre><code>var jsonObj = createDataObj(); $.ajax({ type : "POST", url : "/api/orders/addOrder", data : jsonObj , ...
3
1,756
JavaFX functions do not work even though there are no errors
<p>I'm following a tutorial loosely by thenewboston and I'm running into a bit of a roadblock. To my understanding the ID in the .JFXM file is equivalent to a variable in the controller class. The onAction command is a reference to a function in the controller class.</p> <p>The tutorial link: <a href="https://www.yout...
3
1,247
Access "too few parameters" or crash but only before compact and repair
<p>Bit of an odd one here, essentially I have a VBA function in Microsoft Access that takes two arguments provided and cuts the data from the existing table to a temp table, and then compares this to the latest data from an external an SQL database and then reappends the updated information.</p> <p>This has worked fine...
3
1,577
Scroll button behavior
<p>The button scrolls past the content I want to be shown. I want the &quot;About Us&quot; section to be showed to the display of user (100vh), but it just scrolls past that.</p> <p>Here's the code:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-...
3
3,026
Flutter logic issue
<p>I'm building this small game , it's similar to Qix game .</p> <p>I already built the first screens now i need to implement the functionality , the car should be moving using the buttons , and while moving it should draw like a container behind it until it feel all the stadium .</p> <p>this is where I'm making the c...
3
2,507
Button type button posting data is not saving in DB
<p>i added on message Box and i am posting that data but not adding in my DB.</p> <p>when i am trying to click Confirm button it is not saving in data-base how it will save to data-base can you please help me.</p> <p><a href="https://i.stack.imgur.com/iNBzZ.png" rel="nofollow noreferrer">enter image description here<...
3
2,052
What does 'x' do in curve/dnorm, and why does it work in my function?
<p>I am making a function <code>Prop.Histogram()</code> that plots data as a histogram showing the proportions with a normal distribution curve added to it. Addition of the curve was difficult for me to achieve, but I succeeded (see code below)!</p> <p>Note: I personally prefer to work with the pipe-operator <code>%&gt...
3
2,410
Query that returns values where a certain number of rows meet certain condition
<p>I'm trying to make a report and i'm having some dificulty designing a query to show the data i need.</p> <p>I have 2 tables:</p> <pre><code>+-----------+------------+----------+ +TherapyID + CostumerID + ClinicID + +-----------+------------+----------+ + 1 + John + Clinic 1 + +-----------+----------...
3
1,052
ASP.NET Core & SPA - client files not published when the client is outside of the server folder
<p>I have a project which has separate client and server folders and my goal is to include client files during the server's publish process. The folder structure looks like this</p> <pre><code>|- server | |- src | |- MyProject | |- MyProject.csproj |- client |- src |- dist </code></pre> <p>Using t...
3
1,177
Need Help reading JSON JAVA
<p>I have a JSON with this code.</p> <pre><code> [ { }, { }, { }, { }, { }, { }, { "Producto0":[ { "crf":"4555424" }, { "name":"Limpiador" }, { "desc":"Producto d...
3
9,784
Incorrect row numbering sequence
<p>I have two tables (questions and answers) with a row number for questions and another for answers. The row number for questions increments when the question changes. The row number for answers increments each answer and resets to 1 for each new question. Both row numbering increments as intended, but the sort order ...
3
1,453
def function not running correctly
<p>Please don't be too mean I have only started to use Python and wanted to try and complete a calculator that can use brackets and BIDMAS. I am currently at the stage of starting the part about brackets but when I run my program it will not run my def functions properly.</p> <pre><code>import time import os import ra...
3
1,292
Works in JSFiddle not in web directory
<p>Here is the <a href="http://jsfiddle.net/CPeGK/2/" rel="nofollow">JSFiddle link</a>!</p> <p>The code works fine except when I insert it in my index.html then the browser cannot resize the icon.</p> <p>Using the following script tags in my header of the index.html file in my web project</p> <pre><code>&lt;script t...
3
2,558
(Homework) Running, but not returning the values I need
<p>I am very new to programming. I understand that loops would make this look a lot more efficient. But for right now, I just need to figure out <strong>how to return the correct value</strong>. I need to figure out the best animal based on their value. The highest value should be returned.</p> <ul> <li><p><strong>I h...
3
1,091
loading bmp images OPENGL 3.x - only loading one pixel?
<p>So Im having a bit of trouble loading texture images. I am not exactly sure what I could be doing wrong. It seems to only be reading the last pixel and I am not sure why? Any help is appreciated. Here is my code:</p> <pre><code>#include "Angel.h" #include &lt;glew.h&gt; #include &lt;glut.h&gt; #include &lt;typein...
3
2,941
Trying to read excel using pandas and adding them as records on Pysolar/Solar but got TypeError: a bytes-like object is required, not 'str'
<p>I am trying to read specific columns from an excel file using pandas. When I am trying to add those records to Solr got TypeError.</p> <p>The code which i am using -</p> <pre><code>from __future__ import print_function import pysolr import pandas as pd df_my = pd.read_excel('C:\\Users\\shantanu.nandan\\Desktop\\sam...
3
1,405
Removing d3-flame-graph when loading new data
<p>Recently I picked up a project that has <code>d3-flame-graph</code> on it and the graph is displayed according to the Filters defined on another component. My issue is that when searching with new parameters I can't seem to clean the previous chart and I was wondering if someone could help me. Basically what I'm hav...
3
2,240
SQL - How to count number of distinct values (payments), after sum of rows where they have another column value (Due Date) in common
<p>My 'deals_payments' table is:</p> <pre><code>Due Date Payment ID 1-Mar-19 1,000.00 123 1-Apr-19 1,000.00 123 1-May-19 1,000.00 123 1-Jun-19 1,000.00 123 1-Jul-19 1,000.00 123 1-Aug-19 1,000.00 123 1-Jun-19 500.00 456 1-Jul-19 500.00 456 1-Aug-19 500.00 ...
3
1,133
AWS problem accessing Spring cloud eureka server
<p>I am migrating my spring cloud eureka application to AWS ECS and currently having some trouble doing so. </p> <p>I have an ECS cluster on AWS in which an EC2 service of eureka-server is running on it. in this service, there is a task running</p> <p><strong>My problem is that:</strong> </p> <p>For my Eureka-server...
3
8,657
Recylerview items that are visible are not getting updated when notifyDataSetChanged() is called
<p>I am having a recycler view whose vies of the items that are visible are not getting updated, when notifyDataSetChanged() is called. The items that are invisible are getting updated without any problem.</p> <p>I have seen that this has been a problem with listview as given here: <a href="https://stackoverflow.com/q...
3
14,057
Mustache js - template for navigation not loaded sometimes
<p>I'm building a site with the help of Mustache js. There is quite a lot of data in the top navigation.</p> <p>The problem is that approximately half of the time when I load the html, the navigation is not loaded/missing -The output is an empty div :</p> <pre><code>&lt;div id="nav"&gt; &lt;/div&gt; </code></pre> <...
3
7,192
Iterate through DataContext items without casting it to a viewmodel type
<p>Is their a way to access Items contained in a DataContext without having to explicitly cast it to this <code>ViewModel</code>.</p> <p>Let's say I'm binding a <code>DataContext</code> on an MvxFrameControl view, then I obtain this DataContext in code-behind once it is binded. It will look like an anonymous object co...
3
1,029
How to allow scrolling on a modal window with open dropdown?
<p>I use Material UI Dialog and use property scroll=&quot;body&quot; for modal window. I have issue when dropdown is open a can't scroll modal window. How to allow scrolling in this case?</p> <p><a href="https://codesandbox.io/s/material-demo-forked-gy2ns?file=/demo.tsx:1283-2699" rel="nofollow noreferrer">https://cod...
3
1,066
C++ - BST segmentation fault upon deletion of node with 2 children
<h2>Segmentation faults when trying to delete a node with 2 children</h2> <p>So i've recently started studying algorithms and have been working a bit on binary search trees, basing my C++ code on the pseudo code taken from the book <code>Introduction to Algorithms</code>. I'm however having large issues with it's delet...
3
2,531
How to avoid putting dll.config files containing EF configuration into bin output directory?
<p>In my build artifacts for .NET(C#) app I have a lot of <code>dll.config</code> files. I don't know why they're put there. I looked at all my <code>packages.config</code>, <code>app.config</code>, <code>web.config</code> files and they have <code>Do Not Copy</code> setting in their property. I can't see any settings ...
3
1,458
TCPDF table header apply a different margin on next page + closee table before page break
<p>The code used to print the pdf is as follows:</p> <p><strong>PdfController</strong> :</p> <pre><code>/** * @Route("/{id}", name="api_article_pdf", methods={"GET"}) */ public function gepdf2html($id) { // create new PDF document $pdf = new \TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UT...
3
2,166
<video> causes many requests *before being clicked*
<p>Even with preload disabled, the most simple <code>&lt;video&gt;</code> tag</p> <pre><code>&lt;video src="video.mp4" preload="none"&gt;&lt;/video&gt; </code></pre> <p>will cause <strong>10</strong> requests to the server <em>before being clicked</em>:</p> <pre><code>89.212.77.133 - - [01/Dec/2010:11:48:43 +0100] "...
3
1,241
Can someone explain that why the BehaviorSubject result like this?
<p>I wrote a service contain a BehaviorSubject called loginStatus and a function to return that.</p> <pre><code>private loginStatus = new BehaviorSubject&lt;boolean&gt;(false); getLoginStatus(): Observable&lt;boolean&gt; { return this.loginStatus; } </code></pre> <p>Then I subscribe it in other component's DOM with ...
3
1,342
Unexpected results for yaml-cpp comparisons
<p>Consider the following code (yamltest.cpp):</p> <pre><code>#include &lt;yaml-cpp/yaml.h&gt; #include &lt;iostream&gt; #include &lt;string&gt; int main() { std::string val = "[1, 2, 3]"; YAML::Node yn0 = YAML::Load(val); YAML::Node yn1 = YAML::Load(val); std::cout &lt;&lt; "===== yn0 =====\n" &lt;&lt; yn0 ...
3
1,154
OS X Crash: pointer being freed was not allocated
<p>Need a help to understand the real reason of a crash. I've made the app that should work 24/7. It reads and prepares some data from an equipment and creates a web-server to send data to the probe. The crash happens after a various amount of time, so I can't really reproduce it in the simulator.</p> <p>Here are the ...
3
2,166
SOAP Webservices
<p>I have a wsdl containing SAOP Header and SOAP Body. I generated client with eclipse and APACHE CXF and sent request. But request is failing saying Header is missed or invalid.</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; </code></pre> <p> </p> <pre><code>&lt;types&gt; &lt;xsd:schema&gt; ...
3
1,716
WPF:DataGridTemplateColumn on Windows server 2003/2008
<p>I have a <code>DataGridTemplateColumn</code> :</p> <pre><code>&lt;DataGridTemplateColumn CellStyle="{x:Null}" Width="85" Header="{Extentions:DisplayName Type=Type:StandardClass, PropertyName=ProductKind}"&gt; &lt;DataGridTemplateColumn.CellEditingTemplate&gt; &lt;DataTemp...
3
1,412
Passing a Datatable From One Form to Another Form
<p>I have a form1 and form2. Form2 is opened from form1, it has a dgv after filling it, it's copied to a datatable on a click button, and form2 is closed or visible = false. I passed the datatable to form1 but it's giving me a null reference. Here is my code in form2:</p> <pre><code>private void button1_Click(objec...
3
1,258
PHP Upload - how to get the relative path of an uploaded file?
<p>I have my videos in a folder on my desktop:</p> <pre><code>/home/john/Desktop/Samples/Vids/small.mp4 </code></pre> <p>How can I get this file path from upload or other ways?</p> <p>This is my html form:</p> <pre><code>&lt;form class="form-submission" method="post" action="upload.php" enctype= "multipart/form-dat...
3
1,049
Syntax errors in vue.js code for autocomplete
<p>hi I'm trying to <a href="https://vuejsexamples.com/an-autocomplete-typeahead-component-for-vue-2-and-bootstrap-4/" rel="nofollow noreferrer">autocomplete/typeahead component for Vue 2 and Bootstrap 4</a> This is my code.</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;link href=&quot;https://stackpath.boot...
3
1,113
Unexplained halt of execution
<p>I am working on a Java process that contains 2 threads: one for reading a file's contents and adding them in one shared blocking queue; and one for retrieving the lines from the blocking queue and sending them through the network (under a specified send rate). The two classes I have are the following:</p> <p><stron...
3
3,166
setImageResource causing crash of application
<p>i'm trying to make a button that when clicked on it picks a random card from a set of card and show it into an ImageView. To do this I have a Card class for their value and their id (the image card name in drawable).</p> <pre><code>public class Carte { int valeur; static String nomCarte; public Carte(int vale...
3
1,402
App is force closing when i run it? Unable to start app activity
<p>When i run it i get an immediate force close. I can never understand the logcat errors. I am using Eclipse along with the Android SDK. Here is the Logcat error but what does it mean?</p> <pre><code>02-29 12:59:35.875: E/AndroidRuntime(9759): FATAL EXCEPTION: main 02-29 12:59:35.875: E/AndroidRuntime(9759): java.lan...
3
4,165
Delete empty dataframes from List
<p>Have this following dataframe's List which I'm working with inside a for Loop. Here I have two empty dataframes, x[[2]] and x[[4]]. How can I remove then inside my for loop, let's say, if I do:</p> <pre><code>for (i in 1:length(x)){ ****x[[i]] = ***remove empty dataframes in x[[i]]*** } </code></pre> <p>DATASET:</p...
3
1,681
CopyFileExW fails with 0 for an existing file
<p><strong>Context:</strong></p> <p>I have an application that searches files in a directory using <code>QDirIterator</code>, filters and copies specific files.</p> <p><strong>Problem:</strong></p> <p>Using the results from <a href="https://doc.qt.io/qt-5/qdiriterator.html#next" rel="nofollow noreferrer">QDirIterator::...
3
2,535
Android programmatically add ImageView with ConstraintLayout
<p>I want to programmatically insert several ImageView into a RecyclerView using ConstraintLayout.</p> <p>To insert images in an equidistant way using Horizontal Bias, the value for each image is calculated as:</p> <pre><code>float biasedValue = (1f / (flightPlanWeather.weather.size () + 1f)) * (i + 1f); </code></pre...
3
2,270
.sheet: Shows only once and then never again
<p>Working with Beta4, it seems that the bug is still existing. The following sequence of views (a list, where a tap on a list entry opens another list) allows to present the <code>ListView</code> exactly once; the <code>onDisappear</code> is never called, so the <code>showModal</code> flag changes, but does not trigge...
3
1,961
React Redux how to properly distribute components
<p><strong>I have a store in Redux, I'm making an online clothes shop with products for Womans and Mens</strong></p> <pre><code>const defaultState = { womanProducts: [ { name: &quot;Mini Skirt&quot;, img: &quot;https://static.pullandbear.net/2/photos//2022/I/0/1/p/8399/316/800/8399316800_4_1_8...
3
2,532
502 error and unhealthy health status in the target group when using AWS ELB and ACM for https
<p>I'm using AWS ELB and ACM to use HTTPS on Node.js but, I have been facing 502 error.<br> The health status of the target group for the HTTPS is &quot;unhealthy&quot; which is making me understand I'm doing something wrong around ELB.</p> <p>The following is what I did.</p> <p><b>[ELB]</b></p> <b>VPC</b>: Same VPC wi...
3
2,164
Apache Ignite Near Cache - local cache metrics
<p>I've been experimenting with Ignite Near Caches. In doing so I'm configuring a client node with two server nodes in the cluster. I instantiated a near cache and would like to see the associated metrics on the cache hits/misses. Functionally everything works fine, but I can't figure out where the near cache metric...
3
1,517
Toggle "CanExecute" of a button based on grid selection
<p>I am very to Modern UI Programming and now i got stuck in a small C# WPF Application which is basically a learning project of MVVM design pattern.</p> <p>I have a DataGrid and some Buttons to handle data operation (add, edit, delete).</p> <p>What i want to achieve: the edit button should not be enable, when no row...
3
2,506
I get a java.util.NoSuchElementException on input from System.in
<p>I am writing code for a program which displays a map based a file with x &amp; y coordinates, as well as a type value.</p> <p>My code correctly displays the ASCII map and allows me to perform functions on the map, but when the code finally returns to the switch statement where it should take input for choosing the ...
3
4,475