title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Why do I need to refresh the page to get the newly-updated data? | <p>I was making an application including a comment function with "likes" and "dislikes" just like Facebook. But I find when users click the button of "like" or "dislike", everything goes well --- the database has been updated and the new data has been rendered back to previous webpage, except users need to refresh the ... | 3 | 1,310 |
Highlighting the list rows | <p>I'm having an issue with a long press on a row to get highlighted. </p>
<p>I looked over how to handle the single click to lead to another activity and a long press to get the contextual action bar comes up. I decided to switch the listview choice by ListView.CHOICE_MODE_MULTIPLE_MODAL and ListView.CHOICE_MODE_NONE... | 3 | 2,131 |
Unable to display elements of singly linked list in reverse order using stack? | <p>I have written the program to add two integer numbers of very large sizes wherein each digit is stored in a node of linked list.When i run the program my display method is not working.Can anyone tell me what is wrong with my display() method?</p>
<pre><code>#include<stdio.h>
#include<stdlib.h>
typedef s... | 3 | 1,356 |
Jquery append option to select and get the selected value | <p>Having trouble with this part.
I have a select populated with asp.net mvc and 2 other empty select that is populated by jquery</p>
<pre><code><select id="Type" onchange="GetClassification(this.value);">
@foreach (var item in Type)
{
<option value="@item.TypeID">@item.TypeName</option>... | 3 | 1,094 |
ksoap2-android connecitong problems | <p>so I am having a problem trying to send 6 variables to a web service (<a href="http://hydra.chorleywood.org/hydradevices/devicesmanagement.asmx" rel="nofollow">http://hydra.chorleywood.org/hydradevices/devicesmanagement.asmx</a>)</p>
<p>I am using ksoap2-android in android running 4.2 API 17</p>
<p>My program cras... | 3 | 1,309 |
Detect end of ajax request from asp by javascript | <p>If the user click on an <code>input</code>-tag (<code>type="radio"</code>), I load new data from the database. Because it can spend a time, I show a loading animation. After it must the animation be undisplayed. </p>
<p>Now is my question: how can I detect if your ajax request from an aspx page has been finished by... | 3 | 1,104 |
ccTouchBegan doesnt work-iOS | <pre><code>- (BOOL)ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event {
if (_nextProjectile != nil) return;
CGPoint location = [touch locationInView:[touch view]];
location = [[CCDirector sharedDirector] convertToGL:location];
[[SimpleAudioEngine sharedEngine] playEffect:@"pew-pew-lei.caf"];
... | 3 | 1,425 |
How to make the toolbar appear when switching between fragments using CoordinatorLayout, Toolbar and fragment | <p>I'm using the layout below, The <code>CoordinatorLayout</code> holds inside it <code>AppBarLayout</code> (With Toolbar) and the <code>fragment</code> layout.</p>
<p>I'm using <code>app:layout_scrollFlags</code> in my Toolbar and <code>app:layout_behavior="@string/appbar_scrolling_view_behavior"</code> in the fragme... | 3 | 1,450 |
Video exceeds window's size - JavaFX and FXML | <p>i've a trouble with JavaFX and FXML.
I've a simple FXML file structured in this way: </p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.control.ToolBar?>
<?import javafx.scene.layou... | 3 | 1,363 |
Using config file with Paypal SDK throws PayPalInvalidCredentialException | <p><sup>This was originally a support ticket that ended up being my <a href="https://en.wikipedia.org/wiki/Rubber_duck_debugging" rel="nofollow noreferrer">rubber duck</a>. I'm posting it to stack overflow to help anyone that comes behind me. Hopefully, it'll save you some time.</sup></p>
<h3>Required Information</h3>... | 3 | 2,050 |
Storing string and double values from a single line | <pre class="lang-java prettyprint-override"><code>import java.util.Scanner;
public class a2q1 {
public static void main(String[] args) {
double reg = 0;
double heap[];
heap = new double[5];
boolean end = false;
Scanner in = new Scanner(System.in);
... | 3 | 1,193 |
Trouble with looping over specific elements in nested Handlebars imported arrays | <pre><code><div class="sub_container">
<div class="logo-col"> </div>
<h2>Welcome to {{title}}</h2>
<script>
function showDiv() {
var Displayobj = "";
var Finalobj = "";
for (var i = 0; i < "{{projects.length}}"; i++) {
Displayobj="{{pro... | 3 | 3,506 |
How to select multiple columns with 1 column with count | <p>I have two tables namely tbl_votes and tbl_candidates:</p>
<p>tbl_votes: contains the ff column:</p>
<pre><code>voteID president vicePresident secretary treasurer rep1 rep2 rep3
1 1 3 9 12 15
2 1 ... | 3 | 1,902 |
replace a mysql database table if it exists | <p>I am using the following to add a load of columns to my mysql database, the problem I am having is that it just stops and throws and error if the column already exists in the table. Is it possible to replace the columns if they already exists ?.</p>
<pre><code> ALTER TABLE `rok5g_chronoforms_data_editcustomer` A... | 3 | 9,275 |
Cannot get image content from tika api using .net | <p>We are getting content of image from tika api(2.3.0) when we are calling from postman app. But the same call returns something else when we are calling from .net code.</p>
<p><a href="https://i.stack.imgur.com/s5tMM.png" rel="nofollow noreferrer">Postman API Call</a></p>
<p>.net code as follows</p>
<pre><code>using ... | 3 | 2,408 |
Running Django's collectstatic in Dockerfile produces empty directory | <p>I'm trying to run Django from a Docker container on Heroku, but to make that work, I need to run <code>python manage.py collectstatic</code> during my build phase. To achieve that, I wrote the following Dockerfile:</p>
<pre><code># Set up image
FROM python:3.10
WORKDIR /usr/src/app
ENV PYTHONDONTWRITEBYTECODE=1
ENV ... | 3 | 1,212 |
Why is the program not using information outlined in the code? | <pre><code>from tkinter import*
from tkinter import Tk, StringVar, ttk
#-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------#
import random
import datetime
import time;
#-----------------------... | 3 | 1,796 |
how to compare a string input field value with array of word in a conditional statement | <p>I've been trying to get a form to load custom errors if some conditions are met,
I've been able to accomplish some of the desired results but I am still yet to achieve the condition of comparing the input field value with an array of words, this is my code</p>
<p><div class="snippet" data-lang="js" data-hide="false... | 3 | 1,739 |
Use splice and for or forEach | <p>I'm trying to show the coupons from a client that exist in one api. If one (or 'n') coupons exist inside of another api that counts the used coupons, i have to delete from the list that or those coupons used. The api of the used coupons response something like this:</p>
<pre><code>{
"State": 200,
"Response": [
... | 3 | 1,136 |
How to fire an 'if condition' after making an ajax call to a view? | <p>I'm building a search bar that searches for objects in my database and if the search finds some matching objects, it then displays the objects in the html page without reloading it. But after I fire the Ajax call and get the tuples from the database, they are not being rendered on the template</p>
<p>So, the flow i... | 3 | 1,467 |
How to delete duplicate elements in a multidimensional array? | <p>I have a json file like this. It contains popular songs by year. I will use this songs to create decade based playlists later.</p>
<pre><code>{
"1940": [
{
"artist": "Tommy Dorsey",
"title": "I'll Never Smile Again"
},
{
"artist": "Bing Crosby",
... | 3 | 6,296 |
iCloud error reading records with asset or asset lists | <p>Running Xcode 7.1.1 under El Capitan on an iPad with iOS 9.2.</p>
<p>Running this code against a very simple database ... with a database containing a record type defined as a string, a reference + an asset field. </p>
<pre><code>-(void)slideLoader:(CKRecordID*)slideReference {
privateDB = [[CKContainer defaultCon... | 3 | 1,531 |
I have a csv with inputs, I want output csv. inputs generates some urls and I want to append them to existing dataframe | <p>I have a CSV file with some keywords. With the keywords, I generate 10 - 15 URLs using the SERP API. I want to append the URLs to column URL with respect to that keyword. For one keyword there are multiple URLs. If I am not able to add URLs to respective keywords the keywords will be replicated with different URLs.<... | 3 | 2,826 |
How to group in XSLT using Muenchian Method? | <p>I'm quite new to XSLT and I'm using XSLT 1.0. Now I need to group some stuff in a quite big XML file. There are lots of examples out there but none worked for me for some reason. I'm able to group the info I want, but I also get some extra text in my output xml. Here's what I'm doing right now;</p>
<p>Input XML (th... | 3 | 1,407 |
I got 0x1E error (INTEGRITY_ERROR) while change DESFire master key.What are my mistakes?And How can I resolve? | <h2>Whole update1: see question again.</h2>
<p>I recently am working with <code>DESFire</code> cards .I now decide to change defult <em>master key</em> of <em>PICC</em>. </p>
<p>(I already could authenticate with master key all 8 byte 0x00 successfully)</p>
<p>1- Defult <code>master key</code> is 8 <code>byte</code>... | 3 | 4,549 |
Cocos2d .mp4 video not playing | <p>I am trying to play an .mp4 video in cocos2d. Please see my code below. The video doesn't play, only a black background covering a little more than a third of the screen appears.</p>
<p>Instructions.m:</p>
<pre><code>#import "Instructions.h"
@implementation Instructions
- (id)init
{
self = [super init];
... | 3 | 1,068 |
SQLSTATE[HY000]: General error: 3780 Referencing column 'store_id' and referenced column 'store_id' in foreign key constraint are incompatible | <p><a href="https://i.stack.imgur.com/O3tV6.png" rel="nofollow noreferrer">Table structure in phpMyAdmin</a></p>
<p>create new table in my new module by InstallSchema facing this error when run php bin/magento setup:upgrade command (magento 2.4)
SQLSTATE[HY000]: General error: 3780 Referencing column 'store_id' and re... | 3 | 2,811 |
Detect if user trying resize a draggable element | <p>I'm trying create draggable elements that can also be resized by dragging bottom right corner with the help of <code>resize: both</code> CSS rule.
So far I'm able drag it around screen, but I can't figure out how to detect if cursor at "resize" state, because attempting resize the element moves it instead.... | 3 | 1,443 |
winforms async await task UI lockup | <p>I am trying to read the contents of a directory that has over 100k+ files. Each file will be parsed eventually. Since this is a long time consuming task I want to provide feedback to the end user that the program has not "frozen", This is an MVP pattern project setup. </p>
<p>I am using async Task and IProgress to ... | 3 | 1,469 |
Hibernate Jpa custom query | <p>I'm facing a problem that makes me sweat.</p>
<p>first pojo:</p>
<pre><code>@Entity
@Table(name = "generic_params")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "type", discriminatorType = DiscriminatorType.STRING)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInf... | 3 | 1,699 |
Get data from free host and deleteing html tags with that data (Android) | <p>I have an application that get a very simple data from my free host (I uploaded a php file in my host), and show that in a textview in my application.
The data that my app get from host is a very simple (a text that my php file send to my app is like the result of this code : print "user exist";
but with that "user ... | 3 | 1,199 |
Yahoo Gemini - Making PUT request | <p>I'm using <a href="https://github.com/saurabhsahni/php-yahoo-oauth2/blob/master/YahooOAuth2.class.php" rel="nofollow">https://github.com/saurabhsahni/php-yahoo-oauth2/blob/master/YahooOAuth2.class.php</a></p>
<p>Using <a href="https://developer.yahoo.com/gemini/#get-started=" rel="nofollow">this example</a> I'm ab... | 3 | 2,070 |
How to filter a date-field with a swift vapor-fluent query | <p>To avoid multiple inserts of the same person in a database, I wrote the following function:</p>
<pre><code>func anzahlDoubletten(_ req: Request, nname: String, vname: String, gebTag: Date)
async throws -> Int {
try await ... | 3 | 1,735 |
If condition for .attr("stroke-dasharray", function (d) (...)} d3.js | <p>I am trying to implement stroke-dasharray for one line usinf if-else condition. But It's not working. Can someone have a look at it and tell what is wrong here ?</p>
<pre><code> .attr("stroke-dasharray", function (d) {
if (d.type != "Step") return ('3, 3');
else
return null;
... | 3 | 5,290 |
Google cloud app engine flex environment deployment failure (NestJS) - Error code 13 (Internal Error Occurred) | <p>I've done a lot of researching on this error and found some posts here and on github but none of the resolutions they suggest are working for me. I'm receiving a pretty ambiguous error when trying to deploy my application to a flex environment on google cloud service app engine.</p>
<p>It works fine when I deploy t... | 3 | 1,077 |
Updating ViewModel Data? | <p>I have a UserViewModel that is responsible to fetch the user information and then I display it in the UI.</p>
<p><strong>UserViewModel.java</strong></p>
<pre><code>public class UserViewModel extends ViewModel {
private MutableLiveData<UserResponse> userInfoMutableLiveData;
public MutableLiveData<UserRes... | 3 | 1,042 |
Linker Error in VS 2017 community with GLAD | <p>This code is a direct copy of an example. I have references set, however it appears that GLAD doesn't have a lib file; and I think that is what I am missing. Does anyone know a way around this issue?</p>
<pre><code>#include <iostream>
// GLAD
#include <glad/glad.h>
// GLFW
#include <GLFW/glfw3.h&... | 3 | 1,105 |
angular-handsontable sizing/layout glitching when data inputted | <p>I'm building in Angular 5 and using <code>Handsontable</code> for a spreadsheet interface in some components. Handsontable is misbehaving and I cannot work out why.</p>
<p>My config looks something like this:</p>
<p><strong>settings.component.ts</strong></p>
<pre><code>// staff and manager add Handsontable
hotOne... | 3 | 1,077 |
Form elements not identifiable in TestNG | <p>I am new to selenium. I am trying to write a script to open an application,enter user name and Password and login. I tried doing the same using selenium IDE in firefox. Its working. But when I try the same using selenium and TestNG(JAVA) I am geting the below error : </p>
<pre><code> org.openqa.selenium.TimeoutE... | 3 | 2,587 |
Display searched text with line numbers in a text file | <p>So I've been working on a program that will display the line number and the line itself of the searched text string. If I search dog, and I have lines in my text file that contain the word dog, those lines and line numbers should be shown. I also have created a method that counts the characters, words, and lines of ... | 3 | 3,399 |
Why is this function failing with "There was an error parsing the query. [Token line number, Token line offset,, Token in error,,]"? | <p>This code:</p>
<pre><code>public bool IsValidColumn(string tableName, string columnName)
{
//return true;// <-- when I uncomment this, I don't get the err msg (but I don't know whether it's a valid column or not, either)
bool validColumn = false;
string tblQuery = "SELECT COUNT(*) FROM INFORMATION_SC... | 3 | 1,083 |
Refresh GridView data | <p>In my first load of my <code>aspx</code> page, I have a <code>GridView</code> that are filled.</p>
<p>In my <code>ASPX</code> page I handle the click event on my radio button </p>
<pre><code> $("#ctl00_contentConteudo_rbBuscas_1").click(function () {
$.get("../Gerenciar/ListaUsuarioProvisorio.aspx?Docum... | 3 | 2,818 |
flutter - package does not exist in GeneratedPluginRegistrant.java | <p>I'm developing a flutter application, the app runs fine on ios, when I wanted to run it on android, I used <code>./gralew clean</code> then <code>./gradlew :app:bundleRelease</code>. Then I get the following errors:</p>
<pre><code>> Task :app:compileReleaseJavaWithJavac FAILED
/Users/liuqishu/Downloads/scambio/an... | 3 | 2,284 |
multiple canvas on same page | <p>How to load multiple canvas and enable drawing on it
I have two records in database. <code>foreach</code> loop below make two canvas but I can only draw in only one canvas not on the both canvas. I should able to draw on both canvas and that is the things I want. I am looking for any help or any tips on how should ... | 3 | 1,550 |
Is there a function which keeps increasing a number in a matrix in given order | <p>I have to create a matrix (N*M) where each cell is labeled in according to their order with specific traversal. </p>
<p>The problem is that I have it only working for (N<em>N). I am stuck to find a solution so it can also work for (N</em>M).</p>
<p>For instance
Example with N*M: </p>
<pre><code>1 2 5 10
4 ... | 3 | 1,112 |
making slideshow from list of images in java? | <p>I am trying to achieve a slideshow, gif etc. I have listed images read from a folder and make them a sequence for displaying in a <strong>SWT</strong> dialog. now I have a trouble with thread access. What is the way of making slideshow in SWT. thanks for any advice and correction.</p>
<p>here is the <strong>impleme... | 3 | 2,114 |
No such table: table1 error when copying database from assets | <p>I'm having a database stored in assets/databases named <code>myDatabase.db</code> and I want to copy it to the internal storage using the code in here:</p>
<pre><code>public class DatabaseOpener extends SQLiteOpenHelper {
private static String DB_PATH;
private static String DB_NAME = "table1.db";
private static ... | 3 | 1,456 |
Appcelerator Android Facebook login error code 2500 | <p>Little Appcelerator Facebook login problem with Android API 6.2.0. The Facebook login screen shows. I login with no problem. It says that I've previously given permission to that app with Facebook. I click to "Continue". Then I get this error code 2500. Here's the log:</p>
<pre><code>// I added the X's to the token... | 3 | 1,557 |
Angular 5 consume json consisting of one object | <p>I am working on a barcode scanning app with angular.
The number of the barcode returns a json containing a "box" object. How can i parse the box json to a box class in angular?</p>
<p>This is my existing code:</p>
<pre><code>//Injectable Dataservice
export class BoxService {
//url vars
urlBegin:string = "url";
url... | 3 | 1,447 |
Need to collate information from array in python, by finding match values that lie in different rows | <p>I'm looking to collate 2 entries into one for many columns in a data array, by checking to see if several values in the two entries are the same.</p>
<pre><code>0 A [[0.0, 0.5, 2.5, 2.5]
1 B [0.5, 1.0, 2.0, 2.0]
2 M [2.5, 2.5, 0.5, 0.0]
3 N ... | 3 | 1,699 |
Backbone click event not registered | <p>First off I'm new to Backbone.js. I try to login with an ajax call, but I just can't get the click event to fire. The view gets initiated (console shows output). </p>
<p>what am I doing wrong? I even tried "click .login__button": "login" but that doesn't work too.</p>
<h2>Code</h2>
<h3>login.blade.php</h3>
<pre>... | 3 | 1,692 |
Spring-MVC forms on GAE | <p>I am trying to create a form using the Spring Framework, but according
to this (http://groups.google.com/group/google-appengine-java/
browse_thread/thread/d93fd7385bf85bf7), I need to override initBinder.
Well, I think I did that and it still doesn't work. </p>
<p>My jsp (priceincreasejsp):</p>
<pre><code><%@ p... | 3 | 3,944 |
SingleChildScrollView is not Scrollable | <p>I am trying to add SingleChildScrollView for the page but it appears to be not working, can't figure the reason. I am not getting any overflow errors as such but the Fitbutton is not visible on the screen. I tried searching on the net but didn't find any relevant solution.
This is the code snippet I tried:</p>
<pre>... | 3 | 2,612 |
css not working locally or on remote website - but works on jsfiddle? | <p>I have a website which has a css menu on it. The dropdown items are being displayed but as soon as you try to click on the item the dropdown closes. The nav works on JSFiddle
<a href="http://jsfiddle.net/ccslabs/hfg29qj6/" rel="nofollow">jsFiddle example</a></p>
<p>However it doesn't work either locally or when de... | 3 | 3,990 |
How to change the background properties of an mfc application | <p>CURRENT UI</p>
<p><a href="https://i.stack.imgur.com/GjhQh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GjhQh.png" alt="enter image description here"></a></p>
<p>NEW UI</p>
<p><a href="https://i.stack.imgur.com/ftvnf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ftvnf.pn... | 3 | 3,086 |
JSF template: missing layout | <p>I'm very new to JSF and I have some problem using JSF template. The code of the template newTemplate.xhtml) looks like this:</p>
<pre><code><?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&... | 3 | 1,579 |
PHP Complex Syntax - Generating Proper Values in Forms | <p>I have an application that prompts users to fill out a form. When they hit submit, they are redirected to another page to verify their information. If they select edit (as opposed to confirming its accuracy), they are redirected to the original forms.</p>
<p>In order to maintain the values across the pages, I am st... | 3 | 3,330 |
How to account for input errors in calculator program? | <p>I'm writing a calculator program for my <code>java class</code>. I want to account for errors like</p>
<ol>
<li><p>User decides to divide by 0. I want the calculator to be able to acknowledge this error and display ERROR.</p></li>
<li><p>The user enters 6+7+ and then hits the equal button. </p></li>
</ol>
<p>I wan... | 3 | 1,799 |
Program crashes. Deciphering the error message | <p>I just released a multi-language image processing software as an ImageJ plugin. It has components written in Jython, C and Java. The C programs are called through the JNA. The software runs perfectly on my Macbook pro OSX Yosemite (64-bit). I sent the program to a long distance colleague and he tried running it on h... | 3 | 12,147 |
How can an effect find out the display size of the UIImageView it is attached to? | <p>In Xamarin.Forms, an <a href="https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/effects/" rel="nofollow noreferrer"><code>Effect</code></a> can be attached to a <code>View</code>. In my case, the View is displaying an <code>Image</code>. And the effect is making a colored "glow" around the visi... | 3 | 1,315 |
Spring query with a one to many param | <p>I must query network elements that have some parameters similiar to the given values, for instance searching for "xampleV" will return rows with "ExampleValue".</p>
<p>This is currently working, except for the port parameter which is mapped one to many in network element.</p>
<pre><code>@Entity
public class Netwo... | 3 | 1,702 |
Clicking element inside ::before | <p>I am trying to use Selenium to click an element that's contained within a ::before selector, but every time I try to do so Selenium returns a <code>NoSuchElementException</code>. Looking at some related threads, it seems as though this is expected behavior for reasons I don't fully understand (see some seemingly rel... | 3 | 1,220 |
Updating or empty a div and then re-populate from a function in jQuery | <p>What I'm trying to achieve is when a database is updated the div that lists the database data is updated without refreshing the page. I have a function that sends a <code>$get.json</code> request to a php processing page that returns the data held in the database and displays the returned data in the div, I know thi... | 3 | 1,447 |
RavenDB Transformation - Exception thrown on transforming Id | <p>I am trying to run a RavenDB transform, but I'm running into the following exception:</p>
<blockquote>
<p>Raven.Imports.Newtonsoft.Json.JsonSerializationException: Could not read value for property: Id ---> System.FormatException: Input string was not in a correct format.</p>
</blockquote>
<p>I assume this is be... | 3 | 3,475 |
NTLM challenge fails or is not in the correct order, towards Exchange 2013 | <p>I have an issue with NLTM authentication on Microsoft Exchange 2010. I am making an app to fetch some data from EWS Exchange and since I have NTLM enabled on the Exchange server I need to make sure that my requests follow the NTLM handshake procedure. I have researched the procedure and I understand that it is compr... | 3 | 1,376 |
How to use group-based permissions using AWS Amplify Auth library? | <h2>Goal</h2>
<p>I'm trying to set up a Cognito group for admins, so they can call certain AWS services (specifically <code>cognito-idp:Admin*</code>) directly from the client. This will be faster than calling an API Gateway route to do the same via the back end.</p>
<h2>What I've tried so far</h2>
<p>I looked at the f... | 3 | 1,192 |
How do I access the data from a referenced firestore document? | <p>My data in firestore is structured as shown in the pictures. In my code, I am using a map of the <code>exercises</code> array within my <code>workout</code> document like this:</p>
<pre><code>{workout.exercises.map((exercise) => {
return (
<Text>Want exercise name here</Text>
)
</code>... | 3 | 1,957 |
Spring WebClient PageImpl Content is missing field | <p>I try to retrieve a page via WebClient from another microservice.If I request thhis MS directly with Postman, I get "type" among other things for <code>content</code> inside the page. However, if I request the MS via <code>webClient</code>, "type" disappears from the <code>content</code> (and som... | 3 | 2,223 |
Copy only filtered data / visible cells from multiple sheets to new workbook | <p>How do I copy only the filtered data from each worksheet (8 worksheets in total) to a new workbook? My filtered header varies for each worksheet, not necessary at from row.</p>
<p>I have posted two sets of codes here, any help / advice is appreciated, thanks!</p>
<ol>
<li>I wrote in a dumb way for filtering as for... | 3 | 1,538 |
React form successfully sending data to Firebase Firestore, yet still getting 'net::ERR_BLOCKED_BY_CLIENT' error | <p>I have a react form <code>SignUp.js</code> that is responsible for signing up new users to my firebase app, and then submitting user data to a <code>user</code> collection. The users are successfully signed up and their data is added to the collection, however I'm still getting the error in the browser:</p>
<blockqu... | 3 | 1,340 |
How to Read Data From Firebase Realtime Database? | <p>I am Trying to read the data from the firebase realtime Database in my Flutter app and assign it to model class but, i am getting the following error in console.</p>
<pre><code>E/flutter ( 9052): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: NoSuchMethodError: Class 'List<dynamic>' has no i... | 3 | 1,351 |
3 or more level nested forms Rails 4 - SImple Form | <p>I need to create a form with several models, at least five. At the moment I am trying to make it work using three forms (Person - Diseases - Treatments). The second first and second level forms work correctly. The third form doesn't even render in my view. Can somebody help me with this? Thanks in advance!!!.</p>
<... | 3 | 3,404 |
Send data to another django template/view after specific process using ajax | <p>I have a page where I load 2 files. After a click to the load button, this page reload to display a major part of the data, allowing the user to modified it. After a click to lunch button, I want to launch the process and I want to send to another page the path of results files to allow the user to download it.</p>
... | 3 | 3,565 |
How to insert page number on print page | <p>I want to display page numbers only on print page. I have written css counters to do this job but this only works on Firefox but not in Chrome and IE.</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<style>
.footer{
display:none;
}
... | 3 | 1,322 |
Mongoid 7 + mongoid-rspec compatibility issues | <p>I am integrating mongoid-rspec with Mongoid 7 and while running the command rspec it show me below mentioned error trace:</p>
<pre><code>cannot load such file -- mongoid/relations
# /home/xxxxxxxx/.rvm/gems/ruby-2.4.1@wavedio/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
# /home/xxxxx... | 3 | 1,062 |
Oandapy: Expecting property name enclosed in double quotes | <p>I'm trying to use algo-trading as described in this tutorial:</p>
<p><a href="https://www.oreilly.com/learning/algorithmic-trading-in-less-than-100-lines-of-python-code" rel="nofollow noreferrer">https://www.oreilly.com/learning/algorithmic-trading-in-less-than-100-lines-of-python-code</a></p>
<pre><code>class Mom... | 3 | 1,464 |
Loop AsyncTask to fetch JSON and store as object in same list | <p>I want to read and store all <code>JSON</code> values from <a href="http://www.gw2spidy.com/api/v0.9/json/item-search/Mini/0" rel="nofollow">this api Link</a> with <code>get request</code> <em>"Mini"</em> as example (which is actually an user input variable) and the last number is the page your are viewing. Every pa... | 3 | 3,564 |
ResultSet could be possibly null, how to fix this? | <p>It tells me that the "userRow" ResultSet could be null, do you guys know how can I fix this or why is it happening, I would greatly appreciate it, thanks.</p>
<p>It tells me to add more details: I created this ResultSet method in order to retrieve information from the MySQL database that I made with MySQL ... | 3 | 1,762 |
How do I download an attachment from a discord channel? | <p>So, I have been trying to figure out how to download an attachment but I can't seem to figure out how. ctx.message.attachments[0].url doesnt work.</p>
<pre><code>import discord
from discord.ext import commands
client = commands.Bot(command_prefix = '-')
@client.command(name='setupwelcome', help='Sets up the welcom... | 3 | 1,135 |
Validation Table Items on add | <p>I have an issue with adding an item to my table. I have a simple reactjs code below. I can add a row easily there. The issue is, it should not allow me to add same name. Means, if I have name "John" already added in the table, validation should not allow me to add one more "Jonh". I have attached... | 3 | 1,523 |
Ambiguous C binding name in Fortran | <p>I'm trying to build and use a library from <a href="https://github.com/SCM-NV/ftl" rel="nofollow noreferrer">this</a> repo (FTL). FTL provides Fortran wrappers around POSIX regular expressions and can be built (according to its <a href="https://github.com/SCM-NV/ftl/wiki/ftlRegex" rel="nofollow noreferrer">wiki</a>)... | 3 | 1,319 |
jQuery toggle removing table columns | <p>I have a table with sections inside it. i am using jQuery to hide different sections and that part works absolutely fine but when I hide all of them, something happens to the row. The row has a colspan of 3 but when all are hidden it becomes only one column. I have attached the jsfiddle link below. I cant't seem to ... | 3 | 4,203 |
If I run the script from a command line (as root), it works. If it runs at a boot time, it fails | <p>I have a shell script that I want to run at boot time. In this script I'm using aws cli to update my IP to route53 record set, if I run the script from a command line (as root user), it works. If it runs at a boot time, it fails. I configured aws credential for root user already.
My update-route53-record.sh</p>
<pr... | 3 | 1,205 |
Linq-To-JSON Walking Up Ancestor Tree To Obtain JProperty for Nearest Parent | <p>I have a fiddle here:
<a href="https://dotnetfiddle.net/x6u5wH" rel="nofollow">https://dotnetfiddle.net/x6u5wH</a></p>
<p>I have two questions but to be fair I'll split them into two posts. I will add a link to the second question at the top of this post once it's posted. </p>
<p><strong>Summary</strong>
If you ru... | 3 | 3,102 |
ListView ItemClickListener works when double clicked ,not responding for single click | <p>following code is for itemclick listener</p>
<pre><code>ListView_proddetails.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
System.out.println("clicked--");
SalesReturnDetails returnDetail... | 3 | 3,439 |
Using a custom ListItemAdapter (with a delete button) on more than one activity | <p>I've learned how to create a custom ListItem and add a clickable ImageButton to it, thanks in part to this answer:</p>
<p><a href="https://stackoverflow.com/questions/11591501/how-to-use-onclicklistener-method-of-button-on-a-listview">how to use onClickListener method of Button on a ListView</a></p>
<p>However, I ... | 3 | 2,809 |
Appium - Android Hybrid app | <p>I see console 'driver null' error after executing test script</p>
<p><strong>Script:</strong></p>
<pre><code>capabilities.setCapability("appium-version", "1.4.0");
System.out.println("<<< Detects android device / emulator >>>");
capabilities.setCapability("deviceName","New1");
capabilities.setCap... | 3 | 1,415 |
Not able to get my head around this python | <p>I just implemented a hierarchical clustering by following the documentation here: <a href="http://www.mathworks.com/help/stats/hierarchical-clustering.html?s_tid=doc_12b" rel="nofollow noreferrer">http://www.mathworks.com/help/stats/hierarchical-clustering.html?s_tid=doc_12b</a></p>
<p>So, let me try to put down w... | 3 | 2,438 |
How to assign multiple event IDs per column in a matrix | <p>I am newbie to R and learning Introduction to R. I have a large matrix (multiples of 100000s) and a few hundred columns. I am giving an example matrix herebelow.</p>
<pre><code>set.seed(1)
m4 <- matrix(sample(0:3,5*4, replace=TRUE),5,4) # sample event matrix
m4GROUP <- data.frame( X1=rowSums(m4[,1, drop=FALSE... | 3 | 1,799 |
how can i display values from table according to a column between two dates and time? | <p>I have two tables floattable(dateandtime,mitm,tagindex,value,status,marker) and tagtable(tagname,tagindex,tagtype,tagdatatype).i want to display output as</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><... | 3 | 4,111 |
why I got error Sequence contains no elements in some tables | <p>I am using LINQ and all orders date appear and show only parasitology not appear and
show error when I try to open the order details sequence contain no elements
why I got this error , I checked the stackoverflow questions and answers but cannot find the exact reason</p>
<p>this is the controller code:</p>
<pre><cod... | 3 | 2,115 |
How to smoothen div height change after adding content | <p>A have a carousel with div that adjusts its height each time the slide changes. The transition, however, is not smooth at all, the borders just jump in and out. How can I make it nice and smooth using css or jQuery? I was thinking about using jQuery's "blind" animation, but I have no idea how to set it up. </p>
<p>... | 3 | 3,788 |
spark-submit with Mahout error on cluster mode (Scala/java) | <p>I'm trying to build a basic recomender with Spark and Mahout on Scala.
I use the follow mahout repo to compile mahout with scala 2.11 and spark 2.1.2 <a href="https://github.com/actionml/mahout/tree/sparse-speedup-13.0" rel="nofollow noreferrer">mahout_fork</a></p>
<p>To execute my code I use spark-submit and it ru... | 3 | 6,975 |
site doesn't scale properly | <p>When I scale my site down or view on mobile/tablet, there is all of this margin/whitespace on right side and it cuts off text content in #main section. Why is this happening and how can I make it all scale correctly? I have tried overflow hidden on various parts which didn't solve anything and I have tried zeroing o... | 3 | 2,237 |
sending data from one view to another view with a button | <p>I have a button that is the last element inside a tablerow, like this:</p>
<pre><code><TableRow
android:id="@+id/tableRow1"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_marginRight="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8... | 3 | 1,093 |
How to mask the largest object of one kind in opencv python | <p><strong>Want to fetch only the largest Object of each kind.</strong>
Here, the aim is to visualize only RGB objects one of each kind. But it is fetching objects too. I found the best way of detecting the largest object by biggest contour but other items of similar kind are also show here i want to ignore them. </p>
... | 3 | 1,709 |
When i change the shape of navbar, the edges are cut | <p>I don't know why, when I declare a border shape different from square the edges are cut:
<a href="https://i.stack.imgur.com/sUN2Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sUN2Y.png" alt="enter image description here" /></a></p>
<p>Here's the html template:</p>
<pre><code> <template>
... | 3 | 1,238 |
The parameters dictionary contains a null entry for parameter 'messageId' MVC | <p><a href="https://i.stack.imgur.com/xnkmP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xnkmP.png" alt="http://localhost:55245/Messages/ReplyMessage/39"></a></p>
<p>This error appears when I'm training to post reply message and insert it in Replies Table using message id , I think the problem fr... | 3 | 1,321 |
How to get the mean of nsmallest from Pandas DataFrame using Datetimes | <p>I am trying to get the nsmallest and the mean of nsmallest from a dataframe by selecting dates. </p>
<p>From this DataFrame: </p>
<pre><code> 2 chk2 chk3 val
0
2016-08-01 31.340000 2016-05-09 2016-08-08 18.605
2016-08-02 32.359... | 3 | 1,224 |
CSS3 List Navigation Not Floating to Left | <p>I was doing a tutorial on tuts+ premium when the person who uploaded the series did not upload an exercise file. When I copied everything from his tutorial video into a CSS document EXACTLY, the CSS list items won't float left. I tried and tried everything but I couldn't. Here is the HTML:</p>
<pre><code><!docty... | 3 | 1,298 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.