title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Tomcat 8 caches static files allthough configured otherwise
<p>My Problem:</p> <p>When I access a static file served from comcat 8 over http the content of the file is cached server sidely. I can rule the following errors out:</p> <ol> <li>it's not my browser cache (disabled, tried different browsers, used wget on cli). Tomcat is returning with http 200 OK</li> <li>It's <a hr...
1
1,822
Cannot read property of undefined when using exported function
<p>I have the following Express app:</p> <p><strong>router.js</strong></p> <pre><code>var express = require('express'); var router = express.Router(); var exch = require("../exchanges/exch")(); router.get('/', function(req, res, next) { exch .getTicker((tick) =&gt; { res.send('get ticker exch: ' + JSON....
1
1,105
Scraping attempts getting 403 error
<p>I am trying to scrape a website and I am getting a 403 Forbidden error no matter what I try:</p> <ol> <li>wget</li> <li>CURL (command line and PHP)</li> <li>Perl WWW::Mechanize</li> <li>PhantomJS</li> </ol> <p>I tried all of the above with and without proxies, changing user-agent, and adding a referrer header. </p...
1
1,246
Error:Execution failed for task :app:transformJackWithJackForDebug - Android?
<p>My <code>gradle</code> is like bellow : </p> <pre><code>apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "26.0.0" defaultConfig { applicationId "xx.xx.xx" minSdkVersion 17 targetSdkVersion 25 versionCode 1 versionName "1.0"...
1
1,291
laravel - make a search form and show result in same page
<p>in my show method in laravel i have a form that i want to submit and show the result on the same page so here is my show method first of all :</p> <pre><code> public function show(Property $property) { $property = Property::with('propertycalendars')-&gt;where('id', $property-&gt;id)-&gt;first(); foreach ($...
1
1,080
how to make navbar fixed
<p>I have done the code for navbar as follows.</p> <pre><code>&lt;div class="header-bottom "&gt; &lt;div class="container"&gt; &lt;nav class="navbar navbar-default"&gt; &lt;!-- Brand and toggle get grouped for better mobile display --&gt; &lt;div class="navbar-header"&gt; ...
1
1,315
How copy or reuse boost::asio::streambuf?
<p>I'm implementing http proxy server with some business logic on boost asio.</p> <p>In point (1) <strong>boost::asio::streambuf response_</strong> contains http headers and part of http body.</p> <p>After parsing with <strong>http_response::parse</strong> buffer <strong>boost::asio::streambuf response_</strong> is e...
1
1,115
React State change is not Rendering
<p>I'm fairly new to React and I'm having an issue where my initial state is rendering, but when the state is changed via AJAX call (successful) is not causing the function to render again. So what happens is the 'getInitialState' sets a static list of categories and 'componentDidMount' gets a new list from my API. The...
1
1,425
Symfony 2 Forms entity Field Type grouping
<p>I'm rendering a form in Symfony2 with data_class mapped to <code>Reservation</code> entity, and this form has a entity field type, of class <code>Service</code>. The relation between <code>Reservation</code> and <code>Service</code> class is many to many. A service then has a <code>ServiceType</code>, which is anoth...
1
1,039
How to read Phone Number in Android from Contacts?
<p>I have tried number of combinations but its showing error when I am finding Phone Number Here is my code:</p> <pre><code>public void readPhoneLookUp(){ Cursor people = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null); //people.moveToFirst(); while(peo...
1
1,781
cumsum in grouped data with dplyr
<p>I have a data frame <code>df</code> (which can be downloaded <a href="https://drive.google.com/file/d/0B0hmj2HaczvnV1l3WHVKWkdwam8/view?usp=sharing" rel="nofollow">here</a>) referred to a register of companies that looks something like this: </p> <pre><code> Provider.ID Local.Authority month year entry ex...
1
3,372
Turn off log4j2 startup debug logging
<p>How do I turn off the debug logging that log4j2 spits out when it initialises itself?</p> <p>These sort of things:</p> <p>2014-10-22 11:16:45,505 DEBUG Building Plugin[name=filter, class=org.apache.logging.log4j.core.filter.ThresholdFilter]. Searching for builder factory method... 2014-10-22 11:16:45,505 DEBUG No bu...
1
2,643
Django CSRF Cookie Not Setting
<p>I have been trying to set up CSRF protection on my POST forms on my django 1.4.3 site and have been getting the 403 CSRF cookie not set error.</p> <p>I believe I have followed the doc in detail, followed advice on many forums but all to no avail. I have stripped back the code as much as possible and the cookie just...
1
1,037
An error occurred when executing the "'cache:clear --no-warmup'"
<p>Capifony cap deploy fails when clearing cache.</p> <p>These are the logs.</p> <p>I have tried many things such as doing app/console cache:clear on server and local.</p> <p>Could you help me?</p> <pre><code>$ cap staging deploy --&gt; Updating code base with remote_cache strategy --&gt; Creating cache directory.....
1
3,720
How to swipe fragment with button click
<p>I have two fragments and a MainActivity class. Everything works fine, but I want to swipe fragments with onClick button. For example if I click the button on fragment A, it will swipe to fragment B. Where do I need to add the code? In MainActivity or in Fragments?</p> <p>A:</p> <pre><code>package com.example.myte...
1
1,586
detail: "CSRF Failed: CSRF token missing or incorrect."
<p>I have used window.CSRF_TOKEN = "{{ csrf_token }}" inside script tag in restaurant_detail.html where my react page for posting review is rendered. I am getting an error, though. In my onSubmit function i have consoled to check if csrf token is passed or not and yes it is.</p> <p>my axios code for posting review is ...
1
1,737
Factory method 'redisConnectionFactory' threw exception; Host name must not be null or empty
<p>i have implemented redis configuration in my spring boot project using gradle. But when i run the project i'm getting the error saying bean initialization failed.</p> <p>Following is my config file.</p> <pre><code>package com.nsdlegov.vsp.config; import org.springframework.beans.factory.annotation.Autowired; impo...
1
3,034
How to login directly in Auth0 without redirect universal login page?
<p>I'm working on Auth0 integration, i successfully integrated Auth0 SDK in my Swift project, but i want to implement direct login from my app with out redirect into Auth0 universal login page. </p> <p>I studied mobile login flow here (<a href="https://auth0.com/docs/flows/concepts/mobile-login-flow" rel="nofollow nor...
1
2,171
gin-gonic mapping request.body values into a struct
<p>Am new to the GO programming language. I am building a web server using the gin-gonic framework. I am trying to map the values from req.body onto a struct.</p> <p>Using Postman I am sending a POST request with the following key/vaules under x-www-form-urlencoded</p> <p>role : admin</p> <p>username : adminusername...
1
1,431
Retrofit: GSON custom deserialization of children list
<p>I am having problems deserializing a custom object using gson. I have this class:</p> <pre><code>public class Content implements java.io.Serializable { private Long id; private int tipo; private String title; private String content; private Integer reward; /** Not-null value. */ private...
1
1,148
Python: numpy.linalg.linalg.LinAlgError: Singular matrix
<p>I am trying to solve a system of differential equations using ode solver in scipy.integrate. My problem is, I am getting 'singular matrix' error when my matrix is not supposed to be singular. The main issue is when I am trying to find the inverse of the matrix B in my code below. In the code below B is 3x3 matrix, A...
1
2,184
Labeling images using Python
<p>I recently stumbled upon this question: <a href="https://stackoverflow.com/questions/54921711/interactive-labeling-of-images-in-jupyter-notebook">Interactive labeling of images in jupyter notebook</a> which I found quite interesting.</p> <p>Having little experience in Python coding, I tried to run the provided code ...
1
2,249
Zuul spring security and adding Additional Params in Request
<p>I am building Microservices using Spring Microservices, I have 2 questions related to that.<br><br>1. I have spring security in the Api Gateway i.e <strong>Zuul server</strong>, now Zuul is not forwarding any request if I have already read the request from the stream once to Authenticate(to get username/pass from PO...
1
1,103
glCreateShader and glCreateProgram return 0 in SDL 2 IOS
<p>I am trying to render a simple Triangle in OpenGL ES 2.x using c++ and SDL 2. But the glCreateShader and glCreatProgram returning zero. Bellow Is the code I am using</p> <pre><code>#include "SDL.h" #include &lt;OpenGLES/ES2/gl.h&gt; #include &lt;OpenGLES/ES2/glext.h&gt; #include &lt;iostream&gt; #include &lt;string...
1
3,700
Implement T9 Dictionary using Trie?
<p>I have to implement the T9 Dictionary .</p> <p>Essentially, when I am pressing any of the 9 keys, it should show me the top 5 words that can be started with that combination of keys.</p> <p>If I type '46', it can give 'hotel' or 'good' depending on whether I intended 'g' or 'h' when I pressed 4.</p> <p>The priori...
1
5,653
How could I get my website content to scroll under my fixed menu bar and disappear under a transparant background?
<p>I have quickly made a simple website to try this out, but now the text does go under the menubar wich is perfect, but I want my header (menubar and title) to be transparant but when I make it transparant you do see the text go under it. Is there a way to fix this so that the background is transparant: rgba(0,0,0,0.5...
1
2,922
How to pass variables to jQuery validation
<p>Building off of <a href="https://stackoverflow.com/questions/1366858/jquery-validation-plugin-custom-method-multiple-parameters"><strong>this SO question</strong></a>, I'm trying to pass two variables to a custom validator method. Using <code>console.log</code> I can see that the upper &amp; lower ranges are define...
1
1,900
Get the correct response from Yahoo SMTP
<p>I try to send a mail via php to an yahoo recipient. Every time I connect to yahoo I get a 250 status code for the recipient address, even if it doesn't exist. I found a script which get the correct status code from yahoo, but I cannot find the differences or mistakes I did in my script. I tried to send different com...
1
1,170
what(): std::bad_alloc - am I out of memory?
<p>My dataset: 500,000 points in 960 dimensions. The size of the file is 1.9 GB (1,922,000,000 bytes).</p> <p>The code works for smaller data sets, but for this it will crash in the same point every time. Here is a minimal example:</p> <pre><code>#include &lt;iostream&gt; #include &lt;vector&gt; template&lt;typename...
1
1,655
Flutter firebase_admob does not display Ad in testdevice
<p>I cannot display my ad unit on my device in test app.</p> <p>I'am using the firebase_admob 0.9.1+1 plugin</p> <p>This is the code I use :</p> <pre><code>import 'package:firebase_admob/firebase_admob.dart'; Future initAppAds() async { //Récupère du coup le bon ID selon si je suis sous IOS ou Android print(get...
1
1,187
spring saml Cannot sign outgoing message as no signing credential is set in the context
<p>I'm trying to use the standard <a href="https://github.com/spring-projects/spring-security-saml" rel="nofollow noreferrer">spring saml example</a> with locally stored SP meta data. After verifying that the example works fine with the auto-generated meta-data, I stored the data locally using the provided instructions...
1
2,374
Displaying values from database in TextView [Android]
<p>I'm trying to display values from a database activity that is created within the application itself. The values were originally parsed from XML files and then stored into the DB. I have done a good amount of searching and tried several methods of reaching a solution but I seem to be stuck. If someone could help me i...
1
5,987
Switch Compat: onCheckedChanged
<p>I'm trying to implement a settings activity in my android app where users can turn on and off the notification mode. To achieve that I'm using Switch Compat. Here is the layout. It's part of my activity layout.</p> <pre><code> &lt;LinearLayout android:layout_width="match_parent" android:layout_height="50dp...
1
2,362
Show all One2Many model field in tree view - Odoo 11.0
<p>I have two model: </p> <pre><code>class Requisition(models.Model): ''' This module is responsible for all of the requisition related operations. ''' _name = 'mir.requisition' _description = 'Mir Requisition' name = fields.Char('Requisition Name', required=True) company_id = fields.Many...
1
1,070
MySQL DELIMITER not working
<p>I've tried a tutorial from <a href="http://explainextended.com/2009/09/29/adjacency-list-vs-nested-sets-mysql/" rel="nofollow">this site</a>, where a sample table gets inserted along with some testing data in a stored procedure. But unfortunately an error message is thrown, saying there's something wrong with the <c...
1
1,253
Javafx 2 : Vertical scrollbar on TableView doesn't Visible, how to fix this?
<p>The TableView has a built-in scroll bar, but why do I not see the vertical scroll bar?</p> <p>Here is my code when I put TableView in a HBox:</p> <pre><code>HBox HBox_tabelDatabase = new HBox(); HBox_tabelDatabase.setAlignment(Pos.TOP_CENTER); HBox_tabelDatabase.setPadding(new Inset...
1
2,118
How to mock error response using MockWebServer in WebClient unit tests
<p>I am writing unit test for a method which uses WebClient to call a REST end point. Using MockWebServer, I am able to cover the code for a success response, but I am unable to find any way to simulate error response so that the related code pertaining to error handling also gets covered in unit tests.</p> <p>source c...
1
1,358
How to run selenium testNG test cases using maven from command line?
<p>While running my test case from maven using following command</p> <pre><code>c:\&gt; mvn test </code></pre> <p>I am getting following result:</p> <pre><code> D:\arpit_maven\mavenProject\build_demo&gt;mvn test [INFO] Scanning for projects... [INFO] [INFO] -----------------------------------------------------------...
1
2,291
Windows Service Installation Error: Error 1001, Unable to get installer types assembly in the C:\Program Files\..\..\xxx.dll assembly.
<p>We're pushing a legacy Windows Service that was originally written for Windows 2003 to a Windows 2012 R2 Server for testing, however when we attempt to run the installer .msi, we are receiving the following error:</p> <pre><code>Error 1001, Unable to get installer types assembly in the C:\Program Files\..\..\xxx....
1
3,616
url.openstream() or urlconnection.getinputstream() raise nullpointerexception on valid URL
<p>For an android application I am trying to change an URL of an XML because of a new server, but the content is the same. I used to do this:</p> <pre><code>InputSource ins = new InputSource(rssUrl.openStream()); </code></pre> <p>This used to work and for a few days still does, while the old URL is available on on th...
1
1,495
Telerik grid updates not working in batch editing
<p>I'm using RadGrid in ASPX, .net 4.5. The data comes up and displays in my grid fine, but I cannot update, insert, or delete records. I have followed the sample version as closely as I can:</p> <p><a href="http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx" rel="nofollow">ht...
1
4,957
Codeigniter 3 show_404 function issue - MY_Exception doesn't load
<p>I'm using Codeigniter 3 and I want to custom the show_404() function.</p> <p>Here is my main controller:</p> <p> <pre><code>class Welcome extends CI_Controller { public function index() { $this-&gt;load-&gt;view('welcome_message'); } public function otherMethod() { show_404(); } ...
1
1,031
How do I close an image open in a picturebox so I can delete it?
<p>at the moment my form has a system where i can save the data in the form to a directory in the applications folder then load it again through a listbox i have set up now i need to add a delete button to delete the data out of the folder the problem is if i opened it it returns an error cannot delete because the fil...
1
2,884
C:\fakepath\*.* in Ajax and jQuery
<p>I am trying to get a document to be able to pass through some AJAX and jQuery and I just keep getting the <code>C:\fakepath\</code> when attempting to pass it through. I know this is a security feature within browsers, but I haven't found a way to get past it, so that it passes the doc.</p> <p>Here's my code, and j...
1
1,315
Java Spring Security AccessDecisionManager: UnanimousBased Failed to parse expression 'ROLE_ADMIN, IS_AUTHENTICATED_FULLY'
<p>I try to make some simple rememmber me authentication with spring security, but I found this error when I try to implement accessDecisionManager. here the error log :</p> <blockquote> <p>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterCh...
1
2,629
Managing static files in Django 3.1
<p>There are some changes in the Django 3.1 update and settings file has bee changes a bit as <code>import os</code> has been dropped. I have created a new project on Django 3.1 and referred to the <a href="https://docs.djangoproject.com/en/3.1/howto/static-files/" rel="nofollow noreferrer">official documentation</a> f...
1
1,943
ASP.NET MVC Entity Framework 6 Navigation Property not saving on SaveChanges() Repository Pattern on Edit
<p>I am having a strange problem where a navigation property is not persisiting on the Update of a page, but is on a Create. I am using a Generic Repository pattern with Entity Framework 6, ASP.NET MVC 5.</p> <p>Here's the skeleton code:</p> <p>My context:</p> <pre><code>public class ApplicationDbContext : IdentityD...
1
2,146
How to bulk generate PDF from HTML templates ready for double-sided printing in PHP?
<p>I've been struggling with this for a while and feel helpless. Prestashop uses <a href="https://github.com/tecnickcom/TCPDF" rel="noreferrer">tcpdf</a> to generate invoices and delivery slips from HTML templates filled using Smarty. We are working on updating the invoice design and found tcpdf to be lacking in CSS su...
1
1,512
Setting ComboBox.DroppedDown = false resets selected item
<p>I have a custom ComboBox that inherits form Forms.ComboBox class. Its DataSource is bound. Its properties are initialized as follows:</p> <pre><code>this.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; this.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; this.DropDownStyle ...
1
1,770
android viewpager inside another viewpager
<p>I'm trying to have a viewpager with few views (let's say 5?) and in one of the views (let's say 3rd view?) I have to put another viewpager so after searching for a while, I've come up with some questions which I couldn't get the exact answer for my situtation. </p> <ul> <li>How is it possible to implement a viewpag...
1
1,061
Android runtime permissions dialog not showing
<p>I am trying to get permissions (from users running versions of Android higher than 6.0) for ACCESS_FINE_LOCATION at runtime. This was unsuccessful in my main app so I tried making a test app with a sole purpose of requesting location permissions from the user.</p> <p>The problem I am having is that no permissions d...
1
1,415
NullPointerException while using dagger-2 to inject preferences in fragment
<p>I am getting error in injecting preferences:</p> <p>Can't figure out the problem.</p> <p>Here are some of the classes i am using :</p> <p>The AppModule class</p> <pre><code> @Module public class AppModule { private final MyApplication app; public AppModule(MyApplication app) { th...
1
5,097
Error connecting to MS SQL Server using pyODBC, unixODBC and FreeTDS (on a Mac)
<p>I am getting an error when trying to connect to a MS SQL server in python, using the pyODBC --> unixODBC --> FreeTDS --> MS SQL stack. I’ve spent a lot of time on this, and there are some great resources if you’ve reached this question with more fundamental problems getting a connection to work <a href="http://www....
1
1,751
Align different font-sizes on same baseline
<p>I want to align texts with different font-sizes on the same baseline.</p> <p>"LOREM IPSUM SED" should be on same line as "sEa tAkImAtA SaNcTuS EsT LoReM Ip" and the same with "SED NONUMY INVIDUNT UT" and "nO SeA TaKiMaTa sAnCtUs eSt"</p> <p>I've already tried this which didn't worked:</p> <p><a href="https://stac...
1
1,325
SQL Parse out multiple substrings
<p>I have a very long and complex string that comes in with New line breaks - I am having a hard time parsing. I need to be able to create a select query with a column for each of the below fields.</p> <p>The ideal would be find the <code>new line break</code> - for each line - go back to the <code>:</code> everything...
1
1,407
XSD class generation nested tables problem
<p>Currently I'm having a problem with generating class files from a xsd with repeating elements. I’m using the custom tool ‘MsDatasetGenerator’ in VS2005 SP1 witch create a typed dataset from the xsd for c#. I’m trying to parse the xml by this schema</p> <pre><code> &lt;?xml version="1.0" encoding=\"utf-8\"?&gt; &...
1
1,441
Keras loss is in negative and accuracy is going down, but predictions are good?
<p>I'm training a model in Keras with Tensorflow-gpu backend. Task is to detect buildings in satellite images. loss is going down(which is good) but in negative direction and accuracy is going down. But good part is, model's predictions are improving. My concern is that why loss is in negative. Moreover, why model is i...
1
1,533
D3 Comparison bar chart
<pre><code>var data = [ {"Month":"2013/12","Name":"John","EC":344}, {"Month":"2013/12","Name":"Smith","EC":249}, {"Month":"2013/12","Name":"Mary","EC":161}, {"Month":"2013/11","Name":"John","EC":128}, {"Month":"2013/11","Name":"Smith","EC":125}, {"Month":"2013/11","Name":"Mary","EC":117} ]...
1
1,803
Bootstrap navbar justify-content tag not working
<p>I need to space my links out across my bootstrap navbar. I have written code for this but I can't seem to figure out why/where it keeps getting overridden. </p> <p>Can anyone help me understand what I'm doing wrong?</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"...
1
1,089
How do I get JBoss to print out exception stack traces in my server.log file?
<p>I’m using JBoss 7.1.3. How do I get JBoss to print out stack traces of exceptions that occur in the application in the $JBOSS_HOME/standalone/log/server.log file? Right now, all my application displays is</p> <pre><code>{"status":"failure","exception":"NullPointerException"} </code></pre> <p>on the web page wher...
1
11,333
winsock recv gives 10014 error
<p>I'll start with the code:</p> <pre><code>typedef std::vector&lt;unsigned char&gt; CharBuf; static const int RCV_BUF_SIZE = 1024; SOCKET m_socket = a connected and working socket; // ... CharBuf buf; // Declare buffer buf.resize(RCV_BUF_SIZE); // resize buffer to 1024 char* p_buf = reinterpret_cast&lt;char*&gt...
1
1,222
How to pass information from an attached behavior to the viewmodel with static events?
<p>I have an attached property to textboxes in my view. The attached property performs validation on the textbox input and performs other chores. The attached property validation routine raises an event which is being watched by the viewmodel. </p> <ol> <li>Does this "violate" MVVM reasoning by having the viewmodel ob...
1
2,197
The parameterized query expects the parameter '@Id', which was not supplied
<p>I am writing a software I use method (parameters.add) but when I am adding data to a database I get the error below:</p> <blockquote> <p>The parameterized query expects the parameter '@Id', which was not supplied.</p> </blockquote> <p>I saw several topic but I can't solve my problem.</p> <p><a href="https://s...
1
1,063
Flutter : INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI
<p>My flutter app isn't install on Android 12 version. I tried with <code>android:exported</code>, but nothing work. It's show me this type of error-</p> <pre><code>✓ Built build/app/outputs/flutter-apk/app-debug.apk. Installing build/app/outputs/flutter-apk/app.apk... 3.3s Error: ADB exited with exit ...
1
2,066
General error: 1364 Field 'user_id' doesn't have a default value (SQL: insert into `products`..... in laravel-8
<p>i am facing a problem is SQLSTATE[HY000]: General error: 1364 Field 'user_id' doesn't have a default value (SQL: insert into <code>products</code> (<code>name</code>, <code>detail</code>, <code>color</code>, <code>logo</code>, <code>image</code>, <code>updated_at</code>, <code>created_at</code>) values (fdsf, sdf, #...
1
3,880
How to fix a view in collapsing toolbar while scrolling?
<p>I want to implement collapsing toolbar with two <code>EditText</code> in it, for the purpose of user input. I'm following <a href="https://stackoverflow.com/questions/32425357/toolbar-with-edittext-material-design">this</a> answer. The answer gives perfect solution for adding two <code>EditText</code> into the colla...
1
2,517
Get `chisq.test()$p.value` for several groups using `dplyr::group_by()`
<p>I'm trying to conduct a chi square test on several groups <em>within the dplyr frame</em>. The problem is, <code>group_by() %&gt;% summarise()</code> doesn't seem to do trick.</p> <p>Simulated data (same structure as problematic data, but random, so p.values should be high)</p> <pre><code>set.seed(1) data.frame(p...
1
1,438
Sustainsys SAML2 Sample for ASP.NET Core WebAPI without Identity
<p>Does anyone have a working sample for Sustainsys Saml2 library for ASP.NET Core WebAPI only project (no Mvc) and what's more important without ASP Identity? The sample provided on github strongly relies on MVC and SignInManager which I do not need nor want to use.</p> <p>I added Saml2 authentication and at first it...
1
1,834
Nginx internal dns resolve issue
<p>I have nginx container in AWS that does reverse proxy for my website e.g. <a href="https://example.com" rel="nofollow noreferrer">https://example.com</a>. I have backend services that automatically register in local DNS - aws.local (this is done by AWS ECS Auto-Discovery). The problem I have is that nginx is only re...
1
1,183
MySQL starting error (Can't start server: can't create PID file: No such fie or directory)
<p>I'm having trouble starting <code>mysql</code> and <code>mysqld</code>.</p> <p>Output of <code>sudo service mysql start</code> command is <code>mysql : Unrecognized service</code></p> <p>Same way output of <code>sudo service mysqld start</code> is nothing</p> <p>When I tried <code>sudo service mysqld status</code...
1
1,250
4 bit 4x20 LCD with Atmega32
<p>I'm having trouble with my 4x20 LCD display. I've been looking at a numerous guides and code snippets the last few days, but nothing seems to help. The problem is that the displays shows nothing.</p> <p>When I compile it on my computer and print it all on my screen, everything seems to be ok.</p> <p>I would apprec...
1
2,458
Ground Truth Image to One Hot Encoded Array (Semantic Segmentation)
<p>I'm creating my own Dataset for People and Street Segmentation. Below, you see a labled Ground Truth (GT) Image. </p> <p><a href="https://i.stack.imgur.com/esYY4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/esYY4.png" alt="Ground Truth"></a></p> <p>In the past I did a simple Regression betwee...
1
1,471
MyBatis Performance of bulk operator
<p>I have used MyBatis-spring + Java. I need to insert >10000 records into table in one transaction. To do it, I have used a mapper:</p> <pre><code>&lt;insert id="saveBulk" parameterType="List"&gt; INSERT INTO "quote" ("id", "mi_id", "timestamp", "open", "close", "low", "high", "volume", "period") VALUES &...
1
1,290
Upgrading from SpringBoot 2.6.6 to 2.6.7 changed behaviour with validation ( javax.validation.ConstraintDeclarationException: HV000151 )
<p>Just recently upgraded from SpringBoot 2.6.6 to 2.6.7, but despite the GAV for hibernate-validator has not changed <em>( both releases use <code>org.hibernate.validator:hibernate-validator:6.2.3.Final</code> and <code>jakarta.validation:jakarta.validation-api:2.0.2</code> )</em>, I noticed a change in behaviour usin...
1
3,376
Error during Preparing Wheel Metadata when installing Scipy on Alpine Docker
<p>I'm new to Docker, and have been trying to wrap a python script in a container, but I'm getting an error during the installation of scipy 0.17.0 (as a dependency for scikit-learn) on my docked alpine instance that I've not been able to find an answer to.</p> <p>My Dockerfile:</p> <pre><code>FROM python:alpine COPY...
1
4,436
Pdfkit Html to pdf not working as expected in python
<p>I am converting a html file to pdf using pdfkit library in python. </p> <p>This is what my page looks like in html </p> <p><a href="https://i.stack.imgur.com/dgpIn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dgpIn.png" alt="enter image description here"></a></p> <p>And this is what I get af...
1
3,799
Errors When Making a Stripe Charge using Custom cURL and PHP Code
<p>After doing 3 days of solid research and trying my absoloute best to resolve the issue in hand, Ive become to the point of no success and have had to realise maybe this is something i should have not tried to attempt! On Failing with my own personal attempts i have had to turn to you experts in need of some advice a...
1
1,516
jQuery Scripts not working after ajax call
<p>I have a partial view that has a table that is using jQuery DataTables.</p> <pre><code>@model IEnumerable&lt;DSPFuelLog.Models.code_AutoMake&gt; &lt;h3&gt;Auto Make List&lt;/h3&gt; &lt;table id="Auto-Make-Table" class="table table-bordered table-striped"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th ...
1
3,692
Can't build APK with Android Studio when using ProGuard minification
<p>I have a problem generating the APKs of my applications.</p> <p>If i debug/run the app, it works normally. But when I try to generate the corresponding APK, Android Studio gives me a lot of warnings and one error:</p> <pre><code>Note: there were 159 duplicate class definitions. (http://proguard.sourceforge.net/m...
1
3,525
Issue with gridComplete in jqGrid
<p>I have a <strong>jQGrid</strong> which has loadComplete and gridComplete parameters. The grid is currently working fine.</p> <p>Now I had to do a generic change where I need to add one more event which works on the events of the pager.</p> <p>I added the below code to bind one more event with <strong>gridComplete<...
1
1,052
kSoap2 unexpected type(position:END_DOCUMENT null@1:1 in java.io InputStreamReader@414fae00)
<p>I'm trying to get a response from the method <code>Querypage</code>. An example of a request can be found <a href="http://www.labs.skanetrafiken.se/v2.2/querypage.asp?inpPointFr=lund&amp;inpPointTo=ystad" rel="nofollow">here</a> and the "documentation" can be found <a href="http://www.labs.skanetrafiken.se/v2.2/GetS...
1
1,200
Cannot replace default JSON contract resolver in ASP.Core 3
<p>After creating basic Web API project based on .NET Core 3.0 framework, all API responses were coming in camel case. I installed SwashBuckle Swagger + built-in JSON serializer from System.Text.Json, specifically, to display enums as strings, everything worked as before. Then, I decided to switch to NSwag + NewtonSoft...
1
1,355
Accept Strings and XML data with RestController
<p>I want to create REST Server which accepts XML requests and plain text into different controllers. I tried to implement this:</p> <pre><code>@SpringBootApplication public class Application extends SpringBootServletInitializer implements WebMvcConfigurer { @Override protected SpringApplicationBuilder config...
1
2,757
Cannot load sidepanel.jelly in Jenkins plugin
<p>Im getting the next error when I try to load "sidepanel.jelly" in my Jenkins plugin action jelly file. </p> <p><code> javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: file:/C:/Documents%20and%20Settings/Tecnoy/Escritorio/vats_eclipse/src/main/resources/org/jenkinsci/plugins/vats/VatsBuild...
1
1,042
AdaptiveCards - How to customize the color and fonts for Actions on iOS?
<p>I'm using v1.2.6 of the AdaptiveCard SDK. Using this example card that uses the 3 available styles for actions (default, positive, destructive), it seems I'm only able to control the background color of the <code>positive</code> card, and it's not very intuitive how it's working. </p> <p>The card i'm using: </p> ...
1
6,541
How to make gulp's fs.readFileSync get content first then use its data on gulp.src?
<p>I am trying to concatenate all plugins js files into one, by referencing an external file named config.php which stores all of the required scripts.</p> <p>However while doing that, encountered a problem as gulp.src function will run first with the empty array "arrayFiles" before fs.readFile finish reading the file...
1
1,061
How to generate the Kerberos Security Token?
<p>I am working on a web based application and my application supports SSO (We use Kerberos protocol. The Active Directory mapping and SPN configurations are all done). </p> <p>We are using GWT 2.4 for the GUI part and we support standalone and SSO modes for the application (We can switch between these modes using a u...
1
3,711
Encoder with <t:loop> component in Tapestry
<p>I have one Page which is displaying details of some Client. I am using <code>t:loop</code> to display some data. In <code>t:loop</code> I am just passing <code>source</code> and <code>value</code>. So far so good, my page is working fine. But when I try to submit the Page it suddenly give me the Exception.</p> <blo...
1
1,054
Catching A Browser Close Event
<p>Hello Seniors (As I am new to Web Based Applications), I was keen to implement or catching browser closing event. Yes! I did it and successfully implemented it by using javascript{see code below} but I have implemented it in a web page without MasterPage. Now, as I am trying to implement it in a webpage with MASTERP...
1
1,073
Multiple Programs in WebGL doesn't work
<p>I'm trying to use multiple shader programs in webgl but continue to get issues.</p> <p>It seems that if i have a different number of vertex shader attributes in programs then i get nothing rendered with no errors. Is there some constraint that means that programs have to have the same number of attributes? Do i nee...
1
7,578
using checkbox to filter contacts and get phone number
<p>I am working on an app that works similar to the default text messaging app on all Android phones. My problem is selecting more than one user to send an SMS message to. What I have done so far is stored my contacts as listview items with check boxes. Now I just need to get the phone numbers from the selected conta...
1
3,103
Object of class Illuminate\Routing\Redirector could not be converted to string. srmklive/laravel-paypal
<p>I am currently working on a paypal checkout using paypal and <a href="https://github.com/srmklive/laravel-paypal" rel="nofollow noreferrer">https://github.com/srmklive/laravel-paypal</a>. I'm using the express checkout which I modified it a little bit to fit the requirements of the my project. During testing it is w...
1
1,932
Jira Gadget: Simple call to REST resource doesn't work
<p>Im trying to write a gadget inside a jira plugin and I've encountered some problems even with a very simple one. Currently I'm trying to get a response from a simple java class i wrote. Following code is located in my gadget.xml: <pre><code> Hello Gadget&lt;br /&gt; #requireResource("com.atlassian.gadg...
1
3,244
C#: Start process as the "real" administrator with hard coded privileges
<p>I need to install different setups silently with administrator privileges. I have to hard code the privileges because the users don´t know username and password to install the setups themselfes.</p> <p>I have tried two different approaches.</p> <ol> <li>ProcessStartInfo with UserName, Password and UseShellExecute ...
1
1,626
Validation accuracy stagnates while training accuracy improves
<p>I'm pretty new to deep learning so I'm sorry if I'm missing something obvious.</p> <p>I am currently training a CNN with a dataset I put together. When training, the training accuracy behaves pretty normal and improves, reaching >99% accuracy. My validation accuracy starts off at about 75% and fluctuates around 81%...
1
2,504
Spring MVC resource versioning adding the ResourceUrlEncodingFilter
<p>I'm trying to get the new resource versioning from 4.1 working. From </p> <p><a href="http://spring.io/blog/2014/07/24/spring-framework-4-1-handling-static-web-resources" rel="nofollow">http://spring.io/blog/2014/07/24/spring-framework-4-1-handling-static-web-resources</a></p> <p>and</p> <p><a href="http://docs.s...
1
1,068
Create a paragraph using multiple textviews using xml layout
<p>This is my layout file by which I want to create a paragraph. i.e. The next sentence should start from the point where the previous ends up. But this ain't happen and the next sentence is coming in the next line. Actually I am going by an xml approach because each sentence is associated with database and has to be s...
1
2,799
using something like group_concat on clickhouse
<p>I'm trying to get a result of</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>types</th> <th>name</th> </tr> </thead> <tbody> <tr> <td>fruit</td> <td>banana, apple, guaba, strawberry</td> </tr> </tbody> </table> </div> <p>from a table with database like</p> <p>table: fruits</p> <div clas...
1
1,133
Unable to find Torch header files using nvcc
<p>I'm trying to call some CUDA code from luaJIT (Torch) but I'm running into compiling issues. nvcc seems unable to find my Torch header files. I have CUDA 6.5 and gcc 4.4.7.</p> <pre><code>nvcc -o im2col -I/deep/u/ibello/torch/include im2col.cu In file included from /deep/u/ibello/torch/include/THC/THC.h:4, ...
1
1,044
BUILD FAILED hybris ant clean all
<p>I have error build failed at the ant clean all on me local. the JAVA_HOME is <code>C:\Progra~1\Java\jdk1.8.0_151</code> and hybris version is commerce-6.3.0.8 </p> <pre class="lang-none prettyprint-override"><code>BUILD FAILED C:\hybris\commerce-6.3.0.8\hybris\bin\platform\build.xml:20: The following error occurre...
1
1,851