title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Google Visualization - annotations position | <p>I'm using Google visualization stacked bars chart to show a lot of information of my process.</p>
<p>I am trying to do three things necessary to correctly display information.</p>
<p>1) Show the total at the top of the column;
2) When the total value of the column does not fit in the bar, it is next to it, allowin... | 2 | 2,437 |
Project Euler #11 java. Not getting the right answer | <p>I have some problems with <a href="https://projecteuler.net/problem=11" rel="nofollow">Problem 11</a> on Project Euler.
I manage to get an answer, but it's not the right one. I'm getting <code>51267216</code>.
This is found by the <code>greatestVert</code> method. I think the problem is located in the <code>greatest... | 2 | 2,488 |
Center Multiple Slick Slides without animation cut off | <p>So for a visual of what I'm trying to explain I have a <a href="http://codepen.io/spenceroreilly/pen/LNKYgJ" rel="nofollow">Codepen example</a> or the same example code included below. But in essence I was wondering if there was a setting in <a href="http://kenwheeler.github.io/slick/" rel="nofollow">Slick.js</a> th... | 2 | 10,589 |
Android resource linking failed Android Studio 3.3.1 | <p>I am trying to generate APK from my source code and getting below errors.</p>
<pre><code>F:\breeze-2019-3-14\app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:88: error: unexpected element <action> found in <manifest><application><activity>.
F:\breeze-2019-3-14\app\build\int... | 2 | 5,782 |
how to export images to excel in php? | <p>I am using the code below. It is working fine for <code>localhost</code> but it's not working for live. I am getting an error like below:</p>
<blockquote>
<p>This site can’t be reached</p>
<p>The webpage at <a href="http://e2dshop.com/phpexcel_gd/direct.php" rel="nofollow noreferrer">http://e2dshop.com/phpex... | 2 | 5,043 |
TemplateSyntaxError : No module named braintree in paypal template? | <p>I am making a project that sells product and
I want to have a payment using paypal in my django. but I got this error :</p>
<blockquote>
<p>'billing_tags' is not a valid tag library: ImportError raised loading billing.templatetags.billing_tags: No module named braintree</p>
</blockquote>
<p>In my <code>settings... | 2 | 1,331 |
jQuery: click() not working on elements added by jQuery | <p>I made a to do list using Bootstrap and jQuery. Items get deleted from the list by clicking on the 'X' badge on the right side of each list item. This works for the items that are on the page when it first loads, but you can't remove items that are added by the user.</p>
<p>Maybe something needs to be refreshed to ... | 2 | 1,585 |
File Encryption with the Java Cryptography Architecture using AES with a 128-bit key and PBKDF2 | <p>I am getting this error when I am decrypting a file</p>
<p>I am using PBKDF2 to convert a passphrase to a key and then using it. The encryption is working good but when I am trying to decrypt the same file it is giving the below error. The decrypted file gives a correct data except for the last few lines(probably t... | 2 | 3,798 |
How to import accounting voucher in tally erp 9 | <p>How to import accounting voucher with item, quantity, rate and amount in tally ERP 9.</p>
<p>I am developing an android application which should transfer the inventory data to Tally. so far i've managed to send the data to tally using PHP, but tally imports all the data except quantity and rate.</p>
<p>here is the... | 2 | 3,942 |
mongodb with $match, $skip, $limit and $geoNear | <p>I wanted to do this:</p>
<pre><code>model.User.aggregate([
//step 1 match criteria
{
$match: criteria
},
//step 2 skip
{
$skip: offset
},
//step 3 limit
{
$limit: limit
},
//step 4 sort by computed distance
{
$geoNear : {
near... | 2 | 1,151 |
How can I create a tree structure in Python? | <p>I'm trying to make an AI that plays a game that looks a lot like checkers, the logic is pretty much the same. Anyway I'm looking to use Monte Carlo Tree Search method but I have no idea of how to implement the tree structure. If I'm not wrong the root of my tree should be the initial state or board and the nodes sho... | 2 | 1,759 |
(C++) unable to call push() and pop() from my stack object | <p>Why am I unable to use the push() and pop() function calls of my stack? Here are the errors:</p>
<pre><code>HCTree.cpp:65:16: error: no matching member function for call to 'push'
encoding.push(0);
~~~~~~~~~^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c+... | 2 | 1,101 |
Odd SQL Error int parameter converting to nvarchar | <p>Error:</p>
<blockquote>
<p>The parameterized query '(@TeacherID nvarchar(9),@LeaderID
nvarchar(9),@Status int,' expects the parameter '@ORatingID', which
was not supplied.</p>
</blockquote>
<p>Stored procedure parameters:</p>
<pre><code>@TeacherID varchar(9),
@LeaderID varchar(9),
@Status int,
@SharedDraft ... | 2 | 1,172 |
Testing the controller passed to an Angular Material Dialog instance | <p>First off, I am trying to unit test the controller that is being passed to an <a href="https://material.angularjs.org/latest/#/api/material.components.dialog/service/$mdDialog" rel="nofollow">Angular Material Dialog</a> instance.</p>
<p>As a general question, does it make more sense to test such a controller separa... | 2 | 1,606 |
JQGrid data is not loading with xml | <p>I have already seen answer of similar question but it couldn't help. The grid is being displayed and even data is being passed but the only problem is its not getting loaded in jqGrid.
i checked the response in browser, data is being sent in XML format. So, the only problem is its not getting displayed in brows... | 2 | 2,323 |
Entering Rails commands in Terminal, Help is returned | <p>When I enter:</p>
<pre><code>$ rails server
</code></pre>
<p>I get this returned for and rails commands entered:</p>
<pre><code>Usage:
rails new APP_PATH [options]
Options:
[--edge] # Setup the application with Gemfile pointing to Rails repository
[--dev] # Setup the ap... | 2 | 1,114 |
C# Guitar Hero Clone, Note Animation Timing | <p>I am creating a Guitar Hero Clone using C# and am having some trouble syncing animations and the sound.</p>
<p>A rundown of what I do now:</p>
<ul>
<li>A read a file and get the note highway, note time and not length (This is all done correctly)</li>
<li>The notes are put into an array</li>
<li>Before a song start... | 2 | 1,604 |
jqGrid selects row only once, subsequently cannot select any other row, grid stuck | <p>I've got a jqGrid along with a jquery UI button toolbar. My toolbar consists of View & Edit Mode. In my jqGrid onSelectRow I check edit mode with method isInEditMode. This returns true if the button with ui-active-state is edit button.</p>
<p>My grid seems loads correctly, and hover classes turn on/off as a dra... | 2 | 2,012 |
Unclear error log in Visual Studio 2012 | <p>I don't recall when I started getting this in log output window but it looks like this:</p>
<pre><code>[08:37:09.00705- 10692] MyProgram.exe dbglog.cpp(110) DbgLog_F Log for module 'game' (93154) started with process 'MyProgram.exe' (x86, PID: 16632, CmdLine: "R:\Cache\Visual Studio\Debu... | 2 | 3,144 |
How to update PHP version from 5.4.16 to 5.6.20 or a newer version in Wordpress | <p>I have a Centos 7.7. server where I am hosting my website. I tried to update the PHP version from the CLI but nothing has changed on Wordpress:</p>
<blockquote>
<p>"You cannot update because WordPress 5.2.4 requires PHP version 5.6.20 or higher. You are running version 5.4.16."</p>
</blockquote>
<pre><code># php... | 2 | 1,523 |
How to update the props for a child component in Vue.js? | <p>I have a parent component that will do an API call for some data. When the response gets back I update the data. I sent the data to a child component. This child component only renders the initial value, which is an empty array, but never the updated data. I know that in React updating a property will result in a re... | 2 | 5,635 |
How to match two data.frames with an inexact matching identifier (one identifier has to be in the range of the other) | <p>I have the following matching problem: I have two data.frames, one with an observation every month (per company ID), and one with an observation every quarter (per company ID; note that quarter means fiscal quarter; therefore 1Q = Jan, Feb, Mar is not necessarily correct and also, a fiscal quarter is not necessarily... | 2 | 1,941 |
flutter_launcher_icon is not working properly | <p>Today I got confused , just watch the screenshots, and please explain how to change the icons properly in flutter project,</p>
<p>For Android the dependency is working fine</p>
<p>But in iOs I am getting 2 icons just see the screenshots is there to solve this, I also want to change the black background colour to whi... | 2 | 1,437 |
Is there a faster way to read from a file and insert into SQLite | <p>Afternoon everyone. I'm not that familiar with SQLite so I haven't messed with all of the settings of the database. I'm rather familiar with SQL Server, Oracle and even some Access and mySQL. Well, currently, I'm taking a file with 110,000+ records and reading the file line by line, parsing the data and running a... | 2 | 3,192 |
gtk-builder-error-quark: invalid object type 'WebKitWebView' | <p>I am getting the following error when trying to get a <code>WebKitWebView</code> object via <code>Gtk.builder()</code>:</p>
<pre><code>$ python3 test.py
Traceback (most recent call last):
File "test.py", line 11, in <module>
builder.add_from_file("ui.glade")
gi.repository.GLib.Error: gtk-builder-error-q... | 2 | 1,465 |
Android unwanted padding on top and bottom with TextView | <p>I am trying to put two text view within the circular progress bar as shown in the picture below. These two text should be aligned with center of the circular progress bar.
<a href="https://i.stack.imgur.com/lw2W7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lw2W7.png" alt="enter image descripti... | 2 | 1,831 |
createFile() in google Apps Script is not functioning properly | <p>I am trying to create a file. It works fine when I run the following code segment from the debugger in apps script. However, when I run it real time from the spreadsheet, it says I do not have permission to call createfile. Everything that is logged is identical. The issue is not I do not have authority as I am the ... | 2 | 1,327 |
Payara Micro - 404 after deployment | <p>I wanted to try this cool micro app server - Payara Micro, but Im somehow unable to deploy the simplest example possible.
I've created a blank web-app maven project from netbeans, using JavaEE7 with no dependencies. Tried to compile it (nothing much to compile), and ran it successfully with Glassfish 4.1.1 - Hello ... | 2 | 2,521 |
retrieve data from firebase to textview returns null how to fix? | <p>I'm trying to retrieve data from firebase to a texview but it returns null, and I was wondering how I can retrieve the respective data based on the uid only of the connected user.
I tried in different ways today all afternoon but without any success, someone could help me. I've researched and tried all the stackover... | 3 | 1,277 |
Restrict delivery dates for some specific product categories in Woocommerce | <p>I've added DatePicker to my checkout page for customers to pick the delivery date. Also added a script to disable past dates (obviously) and delivery on some holidays. </p>
<p>Here is the script:</p>
<pre class="lang-js prettyprint-override"><code><script>
var disableddates = ["14-02-2018", "25-12-2018"];
f... | 3 | 1,111 |
Is there a way to make a solid div with 3 transparent boxes in it? | <p>I've seen coding on here for one transparent box inside a div, <br>
but not for multiple and I'm having issues getting anything to work right.. <br>
I have one outter div that holds 3 boxes inside to the left, center & right with a border. <br>
I want those 3 boxes to be transparent with opacity 0.3 all the way ... | 3 | 1,403 |
Qt XmlQuery subquery attribute | <p>I am trying to parse a gpx file using QXmlQuery (Qt 5.0).</p>
<p>The idea is to gather all the trkpt elements, and then subquery each element in order to extract latitude, longitude, altitude...</p>
<p>The problem is that it seems to not recognize the attribute name, because this code works:</p>
<pre><code>query.... | 3 | 2,090 |
Not able to get data using query function in select2 and angularjs | <p>I am implementing jQuery select2 in angularjs.</p>
<p>Html:</p>
<pre><code><input type="hidden" ng-model="multiselect" style="width:300px;" dev >
id {{multiselect.id}} // want to print selected items id
text {{multiselect.text}} //want to print selected items text
</code></pre>
<p>Directive ... | 3 | 1,034 |
java application occupying almost cpu time 100% | <p>i am running one java program(server and client),where server reads the file data and send to client</p>
<p>I am not getting what is the problem it is using almost more cpu</p>
<p>My top command output:</p>
<pre><code>top - 02:56:54 up 31 days, 3:29, 0 users, load average: 9.94, 10.24, 10.69
Tasks: 382 total, ... | 3 | 11,307 |
Image not going as a body of email but some random lines are coming | <p>I have written a script that sends image as the body of the email. But instead of image, random lines are coming. This is my script:</p>
<pre><code>from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
from email.MIMEImage import MIMEImage
msgRoot = MIMEMultipart('related')
msgRoot['Su... | 3 | 1,265 |
How do I train a model for an environment with variable features using openai gym? | <p>I have a grid network (like a maze) and I want to find the shortest route from the source node to the destination node.</p>
<p>I've coded that and it works well. It finds the shortest route for a network of dimensions <code>x*y</code> and with the specific nodes as the <em><strong>source and destination nodes</stron... | 3 | 1,629 |
Undefined offset notice with array within foreach loop | <p>i have a form.php with an array posting to update.php to update a mysql db.
The relevant parts of each are:</p>
<p>form.php</p>
<pre><code> if ($type == "1") {echo '
<input type="hidden" id="assettype" name="atype[]" value="'. $row['AType'] .'"/>
<input type="hidden" id="assetid" name="aid[]... | 3 | 1,445 |
limitations in the function backtest from the package fPortfolio | <blockquote>
<p>Error message " Error: subscript out of bounds”</p>
</blockquote>
<p>In the function <strong>backtest</strong> from the package <strong>fPortfolio</strong></p>
<p>Unfortunately, you can only read up to 73 columns here. otherwise</p>
<blockquote>
<p>"Error: Index out of bounds"</p>
</blockquote>
... | 3 | 4,779 |
Sort Array of Struct Arrays [Array][Struct] | <p>I have a 3D array that is built via a an enumerated for loop that performs a background query of local SQL Lite table. 99% of the time everything is in order. 1% of the time things get a bit out of sequence.</p>
<p>As the code to perform the background task is contained within a closer that has a completion handler... | 3 | 3,103 |
restfull api on model with foreign-key | <p><strong>TLDR; How to create REST api on model having Foreign key (or db relationship in general) in buffalo framework?</strong></p>
<p>I am absolute beginner in go and I am trying to write an RESTFul service using buffalo framework following following example given on it official website. I am able to create REST... | 3 | 1,858 |
flutter gridview item at bottom | <p>I have a gridView(3 items in a row) with dynamic number of items. I want gridView item should be at bottom means if there are 3 items then one row at bottom of screen, if there are 6 items then two row at bottom. So a dynamic padding at top depending on item count and screen size. My code structure is like below</p>... | 3 | 1,193 |
Xcode XCTest measure performance with async queues | <p>A framework that I have written for my app downloads different chunks of data that get processed. Naturally, larger sets of data take more time to process. To better investigate how to improve, I thought about writing Tests to measure performance to see where/if it's worth looking into.</p>
<p>Generally, the <code>m... | 3 | 1,205 |
Can't see the back button in Navigation View | <p>For some reason I can't see the back button in the Navigation View.</p>
<p>I don't know if there is some extra code that I need to add in the child view but I don't know. I more or less copied the code from the tutorial, but I can't see the back button in the child view.</p>
<pre><code> var body: some View {
... | 3 | 1,334 |
Get Latest Date for Device In One Table and Pull Related Field From Second Table | <p>I have "table1"...</p>
<pre><code>╔══════════╤═════════════════════════╤══════════╤══════════╗
║ EventID │ UpdateTime │ User │ DeviceID ║
╠══════════╪═════════════════════════╪══════════╪══════════╣
║ 1 │ 2018-03-27 17:36:34.080 │ Sally │ 129 ║
╟──────────┼─────────────────────────┼... | 3 | 1,304 |
Loss becomes NaN in training | <p>I am working on a Faster-RCNN model with below codes.
I am using <a href="https://public.roboflow.com/object-detection/chess-full" rel="nofollow noreferrer">roboflow chess pieces dataset</a></p>
<pre class="lang-py prettyprint-override"><code>def get_model(n_classes):
model = models.detection.fasterrcnn_mobilene... | 3 | 2,322 |
trying to create a donut chart with labels inside the curve using d3.js | <p>I'm trying to figure out how I can fit the text inside the arc and auto-adjust the font size of labels to fit into the arc so that text-overflow doesn't happen.</p>
<p>I'm using D3.js to create a shape and then I'm trying to put the text on the arc and my tweaking my value I'm getting the text inside of the donut sh... | 3 | 3,330 |
how to print array in a component - ReactJS | <p>this is the code of the StoryCreator</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>import React from 'react'
import { Helmet } from 'react-helmet'
import { connect } fro... | 3 | 4,506 |
org.apache.aries.jpa:org.apache.aries.jpa.blueprint:2.3.0 - Can't make run | <p>I'm following the tutorial here (<a href="https://github.com/apache/aries-jpa/tree/master/examples" rel="nofollow noreferrer">https://github.com/apache/aries-jpa/tree/master/examples</a>) to run the aries-jpa examples, but unsuccessfully. The README.md file says to performa the following operations:</p>
<pre><code>... | 3 | 1,587 |
How to declare variable to hold value of JTextField? | <p>I'm doing coding for Food Ordering GUI. I would like to ask few questions. I would like to ask that how should I declare variable to hold value for <code>tfPrice1</code>, <code>tfPrice2</code>, <code>tfPrice3</code>? What should I do to make the "Place Order" button so that when it is pressed it will sum up the valu... | 3 | 2,800 |
Google plus insert moment stopped working using google-api-dotnet-client | <p><strong>The question is:</strong> Is there a new way in calling the API so an activity can be inserted into a user's profile?</p>
<p>I posted <a href="https://stackoverflow.com/questions/15263378/google-insert-moment-using-google-api-dotnet-client">a related question here</a> about a month ago. It was working fine ... | 3 | 1,373 |
How can i save my data displayed in html table from excel sheet in laravel8 | <p>I am able to display my details from excel to the html table but i am not sure how can i save it to my db.</p>
<p>in my controller</p>
<pre><code> $cashstaff = new cashstaff;
$cashstaff->cBillType =$request->input('PayBy');
$cashstaff->cICNO =$request->input('ICNo');
$c... | 3 | 1,077 |
can't loop through chats and get premissions in telethon | <p>I'm trying to get my group/channel permissions with the help of telethon but it gives an error whenever I run the <code>get_permissions</code> function inside a for-loop. This is the code:</p>
<pre class="lang-py prettyprint-override"><code>client = TelegramClient(phone, apiId, apiHash)
client.connect()
if not cli... | 3 | 1,105 |
PHP - Sort and order an array of objects by category name | <p>I am learning PHP and have decided to code my own OOP MVC framework. Now, I have realized several times already that it might not be the smartest move but I mean to see this out to the end. And then onwards...</p>
<p>My issue is creating a listing sidebar based on categories and a second based on year-month-postnam... | 3 | 1,211 |
The Function getDatabase() Called Recursively error? | <p>I am Using SQLiteDatabase to store data that was bought in background in the AsyncTask doInBackground() method, sometimes if the recieved data was not in the database , I insert data, If the recieved data was present already and unread I mark that data as unread...
But it says getDatabase recursively called in doInB... | 3 | 4,269 |
ZeroMQ synchronized PUB-SUB: Subscriber hangs with synchronization but works normally otherwise | <p>I'm using ZeroMQ to establish a publisher/subscriber communication model.<br>
The publisher creates a zmq context and then opens a socket with the PUB<br>
communication pattern. It then binds to a port, as the TCP transport protocol is used. For the synchronization a separate socket is opened with the REP communicat... | 3 | 1,449 |
Changing color of tag-input dynamically angular2 | <p>I want to send invitation email to the users from UI. I need to type multiple email ids of those users which are not already part of our system. I'm using angular2's tag-input for it. Everything is working fine except some validation.
After typing email, I'm checking whether user is already exist in the system or no... | 3 | 1,066 |
How to vectorize this code involving matrix pages in MATLAB? | <p>Is it possible to vectorize, and possibly run on a GPU, the following code</p>
<pre><code>x = linspace(0,100,1000);
h = zeros(size(x));
for i = 1 : length(x)
exprho = expm(-x(i)*rho);
h(i) = trace(drho*exprho*drho*exprho);
end
out = 2 * trapz(x,h);
</code></pre>
<p>where <code>rho</code> and <code>drho</... | 3 | 1,837 |
Eclipse e4 - Hiding Parts while Dialog is open | <p>We are currently developing a Application in pure e4.</p>
<p>We have the Use Case that a ProgressMonitorDialog should be opened, while all open Parts are getting hidden.</p>
<p>Code:</p>
<pre><code>IRunnableWithProgress runnable = monitor -> {
Collection<MPart> allParts = partService.getParts();
... | 3 | 1,824 |
UIView transform property is being reset | <p>I have a UICollectionView. I want a behaviour where when the user touches a cell, it scales down, as if it is getting pushed down slightly. I've accomplished this by using the UICollectionViewDelegate methods:</p>
<pre><code>- (void)collectionView:(UICollectionView *)collectionView didHighlightItemAtIndexPath:(NSIn... | 3 | 1,169 |
Get text from series of elements to an array using cypress JS | <p>I'm trying to get comma separated text from series of <code><th></code> elements in a table row. I tried to use element<code>.each()</code> method for 3 nested loops from Cypress and it was super slow and was throwing error (<code>cy.click()</code> failed because this element is detached from the DOM.) sporadi... | 3 | 2,543 |
Using an older deployment after update | <p>I'm trying to make a wedding website using this person's blog/github: <a href="https://blog.rampatra.com/wedding-website" rel="nofollow noreferrer">https://blog.rampatra.com/wedding-website</a>. I had this to where when someone filled out the form on my website, I received an email and my google spreadsheet updated.... | 3 | 2,116 |
python TimedRotatingFileHandler old empty files | <p>I have a problem with the python <strong>logging</strong> library. I have a <strong>flask</strong> application that uses the following class (<strong>_WrapperLog</strong>) to write logs to a file, the library correctly writes logs to today's file and cleans up files older than 7 days correctly. the problem is that w... | 3 | 1,423 |
convert react function to typescript | <p>I'm quite new to typescript and I was hoping someone could help me convert my react function to typescript. It's a sort array that should take in a string a value as param and sort my data by that value.</p>
<p>Currently the errors I'm getting an <code>Parameter type is implicity any</code> on the <code>type</code> ... | 3 | 1,659 |
Go routine ending mysteriously, channel closed without reaching close statement | <p>I created the following simple program to test the fan-in-fan-out pattern using channel. What it does is generate a few go routines to calculate the square of a number coming from an input channel and send the square into an output channel. All output channels will then be merged into a single channel to print the s... | 3 | 1,125 |
UICollectionViewCell with UITextView poor scrolling performance (cells don't dequeue) | <p>I have a <code>UICollectionView</code> for which cell heights can vary, while the width is full-width (I'm not using a <code>UITableView</code> because I'll need a different layout for iPad in the near future).</p>
<p>Straight to the point first: the weird thing is that dequeueing doesn't really ... dequeue. Cells ... | 3 | 1,360 |
Dynamic Nested Loops on Lists | <p>I have the following code to compute all the possible combinations of odds for a number of games. I would like to do the following</p>
<ol>
<li>Remove all the ugly nested loops.</li>
<li>Allow dynamic games, i.e I will not have to stay creating a match list adding and add an entry to the nested loop. (ex I want to ... | 3 | 1,158 |
Playing Audio Files in Android Logs Strange Error | <p>I am using this method to play sounds in my assets</p>
<pre><code>public void PlaySound(String sound_name) {
try {
if (mPlayer != null) {
if (mPlayer.isPlaying()) {
mPlayer.stop();
}
mPlayer.release();
}
mPlayer = new MediaPlayer();
... | 3 | 1,084 |
How to create class for dynamic JSON structure in Spring Boot Java | <p>I have following JSON structure as input which can be nested and without nested. I want to fetch the JSON as input and process in Spring Boot application. How to create a class which dynamic key values in the JSON. It can be any key-value pairs in the JSON input. Below is the sample one.</p>
<p>Without Nested:</p>
<... | 3 | 1,818 |
ReactJS - Maximum update depth exceeded error in PrivateRoute function | <p>I'm using the concept of a private router to protect my application, but also to redirect in the case something hasn't been set up.</p>
<p>I have the error: <code>Maximum update depth exceeded</code> from the following code:</p>
<pre><code>function PrivateRoute ({component: Component, ...rest }) {
const stateFn ... | 3 | 1,590 |
reactor stream - overwrite old value, keep only latest | <p>At the moment I am trying to implement a standard reactive case with Project Spring Reactor: The producer is faster than the consumer. The consumer should never work with old values if new ones are already available (example: outdated stock prices are not of interest).</p>
<p>In my code example I have a <strong>prod... | 3 | 1,335 |
OperationalError while connecting django and mysql | <p>I have a problem connecting the mysql database with django. I have already tried to find solutions on the internet but nothing helped me. When I change the code in the 'setting.py' file and then enter 'python manage.py migrate' in the console:</p>
<pre><code>(blog) PS C:\Users\kacpe\Dev\blog\blog\blog> python ma... | 3 | 1,906 |
persistence issue with multiple @oneToMany associations in a single class with different classes | <p>I have two <code>@OneToMany</code> annotations in a single class. It works fine when i am persisting address but for the order i am getting an error with the sql.</p>
<p>I saw a solution where they said to use set and trying that also did not help.</p>
<pre><code>@Entity
public class Customer {
@Id
@Gener... | 3 | 6,001 |
Calling delete() on entry widget after user input | <p>I want to call <code>delete()</code> on my <code>Entry</code> widget after the user input but it is causing an <code>AttributeError</code>.</p>
<p>I've already tried to debug myself and I can't figure out where the <code>AttributeError</code> is coming from.</p>
<pre><code>import tkinter as tk
from tkinter import ... | 3 | 1,662 |
Multioutput-Multiclass Classification in Custom Scratch Training in TF.Keras | <p>I want to train a <strong>multi-out and multi-class</strong> classification model from scratch (using custom <code>fit()</code>). And I want some advice. For the sake of learning opportunity, here I'm demonstrating the whole scenario in more detail. Hope it may come helpful to anyone.</p>
<h2>Data Set and Goal</h2>
... | 3 | 2,515 |
problems defining time when pulling data from sqlite3 | <p>i have a problem getting the right setup for pulling data from a database.</p>
<p>i need to pull the last 10 minutes of data, and put it into a chart. i have 2 problems with that, i cant seem to get the arguments to work to get a specific time period (last 10 minutes), but i did manage to just grab the last 600 ent... | 3 | 3,089 |
IndexOutOfBoundsException: I don't see in my while loop | <p>Ive been stuck on this <code>IndexOutOfBoundsException</code> that I can't figure out and I don't see why it's pointing to my <code>while</code> loop. Any suggestions on what to do? The method btw is a round robin scheduling simulator, it seems to be working perfectly with one of my testfiles but not the other.</p>
... | 3 | 1,049 |
How can I configure IdentityServer4 (DotNet Core) to work in Nginx reverse proxy | <p>I've published my API, ID server STS and web ui on separate docker containers and I'm using a nginx container to act as the reverse proxy to serve these app. I can browse to each one of them and even open the discovery endpoint for the STS. Problem comes when I try to login into the web portal, it tries to redirect ... | 3 | 1,670 |
How to call event in entry when button or enter is pressed | <p>I'm currently programming a math program. It has the features of starting, then displaying math questions until you answered 10 correctly, and then stopping. It works, but the user can only confirm their answer when they press a button (<code>confirm()</code>). This is really annoying. I wanted to make it so that it... | 3 | 10,649 |
Autofac Dependency Injection - Data Not Saving to Database | <p>I am trying to implement Dependency Injection with Autofac. I'm trying to add a WebAPI interface to an MVC application. My goal is to create an application that communicates via API while creating an administration panel. I don't get any error message but data is not saved in database. I think it has something to do... | 3 | 2,939 |
Unable to build libraries using cython? | <p>I am trying to build a python code for numerical applications, and has written a cython segment for a particular bottleneck section of the code. However, when I try to build the extension, it return the following error</p>
<pre><code>error: could not create 'plank/routines/overlap.cpython-38-x86_64-linux-gnu.so': No... | 3 | 1,202 |
502 bad gateway on customising wordpress search to include ACF custom taxonomies | <p>My requirement is that I have to modify wordpress custom search to include custom taxonomies.</p>
<p>You can find below Code that I am using for same in my <code>functions.php</code>.</p>
<p>But when I am trying to execute this code on my staging environment
URL is <a href="http://panolam.staging.wpengine.com/?s=... | 3 | 1,883 |
How to repair permalinks on wordpress | <p>I just relocated my wordpress application, and lost my permalinks. I did NOT change URLs. this is just a server-to-server transfer. I'm hoping someone can see what I have done here, and tell me where I went wrong.</p>
<p>I'm expecting: <code>https://trekfederation.com/%postname%</code> to work, but it fails. W... | 3 | 1,976 |
How to draw line between two points, no where else in a layout | <p>We want to create a layout similar to a Match the Following.</p>
<p>As of now, we are able to draw a line on the Canvas, but its is getting drawn on the complete layout.</p>
<p>We want to create a line between two points where both are ImageViews. Also, I want that the line shouldn't be drawn anywhere else expect ... | 3 | 9,995 |
Srapy startproject error - Python 3 - BashOnUbuntuOnWindows | <p>I try to use Scrapy for the first time in a Bash On Ubuntu On Windows 10 and get this error when i start a new project:</p>
<pre><code>(myvenv) mothinx@DESKTOP-4M9JDPL:~/laplanetebleue$ scrapy startproject laplanetebleue
Traceback (most recent call last):
File "/home/mothinx/laplanetebleue/myvenv/bin/scrapy", lin... | 3 | 1,416 |
Map application isn't updating location until Google maps location has been updated | <p>I get the current location in my app only after the google maps is updated first, whereas if I don't update the Google maps, my app isn't able to get the current location.Here's my Java code: </p>
<p>MapsActivity.java</p>
<pre><code>import android.location.Location;
import android.support.v4.app.FragmentActivity... | 3 | 2,603 |
"Authorization is required to perform that action" in Google Scripts with no way to give authorization | <p>I am trying to create a sort of middleware so some legacy software I am working on can consume Twitter feeds. </p>
<p>Since Twitter has made API 1.0 obsolete and 1.1 requires OAuth and because for this project I only have client-side scripting available to me, I opted to use a Google script to perform the OAuth neg... | 3 | 3,171 |
Error jquery function while loading XPages | <p>I have been trying to the same file upload page of bootstrap. I get this error When i try. I copied all of components, Css, images and all of js files in to my database. It work on demo database but not on my application db :( </p>
<p>I think I cannot call jquery file or JS file and code may not communicatate earch... | 3 | 3,275 |
Find numbers that have no primes in their vicinity | <p>Let's assume I have a positive integer <em>N</em>. It is said to be <strong>Lonely</strong> if there are no prime numbers from <em>N-k</em> to <em>N+k</em>, where <em>k</em> is a positive integer smaller than <em>N</em>.</p>
<p>Given two integers <em>L</em> and <em>H</em>, how many <strong>Lonely</strong> integers a... | 3 | 1,358 |
How to fix these errors while installing chakra-ui and react app? | <p><strong>How to resolve these errors while installing chakra-ui and react app?</strong></p>
<pre><code>**user@user:~/Desktop/Projects$ npx create-react-app my-app --template @chakra-ui**
[Error][1]
Creating a new React app in /home/user/Desktop/Projects/my-app.
Installing packages. This might take a couple of minut... | 3 | 2,374 |
achartengine cause null pointer | <p>I have issue regarding package org.achartengine (both available versions 1.2.0 and 1.1.0). </p>
<p>In my application I call new activity, pass on parameters and then fill data for graph.</p>
<p>All this is in same class:</p>
<pre><code>private void showChart(CustomerTransactionModel ctm, String title) {
try {... | 3 | 3,851 |
Object in algorithm is 'not defined' later in graph | <p>I'm having a trouble reproducing the graph for the following code: </p>
<pre><code>ThresholdingAlgo <- function(y,lag,threshold,influence) {
signals <- rep(0,length(y))
filteredY <- y[0:lag]
avgFilter <- NULL
stdFilter <- NULL
avgFilter[lag] <- mean(y[0:lag])
stdFilter[lag] <- sd(y[... | 3 | 1,171 |
Would Iterator loop call end() for many times? | <pre><code>#include <vector>
#include <iostream>
class Range {
typedef typename std::vector<int> Vec;
typedef typename Vec::iterator Iterator;
public:
Range(Vec& vec, const int start_id, const int size)
: vec_{vec},
it_begin_{vec_.begin() + start_id},
... | 3 | 1,490 |
Perl DBD :: JDBC module issue No suitable driver found for jdbc:hsqldb | <p>I am using Strawberry Perl 5.28 version and end up getting issues while installing DBD::JDBC module .
Hence the make/gmake , make test,gmake test is consistently failing even if I download the DBC::JDBC module and run perl Makefile.PL . I already have JDK 8 and JRE installed.
Any help would be appreciated .</p>
<pre... | 3 | 1,628 |
F# 4.5.0.0: Compilation errors: FS1198, FS0661 and FS0001: I'm adapting a interface from C# to F# | <p>My goal is to port FSharp.Core version 4.5.0.0 to .NET 4.0. To achieve my goal I am rewriting parts of Theraot.Core in F#, since FSharp.Core does not "accept" third party libraries: <a href="https://github.com/theraot/Theraot/issues/121" rel="nofollow noreferrer">https://github.com/theraot/Theraot/issues/121</a>.</p... | 3 | 1,617 |
How to remove duplicate child from array PHP | <p>i need help about how to remove one or more array child from set of array that have exactly same keys and values with other child in PHP. Please take a look this array:</p>
<pre><code>Array
(
[0] => Array
(
[scn_fr_tm] => 10:35
[scn_to_tm] => 12:55
[mov_prnt_... | 3 | 1,085 |
How to add row with bit values to mysql | <p>I have tried everything, but I get a crazy space or a 0001 bitmap when I do a select all on that table.</p>
<p>I have tried</p>
<pre><code>insert into web_admin_roles values("SuperAdmin",b'1',b'1',b'1',b'1',b'1',b'1',b'1',b'1',b'1',b'1',b'1',b'1',b'1',b'1',b'0',b'1',b'1',b'1',b'1',b'1');
insert into web_admin_role... | 3 | 1,470 |
Can't get rid of this error: "app:processDebugResources" | <p>I already tried looking for an answer, found some, but none of them fixed my issue. I have no idea what I'm doing, I'm just trying to change some colors and icons, nothing to serious, never compiled something for Android before. What I'm trying to compile is: <a href="https://github.com/dkim0419/SoundRecorder" rel="... | 3 | 1,513 |
How to create an attached-property to change a resource's property? | <p>I have a <code>DrawingBrush</code> as a resource like this:</p>
<pre><code><DrawingBrush x:Key="Calendar" Stretch="Uniform">
<DrawingBrush.Drawing>
<DrawingGroup>
<DrawingGroup.Children>
<GeometryDrawing Geometry="F1 M 28.0917,2.13333C 42.4005,2.133... | 3 | 2,699 |
DTD. Where did i make a mistake? | <p>I try to parse this xml file with DOM parser and My code return me correct result but in runtime, ErrorHandler call "error" method which print me "error" it mean that I I somewhere made a mistake. I think that my mistake in DTD, but I don't know where.</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<... | 3 | 1,511 |
Swift Alamofire.upload: Type of expression is ambiguous without more context | <p>I'm getting the <code>Type of expression is ambiguous without more context</code> error in my code and I'm not sure why. I used the same method before and I never got this error before.</p>
<p>I saw similar posts here regarding this error, but none of the solutions fixed it for me. For example I tried changing <code... | 3 | 1,557 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.