title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
ionic2 facebook login not success | <p>i'm trying to do login to my app with facebook,
i installed the cordova facebook plugin </p>
<p><a href="https://i.stack.imgur.com/aehn8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aehn8.jpg" alt="enter image description here"></a></p>
<p>and this my code but i get error on Promise
<a href="... | 3 | 1,125 |
How to check for the existence of a certain value in a set of variables only when there is no NA? | <p>I have a dataframe with over hundreds of variables, grouped in different factors ("Happy_","Sad_", etc) and I want to create a set new variables indicating whether a participant put a rating of 4 in any of the variables in one factor. However, if any of the variable in that factor is NA, then the... | 3 | 1,141 |
R aggregate data on a daily basis if start and end times are available | <p>I have the following problem. I have a dataframe of the following strucutre:</p>
<pre><code> startdatetime enddatetime type amount
1 2019-02-01 03:35:00 2019-02-03 06:35:00 prod1 1e+03
2 2019-02-03 06:35:00 2019-02-05 09:35:00 prod1 5e+03
3 2019-02-05 09:35:00 2019-02-06 01:35:00 prod2 3e+07
4 20... | 3 | 1,507 |
Request Mappings, leave out specific cases instead of catching all | <h2>Introduction</h2>
<p>We have has created a request mapping as the following:</p>
<pre><code>@RequestMapping(path = "/{project}/{resource}/{language}", method = RequestMethod.GET)
public ResponseEntity<Resource> get(
@PathVariable String project,
@PathVariable String resource,
@Path... | 3 | 1,146 |
Cannot display the selected image from mobile storage (Android Studio) | <p>My code is working fine for selecting images from the phone, but I can't see a preview before uploading it, why? what's wrong?</p>
<pre><code>public class MainActivity extends AppCompatActivity implements View.OnClickListener{
private static final int PIC_ID = 1;
Button uButton, dButton;
EditText firstText, second... | 3 | 1,191 |
py2app and pandas giving RecursionError | <p>I am trying to build a simple app using py2app and pandas, below are my app.py and setup.py files used to create the app using <code>python setup.py py2app</code></p>
<p>app.py</p>
<pre><code>import pandas as pd
x = pd.Series([0, 1, 2])
print(x)
</code></pre>
<p>setup.py</p>
<pre><code>from setuptools import set... | 3 | 1,228 |
7z decode file that create by System.IO.Compression.GZipStream failed | <p>A guy write a program in C#, encode it with System.IO.Compression.GZipStream, then does base64 encode it,
then save it into XML file.</p>
<p>I grab the Node text data from that XML file and try to decode it</p>
<pre><code>cat custom-config | base64 --decode > /tmp/custom-config.gz
cd /tmp/ && 7z x cust... | 3 | 1,096 |
symfony2: presetdata event not working when form is a service | <p>With symfony I am trying to listen to the preset data event on a form declared as a service.</p>
<p>I have a parent form in which I call ->add('unit', 'fmu_unit')</p>
<p>EDIT : I add here a full simple example. It's not working as expected.</p>
<p>My controller:</p>
<pre><code><?php
namespace AppBundle\Contr... | 3 | 1,664 |
PHP switch not working as expected | <p>I have a PHP class called ResetPassword. Within this class is a switch which will return a different string containing the required HTML.</p>
<p>This is the code below (I have omitted a few of the cases for the sake of brevity, there is also a default case which returns NULL)</p>
<pre><code> public function get... | 3 | 1,905 |
Object in next result set of Jscroll doenot bind to javascript | <p>I have implemented jquery jscroll on first page load all data is showing perfectly with the perfect respective animation but on 2nd data set animations are not working. What I am doing is i have made a partial page which loads all time the data set comes and set all javascript in main page.</p>
<p>This is my MainPa... | 3 | 3,414 |
Changing webcam brightness from another form by using trackbar in winforms | <p>I am trying to change the webcam brightness in Form2 by using trackbar in the Form3. I can't send the value of it or i can't use it in Form2. Since i am planning to design a UI, I need to achieve this that way. Can you help me to achieve this?</p>
<p>This is my code of Form2 below.</p>
<pre><code> using System;
u... | 3 | 1,513 |
I can not end a thread | <p>I'm trying to use Thread.Abort() but it's freezing my GUI .... It freezes all the elements except the statusLabel ... it keeps updating ... whats the problem with the code...</p>
<p>I do not know why this is happening, I thought it might be the try catch block, but it is in the thread ... I believe it does not inte... | 3 | 4,017 |
Php form is not working on the specific server | <p>I have the form using php script, its working fine on other server however i got the problem on the live one. below i have mention the details:</p>
<p>the contact form send by using ajax call & php. its working on the two servers i have checked, one of them linked below
<a href="http://www.virtualmob.co.uk/prod... | 3 | 3,973 |
First PayPal redirect ends in error "Cannot use object of type ... as array" | <p>We have a problem with our payment process regarding PayPal. Sometimes users get an error while being redirected to PayPal, most of the times not. Since it seems like it's not depending to the device they're using, I don't know exactly what to do. This problem comes up with every 3rd PayPal-Payment and if the custom... | 3 | 2,006 |
Java Twitter4j OAuth not working | <p>I am reading <a href="http://twitter4j.org/en/code-examples.html" rel="nofollow">these</a> Twitter4j examples. I am trying to get #7: OAuth support to work but I am having troubles. I have the following code:</p>
<pre><code>try {
Twitter twitter = TwitterFactory.getSingleton();
twitter.setOAuthConsumer("VAL... | 3 | 1,085 |
Why is this program(rather the segment) crashing the whole program | <p>I have been scratching my head to figure out why is my program is crashing. My aim was to scan a string and get frequency of each sub string !</p>
<p>The Real part where the program is crashing (M is a map of string,int type)
My Input: the string is "abab" and the program crashes when i=0 and j is equal to 3 just a... | 3 | 1,400 |
push notification enable and disable by using switch | <p>I'm using firebase push notification(FCM).. and I want to enable and disable notifications using a switch button.</p>
<p>For that I have shared preferences to enable and disable notifications but it seems my logic is not at all working.</p>
<p>It doesn't make any difference if the switch is turn on or off. I am stil... | 3 | 2,051 |
ORA-01861: literal does not match format string despite of using to_date function | <p>Facing this error on EXCEL VBA Module. On Oracle 11g interface it runs well.</p>
<pre><code>select
"schema_name", "table_name", "bundle_name", "text_file", "sequence_no",
lastupdateapplied, "next_sat_date","prev_sat_date", TO_DATE(SYSDATE,'DD-MM-YYYY'),
CASE
WH... | 3 | 1,313 |
Django - KeyError: 'profile' - Trying to save the user profile with DRF and Ajax | <p>I'm trying to save the user profile data with DRF and Ajax but I have an error KeyError.</p>
<p>I was reading the DRF docs, especifically this part: <a href="https://www.django-rest-framework.org/api-guide/serializers/#writable-nested-representations" rel="nofollow noreferrer">Writable Nested Representations</a> th... | 3 | 2,959 |
pdo_mysql crashes PHP on windows | <p>I've been having a problem with using pdo_mysql on Windows. (Also tried with mysqli briefly.)
It works fine on my Debian server. But since my work's computers are set up with wamp or xampp servers (tried both) I can't really ignore a windows-only problem.</p>
<p>Specifically this is the code I have problems with:</... | 3 | 1,083 |
How to make a form for add and edit with Reack-hook-form | <p>I am trying to create a single form able to manage the creation of a product but also to edit it (by passing the values through an object).</p>
<p>The form works perfectly to create a product but how to make it able to edit a product?</p>
<p>I tried to pass my values via "value" or "defaultValue"... | 3 | 3,914 |
how to initial TabController when using get as the state manage component | <p>I want to use TabBarView in the flutter UI, now using <a href="https://pub.dev/packages/get" rel="nofollow noreferrer">get</a> as the state management, this is my UI code:</p>
<pre><code>import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'dev_word_... | 3 | 1,314 |
MongoDB: Matching points from one collection with polygons from another | <p>I'm trying to match points in one collection with regions stored in another collection.
Here are examples of documents.</p>
<p>Points:</p>
<pre><code>{
"_id" : ObjectId("5e36d904618c0ea59f1eb04f"),
"gps" : { "lat" : 50.073288, "lon" : 14.43979 },
"time... | 3 | 1,245 |
Spring Boot Linux service Log File | <p>I have a spring boot uber/fat jar which is set up as a linux service and started using the below command</p>
<pre><code>systemctl start servicename
</code></pre>
<p>The spring boot jar has the below log file configuration</p>
<pre><code> <?xml version="1.0" encoding="UTF-8"?>
<configura... | 3 | 1,251 |
Angular Material theme issue | <p>I am using angular material in my project. I have used side navbar and stepper, but they are not looking as they look in demo.
I have imported required CSS theme in scss file.
Please find below codes,</p>
<p>formstepper.component.html</p>
<pre><code><button mat-raised-button (click)="isLinear = !isLinear" id="t... | 3 | 1,786 |
How to Implement Multiple search in Asp.Net | <p>I want to Implement multiple search query system in Asp.Net where search input are in form of TEXTBOX and DROPDOWN LIST. Query should work in combination or indivisually to filter the data from SQL Server
and show in Gridview.</p>
<p>This Code Snippet is for filtering two Dropdown values:</p>
<pre><code>if (Agree_... | 3 | 1,085 |
HTTP Server in C not displaying image | <p>I am trying to create a simple HTTP-server using C. Here's my code</p>
<pre><code>#include <stdio.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <string.h>
#define PORT 8080
int main(int argc, char const *argv[])
{
int serv... | 3 | 1,501 |
How to have responsive design smoothly flow into mobile design? | <p>I am writing a single-page app, and I've having a problem at a particular width. When on narrow screens, I want to use the full width, but I want to limit the width for readability on wider screens. This mostly works fine except when the screen is just above the limit width it formats badly.</p>
<p>Here is a <a hre... | 3 | 1,623 |
Loading packages in Jupyter Notebook that are Octave packages | <p>To be short and sweet I am new to Juypter Notebook and Octave together. My program is to load pkgs from octave to perform operations. I have watched some videos online but the saga doesn't show how to... I have some code but it's code I programmed in octave which I just want to load in to an octave notebook I have s... | 3 | 1,219 |
Conditional Branch in Lua isn't working for no clear reason? | <p>I joined this community because it seems to be awesome, and I'm a new coder, so I'd like to try and improve well and quickly by following the advice of such a nice community. :) </p>
<p>I have a question regarding coding in lua -- right now, I'm using Corona SDK and Sublime Text 3 to code a mobile splash screen, a... | 3 | 1,994 |
my jsp not allowing expression lanugage | <blockquote>
<p>HTTP Status 500 - java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImpl</p>
</blockquote>
<hr>
<p>type Exception report</p>
<pre><code>message java.lang.NoClassDefFoundError: Could not initialize class org.apache.jasper.el.ELContextImpl
description The serve... | 3 | 1,503 |
updating text from a label.text to the server and saving it in a text file | <p>i am trying to upload label.text on a server within a text file on the server here is my code. it isnt showing any error but file created on server but no text in it. please help.</p>
<pre><code>NSString *post =[[NSString alloc] initWithFormat:@"VIN: %@",vincode.text];
NSData *postData = [post dataUsingEnco... | 3 | 1,085 |
Amazon S3 static Website accessible (403 Error) when secure transport policy added | <p>We have an Amazon S3 static website and it was working fine until we introduced a policy where we allow only secure data transfer by enforcing <code>aws:SecureTransport</code>. A policy with simply denies access to the site when the <code>aws:SecureTransport</code> fails. But when we access the site now, it says <co... | 3 | 2,725 |
Ajax call not appending data to tfoot elements (but works properly in thead elements)? | <p>I have several select inputs in a row inside of my table (for column filtering) that populate options through ajax responses using jquery. They are currently in a second thead and append properly, but I would like to move them into a tfoot instead.</p>
<p>Currently I have this ajax call, and it properly appends the ... | 3 | 1,513 |
POST request sent on a second or a third click of the input button, why? | <p>So everything in my code works pretty much as intended only the post request is sent on a second or maybe even on a third click on the button... I am guessing that it has something to to with the way I am updating redux state, but my brain froze, can someone please point out to me where is my mistake?</p>
<p>Cheers... | 3 | 1,243 |
How do I make the drawing move by default, independent of MouseEvent? | <p>I am modifying a piece of written code, and I want to make the cloud drawing move independently from MouseEvent. The current scenario is this: When I move the mouse, the cloud moves left by 2 pixels. However, I want the cloud to move left 2 pixels by default, without MouseEvent being a part of this. Even though I mo... | 3 | 3,468 |
Android Programming rectangle animation (height) & by click stop animation | <p>I want to create a rectangle in the middle of the screen (bottom). When I start the app the rectangle should grow (max height = screen height). And if I tap on the screen (random position) the animation should stop and the height should stay. How can I do something like this? Can anyone give me some keywords or link... | 3 | 1,453 |
Cross validation using kNN and RF | <p>I have data matrix with 50 column and 150 rows. I wanted to do cross-validation on the dataset. A subset of data look likes below:</p>
<pre><code>>dat<-matrix(c(7,8,5,6,4,5,6,6,1,9,8,5,14,11,15,14,21,24,25,26, 31,34,35,37), nrow=8, ncol=4)
>colnames(dat)<- c("ABC", "BCD", "CDE", "DEF")
>dat<-data.... | 3 | 1,037 |
xamarin.android project deployment errors | <p>i made a project to try and use admob banner but when i deploy the project on my device (api 21) i get a "there were deployment errors. continue?" massege but when i run it on my emulator(api 23) it works perfectly.
my target android version and target framework version are both set to api 21</p>
<p>this is what i ... | 3 | 1,336 |
Generating A Select With Multiple Nesting | <p>I have multiple nested product categories and I need these in a select box for selection in my admin system.I am using the following function to generate a multidimensional array which can then be passed to codeigniter's <a href="https://ellislab.com/codeigniter/user-guide/helpers/form_helper.html" rel="nofollow">fo... | 3 | 2,118 |
Remove last character from calculator display | <p>I've added a back button to my calculator with the idea that when someone presses it they can undo if they clicked the wrong number.</p>
<p>I've tried to solve using substr within an if statement in my calculate function but nothing seems to be happening it's as if it's not recording when the user clicks the button.... | 3 | 3,266 |
Typing the click handler when component is generic (polymorphic react component) | <p>This is my component</p>
<pre><code>interface Props<C extends React.ElementType> {
as?: C;
children: React.ReactNode;
size?: "mini" | "small" | "medium" | "large";
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
}
type Button... | 3 | 1,288 |
Derived types generating their own ForeignKey field in code first using TPH | <p>I'm using EF Core and implementing inheritance in a table-per-hierarchy (TPH) approach. I've found that once I added the hierarchy objects to my data model the migration is adding a foreign key for the base table and what appears to be a duplicate that the descendant classes are using.</p>
<p>Relationship is from <... | 3 | 1,859 |
Segue between SKScene and UIViewController | <p>I'm writing simple math game with swift 3 and I have a problem with segues. I have two <code>GameViewController's</code>, one<code>UIViewController</code> and one <code>NavigationViewController</code>.<a href="https://i.stack.imgur.com/DBXZS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DBXZS.pn... | 3 | 2,197 |
Error in using Karma with SystemJS, gulp, and TypeScript | <p>I am new to <code>node.js</code> stack like <code>npm</code>, <code>gulp</code> etc. I had wrote some JavaScript unit test cases earlier, and now want to use <code>Karma</code> as test runner. However, after a few attempts I am completely lost now.</p>
<p>To start, I have following project configurations:</p>
<ul>... | 3 | 1,317 |
Unable to download closure compiler pluggin from the repository sonatype | <p>I am trying to use this dependency in my maven project.</p>
<p>I have added the following in my pom.xml</p>
<pre class="lang-xml prettyprint-override"><code><pluginRepository>
<id>sonatype-oss-public</id>
<url>https://oss.sonatype.org/content/groups/public</url>
<releas... | 3 | 1,168 |
Trying to read from database table, but output is incorrect | <p>Here is my code:</p>
<p><strong>tracks.cshtml</strong></p>
<pre><code>@page
@using Project.Models
@model Project.Pages.TracksModel
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
<div class="row">
<h1 class="display-2">Tracks</h1>
<table class="table"&... | 3 | 2,512 |
Is using useImperativeHandle hook justified here with Draft.JS editor and Formik? | <p>I'm making a small CMS system in React and I have a form where users can use the Draft.js editor along with some other fields. For the question in mind, let's focus on the edit form.</p>
<p>The code for the editor looks like this:</p>
<pre class="lang-js prettyprint-override"><code>import React, { useRef } from 're... | 3 | 1,380 |
How to make a fully functional brainf*ck interpreter? | <p>I have tried to implement a BF interpreter in Javascript. It works for many programs like printing <code>Hello world</code>, looping, etc.</p>
<p>Here is link to a sample interpreter that I use for comparing outputs: <a href="https://sange.fi/esoteric/brainfuck/impl/interp/i.html" rel="nofollow noreferrer">https://s... | 3 | 3,006 |
Problems with finalize method in Java | <p>I've been having problems with finalize method in my last exercises. Seems like I have a deprecated method and I can't seem to find the newest version of finalize. I have two files and I'm required to call the 'finalize' method. Can someone give me an example of a finalize method or help me with mine? Here is my c... | 3 | 2,526 |
CSS class not working in dynamically added select box | <p>I am dynamically adding select box on button onclick by jQuery. But CSS class for the select box not working.</p>
<p>Here is my code:</p>
<pre><code>$(document).ready(function () {
var max_fields = 10; //maximum input boxes allowed
var wrapper = $(".input_fields_wrap"); //Fields wrapper
var add_button... | 3 | 1,151 |
Click on button doesn't insert value in database PHP | <p>I'm trying to figure out how to insert a value in my database with PHP.
I'm a student, so I'm pretty new with PHP but I have been struggling with this for the past hours. I'm trying to insert a value in my database 'ic_likes' when I press on a image (that's within a button). </p>
<p>It's telling me this <strong>err... | 3 | 1,101 |
Make a button have different normal/hover appearances depending on state | <p>I'm working on making a simple Tic Tac Toe game in C# using UWP.</p>
<p>I'd like to add some effects, so that when the mouse hovers over a cell, it shows a ghost of the symbol. But if a symbol has already been placed there, it should fade the symbol slightly.</p>
<p><strong>What would be a good way of achieving t... | 3 | 1,497 |
Unitialized constant but the class exists | <p>I'm having an issue making an app that plays music in rails. I can't seem to actually obtain the properties of the songs from the database. The model class is named 'Music'. The error I get is this:</p>
<p><code>uninitialized constant Music::Title</code></p>
<p>When trying to run this code:</p>
<pre><code>&l... | 3 | 5,737 |
Cannot remove the last item in the ListView Flutter | <p>I have a ListView containing the observable list <code>var cartItems = <CartItem>[].obs;</code>, when I tried to remove the last item in the ListView, I got error <strong>RangeError (index): Invalid value: Valid value range is empty: 0</strong> and it was undone. Anyone can show me how to fix it? Thanks in adv... | 3 | 1,149 |
i cant understand whats wrong with my code i get logged if i enter any of the users passwords | <p>this my login function</p>
<pre><code>import getpass
import warnings
import csv
import time
admin={"Evan":"1234","Nirmal":"4567","admin":"1729"}
manager={"Max":"7785","Jack":"5648",'Alan':'5464'}
standard={"Smit... | 3 | 6,040 |
Unit testing of HttpsCallable cloud functions - online mode | <p>I am designing a backend api (for android and iOS apps) around <a href="https://firebase.google.com/docs/functions/callable" rel="nofollow noreferrer">HttpsCallable</a> cloud functions. It becomes quite cumbersome to test them through the app, so I wish to switch to unit testing the functions (before production depl... | 3 | 1,857 |
How to write mail Function using C#? | <p>I had created the bootstrap contact form in a website. can anyone help me to write the code for mail function in C#,That yje user fill the form ,when the user clicks submit button,the details must sent to admin's mail.</p>
<p>Here is the code for bootstrap form:</p>
<pre><code><form class="form form-container"&... | 3 | 1,609 |
Magento sort mobile navigation categories | <p><strong>Situation</strong><br>
I have a responsive webshop. When the user is on a mobile phone he still can select which category he wants to navigate to. This is done via a expandable menu. Now I'm trying to organize all the categories on alphabetical order. But I have no idea how I can achieve this. All other answ... | 3 | 3,594 |
Android - for loop terminating early | <p>I'm trying to manipulate a JSONArray, <code>rawJArr</code>, (taken from the Reddit API), and get the url and a bitmap (taken from the gfycat "API") from each object to create an ArrayList (<code>listing</code>) of <code>Highlight</code> instances which will be converted to a <code>CardView</code> containing a pictur... | 3 | 1,126 |
Return formatted object with only positive values | <p>I've an object of objects. Each of my nested object has a price as a nested array which may contain negative values.
I need to format the object and return a new one with the child objects containing only positive values.</p>
<p>For e.g.,
In the code below, ideally it should only return object with 'TypeB' object... | 3 | 1,874 |
How to transform and stream large XML files to postgres ? Mediawiki dump postgres | <p>I want to use postgres' full text search on the largest public natural language corpus available. I downloaded this <a href="https://dumps.wikimedia.org/enwiki/20200201/enwiki-20200201-pages-articles-multistream14.xml-p7697599p7744799.bz2" rel="nofollow noreferrer">wikimedia dump stub</a> of a few megs for the examp... | 3 | 1,069 |
OutOfMemoryError: Java heap space when trying to create ArrayList | <p>I am trying to write a program which converts all G1 lines of a G code to lines which say <code>MOVX (x-coordinate of G1 command)</code></p>
<p>Eg. <code>G1 X0.1851</code> should become <code>MOVX(0.1851)</code></p>
<p>At the moment the program is just appending the text file that has been read and printing the ne... | 3 | 1,335 |
Angular 11 how to pass row item from template to observable | <p>html:</p>
<pre><code> <tr
*ngFor="let workflow of auditWorkflows"
class="border-bottom"
[rowClick]="workflow | auditWorkflowRouteNavigate"
[rowClickGate]="startAuditIfNotStarted$"
>
</code></pre>
<p>.ts</p>
<pre><code>startAuditIfNo... | 3 | 1,059 |
AWS EKS Cluster , DockerHub and Traefik, not accessible from internet | <p><code>kubectl get nodes</code></p>
<pre class="lang-sh prettyprint-override"><code>NAME STATUS ROLES AGE VERSION
ip-192-168-119-55.ec2.internal Ready <none> 29h v1.16.12-eks-904af05
ip-192-168-156-180.ec2.internal Ready <none> 29h v1.16.12-eks-904af0... | 3 | 5,150 |
How to finish the TLAPS proof for a refinement mapping involving records? | <p>I have some difficulty in proving a refinement mapping involving records.
Below are the simplified illustrating <a href="https://github.com/hengxin/tlaps-examples/tree/master/Record" rel="nofollow noreferrer">TLA specs@github</a> (Note that this post is also in <a href="https://groups.google.com/d/msg/tlaplus/rmmH9v... | 3 | 1,819 |
Encoding File Over Socket | <p>I have been spending forever on this and can not seem to work it out. I am self taught and not very familiar with this so forgive me if it is a remedial question. I am sending data from Android to .Net server. Data is getting corrupt on encoding, I know this I am just not sure how to fix. I am using the .Net Async s... | 3 | 1,436 |
Joining SELECT variable into different table columns | follow suggestion | <p>I'm trying to join the result from one specific SELECT variable into a a different colum from another table.</p>
<p>user_friends table:</p>
<pre><code>+-------------------------------------------+
| friend_id | friend_one | friend_two |
+-------------------------------------------+
</code></pre>
<p>users ta... | 3 | 1,456 |
How to setup polymorphic classes and recursion with C#? | <p>A base class, <code>VideoContainer</code>, contains a list of <code>VideoContainers</code>.</p>
<p>The properties in VideoContainer are common to three other classes of which there are three:</p>
<ul>
<li><code>Layout</code></li>
<li><code>Perspective</code> </li>
<li><code>Source</code></li>
</ul>
<p>Each of the... | 3 | 2,799 |
Making one line string | <p>I need help I have task in c# to make program that take user input (string).You are given the noises made by different animals that you can hear in the dark, evaluate each noise to determine which animal it belongs to. Lions say 'Grr', Tigers say 'Rawr', Snakes say 'Ssss', and Birds say 'Chirp'.</p>
<p>Input Format:... | 3 | 1,189 |
Checking if the JDBC connection is writable; using preferredTestQuery or ConnectionTester | <p><strong>Current setup:</strong></p>
<p>Service host (Java) connects to (JDBC) master DB (MySQL) and has a slave (read-only) for reliability</p>
<p><strong>Scenario:</strong></p>
<p>In case of flip, I need to upgrade slave to new master. Present master becomes read-only and new master is promoted to read-write. I am ... | 3 | 3,564 |
Multiple model values on a single controller in mongoose | <p>I have created 3 models for nested type schema. Now I want to save only two module details in controller. How can I do that.</p>
<p><strong>Models:-</strong></p>
<p><strong>// users model</strong></p>
<pre><code>var userModelSchema = new mongoose.Schema({
email : {
type: String,
... | 3 | 2,397 |
Webapi Post has null values | <p>I'm calling a webApi from another project (C# class) and one of the properties is always null. I verified while debugging that the object is properly populated. The object being pass is stored in a shared library that's referenced in both projects. So there shouldn't be a mismatch in types.</p>
<p>I verify before t... | 3 | 1,221 |
SQL query to select group then order from 2 tables | <p>Here are the tables</p>
<p>TAGS :</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>tag_id</th>
<th>tag_name</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>SENT</td>
</tr>
<tr>
<td>2</td>
<td>AIRTIME</td>
</tr>
<tr>
<td>3</td>
<td>RECEIVED</td>
</tr>
<tr>
<td>4</td>
<td>KOPOKOPO</td>
</tr... | 3 | 1,293 |
Destroy a tkinter interface in a loop? | <p>I have a tkinter script, with an easy goal :
propose 3 solutions in checkbutton, click "ok" after choice the option, and get this option.
The code work great when I call it one time.
But I need to do it in a loop on many possibilities, and here the probleme appear, after clicking the first "ok", I get the value, but... | 3 | 1,362 |
Wrong color of video after using AVAssetExportSession | <p>I'm generating a video and add <code>backgroundView</code> on a background of it.</p>
<p><code>BackgroundView</code> contains color or image.</p>
<p>While using <code>AVAssetExportSession</code> we can't add a background to the video. That's why I generate background video from <code>backgroundView</code>.</p>
<p... | 3 | 1,436 |
Access to REST API from JS | <p>Need access to REST API from JS code, using jQuery ajax:</p>
<pre><code>function tryQwintry () {
var data = {
"params[weight]" : "100",
"params[dimensions]" : "100x100x100",
"params[delivery_pickup]" : "msk_1",
"params[insurance]" : "false",
"params[items_value]" : "350",... | 3 | 1,681 |
ListView items don't display immediately on startup | <p>I have a strange glitch with my program. I'm trying to follow a <a href="https://www.youtube.com/watch?v=AXmiZl03Rb4&index=11&list=PLfBjz1j1UV9m3MofrgMivwaGjRjfhMQfL" rel="nofollow noreferrer">tutorial</a> in regards to generating and displaying listView items using firebase.</p>
<p>The problem with my prog... | 3 | 2,842 |
MySQL Min value query group by second column not getting the proper value of third column | <p>My table Structure is like below</p>
<p>vendor_id account_id price code</p>
<p>27 2 &n... | 3 | 2,060 |
In google plus how to get the userId while the authentication code is given and google plus sign up button(php) | <pre><code><?php
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 3 | 1,951 |
Manipulating/Filtering CSV files python/pandas | <p>I have two csv files representing the same data : <code>source1.csv</code> and <code>source2.csv </code></p>
<p><code>source1.csv</code> looks like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th>
<th>name</th>
<th>url</th>
<th>link</th>
</tr>
</thead>
<tbody>
<tr>
<td>1111... | 3 | 1,182 |
NetBeans Junit5 Tests-Output ignore DisplayName Nested-Format | <p>I do not get the names from the annoations "@DisplayName" as a test result in NetBeans. Only the names of the test functions are shown. The grouped display of the nested tests is also ignored.</p>
<p><a href="https://i.stack.imgur.com/33AkD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com... | 3 | 1,849 |
iPhone: Delegate method not being called for AVAudioPlayer and AVAudioRecorder | <p>The problem I am facing is with play. When I record that is storing in document directory with format of document even with size that means recording is being done. And when my <code>play</code> function is calling I am converting it to <code>NSData</code>, though it is not playing anything.</p>
<pre><code>- (void)... | 3 | 2,073 |
PHP convert multidimensional multi-depth array to string | <p>The following is an example of a multi-dimensional array that I'm working with:</p>
<pre><code>array:4 [
"discount" => array:2 [
0 => 10.0
1 => 100.0
]
"updated_at" => array:2 [
0 => "2015-02-25 11:35:36"
1 => "2015-02-25 11:35:57"
]
"creator" => array:1 [
"url" =&... | 3 | 2,284 |
Import bootstrap.js into lit-element component | <p>I have a lit-element component that renders the bootstrap dropdown correctly, however when clicking on the dropdown, the menu does not appear. I realize that this is a javascript problem, however I am unclear how to resolve the issue. I am importing the bootstrap bundle js in my index.html file. I am linking to the ... | 3 | 1,529 |
NGRX entity updateOne not working: id undefined | <p>I decided to ask for help, I just cannot get my head around NGRX Entity! (This code was created initially by NX ).</p>
<p>I have followed the NGRX Entity guide, I have also looked at loads of tutorial videos but I still cannot get <strong>NGRX Entity updateOne</strong> to work.
Getting this error below - I can load ... | 3 | 1,058 |
Order of thread activation in a c# program on a 4 cores PC | <p>I am confused about the thread activation order of the following C# code. It creates 10 threads, starts them randomly, each thread simulates to execute a time-consuming work 10 times, if you check the debug output, the thread seems not to be picked up not randomly, please see below output example, notice thread #3, ... | 3 | 1,581 |
MaterializeCSS collapsible not working with v-for loop in vue js | <p>I just started implementing Vue JS to my existing project with having very basic knowledge and minimal implementation.</p>
<p>My entire project is on Codeigniter 3 as backend framework and using html5, css3 and jQuery as frontend technology. I don't want to use other substitute frontend framework other than materia... | 3 | 1,431 |
RAML API validation in FrontEnd | <p>I"m writing validation code in React application to check if input matches RAML specs. I use a <a href="https://github.com/mulesoft-labs/node-raml-validate" rel="nofollow noreferrer">'raml-validate'</a>.</p>
<p>What I cannot figure it out yet is that how I can add codes to validate input which matches RAML specs b... | 3 | 1,770 |
Android Java InputDispatcher Error | <p>I have build android app where i need to place JSON data to button.
the code running well but when i place button list to Linear Layout I've got Inputdispatcher Error. here is my code.</p>
<pre><code> protected JSONObject doInBackground(String... params) {
mCommentList = new ArrayList<HashMap<... | 3 | 1,283 |
Why is the ListViewBuilder showing duplicate values? | <p>I wrote the following simple application to query my database. I'm trying to use a listviewbuilder to show each of the show names on a different card. I know I have two shows in the database and so I should have two cards (Game of Thrones and Super Bowl). So why is this showing 4 cards (screenshot below)? Thanks for... | 3 | 1,381 |
Refresh HTML Data Table from csv file | <p>I need help pls...</p>
<p>I have build a webpage with navbar menus. Well all menus are linked with different pages.
Question - have a data csv file and I need to update the data in html table using javascript. It works on local server ; however, once I do edit the csv file and refresh the web-page the table content... | 3 | 4,844 |
multiple queue waiting time | <p>There are more than 2 queues in the system.</p>
<p><img src="https://i.stack.imgur.com/kepTh.png" alt="enter image description here"></p>
<p>Packets following the exponential distribution(lamda, mu) continue to enter each queue(queue1, queue2)</p>
<p>However, the service rate mu is processed once for queue1, one ... | 3 | 3,438 |
WSOD on PHP script | <p>Every time I run the code below, I get a WSOD. Not sure what I'm doing wrong with this code. Nothing gets logged and I've verified my php.ini configurations are well set to display all errors. Any help on this would be appreciated.</p>
<p>
<pre><code> // MAIN BIDDING FUNCTION MAIN BIDDING FUNCTION
// this functi... | 3 | 5,434 |
How to send an email to a specific recipient from a HTML form and add it to a html table as a record? | <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><!-- Placeorder part -->
<div data-ng-show = "isPlaceOrder">
<div class = "col-lg-10" style =... | 3 | 2,570 |
MongoDB Aggregation with sum of identical array elements how to? | <p>I am building statistics on most used combination of cards, this I can do easily by unwinding $players and grouping with _id of $players.spells.d -- it works quite fast and gives me exactly what I want. </p>
<p>The issue I have is I cannot figure out how to take into consideration the level of the card. (Cards can ... | 3 | 1,595 |
Mongodb group collection entries by day from timestamp, performance optimisation | <p>I have a Node web app that uses mongodb to store data. I have a Messages collection that looks something like:</p>
<pre><code>[
{
"message": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut",
"pubDate": "2014-01-16T14:15:33.792Z",
"pubTimezone": "America/T... | 3 | 1,545 |
Ways to configure logs other than log4j xml, properties file, and source code (mainly java)? | <p>I'm looking at the source code of some application. It is using <strong>Spring framework, Apache Tiles, JSP, Log4j, java, javascript, jquery, jqplot, Jsch</strong>, and etc.</p>
<p>I know where the logs are created. (a/b/logs) However, when I look at source code, I don't know how logs are created under the folder n... | 3 | 1,662 |
Drag and drop ZK TreeModel issue | <p>I'm having problems with drag and drop, I wouldn't like to allow one node to be moved within one own subnode, for example:</p>
<p>1--</p>
<pre><code> |--2
|--3
</code></pre>
<p>the node 2 can't be moved to node 3, if this happen node 3 has a new subnode but has no parent. The same can't happen with the n... | 3 | 2,963 |
Row and columns-wise calculation in long format in R | <p>I am struggling with cellwise-calculations in a complex data-set (see below for dput() example).</p>
<p>I need to apply the formula for standardized mean difference (M1-M2/sqrt(s1^2+s2^2) to multiple rows and columns (studies and tests). The M1 & M2 (means) values are in the <code>pr_cognm_</code> columns and ... | 3 | 6,572 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.