title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
http get returns error undefined
<p>I'm trying to do a http get to a backend function to retrive data however when i run the javascript http triggers error instead and error is undefined. I don't understand what is going wrong as i don't get any kind of error.</p> <p><strong>html</strong></p> <pre><code>&lt;body ng-app="postApp" ng-controller="postC...
2
2,929
Android proguard export failure
<p>When I try to export the APK (when using proguard) I get error:</p> <pre><code>[2012-06-30 12:41:06 - ICDB] Proguard returned with error code 1. See console [2012-06-30 12:41:06 - ICDB] Note: there were 29 duplicate class definitions. [2012-06-30 12:41:06 - ICDB] Warning: proguard.ant.MemberSpecificationElement: c...
2
5,535
SVO : Fast - Coner Detector - Installation: Plain CMake (No ROS)
<p>I'm working on a project of drone and I'm having an issue with my Raspberry Pi 2 B. When I'm trying to install <a href="https://github.com/uzh-rpg/rpg_svo/wiki/Installation:-Plain-CMake-(No-ROS)" rel="nofollow">Fast - Corner Detector</a> I get this on screen </p> <pre><code>pi@raspberrypi ~/workspace/fast/build $ ...
2
1,103
Django rest framework filtering "NoneType is not iterable"
<p>I am trying to build a simple REST read only API with django and specifically, django rest framework. The goal here is to allow filtering with two simple fields : name and config.</p> <p>When running that code, I get a "'NoneType' object is not iterable" error. I am wondering if I should put the line : </p> <pre>...
2
2,183
I keep getting ($__ is not allowed) error while validating a perfectly valid object
<p>I using Node.js API's, I also use Joi package to validate my entries , but I keep getting error ($__ is not allowed) while the form I submit seems to be perfectly valid. I have searched a lot but couldn't find any useful solution.</p> <p>Joi version is use is 14.3.1, and the node version is 14.3.1</p> <p>here is t...
2
1,518
SQL Replication with advanced filter on data
<p>I want to replicate my local, internal database (publisher) to a public database (subscriber) with some restrictions: Not all rows/columns/data from the internal database should be replicated/pushed to the public database. Most important, some personal user data must be filtered (they must be excluded in the public ...
2
1,175
Exclude maven sub modules dependencies from top level module
<p>I created a maven parent project with three modules : </p> <ul> <li>data-layer-module</li> <li>data-service-module (uses the data-layer-module)</li> <li>web-module (uses the data-services-module)</li> </ul> <p>Here is a snippet from the parent pom.xml : </p> <pre><code>&lt;groupId&gt;org.mygroup&lt;/groupId&gt;...
2
1,090
Problems with running Android studio emulator on Mac OS X
<p>I successfully installed Android Studio on my Macbook Pro 8 Go memory under OS X El Capitan.I created a simple Hello World app and then I tried to run the app, I was asked to create an AVD and chose Nexus 5 x config with x86. The device was created after downloading the image file and I ran the App. The Gradle proc...
2
4,956
Component render triggered, but DOM not updated
<p>I'm having problems with my first React application. In practice, I have a hierarchy of components (I'm creating a multimedia film gallery) which, upon clicking on a tab (represented by the Movie component) must show the specific description of the single film (SingleMovieDetails). The problem is that the DOM is upd...
2
1,736
Create jstree in rails with json data using the ajax config option for association parent => children
<p>My model is:</p> <pre><code>class Project &lt; ActiveRecord::Base belongs_to :parent, :foreign_key =&gt; :project_id, :class_name =&gt; "Project" has_many :children, :dependent =&gt; :destroy, :class_name =&gt; "Project", :foreign_key =&gt; :project_id </code></pre> <p><a href="http://www.jstree.com/" rel=...
2
1,076
can't predict in mxnet 0.94 for R
<p>I have been able to use nnet and neuralnet to predict values in a conventional backprop network, but have been strugling to do the same with MXNET and R for many reasons.</p> <p>This is the file (simple CSV with headers, columns have been normalized) <a href="https://files.fm/u/cfhf3zka" rel="nofollow noreferrer">h...
2
1,082
undefined reference to `pthread_sigmask@GLIBC_2.32' installing diesel_cli
<p>I'm trying to install the diesel_cli crate using <code>cargo install diesel_cli</code> however I keep getting this error:</p> <pre><code> = note: /usr/bin/ld: /usr/lib/libpq.so: undefined reference to `pthread_sigmask@GLIBC_2.32' collect2: error: ld returned 1 exit status error: aborting due to previous e...
2
1,041
Display uploaded data to MVC view and import selected record to database
<p>I need to import user uploaded CSV data to database. Steps - 1. User upload data to MVC View 2. Display all uploaded data in the View 3. User can select the column name based on imported value 3. Import data based on user selection of the records.</p> <p>To implement this, I created below Model - </p> <...
2
1,057
Extract Preview_Url through spotify API
<p>Well, I intend through the Spotify API to extract the function <code>preview_url</code> but I am not able to get to this function behind the code so I come to ask for your help.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class...
2
2,200
change password in modal popup angularJS
<p>I am quite new in programming with c# and also in using AngularJS. I have a button in a MyProfil form that opens a popup to change the password.</p> <p>This is the button in MyProfile.html</p> <p><code>&lt;a href class="btn btn-info btn-lg" data-ng-click="changePasswordDialog()"&gt;&lt;span class="glyphicon glyphi...
2
2,560
jQuery Validation Plugin not showing custom messages
<p>Tried to create a registration form similar to the <a href="http://jqueryvalidation.org/" rel="nofollow noreferrer">documentation example</a> but can't get it to work. In Chrome Inspector it says "jquery.validate.js:640 Uncaught TypeError: Cannot read property 'call' of undefined" but I can't understand that code. <...
2
3,181
undefined reference to boost::program_options in vowpalwabbit compilation, ubuntu 16.04
<p>I am trying to install <a href="https://github.com/JohnLangford/vowpal_wabbit" rel="nofollow noreferrer">vowpal_wabbit</a> in ubuntu 16.04. <br>Error :</p> <pre><code>./libvw.a(search.o): In function `Search::setup(vw&amp;)': search.cc:(.text+0xa5f8): undefined reference to `boost::program_options::options_descripti...
2
1,822
How to use arrays in this java code so I can output values in order they are assigned to positions ?
<p>I am a java beginner and I am coding a program that gets the name of the item, units of that item, price/unit and the total price. I am trying to put those values in different arrays so I can access them later when I create a sort of a receipt but I don't know how to assign those values in array positions and then a...
2
1,585
Bootstrap Style sheet could not rendering when put on style sheet to the bundleConfig in MVC4
<p>I have tried to put on Bootstrap stylesheet in <code>bundleConfig</code> for mvc4 project but that stylesheet could not rendering when I view my source, so I'm getting design issues. My code following:</p> <pre><code> &lt;link rel=&quot;stylesheet&quot; href=&quot;assets/plugins/bootstrap/css/bootstrap.min.css&quo...
2
1,825
Understanding CompositeDisposable in RxJava + Kotlin
<p>I am using RxJava for form validation for validating username and password. My use-case is pretty simple if both the fields satisfy respective condition then enable the login button else to disable it. following is my code.</p> <pre><code> lateinit var subscriptions: CompositeDisposable private fun validate...
2
1,194
How can I add a table row using an onclick event in a td
<p>Okay, so I have it dropping down another under a username when clicked on, showing the name, email, etc for that user, but it's dropping down the user info for each user under each user name, instead of just below the one I clicked on. </p> <p>Is there a way to tell it to show the next element only, instead of al...
2
1,213
Cargo hangs while starting GlassFish 4.x and uses up 100% CPU
<p>Trying to go with Maven Cargo plugin instead of the Maven GlassFish plugin that doesn't support hot redeploy. Cargo hangs on goals start/run for GlassFish local existing installation and eats up to 100% CPU until I kill it! I tried with a plain text password and then created a password file, same result. Online sear...
2
1,611
Why does Jacoco report show different coverages on consecutive test runs?
<p>I just added JaCoCo code coverage with <code>jacoco-maven-plugin</code> to a Quarkus application using <code>quarkus-junit5</code> and <code>maven-surefire-plugin</code> for unit testing.</p> <p>JaCoco reports are there when I run <code>mvn clean verify</code> but I noticed that when I run them again <strong>I get a...
2
7,073
mongodb IndexError: pop from an empty deque
<p>I'm running a <code>pymongo</code> client and repeatedly getting this error. what does this mean and how can i prevent this?</p> <pre><code>Traceback (most recent call last): File &quot;/home/secondaryvm/.local/lib/python3.6/site-packages/pymongo/pool.py&quot;, line 1278, in _get_socket sock_info = self.socket...
2
1,660
3rd party api call with aws lambda
<p>I am trying to call <code>keepa api</code> within my <code>aws lambda</code> but the api is not getting called. The response is not getting printed. But when I am running it on my <code>local machine</code>, its running fine and returning response.</p> <p><em>code from local machine :</em></p> <pre><code>public clas...
2
1,153
Fuzzywuzzy match multiple columns from different dataframes in Python
<p>Let's say I have the following 3 dataframes:</p> <pre><code>import numpy as np from fuzzywuzzy import fuzz from fuzzywuzzy import process import pandas as pd import io import csv import itertools import xlsxwriter df1 = pd.DataFrame(np.array([ [1010667747, 'Suzhou', 'Suzhou IFS'], [1010667356, 'Shenzhen', ...
2
1,886
iOS Pushing a ViewController not working
<p>I've read a lot of similar questions, and I cannot figure out why the view is not working.. I've spent four hours on this, so I thought it time to ask for help.</p> <p>My main VC code is a UITableView with this method at didSelectRowAtIndexPath:</p> <pre><code>- (void)tableView:(UITableView *)tableView didSelectRo...
2
1,613
Error opening SQL Server Compact Edition 4.0 using Nhibernate
<p>I have the following setup in app.config:</p> <pre><code>&lt;hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" &gt; &lt;session-factory name="Nh.Data"&gt; &lt;property name="connection.provider"&gt; NHibernate.Connection.DriverConnectionProvider &lt;/property&gt; ...
2
1,221
radio button happen only on a button click android studio
<p>Essentially, what I want is that once I click the Translate button, I want to print which radio button is currently checked. What I have right now is that as soon as I click a radio button, it prints it to the textview, but I want it to only happen once I click the Translate button. Any help would be greatly appreci...
2
1,692
JSON PHP data returning null
<p>I am trying to fetch a PHP script using AJAX and return the values as JSON. For some reason, my script fails and I am trying to figure out the problem. When I enter a value from the database into the address bar, like: </p> <pre><code>www.someaddress/post.php?kinaseEntry=aValue </code></pre> <p>I get a JSON output...
2
1,101
Move the output message "On stock" beneath the add to cart button
<p>I am using Wordpress with woocommerce and trying to set up some variable products. But variable products show the "In Stock" messages directly below the input/select field. I want it to be shown below the "Add to cart" button. I am using a child theme for the files, simple.php, variable.php and variation.php. </p> ...
2
1,539
_.template is not a function
<p>I have problem when adding async script tag in my jsp. I use backbone.js and underscore js.</p> <pre><code>&lt;script type="text/javascript" src="js/underscore.js?v=${ss}"&lt;/script&gt; &lt;script type="text/javascript" src="js/underscore.string.min.js?v=${ss}"&gt;&lt;/script&gt; &lt;script type="text/javascript" ...
2
1,039
Re-name the field names in elasticsearch
<p>I am trying to rename the filed names in elastic search and below is sample data, in which i need to change some/all the field names and also nested objects</p> <pre><code>{ "took": 63, "timed_out": false, "_shards": { "total": 5, "successful": 5, "failed": 0 }, "hi...
2
1,035
How to position this in a coordinator layout?
<p>I'm struggling with making a coordinator layout work. Can someone help me with this?</p> <p>I just want a simple layout of :</p> <p>NameLabel, AgeLabel</p> <p>(Below) Profile pic</p> <p>(Below) TextLabel (Below) ImageView</p> <p>instead I get this: and my ageLabel and nameLabel are god knows where. <a href="htt...
2
1,050
Injected JsonWebToken is empty with MicroProfile JWT Auth 1.1 on Payara 5.183
<p>I am having issues with decoding/using/verifying the passed JWT to my Java EE 8 with MicroProfile 2.0.1 backend running on Payara 5.183. The React frontend application passes the JWT token, which is obtained from Keycloak, to the backend as <code>Authorization: Bearer eyXJS...</code> The backend is configured to ver...
2
2,091
Spring Boot 404 on REST API calls only
<h2>Issue:</h2> <p>I'm working on a Spring-Boot Web Application that needs to be deployed on tomcat (WAR file). When running the application as Java (right click application.java file and run as Java in Eclipse) or running via mvnw.cmd spring-boot:run, everything works PERFECTLY (home page shows, all CRUD operations w...
2
9,395
I'm getting a startup error on a BlobStorage Trigger
<p>I'm getting the following error when I create a blob storage triggered function (v2).</p> <blockquote> <p>The function runtime is unable to start. Microsoft.WindowsAzure.Storage: <strong>Requested value 'DELETE,GET,HEAD,MERGE,POST,OPTIONS,PUT,PATCH' was not found.</strong> System.Private.CoreLib: Requested value ...
2
2,189
Color Accent of Android 5.0 not working on pre lollipop devices
<p>I have implemented the color accent for my app in android but somehow that is not reflected properly in pre lollipop devices the tabs highlighted bar stays blue even in some views edittextview selected also stays blue while at some other place it implements coloraccent.</p> <p>here is my styles xml:</p> <pre><code...
2
2,753
using grails with legacy database
<p>I faced with problem of using Grails with legacy Oracle database. I have legacy table TARGETTYPES with primary key text column TARGETTYPECODE: </p> <pre><code>CREATE TABLE "TMS"."TARGETTYPES" ( "TARGETTYPECODE" VARCHAR2(100) NOT NULL ENABLE, "TARGETTYPEDESCR" VARCHAR2(255 CHAR), "ACTIVE" CHAR(1) DE...
2
1,474
Healthcheck not working with exception handler .net core 2.2
<p>I want to use Healthcheck provided by .NetCore 2.2. Its pretty simple to configure. </p> <p>Apart from using HealthCheck custom response, I am also using exceptionhandler to customize my exception in ErrorController.</p> <p>The problem is Healthcheck not working. If any error throws from SQL connection, it goes to...
2
1,477
JPA Batch updates appear to be inserting one update per batch
<p>I am trying to do a batch persist using JPA/EclipseLink 2.4.1 and MSSQL Server using Merlia drivers. Based on the way the database reacts along with the logs (below), it appears that each insert happens within its own batch.</p> <p>I have set the persistence xml up as follows:</p> <pre><code>&lt;persistence xmlns=...
2
2,583
How is it possible to override final writeObject() method in Custom Serialization (Java)
<p>I'm learning about custom serialization and I don't understand how is it possible to overide the 2 methods writeObject() and readObject() because I know these 2 methods are final, and I know that final methods cannot be overriden.</p> <p>writeObject() method from ObjectOutputStream:</p> <pre><code>public final voi...
2
1,095
Vivado HLS class with member of type hls::stream<int>& leads to error: "Constant '' has an unsynthesizable type ..."
<p>I'm trying to see if it is possible to instantiate a class in vivado_hls that has hls::stream&lt;> reference members so that I can directly read/write the stream without having to pass the stream as an argument down the call chain.</p> <p>NOTE: This is in vivado_hls 2018.2 and the top level module for this project ...
2
1,286
Non-Blocking Timer Tasks and Akka Actors
<p><strong>Please note:</strong> Although I'd <em>prefer</em> a solution using Akka's Java API (which is what I'm using), I'm happy with any working solution and can probably figure out how to translate Scala-based answers into Java-land.</p> <hr> <p>I have an Akka app that has many actors, two of which are <code>Fiz...
2
1,215
Java HashSet contains returns false, even with overridden equals() and hashCode()
<p>I initialize the HashSet like this:</p> <pre><code>private HashSet&lt;Rule&gt; ruleTable = new HashSet&lt;Rule&gt;(); </code></pre> <p>The <code>equals()</code> and <code>hashCode()</code> methods of my <code>TcpRule</code> object (sub-class of abstract class <code>Rule</code>) look like this:</p> <pre><code>@Ove...
2
1,411
How to set a timeout for the connections in HTTPConnectionPool when using requests
<p>I have the following script:</p> <pre><code>from requests import Session from time import sleep session = Session() url = 'http://tsetmc.com' r = session.get(url, timeout=5) # 200 OK sleep(200) # if the idle time is greater than ~120 seconds, then the next `session.get` attempt will fail # the following line f...
2
1,707
Setting up the compareTo() method in Java
<p><strong>Please Note:</strong> I created a post earlier that had this question along with several others, but was told that since I was asking so many questions in the same post, it'd be better to break it up into individual questions. So please do not mark this as a duplicate, yes the instructions are the same and y...
2
1,536
React Cyclic dependency importing named export
<p>I have 2 containers, both import a component called <code>PageHeader</code> this is a functional component and is imported / exported as like so....</p> <p>( this happens with any component I import, not just PageHeader )</p> <p><strong>components/PageHeader/PageHeader.jsx</strong></p> <pre><code>import React fro...
2
2,741
How to load XRegExp in Angular2
<p>I want to use XRegExp library in an Angular2 application written in TypeScript.</p> <p>I have installed XRegExp as a node.js module.</p> <p>How do I get <code>var unicodeWord = XRegExp("^\\pL+$");</code> to work in a component method?</p> <p>(How do I reference the JS library in TypeScript? How do I load the node...
2
1,247
Hierarchy Select List using jQuery
<p>I'm trying to make a fairly advanced hierarchy of drop down options. I'm attempting to make it so any options that aren't related to the previous option chosen, will be hidden. For an example, when Device Groups is chosen, the second dropdown will be "Group Details" (from the middle dropdown) by default, and the bo...
2
1,178
Create a trading day calendar from scratch
<p>I just spent a day debugging some R code only to find that the problem I was having was caused by a missing date in the data returned by Yahoo using getSymbol. At the time I write this Yahoo is returning this:</p> <pre><code> QQQ.Open QQQ.High QQQ.Low QQQ.Close QQQ.Volume QQQ.Adjusted 2014-01-03 87.27 ...
2
1,486
Get my facebook public events and show in the my site with Facebook API - SDK
<p>I'd like to show my public events on my site. I use the code below, but it returns an empty object.</p> <p>My app has permissions on: user_events; rsvp_event, read_stream I would not use "offline_access" it will be deprecated permission.</p> <p>I read extensively the api documentation, but it lacks practical examp...
2
1,763
Use VBScript to VLOOKUP values, or evaluate formula?
<p>For processing orders we're using VBScripts to import them into accounting software. There are several suppliers, each with their own file format, mostly CSV and XML. The first step is to extract all the order lines (custom function per supplier), do some additional processing and then write it to the database, whic...
2
1,137
I'm creating a survey using ASP.NET...but how to I create the database to store it?
<p>I've created the survey form but I don't know how to continue doing the database... Can someone each me? Anyway, Here's my code:</p> <pre><code>&lt;tr&gt; &lt;td class="auto-style2"&gt;5) Would you share our website to your friends?&lt;/td&gt; &lt;td&gt; &lt;asp:R...
2
1,107
Undefined reference to error in Portaudio
<p>I'm trying to use PortAudio for audio recording through a microphone. But I get a bunch of errors -</p> <pre><code>Compiling single file... -------- - Filename: C:\Users\Gumm\Downloads\pa_stable_v190600_20161030\portaudio\examples\paex_record.c - Compiler Name: TDM-GCC 4.9.2 64-bit Debug Processing C source file.....
2
1,366
How to install mcrypt extension on mac os x 10.10 yosemite
<p>After updated my Mac OS X to Yosemite 10.10 (14A389),I need to install the Mcrypt extension again. I have to operate in accordance with <a href="http://coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-10-yosemite-development-server/" rel="nofollow">Install mcrypt for php on Mac OSX 10.10 Yosemite for a Dev...
2
1,640
CoreData Sort by relation
<p>My relation is shown on the picture below.</p> <p><a href="https://i.stack.imgur.com/Y9eDk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y9eDk.png" alt="CoreData relation"></a></p> <p>I'd like to sort Events first by those that are in active promotion and then by start date. Promotion is activ...
2
1,066
python code that was working stopped working
<p>this was working fine </p> <p>cv_results = model_selection.cross_val_score(model, X_train, Y_train, cv=kfold, scoring=scoring)</p> <pre><code> import pandas from pandas.plotting import scatter_matrix import matplotlib.pyplot as plt from sklearn import model_selection from sklearn.metrics import ...
2
2,115
Why does my navigation bar disappear from my split view when I rotate on iPhone 6+?
<p><strong>The Problem</strong></p> <p>I have a problem with my split view. It works fine on iPhone and iPad simulators, but on the iPhone 6+ I lose the navigation bar after rotating the device. Here's what happens on the 6+ simulator:</p> <ul> <li>I start the app and it presents a + button in the navigation bar. ...
2
2,076
Don't know how to iterate over supplied "items" in forEach
<p>Hi I got an error when I display details about selected Ski:</p> <p>JSP code:</p> <pre><code> &lt;c:forEach var="skis" items="${skis}"&gt; &lt;div class="container"&gt; &lt;div class="card"&gt; &lt;div class="container-fliud"&gt; &lt;div class="wrapper row"&gt; ...
2
1,560
How to implement "Next" and "Previous" pagination with Angular + NgRx
<p>I am working on Angular project which uses NgRx to cache data. On a Submit button event, I need to fetch 20 records from server and display it. Now, I need to implement pagination(Next and Previous only) for next iteration. When I make a next request, I want to append the response to cache(NgRx store) so that I don'...
2
1,046
Boost.Thread Assertion/Crash on Windows during win32::WaitForSingleObject
<p>I have a rarely occurring issue in my code in which an assertion is triggered, involving the Boost.Thread library. I haven't been able to reproduce this issue using a stand-alone example, and I don't really know what is causing it, so it's hard to provide a sample case. I am hoping that anybody familiar with the int...
2
1,457
Docker, running multiple container (elasticsearch)
<p>I'm running one elasticsearch with</p> <pre><code>version: '3' services: elasticsearch: build: context: . dockerfile: ./compose/elasticsearch/Dockerfile args: - VERSION=${VERSION} - MEM=${MEM} - ELASTICSEARCH_PORT=${ELASTICSEARCH_PORT_DEV} - CLUSTER_NAME=${CLUSTER_NAME_DEV} ...
2
1,655
Android: Ensuring EditText boxes fit horizontally across screen?
<p>I am trying to allign <strong>3 EditText boxes</strong> across the screen horizontally in my activity so that the user is able to enter data.</p> <p>Currently the code that I am implementing doesnt allow the 3 boxes to fit on the screen. Only 1 box and half of the other are visible </p> <p>How can I adjust my curr...
2
1,277
Chart JS Integration
<p>I am using chartjs for the first time .</p> <p>I have tried to test a simple bar chart from chartjs module.But i`m not able to </p> <p>view any chart in my browser .Please let me know if i`m making any mistake.</p> <p>Below i have added the HTML source that i`m using,please go through it . Thank You <div class="s...
2
1,160
AngularJS Next and Previous Array Values
<p><strong>What I'm trying to achieve:</strong><br/> Change state id when the user clicks next or previous buttons. Each state is assigned an id which is within an array, when clicking next or previous the state id needs to know which is the next or previous id within the array.</p> <p><strong>Current Problem:</strong...
2
1,398
Unknown threading issue causes asynchronous Spring controller method to leak db connections
<p>I have a asynchronous Spring MVC controller method (which returns a DeferredResult) that calls a Spring service method that itself use the entityManager in order to retrieve data from a database.</p> <p>Somehow, <strong>the async controller method causes connections to be leaked/abandoned</strong>. Here is the full...
2
4,092
How to create mutually dependent numeric Input in Shiny?
<p>Please find the working code below. Basically, there are 3 numericInputs which allows the user to change anyone at a time and the other 2 should adapt themselves resulting in 1</p> <p><strong>A + B + C = 1</strong> However, since they are interlinked, they seems to be unstable. How can we make it stable and allow t...
2
1,153
C++ Heart, Spades, Clubs, Diamonds characters not showing up
<p>I need to create a card game for a school assignment and I am trying to display the heart, diamonds, spades, and clubs symbols in the output.</p> <p>The teacher told us to use char(3), char(4), etc but the output shows a question mark. I'm using Visual Studio 2017 on Windows 10.</p> <p>I am not too familiar with U...
2
1,414
Run intermediate CA with TLS enabled: connection to root CA refused
<p>So, I am trying to create a fabric network with a root CA, and several intermediate CAs, one for each org, everything with TLS enabled and self signed certs (no cryptogen). After running the root CA, I enroll the admin for it, and create affiliations and register identities for the intermediate CAs using the flag <c...
2
5,471
How to show different span based on radio button selection?
<p>I am trying to display a specific span message based on a radio button selection. In addition, I want to lock the selection as soon as the user made the choice. So in other words:</p> <p><img src="https://i.stack.imgur.com/MoF0k.jpg" alt="enter image description here"></p> <p>I was able to almost achieve this effe...
2
2,983
ODataClient The response payload is a not a valid response payload
<p>Inner Exception 1: DataServiceQueryException: An error occurred while processing this request.</p> <p>Inner Exception 2: InvalidOperationException: The response payload is a not a valid response payload. Please make sure that the top level element is a valid Atom or JSON element or belongs to '<a href="http://docs....
2
1,939
API response in V-Calendar customData attribute
<p>I am trying to use the <code>V-calendar</code> library <a href="https://docs.vcalendar.io/attributes.html#explicit-vs-implicit" rel="nofollow noreferrer">linked here</a> in a Vue component. However, I seem to be having an issue on wrapping my head around how to do this properly. I am using the Google Calendar API to...
2
2,679
Hyperledger fabric Crypto materials
<p>If we see the <strong>crypto-config</strong> folder in <strong>basic-network</strong> of <strong>fabric-sample</strong>, we have various certificate materials with various types:</p> <pre><code>└── example.com β”œβ”€β”€ ca β”‚Β Β  β”œβ”€β”€ 0d46ccf0e9436c1bc3b6e2bf80cdb202c4943604f95c72ee0ff839d3ec300719_sk β”‚Β Β  └── ca.example.com-...
2
1,246
MATLAB - How to make multiple markers moving simultaneous in 3d plot in MATLAB
<p>I am currently working on a project simulating the movement of two spacecraft and a moon (Phobos) around Mars. A MATLAB tool called SPICE gives me an array with the x, y and z distances and I have used these to plot the orbit which works fine. Now I want to get markers for each of the spacecraft and Phobos to see wh...
2
1,626
How to make videojs marker slidable or movable
<p>I want to move my <code>markers</code> whenever it is slided along with the seek. I expect my markers to be exactly <code>slidable</code> as <strong>jqueryui-slider</strong></p> <p><strong>Question:</strong> I want my <code>markers</code>(both) to be as slidable as <code>jqueryui-range</code> slider as shown below...
2
1,771
Microsoft Translator Error: Error retrieving translation
<p>I've been trying make a translator application and I have set up everything accordingly. But still I get this particular error and been trying to solve it for a while.</p> <pre><code>package mobi.the404.appointed; import android.content.Intent; import android.database.Cursor; import android.os.AsyncTask; import an...
2
4,525
TCP retransmission on RST - Different socket behaviour on Windows and Linux?
<p><strong>Summary:</strong> </p> <p>I am <em>guessing</em> that the issue here is something to do with how Windows and Linux handle TCP connections, or sockets, but I have no idea what it is. I'm initiating a TCP connection to a piece of custom hardware that someone else has developed and I am trying to understand it...
2
1,182
Spinner OnItemSelectedListener is not working and spinner not displaying selected item on spinner
<p>Here populating spinner with dynamic values coming from json url. i'm getting values in spinner but their are not visible when selected as showing below.</p> <pre><code> @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.spintoo...
2
2,618
Docker, PHP PDO and the Single MySQL Container (cannot connect by container name)
<p>I've run into an interesting issue where there seems to be a difference between the <code>docker run</code> command and using <code>docker-compose</code>.</p> <p>I have two Docker containers, one is an Apache website with PHP, the other a MySQL. I use the following commands to run the containers:</p> <p>Website:</...
2
1,223
Constant errors when installing ccxt module in python
<p>New to python but not to coding and just getting to grips with installing modules. Seem to get pretty far when installing ccxt with <strong>py -m pip install ccxt</strong> except it keeps throwing an error:</p> <pre><code>ERROR: Command errored out with exit status 1: command: 'C:\Users\samib\AppData\Local\Programs...
2
1,676
Angular Routing issue when navigating programatically, Old component stays in DOM and not destroy
<p><strong>Duplicate Question:</strong> <a href="https://stackoverflow.com/questions/45566128/angular-router-when-navigating-programatically-old-component-stays-in-the-dom">Yes. Here it is.</a></p> <p>As above question is already asked before but not found any useful answers due to question not properly demonstrates t...
2
1,604
cascading dropdowns problem using ajax on asp.net mvc3
<p>cascading dropdowns problem using ajax on asp.net mvc3</p> <p>this is the code in the controller</p> <pre><code>[HttpPost] public ActionResult subcats(int categoriaId) { var subcategorias = anunciorepo.GetSubCategoriaByCat_id(categoriaId).ToList(); return Json(subcategorias, JsonRequestBehavior.AllowGet);...
2
2,042
Arranging code correctly
<p>I have this code here:</p> <pre><code>public class clsDataLayer { // This function saves the personnel data public static bool SavePersonnel(string Database, string FirstName, string LastName, string PayRate, string StartDate, string EndDate) { bool recordS...
2
2,589
NullPointerException while using context in Fragment and Adapter
<p>I have a Navigation Drawer which contains a Fragment. This fragment has a ViewPager which is attached to 2 tabs. Both the tabs are also Fragments.</p> <p>The problem is when I am switching between menu items in Navigation Drawer, 3-4 times everything works fine but then suddenly the app closes. There is no error th...
2
2,758
Change fontweight on button in WPF treeview
<p>I have a templated treeview that is working just as i want, but i have a context menu which allows for a tier 1 node to be marked as "default".</p> <p>I have a datatrigger which reacts to a property in the viewmodel, which should change the fontweight to bold just to visually show that this is the default node. But...
2
1,219
TYPO3: How can I redirect to the translated homepage of a non translated page?
<p>I have created a multilanguage TYPO3 site with the following languages:</p> <ol> <li>german (default)</li> <li>english</li> <li>spanish</li> </ol> <p>There are no translations for all pages. For example I have ten pages in german and ten translated pages in english, but only four translated pages in spanish, but t...
2
1,044
Rounded tag shape with CSS
<p>I am trying to create this shape with html/css:</p> <p><img src="https://i.stack.imgur.com/O4Ksl.png" alt="enter image description here"></p> <p>My requirements are: </p> <ul> <li>body background might change per page, so cannot use alpha masking images</li> <li>the background color is transitionable on hover</li...
2
1,098
Spring Cloud Vault with Spring Boot 2.4+ config not working as expected
<p>I have a Spring Boot project that gets properties and passwords from vault. In Spring Boot 2.4 and later, the team has decided to change way to load config files. Now we need to use Spring Config Data to load this.</p> <p>After reading through docs and examples I setup <a href="https://github.com/pavankjadda/Profile...
2
2,244
jquery select option set value from json
<p>i've code html like : </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-override"><code>$.ajax({ type: "POST", url: "hanca/hanca_crud.php", dataType: 'json', data: { id_hanca: i...
2
1,041
VueJS dynamically update v-html content
<p>I'm trying to update a v-html binding using JS but I seem to be a bit stuck. Could anyone help?</p> <p>The idea of the code is that I have a list of items per page. And I want to create a pagination. Where the pagination numbers represent the <strong><em>current_page</em></strong></p> <p>The problem is that I'm tr...
2
3,120
How to solve vb.net database connection error try catch database?
<p>I try to register a user but when i want to save then the connection goes to 'catch' rather than 'try'. I can debug the program but the data not save in the database..can anyone tell me what is the problem? Thank you.</p> <pre><code>Public Class DTRCLASS Dim mDataPath As String Public Shared DataModule As DTRCLASS ...
2
1,037
Unexpected result from discrete fourier spectrum analysis of sine-sample
<p><a href="http://jvalentino2.tripod.com/dft/index.html" rel="nofollow">http://jvalentino2.tripod.com/dft/index.html</a></p> <p>My code is really just a copy of the above:</p> <pre><code>package it.vigtig.realtime.fourier; import java.io.File; import java.io.IOException; import javax.sound.sampled.AudioFormat; imp...
2
5,045
pip can't find latest versions of a pypi project
<p>I'm trying to install <a href="http://pypi.python.org/pypi/django-crowdsourcing/1.1.21" rel="noreferrer">http://pypi.python.org/pypi/django-crowdsourcing/1.1.21</a> using pip. I'm getting</p> <pre><code>$ pip install django-crowdsourcing==1.1.21 Downloading/unpacking django-crowdsourcing==1.1.21 Could not find a ...
2
1,203
How can edit field of an Expandable Property in the property grid?
<p>I created a custom control with several properties. I add some expandable property to my custom control. Now, I want that user can edit expandable property field in the property grid and new entered values set for their related properties. My expandable property in the property grid is "Required Sign" and has two su...
2
2,043
How to change open ldap defalt port in linux
<p>How to change open ldap default port(389 ) in Linux. We used now default port 389 need to change the port to new one. how can we do that.</p> <pre><code>database mdb maxsize 1073741824 ...
2
1,370
Relative positioning of Graphics2D objects on JPanel
<p>I am making a GUI with Swing and would like to configure the Graphics2D objects with relative positioning. I want to do this in a way that when I resize the window the objects are repainted in a new location relative to the initial anchor position (probably in the top left corner somewhere). I have tried using lay...
2
4,079
Maven + Jersey RESTful API : Internal Server Error from POSTMAN on GET request
<p>I am sending a GET request to my <code>StoryBoardResource</code>, class responsible for generating <code>JSON</code> format data, using POSTMAN app. The associated method consumes nothing but produces <code>Application/JSON</code> data: <code>@Produces(MediaType.APPLICATION_JSON)</code>.</p> <p>I am recieving <stro...
2
2,892
Getting an error using cog discord.py
<p>Hi I'm currently getting an error for a cog which function to prevent spam. This is the error I get </p> <p><code>File "C:\Users\User\Documents\stream\cogs\spamdetect.py", line 19, in on_member_join last_reset = datetime.strptime(self.settings[server.id]["time_since_last_reset"], "%Y-%m-%d %H:%M:%S.%f") TypeEr...
2
2,591
What is the best way to handle custom headers in CefSharp WinForms when dealing with Blazor?
<p>We are currently in the process of creating a web app for our customers that is built with SyncFusion's Blazor components. Parts of this web app are also intended to be used as visualization within our WinForms app, which on its own, works great. In terms of authorization however, there is one big issue we are curre...
2
3,759