title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Navigating back to root - menu toggle button broken | <p>I am using Ionic 2.</p>
<p>Page 1 (SearchPage) -> popover -> Page 2 (MapPage) -> Page 1 (SearchPage) (menuToggle not working)</p>
<p>I have a <strong>root page</strong> (SearchPage):</p>
<p><strong>html</strong></p>
<pre><code><ion-header>
<ion-navbar>
<button menuToggle>
<ion-ic... | 2 | 1,033 |
Copy Construction in Initializer Lists | <p>I was exploring the <em>ugly</em> world of <a href="https://en.cppreference.com/w/cpp/utility/initializer_list" rel="noreferrer"><code>std::intializer_list</code></a>.</p>
<p>As far as I've understood from the standard:</p>
<p><em>§ 11.6.4</em>:</p>
<blockquote>
<ol start="5">
<li>An object of type std::initi... | 2 | 1,142 |
Build Android job with connectedInstrumentTest not working on Jenkins | <p>I had configured Jenkins build to build gradle project and run tests on it (using connectedInstrumentTest) but build fail several seconds after start.</p>
<h2>Stacktrace:</h2>
<blockquote>
<p>com.android.ddmlib.InstallException at
com.android.ddmlib.Device.installPackage(Device.java:884) at
com.androi... | 2 | 1,244 |
Pie Chart Labels with D3.js and AngularJS | <p>I'm new to D3. Trying to show "outside" labels with lines, in D3, similar to Bostock's pie chart here <a href="http://bl.ocks.org/dbuezas/9306799" rel="nofollow">http://bl.ocks.org/dbuezas/9306799</a> I can't get the labels or lines to show up like Bostock's pie. The pie is working well though! Any help with my c... | 2 | 2,873 |
model not updating in .then method of promise angularjs | <p>I'm really struggling with this because it should be very simple. I have a route with a controller defined called login. In my template I have the following data binding <code>{{error}}</code> which is defined in my controller after executing a method from a custom service, and resolving the returned promise. </p... | 2 | 2,019 |
How to introduce delay within a RxJava group processed parallely? | <p>My use case is to group a stream, start processing some of the groups parallely, and within each group, delay processing of each item by a constant interval. I can't seem to get the delay within the group right because instead of being emitted periodically, they are emitted almost instantaneously. Following is my te... | 2 | 5,508 |
Data not getting inserted into audit tables in Spring-Hibernate-envers webapp | <p>I am working on a Spring and Hibernate web app. I have to use Envers for auditing.<br>
But when I am running the application only audit tables are created but no data is inserted to the audit tables. </p>
<p>Config file:</p>
<pre><code><mvc:annotation-driven/>
<bean id="transactionManager" class="org.s... | 2 | 1,690 |
MongoDB & Web API - can't understand how to use filters | <p>I am trying to do basic CRUD on a MongoDB using C# Web API. All the examples online are for deprecated methods and I simply can't get the new methods to work.</p>
<p>the places where i need help in the code bellow:</p>
<ol>
<li>Delete all items in collection - syntax to remove all.</li>
<li>get all items in collec... | 2 | 1,555 |
How to display infowindow from clicking link using jquery gmap3 | <p>I am using jquery gmap3 to display a map with markers for each results found from a search I built. Each marker has a infowindow that shows details about the location the marker is on, when someone clicks the marker on the map that infowindow shows that information. Below the map I show a list of the results found, ... | 2 | 3,864 |
Error Creating DataSource Postgres in Spring Boot | <p>I'm getting this error when trying to run the application in eclipse (Run as > Java Application):</p>
<pre><code>Caused by: org.springframework.beans.factory.BeanCreationException: Cannot determine embedded database driver class for database type NONE. If you want an embedded database please put a supported one... | 2 | 2,936 |
FindByIndexNameSessionRepository “RedisConnectionFactory is required” configuration error | <p>Implementing the logic of limiting active sessions for each user (number of possible sessions stored in the database, sessions in Redis), I came across the problem of configuring <code>FindByIndexNameSessionRepository</code>.</p>
<p>Due to the fact that I am injecting <code>FindByIndexNameSessionRepository</code> s... | 2 | 1,949 |
Change table row color depending on multiple selections/hide elements | <p>I have a table. On each row I have a checkbox to "select it", two select boxes and an extra checkbox.</p>
<p>When I show my page, each row background color is the default one (white).</p>
<p>What I need is two things:</p>
<ol>
<li><p>For each "Action" select box value, I want the row to change its color but only ... | 2 | 4,034 |
Gradle build finished with 520 error(s) but APK generated successfully | <p>every time i want to run or debug my app, gradle always builds with errors but successfully by studio.but when i want to generate by myself,it failed,so strange.</p>
<pre><code> android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.jinjiang.computer.tianyi... | 2 | 1,273 |
Dask bag from multiple files into Dask dataframe with columns | <p>I am given a list of filenames <code>files</code> which contain comma-delimited data which has to be cleaned as well as further extended by columns containing information based on the filenames. Thus, I implemented a small <code>read_file</code> function, which handles both, the initial cleaning, as well as the comp... | 2 | 1,043 |
Vtiger custom module not saving | <p>I am creating a custom module in vtiger, this is the <code>Vehicles.php</code> file in the <code>Modules/Vehicles</code>:</p>
<pre><code><?php
include_once 'modules/Vtiger/CRMEntity.php';
class Vehicles extends Vtiger_CRMEntity {
var $table_name = 'vtiger_vehicles';
var $table_index= 'vehiclesid';
... | 2 | 3,514 |
Google OneTap SignIn Pass or Error codes: 10 / 16 | <p>I'm trying to set up a Google OneTap SignIn button to my developed App (I'm not using Firebase to sign in) guiding by this source:
<a href="https://developers.google.com/identity/one-tap/android/get-started" rel="nofollow noreferrer">https://developers.google.com/identity/one-tap/android/get-started</a></p>
<p>I've ... | 2 | 6,092 |
How to test timescaledb database using Python | <p>I want to test a Timescale database using Python and pytest.</p>
<p>I have discovered, that <code>pytest-pqsql</code> provides a database fixture to be used in testing. However, I am struggling to enable timescaledb support for it.</p>
<p>I have gone through the following steps to get it working:</p>
<ul>
<li>ena... | 2 | 2,292 |
Unable to Compile maven project | <p>I am using a maven project (v3.1.1) which I use for selenium automation. I have already hosted my project in Jenkins(in localhost) and trying to compile the project from the Jenkins itself. </p>
<pre><code>com.eh.base
com.eh.pageobjects
com.eh.tests
</code></pre>
<p>[I am not using the structure like <strong>src\m... | 2 | 8,391 |
Add bounce effect to scroll | <p>I am trying to create a smooth scrolling experience **with* a bounce effect when the user over-scrolls, i.e. scrolls too much to the bottom or top. <a href="https://stackoverflow.com/a/34110360/4861207">This answer</a> answers how to scroll smoothly, but I'm also trying to bounce when it scrolls out of bounds. Somet... | 2 | 6,092 |
Css minification not working (gulp + cssnano) | <p>I have a very basic gulpfile set up like this:</p>
<pre><code>'use strict';
var gulp = require('gulp');
var sass = require('gulp-sass');
var notify = require('gulp-notify');
var browserSync = require('browser-sync').create();
var useref = require('gulp-useref');
var cssnano = require('gulp-cssnano');
var uglify = ... | 2 | 1,410 |
Edit data on table row and save in database with ajax | <p>I'm not very good(not at all) with ajax/js and will need a little bit help here. </p>
<p>I have table on page which I show data like this:</p>
<pre><code> <table class="table table-bordered">
<thead>
<tr>
<th>People</th>
<th>Rate pe... | 2 | 2,563 |
Do Ubuntu PHP repositories expire? | <p>Disclaimer: I'm not very intimately familiar with linux, ubuntu, docker etc. I know only some stuff...</p>
<hr>
<p>Software context: Ubuntu 16.04 + docker + docker-compose</p>
<p>I have a Dockerfile which, among other things, also installs PHP 7.2:</p>
<pre><code>FROM ubuntu:16.04
....
RUN LC_ALL=en_US.UTF-8 add... | 2 | 1,429 |
unable to implement onclicklistener in inflated layout | <p>I am quite new to Android. I am doing a shopping cart app. In my cart page, I display the product image,name,id,quantity,price,total and delete button for each item. </p>
<p>I have used table layout for the above view in item.xml and inflated it in another tablelayout in cart.xml. </p>
<p>The problem is that when ... | 2 | 3,681 |
Spring boot properties vs maven pom packaging tag | <p>I have been facing some problems with spring boot and maven.</p>
<p>It seems that the <code><packaging>pom</packaging></code> tag, when added to <code>pom.xml</code>, somehow makes spring completely unaware of the parent-level <code>applications.properties</code> configuration file. When running, spring... | 2 | 1,371 |
Codeigniter updating records won't save in DB | <p>I'm having some trouble updating records with the Codeigniter framework. I'm using the MVC pattern and active records.</p>
<p>The code is for updating user profiles.</p>
<p>No error but it won't save to my DB. What could be the possible solution for this?</p>
<p><strong>Models (model_users.php)</strong></p>
<pre... | 2 | 1,551 |
Javascript "private" vs. instance properties | <p>I'm doing some Javascript R&D and, while I've read <strong>Javascript: The Definitive Guide</strong> and <strong>Javascript Object Oriented Programming</strong>, I'm still having minor issues getting my head out of class based OOP and into lexical, object based OOP. </p>
<p>I love modules. Namespaces, subclas... | 2 | 1,998 |
Using dynamic component within Angular structural directive produces extra HTML tag. How to remove or replace it? | <p>I have quite complex infrastructure in my project which contains of</p>
<ul>
<li>host component</li>
<li>structural directive used in host component's template (MyDir)</li>
<li>another component used in structural directive (MyComp)</li>
</ul>
<p>Simplified version looks like the following.</p>
<p><strong>host co... | 2 | 1,588 |
Problems occurred when invoking code from plug-in: “org.eclipse.jface” eclipse | <p>the following error occured when I started modelling from my TAOM4E Agent Modelling plug-in:</p>
<p>Problems occurred when invoking code from plug-in: "org.eclipse.jface"</p>
<p>The full errorlog is as follows:</p>
<pre><code>!ENTRY org.eclipse.jface 4 2 2017-06-22 01:06:39.783
!MESSAGE Problems occurred when inv... | 2 | 2,576 |
Initialization vs Assignment in C | <p>My instructor recently told that array initialization in C happens in two ways, namely:</p>
<ol>
<li>Manually like <code>int a[5]={1,2,3,4,5};</code></li>
<li>Using <code>scanf()</code> like <code>int a[5], i; for(i=0;i<5;i++) scanf("%d", &a[i]);</code></li>
</ol>
<p>In my opinion the second "way" is a way ... | 2 | 1,144 |
Distributed issue tracker for git with usable Eclipse Mylyn support? | <p>I'm using <strong>git</strong> for version control but I'm currently lacking a good <strong>issue/bug/ticket tracker</strong> with Eclipse Mylyn integration.</p>
<p>The features I'm looking for:</p>
<ul>
<li><strong>Open source</strong> implementation (so that I can add the features I need in the future. GPL, LGPL... | 2 | 1,149 |
error: C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:11111: error: (-215) scn == 3 || scn == 4 in function cv::cvtColor | <p>i have followed a tutorial on creating a training set to recognize a face
here is the code</p>
<pre><code>import cv2
import numpy as np
# Load HAAR face classifier
face_classifier = cv2.CascadeClassifier('Haarcascades/haarcascade_frontalface_default.xml')
# Load functions
def face_extractor(img):
# Function... | 2 | 1,207 |
Speeding up a "closest" string match algorithm | <p>I am currently processing a very large database of locations and trying to match them with their real world coordinates. </p>
<p>To achieve this, I have downloaded <a href="https://www.geonames.org/export/" rel="noreferrer">the geoname dataset</a> which contains a lot of entries. It gives possible names and lat/lon... | 2 | 1,243 |
DataTables export not works with updated footer contents | <p>I am having two modules.</p>
<p>One is to update the footer numbers to thousand separated.
Another one is datatable initiator</p>
<pre><code>//Module 1
makeThousands();//This works fine
//Module2
$('#myTable01').DataTable({
'paging' : false,
dom: 'Bfrtip',
buttons... | 2 | 2,297 |
Sending email with smtplib, no errors but no messages delivered | <p>**UPDATE2: In the last bit of code of V2 I swapped <code>smtp.sendmail(email_address, address, msg,)</code> with <code>smtp.sendmail(email_address, phone_book, msg,)</code> Accessing the phone_book directly seems to have solved the issue. Here is the working code for anyone that is looking:</p>
<pre><code>import sm... | 2 | 1,635 |
Indeterminate ProgressBar does not animate when part of a Dialog (JavaFX 10) | <p>When a <code>ProgressBar</code> is indeterminate it has an animation that goes back and forth. This works fine when the <code>ProgressBar</code> is part of a normal <code>Stage</code> but doesn't work when part of a <code>Dialog</code>. Instead, it seems to just sit at the start of the animation. The <code>ProgressB... | 2 | 2,536 |
R - dplyr map slice for repeat rows | <p>I have trouble combining <code>slice</code> and <code>map</code>. </p>
<p>I am interested of doing something similar to <a href="https://stackoverflow.com/questions/38237350/repeating-rows-of-data-frame-in-dplyr">this</a>; which is, in my case, transforming a compact person-period file to a long (sequential) person... | 2 | 1,191 |
Protobuf configuration Intellij Idea Plugin Gradle-kotlin-dsl kotlin | <p>Hey I would like to set up protobuf in intellij idea plugin as a client for other protobuf server (written in golang). That will be my first java approach to grpc. I tried to use kotlin classess generator, but i had even less sucess than with this approach.</p>
<p>My goal is:
Best case scenario: Plugin will allow ... | 2 | 1,965 |
AttributeError: 'OAndX' object has no attribute 'run' | <p>As per topic, below is my code:</p>
<pre><code>import pygame #provides Pygame framework.
import sys #provides sys.exit function
from pygame import *
from pygame.locals import * # Import constants used by PyGame
# game classes
class OAndX:
def __init__(self):
# Initialize Pygame
pygame.init(... | 2 | 5,651 |
React Navigation 5 , Moving screen to different navigator | <p>still try to understand about multiple navigator here.</p>
<p>Basically i have 2 navigator, one rootnavigator for login page, and the appnavigator for any screen after login, below is the app.js</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet... | 2 | 2,103 |
XMS allocation in 16-bit DOS | <p>Please forgive my attempts at necromancy, but I actually need to write some code for 16-bit DOS (!). I have to verify that a piece of software executes correctly when built for a 16-bit platform, and I discovered that our XP workstations can actually run 16-bit DOS apps, which makes it possible to use the existing b... | 2 | 2,811 |
Java ClassLoader stops working when used in new Thread (Runnable) | <p>I'm developing an eclipse plugin. When the plugin is run (e.g. in a debugging instance of eclipse), it loads certain classes from all java-projects in the debugging workspace. Reflection is used for this purpose. To get a better idea of what I'm doing here is some code:</p>
<pre><code>for (IPath outDir : _outputDir... | 2 | 1,796 |
converting string path to inputstream | <p>I am developing a chatting app using Quickblox chat API And currently have done user registration,authentication and basic peer to peer chat and group chat. now implementing video,image and file sending But have stuck up on some part. </p>
<ol>
<li><p>Selecting image from sd card. returns picture path in string and... | 2 | 1,397 |
TabBarView: Controller's length property (2) does not match the number of tabs (1) present in TabBar's tabs property | <p>Getting the error as in the title. Of course this is a straightforward thing to check, but some weird behaviour happens. I'm creating a TabBarView with either 1 or 2 tabs, depending on argument in constructor (<code>numTabs</code>). Now Flutter asserts even when the length of tabs is clearly 2 - the controller lengt... | 2 | 1,106 |
How to add search filter in EXTJS | <p>I created a table using extjs where it is having three columns <strong>name, email and cars</strong>. In extjs we are having a default sorting method. here i want to add search method for all these three columns so that i can also search using the name, email and cars.
What change i need to do for the below code
<a ... | 2 | 2,823 |
C# RawInputDevice in Windows: How I can disable messages for all applications except my? | <p>I have a RawInputDevice that I registered. </p>
<pre><code>// sample
private void SplashLoad(object sender, EventArgs e)
{
var rid = new RawInputDevice[1];
rid[0].UsagePage = HidUsagePage.GENERIC;
rid[0].Usage = HidUsage.Keyboard;
rid[0].Flags = RawInputDevice... | 2 | 2,310 |
Core Data - NSInvalidArgumentException | <p>there's not much to say, i have done another application for core data everything went always fine.</p>
<p>This application is giving a weird error.</p>
<pre><code>*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+entityForName: nil is not a legal NSManagedObjectContext paramete... | 2 | 1,692 |
How do I free a *char allocated via FFI in Rust? | <p>I'm calling the LLVM API via Rust's FFI. <code>LLVMPrintModuleToString</code> <a href="http://llvm.org/docs/doxygen/html/Core_8cpp_source.html#l00205" rel="noreferrer">uses strdup to create a string</a>. However, when I wrap the pointer in a <code>CString</code>, I get an error when Rust drops it.</p>
<pre><code>#!... | 2 | 1,025 |
Testing ReactJS component methods with enzyme shallow - function returns undefined instead of true | <p>I have a component with the following method that calls a function set via props:</p>
<pre><code> class OrderDish extends Component {
static propTypes = {
image: React.PropTypes.any,
order: React.PropTypes.object.isRequired,
removeFromOrder: React.PropTypes.func,
... | 2 | 1,359 |
HyperLink Error: "Object reference not set to an instance of an object" | <p>I've been racking my brain on and off for almost 2 weeks on this one. I can't figure out why I'm getting this error... any help would be greatly appreciated. </p>
<p>My code behind is as follows: </p>
<pre><code> Protected Sub TaxSaleGridView_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridVie... | 2 | 5,353 |
rest with jersey struts2 spring3 not working | <p>I am trying to expose webservice using jersey for a struts2 spring3 web application </p>
<p><strong>my web.xml</strong></p>
<pre><code> <servlet>
<servlet-name>Jersey REST Service</servlet-name>
<servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</... | 2 | 1,803 |
ValidationError: Post validation failed: title: Path `title` is required. in nodejs api | <p>I am making a restful API using nodejs. Here I have added multer for file upload before implementing multer it was working fine but now whenever I try to create post using <code>postman</code> i get error somthing like this.</p>
<blockquote>
<p>error</p>
</blockquote>
<pre><code>{ ValidationError: Post validatio... | 2 | 1,337 |
Set max width of bootstrap responsive table | <p>The problem I am having is that I have a row (the description row) in my table that is the column span of all the columns in the table. This works fine when the table doesn't go responsive:</p>
<p><a href="https://i.stack.imgur.com/IwiyN.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IwiyN.jpg"... | 2 | 2,049 |
Can't see events on Flurry, but getting no errors, using Android Flurry SDK 5.60 | <p>I am trying to implement Flurry in a new version of our app, but get no events sent through to the Flurry console/site.</p>
<p>I am using the Flurry SDK 5.60 and have tried lots of different things, and I get <code>Analytics report sent</code> message in my logs which would make me think everything is working.</p>
... | 2 | 1,391 |
How to detect the file size of a video before you upload it? | <p>I have been asking questions about this subject a lot <a href="https://stackoverflow.com/questions/9960099/how-to-configure-django-uploadify-for-videos-upload-only">recently</a>.</p>
<p>i created my upload form</p>
<p><strong>models.py</strong></p>
<pre><code>from django.db import models
from app.extra import Con... | 2 | 1,492 |
(nginx + uwsgi + django). nginx server is not allowing the request to hit the uwsgi server | <p><strong>I am not getting any reply from ngix</strong></p>
<p><strong>nginx logs</strong></p>
<p>2016/05/23 15:19:49 [error] 9019#0: *3 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 122.171.107.80, server: 54.169.34.178, request: "GET / HTTP/1.1", upstr... | 2 | 1,359 |
How do I include claims into the Access Token retrieved from the Authorize endpoint? | <p>I want to include a claim by default in the access token retrieved when I Authenticate via IdSrv. The Claim <code>Ticket</code> should always be included in the access token, as such I have created a new scope that is a resource scope and included <code>Ticket</code> as a <code>ScopeClaim</code>. However as you can ... | 2 | 8,288 |
Google Maps Directions API showing wrong directions | <p>I am using the Google Maps API and the Google Maps Directions API for tracking the journey of a pilgrimage. <strong>My travel mode is walking and I have 8 waypoints placed along the way (Google doesn't allow you to add more for free)</strong>.</p>
<p>The problem is that Google Maps is taking an odd unsought detour ... | 2 | 1,662 |
How to use filesystem's createReadStream with Meteor router(NodeJS) | <p>I need to allow the user of my app to download a file with Meteor. Currently what I do is when the user requests to download a file I enter into a "fileRequests" collection in Mongo a document with the file location and a timestamp of the request and return the ID of the newly created request. When the client gets t... | 2 | 1,220 |
Connecting react native to nodejs back end | <p>Am trying to make a simple react native app that fetches the data from my express (nodejs app) and just simply show case it.
the app works fine with api links I used from the web but for some reason when I use my own local server ( my own nodejs app) it doesn't show anything. </p>
<p>Am new to react native so I ne... | 2 | 1,127 |
web api get is working but post and delete not working after published in iis | <p>I've been struggling for 4 hours and I still didn't get any solution. I already apply some modification but still my post and delete api returns the error 500.</p>
<p>GET js</p>
<pre><code>$.getJSON(API_URL + 'api/claim/search', params).done(function (data) {
myJsonObject = data;
d.resolve(data);
});
retur... | 2 | 1,156 |
Feasibility of automatic cycle breaker for `std::shared_ptr` | <p>C++11 introduced reference-counted smart pointers, <code>std::shared_ptr</code>. Being reference counted, these pointers are unable to automatically reclaim cyclic data structures. However, automatic collection of reference cycles was shown to be possible, for example by <a href="http://arctrix.com/nas/python/gc/" r... | 2 | 1,363 |
ElasticSearch Java API get array inside document and apply filter and sort | <p>I have to write a complex query, using Java ES API, which will retrieve a page of result, sorted and optionnally filtered. So far here is what my mapping in ElasticSearch looks like :</p>
<pre><code>{
"mappings" : {
"applications" : {
"properties" : {
"applications" : {
"prop... | 2 | 3,859 |
Wrapping words in table cell, but table-layout fixed makes columns equal size | <p>In my HTML table sometimes I have long words in my cells. So I need to break some words if they overflows its area.<br>
This questions shows how to break table cell: <a href="https://stackoverflow.com/questions/1258416/word-wrap-in-an-html-table">Word-wrap in an HTML table</a><br>
This css style is recommended : <co... | 2 | 2,485 |
Operator SDK controller failed to update Custom Resource status | <p>I'm following <a href="https://learn.openshift.com/operatorframework/go-operator-podset/" rel="nofollow noreferrer">this tutorial</a> to create my first Custom Resource named PodSet and currently at step 6 of 7 to test my CR.</p>
<p>Here is my Operator SDK controller Go code:</p>
<pre><code>package controllers
impo... | 2 | 3,303 |
We recommend using a newer Android Gradle plugin to use compileSdk = 33 | <p>Hey guys how can I update to latest version because I cannot find the latest <a href="https://developer.android.com/studio/releases/gradle-plugin" rel="nofollow noreferrer">gradle-plugin</a>. Can somone guide me on this?</p>
<p><strong>build.gradle(ExampleApp)</strong></p>
<pre><code>buildscript {
ext {
... | 2 | 5,281 |
Problem in implementing DSA in Java without Cryptography Library | <p>Hello I have very strange problem and maybe some of you could help my. I am implementing DSA signature algorithm in Java but I cannot use any of existing libraries to do this except of generating SHA-1 hash function from java.security. My code is generating each of the required numbers but there is a problem with ve... | 2 | 2,552 |
How to update ui if there is new data in response using volley? | <p>I have a code which gets data from the web service and displays the response in a textview. However, If the data changes in the webservice, I want to be able to update my textview with the new data and possibly play a notification sound indicating that there is a new data. I have tried doing polling, in which I will... | 2 | 1,929 |
Footer goes up when the keyboard is displayed | <p>I've been searching for the solution for this problem but I didn't find any that could solve my problem.</p>
<p>I'm using RelativeLayout as my main layout and my footer is RelativeLayout too, I found in the internet these configurations:</p>
<p>android:windowSoftInputMode="adjustPan|adjustResize"</p>
<p>It works ... | 2 | 4,103 |
Why it happens - RelatedObjectDoesNotExist error caused by Model.clean()? | <p>I have a clean method that gives me RelatedObjectDoesNotExist error in my model file </p>
<pre><code>@with_author
class BOMVersion(models.Model):
version = IntegerVersionField( )
name = models.CharField(max_length=200,null=True, blank=True)
description = models.TextField(null=True, blank=True)
ma... | 2 | 1,422 |
How can I verify signature with x509 certificates? | <p>I spent 2 days trying to understand how to verify xml signature, with x509 as key,without success.</p>
<p>Can you please explain me how to do? What information should I use to verify signature. The thing I have not understood the most, is which certificate(s) should I use to do so.</p>
<p>For information, I use op... | 2 | 9,604 |
Meteor Deps Recompute Fails | <p>Clicking the previous button will retrieves the previous date's collections. For example, if the current date is 2013-04-05, then the previous button will retrieve all collections for 2013-04-04, and so on. However, the automatic update does not works. The new collection of events never did appears and an exception ... | 2 | 1,807 |
what is the type of response is this? | <p>I got response like this .. 7\x00E\x00Y\x00u\x00\x97\x00\xb2\x00\xb9\x00\xac\x00\x98\x00\x87\x00x\x00[\x00(\x00\xf0\xff\xd8\xff\xfd\xffX\x00\xbb\x00\xf8\x00\x04\x01\xf8\x00\xf2\x00\xf8\x00\xf9\x00\xe7\x00\xc4\x00\x99\x00i\x007\x00\t\x00\xea\xff\xdb\xff\xd6\xff\xd0\xff\xca\xff\xca\xff\xd6\xff\xe9\xff\xfa\xff\x04\x00\... | 2 | 1,671 |
Nameko/RabbitMQ: OSError: Server unexpectedly closed connection | <p>I have two nameko services that communicate using RPC via RabbitMQ. Locally with docker-compose all works fine. Then I deployed everything to Kubernetes/Istio cluster on DigitalOcean and started get the following errors. It repeats continuously 1 time in 10/20/60 minutes. Communication between services works fine (b... | 2 | 1,379 |
Conflict materialize-css and @angular/material theme | <p>In the project added two frameworks <a href="https://materializecss.com/getting-started.html" rel="noreferrer"><code>materialize-css</code></a> and <a href="https://material.angular.io/guide/customizing-component-styles" rel="noreferrer"><code>angular-material</code></a> but in angular material components get the st... | 2 | 1,824 |
Call php function onclick button in same page | <p>Once I select check boxes & <code>OnClick</code> <strong>Insert</strong> Button I am calling php function present in <code>api.php</code> page to display results under <strong>status</strong> column.
But its not fetching any results .</p>
<p><a href="https://i.stack.imgur.com/OlP0V.png" rel="nofollow noreferre... | 2 | 3,219 |
Vue.js 2 Multiple Properties defined in one Single-File component | <p>I am working on a Laravel 5.5 & Vue.js 2.x project, after several digging searchs and questions I came to components. But still I have a warning message when the page renders:</p>
<blockquote>
<p><strong>[Vue warn]:</strong> Property or method "trimestral" is not defined on the instance but referenced ... | 2 | 1,579 |
VueJS + WebpackSimple not compiling SASS | <p>I have bare new installation of VueJs by webpack simple, trying to set up SASS to CSS. Docs are saying that it is ready for development but webpack only works on SCSS not on SASS. Can some one share some kwnolegde how to use <code>lang="sass"</code>?</p>
<p>ALso i followed tutorial on <a href="https://vue-loader.vu... | 2 | 2,014 |
TFS 2015 Builds giving error after migrating from 2012 | <p>We have migrated from TFS 2012 to TFS 2015, after migrating our builds are not working. We are getting the below error.
I could not find much on internet on this.
Please help.</p>
<pre><code>TF215097: An error occurred while initializing a build for build definition \Cockpit\DB.Dev.MetadataDB.Build:
Exception Mess... | 2 | 1,095 |
rails precompiled assets in public/packs not being served in production on ec2 instance | <p>I'm deploying a rails 6 application with webpacker on AWS ec2 instance with Nginx, using Capistrano. The first time i deployed the app in production i did so without precompiling assets locally and took too long and finally worked. But as my application becomes larger with many css, js and other assets to compile i ... | 2 | 2,518 |
Comparing csv column name with csv header array | <p>I am sorry I am editing my question. My real issue is to figure out how to perform a comparison between the $csv_Column_name of fillMapArray function with the value which is stored in the $Csv_header_array in the readRow function. This issue is related to the two csv one table problem since the maps table which stor... | 2 | 2,573 |
Why brew installion failed? | <p>I installed java11 using Home Brew but that failed. So some help needed to get Java works!</p>
<p>Thanks for advance!</p>
<pre><code>admin@mac ~ % brew install java11
Warning: openjdk@11 11.0.12 is already installed and up-to-date.
To reinstall 11.0.12, run:
brew reinstall openjdk@11
</code></pre>
<p>Then brew rei... | 2 | 1,110 |
TypeError: delete() missing 1 required positional argument: 'indexPosition' | <p>I'm trying to create a simple customer registration program where a table pops in when I click a button named "<em>saved</em>" using a list that gets updated by doing the same. I'm also making a <code>delete</code> function that would delete a selected row via mouse click, I tied this function to a callbac... | 2 | 6,754 |
PlistBuddy - adding array items works in terminal but not in bash script | <p>I try to manipulate my Info.plist file using <code>plistbuddy</code> by adding custom fonts array field by script. The commands execute successfully in terminal (both: array entry is created and entries are added):</p>
<pre><code>luka$ /usr/libexec/PlistBuddy testing.plist
File Doesn't Exist, Will Create: testing.p... | 2 | 1,137 |
Printing a Graph from a char[][] in Java | <p>The method below loops through a given <code>int[]</code>, storing both the frequencies of the numbers found in the array along with each different appearing number into a <code>HashMap</code>.</p>
<p>After looping, the <code>HashMap</code> would look something like this (num=frequency):</p>
<pre><code>{0=4, 656=1... | 2 | 1,236 |
Android: Handling orientation changes myself - RelativeLayout is getting messed up | <p>In an Android app, I've got an activity that is somewhat complex and may have threads running at certain times which, when finished, will update the UI. As such, having the Activity destroy and create again (due to orientation change) in the middle of one of these threads could lead to the user having to re-try that... | 2 | 1,606 |
Kendo UI Scheduler with AngularJS - Update issue in custom edit template | <p>We are using a custom editor template with custom fields in Agenda View. We have an edit button which fires the editEvent of scheduler. The problem is that, when we update the event, it doesn't fire the update operation.</p>
<p>As you can see, in "add new event" case, it works fine. Also while editing the "repetiti... | 2 | 2,304 |
java.lang.NoClassDefFoundError: io/cucumber/core/runtime/TypeRegistryConfigurerSupplier | <p>I am getting the 'java.lang.ClassNotFoundException' exception while running maven test in my project. The same program works fine if @RunWith is tagged to (Cucumber.class) but apparently not with @Runwith(CucumberWithSerenity.class). I am not sure why issue is appearing!</p>
<p>Note: I did refer the similar post to ... | 2 | 3,544 |
Page is not rendering in reactjs | <p>I am trying to get the pages by using URL but components are not rendered in the browser even I am not getting the error. So it's very hard to resolve the error.
Please Help me to get the issue.</p>
<pre><code> import React, { Component } from 'react';
import { BrowserRouter as Router} from 'react-router-dom';
i... | 2 | 1,386 |
Java - GSS initiate failed Exception, Caused by: org.apache.thrift.transport.TTransportException: GSS initiate failed | <p>I am trying to retrieve records from the Hive tables. For that I have written the following connection in Java.</p>
<pre><code>public static Connection getHiveConnection() throws IOException, SQLException {
System.out.println("Preparing Hive connection1");
Configuration conf = new Configuration();
conf.... | 2 | 1,235 |
WPF listview, how to get sum of items | <p>I have the following listview defined(its items source is a collection of accounts with an AccountName and AccountBalance properties):</p>
<pre><code><ListView x:Name="AccountList1" ItemsSource="{Binding Source={StaticResource GroupedAccounts}}" SelectedItem="{Binding SelectedAccount, Mode=TwoWay}" Margin="10"
... | 2 | 1,048 |
FCM push notification not received when app is killed/swiped out | <p>I am migrating notification to FCM from GCM. In GCM, I was able to receive notification when app was in foreground, background or killed, but in FCM, I am not able to receive notification when app is not opened/killed by swipe out. Am I missing anything????</p>
<p>AndroidManifest.xml</p>
<pre><code> <service... | 2 | 1,292 |
how can i display extended user data on profile page django | <p>so i was working on extending django user model <a href="https://blog.khophi.co/extending-django-user-model-userprofile-like-a-pro/" rel="nofollow noreferrer">following this tutorial</a></p>
<p>and after some trial and error i finished it but i can't seem to find a way to show the extended data on the profile </p>... | 2 | 1,434 |
Empty $_GET variable when using mod_rewrite | <p>I want to pass all requests to my site through index.php</p>
<p>So I copied the relevant text from Drupal's .htaccess file into my own .htaccess file, as Drupal passes all requests to index.php</p>
<p>Here's what my .htaccess file looks like -</p>
<pre><code># These rewrite rules force all requests to go through ... | 2 | 2,943 |
Using ng-route with Google-Apps-Script or some means of rendering a partial html view | <p>I am trying to get <code>ng-route</code> working with a google-apps-script web app. I have managed to get basic angular.js functionality working with google-apps-script, but I can't seem to get <code>ng-route</code> to work. I have placed ng-view tags inside a page and have included a separate JavaScript page that ... | 2 | 1,408 |
ASP.NET web services using reference parameters in webmethod | <p>I have an issue when I try to retrieve info through a webmethod. I am using a proxy to call a web service, in that proxy I have an operation which returns data using 'out' parameters. </p>
<p>The server executes the operation succesfully, giving back the parameters properly instanced (I also have checked the soap r... | 2 | 1,733 |
A case when ConfigureAwait(false) causes an error instead of deadlock | <p>Suppose I have written a library which relies on <code>async</code> methods:</p>
<pre><code>namespace MyLibrary1
{
public class ClassFromMyLibrary1
{
public async Task<string> MethodFromMyLibrary1(string key, Func<string, Task<string>> actionToProcessNewValue)
{
... | 2 | 1,676 |
use JsonDeserializer on GSON | <p>I have a model that work with multiple JSON responses. However this a response :</p>
<pre><code>items: [
{
kind: "youtube#playlistItem",
etag: ""fpJ9onbY0Rl_LqYLG6rOCJ9h9N8/jqbcTLu8tYm8b1FXGO14gNZrFG4"",
id: "PLUQ7I1jJqKB4lJarGcpWsP62l7iC06IkE2LDE0BxLe18",
</code></pre>
<p>That conflict with this one (notice the s... | 2 | 1,747 |
AWS SQS SendMessage isn't working with serverless-offline-sqs | <p>I'm working with serverless, porting two functions, one (call it generator) that is currently a long-running node process and the other (call it checker) triggered by cron, so that they both would be lambdas, checker triggered by a schedule, and generator by receiving an SQS notification. I'm also a big fan of bein... | 2 | 2,307 |
How call GetWebResourceUrl() when Page is null ? | <p>I built custom ASP.NET control and it's working fine when I add it manually (drag and drop) or by code to controls in markup.<br>
The custom control, MsgBox, had resources like JavaScript, CSS and images embedded in and the problem appeared when I tried to Render the control in class to return its HTML code, the Pag... | 2 | 1,085 |
why does this query throw an exception? | <p>here is the code:</p>
<pre><code>DataTable ds = new DataTable();
SqlConnection cons = new SqlConnection(strConnString);
SqlDataAdapter ad = new SqlDataAdapter();
SqlCommand cmd = new SqlCommand();
cons.Open();
string strQuery = "SELECT" +
" material," +
" SUM([Amount]) AS [Amount]," +
" Dates = RIGHT... | 2 | 2,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.