title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Invalid drawable tag vector
<p>Im trying to use vector drawables on pre lollipop devices. I did all as instructed <a href="https://medium.com/@chrisbanes/appcompat-v23-2-age-of-the-vectors-91cbafa87c88#.1n8w97x4a">here</a> but i still get this crash. </p> <p><strong><em>build.gradle:</em></strong></p> <pre><code>buildscript { repositories ...
0
1,042
ReactJs this.props.history.push() is not working
<p>i'm new with Reactjs and for some reasons i'm working on a small application for learning purpose.</p> <p>I'm using react-router-dom to navigate between different components.</p> <p>The idea is when the user click to logout, the App Component should detect the logout event inside the componentWillUpdate() method a...
0
1,638
SFTP Java - Pipe closed Jsch Exception
<p>I am working on a java method to copy files from one location to another remote location. My code is as follows. I tried using <strong>jsch 0.1.42 &amp; 0.1.50 &amp; 0.1.54</strong></p> <pre><code> public static void processFiles(ArrayList&lt;String&gt; FilesToBeCopied, String destFilePath) throws IOException ...
0
8,899
"Declaration of xxx outside of class is not definition" error
<p>This is the error:</p> <blockquote> <p>error: declaration of 'DataStream::DataStream()' outside of class is not definition [ fpermissive]| <br /> ||=== Build finished: 1 errors, 0 warnings (0 minutes, 0 seconds) ===|</p> </blockquote> <p>This is the main.cpp file:</p> <pre><code>#include &lt;iostream&gt; #include &l...
0
1,769
C# Too many connections in MySQL
<p>I try to run <code>SELECT</code> on a table in <code>MySql</code> and i get this error:</p> <pre><code> Server Error in '/MyApp' Application. Too many connections Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about...
0
1,418
How to load the JSON data into the Jqgrid?
<p>I use the following way to load the data into the jqgrid.I cant able to load the <strong>json data</strong> into the jqgrid.So i parse the json to array like <strong>mydata=json.parse(jsondata)</strong>.Then i bind this <strong><em>array(mydata)</em></strong> into jqgrid using <strong>datatype: "local"</strong>.my q...
0
1,450
Javascript - Replace lots of if statements
<p>I have a a couple of different radio buttons which return an ethnicity and a gender. The script runs inside an internal application so rather than returning "boy", "girl" or "both" I get back 7707330, 7707333, and 7707336. Similar from the ethnicity radio button. </p> <p>I then need to validate data based on the co...
0
1,026
How can I summarize all the resource limits and requests in Kubernetes with kubectl?
<p>I started using <a href="https://k8slens.dev/" rel="noreferrer">Lens</a> and noticed that it gives you some warnings when the pods inside the nodes have limits higher than the actual capacity. <a href="https://i.stack.imgur.com/Txase.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Txase.png" alt="A graphic...
0
1,049
How to create onSubmit with Material-UI
<p>So I'm fairly new to node.js / react / material-ui. I've been following a guide to try setting up a website and have been getting on pretty well. I decided to include material-ui for snazzy components (not part of the guide) and then got stuck because I can't seem to fire custom functions whilst using a themed ui.</...
0
1,468
Spring Security custom filter
<p>I would like to customize Spring security 3.0.5 and change login URL to be /login instead of /j_spring_security_check. </p> <p>What I need to do, is to to allow login to "/" directory and to secure "/admin/report.html" page.</p> <p>First of All I create my own filter using tutorial and Spring Security source code:...
0
2,167
"npx react-native start" hangs
<h3>Introduction</h3> <p>I'm attempting to create a Hello World style program with React Native 0.63.3 using the <a href="http://reactnative.dev/docs/environment-setup" rel="noreferrer">official docs</a>. I'm using to the <em>React Native CLI Quickstart</em> path in that link.</p> <h3>What I've Done So Far</h3> <p>I've...
0
1,742
How to detach firestore listener
<p>I'm new to FireStore. I created a ListenerRegistration to update my Recycler View. I know my implementation may not be perfect, but every time my activity got destroyed, my app throws an error on the lines that are inside this Listener. I don't know why, but mt registration.remove() is not working before on destroy ...
0
3,596
How to pass multiple widgets as children in Flutter?
<p>I recently started learning Flutter and have been going through the documentation. I am working on this small app, where the screen has a button on the top of the screen and a list below it. </p> <p>Whenever I pass <code>RaisedButton</code> with a <code>ListView</code> widget into another <code>ListView</code> or <...
0
1,889
Python pandas calculate rolling stock beta using rolling apply to groupby object in vectorized fashion
<p>I have a large data frame, df, containing 4 columns:</p> <pre><code> id period ret_1m mkt_ret_1m 131146 CAN00WG0 199609 -0.1538 0.047104 133530 CAN00WG0 199610 -0.0455 -0.014143 135913 CAN00WG0 199611 0.0000 0.040926 138334 CAN00WG0 199612 0...
0
2,823
JJWT library and handle expiration ExpiredJWTException
<p>The problem is that my application throws an exception when the token expires and I can't catch that exception. I want to catch that exception and do another thing. Tried commenting exception statement on catch block but no progress.</p> <p>Exception: </p> <pre><code> **03-Mar-2018 18:32:16.941 SEVERE [http-nio-12...
0
2,195
The model item passed into the dictionary is of type, but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable
<p>Here is what I am trying to do. I don't understand Why it is expecting an enumerable list.</p> <p>AddressController.cs</p> <pre><code>public ActionResult ShowAddresses(List&lt;Address&gt; ReturnAddresses) { ShowAddressViewModel viewModel = new ShowAddressViewModel() { Addresses = ReturnAddresses, Messa...
0
2,310
Drop down menu with on click toggle
<p>I am attempting to create a drop down menu which activates on click rather than on hover. So far I have the on click working with a little javascript, but whilst the sub menus show well and if another menu is clicked other submenus hide, I can't work out how to hide a sub menu if its parent is clicked.</p> <p>EG in...
0
1,132
At least one security token in the message could not be validated
<p><strong>Server config:</strong></p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;system.serviceModel&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="ServiceCredentialsBehavior"&gt; &lt;serviceCredentials&gt; &lt;servic...
0
1,796
Android layouts and automatic image resizing
<p>My android app currently has two layouts for its splash screen, portrait and landscape. Both use the same simple format - an image that's the same size as the screen, held in a simple linear layout:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.co...
0
1,705
How to ignore one file in a grunt-watch task?
<pre><code>'use strict'; module.exports = function(grunt) { // Project Configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { jade: { files: ['app/views/**'], options: { livereload: true, ...
0
1,991
Django: HttpResponseRedirect not working
<p>I'm new at Python/Django and programming overall. I need help with HttpResponseRedirect as it's not working from my Login view. It does work from my main Views file but not the way I want it.</p> <p>Instead of redirecting to the desired page ('/'), I only see this on the same page: </p> <blockquote> <p>Content-T...
0
1,520
Edit/Update a pod's yaml
<p>I have a pod in my EKS cluster and I want to edit it's yaml so that I can change the <code>read-only</code> values from <code>true</code> to <code>false</code> . This way I want to be able to make changes to the pod's system/image (haven't exactly figured out it's name) that at the moment it <code>read-only file sys...
0
3,296
Java Mail : No provider for smtp
<p>I am using JavaMail to do a simple application that sends an email when it finds some files in a directory. I managed to get it worked from Eclipse. I Run the application and it sent the email with no errors.</p> <p>But, when I created the jar, and executed it, it fails in the email sending part. It gives this exce...
0
1,295
jQuery UI Sortable add class of dragged object to placeholder to determine size
<p>I'm using sortable to sort different width x height divs and masonry to clean up the empty spaces. How can I pass the class of the div being sorted to the placeholder so they are the same size?</p> <p>The boxes have the classes single-single, double-single, etc... to determine the size.</p> <h3>Example: <a href="ht...
0
1,472
LoadModule weblogic_module */lib/mod_wl_24.so
<p>I have a problem with Apache/2.4.17 (Unix) and the weblogic module (plugin) mod_wl_24.so</p> <p>For this project I have used the httpd_vhosts.conf configuration under the extra directory (that I have enabled before in httpd.conf whith "Include conf/extra/httpd-vhosts.conf") and i have keep the default configuration...
0
2,253
json: cannot unmarshal string into Go value of type map[string]interface {}
<p>I have been working on converting some crypto pool software over to work with an incompatible coin. I believe I have it all about done. But this error keeps popping up and I just can't seem to figure out what the problem is. Here is my code:</p> <pre><code>type GetBalanceReply struct { Unspent string `json:"uns...
0
1,340
Spark SQL error AnalysisException: cannot resolve column_name
<p>This is a common error in Spark SQL, I tried all other answers but no differences! I want to read the following small CSV file from HDFS (or even local filesystem).</p> <pre><code>+----+-----------+----------+-------------------+-----------+------+------+------+------+------+ | id| first_name| last_name| ...
0
1,222
Testing with Karma and RequireJS with files in CommonJS syntax
<p>I'm working on an angular application that is written in CommonJS syntax and uses a grunt task with the grunt-contrib-requirejs task to translate the source files to AMD format and compile it into one output file. My goal is to make Karma work with RequireJS and keep my source files and spec files in CommonJS syntax...
0
1,349
start new activity on click listview item
<p>I need some help to do a simple click in a listview item to open a new Activity. I have seen a lot of this kinda issues here but no one helped me.</p> <pre><code>public class CustomListView extends ListActivity { private EfficientAdapter adap; ... @Override public void onCreate(Bundle savedInstanc...
0
1,024
Android Location Manager, Get GPS location ,if no GPS then get to Network Provider location
<p>I am using this given below code to get locations:</p> <pre><code>public Location getLocation() { try { mLocationManager = (LocationManager) context.getSystemService(LOCATION_SERVICE); // getting GPS status boolean isGPSEnabled = mLocationManager.isProviderEnabled(Locati...
0
1,221
SQL "Incorrect syntax near the keyword 'from'."
<p>I'm new to SQL and visual studio etc. but I've changed something that isn't allowing me to login to my application. Whenever I press the login button I get this error </p> <blockquote> <p>Incorrect syntax near the keyword 'from'</p> </blockquote> <p>Here is where the source may be;</p> <pre><code>using System; ...
0
1,294
java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map
<p>I am trying to deploy my first rest application using jersey <strong>2.17</strong>. </p> <p>I am using Maven, GlassFish 3.1.2.2 for deployment.</p> <p>Application runs in eclipse (tomcat), but gives following error when deploying through glassfish admin console.</p> <pre><code>Error occurred during deployment: Ex...
0
1,781
C++ error: expected primary-expression before ‘}’ token
<p>I am trying to call a void function named <code>correction(original,corrected)</code> and when I'm trying to compile it I get a couple of errors of the form: </p> <blockquote> <p>error: expected primary-expression before ‘}’ token</p> </blockquote> <p>Here is my complete code:</p> <pre><code> #include &lt;cs...
0
1,902
How can I calculate the difference between two times that are in 24 hour format?
<p>In JavaScript, how can I calculate the difference between two times that are in 24 hour format?</p> <p>Example: Get how many hours elapsed from <code>08:00:00</code> to <code>23:00:00</code>.</p> <p>Below I'm getting two time values from two dropdown menus and trying to calculate the difference in hours between th...
0
1,946
Submit selection from Bootstrap dropdown menu to $_POST
<p>My goal is to submit the users selection from a bootstrap dropdown menu to $_POST. As I was researching this question I came across this (<a href="https://stackoverflow.com/questions/15649001/bootstrap-input-field-and-dropdown-button-submit">bootstrap input field and dropdown button submit</a>) My question is very s...
0
1,708
React + Redux-router = Uncaught Error: Expected the reducer to be a function
<p>My code is working fine, but I have an annoying problem whenever I make a coding mistake and get a runtime error. For instance, in one of my JSX pages I did <code>Date()</code> instead of <code>new Date()</code> and instead of reporting the actual error, I got... </p> <pre><code>Uncaught Error: Expected the reduce...
0
1,506
How to create a 3d / surface chart with JavaFX?
<p><strong>Problem</strong></p> <p>I tried to create a 3d chart with JavaFX but it seems to be more difficult than what one would expect.</p> <p>My current way of doing it would be to create a TriangleMesh, but that's rather circumstantial. All I'd like to do is to provide a <code>List&lt;Point3D&gt;</code> to the ch...
0
10,407
Capistrano: cap aborted! SSHKit::Runner::ExecuteError: Exception while executing on host
<p>I'm trying to deploy code with Capistrano 3 to Ubuntu server from GIT repository, but I'm getting this error.</p> <p>==========================================================================<br> Here is my Gemfile. </p> <pre><code>gem 'capistrano', '~&gt; 3.1.0' #//Use unicorn as the app server gem 'unicorn'...
0
1,944
Wrong ruby version being used
<p>I'm trying to get rails running on my mac which is running lion. I'm using rvm and it shows I'm using ruby 1.9.2p312 but when I go to start the server I'm getting an error referencing ruby 1.8 and that rails is not installed even though previous to this error I ran bundle install and it installed everything I needed...
0
2,939
Rotation of screen crashes android app
<p>I am new to android development. I have developed one app, now the problem is that whenever I rotate screen, app starts activity again and then its crashes application. I found some solution on google to use <strong><em>android:configChanges="orientation"</em></strong> . It works fine but when I rotate screen, its s...
0
1,071
How to get rid of eval-base64_decode like PHP virus files?
<p>My site (very large community website) was recently infected with a virus. Every <code>index.php</code> file was changed so that the opening php tag of these files it was changed to the following line:</p> <pre><code>&lt;?php eval(base64_decode('ZXJyb3JfcmVwb3J0aW5nKDApOw0KJGJvdCA9IEZBTFNFIDsNCiR1c2VyX2FnZW50X3RvX...
0
3,619
HTTPS connection with client certificate in an android app
<p>I am trying to replace the currently working HTTP connection with a HTTPS connection in a Android app that I am writing. The additional security of a HTTPS connection is necessary and so I cannot ignore this step.</p> <p>I have the following:</p> <ol> <li>A server configured to establish a HTTPS connection, and re...
0
1,804
BitmapFactory.decodeStream returns null, when downloading a image form web
<p>I'm trying to download a image from a URL, using the <a href="http://developer.android.com/training/displaying-bitmaps/load-bitmap.html#read-bitmap" rel="nofollow noreferrer">Google Example Page</a>. I've <a href="https://stackoverflow.com/questions/10730520/decodestream-returns-null">read</a> when I use a InputStre...
0
1,037
Get value of node from XML using loop
<p>Trying to loop though my XML data and assign to text fields. Not get a specific error but I am pretty sure it has something to do with the way I am referencing the data and assign it to the .text box. I am also having issues with getting the length of my xml so I know how many times to loop. Please Help. THANKS!</p>...
0
1,051
Spring Maven project commons-logging LogFactory NoClassDefFoundError
<p>I have a Maven project that uses Spring to run a json web service. The project runs fine in NetBeans. It gets compiled into a jar file, and the jar file runs fine in an Ubuntu VM. However, when I try to run the jar file in Windows, I get the following error.</p> <p>java -jar myjar.jar --server.port=8000</p> <pr...
0
4,827
'hidden' property does not work with flex-box
<p>I have the following code using flex-box</p> <pre><code> &lt;!DOCTYPE html&gt; &lt;polymer-element name='test-flex'&gt; &lt;template&gt; &lt;style&gt; .lab-flex-col-container { display: flex; flex-flow: column; align-content: center; background-col...
0
1,095
Hadoop Pseudo-Distributed Operation error: Protocol message tag had invalid wire type
<p>I am setting up a <code>Hadoop 2.6.0</code> Single Node Cluster. I follow the <a href="https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/SingleCluster.html" rel="nofollow">hadoop-common/SingleCluster documentation</a>. I work on <code>Ubuntu 14.04</code>. So far I have managed to run Standalone...
0
1,334
How to extract data from html table in shell script?
<p>I am trying to create a BASH script what would extract the data from HTML table. Below is the example of table from where I need to extract data:</p> <pre><code>&lt;table border=1&gt; &lt;tr&gt; &lt;td&gt;&lt;b&gt;Component&lt;/b&gt;&lt;/td&gt; &lt;td&gt;&lt;b&gt;Status&lt;/b&gt;&lt;/td&gt; &lt;td&gt;&lt;b&gt;Time...
0
1,264
LNK 2005 error in Visual Studio 2005
<p>I use Visual Studio 2005 on windows XP. I'm trying to use "Google Test" framework. But i couldn't manage to make just one test because of linker errors.</p> <p>I built Google Test source files with /MDd option in Debug mode Than i created new project. Then made the steps written in <a href="https://stackoverflow.co...
0
4,191
NullPointerException: Attempt to invoke virtual method on a null object reference?
<p>I get a NUllPointerException when trying to invoke a method on a button:</p> <pre><code>private FButton fButton1; ... ... fButton1 = (FButton) findViewById(R.id.FButton1); fButton1.setButtonColor(ContextCompat.getColor(this, fbutton_color_turquoise)); //Exception here </code></pre> <p>I am using <a href="https:...
0
2,695
Invalid bean definition with name 'dataSource' defined in class path resource [spring/database/DataSource.xml]
<p>Im trying to create an application that access a sql server database using Spring, Maven and Hibernate. When i try to run the application im getting the following error:</p> <pre><code>Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataS...
0
1,111
Unable to claim USB interface with C + libusb on Mac OS X
<p>I've got a compound USB + CDC device I built using a PIC32 microcontroller, and I'm trying to connect to the device and send some data to the CDC data interface endpoint from my Mac.</p> <p>I know the circuit works 100%, as the device registers as both a HID joystick, and I'm able to connect to the device using Zoc...
0
2,257
HttpPost: InputDispatcher: "Channel is unrecoverably broken and will be disposed!" on Nexus 7
<p>On Nexus 7 (4.3), and not on my older device, LG Optimus 3d (Android 2.2), when I do HttpPost, I get this</p> <p>E/InputDispatcher﹕ channel '4273f7b0 ... MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!</p> <p>People have mentioned a possible memory leak. See **. However, this proble...
0
1,597
Docker multistage: how to COPY built files between stages?
<p>I'm beginner with Docker, and I'm trying to build an image in two stages, as explained here: <a href="https://docs.docker.com/develop/develop-images/multistage-build/" rel="noreferrer">https://docs.docker.com/develop/develop-images/multistage-build/</a></p> <blockquote> <p>You can selectively copy artifacts from ...
0
1,159
Export DataGridView Data with Images into Excel, HTML, or Word with Proper Table Formatting
<p>I have a data grid view with images loaded into it. The table which is the source for this data grid has path for images and I load images using that path. I have tried to export data to Excel and was successful, but it seems to show some problems with images. Please any help? Any help instead of Excel, HTML, or...
0
2,022
Why am I getting "undefined reference to vtable..." errors when linking this Qt 5.0 application?
<p>I've got a relatively simple Qt 5.0 project that uses CMake 2.8.9:</p> <p>CMakeLists.txt:</p> <pre><code>cmake_minimum_required(VERSION 2.8.9) set(CMAKE_INCLUDE_CURRENT_DIR ON) project(hello-world) find_package(Qt5Widgets REQUIRED) qt5_wrap_ui(hello-world_UI MainWindow.ui) add_executable(hello-world MainWindow.c...
0
1,046
How do I call methods from a class with an arraylist to another class?
<p>I'm in my first semester of Java and I need help in calling methods from the VotingMachine class below to the Candidate Class. The Voting Machine class is compiling properly. Thank you all for any help you can provide.... Mercedes</p> <pre class="lang-java prettyprint-override"><code>import java.util.ArrayList; /*...
0
1,354
Log4J2 configuration in 3.0 servlet
<p>I tried to set up LOG4J according documentation (and related SO questions), but it does not create supposed file, but there is such log in WildFly:</p> <pre><code>No Log4j context configuration provided. This is very unusual </code></pre> <p>web.xml</p> <pre><code>&lt;web-app xmlns="http://java.sun.com/xml/ns/jav...
0
1,499
RequestMapping of SpringBoot Not working
<p>I am learning Spring Boot for building Applications. I am trying to build my first Spring Boot Application with a controller in different package as application. Tomcat instance comes up but request does not reach RestController registered for the URI.</p> <p>Following is the controller class:</p> <pre><code>packa...
0
3,348
How can I set react-particles-js as the background while using React?
<p>I have everything setup already, I just don't know of a way to make the element created by react-particles-js act as the background.</p> <p>Here is the code I have so far: </p> <pre><code>import React from "react"; import { BrowserRouter as Router, Route } from "react-router-dom"; import NavTabs from "./component...
0
3,666
Set Background Opacity in Popup
<p>i have a problem with my popup i want the background to be transparent but when i set opacity in css to 0.5 or less the text also is transparent and very dark. How can i set the background to 50% opacity but the text is still 100%? Help would be nice :)</p> <p>Heres the full code: <a href="https://jsfiddle.net/Lwbm...
0
1,300
Not active transaciotn: javax.persistence.TransactionRequiredException: Executing an update/delete query
<p>why is my transaction not active? I have this message: "javax.persistence.TransactionRequiredException: Executing an update/delete query" I can't find why</p> <p><strong>aplicationContext:</strong></p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans xmlns="http://www.springframework.org/schema/be...
0
2,227
Reading unread emails using python script
<p>I am trying to read all the unread emails from the gmail account. The above code is able to make connection but is unable to fetch the emails.</p> <p>I want to print the content of each email.</p> <p>I am getting the error as can't concat int to bytes.</p> <p>code:</p> <pre><code>import smtplib import time impor...
0
1,042
Unable to mock Service class in Spring MVC Controller tests
<p>I have a Spring 3.2 MVC application and am using the Spring MVC test framework to test GET and POST requests on the actions of my controllers. I am using Mockito to mock the Services but am finding that the mocks are being ignored and that my actual Service layer is being used (and, as a consequence, the database is...
0
3,152
Android tests build error: Multiple dex files define Landroid/support/test/BuildConfig
<p>I'm trying to add Espresso 2 to my project (which also has lots of other dependencies), but I'm hitting this error when trying to run tests:</p> <pre><code>UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Landroid/support/test/BuildConfig; at com.android.dx.merge.DexMerger...
0
3,502
Rails keeps telling me that it's not currently installed
<p>I use <code>rvm</code> to manage different rubies and their gemsets. My shell is zsh with oh-my-zsh configured with basic settings. Enabled oh-my-zsh plugins are ruby, rails, osx, and git. Here's the command I used to install ruby-1.8.7 and rails-3.0.7.</p> <pre><code>rvm install 1.8.7 rvm use 1.8.7 gem install rai...
0
1,261
Springboot + thymeleaf displaying database contents in html table
<p>I'm trying to learn how to make a web app using springboot and thymeleaf. As an exercise I want to display two columns from a random database table I have created in mysql (persons) in a simple html table.</p> <p>I've used a couple of tutorials for this and wrote the code below however my html does not display the ...
0
1,732
Column width not working in DataTables bootstrap
<p>I am using the following code to set the column width of a DataTable. During partial page load the width appears to be correct and when it loads completely, the width is off.</p> <pre><code>&lt;script&gt; $(document).ready(function () { $("#memberGrid").dataTable({ "dom": 'T&lt;"clear"&gt;lf...
0
1,273
I want to select multiple dates in calendar in android
<p>I want to select multiple dates in calendar,multiple select is working fine but in toast displaying only single date(first date).If I selected 4 days(1.8.14 to 4.8.14) all dates should be displayed in toast. here is my code</p> <hr> <pre><code>public class SampleTimesSquareActivity extends Activity{ p...
0
1,872
Put <span> elements on same line of text
<p>I think this should be straight forward and i've read some other questions but none of the solutions are working.</p> <p>I'm modifying a mailing list template for a product listing to use on eBay - so its full of table-cells which aren't ideal but do work to a degree, though seem to be causing a problem.</p> <p>I ...
0
2,733
JavaFX stop opening URL in WebView - open in browser instead
<p>The embedded WebView browser I am using needs special handling for particular URLs, to open them in the native default browser instead of WebView. The actual browsing part works fine but I need to stop the WebView from displaying that page as well. I can think of several ways to do it but none of them work. Here is ...
0
2,214
SVG Scale without moving location
<p>What I'm trying to do is simple: scale some SVG dots from <code>scale(0)</code> to <code>scale(1)</code> when a sibling element is hovered using vanilla js. They are the red ones in <a href="http://jsfiddle.net/Zeaklous/ST59M/1/" rel="noreferrer"><strong>the demo</strong></a></p> <p>Here's the basic SVG setup</p> ...
0
2,406
.net core 3.1 Bearer error="invalid_token", error_description="The audience 'empty' is invalid"
<p>I have 3 projects 1- Angular SPA 2- Web API Project core 3.1, 3- IdentityServer with Core 3.1 But I am getting following error</p> <pre><code>&gt; www-authenticate: Bearer error=&quot;invalid_token&quot;, error_description=&quot;The audience 'empty' is invalid&quot; </code></pre> <p>This is my API startup</p> <pre>...
0
4,090
RGB to XYZ and LAB colours conversion
<p>I'm having problems converting colours from RGB to LAB space It should be straight forward using the formulas from <a href="http://www.easyrgb.com/index.php?X=MATH" rel="noreferrer">here</a>, only I'm getting back the wrong values</p> <ul> <li><p>RGB = 56,79,132</p></li> <li><p>X = 8.592</p></li> <li>Y = 8.099</li>...
0
1,374
PostgreSQL: Aggregate multiple rows as JSON array based on specific column
<p>I have a table <em>data_tracks</em> containing points (<strong>latitude</strong>, <strong>longitude</strong>), recorded at a specific time (<strong>created_at</strong>) and belonging to a trip (<strong>trip_log_id</strong>). A trip usually has at least two points (start point and end point).</p> <p>table: <strong>d...
0
2,013
WPF DataContext does not refresh the DataGrid using MVVM model
<p>Project Overview</p> <p>I have a view which binds to a viewmodel containing 2 ObserverableCollection. The viewmodel constructor populates the first ObserverableCollection and the view datacontext is collected to bind to it through a public property called Sites. </p> <p>Later the 2ed ObserverableCollection is popu...
0
2,120
Could not create query metamodel for method public abstract java.util.Optional
<p>After struggling with library versions, I've gotten to a point where I'm stuck. A <a href="https://stackoverflow.com/questions/14482593/could-not-create-query-metamodel-on-simple-jpa-repository">similar question</a> didn't seem to apply, as it's three years old and I'm using much newer versions of things, and it's c...
0
8,423
ng-flow.js, how to display responsed JSON data in HTML or controller
<p>I'm using ng-flow, script named ng-flow-standalone.js from here: <a href="https://github.com/flowjs/ng-flow" rel="nofollow">https://github.com/flowjs/ng-flow</a></p> <p>My concept is when user adding a new item, only upload field is showing and once the photo is uploaded the additional form fields will be showing u...
0
1,690
How to validate my model in a custom model binder?
<p>I asked about an issue I have with comma delimited numeric values <a href="https://stackoverflow.com/questions/23098059/comma-delimited-numeric-value-fails-validation-in-asp-net-mvc-4">here</a>.</p> <p>Given some of the replies, I attempted to try to implement my own model binder as follows:</p> <pre class="lang-c...
0
6,975
Hibernate Left Outer Join
<p>I have a Hibernate service method as such: <code>"SELECT sc FROM SecurityContact sc WHERE sc.securityId=:securityId2"</code>. securityId2 is passed in by the user. Each SecurityContact has a many to one relationship with a Contact, so Hibernate automatically calls a join when this query runs. However, the join that ...
0
1,231
Adjust the size (width/height) of a custom QTableWidget
<p>I need a <code>QTableWidget</code> based on a <code>QTabelModel</code> and <code>QTableView</code> with some buttons added above the table. See the following figure:</p> <p><a href="https://i.stack.imgur.com/Clnyy.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Clnyy.png" alt="enter image description here...
0
1,653
Mapbox GL JS: Style is not done loading
<p>I have a map wher we can classically switch from one style to another, streets to satellite for example.</p> <p>I want to be informed that the style is loaded to then add a layer.</p> <p>According to the <a href="https://www.mapbox.com/mapbox-gl-js/api/#map.event:styledataloading" rel="noreferrer">doc</a>, I tried...
0
1,124
Kafka - shutting down (kafka.server.KafkaServer), problems with starting Kafka-Server-Start
<p>I'll start from the beginning. I have openSuse 13.2, i also have jdk_1.7.0_51, scala-2.11.4 and gradle-2.2.1. I have downloaded source of kafka-0.8.2-bet-src and run ./gradlew commands as they where written in readme file. All commands where ran with success, except test (93% where successful, 19 failed) btw i got m...
0
7,337
onLoadEnd is not fired in react-native Image
<p>hi am trying to load an remote image. onLoadStart is hitting but not the onLoadEnd ` </p> <pre><code>&lt;View style={{ paddingTop: 60, paddingBottom: 10 }}&gt; {this.state.loading ? ( &lt;DotIndicator size={25} color={"white"} /&gt; ) : ( &lt;Image ...
0
1,675
AndroidX Toolbar is mis-located
<p>I am using <code>AndroidX</code> dependencies for my Android project.</p> <p>I have a <code>Toolbar</code> in my activity (this activity is for supporting the developer by paying him some money) wrapped inside a linear layout like this:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/...
0
1,330
Spring boot + hikari - dataSource or dataSourceClassName or jdbcUrl is required issue
<p>I get the following error trying to start my Spring application</p> <p><code>ERROR 5908 --- [ main] com.zaxxer.hikari.HikariConfig : HikariPool-1 - dataSource or dataSourceClassName or jdbcUrl is required.</code></p> <p>My <code>application.properties</code> file looks like this:</p> <pre><cod...
0
2,321
Error with importing scikit-learn
<p>I am trying to utilize the following code:</p> <pre><code>from matplotlib import pyplot as plt from sklearn.datasets import load_iris import numpy as np </code></pre> <p>I get this error:</p> <pre><code>ImportError: No module named sklearn.datasets </code></pre> <p>I then try to install <code>scikit-learn</code>...
0
2,226
Could not find a part of the path - ASP.net/C# Image Upload
<p>I have a TinyMCE plugin that I'm using for uploading images using a form. This form works perfectly in FF and Chrome, but breaks in IE8+. I have ensured there is proper permissions to NETWORK SERVICE etc.</p> <p>Here is the Error:</p> <blockquote> <p>Could not find a part of the path 'C:\Users\XXXX\Desktop\image...
0
10,876
How to change focus color when input is filled in with required attribute javascript/html/css
<p>I am working on a HTML Form. I have added required elements to some of my input fields. Because I am using Bootstrap the input fields are by default blue when it focus. I have set the required input fields to a red color with <code>input:required:focus {border: 1px solid red;}</code>. Now, when the required input fi...
0
1,285
Displaying error messages in vuetify when validating nested object with vuelidate
<p>I am using <a href="https://github.com/monterail/vuelidate" rel="noreferrer">vuelidate</a> to validate my form input and display the error messages using <a href="https://vuetifyjs.com/en/components/forms#example-vuelidate" rel="noreferrer">vuetifyjs</a>. I managed to do the basic object validation and am able to sh...
0
2,162
Java falling matrix code (like the movie, continued)
<p>ok, so yesterday i posted a question in regards to creating a java jframe that simulates the matrix rain from the movies which i want to be just like this php example</p> <p><a href="http://mgccl.com/2007/03/30/simple-version-matrix-like-animated-dropping-character-effect-in-php" rel="nofollow">http://mgccl.com/200...
0
1,376
Flutter - Looking up a deactivated widget's ancestor is unsafe with Provider package, FireStore authentication
<p>I have an problem with showing message via SnackBar using Provider package. The error message I get is:</p> <pre><code>VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: Looking up a deactivated widget's ancestor is unsafe. At this point the state of the widget's element tree is no longer stable. To safely refer...
0
3,296
Faces Navigation not really working in JSF2
<p>I'm using JSF 2.0</p> <p>this is my faces-config.xml </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!-- This file is not required if you don't need any extra configuration. --&gt; &lt;faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSc...
0
1,248
How to create a trampoline function for hook
<p>I'm interested in hooking and I decided to see if I could hook some functions. I wasn't interested in using a library like detours because I want to have the experience of doing it on my own. With some sources I found on the internet, I was able to create the code below. It's basic, but it works alright. However whe...
0
1,407
Apache HttpClient POST Upload File won't work with MultipartEntityBuilder upload
<p>I have an HTML form that has a File Upload in it. I am trying to upload a Word doc through the form using <code>MultipartEntityBuilder</code>, but it is just not working.</p> <p>The form has several text inputs and 2 File Upload lines in it. If I use the <code>BasicNameValuePair</code> approach and just set those f...
0
3,567
JavaScript not executing in my HTML
<p>So I've begun learning HTML/CSS/JavaScript and came across this issue while trying to make an exceedingly simple version of rock-paper-scissors. I believe that the code works fine, but I can't check because <strong>it refuses to execute.</strong> I have looked extensively for answers on the internet, but can't seem ...
0
4,951
hardcoded string "row three", should use @string resource
<p><strong>I'm a beginner android developer , I was trying to run this Linear Layout in eclipse :</strong></p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent...
0
1,308
Displaying a chart using Chart.js
<p>I'm pretty new to JavaScript and HTML5. I'm trying to print a normal line chart onto canvas using Chart.js. I followed the step by step guide on their website, but am unable to make the graph show. </p> <p>This is the current code:</p> <pre><code>&lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; ...
0
1,408
Use OpenGL Bitmap Fonts to put text onto the screen
<p>I am now learning OpenGL NeHe production.When I come to read Lesson 13 Bitmap Fonts,I encounter a problem.I write my code using glut.And my PC system is Windows7.I run my code on Microsoft Visual Studio 2008 and there is not any error.But nothing appears in the window.I don't know what is wrong.What may cause this p...
0
2,775
SwiftUI view is not updating to EnvironmentObject change
<p>I'm creating a SwiftUI app that includes Firebase to enable logging into an account, extremely simple, just a ui form with password and email fields, then a button to submit. Once the user signs in I store the firebase user object in an EnvironmentObject so the rest of the views will have access to it. The problem w...
0
1,891