title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Rails 4: devise and omniauthable error | <p>I use devise and omniauth in my Rails 4 app. I did all actions from this page (from answer):</p>
<p><a href="https://stackoverflow.com/questions/11093120/devise-omniauth-and-facebook-integration-session-error">Devise, Omniauth and Facebook integration session error</a></p>
<p>After adding this <strong>:omniauthabl... | 2 | 5,069 |
Puppet .erb template: syntax error, unexpected $end, expecting ')' (or: inserting variables declared in .erb into text after end of code) | <p>I'm working on an .erb in Puppet to manage an Apache Flume config file. (Flume is going to ship logs to Elasticsearch, so they can be searched and sorted in Kibana.)</p>
<p>Some background: it's getting this information from a custom fact in facter called logpaths that keeps the paths of my logs in this format:</p>... | 2 | 1,336 |
Application.cfc extending cfc in subdirectory without access to CF admin or webroot subdirectories | <p>I'm on a shared linux server and I only have access to <a href="http://domain.com/~username/" rel="nofollow">http://domain.com/~username/</a> which maps to ~/public_html. </p>
<p>I would like to use the Taffy framework for ColdFusion in this context. As far as I can tell, to use the framework you must have an <code... | 2 | 3,595 |
JavaScript Blob returning broken PDF | <p>I want to download <em>PDF</em> document with <em>JavaScript</em> and using <em>blob</em> as described <a href="https://stackoverflow.com/questions/19327749/javascript-blob-filename-without-link">here</a>. If I download my PDF directly without <em>JS</em>, I receive a working <em>PDF</em>, but if I download it with ... | 2 | 1,453 |
TemplateDoesNotExist | django 3.0.1 ,python 3.6 | <p>I am new to Django , I'm working on system Windows 10 , Django version 3.0.1 ,python 3.6 I tried to use all the relevant solutions provided for this problem , but unfortunately none of those resolve my problem .
I made a folder named <strong>templates</strong> in <strong>myapp</strong> and <strong>"index.html"</stro... | 2 | 1,140 |
How do I store a Blob from InputStream | <p>I am using Jersey and I can upload a file, I can also write dummy blobs to the datastore. but I am stuck at writing the file that I uploaded to the datastore.</p>
<pre><code>@Path("/blob/")
public class UploadFileService {
@POST
@Path("/upload/")
@Consumes(MediaType.MULTIPART_FORM_DATA)
public Resp... | 2 | 1,053 |
Razor LabelFor and DropdownFor | <p>I am using MVC5 with EF6. I had a requirement for creating a couple of dozen Dropdown Lists in a view that contain user-selectable preferences that are then used throughout the web application.</p>
<p>The problem I am having is an error on both the LabelFor and DropdownListFor lines in the razor View:</p>
<blockqu... | 2 | 1,176 |
Extend spinner with same design | <p>I would like to extend the spinner class, but preserve the same look. If I just create a custom spinner class like (nothing special happening): </p>
<pre><code>public class MySpinner extends Spinner {
public MySpinner(Context context)
{ super(context); }
public MySpinner(Context context, int mode)
... | 2 | 1,061 |
Color not showing up in Safari but everything is working in MSIE, FF and Chrome browsers | <p>In Safari the colors are not showing up correctly. However everything is working in IE, FF and Chrome. </p>
<p>I'd like to make it work cross-browser. Is there any way to accomplish that?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code"... | 2 | 3,872 |
Java HttpURLConnection response processing blocking in read | <p>Sends a request to the server via a <code>GET</code> request <code>HttpURLConnection</code>, the answer comes to me, sometimes <code>GZIP</code>, and sometimes not.</p>
<pre class="lang-java prettyprint-override"><code>import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import jav... | 2 | 2,355 |
Trying to use spring MVC validator with parent child class relation.Getting an error more details below | <p>I am actually trying to validate a form named user.jsp which .the "Class User" .. has a reference of "class inuser"(this class has only one attribute qualification)which is another class. when i keep the qualification field "" blank the system gives a stack trace which i have pasted below. Please help if possible i ... | 2 | 2,855 |
Flutter - InheritedModel still update child even if it does not match an aspect | <p>Good day. I've watched a video about Flutter's InheritedModel and got interested on it. Unfortunately, I can't seems to make it work properly.</p>
<hr>
<p>Summary: Need help how to properly implement InheritedModel.</p>
<p><strong>Expected Code Output:</strong> Widget <code>CountText</code> should not be updated ... | 2 | 1,035 |
Static *template* class member across dynamic library | <p>Edit: the comments below the accepted answer show that it might be an issue with the Android dynamic loader.</p>
<p>I have a header for a template class with a static member. At runtime the address of the static member is used in the library and in the client code. The template is implicitly instantiated both in th... | 2 | 1,650 |
plotting annual time series with pretty labels | <p>I have (macroeconomic) annual data from the "Penn World Tables". I'm having problems with the date labels. As you can see below, the dates are expressed as decimals. I've made several attempts to fix it, but failed repeatedly: I turn to you for help.</p>
<p><img src="https://i.stack.imgur.com/6Ig4b.png" alt="enter ... | 2 | 1,287 |
SQLiteDatabase Tables not created in Android | <p>I've been trying to build a database application with search facility modelled after <code>SearchableDictionary</code> in Android Samples:</p>
<p><strong>The helper class is as following:</strong></p>
<pre><code>public class DataBaseTable {
public static String DATABASE_NAME ="DICTIONARY";
public static int DATAB... | 2 | 1,096 |
Retrieving file data in chunks using Web API for display in browser (WIP) | <p>I have this working but I want to share this out to see if I missed anything obvious and to solve a mystery as to why my file chunk size has to be a multiple of 2049. The main requirements are:</p>
<ul>
<li>Files uploaded from website must be stored in SQL server, not as files</li>
<li>Website must be able to down... | 2 | 2,678 |
Spark Streaming Kafka job stuck in 'processing' stage | <p>I have a streaming job that reads from Kafka (@1min batch) and after some operations POSTs it to a HTTP endpoint. Every few hours it's getting stuck in 'processing' stage and starts queueing jobs thereafter:</p>
<p><a href="https://i.stack.imgur.com/VlqZG.png" rel="nofollow"><img src="https://i.stack.imgur.com/VlqZ... | 2 | 1,624 |
iOS - Images not loading on reusable UICollectionViewCell's | <p>Hello I have a problem that I would greatly appreciate any help if possible. I have an app that has a UICollectionView which uses a UICollectionViewCell that has an UIImageView inside of it. This image view is supposed to be set each time the cell is generated with it's appropriate image. However the image does not ... | 2 | 2,172 |
Adding PushPins in Bing Maps | <p>I am trying to add pushpins to a Bing Map. The push pins are got from a JSON feed. I would like to get something like this:
<img src="https://i.stack.imgur.com/tAhG0.png" alt="enter image description here">
My code does not work for the first time alone and I cant understand why.
My map ViewModel is </p>
<pre><cod... | 2 | 1,255 |
Send jquery datatable column value to Javascript Function (Asp.Net MVC) | <p>I am binding data to jquery datatable in asp.net mvc, i have an anchor tag in one of the columns of the grid where i am accessing / reading row data and sending that data to a javascript function. The problem which i am facing is, i am able read and send row values to the function which are numbers for example Produ... | 2 | 1,115 |
Kubernetes Nginx Ingress Controller expose Nginx Webserver | <p>I basically want to access the Nginx-hello page externally by URL. I've made a (working) A-record for a subdomain to my v-server running kubernetes and Nginx ingress: vps.my-domain.com</p>
<p>I installed Kubernetes via kubeadm on CoreOS as a single-node cluster using these tutorials: <a href="https://kubernetes.io/... | 2 | 1,666 |
How can I correctly encrypt the input when there is a space? | <pre><code>#include <iostream>
#include <cstring>
#include <string>
//#include <cctype>
using namespace std;
string k;
int key[1024];
int size = 0;
int count = 0;
char text[1024];
char o;
void encrypt(char input[]);
void decrypt(char input[]);
// get arguments from command line
int main(int ... | 2 | 1,668 |
How to use QueryAsync and ScanAsync in DynamoDB AWS C# SDk? | <p>I'm trying to use the QueryAsync function of the AWS C# SDK, this is my code:</p>
<pre><code>var request = new QueryRequest
{
TableName = "happy-projects",
KeyConditionExpression = "PK = :PK and SK = :SK",
ExpressionAttributeValues = new Dictionary<string, AttributeValue>
{... | 2 | 1,433 |
Adding dynamic chart titles in ggplot2 | <p>This follows on from my last question. I've spent an hour or so trying to work out how to pass the variable I use to filter my dataframe to the title of the graph that is generated.</p>
<p>Following on from my previous questions.</p>
<pre><code>library (tidyverse)
library (epitools)
# here's my made up data
DIS... | 2 | 1,194 |
Why Does My App Crash due to Memory Issue? | <p>I am dealing with an app created by some other developer. It's a complete app and has a lot of viewControllers , variables and outlets.</p>
<p>I keep getting the a crash after I load too many images from a server ( 200 for example ). I only get this message in the "print area" : "App terminated due to memory issue"... | 2 | 5,847 |
TableView not showing data in ContainerView using Xcode 7 | <p>I have a regular ViewController which I have place a containerView object within. I have embedded a Static TableViewController as my embedded view. </p>
<p><a href="https://i.stack.imgur.com/rpMf3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rpMf3.jpg" alt="enter image description here"></a></... | 2 | 1,139 |
NetBeans gives segfault, running the prgram using terminal does not | <p>I am confronted to a very weird problem.
When running my very simple one file program via NetBeans, I have the following error:</p>
<pre><code>RUN FINISHED; Segmentation fault; core dumped; real time: 150ms; user: 0ms; system: 0ms
</code></pre>
<p>My run command is simple ./Name-Of-The-File.</p>
<p>When I use a t... | 2 | 1,154 |
Insert entity with join columns | <p>I want to insert in database the entity "CategorieTresorerie" having two join columns. The problem is, one of them (RegroupementCategorieTresorerie) is trying to insert automatically... But this one is already in database, so i have a duplicate key value violation exception.</p>
<p>Error code:</p>
<pre><code>Hibe... | 2 | 1,130 |
CSS Menu children forcing parents to resize | <p>I am currently using the following code:</p>
<p><strong>HTML</strong></p>
<pre><code><div id="wrap">
<ul class="navbar">
<li><a href="#">COMPARE PLANS</a>
</li>
<li><a href="#">BENEFITS</a>
<ul>
<li><a href="#">LARG... | 2 | 1,615 |
Angular 13 Webpack Exception: TypeError: Cannot read properties of undefined (reading 'NODE_DEBUG') | <p>After upgrading to Angular 13 the application no longer works during runtime. From what I've read NODE_DEBUG is Webpack specific and for some reason is not recognized when running the application with an 'ng serve'. I've also recently upgraded to macOS Monterey. I've very stuck at the moment....</p>
<p>package.js... | 2 | 2,047 |
Rails: How to render a nested partial | <p>I am trying to make an app with Rails 4 and Simple Form.</p>
<p>I have a projects model, a project_questions model and a project answer model.</p>
<p>The associations are:</p>
<p>Project.rb:</p>
<pre><code> has_many :project_questions, dependent: :destroy#, through: :projects
accepts_nested_attributes_for :p... | 2 | 2,009 |
blank Birt report view in java show error | <p>i am new To Java so I have tried to connect MySql And show report in Birt it not working so i tried to make it empty report just to see the report still not working . it give this error .
i am using eclipse 4.5 mars with the latest Birt release the Java SDK is 1.8</p>
<pre><code>org.eclipse.birt.report.engine.api.... | 2 | 3,084 |
Django Celery Beat with Database scheduler not running tasks | <p>Ive been searching wide and far and everything i've come across thus far suggests my configuration is correct.... I can see my tasks are being registered in my celery worker container. I don't see them registered in my beat container (but I don think I should? I should just see the tasks, which I do) but the tasks a... | 2 | 4,349 |
How to use npm file in webpack version 4.42.0 | <p>I started the use the web pack version 4.42.0, I can build the web-pack and able to run it. But whenever I include below code. I get an error, Please would anyone can help how to use npm fs in web-pack </p>
<p>Index.js </p>
<pre><code>var fs = require('fs');
console.log(fs.readFileSync());
</code></pre>
<p>and my... | 2 | 1,226 |
Smooth movement in Java | <p>I'm making a simulation in a 3D environment. So far, I have the movements of all the creatures, but it is not "smooth". I've tried quite a few things but was horribly wrong. Now I just have no idea what to do. I was thinking of implementing a vector (not vector class) but don't really know how.</p>
<pre><code>impor... | 2 | 1,676 |
Focusout with autocomplete | <p>I'm trying to figure out how to direct the focus on these objects to get auto complete to go away when it's not needed. </p>
<p>I'll post the code and then explain what I've tried. The only issue with writing too much is that it scares some people away so I'll be brief yet thorough!</p>
<p>This is the library I'm ... | 2 | 1,845 |
Unable to call jsp pages using ejs and express in node js? | <p>Here is my app.js</p>
<pre><code>var express = require('express'),
app = express();
var port = process.env.PORT || 8000;.
var io = require('socket.io').listen(app.listen(port));
require('./config')(app, io);
require('./routes')(app, io);
console.log('Your application is running on http://localhost:' + port);
</code... | 2 | 1,738 |
reading from IDbCommand using an inherited custom IDataReader | <p>I have made a custom class inherits <code>IDataReader</code> and have successfully
implemented a custom ServerWriter <code>sqlBulkCopy</code> with the custom class which uses a C# object instead of <code>DataTable</code>.</p>
<p>That proved to be a more efficient approach as I suspected.</p>
<p>Now I am trying to ... | 2 | 2,522 |
Spark filter dataframe returns empty result | <p>I'm working in a project with Scala and Spark processing files that are stored in HDFS. Those files are landing in HDFS everyday in the morning. I have a job that reads that file from HDFS each day, process it and then writes the result in HDFS. After I convert the file into a Dataframe, this job executes a filter t... | 2 | 1,056 |
mongodb runs slow on IXSCAN | <p>i cannot figure out with some requests in mongodb, i created an index which match all fields from request but it didn't help</p>
<p>is the problem in index ? which fields i should include in index?
here is a part of slowlog</p>
<pre><code>query: {
$query: {
moderation.blocked: false,
project_id: "9fd6db... | 2 | 2,885 |
SAP and Excel: On Error GoTo Within On Error GoTo? | <p>I'm trying to go back and forth between my SAP GUI and my Excel spreadsheet. I have a list of tables that I want to view in SAP, pull the data from SAP, paste into Excel, and go to the next table. If that table does not exist in SAP, I want it to go to the next table (the table may not currently exist, but it might ... | 2 | 1,538 |
AngularJS Firebase database query filter based on other database | <p>I get the values stored in the "projects" field under a current user's data in Firebase database called <strong>users</strong>:</p>
<p><strong>first method:</strong></p>
<pre><code>var promise = MyUser.user();
promise.then( function onSuccess(user) {
$scope.userprojectskeys = user.projects;
});
</code></pre>
... | 2 | 2,489 |
Need to update certain columns in table from csv file | <p>I have a csv file and I need to update data in only a few columns in my sql database table. What is the best way to do this? I was thinking bulk import however, it will not let me do this without using all of the columns. I was thinking of using format file, but I wanted to know if this is the most efficient way.... | 2 | 1,613 |
Can't Integrate HTML's DOM in NodeJS/ExpressJS | <p>Good day, hoomans! I badly need your help!</p>
<p><strong>My question: Is there any way (in NodeJS/ExpressJS) to dynamically alter an element such as adding new li upon POST request like after clicking the submit button (without using jsdom though)?</strong></p>
<p>I am developing a very simple application which s... | 2 | 2,464 |
Webpack 2 + React Hot Loader Not Working | <p>I'm trying to get Webpack 2 + React Hot Loader working but it doesn't seem to hot reload. It renders the webpage correctly but anytime I make any changes to the "App.js" file, it doesn't do anything.</p>
<p><strong>webpack.config.json</strong></p>
<pre><code>var path = require('path');
var webpack = require('webpa... | 2 | 1,247 |
How to store a value from a database as a variable with VB.net | <p>I am trying to store DoctorId from the patient table as a variable that I can then add to an insert statement (to be inserted into the Order_pres table). I am also trying to do this with PharmacyId from the pharmacy table.</p>
<p>The pharmacy name displays on the dropdown, however I dont know how to store the Pharm... | 2 | 1,335 |
Slow reaction to button click in NgRepeat list of 1000 items | <p>I have a list of 1000+ items which I display using NgRepeat in Angular 1.3. The list populates with buttons. I have noticed significant delay on the click event int he list once it grows in size. When the list is only 5-10 items the clicks are instant. When the list is 1000 there is about 2-5 second delay before... | 2 | 4,309 |
Android: Send/Receive SMS text messages when running in background | <p>My app used to work when it was running in the background. The app simply sends a text message to a person whenever it receives a text message (essentially an away message). </p>
<p>With the new update they removed the permission BROADCAST_SMS which is what I think was allowing the app to operate in the background.... | 2 | 1,364 |
C++ GLFW GLEW LINK2019 unresolved external symbol __imp__glDrawArrays@12 referenced in function _main and LINK1120 1 unresolved external | <p>I'm using glfw and glew just to test drawing a triangle on the screen but when i added the code to draw the triangle it gives me a LINK2019 unresolved external symbol and a LINK1120 1 unresolved external error.</p>
<pre><code>#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <... | 2 | 1,029 |
dday ical and google calendar until problems | <p>Hi I have this <a href="http://sourceforge.net/projects/dday-ical/files/dday-ical/1.0%20Beta%20Candidate/" rel="nofollow">ical (1.0 beta)</a></p>
<p>I have this code</p>
<pre><code>IICalendarCollection iCal = iCalendar.LoadFromStream(fileStream);
foreach (var ic in iCal)
{
foreach (var evt in ic.Events)
... | 2 | 1,424 |
Getting a 'AttributeError at /login/authenticated', 'User' object has no attribute 'backend' | <p>I'm using the Python-Oauth2 library found <a href="https://github.com/simplegeo/python-oauth2" rel="nofollow">here</a>, Django 1.3. I'll end up using the Twitter library located <a href="http://code.google.com/p/python-twitter/" rel="nofollow">here</a>.</p>
<p>I've searched everything I could on this, but I can't s... | 2 | 1,094 |
Magento: Custom left tab menu in module | <p>I have figured out how to add the actual tab items to my custom module, however I cannot figure out how to add the green looking section titles like the System module has. it isnt hard to add your own to the system module itself by using the system.xml file, but how does one add one to their own module menu?!</p>
<... | 2 | 1,263 |
Form to Email Contact Form | <p>Hi im having problems with my PHP code for sending an email via a contact form. The form used to work, but it stopped sending e-mails. I am new at php so please help.I am getting no errors and can see no problem with the code after researching it thoroughly, could someone help me?? Here is my code...</p>
<pre><cod... | 2 | 1,963 |
bootstrap img cards break on ie11 | <p>I have made a section with cards it works well on firefox chrome ie microsoft edge but it breaks on ie 11
on mozilla I get this result
<a href="https://i.stack.imgur.com/n7Hbq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n7Hbq.jpg" alt=""></a>
and on ie11 I get this result
<a href="https://i.st... | 2 | 1,999 |
Scrapyd jobs aren't finishing | <p>I have several spiders that I need to crawl. I am using scrapyd with default settings. I managed to schedule my jobs with scrapyd interface. Everything at this point is fine, except that jobs aren't ending. Every time I check I find that 16 (4 jobs / 4 cpus) jobs are running and all other jobs are pending, unless I ... | 2 | 1,090 |
Ideal database choice for storing Wearable data (Fitbit) | <p>I'm recently developing an app on Fitbit.
I am considering MongoDB or HBase as it has support for aggregation and support for processing data in Key value format.
Example dataset:</p>
<pre><code>{
"activities-heart": [
{
"customHeartRateZones": [],
"dateTime": "today",
... | 2 | 1,334 |
How can I make the scrollController.listener listen to changes? | <p>I have to files: one which contains my app's code and another which contains a widget. The constructor of that widget has as parameter a child of type <code>SingleChildScrollView</code>. The widget takes child's <code>ScrollController</code> and attach to it a listener. The problem is that the listener... doesn't li... | 2 | 1,128 |
Metal draw 2 different objects, only one is showing | <p>I want to render 2 different objects with Metal...I have 2 different shaders, different renderpipeline, and command buffers, passDescriptors, they are all different..But there is only one object is drawing on the screen, I don't know where i went wrong.... Here is the draw function:</p>
<pre><code> dispatch_semapho... | 2 | 4,385 |
html2canvas generates image url, but url variable cannot be accessed outside of local scope | <p>I am using html2canvas and I have not had any issues until now. I have a div which overflows vertically, but I want to capture all the content of the div by "stitching" the images generated by html2canvas together. These image "pieces" will together form the whole overflow contents. My test function (called on a but... | 2 | 1,186 |
Can we create 3D graph in 4 quadrants in C#.NET winform? | <p>I want to create a 3D Graph in 4 quadrants form in C#.NET. For instant, I could do as shown below. If you see the corner of the chart begins with (-150, -200). I wish to start with (0,0) and the extend into 4 quadrant form.</p>
<p><a href="https://i.stack.imgur.com/h3Zjw.png" rel="nofollow noreferrer"><img src="htt... | 2 | 2,395 |
Multiple Hosts wordpress docker with Traefik | <p><strong>Hello !</strong></p>
<p>I have a question about Traefik using Docker and docker-compose,</p>
<p>Indeed, I want to use traefik as a reverse proxy to redirect several services (in my case, several wordpress instances).</p>
<p>Traefik works and I can access to a wordress instance (Wordpress, Mysql, PhpMyadmin) ... | 2 | 2,538 |
How to render a reactjs component stored in a redux reducer? | <p>I have a redux reducer loaded with several reactjs components.</p>
<p>I want to load these inside other components through <code>this.props</code></p>
<p>Like: <code>this.props.components.MyReactComponent</code></p>
<pre><code>class OtherComponent extends Component {
render() {
const Component = this.props.... | 2 | 1,535 |
Issue with bindingsource refresh after row insert - Object reference not set to an instance of an object | <p>Windows Form Application,
VS 2010 C#,
Access 2003</p>
<p>I am referencing from this website, <a href="http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/d53ad3fa-effc-4c9a-8520-897ecd85aa5f/" rel="nofollow">here</a>. My aim is to show updated records (insert/delete update) without closing and... | 2 | 1,109 |
error when installing tensorflow with pip | <p>I tried to install TensorFlow on Ubuntu using <code>pip install tensorflow</code> but it gave me this error</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> moo</fo... | 2 | 3,068 |
Webpack add owl.carousel | <p><strong>webpack.config.js:</strong></p>
<pre><code>const path = require('path');
const glob = require('glob');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CommonsChunkPlugin = webpack.optimize.C... | 2 | 1,448 |
jQuery Validate custom message not appearing for special method | <p>I'm using the jQuery Validator plugin, which has been working great. I just added another custom method to verify that the password contains one number or one special character, which also works great. The problem is, when that condition fails (they just enter 6 characters of text) it never throws the error messag... | 2 | 1,386 |
Is it ok to use Tagless Final (Object Algebras) on coalgebras? | <h2>Background</h2>
<p>The Haskell and Scala community have been very enamored recently with what they call tagless <strong>final</strong> 'pattern' of programming. These are referenced as dual to initial free algebras, so I was wondering what Tagless Final was final of. On ncatlab one only finds talk of final coalgeb... | 2 | 3,656 |
Task WhenAll combined with ContinueWith not work as expected | <p>I have a Winform project that inside of the winform class I have a property called DataBindingTasks like so. </p>
<pre><code>// create a task list to determine when tasks have finished during load
protected List<Task> DataBindingTasks = new List<Task>();
</code></pre>
<p>I have several async void meth... | 2 | 1,435 |
Unable to click edittext inside inside linear layout, inside pop up window | <p>I have an edit text that is inside a linear layout. And the linear layout is inside a pop window.</p>
<p>When I run the app, I am unable to click and enter input for the edit text.</p>
<p>Code for the pop up window it is inside the onCreateView of my fragment:</p>
<pre><code>final Button makeoffer = (Button) view... | 2 | 2,136 |
Creating a css grid with non-scrolling column headers | <p>I'd like to use a pure CSS grid design to create a table-like display where each column has a "header" cell in the top row that does not scroll (in y) while the body of the grid will scroll.</p>
<p>Here is a (non-working) example HTML as a starting point with some notations indicating my desired result:</p... | 2 | 1,403 |
How to get data from all RecyclerView EditTexts | <p>I have a RecyclerView in my app which contains two buttons.One adds an item (two EditTexts) to the RecyclerView, and the other is for getting the values entered in the EditTexts and sending them to another activity.<br>
The number of items in the RecyclerView are based on user's needs. And I don't know how to get Al... | 2 | 1,853 |
AppCompatDelegate.setDefaultNightMode force closes app with no error | <p>I am trying to add a night mode to my app but the app just closes each time it switches between day/night modes on my main screen. It just closes out the app, no error, no crash, no log cat data, just closes. Has anyone seen this happen before and is there a better way I can see why?</p>
<pre><code>AppCompatDelegat... | 2 | 1,798 |
bootstrap grid system : how to remove gap between two columns | <p>I am using bootstrap grid to have the responsive layout.</p>
<p>But I am unable to remove gap between two columns.
my code is as follows:</p>
<pre><code> <div class="contact-us-box">
<div class="container-fluid">
<div class="row">
<div clas... | 2 | 1,386 |
Error: read ECONNRESET when inserting data into table | <p>I followed this tutorial (<a href="http://www.mysqltutorial.org/mysql-nodejs/insert/" rel="nofollow noreferrer">Tutorial Insert multiple rows at a time</a>) to insert multiple rows data into a MySQL table (chapter 'Insert multiple rows at a time').</p>
<p>I did the same with my code but I got an ECONNRESET error in... | 2 | 1,249 |
Recording gapless audio with AVAssetWriter | <p>I'm trying to record segments of audio and recombine them without producing a gap in audio.</p>
<p>The eventual goal is to also have video, but I've found that audio itself creates gaps when combined with <code>ffmpeg -f concat -i list.txt -c copy out.mp4</code></p>
<p>If I put the audio in an HLS playlist, there ... | 2 | 2,052 |
Anylogic: Local Database Connection | <p>I'm really struggeling here. Anylogic gives me the Database Connection Problem for some days now and the support was not able to help me until now </p>
<p><img src="https://i.stack.imgur.com/bVvRT.png" alt="Screenshot1"></p>
<p>What I got here is a windows mashine running the latest Win10 with Anylogic 7.3 Profess... | 2 | 1,592 |
How to fix: MySQL can not start: Error "another mysqld server running on port: 3306?" - checked port and it is FREE | <p>I have encountered a strange error with MySQL service. I can not start it due to the problem related to ports. I have checked my error logs:</p>
<pre><code>2021-03-18T10:02:22.507114Z 0 [ERROR] [MY-010262] [Server] Can't start server: Bind on TCP/IP port: Cannot assign requested address
2021-03-18T10:02:22.507246Z 0... | 2 | 1,135 |
Fade In Divs One After the Other on Page Load With jQuery | <p>I know that this question has been asked many times before:</p>
<p><a href="https://stackoverflow.com/questions/33750053/javascript-fade-in-images-on-page-load-one-after-the-other">Javascript: Fade In images on page load; one after the other?</a></p>
<p><a href="https://stackoverflow.com/questions/3768607/fade-in-... | 2 | 1,250 |
c# switch loop, adding up total for each case | <p>I have 2 codes that I want to combine into 1 and am having a lot of trouble doing it. The code should ask for the group number then their donation amount and loop back until they press 0. Once they press 0 it should show the total for all groups. Here are the 2 different codes</p>
<p>code 1</p>
<pre><code>using Sy... | 2 | 1,050 |
Easier way to check conditions? | <p>I'm new to python and I need to simplify this checker. How can I change:</p>
<pre><code>...
if c == '>' and ( prevTime > currentTime ):
c2 = True
elif c == '>=' and ( prevTime >= currentTime ):
c2 = True
...
</code></pre>
<p>to something like:</p>
<pre><code> if prevTime | condition | curren... | 2 | 1,434 |
RenderScript V8 multiple dex files defined | <p>I'm trying to get this to work for some time now. <br>
I am using a module StackBlur <a href="https://github.com/kikoso/android-stackblur" rel="nofollow">https://github.com/kikoso/android-stackblur</a>
This is how the Graddle file looks like:</p>
<pre><code>apply plugin: 'android-library'
dependencies {
compil... | 2 | 1,437 |
how to calculate mean using apply for this dataframe in r | <p>Hi I have df (te_1_melt) like below and i want to calculate the mean of the each tis. How can i do that using apply in r?</p>
<pre><code> samples variable value tis
1 GCIMB211_SHADE_INTERNODE PC1 -0.10329820 INTERNODE
2 GCIMB211_SHADE_LEAF PC1 0.25874619 LEAF
3 ... | 2 | 1,363 |
Updating a reference to a command of a nested ViewModel? | <p>I know I'm probably missing something simple and obvious, but at the moment it eludes me.</p>
<p>I'm attempting to use the MVVM pattern.</p>
<p>How do you update a reference to a command in a viewmodel that is linked to a child viewmodel?</p>
<p>I've got a view (MainView) bound to a viewmodel (MainViewModel).
On ... | 2 | 11,733 |
MassTransit not receiving Azure ServiceBus Topic Messages | <p>I'm monitoring the topic and subs and messages are getting in, however my masstransit consumer is not receiving anything.</p>
<p>Here's how it's been setup:</p>
<pre><code>var bus = Bus.Factory.CreateUsingAzureServiceBus(
cfg =>
{
var a... | 2 | 1,112 |
Selector for a button which changes its background and text color | <p>I am having a group of 3 button and want to change the color and text of a particular button when it is clicked and change again back to normal when another button is clicked.</p>
<p>I am using selector for the first time and I am not clear with the states either can any one help me out with this.</p>
<p>here is w... | 2 | 1,202 |
Webscraping a Javascript React page using Python Selenium on an element that hides after few seconds | <p>I'm trying to scrape a webpage that has a React element that hides the dropdown after few seconds. </p>
<p>This is what you see when you first get to the page and the tab I would like to scrape. </p>
<p><a href="https://i.stack.imgur.com/VVY4r.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VVY4... | 2 | 1,033 |
Hashmap implementation problem in C with void pointer as value | <p>Hi I am attempting to implement a really simple hashmap in regular C with a string as key and a void pointer as value as I wish to use the map for multiple data types.</p>
<p>So far I have this</p>
<pre><code>struct node{
void * value;
char * key;
};
unsigned long strhash(char *string)
{
unsigned l... | 2 | 1,047 |
display ViewPager (swipe tab) below Relative layout (not attached to ActionBar )android | <p>I have layout which has some views (<code>EditText</code> and <code>Textview</code> inside <code>RelativeLayout</code> ) and below I need to display ViewPager ( swipe tab ), but android supports ViewPager attached to ActionBar , which is not required in my case.</p>
<p>Current Result : ActionBar --> ViewPager</p... | 2 | 1,971 |
Why Google Places Autocomplete does not hide/show automatically? | <p>I just follow and example of the repository and it did not show/hide, it just stay there, over half the screen, it is very annoying.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-overrid... | 2 | 1,195 |
Unexpected token '' at position 3 in selection expression | <p>I am executing a batch script in Jenkins Job.</p>
<pre><code>C:\Users\Administrator\AppData\Local\Apps\OpenCover\OpenCover.Console.exe "-target:C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe" "-targetargs:C:\Test\src\Example.Tests\bin\Debug\example.Tests.dll --where "cat == Unit" -register:Admini... | 2 | 1,319 |
TypeError: g is undefined Google Map API | <p>I'm using Google map API. My application should work in following manner:</p>
<ul>
<li>user clicks Google Map a form opens in infoWindow </li>
<li>On clicking next another form should open exactly on same coordinates
Problem is here, i am unable to open 2nd form on this location and getting following error</li>
</u... | 2 | 2,467 |
How to iterate through a Userlist in android RecyclerView and save CheckBox changes on a Firestore Database with Kotlin | <p>I have been trying for few days to find a solution , but I can not find the hot potato.</p>
<p>I have about 200 users in attendance list for a sports club.
The checkbox should store which users are present.
The problem is that I can only manage only one user.
I try a lot but no result
Anybody have an idea how to so... | 2 | 2,253 |
Google Maps - Fill remaining height | <p>I am working on a map application were I would like the Google maps DIV to fill the remaining height beneath the header. Code below.</p>
<pre><code> <!DOCTYPE html>
<head>
<title>Map Application</title>
<style type="text/css">
html {
height: 100%;
}
body... | 2 | 1,433 |
TripleDES algorithm in C# | <p>I'm currently working on TripleDES encryption in C# for which I've received the code sample from JAVA. </p>
<p>I have created an encryption function in C# with below code sample :</p>
<p>Inputs :
key/ekay = "15ce89cd1a2a838f4f6d49d60438251915ce89cd1a2a838f"</p>
<p>text/data = "0000000000000000"</p>
<pre><code>p... | 2 | 1,623 |
How to get and set value to html tag using array in javascript? | <p><strong>I want to highlight color to many rows if its date value passes my condition as below code</strong></p>
<p>I'm retrieving <strong>from_date</strong> and <strong>to_date</strong> from database by using foreach() in php and I will extract it into rows of table and I want to highlight with red color to some ro... | 2 | 1,469 |
Boto API call is returning "The specified bucket does not exist" even though I can see it in the console and list it using Boto | <p>For some background, this code is part of a larger script. I'm currently using the .boto config file for my creds. I am able to list all buckets using the boto API call as well as create buckets, however, this section of code is giving me some problems, and it looks spot on (the code itself was actually working in a... | 2 | 1,285 |
getting java.net.UnknownHostException while running GOCD docker container in QNAP | <p>I am trying to run gocd docker container (<a href="https://hub.docker.com/r/gocd/gocd-server/" rel="nofollow">https://hub.docker.com/r/gocd/gocd-server/</a>) on QNAP (TS-451 x86 based, firmware 4.2.0) in container station.</p>
<p>container doesn't' start and bombs out with java.net.UnknownHostException:</p>
<pre><... | 2 | 3,533 |
Why is changing where layout parameters are set solving my "OnClickListener not working for first item in GridView" issue? | <p>I'm using a GridView to show some images and I had a problem, as the onClickListener wasn't working for the first image. I found some other questions here at SO with the same problem, but I don't like their "correct answers", as most of them take the same approach of:</p>
<ul>
<li><a href="https://stackoverflow.com... | 2 | 1,177 |
Wrong parameter binding when using named queries with optional parameters in EclipseLink | <p>I'm trying to do a database lookup using JPA with EclipseLink. My database is Oracle 11.2.0. I have the following entity classes defined:</p>
<pre><code>@Entity
@Table(name = "BS_PROVIDERS")
public class BsProvider {
@Id
@Column(name = "GUID")
private String guid;
public String getGuid() { return g... | 2 | 1,392 |
Ordering properties in JSON string (Confused with "Avoiding Class properties to arrange in alphabetical order when instantiated") | <p>I have a class QuarterlySales which I use in my Services which is consumed by a WebApplication which displays the data on a line chart</p>
<pre><code>public class QuarterlySales
{
public string _TimePeriod { get; set; }
public double _Printer { get; set; }
public double _Mouse { get; set; }
public d... | 2 | 2,058 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.