title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
android how do i call this class from mainactivity | <p>how do i call this class from mainactivity ? can anybody help me out am stuck as i am trying to learn thanks will appreciate it if u can help me on this one cheers.</p>
<pre><code>package httpp.myapplication;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.i... | 3 | 1,280 |
Receiving webhook over https in django development server tunneled using ngrok | <p>I need to test a payment integration, where the payment service sends a webhook when payment is successful. The url for the webhook must be <code>https://xxx-ngrock.io/paymentNotification</code>. In this case, I cannot change the url to <code>http</code>. My problem is, I cannot receive this webhook because:</p>
<ol... | 3 | 3,071 |
android how not to mark certain view in the row, but not the row itself in listview | <p>i have a <strong>listview</strong> in which each row contains a <strong>checkbox</strong> and a <strong>horizontal linearLayout</strong> right to the checkbox. the linear layout's background is a drawable, and the layout itself contains two <strong>textViews</strong> side by side (big text and small text -sometimes ... | 3 | 1,606 |
Is it possible to make VFR MP4 from a raw h264 bitstream using ffmpeg? | <p>I have a raw h264 bitstream that I'd like to put into MP4 using ffmpeg but ffmpeg always produces it with a constant frame rate and I need it to be the variable frame rate.</p>
<p>So lets say I have an MP4 with variable frame rate (output from MediaInfo):</p>
<pre><code>Video
ID ... | 3 | 2,073 |
Could not infer template argument when using "typename Container::value_type" as the return value | <p>First define a generic function whose purpose is to execute a function for a list of inputs, and print out each input and the corresponding function execution result.</p>
<p>In the following, <code>func</code> is a reference to a function, <code>funcName</code> is just the function name for terminal display, <code>... | 3 | 1,033 |
How to displaying multiple rows values in a one line of output | <p>i have this query:</p>
<pre><code>SELECT table_1.user_code AS user,
table_1.charge_code,
table_1.unit_code,
table_3.roles_code,
table_2.apps_code
FROM table_1
INNER JOIN table_3 ON
table_1.user_code = table_3.Cod_Usr
INNER JOIN table_2 ON
table_3.roles_code = table_2.roles_code
WHERE
... | 3 | 1,243 |
Recordset Paging isn't Working | <p>Can anyone tell me why my recordset paging isn't working. I don't know a whole lot about this stuff, the parts of it I have in my code I pulled from this Microsoft website link: <a href="http://support.microsoft.com/kb/202125" rel="nofollow">http://support.microsoft.com/kb/202125</a></p>
<p>Here is my code:</p>
<p... | 3 | 1,377 |
Avoiding to loop a pandas series; Subsetting on dynamically changed arguments | <p>I know it's best to avoid looping/iterating over a pandas series. However, for my use case I can't find an appropriate solution.</p>
<p>I have an integer series like (100,101,103,102,99,100,102) etc. and I would like to find the entries/index whenever the value has moved up by e.g. 3. For the above mini series that... | 3 | 2,695 |
Informix divide by zero error | <p>I have a query which is erroring out with a divide by zero error. I have isolated the part of the query which errors and tried to fix it using an NVL but it's just not going well, can someone spot my error?</p>
<pre><code>select warehouse.ware_code,
warehouse.desc_text,
maingrp.maingrp_code,
maingrp.de... | 3 | 1,347 |
How to view Gtag recommended parameters in Google Analytics? | <p>I am using the gtag.js library in my website and view the result in google analytics. I have implemented the <code>purchase</code> event as follows:</p>
<pre><code>trackPurchase({ checkoutResult, order, items }) {
const gtagItems = items.map(item => orderItemToGAItem(item));
this.gtag('event', 'purchase', {
... | 3 | 1,084 |
XAML => I can't access Datagrid parent from Group child | <p>I like to Binding the datagrid parent from Behavior (pnlDgSubFooter) placed in DataGrid/GroupStyle/ContainerStyle/Style[GroupItem]/Setter[template]/ControlTemplate/Expander/Header/DockPanel/StackPanel
But the Binding can't leave of DockPanel.
in ElementName, there is only "btnExpandAll" and himself.
In Behavior, the... | 3 | 3,351 |
Create image of invisible component | <p>I'm working on a customizable control window. The idea is similar to the customizable toolbars in many document editing/creation programs: you have a "source" area with a selection of various controls, and a "destination" space into which the controls can be dragged and dropped.</p>
<p>I figured I would implement t... | 3 | 1,170 |
Store accented word into Sqlite - iOS | <p>I coulnd not find a solution.
I store data into a local SQLITE DB. Everything works except for accented words.
As in the figure.</p>
<p><img src="https://i.stack.imgur.com/azRAp.png" alt="enter image description here"></p>
<p>However, if I try to store accented word by using SqliteManager (Firefox plugin) everythi... | 3 | 1,261 |
MySQL syntax error while creating a new table | <p>I have no issues with the query in the below code. But the second code is throwing the error</p>
<blockquote>
<p>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1</p>
</blockquote>
<p>Working code :</p>
<pre class="... | 3 | 2,024 |
How do I represent the X-axis as the range of factor-type variables with the year name? | <p>I want to make panel that can set the range of the x-axis like <code>DataRangeInput</code>.</p>
<p>However the x-values are factors so i have no idea how to set the range of factors.</p>
<pre><code>cTempData <- read.csv("tidy_league.csv", header = TRUE, sep = ",")
ui <- fluidPage(
... | 3 | 1,677 |
Exercise: Extend PayrollSystem with HourlyEmployee and CommissionEmployee/ Studying Python | <pre><code>class PayrollSystem:
def calculate_payroll(self,employees):
for employee in employees:
print('Employee Payroll')
print('================')
print(f'Payroll for: {employee.id} - {employee.name}')
print(f'- Check amount: {employee.calculate_salary()}')... | 3 | 1,581 |
Get mutual list having both following and follower | <p>I've some schema name <code>follower</code> where <code>user</code> field contains valued which is being followed and <code>follower</code> is one who is following above <code>user</code>. I want the list of users who are following and at the same time also being followed by the same person.Below is the collection <... | 3 | 1,203 |
Gluon Application can't load FXML on ios when I using H2 database as embedded | <p>I have create Gluon mobile application that using H2 database as embedded mode. It working fine on Window,Mac,Android. But it unluckily it not working on iOS simulator (The fxml can't load).</p>
<p>If I comment the code to load Driver, the UI will load properly.</p>
<p><strong>Code Load Driver</strong></p>
<pre><... | 3 | 6,371 |
AngularJS Php file with angular in it not working after $http | <p>I have a php file with a bunch of angular stuff in it and it works fine when I include it directly, however once I include that php file via $http like this:</p>
<pre><code>$http.get('include/step'+step+'.php').
success(function(data, status, headers, config) {
$("#tab_"+step).html(data);
});
</code></pre>
<p>... | 3 | 1,081 |
symfony2 image multiple upload | <p>I'm trying to figure out how to do multiple file uploads but without luck. I have not been able to get too much info on this.. Maybe someone here will help me out? :D</p>
<p>Criteria: </p>
<p>I know that in my form type I'm supposed to use multiples for fields; but when I add it, it gives me the this error.</p>
<... | 3 | 3,515 |
Render a scene with a unique VAO/VBO/IBO using OpenGL | <p>I have written an OpenGL application which works fine and I just want to increase its performance. Of course a good way to do this is to package several meshes in a unique VBO (being carefull to the number of vertices, of course). So I'm not talking about huge scene but in my case a simple scene with only 2 meshes (... | 3 | 1,575 |
Text file download from dropbox | <p>I am trying to download a text file from dropbox Photos folder. is this the right way of doing it? as i am getting some warning due to which i guess its not downloading a file</p>
<pre><code>public void onClick(View v) {
File mFile=new File(Environment.getExternalStorageDirectory().getPath() + "Dow... | 3 | 1,342 |
Allowing administrators to modify user's settings from within my program -- what's my best option? | <p>I've been working on making my app easier to use for administrators. One of the things I'd really like to do is allow admins to modify other user's settings from within the program -- while still making it possible for regular ol' users to modify their own settings, as my application isn't necessarily only for admin... | 3 | 1,250 |
Jest in Bitbucket pipelines: TypeError: Cannot read property 'body' of null | <p>So I have some React component tests that are run on Bitbucket pipeline.
Locally they work fine, but in CI I get the following error:</p>
<pre><code>FAIL src/tests/components/exercise-steps/performance-only/drag-and-drop/drag-and-drop-exercise.test.tsx (5.815 s)
● DragAndDropExerciseUnwrapped Tests › expect to ren... | 3 | 1,259 |
How to unfold only a child element of its parents own in Class Syntax? | <p>I'm trying to select a child element of its parent own (a.k.a <code>firstPanel</code>) in Class Syntax but have no idea how would I do this.</p>
<p>It's easy to refer the each <code>firstPanel</code> in the normal function, and it works perfectly fine like this: </p>
<pre><code>$(function accordian() {
$('.mobil... | 3 | 1,950 |
Firebase Insert is happening instead of update, no error is shown | <p>I am trying to update the fields in firebase database using react native and instead new entry is being inserted on the click of the button. </p>
<pre><code>import React,{Component} from 'react';
import { Platform, StyleSheet, StatusBar, View, Text, TextInput, Button, Alert } from 'react-native';
import {editAp} f... | 3 | 1,393 |
Motion issues with ParallelTransition´s Event Handler in JavaFx 8 | <p>I am working on a College project in javafx: a Game like Space Invaders.I was trying to make The animation of each ovni with a <strong>ParallelTransition</strong>, creating a <strong>TimeLine</strong> animation and adding it to the ParallelTransition for each of them, managing a EventHandler for each of them in orde... | 3 | 7,140 |
Getting responsecode 500 on poset request in android app | <p>I am trying to implement post request to my android application. But unfortunately I am getting status code 500 in response. Here is my code</p>
<pre><code>public class SendPostRequest extends AsyncTask<String, Void, String> {
protected void onPreExecute(){}
protected String doInBackground(S... | 3 | 1,423 |
Code to perform formulas to all excel files in a folder not running? | <p>=I have a code that performs a series of calculations to all Excel (.xls) files in a folder destination and places a specific number in specified cells (G2, H2, I2, M2 and O1). The only issue is the code does not respond when I click run. It doesn't give an error. Any ideas where I went wrong here?</p>
<pre><code>S... | 3 | 1,309 |
How to read custom data variable sent in all twig files in opencart? | <p>i am trying developing an extension for opencart.
I'm using trying to read the custom flag variable "dataopen_location" in all the twig files . This variable(dataopen_location) is used in twig files to decide if to open all links in new tab or not. This variable is set in the admin panel(homepage) of the e... | 3 | 1,255 |
Flutter: How to sync TOTP codes? | <p>I'm writing a very simple 2FA application, which generates TOTP codes for a given secret key, digits, interval and algorithm.</p>
<p>However, I have a hard time with maths, and I do not know how to construct the algorithm for generating the TOTP code</p>
<p>I'm writing the whole app in BLoC pattern using the Flutter... | 3 | 1,345 |
How can we force getattribute() to be called for magic methods (special methods)? | <p>The <a href="https://docs.python.org/2/reference/datamodel.html#new-style-special-lookup" rel="noreferrer">python documentation</a> states that <code>__getattribute__</code> may be bypassed when looking up special methods. This is the result of implicit invocation via language syntax or built-in functions.</p>
<p>F... | 3 | 4,620 |
Bitwise shift of an array of chars in AVR C | <p>Initially I need to send and receive serially some data. The packet length is 48 bits.
For shorter packets (32 bits) I could do something like that:</p>
<pre><code>unsigned long data=0x12345678;
for(i=0;i<32;i++){
if(data & 0x80000000)
setb_MOD;
else
clrb_MOD;
data <<= 1;
}
</code></pre>... | 3 | 1,295 |
Difference in audio sample size between AVCodecContext->frame_size and AVFrame->nb_samples | <p>I am playing with ffmpeg to understand audio data, but I see there is a difference between audio data, <code>AVCodecContext->frame_size</code> shows it to be 1152, but the value I get from<code>AVFrame->nb_samples</code> shows it to be 47. Both data fields describes the same thing i.e no of samples in an audio... | 3 | 3,567 |
Java Server/Client for two computers | <p>I am creating a chat between multiple computers, but i cannot find <b>how to connect a socket to a serverSocket</b> that <b>is not in the client's computer</b>.<br></p>
<p>P.S. I am new of socket programming.</p>
<hr>
<p>This is server</p>
<pre><code>package chat;
import java.io.*;
import java.net.*;
import jav... | 3 | 1,192 |
JavaScript type: "GET" not getting to controller from jQuery dataTable | <p>This is weird (to me)! I can get to the controller by making a straight up ajax call but when I try to make the very same call from inside the dataTable code block, execution never gets in the controller.</p>
<p>I'm new with jQuery datatables but I have other instances in the code base to use as examples. I canno... | 3 | 1,286 |
Clarification of process scheduling, thread scheduling, CPU scheduling in preemptive multitasking operating system | <p>I want to clarify process scheduling, thread scheduling concept, which sometimes even being called CPU scheduling or just scheduling as if it is synonym, due to inconsistent terminology. I mean in theoretical, conceptual perspective.</p>
<p>Condition is preemptive multitasking operating system, which thread is the e... | 3 | 1,052 |
Flex align-items: center only works for one element | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>#draggable-container {
margin: 0 auto;
display: flex;
flex-wrap: nowrap;
align-items: center;
}
.draggable-game-c... | 3 | 1,192 |
How to change state due to action on a different composable | <p>I'd like to appologise first, I'm trying to follow the MRE guidline, but, since it's my first time doing it, I might not ommiited enough code to make it as simple as possible, I will try to get better at this s I progress.</p>
<p>I am having a bit of trouble to work how to recompose animation upon action.</p>
<p>I h... | 3 | 4,765 |
Smallf*ck (simple brainfuck dialect) interpreter endless loop | <p>I'm trying to implement a Smallf*ck interpreter. </p>
<p>Smallfuck is an even more laconic dialect of Brainfuck, which operates on bits instead of bytes, has a limited size of memory tape and has no I/O commands. Thus, it is left with only 5 commands:</p>
<pre><code>* : flip the current bit;
> : increment the d... | 3 | 1,055 |
From fragment to another fragment | <p>For the first second I making a Android App where students can rent a room. Now I work on the login en register pages. </p>
<p>I have a problem with the register page. In my app there can two types of users register they are called "Student" and "Verhuurder". In the account fragment there are two buttons for the re... | 3 | 3,464 |
Ajax PHP : cant go to new php page | <p>The goal for my script is showing list of results from page1.php to page-listes.php</p>
<p>I incluse all method to my ajax call the sucess method was fired but page list not displayed</p>
<p>The ajax call code is :</p>
<pre><code>$.ajax({
type: "POST",
url: "page-listes.php",
data: "name="+name+"&type="+... | 3 | 1,613 |
R ShinyWidgets Embedded dropdownButton | <p>The <code>dropdownButton</code> function from <code>shinyWidgets</code> is great because I can use it to easily create Check / Uncheck all options in a <code>checkboxGroupInput</code> like <a href="https://stackoverflow.com/questions/34530142/drop-down-checkbox-input-in-shiny">this</a>. </p>
<p>However, let's say I... | 3 | 2,079 |
In an electron js application load html template in an iframe after generating executable with electron-forge | <p>I have a simple electronjs application, which basically shows html content (an entire template with scripts, css, etc.) in an iframe (property src pointing to index.html), but I do it through electron dialog by selecting templates compressed in zip and using DecompressZip (decompress-zip, which is an npm dependency)... | 3 | 1,212 |
Getting hr line to go in between two other divs | <p>I am trying to get a <code>hr</code> tag to go in between two <code>div</code>s.</p>
<p>I have placed the <code>hr</code> tag under the first <code>div</code> and above the second. I set both <code>div</code>s and the <code>hr</code> tag to <code>display</code> as <code>inline</code> in hopes of this being a sequen... | 3 | 1,350 |
Onnx is not working. AttributeProto is not a name error | <p>I am trying to use onnx in c++ code. But when I try to use onnx/proto_utils.h I am getting
error: 'AttributeProto' does not a name type. I am not sure is it some issue with my installation
or what. I installed onnx from source, using readme.md installation instructions. If anybody
has any clue what is wrong I would ... | 3 | 2,865 |
Writing Emails to CSV Resulting in Only One Column | <p>I have this script I'm using that I got online and modified a bit. Basically what I want is to scrape all the emails in my inbox and save them to a CSV with <strong>Email, First Name, Last Name</strong> format. So far it is saving all that info into one column of CSV instead of three..</p>
<pre><code>#!/usr/bin/env... | 3 | 1,410 |
UPDATE DATA SUCCESSFULLY, BUT INSERT DATA HAVE ERROR(1264 out of range) in codeigniter | <p>i have write codeigniter file to upload from csv create,update customer,sales and collection while enter old customer it was update successfully not any error.if new customer in csv it was insert customer details and sales details successfully,but it cannt insert collection details and show error 1264 out of range c... | 3 | 4,364 |
Java TCP - server & client working, but can't get answer | <p>I'm trying to make a small TCP server/client thingy. I have a client and a server, and after getting some basic Exceptions solved, nothing works.
The client is supposed to send (user) data to the server (at port 6789, localhost), who is then supposed to write it in uppercase and end it back. Everything seems to work... | 3 | 1,160 |
How to place ViewPager in NavigationDrawer Correctly | <p>I am trying to use ViewPager in one of NavigationDrawer fragment, but this happens:</p>
<p><a href="https://i.imgur.com/dJGApSn.png" rel="nofollow noreferrer"><img src="https://i.imgur.com/dJGApSn.png" alt="Screenshot"></a></p>
<p>As you see, navigationDrawer is under ViewPager, and I want to use ViewPager in only... | 3 | 3,501 |
Using AsyncTask with timer in fragment | <p>I'm using Asynctask to load data via Volley. I want to do that AsyncTask invoked after n minutes, maybe this is duplicate and a silly question, but i cant figure how to implement it. Maybe I need to implement AsyncTask in my fragment ?</p>
<p>This is my AsyncTask.class</p>
<pre><code>package com.aa.qc.task;
impor... | 3 | 2,441 |
how to "Paginate" results into rows not pages | <p>This one is very difficult for me to word, which is what is failing me in my google searching, i brand new to asp.net and it's giving me some difficulties with the logic of this requirement</p>
<p>I have a bunch of results which are displayed primarily as images with some text overlayed.</p>
<p>I have some HTML th... | 3 | 1,415 |
Bridge to Kubernetes Not Working With Grpc Service | <p>Does Bridge to Kubernetes works with Grpc services ?<br/>
I have in Kubernetes a Http gateway which communicates with a grpc service.<br/>
I'm able to run the gateway project locally via Bridge to Kubernetes and receive http requests sent to the gateway service in the Kubernetes cluster.<br/>
When running the Grpc s... | 3 | 2,820 |
Angular2 RxJS - Multiple HttpGet - Notify me when they all complete | <p>I have a component that makes 3 separate http calls. Once all 3 calls complete I want to perform an action (hide my loading bar).</p>
<p>I think the <em>.concat</em> operator is the solution but I am having trouble figuring out how to use it. I only want my http calls to execute once, but because I have multiple... | 3 | 1,157 |
SIGSEGV - [GADDelegateManager didReceiveAd] | <p>I'm experiencing strange crashes on my iOS application with Google Ad-Mob. Crash log is as follows:</p>
<pre><code>SIGSEGV
VLPush-[GADDelegateManager didReceiveAd]
# Binary Image Name Address Symbol
0 VLPush 0x001e0ba0 testflight_backtrace
1 VLPush 0x001e03dc TFSignalHandler
2 libsystem_platform.dyli... | 3 | 2,145 |
Finding Active Clients By Date | <p>I'm having trouble writing a recursive function that would count the number of active clients on any given day.</p>
<p>Say I have a table like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Client</th>
<th>Start Date</th>
<th>End Date</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<t... | 3 | 1,087 |
Bootstrap 2 columns but not another row | <p>Here is my Markup for the bootstrap</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-html lang-html prettyprint-override"><code><script
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&... | 3 | 2,896 |
How to remove legend entry in hovering display when using ggplotly | <p>I have created the following graph using <code>ggplotly</code>. I am looking for a solution whereby I can remove the legend entry in the hovering display. I would only like the hovering display to show the date (x axis) and value (y axis).</p>
<pre><code>p1 <- ggplot(sa_inflation, aes(Date,Rate, col=Key)) +
geo... | 3 | 2,376 |
Efficient algorithms to check if a binary maze is solvable with restricted moves | <p>I am given a problem to generate binary mazes of dimensions <code>r x c</code> (<code>0/false</code> for blocked cell and <code>1/true</code> for free cell). Each maze is supposed to be solvable.</p>
<p>One can move from <code>(i, j)</code> to either <code>(i + 1, j)</code>(down) or <code>(i, j + 1)</code>(right). T... | 3 | 1,249 |
Scanf ignores user input-saves an irrelevant number | <p>I'am having a great issue with my code the last few days.While scanf() function seems to work great during my programm, when the programm reaches a certain point,(where I scan a float number),I just enter the value I want to be saved in variable min_dist but when I print it right after,the variable has a completely ... | 3 | 1,734 |
Database Query Takes One Reload After Form Submit To Update | <p>I want once a user updates the information on their profiles not to reload the input boxes instantly. </p>
<p>Here is a example:</p>
<pre><code>User updates his age box:
User inputs 10
Displays 10
User inputs 20
Displays 10
Page Reload
Displays 20
</code></pre>
<p>I do not know why this is happening. It takes a ... | 3 | 1,407 |
numberofRowsInSection with 2 counts | <p>I have got a json result, that looks like this:</p>
<pre><code>[{
"EventDate": "2015-02-19",
"PubEvents": [{
"Title": "Ladies Night",
"Description": "Every thursday is Ladies Night at the Irish House.\nLadies: 2 cocktails for the price of 1 - 1 pint of Crowmoor Cider - 30 kr",
"Event... | 3 | 1,584 |
I have a problem with swap code in Doubly linked list | <p>I made swap code in C
but I didn't get perfect grade in school compiler.
I think there is a problem with following code.
I made doubly linked list with struct and pointer.
Node is defined that:</p>
<pre><code>struct node* newnode(char x)
{
struct node* new = (struct node*)malloc(sizeof(struct node));
new->... | 3 | 4,095 |
Using save() function on a Model without a primary key in produces an error | <p>I've encountered an unusual error when using the save() function of Laravel. This is the error:</p>
<pre><code>SQLSTATE[42601]: Syntax error: 7 ERROR: zero-length delimited identifier at or near """"
LINE 1: ...pdate "t_h_ledger_sheet" set "o_memo1" = $1 where "" is null
... | 3 | 1,156 |
After the update vuejs - stopped listening to events | <ul>
<li>vuejs-2.5.13 </li>
<li>Laravel Framework 5.4.36 </li>
<li>MacOS10.13.3</li>
</ul>
<p>This is mine <strong>event-bus.js</strong></p>
<pre><code>import Vue from 'vue';
export const EventBus = new Vue();
</code></pre>
<p>Event created in <strong>mediaSelectButton.js</strong></p>
<pre><code><template>
... | 3 | 2,687 |
Why is my line chart not plotting all of my data? | <p>I am trying to create a line charts which covers points of {x: someX, y: someY}. But, it's not covering all of my points, and maxes out when y is 783. </p>
<p>Here is a picture of what's going on:</p>
<p><a href="https://i.stack.imgur.com/hdEJt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hdE... | 3 | 1,072 |
How do I maintain an order after creating a list from a data.frame | <p>I have a data.frame in R, myTable consisting of a date , myDate; integer, myCount and factor ,myCategory. It is sorted by date</p>
<p>I need to create a list from the data.frame (in order to plot a Highcharts graph in rCharts) </p>
<pre><code>mySeries <- lapply(split(myTable, myTable$myCategory), function(x) {
... | 3 | 1,116 |
Strange behavior with multiple ajax requests to the same URL | <p>I constructed a strange situation in a CherryPy server, and I'd like some help understanding exactly what's happening, and why. Here is <code>server.py</code>:</p>
<pre class="lang-py prettyprint-override"><code>import cherrypy
import os
import threading
class Root(object):
def __init__(self):
self.co... | 3 | 1,715 |
All the npm packages get uninstalled when installing a new package, react js application | <p>I am using a typescript-based start kit for my reactjs application. But, the problem is, everytime that I install a new npm package, all other previous packages (apparently) get uninstalled since I get an error of "failed to load module ..." and I have to install them again. I really appreciate any help. H... | 3 | 3,860 |
How to implement Insertion Sorting on a Linked List String Alphabetically | <p>I haven't found any information on this, how can I implement insertion sorting on a string with Linked Lists. I have been able to create the Linked List however I cannot figure out how to implement the sorting part.</p>
<p>I also want to be able to sort by first name and last name but first I need to figure out how ... | 3 | 2,030 |
How to specify clicking a class when there are multiple with the same class name. (Selenium Python) | <pre><code><li class="mod-tile">
<ul class="gallery-hidden gallery">
<li class="thumb" data-src="https://staticdelivery.nexusmods.com/mods/2531/images/1982/1982-1579465585-271404739.png" data-sub-html="Stracker's Loader " data-exthumbimage="https://s... | 3 | 8,496 |
R: How to match or filter variables with same character strings but different sequence? | <p>I've a data set with two variables consisting of full names (name and surname). However, these two variables are ordered in a different sequence:</p>
<ul>
<li><code>variable1</code> is ordered by </li>
<li><code>variable2</code> is ordered by </li>
</ul>
<p>How do I filter the rows such that <code>variable1</code> =... | 3 | 4,090 |
while loop not terminating python | <p>i am writing an interactive program that displays y/n after selecting the option. if at begining itself i press s or c the while loop terminates. if i select some no first time "say 5" the 5th option turns to y but after that if i press "s" or "c" it shows the 5th entry as "n"... | 3 | 1,530 |
Performance: why is the first implementation of the same algorithm significantly faster | <p>The algorithm is taken from LeetCode: <a href="https://leetcode.com/problems/maximum-product-of-word-lengths/description/" rel="nofollow noreferrer">https://leetcode.com/problems/maximum-product-of-word-lengths/description/</a></p>
<p>Here is the jsperf I created (I have some local tests which gives the same result... | 3 | 1,078 |
Microsoft Partner Center SDK. IAzureUtilizationCollection.Query method get fail on Next page | <p>I am using Partner Center SDK "Get a customer's utilization records for Azure" function. Data must be requested page by page. But I have error when request Next page after first.</p>
<p>This is my code and result:</p>
<pre><code> var partnerOperations = UserPartnerOperations;
var toTime = DateTimeOffset.Now... | 3 | 1,253 |
where I need to set my await compared to the code | <p>I can not really find out where along in the code I need to set my "await" so it run my code through to enable users to log in to the site.</p>
<p>Where the problem lies is where should I set my "await" when the user has success by log in to the site.</p>
<p>Error:</p>
<blockquote>
<p>'UserLogin' does not conta... | 3 | 1,099 |
why my code does work on chrome and not once compile using cordova | <p>i'm working on a project using cordova / eclipse / kendo ui and i'm going through a weird behave ...</p>
<p>i developed a sample of test to show you ..</p>
<p>when i try to run that sample on google chrome, it does work, but once compiled and running on my phone (which is a nexus 4 by the way even if it doesnt rea... | 3 | 1,514 |
Unable to update the first row returned using php | <p>I have created a page that brings up the rows in my table with a archive/delete button alongside which will set the deleted flag to 1 and this works fine. however if I press the button on the first row, it fails to run the archive/delete php code. I can update the other rows but never the very first one. Any ideas o... | 3 | 1,408 |
How do you retrieve data from your firebase realtime database to selectable HTML table? | <p>I am trying to retrieve data from my firebase realtime database, and then append them onto my HTML table. However, I don't have any ideas on how to create the HTML table that is selectable and submit what I selected. Here is how my database tree looks like.</p>
<p><a href="https://i.stack.imgur.com/tkRpl.png" rel="... | 3 | 1,297 |
android map -> distance of recorded way | <p>my app allows the user to record his way.
I use the following code to show the coordinates received on a map:</p>
<pre><code>PolylineOptions rectOptions = new PolylineOptions();
for (int i = 0; i < _lstLat.length; i++) {
rectOptions.add(new LatLng(_lstLat[i], _lstLong[i]));
}
... | 3 | 1,325 |
How can I use `NODE_NAME` within an `options` block? - Jenkinsfile Declarative Pipeline | <h1>Question: How can I use <code>NODE_NAME</code> within an <code>options</code> block?</h1>
<p>I've tried the naïve solution to simply try and use <code>env.NODE_NAME</code>, but this evaluates to <code>null</code> inside the <code>options</code> block:</p>
<pre><code>options { lock(resource: "${env.NODE_NAME}&q... | 3 | 5,334 |
How to fetching data from react.js before render compontents and Cannot read property 'includes' of undefined? | <p>I have got two components, child components and parent components.</p>
<p>Here is data format is coming from database :</p>
<pre><code> {permissible_objects :["group", "topGroup"],all_permissions: ["can_view","can_create"]}
</code></pre>
<p>I am going to pass data from parent component to child components . when ... | 3 | 2,028 |
Error resolving my dynamic json compared to hardcoded json in ng-options | <p>I have a listbox and I'm binding a list of item from a controller.</p>
<pre><code>$scope.AvailableListItems = [
[{Id:1,SupplierName: 'john.banks'},
{Id: 2,SupplierName: 'jim.chevy'},
{Id: 3,SupplierName: 'ralph.stocks'}]
];
</code></pre>
<p>This is hardcoded json. When I try this with below html it is... | 3 | 1,061 |
Deserialize JSON data in to a class in c# | <p>hello people I have this Json data:
<a href="https://openexchangerates.org/api/latest.json?app_id=6cf59607a32d408eb3e04de1427a3169" rel="nofollow noreferrer">https://openexchangerates.org/api/latest.json?app_id=6cf59607a32d408eb3e04de1427a3169</a></p>
<p>and I want to deserialize in the following class </p>
<pre>... | 3 | 1,143 |
Why won't requestAnimationFrame() work while nested inside this if statement? | <p>I'm making a tetris game and right now I'm writing the function that drops the piece every 1s(in this case every 800ms). My function looks like this</p>
<pre><code>function drop() {
//grab the current time
let now = Date.now();
//create a var to hold the difference of the current time
let delta = no... | 3 | 6,394 |
How to select the datas which has 'train' as its datatype in dataframe pandas? | <p>I have a dataframe like this:</p>
<pre><code> 0 1 2
filename CF02_B1_D1_M3.wav F02_B2_D1_M2.wav F02_B3_D6_M3.wav
datatype train train test
label 1 1 ... | 3 | 1,208 |
Used Cursor inside cursor for update it is showing o rows effected, logic is working when i tried manually | <p>stored procedure
Used Cursor inside cursor for update it is showing 0 rows effected, logic is working when i tried manually, declaring and closing done properly.</p>
<p>any changes do i need to do<br>
or any alternatives than cursor. </p>
<pre><code>-- SET NOCOUNT ON added to prevent extra result sets from
... | 3 | 2,363 |
Two graphs in Amcharts | <p>I want to drow two graph in <code>Amcharts</code>, but the second one never show the graph and it seems only the first part in <code>chart.dataSets = [dataSet1, dataSet2]</code> always show the graph. Then how to solve it?</p>
<pre><code>function createStockChart(data) {
var chart = new AmCharts.AmStockChar... | 3 | 1,285 |
Bootstrap modal when activated inside tab | <p>Wanted to see if anyone could help me. I have an edit button that sits inside a table which sits inside bootstrap tabs. When I click the edit link to display modal window it doesnt work. However, when I move the same edit link outside of the tabs, it works like a charm. I think it has something to do with the way bo... | 3 | 1,498 |
Null point always | <p>It all ways passing null point after this line, <code>System.out.println("Inside the filter.............." )</code>; so can anyone tell me what's wrong in my code and logic</p>
<p>and home.jsp(index page) did not display. here I want to filter every url and proceed only valid login users requests. here my logic..<... | 3 | 2,053 |
Adding Facebook like button hides other site content | <p>I am using the latest version of <a href="http://www.dotnetblogengine.net/" rel="nofollow">BlogEngine.NET</a>, and I want the share buttons of Facebook, linked in, <a href="http://en.wikipedia.org/wiki/Google_Buzz" rel="nofollow">Google Buzz</a>, etc. to go below the menu, but after adding the Facebook, LinkedIn, an... | 3 | 1,233 |
SQL query -- not returning the right data | <p>In my query I need to return distinct fields for my search. However the txt_note field returns info even if there is none.</p>
<pre><code>SELECT DISTINCT T_ORDER_DETAIL.TXT_ORDER_NUMBER,
T_ORDER_DETAIL.CUSTOMER_PRODUCT_ID,
T_VENDOR.VENDOR_ID,
T_CUSTOMER_ACCOUNT.CU... | 3 | 1,535 |
Azure Devops Visual Studio Tests task cannot discover Nunit tests with the TestCaseSource attribute | <p>I am trying to use the [TestCaseSource] attribute from Nunit with my automated tests run from Azure DevOps. </p>
<p>Example: <em>this test is not discovered</em></p>
<pre><code>public static object[] TestSource = new[]
{
new[] { new MyType() },
new[] { new MyType() },
new[] { new MyType() }
};
[Test, T... | 3 | 1,076 |
use month names instead of numbers, in union select mysql | <p>First, I just used union, and I don't really understand it.
basically, to change the name of the month I usually use</p>
<pre><code>select MONTHNAME (date)
</code></pre>
<p>But in this case I dont know Union more deeply so it is very confusing to change the number of months to the name of the month. Can you help ... | 3 | 1,499 |
blogdown won't render LaTeX when I'm offline | <p><em>I'm using blogdown on an Ubuntu 18.04 system, my 'LaTeX' is TinyTeX, and R is v3.5.2. All my packages are up to date, just ran a <code>update.packages(ask = FALSE, checkBuilt = TRUE)</code> and <code>tinytex::tlmgr_update()</code>.</em></p>
<hr>
<p>And now the issue: LaTeX equations, and everything else, rende... | 3 | 1,166 |
Async call in background task doesn't work | <p>In my app I need to scan for Wi-Fi access point in the background. I am able to start the task and initialise Wi-Fi adapter, but next async call "await scanner.ScanForNetworks()" to perform scan seem to never complete the task. Could it be the result of numerous nested async calls? If so, what could be possible work... | 3 | 3,155 |
ConstraintLayout cannot scale down chained ImageViews | <p>I've created a simple layout containing two ImageViews and one TextView. ImageViews need to be placed horizontally next to each other. I tried to use a spread chain to achieve that but ImageViews cannot be scale down to fit the screen.</p>
<p><a href="https://i.stack.imgur.com/lILHg.jpg" rel="nofollow noreferrer"><... | 3 | 1,125 |
How to use aggregate $lookup to join documents? | <p>routes.js</p>
<pre><code>routes.get('/dataWithComment', async (req, res) => {
await Admin.aggregate
(
[
{
$lookup:
{
from:"Comme",
localField: "fname",
foreignField: "fn... | 3 | 1,644 |
SQL Server/Spring Boot: PKIX path building failed: unable to find valid certification path to requested target | <p>I install SQL Server on my local computer and embedd it into my Spring Boot application. After starting Tomcat I get the following error:</p>
<p><code>'PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target'. ClientConnection... | 3 | 1,253 |
Configure fonts in webpack | <p>I have a slight problem with webpack here; I'm somewhat unable to load fonts.
This is my webpack.config.js</p>
<pre><code>const nodeExternals = require('webpack-node-externals');
const path = require('path');
const devMode = true;
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const ExtractTextPlu... | 3 | 1,953 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.