title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
openapi-generator doesn't generate response headers for Java client using Spring Webclient | <p>We have an openapi file (validated) that declares response headers, e.g.</p>
<pre><code> "responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"properties": {
... | 2 | 1,372 |
AdvancedDataGrid dataFields refresh | <p>I have a problem with an AdvancedDataGrid; i want the fields Actual and Estimate to change with the timer function but it doesn't work. It works only by refreshing all the adg with the collapse of the tree structure. I want that if the tree is "exploded" only actual and estimate fields refresh. Sorry for my uncorrec... | 2 | 1,664 |
Not able to parallel test of two cucumber feature file | <p>i'm new in cucumber design and i trying to parallel test two feature file(login.feature, registration.feature, both are inside src/test/java/features), but not able run both parallel. can anyone help me out?</p>
<p>Here is my pom.xml</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<... | 2 | 7,437 |
Facebook JavaScript API - Login failure in Chrome | <p>The below code is from the official Facebook developer pages, and works in FF and Safari, and sometimes in Chrome — but more often not in Chrome.</p>
<p>On Snow Leopard with the latest Chrome, I click the login button and see a little flicker as the FB login dialog opens and closes. If, in my FB account, I remove a... | 2 | 1,430 |
find number in string with regex + xslt | <p>I'm trying to fetch the amount of comments out of the description of the following XML code:</p>
<pre><code> <item>
<title>War Stats</title>
<link>http://www.reddit.com/r/politics/comments/r3p6r/war_stats/</link>
<guid isPermaLink="true">http://www.redd... | 2 | 1,466 |
XSLT / XPath replace specific nodes | <p>I have the following structure of xml data to transform:</p>
<pre><code><root>
<main1>
<page>
<text-body>
<title>K1</title>
<subtitle>Text</subtitle>
</text-body>
... | 2 | 5,570 |
Postman error in Monitoring error: JSONError: Unexpected token u in JSON at position 0 | <p>The Postman runner works just fine but the monitor keeps throwing an error after few successful runs. When I look at the server logs, it does not show any error in the run and returns successful JSON response.
<a href="https://i.stack.imgur.com/xuKMS.jpg" rel="nofollow noreferrer">Postman Monitor Console Log errror... | 2 | 8,104 |
Bidirectional JavaFX Binding is destroyed by unrelated code | <p><strong>Update: Found a easier way to reproduce buggy behavior</strong></p>
<p>When I setup a bidirectional JavaFX binding between three variables this binding is sometimes destroyed by unrelated code.</p>
<p>I created a small example program which is capable of reproducing the buggy behavior:</p>
<p>In the MainC... | 2 | 1,756 |
Each thread should run for 10 minutes and then interrupt the thread if the time is over | <p>I am trying to make an <code>ExecutorService</code> implementation that can be provided with a timeout or interrupt for each thread.</p>
<p>In my below example, suppose I am spawning <code>2 threads</code> (in actual scenario, this number will be high), then I need to make sure <code>each thread</code> should be ru... | 2 | 1,212 |
Trigger Angular Material toast on state change | <p>I'm currently developing an <a href="https://angularjs.org/" rel="nofollow noreferrer">AngularJS</a> web application, which is setup and using <a href="https://material.angularjs.org/latest/demo/toast" rel="nofollow noreferrer">Angular Material</a>.</p>
<p>I have implemented the <a href="https://material.angularjs.... | 2 | 3,494 |
R replace observations with data from another dataset | <p>I apologize in advance for the verboseness. </p>
<p>My dataset contains MID dyads (1800-2001) for example</p>
<pre><code>id cc1 year cap1
4114 2 1994 .
4113 2 1994 .
4113 2 1996 .
</code></pre>
<p>The other dataset has cap1 score for each county-code year (from 1800-2001) for example </p>
<pre><code>... | 2 | 2,305 |
load intent inside shouldOverrideUrlLoading | <p>I have a real big problem implementing loading a intent from inside <code>shouldOverrideUrlLoading</code>.
I believe it has to do with the way i have structured my application.</p>
<p>Here is my code:
<strong>VariablesStorage.class</strong></p>
<pre><code>public class VariablesStorage
{
private static VariablesSto... | 2 | 1,482 |
k8s: forwarding from public VIP to clusterIP with iptables | <p>I'm trying to understand in depth how forwarding from publicly exposed load-balancer's layer-2 VIPs to services' cluster-IPs works. I've read a high-level overview how <a href="https://metallb.universe.tf/concepts/layer2/" rel="nofollow noreferrer">MetalLB does it</a> and I've tried to replicate it manually by setti... | 2 | 1,159 |
HWIOAuthBundle error non-existent service "session" | <p>I've looked at everywhare but could not find a reference to this:</p>
<p>After configuring the HWIOAuthBundle and get a few problems solved I got the following error:</p>
<pre><code> ( ! ) Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException' with message 'The s... | 2 | 1,823 |
WCF service and oauth + jQuery ajax call | <p>I was trying to implement oauth authentication in my WCF service. I am doing the service call from jQuery ajax. I have tried the following code in CORS enabled service with POST verb. But here I am getting pa["oauth_consumer_key"] as always null. Please see the code and help me to find out the issue.</p>
<p>Using P... | 2 | 4,141 |
In Spring Data, How can I hint the hibernate affected table for native update sql | <p>In spring data</p>
<pre><code>@Modifying
@Query(value = "update user set name='abc'", nativeQuery = true)
int changeThemAll();
</code></pre>
<p>Due to <code>Modifying</code>, this query will invalid all cache, because hibernate can not find out the affected entities.
in <code>org.hibernate.action.internal.BulkOper... | 2 | 1,934 |
ReactJs - access nested array in JSON response | <p>JSON Response:</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>Bars: [
{
id: "7",
name: "The Trestle Inn",
address: "339 N 11th St",
city: "Philadelphia",
state: "PA",
category: "Dive Bar",
checkIn: [
{
wait: ... | 2 | 1,278 |
Error 400 when parsing variable to GraphQL query | <p>I have a basic react component that should render some dynamic data from my graphql db via react-apollo. I try to pass a content id to my query like so:</p>
<pre><code>export default withApollo(graphql(
gql`
query ($postId: String!){
blogPost (where: { id: $postId }){
... | 2 | 1,586 |
Android JDBC MySQL get tables by Database | <p>I got through some tutorials, but all of them are very simple an can not be used in my solution.</p>
<p>I have connection to a database via JDBC MySQL.</p>
<pre><code>public class ConnCore extends AsyncTask<Void, Void, Boolean> {
Activity activity;
Context context;
public ConnCore(Context context, A... | 2 | 2,248 |
vault templating paths in policies results in permission denied | <p>I'm trying to create a policy that allows for users to access a portion of the secret hierarchy based on their usernames. Rather than having a different policy for each user, I want to have one templated policy. I think this should work, but I keep getting permission denied errors. If I remove the templating and ... | 2 | 1,715 |
RecyclerView not showing items inside view pager fragment | <p>When I click the chat tab the recycler view doesn't show the items inside the fragment. It was working before when I had it in a activity. Now it doesnt seem to show the items when running the app. I have tried debugging and the likes and still can't seem to find out the problem. Any help will be grateful, thanks!</... | 2 | 3,123 |
How to export a react component with 'withRouter' and 'withTranslation' | <p>I'm trying to export a class component with <code>withRouter</code> and <code>withTranslation</code>. For localization, I'm using <code>i18next</code> and <code>react-i18next</code>. This works fine in react with javascript. But I'm using react with typescript.</p>
<p>Component -</p>
<pre><code>class TableSorter ext... | 2 | 1,447 |
Invalid syntax when evaluating expressions | <p>I'm getting </p>
<blockquote>
<p>SyntaxError: invalid syntax </p>
</blockquote>
<p>and </p>
<blockquote>
<p>SyntaxError: invalid token</p>
</blockquote>
<p>when evaluating a boolean expression in a dictionary:</p>
<p><strong>Test Case</strong></p>
<pre><code>test_expressions = ['(3530A338A58 OR 3533A500H65... | 2 | 3,008 |
No converter found for return value of type | <blockquote>
<p><strong>Model</strong> class (getters and setters ommitted for brevity)</p>
</blockquote>
<pre><code>import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDate;
@Entity
@Table(name = "users")
public class User implements Serializable {
@Id
@GeneratedValue
@Column(name = "i... | 2 | 2,205 |
How to resolve java.lang.IndexOutOfBoundsException in android? | <p>I have created an expandable list view,On clicking the child element another activity is started.But this happens only for the first three child elements in first parent group, when i click on the subsequent child elements the app crashes an the error </p>
<blockquote>
<p>java.lang.IndexOutOfBounds:Invalid index ... | 2 | 2,673 |
How to implement subscribe model for RabbitMQ and requeue unprocessed messages | <p>I have a Windows service that consumes messages from a remotely hosted RabbitMQ queue.</p>
<p>I have working code that wakes up at fixed intervals and connects to the queue and takes messages and processes them (mostly persists them to a database). This is a simplified version of what works for me:</p>
<pre><code>... | 2 | 1,370 |
Elements declared in HTML after Custom Element do not render | <p><strong>REAL BIG EDIT:</strong>
Hello there, this is edit number 3. This one is here on top because, well, it changes the fundamental question of this post.
In short, I tried putting <code>h1</code>s both before and after a single Custom Element. Well... only what I have putted <em>before</em> rendered. So, I guess ... | 2 | 2,318 |
FineUploader : add upload buttons in template markup | <p>With the fineUploader jQuery plugin, I am trying to add several upload buttons in my fineUploader template.</p>
<p>But it seems that the <code>extraButtons</code> option does not look for elements inside the template, only inside the DOM, before the template is being added to the DOM.</p>
<p><a href="http://docs.f... | 2 | 1,860 |
React Native Elements Handle selected ListItem style | <p>I post again my question with some code modifications.
I need to set a specific style for the selected item in my List of items.
My code is :</p>
<pre><code> constructor (props) {
super(props)
this.state = {
selectedIndex: null
}
}
<FlatList
data={this.state.data}
... | 2 | 1,139 |
SL4/WCF not working with HTTPS | <p>I need help trying to get an SL4/WCF app using https on a production server. The app works perfect using http, and with https it’ll load the xap and display the login page, but I get a generic error when trying to authenticate or make wcf calls:</p>
<p>“An exception occurred during the operation, making the result... | 2 | 1,511 |
@Valid annotation isn't working on my DTO | <p>I have this REST API that receives a single Student in order to be saved. The problem that i have in the controller is that i want to receive this json and converted to my StudentDTO but also being validated at the same time using the @Valid annotation but it doesn't work, it just keeps going.</p>
<p>This is my con... | 2 | 1,087 |
Menu is not displaying in Magento Admin | <p>I want to add a section in magento dashboard for a particular user type with user add/edit/delete facility, so I have created a module for magento Admin but it not diplay in Admin menu.
I want to display association menu in magento admin.</p>
<p>Although it is displaying in system -> config ->advance to give enable... | 2 | 2,955 |
WPF: Problem with TreeView databinding | <p>I have a tree view defined as follows:</p>
<pre><code><HierarchicalDataTemplate x:Key="ChildTemplate"
ItemsSource="{Binding Children}">
<TextBlock Text="{Binding TagName, Mode=OneWay}"/>
</HierarchicalDataTemplate>
<HierarchicalDataTemplate x:Key="NavigationHeaderT... | 2 | 1,774 |
MainActivity has leaked ServiceConnection when onDestroy runs in android. How to prevent this error? | <p>I'm making an android wear application, and the main functionality is in the <code>ConnectionService</code> class, which basically handles communication with a websocket. My problem is, that if I quit the application with the buttons on my android wear device, there is no error, everything runs as expected in the ba... | 2 | 1,688 |
Mocking file operations in a unit test using junit and PowerMockito doesn't work | <p>I'm trying to write unit test for a static method which contains file operations. I'm using junit and PowerMockito. The method to be test is converting a csv file to bean list. Since this is unit test I mock a method call which is inside of our method. But the following error is occuring,</p>
<blockquote>
<p>org... | 2 | 2,083 |
Google Vision API text detection Python example uses project: "google.com:cloudsdktool" and not my own project | <p>I am working on the python example for Cloud Vision API from <a href="https://github.com/GoogleCloudPlatform/cloud-vision/tree/master/python/text" rel="nofollow">github repo</a>.</p>
<p>I have already setup the project and activated the service account with its key. I have also called the <code>gcloud auth</code> a... | 2 | 1,668 |
How to use mpc8xxx_gpio.c device driver | <p>I am new to device driver development. I am trying to access the GPIO of MPC837xERDB eval board.</p>
<p>I have upgraded its kernel to <code>linux-2.6.28.9</code> and enable support for <code>mpc8xxx_gpio.c</code>. On boot up, it successfully detect two <code>gpio</code> controllers.</p>
<p>Now my question is how I... | 2 | 1,224 |
Issue after upgrading spring-data-jpa 1.9.4 to 1.10.2 | <p>I'm facing some bean creation issue after upgrading spring-data-jpa from 1.9.4 to 1.10.2 in wildfly server. Following is my exception stacktrace</p>
<pre><code>Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jpaContext': Unsatisfied dependency expressed th... | 2 | 2,133 |
Android Calling Async task inside another Async task? | <p>I'm trying to do an Async call inside of another Async method I am not sure if I'm doing this correctly, or if it's even possible. First call gets the partID's from the database, and then second gets the lotNumbers of the part's. My reasoning for doing this is to be able to loop through and put the associated partLo... | 2 | 4,386 |
Settings canvas object properties by id in Kivy | <p>I am relatively new to Kivy and need to do something seemingly simple, but which nonetheless eludes me: I need to set a line's position according to code. The issue I am having is that my current code is structured around a future need to support gestures and has inherited some complexity due to being based on the ... | 2 | 7,160 |
Make a global variable from onchange event | <p>How do I make a global variable from an onchange event so that every functions in my js page can use the value from the variable? Can anyone provide a working sample code. </p>
<p><code>onchange="showTable()"</code> event from <strong>main.php</strong>:</p>
<pre><code><?php
$linkID = @ mysql_connect("localh... | 2 | 1,496 |
Error creating bean with name 'empController': Injection of autowired dependencies failed | <p><strong>Controller Class</strong></p>
<pre><code>package com.beas.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springfra... | 2 | 4,428 |
Node.js + Express - Callbacks returning undefined before Complete | <p>so I'm having real trouble with this - been stuck on it for weeks.</p>
<p>My first function queries a MySQL database and returns a response, which then gets processed in my second function.</p>
<p>The issue is that JS is single-threaded and I can't figure out how to get it to run in the order I want:</p>
<ol>
<li... | 2 | 1,918 |
jest enzyme routing how to test component with Route? | <p>I have an <code>App</code> component which contains main route definitions:</p>
<pre><code>export default function App() {
return (
<div>
<MuiThemeProvider theme={createMuiTheme(theme)}>
<Route
path={`${URL_PREFIX}/:module?/:id?`}
render={() => (<div>
... | 2 | 1,183 |
R crashes when establishing a database connection via RPostgreSQL | <p>I am using R version noted below:</p>
<pre><code>R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain c... | 2 | 1,204 |
Unhandled error in debug adapter: SyntaxError: Unexpected token L in JSON at position 0 | <p>Error:</p>
<pre><code>******** Unhandled error in debug adapter: SyntaxError: Unexpected token L in JSON at position 0
at JSON.parse (<anonymous>)
at Pipe.channel.onread (internal/child_process.js:471:28)
</code></pre>
<p>Hello Guys,</p>
<p>I had found a lot of other issues/questions like this here... | 2 | 1,867 |
DHXScheduler Save/Get Custom Lightbox Fields | <p>I am using DHXScheduler in my JSP application for exam timetabling. I added a fully custom lightbox with my own fields with information about exams. </p>
<p>This is my EventsManager class which saves, creates and gets events. It extends the class DHXEventsManager. </p>
<pre><code>public class EventsManager extends... | 2 | 2,754 |
Travis CI Deploy to AWS ElasticBeanstalk | <p><strong>Hi I currently try to deploy my react app to AWS Elastic Bean Stalk through travis CI. But it fail.. what should I change in my travis yml??</strong></p>
<p>Here is my .travis.yml</p>
<pre><code>sudo: required
services:
- docker
before_install:
- docker build -t sample:dev .
script:
- docker run -e ... | 2 | 2,179 |
Manifest merger failed with multiple errors | <p>I have the following error when I has converted the Android Build Tools Version to 26.0.0 and add the metadata for:</p>
<ol>
<li>Facebook .</li>
<li>Fabric.</li>
</ol>
<blockquote>
<p>compile 'com.google.android.gms:play-services:11.0.4'</p>
</blockquote>
<p>The Error Is :</p>
<blockquote>
<p>Error:Execution... | 2 | 5,559 |
Increase the gap between the buttons of Alert Box in Flex 3 | <p>I am trying to put a gap of 20-30px between the Alert box buttons(YES and NO).
but unable to find such styling point in flex. I have tried horizontal-gap, and also padding, but in vain.</p>
<p>Below is the sample code i am trying, which i found when browsing through sites.</p>
<pre><code> <?xml version="1.0" en... | 2 | 1,348 |
git push heroku master w/ error: failed to push some refs to 'git@heroku.com:floating-woodland-1763.git' | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/3747002/heroku-rails-3-and-sqlite3">Heroku, Rails 3 and sqlite3</a> </p>
</blockquote>
<p>I am using a Centos 6.3 OS and I am having trouble pushing my application to heroku using Git</p>
<p>What I type in:</p... | 2 | 1,563 |
Problems with mouseover and mouseout | <p>I have grid of images, when the mouse is over any given image a larger version of that image becomes an overlay coming the original grid image with a slightly larger version.</p>
<p>Mouseover works great. but mouseout and mouseleave both cause the larger image to instantly fadeout. Whether the mouse is over or not.... | 2 | 1,222 |
/build/include\caffe/proto/caffe.pb.h(4356): error : expected an identifier while compiling Caffe on windows | <p>I am trying to port <a href="https://github.com/weiliu89/caffe/tree/ssd" rel="nofollow noreferrer">Caffe-SSD</a> to Windows. I moved all the new files (layers and whatnot) to the <a href="https://github.com/BVLC/caffe/tree/windows" rel="nofollow noreferrer">Caffe's latest windows branch</a> and used the Caffe_SSD <c... | 2 | 11,661 |
Connect Refused Kubernetes Service Discovery Using Spring Boot | <p>I am trying to setup up a simple discovery using spring-boot-kubernetes but every time getting connection refused when trying to excess a service by service name.</p>
<p>I have included:</p>
<pre><code> <dependency>
<groupId>org.springframework.cloud</groupId>
<a... | 2 | 1,770 |
Ant Build failing with correct class path and database properties | <pre><code>Buildfile: C:\MyJava\workspace\springapp\build.xml
build:
buildtests:
dropTables:
[echo] DROP TABLES USING: org.hsqldb.jdbcDriver jdbc:hsqldb:hsql//localhost
[sql] Executing commands
[sql] 1 of 1 SQL statements executed successfully
createTables:
[echo] CREATE TABLES USING: org.hsqldb.j... | 2 | 3,855 |
Chart images fail to appear in Word document with RMarkdown when saving to a new location | <p>I am creating a complex RMarkdown document that includes some charts made in ggplot2. I run the following code:</p>
<pre><code>rmarkdown::render(input="U:/John/R/aa_app/output/template.Rmd")
</code></pre>
<p>This creates a Word document called "template.docx" with no problem.</p>
<p>However, I need to be able to ... | 2 | 1,224 |
SIgnalR not running over Https | <p>Problem is, in production the webapp is delivered over HTTPS and the signalR hub is delivered over classic HTTP (e.g. <a href="http://test.com/SignalRNotificationH" rel="nofollow">http://test.com/SignalRNotificationH</a>) and, as expected, most modern browser throw a mixed-content warning and refuse to talk to signa... | 2 | 1,295 |
azurerm terraform scaleset with internal load balancer | <p>I have been looking for a proper way to terraform my internal vm scale set with a INTERNAL load balancer that is not exposed to internet with a public IP. however, the nodes should have access to internet to download some packages that are located in github.</p>
<p>I am facing this issue where the load balancer is d... | 2 | 7,699 |
Django formset : Save multiple forms from formset | <p>I spent several days in order to <code>add dynamically forms to formset</code> and I find a way to do that. But I have a little issue with <code>forms saving</code> because it just saves the first form and not all forms from formset.</p>
<p>This is my formset :</p>
<pre><code>DocumentFormSets = inlineformset_facto... | 2 | 2,236 |
Elasticsearch won't match on exact string | <p>I have created a category index with completion suggesting and it is not behaving how I would expect.</p>
<pre><code>curl -XPUT http://localhost:9200/categories/category/_mapping -d '{
"category" : {
"properties" : {
"categoryDescription" : {
"type" : "string"
},
... | 2 | 3,350 |
C++ virtual variable in inheritance class hierarchy | <p>I have a template class hierarchy,</p>
<pre><code> ___ Class (ClassA)
|
AbstractClass_____
|___ Class (ClassB)
</code></pre>
<p>in classA and ClassB, I have a const NullPosition of a templated type, which is different in ClassA and ClassB. In class classA and... | 2 | 1,485 |
c# How to make window follow another? | <p>Question: How do i get notepad to follow my main window when it moves? Running the program yields two windows side by side, yet as soon as the mainwindow moves by click-hold, notepad is left in the dust, im trying to find a way for notepad to follow it but keep it tightly next to the main window as how the program r... | 2 | 1,041 |
Switch case is not working in Reactjs | <p>I have a json and I'm trying to display a form using the json data. I tried to display the indexes using the Switch case, so based on the html control type the index will be displayed. Below is my code</p>
<pre><code>var React = require('react');
var ReactDOM = require('react-dom');
var DATA = {
"indexList": [{
... | 2 | 2,972 |
Springboot won't load my HTML page using Thymeleaf | <p>Already been on these topics but haven't worked for me:</p>
<ol>
<li><a href="https://stackoverflow.com/questions/31876389/how-to-serve-static-html-content-page-in-spring-boot">Topic1</a> No <code>@EnableWebMvc</code> annotation in my project</li>
</ol>
<p>This is the dependency i used for <code>Thymeleaf</code>:<... | 2 | 2,184 |
Create a Session ID from User ID and time differences | <p>I have a similar question to this (<a href="https://stackoverflow.com/questions/21947995/create-a-sessionid-based-on-userid-and-differences-in-timestamp">Create a "sessionID" based on "userID" and differences in "timeStamp"</a>) on creating a 'Session ID'; though my specifications are s... | 2 | 1,792 |
3DES base64 encrypt in java and c# | <p>I have the next java file:</p>
<pre><code>import java.io.UnsupportedEncodingException;
import java.security.AlgorithmParameters;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Base64;
public class CifrarAyuda_j... | 2 | 2,390 |
C# How to call FieldInfo.SetValue function without manual type conversion | <p>I want to save data-class instance to database and load it from database. and I want to generate sql command automatically. so, I think that I need to use dictionary< string, string> so that solve it.</p>
<p>refer my old question : <a href="https://stackoverflow.com/questions/34942178/how-to-convert-2d-string-ar... | 2 | 5,914 |
How can i get currently authenticated user Principal with spring security and Redis in spring boot application | <p>I want to secure my services with spring security and Json Web Token(JWT) and also store logged users in redis with spring session.So when user sends login request i authenticate user and i send generated token back like below:</p>
<pre><code>public ResponseEntity<?> createAuthenticationToken(@RequestBody J... | 2 | 3,519 |
Sorting numbers in textfield in ElasticSearch | <p>I've a issue when sorting a field in ElasticSearch with text and numbers in the same field.</p>
<p>My pattern is something like this: <em>"text/number/year/text"</em>.</p>
<p>I'm trying sort by this, but I get something like this:</p>
<pre><code>"hits": [
{
"_source": {
... | 2 | 1,514 |
multi level groupby ramda js | <p>I have been trying to use group by at multiple levels so that the object is grouped by tag, folder and report keys. I was able to groupby at single level but could not proceed further.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true">
<div class="snippet-code">
<pre... | 2 | 1,095 |
Python IRC bot for Twitch receiving two messages in one output | <p>So I've created a Chat bot for Twitch.tv which has been working fine for multiple months until a couple of days ago. Either the chat is too flooded or twitch changed something with the way they send messages. Either way, in every message received I add a new line when printing into the console and some messages do n... | 2 | 1,050 |
How to implement Finnhub.io stock API into a React App | <p>I am new to web development and I am having trouble in a project I am creating. The end goal of this app is to make a stock reference app where the user can look up information about different stocks. It would end up being similar to the "Stocks" app on iOS devices. However, at this point I am still strugg... | 2 | 1,505 |
prestashop/nginx multi lang "no input file specified" on index.php request | <p>we have prestashop running smoothly on nginx; </p>
<p>when we enabled multi language on the site, the below issue is faced:</p>
<p>usually after payment, without multi lang, you are redirected back to this page:
<a href="http://www.domain.com/index.php?controller=order-confirmation&id_cart=21293&id_module=... | 2 | 3,747 |
How to stroke text when drawing it with DrawString function in GDI+? | <p>There's a GDI's <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/dd145124(v=vs.85).aspx" rel="nofollow noreferrer">StrokePath</a> API that can allow to simulate "stroking" of text using <a href="http://ntcoder.com/bab/2008/03/21/drawing-outlined-text/" rel="nofollow noreferrer">this method</a>. I'll... | 2 | 1,112 |
Spring Social authentication filter not working, how can I debug it? | <p>I'm having trouble with Spring SocialAuthenticationFilter, I see that it's loaded in the filter chain but when I access "/auth/facebook?code=...", it does not process that input.</p>
<p>Here is my WebSecurityConfig's configure method:</p>
<pre><code>@Override
protected void configure(HttpSecurity http) throws Exce... | 2 | 4,612 |
Bootstrap modal close event does not trigger a close of modal overlay | <p>I have a scenario where I want to add new requests and edit existing requests using a single component and regenerating it with correct data when required. Following is the code for base component.</p>
<p><strong>home-component.html</strong> </p>
<pre><code><ul class="request-list">
<li class="request-... | 2 | 1,714 |
Web Crypto API using Microsoft Edge (38.14393.0.0) | <p>I am using the Web Crypto API (<a href="https://www.w3.org/TR/WebCryptoAPI/" rel="nofollow noreferrer">https://www.w3.org/TR/WebCryptoAPI/</a>) successfully on Chrome (since first Web Crypto support), Firefox (since first Web Crypto support) and even on Safari TP (10.2) with support of a WebCrypto Liner a pollyfill ... | 2 | 1,274 |
Is memory latency affected by CPU frequency? Is it a result of memory power management by the memory controller? | <p>I basically need some help to explain/confirm some experimental results.</p>
<p><strong>Basic Theory</strong></p>
<p>A common idea expressed in papers on DVFS is that execution times have on-chip and off-chip components. On-chip components of execution time scale linearly with CPU frequency whereas the off-chip co... | 2 | 1,228 |
Using ndk-stack to read crash logs | <p>I'm using <strong>cocos2d-x v2.1.4</strong> and I have this crash log from <code>logcat</code>:</p>
<pre><code>I/DEBUG ( 6575): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 6575): Build fingerprint: 'acer/a500_ww_gen1/picasso:4.0.3/IML74K/1333032611:user/release-keys'
I/DEBUG ( 65... | 2 | 1,648 |
HTTP Status 401 - Authentication Failed: Error decoding incoming SAML message | <p>I did everything as described in <a href="http://docs.spring.io/spring-security-saml/docs/1.0.0.RELEASE/reference/html/chapter-quick-start.html" rel="nofollow noreferrer">spring saml tutorial</a>, except that I add </p>
<pre><code><dependency>
<groupId>xml-apis</groupId>
<artifactId&g... | 2 | 2,492 |
IEnumerable not enumerating in foreach | <p>I'm encountering a problem with one of my <code>IEnumerable</code>'s that I haven't seen before.</p>
<p>I have a collection:</p>
<pre><code>IEnumerable<IDependency> dependencies;
</code></pre>
<p>that's being used in a <code>foreach</code> loop.</p>
<pre><code>foreach (var dependency in dependencies)
</cod... | 2 | 1,664 |
Rock - Paper - Scissors: How to add scoring? | <p>(I tried all kind of combinations and looked it up but most solutions were in other languages like python.)</p>
<p>I'm trying to make a simple rock paper scissors game in C# with ASP.NET MVC where I can add the score. The first one (computer vs. player) to reach score 10 wins the game. I also want to add to option ... | 2 | 2,636 |
How to export amChart with transparent background? | <p>How to export amChart with transparent background?</p>
<p>Here, is my code:</p>
<pre><code>var chartData = [{
"country": "USA",
"visits": 4025,
"color": "#FF0F00"
}, {
"country": "China",
"visits": 1882,
"color": "#FF6600"
}, {
"country": "Japan",
... | 2 | 3,226 |
How to reduce the time complexity to find the longest zigzag sequence? | <p>I was trying to solve the problem zig zag sequences on top coder.The time complexity of my code is O(n*n). How can I reduce it to O(n) or O(nlog (n))
Pseudo code or explanation of the algorithm will be really helpful to me
Here is the problem statement.
Problem Statement</p>
<blockquote>
<p>A sequence of numbers ... | 2 | 1,161 |
Cannot create file or directory in documents folder in iOS sandbox | <p>I'm making a game on <code>iPad</code> (v10.2.1) with <code>Xcode(version 8.2.1)</code> and while I'm trying to save some data in documents folder in the sandbox, I found that all ways I tried failed: <code>createDirectory</code> and <code>createFile(using file manager)</code>, and writeToUrl(using <code>NSData</cod... | 2 | 1,273 |
UIActivityViewController Crash on presentViewController: | <p>It's fine last week,but today when i use the use the UIActivtyViewController ,the uiactivityviewcontroller crash.</p>
<pre><code>- (void)shareThePrice
{
UIImage *screenShotImg = [self screenShot];
NSString *string = NSLocalizedString(@"shareString", nil);
UIActivityViewController *activityViewControlle... | 2 | 1,038 |
Unable to translate a term inside a Qweb condition in Odoo 10. How to do this? | <p>I'm trying to translate a specific term which appears in a Qweb report, but its behaviour is very different from expected.</p>
<p>If you install the standard <code>sale</code> module in Odoo 10, take a look at its sale order report (XML ID = <code>report_saleorder_document</code>). Its code is in the <code>report</... | 2 | 3,174 |
How to stop touch event from falling through on overlay object in web browser for mobile device? | <p>Clicking SetCore will add events to objects. If you touch inside <code>core</code> it will start timer and display length of time touched <code>coreText</code>. When you touch on the black box <code>coreObject</code> the touch falls through to <code>core</code>.</p>
<pre><code><!doctype html>
<html>
<... | 2 | 1,201 |
jQuery draggable isn't draggable after being dropped | <p>I have two divs, each containing a list of quantities and items. The items are draggable and the div containing the items is droppable. If an item of the same name appears in that div, that item cannot be dropped on that div again. Eventually I will be controlling the number of items that are moved, but I'm just try... | 2 | 1,586 |
Binding web devexpress dxDataGrid and angular $scope | <p>I am having issues with binding $scope in angular and dxDataGrid. </p>
<p>I'm using devexpress libarary dx.all.js which provides the dxDataGrid with all its goodies. I have a div dx-data-grid and trying to pass the selected row data onto the $scope. </p>
<p>Chrome debuger says that it is null both my $scope.ticke... | 2 | 1,757 |
how to resume my audio in Android? | <p>I have to implemented application for creating audio with the status of pause and resume and when my app as an when start the audio is start and when I press the back button on the emulator the audio music is on pause state but When my activity comes back to the foreground from the stopped state my audio music is no... | 2 | 2,618 |
SqlDependency fires immediately | <p>I want to use <code>SqlDependency</code> to get notifications when some datas are changed by others applications using the database.</p>
<pre><code>public class DatabaseChangesNotification : IDisposable
{
private static string chaineDeConnexion = ConfigurationManager.ConnectionStrings["TransfertContext"].Connec... | 2 | 3,616 |
Number of possible arrays such that adjacent elements have difference atmost 1 | <p>You know that an array has n integers between 1 and m, and the difference between two adjacent values is at most 1.</p>
<p>Given a description of the array where some values may be unknown, your task is to count the number of arrays that match the description.</p>
<p>The unknown values will be given as "0" in the ... | 2 | 1,051 |
Add column to data frame using transform and calling a function -- an annoying weird behavior | <p><em><strong>Reproducible and simplified example to explain my core question</em></strong>:</p>
<p>I start with a function having a vector as argument, say: <code>fVec <- function(v) v[1]*v[2]</code>.</p>
<p>For comparison purposes, a direct way with explicit parameters to express the same function is: <code>fDi... | 2 | 1,279 |
Webpack dev server compiling successfully but reload or rebuild not working | <p>I'm having problems with the webpack dev server, when running the script npm run frontend (during development) to see changes in the browser, it shows it successfully compiles.
<a href="https://i.stack.imgur.com/X5OTz.png" rel="nofollow noreferrer">terminal compiled successfully</a></p>
<p>However, the automatic bui... | 2 | 2,171 |
How to add functionality to the Agenda component in react-native-calendars | <p>I am building a simple to do list and calendar/agenda to teach myself javascript and react native. I found react-native-calendars and I really like how it looks.</p>
<p><strong>What my question is, is actually adding an item to the agenda via user input.</strong></p>
<p>Please refer to the code below:</p>
<p>I creat... | 2 | 1,584 |
Cannot access a disposed object (on DbContext) error on Hangfire recurrent job in ABP | <p>I am trying to set up a Hangfire recurrent job on application startup, but in the job if I try to use an injected <code>IRepository</code>, it gives an error related to the DbContext when it tries to execute a query:</p>
<pre><code>System.ObjectDisposedException
Cannot access a disposed object. A common cause of th... | 2 | 1,168 |
Swagger produces too long constant for default response body | <p>Basically, it's required to generate valid <em>Java8</em> models and controller class with <em>swagger-codegen-maven-plugin</em>.</p>
<p>I have swagger 2.0 spec, containing model definitions with array fields, where each array item in turn contains it's own array of models.</p>
<p>Swagger successfully generates ja... | 2 | 1,256 |
Unable to remote build xcode project | <p>I have a jenkins server connecting to a remote mac mini through ssh to execute a shell script that has to build an IPA from a unity project.</p>
<p>When the shell script is executed locally on the mac mini everything goes fine. But when the shell script is ran from jenkins (with the exact same parameter and the sam... | 2 | 1,350 |
Erlang: gen_tcp:recv() does not receive packet sent from client? | <p>I modified <a href="https://stackoverflow.com/questions/15602314/erlang-server-cursor-hangs-on-command-line">this server</a> to use <code>gen_tcp:recv</code> inorder to limit the number of bytes for a packet to 50. I commented out the line <code>inet:setopts(Socket, [{active, once}]),</code> because <code>gen_tcp:re... | 2 | 1,345 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.