title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
PHP SESSIONS, COOKIES and Remember Me function | <p>I have the following code, when a user logs in, they are presented with two text boxes and a checkbox.</p>
<p>Setting the three cookies, <code>username</code>, <code>password</code> and <code>remember</code> all work and the log in script itself is comepletely fine (I appreciate that storing hashed passwords in the... | 0 | 1,595 |
Absent Code attribute in method that is not native or abstract in class file javax/faces/webapp/FacesServlet error in compilation | <p>I'm using eclipse Indigo and Tomcat 6.0.3 and JSF 2.0.</p>
<p>I'm working from <a href="http://www.mkyong.com/jsf2/jsf-2-internationalization-example/" rel="nofollow noreferrer">this</a> example but I get these errors on runtime:</p>
<pre><code>java.lang.ClassFormatError: Absent Code attribute in method that is no... | 0 | 2,145 |
Using PostMessage/SendMessage to send keys to c# IE WebBrowser | <p>I am trying to auto fill in values in the C# webbrowser control and tab and enter and press up and down to move through the fields.</p>
<p>Here is my PInvoke and wrapper functions. I used Spy++ to get these in Internet Explorer. Does anyone see anything wrong with my definitions? I want to use Send and Post message... | 0 | 1,082 |
Google Places Autocomplete + Angular2 | <p>I am building a simple Google Places Autocomplete Angular2 directive but the problem is that cannot get any prediction (the response is always empty?!)...</p>
<p>As a proof of concept I created the simplest possible code snippet as a reference:</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<... | 0 | 1,219 |
Winsorizing data by column in pandas with NaN | <p>I'd like to winsorize several columns of data in a pandas Data Frame. Each column has some NaN, which affects the winsorization, so they need to be removed. The only way I know how to do this is to remove them for <em>all</em> of the data, rather than remove them only column-by-column. </p>
<p>MWE:</p>
<pre><code>... | 0 | 1,766 |
Moving the dynamically drawn rectangle inside the canvas using MouseMove event | <p>I'm trying to move a dynamically drawn rectangle inside the canvas. I’m able to draw the rectangle dynamically with in the canvas and while trying to move the rectangle inside the canvas I’m facing problem </p>
<p><strong>XAML :</strong></p>
<pre><code> <Grid x:Name="Gridimage1" Margin="0,0,411,100">
... | 0 | 1,285 |
How to programmatically create UIView -> UIViewController -> UITableView | <p>I've been struggling to add a UIView above my UITableViewController. Through searches, reading and experimenting I've determined that instead of a UITableViewController I should just be using a UIViewController. I'm having a hard time making this work for a variety of reasons and I'd like to just start fresh with a ... | 0 | 1,248 |
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails | <p>I am trying to insert values into my comments table and I am getting a error. Its saying that I can not add or update child row and I have no idea what that means.
My schema looks something like this:</p>
<pre><code>--
-- Baza danych: `koxu1996_test`
--
-- --------------------------------------------------------
... | 0 | 1,086 |
AttributeError: install_layout when attempting to install a package in a virtual environment | <p>I am trying to set up a virtual environment on my Ubuntu 15.10 PC. From my home directory, I have run the following commands:</p>
<pre><code>virtualenv python
source python/bin/activate
pip install ujson
</code></pre>
<p>Below is the (bottom half of) content of <code>~/.pip/pip.log</code>:</p>
<pre><code>running ... | 0 | 3,936 |
ManualResetEvent.WaitOne() doesn't return if Reset() is called immediately after Set() | <p>I have a problem in a production service which contains a "watchdog" timer used to check whether the main processing job has become frozen (this is related to a COM interop problem which unfortunately can't be reproduced in test).</p>
<p>Here's how it currently works:</p>
<ul>
<li>During processing, the main threa... | 0 | 1,121 |
How to allow user to register with duplicate UserName using Identity Framework 1.0 | <p>I want to develop an application in MVC using Identity Framework 1.0 which allow users to register with same username used by some other user.</p>
<p>When deleting a user I want to set its <code>IsDeleted</code> custom property to true rather than deleting the user from database. In this case another user can use t... | 0 | 1,205 |
Failed to add the host to the list of known hosts, how to debug | <p>Try to ssh using -v. The output is:</p>
<pre><code>ccc@es-chen:~$ ssh cccadmin@ccchost -A -X -v
OpenSSH_5.9p1 Debian-5ubuntu1.7, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /home/ccc/.ssh/config
debug1: /home/ccc/.ssh/config line 11: Applying options for *
debug1: Reading configuration data /etc/ss... | 0 | 1,087 |
Overlay a map on top of a 3d surface map in r | <p>I have created a 3d map using rgl.surface(), mainly following Shane's answer in <a href="https://stackoverflow.com/questions/1896419/plotting-a-3d-surface-plot-with-contour-map-overlay-using-r">this</a> post. Using my own data, I get this map</p>
<p><img src="https://i.stack.imgur.com/TvOnv.png" alt="enter image de... | 1 | 1,259 |
Is it possible to run Hadoop jobs (like the WordCount sample) in the local mode on Windows without Cygwin? | <p>I have Windows 7, Java 8, Maven and Eclipse.
I've created a Maven project and used almost exactly the same code as <a href="https://github.com/alexcpn/WordCountHadoop2" rel="nofollow">here</a>. </p>
<p>It's just a simple "word count" sample.
I try to launch the "driver" program from Eclipse, I provide command line ... | 1 | 1,029 |
Side Nav Bar Open/Collapse and Container Resize | <p>So I'm using bootstrap to build a dashboard with a side nav bar. When the navbar is open, the container content is pushed to the right and out of the screen. I want the whole container to be resized to fit the screen. So whether navbar is open or collapsed, container should be fully visible. Is there a bootstrap css... | 1 | 2,413 |
How to get user activity logging by Log4Net in MVC 4? | <p>I have a MVC 4 application.I tried get user activity logging.</p>
<p>I looked this sample <a href="http://www.oakwoodinsights.com/adding-log4net-mvc-site/" rel="nofollow">http://www.oakwoodinsights.com/adding-log4net-mvc-site/</a></p>
<p>But I failed.Log table is empty in SQL.</p>
<p>Firstly I added log4net.2.0.3... | 1 | 2,574 |
Setting up Vagrant with PuPHET failure | <p>I'm using PuPHET tool to setup Vagrant so that a combo vagrant+puppet should just easily boot a VM with vagrant up. Im using a Centos64 setup - php 5.4, and some minor standard debug mode.
Im running this on a Mac OSX Maverick.</p>
<h2>Here is the configuration:</h2>
<pre><code>vagrantfile-local:
vm:
b... | 1 | 2,436 |
Kubernetes with Docker unable to change from default port of 80 | <p>I am running a dotnet core app using Kubernetes with Docker.</p>
<p>The setup is as follows:</p>
<p><strong>APP</strong></p>
<p>In the dotnet core app, I have Kestrel server listening on port 8080 by setting the following in Program.cs:</p>
<pre><code>public static IWebHost BuildWebHost(string[] args) =>
WebH... | 1 | 1,428 |
CORS failing somewhere in Docker-Compose Stack w/NGINX - can't find it | <p>CORS is the absolute worst. I'm trying to find where in a <code>next.js</code>-><code>NGINX</code>-><code>docker-compose</code>-><code>clojure</code> a POST request is failing it's CORS. I have the following error message with no indication of where in the stack its coming from (yay!):</p>
<pre><code>Cross-Origin R... | 1 | 3,320 |
Joining same table multiple times with Sequelize | <p>I have the following models:</p>
<pre><code>const User = Sequelize.define('user', {
login: Sequelize.DataTypes.STRING,
password: Sequelize.DataTypes.STRING,
is_manager: Sequelize.DataTypes.BOOLEAN,
notes: Sequelize.DataTypes.STRING
});
const Bike = Sequelize.define('bike', {
model: Sequelize.Da... | 1 | 1,046 |
JSF: How to write to database? | <p>I'm a beginner to JSF, and I can't seem to get this right. I'm trying to take a user input in a form and insert it into a database when the users clicks submit. So what I have at at front end is just a form and a submit button enclosed in form tags:</p>
<pre><code><h:form>
<h:panelGrid columns="2" bord... | 1 | 1,495 |
How to configure JBOSS connectivity with Websphere SSL enabled MQ? | <p>We are using JBOSS EAP 6.3 maintained via openshift. We want to connect with Websphere MQ which is SSL enabled.</p>
<p>I am successfully able to connect to non-ssl MQ via JBOSS. But while trying to connect with ssl MQ i am facing below error,</p>
<blockquote>
<p>Blockquote
Caused by: javax.net.ssl.SSLHandshake... | 1 | 3,581 |
How to hide multiple Show/Hide DIV's when another DIV is clicked | <p>How do I hide all buttons in the second and third row if a different button is clicked in the first row and if a another button is clicked in the second row it will hide the buttons for that column and show buttons for the column that is clicked? I'm trying to achieve a form similar to <a href="http://gazelle.com/" ... | 1 | 1,341 |
Validate multiple fields from frontend using react native | <p>How to validate all the fields from the front end
I have 4 fields here i have written a function on blur how can i proceed to this</p>
<p>import React, { Component } from 'react'</p>
<p>class Signup extends Component {</p>
<pre><code>constructor(props) {
super(props);
this.state = {
mobileno: '',
... | 1 | 1,848 |
Need help for webdriver and Javascript for a hidden File upload element | <p>I am trying to automate a file upload scenario in a client web application. The code of the entire file upload form looks like this </p>
<pre><code><td valign="top">
<iframe id="batchLoad:inputFile:uploadFrame" class="iceInpFile" width="600px" scrolling="no" height="30px" frameborder="0" ti... | 1 | 1,100 |
Connection Refused : While Running the Docker Compose | <p>I am new baby to the Docker. I am using docker within the spring boot application. Below is my file .</p>
<p>Application.properties file:</p>
<pre><code>spring.datasource.url=jdbc:mysql://${DATABASE_HOST}:3306/${DATABASE_NAME}?allowPublicKeyRetrieval=true&useSSL=true
spring.datasource.username = root
spring.data... | 1 | 2,305 |
Eclipse deployment error on TomEE | <p>So I'm writing a simple spring application, using TomEE and Eclipse. The thing is that for some reason when I run Eclipse on Ubuntu and try to deploy the application on the server through eclipse, I get the following error: </p>
<pre><code>org.apache.openejb.OpenEJBException: Unable to load servlet class: org.sprin... | 1 | 4,376 |
Adobe CQ Components restricting child components | <p>I am trying to create a component for a simple accordion, where blocks of content are held under headings and only one heading is visible at a time. My preferred implementation uses two components, one to represent the whole accordion and a second component for a single entry.</p>
<p>The idea is that a content auth... | 1 | 1,435 |
Why does ListBox AlternationIndex always return 0 | <p>Ok, I know there are a couple of other similar questions to this but I am having a real issue with getting the AlternationIndex to work on ListBox or ListView.</p>
<p>my xaml is such:</p>
<pre><code> <ListBox BorderThickness="0" Name="RecentItemsListBox" HorizontalAlignment="Stretch"
... | 1 | 1,111 |
Unit test angular directive updating the ngModel | <p>I'm trying to test a directive that I've written to validate an input and I have some trouble.
The input managed by the directive should contain a valid hex color value and if the user modifies it with an invalid value, I want to cancel this modification. My directive is the following and is working as expected:</p>... | 1 | 1,273 |
Why Tensorflow not running on GPU while GPU devices are identified in python? | <p>I installed <code>TensorFlow 2.2.0</code> and <code>TensorFlow-gpu 2.2.0</code> in <code>windows 10</code>. Also, I installed <code>CUDA Toolkit v10.1</code> and copy <code>cuDNN 7.6.5</code> files in <code>CUDA directories</code>. My GPU is <code>NVIDIA GeForce 940 MX</code>.
In addition, I set CUDA Path on windows... | 1 | 4,014 |
Can't access managed bean again... jsf | <p>I'm not sure what am I doing wrong. I had the same problem with another Project of mine where I could not access the managed beans.</p>
<p>Here is the facelet client:</p>
<pre><code><?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3... | 1 | 2,655 |
One DbContext Instance spans multiple Repositories | <p>These are my AutoFac-DI definitions in my Web Api setup:</p>
<pre><code> builder.RegisterType<MyContext>().As<MyContext>().InstancePerRequest();
builder.RegisterType<TestRepository>().InstancePerRequest();
builder.RegisterType<SchoolclassCodeRepository>().InstancePerRequest();
builder.Reg... | 1 | 1,313 |
UnmanagedCode permission. What is it? | <p>The following code exists in LogEntry.cs in the Enterprise Library's Logging Application Block:</p>
<pre><code>private bool UnmanagedCodePermissionAvailable
{
get
{
if (!unmanagedCodePermissionAvailableInitialized)
{
// check whether the unmanaged code permission is available to avoid three potent... | 1 | 1,442 |
SQL JDBC template drop table issue: drop table with FK and Unique index (JDBC template) | <p>I am using JDBC template for my web+MVC+Security (using Spring 2.5, Spring security 2.0.4) for the user authentication with roles in it. When I am trying to execute it, its giving me the following error:</p>
<pre><code>Mar 06, 2012 10:10:42 AM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring roo... | 1 | 5,701 |
Remove values from array if not in other array, but keeping same order | <p>I have two arrays:</p>
<p>$array1:</p>
<pre><code>Array
(
[0] => 2032
[1] => 2027
[2] => 2025
[3] => 2023
[4] => 2021
[5] => 2018
[6] => 2014
[7] => 2011
[8] => 2009
[9] => 1947
[10] => 1941
[11] => 1939
[12] => 1937
[13... | 1 | 1,511 |
Bottom Navigation changing selected icon color | <p>I am trying to make a custom bottom navigation in android.
I wanted to disable the shift and to given custom colors for icons.
The icons are initially grey color and the selected one turns blue.
The problem is that all images stay grey even if they are selected. </p>
<p>I tried to mess with some of it but nothing ... | 1 | 2,363 |
How can I control the amount of files being processed for each trigger in Spark Structured Streaming using the "Trigger once" trigger? | <p>I am trying to use Spark Structured Streaming's feature, Trigger once, to mimic a batch alike setup. However, I run into some trouble when I am running my initial batch, because I have a lot of historic data, and for this reason I am also using the option <strong>.option("cloudFiles.includeExistingFiles", ... | 1 | 1,273 |
Group Policy completely failing on a few domain-joined client computers | <p>I've recently run into an issue where group policy is failing to apply on a few computers. When I run <code>GPUPDATE /FORCE</code>, this is the output:</p>
<pre><code>Updating policy...
Computer Policy update has completed successfully.
The following warnings were encountered during computer policy processing:
Windo... | 1 | 1,133 |
d3-transition attrTween, styleTween methods are not getting triggered in d3 version 4 | <p>I'm trying to upgrade the following donut chart from d3.js v3 to d3.js v4.</p>
<p><a href="http://bl.ocks.org/dbuezas/9306799" rel="nofollow">http://bl.ocks.org/dbuezas/9306799</a> </p>
<p>I have replaced all the old version method names with the equivalant methods in new version.</p>
<p><strong>d3.scale.ordinal(... | 1 | 2,566 |
Gradle exclude R.java in Android Javadocs when internal classes depend on R.java | <p>I am building JavaDoc for an API wherein classes in the API depend on R.java. I want to build the Javadoc w/o symbol errors referencing the missing R.java file as even when I set <code>failOnError false</code> the build succeeds but our Jenkins job will report the build as Failed when errors occur in successful bui... | 1 | 1,235 |
Fieldset Legend in Internet Explorer | <p>I'm pulling my hair out here.</p>
<p>I'm styling the front end of an ASP.NET built site, one of the sections is a fieldset with a legend, however this area looks totally different between IE, firefox and chrome. IE being by far the most off. I don't have the ability to load browser specific stylesheets with the way... | 1 | 1,252 |
org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message | <p>I am new to Apache Kafka and am able to send the message(in JSON format) from the sender, but not able to consume at consumer service.</p>
<h3>This is my Code:</h3>
<h3>Sender Service</h3>
<pre><code>@Service
public class SenderService {
private static final Logger LOG = LoggerFactory.getLogger(SenderService.cla... | 1 | 1,109 |
How to select value if present or another if not in SQL Server view | <p>I need to create a view on a SQL Server database where one of the columns may be drawn from either of two sources, depending what is present. Specifically, we have a series of tables like this (simplified):</p>
<p><strong>Table1</strong>:</p>
<pre><code>personid
typeid (one of the values from Table2)
surname
f... | 1 | 1,292 |
No bean named 'cxf' is defined even after importing cxf.xml | <p>I tried to expose one of my method as REST webservice using Apache CXF. When I try to access the webservice at <strong><a href="http://localhost:7080/CXFwithMaven/services/book/abc" rel="nofollow">http://localhost:7080/CXFwithMaven/services/book/abc</a></strong> i get the following error. </p>
<pre><code>javax.serv... | 1 | 4,618 |
Decoding a h264 (High) stream with OpenCV's ffmpeg on Ubuntu | <p>I am working with a video stream from an ip camera on Ubuntu 14.04. Everything was going great with a camera that has these parameters (from FFMPEG):</p>
<pre><code> Stream #0:0: Video: h264 (Main), yuv420p(progressive), 352x192, 29.97 tbr, 90k tbn, 180k tbc
</code></pre>
<p>But then i changed to a newer camera... | 1 | 1,144 |
"Fatal error: Unable to find local grunt." on windows7 professional | <p>f I want to start <strong><em>grunt</em></strong>, I get the following message:</p>
<pre><code>c:\repositories\kunde_1\themes-projekt_1\projekt_1-responsive\source>grunt
grunt-cli: The grunt command line interface. (v0.1.13)
Fatal error: Unable to find local grunt.
If you're seeing this message, either a Grunt... | 1 | 1,328 |
In R, what does the error "need at least one panel" mean and how to fix it? | <p>The following code is from the book "R in Action", listing 16.1:</p>
<pre><code>library(lattice)
attach(mtcars)
gear <- factor(gear, levels=c(3, 4, 5),
labels=c("3 gears", "4 gears", "5 gears"))
cyl <- factor(cyl, levels=c(4, 6, 8),
labels=c("4 cylinders", "6 cylinders", "8 cylin... | 1 | 1,046 |
OpenXML SDK replace text in Template Document | <p>With OpenXML SDK i have created a docx file which i'm using as a template. It needs to replace the words inside the document. Well if i use a document with paragraphs it works. But for text within a tablecell and within a paragraph like a break it's not working. Below my code =></p>
<pre><code> protected void bt... | 1 | 2,304 |
How to convert Plain text to Json Object in JavaScript | <p>How to convert plain text into JSON value in Javascript. I tried lot. But unable to fetch as expected. Kindly anybody help</p>
<p>Actual String getting from command line which is executing command from javascript</p>
<pre><code>Net State: OFFLINE
Net Err:
Net Time: 0
Current Sample: 0
Sample #0
Sample Ro... | 1 | 1,038 |
Adding multiple listeners which will listen to different RabbitMQ queue not working | <p>I hava following spring xml configuration</p>
<pre><code><bean id="connectionFactory"
class="org.springframework.amqp.rabbit.connection.CachingConnectionFactory">
<constructor-arg value="xxxxxxxx"/>
<property name="username" value="xxxxx&... | 1 | 1,317 |
Making a login page using tkinter in python | <p>I'm trying to load a new frame when the user presses the login button as long as the details entered are correct. I've included <code>print</code> commands within the <code>LogInCheck</code> function in order to see if the code is executing correctly, which it is. My only problem is that it wont change the frame. I ... | 1 | 4,723 |
Why do I get ClassNotFoundException: org.apache.ws.security.handler.WSHandler when I use CXF 2.2.11 | <p>I can not understand, why do I get Exception on the statement:
<strong><code>WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor();</code></strong>
when I use version of CXF 2.2.11?</p>
<p>I am trying to make call to WSDL WebService. Here is code:</p>
<pre><code> URL wsdlUrl = new URL(Constant.wsdlURL);
Ca... | 1 | 5,385 |
Date + Time Picker in DialogFragment implements OnDateChangedListener and OnTimeChangedListener | <p>I can't seem to set up my DateTimeDialogFragment because it keeps crashing at the part where i put: </p>
<pre><code>datePicker = (DatePicker) getView().findViewById(R.id.DatePicker);
</code></pre>
<p>Error Log:</p>
<pre><code>02-14 21:38:43.262: E/AndroidRuntime(2435): FATAL EXCEPTION: main
02-14 21:38:43.262: E/... | 1 | 3,618 |
Move caret to the end of a text input field AND make the end visible | <p>I'm going insane. I have an autosuggest box where users choose a suggestion. On the next suggestion selection the value of the text input box exceeds its size. I can move the carat to the end of the input field crossbrowser, no problem. But on Chrome and Safari I cannot SEE the carat at the end. The end of the text ... | 1 | 1,105 |
How to return a value from pHp server script to NSMutableData (Objective C, iOS) | <p>Ok, I'm having trouble finding an answer to this that isn't just use JSON or ASIHTTPRequest. But my question is a little more specific, I think. I only program as a hobby, so I'm no expert. With that said, my abstract understanding of this could be completely off base, so the question might not be answerable.</p>... | 1 | 1,259 |
ERROR: The upload destination folder does not appear to be writable | <p>Which file permission should I use for uploading and downloading files to a folder in codeigniter? </p>
<p>My whole project is been hosted on FileZilla. </p>
<p>NOTE: Uploading downloading works perfectly fine when website is hosted loacally. </p>
<p>Error only occurs when hosted through FileZilla.
My Upload/Dow... | 1 | 2,001 |
Hibernate 4 bytecode enhancement not working for dirty checking optimization | <p>I am using the Hibernate 4.3.6 and I made use of the latest <a href="http://vladmihalcea.com/hibernate-4-bytecode-enhancement/" rel="nofollow noreferrer">Maven bytecode enhancement</a> to instrument all entities for self dirtiness awareness.</p>
<p>I added the maven plugin:</p>
<pre><code><build>
<plu... | 1 | 1,289 |
mongodb can't start with Invariant failure false | <p>I use mongodb. After stop mongod I can not start with error show in log below</p>
<p>log:</p>
<pre><code>...
2015-11-18T16:42:01.017+0800 I JOURNAL [journal writer] Journal writer thread started
2015-11-18T16:42:01.128+0800 I NETWORK [initandlisten] waiting for connections on port 27017
2015-11-18T16:42:01.146+0... | 1 | 1,059 |
Delete Function: Laravel 5 | <p>new to laravel framework here. I'm having quite a problem here calling out the delete function in my resource controller. Seems like it is not deleting the selected id. Thanks for your help in advance.</p>
<p>resources/views/bufashaccts/allAccounts.blade.php</p>
<pre><code>@extends('adminlte::page')
<html>
&... | 1 | 1,259 |
How do I stop a fixed sidebar from overlapping the footer with jQuery? | <p><strong>Note:</strong> The <a href="https://stackoverflow.com/questions/52062163/how-to-make-a-sidebar-sticky-when-scrolling-between-header-and-footer-with-jquer">"duplicate" linked</a> is another post of mine (inadvertently posted twice). I've already flagged the duplicates for removal. </p>
<p>I need a strictly j... | 1 | 1,887 |
Spring Batch - JpaPagingItemReader - Works in MySQL - Duplicates in PostgreSQL | <p>Before Spring Batch job runs. I have a import table which contains all items that needs importing into our system. It is at this point verified to contain only items that does not exist in our system.</p>
<p>Next I have a Spring Batch Job, which reads from this import table using JpaPagingItemReader.
After work is ... | 1 | 2,549 |
CoordinatorLayout not working properly when content inside NestedScrollView doesn't fill entire screen | <p>When there is less data inside the nested scrollview then the view gets stuck to the footer. When it has enough content to show it works as expected. I have a CoordinatorLayout at root which has AppBarLayout and NestedScrollView as child. AppBarLayout has a collapsingToolbarLayout and NestedScrollView has a LinearLa... | 1 | 1,716 |
querySelectorAll('input:not([type="hidden"]):not([value=""])') keeps returning elements although the inputs are empty | <p>I'm trying to fetch all empty inputs (<code>value=""</code>) from my form. </p>
<pre><code>var inputsEmpty = loginForm.querySelectorAll('input:not([type="hidden"]):not([value=""])');
</code></pre>
<p>Keeps returning elements</p>
<blockquote>
<p>0: input#companyName.form-control</p>
<p>1: input#userName.for... | 1 | 1,251 |
vue-router, can't refresh routes with dynamic id's | <p>I'm having trouble with my vue-router. I've copied a portion of my router for you to view and also a portion of the component in which I am using the the router-view. As you can see, I am using props as it's my understanding that props are the advanced way of passing $router.params. Also, this is a nested router-vie... | 1 | 1,073 |
RESTLET on Camel with Jetty | <p>As far as I understand, Camel by default uses the default RESTLET engine. How can I tell Camel to use Jetty instead?</p>
<p>I know there are ways to bundle your application and deploy it in Tomcat or Jetty. If I do that, however, the biggest question becomes how to integrate with RESTLET.</p>
<p>I did some further... | 1 | 1,127 |
AngularJS Navigation does not work after tinymce directive | <p>I have problem I can't figure out but I do have a hint. Before integrating TinyMCE the main navigation was working fine eg links Settings, Analytics, Setup; it isn't working now if you click them.</p>
<p>Here is my js file:</p>
<pre><code>var app_htmleditor_module = angular.module('app_htmleditor', ['components']).
... | 1 | 1,891 |
Android TV move focus between RecyclerViews | <p>I am building an Android TV app with the following layout:
<a href="https://i.stack.imgur.com/rMIq9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rMIq9.png" alt="enter image description here"></a></p>
<p>Both lists on the left and on the right are RecyclerViews with vertical LinearLayoutManagers, Header... | 1 | 3,074 |
Spring Boot Application Shutting Down as soon as it's started | <p>I used Spring Initializr to initialize a new project. I further added MySQL Driver, Spring Data JPA, Spring Boot Actuator, and Spring Web as project dependencies. Exporting the .zip file, the only thing I did is, changed the <em>application.properties</em> file. When I run the application, it starts and stops immedi... | 1 | 3,071 |
Sunspot::Solr::Server::JavaMissing: You need a Java Runtime Environment to run the Solr server | <p>Trying to start Solr with sunspot but having an issue with the Java Runtime Environment by getting this error.</p>
<pre><code>root@oktobTest:~# dokku run oktob bundle exec rake sunspot:solr:start
rake aborted!
Sunspot::Solr::Server::JavaMissing: You need a Java Runtime Environment to run the Solr server
/app/vendor... | 1 | 1,251 |
Hibernate/mysql connection issues | <p>We are working on a java struts2 framework webapplication with Hibernate 3 ORM. We use mysql as our database. </p>
<p>We found a some DB related exceptions in logs. Connection to the database is timed out before the configured time. Here are the commons exceptions we found.</p>
<pre><code>104343235 [pool-6-thread-... | 1 | 1,517 |
Problems parsing / accessing nested JSON / Hashtable data via variables in Powershell | <p>I'm trying to dynamically parse & build-up a data structure of some incoming JSON files I'm to be supplied with (that'll be in non-standard structure) via Powershell to then process the data in those files & hand them over to the next step.</p>
<p>As part of that, I'm trying to build up the data structure o... | 1 | 1,885 |
SolrCloud Exception writing document id to the index; possible analysis error | <p>I have a problem with my solrcloud 6.2.1, bad request after some docs indexed.</p>
<p>which I have done :</p>
<ul>
<li><p><b>HardCommit</b></p></li>
<li><p>Every <1min commit=false (400-600 Docs)</p></li>
<li><p>Every 10mins commit=true with command <code>curl http://host:8983/solr/mycollection/update?commit=t... | 1 | 3,227 |
How to toggle elements in and out of DOM using jQuery detach() method? | <p>I have a group of divs arranged in a grid.</p>
<p><a href="https://i.stack.imgur.com/KKTZP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KKTZP.png" alt="enter image description here"></a></p>
<p>To style each div I'm selecting them with the <a href="https://developer.mozilla.org/en-US/docs/Web... | 1 | 2,214 |
Search/Filter custom Widgets for QListWidget | <p>How can I search/filter custom widgets in the QListWidget?</p>
<p>For example, I have a custom form widget,</p>
<pre><code>class MetadataForm(QtWidgets.QWidget):
def __init__(self, data, parent=None):
super(MetadataForm, self).__init__(parent)
self.ui = Ui_MetaInfo()
self.ui.setupUi(se... | 1 | 1,117 |
Airflow - how to set task dependencies between iterations of a for loop? | <p>I am using Airflow to run a set of tasks inside for loop. The purpose of the loop is to iterate through a list of database table names and perform the following actions: </p>
<pre><code>for table_name in list_of_tables:
if table exists in database (BranchPythonOperator)
do nothing (DummyOperator)
el... | 1 | 1,245 |
Spring Security Authentication does not ask for login after first time? | <p>I have implemented LDAP Authentication in my application andi have problem with Authentication even after deleting cookies using logout method
<strong>Code snippet</strong></p>
<pre><code> @Override
protected void configure(HttpSecurity http) throws Exception {
http.httpBasic().and().authorizeRequests().antM... | 1 | 2,204 |
onRatingChanged not working properly | <p>When the RatingBar in my application is changed, I want it to be able to change a text view (a tip value) to certain numbers depending on the current RatingBar value. I have tried this by using the onRatingChanged method, but that doesn't seem to be working. Also, I want the tip value to change based on the RatingBa... | 1 | 3,688 |
Fit the content inside the screen whatever the screen size is - Bootstrap | <p>In my page, I have a header, a footer and a container <code>id="item"</code> containing a list of four items and their logos. I'm trying to fit the <code>item</code> container responsive based on the screen size so that the whole page always fits the screen and I don't have to scroll whatever the screen size is. </p... | 1 | 1,356 |
modal-open is not removing from <body> | <p>Hi I am showing a modal when person opens my site which works fine but when user closes it modal-open class is not removed from which doesn't allow them to scroll.</p>
<pre><code> <div id="ageModal" class="modal fade" data-backdrop="static" data-keyboard="false" role="dialog" style="padding-right: 0px;">
... | 1 | 1,805 |
JointJS: make link label movable over the link itself | <p>For the links - in a JointJS diagram - I tried to implement this tutorial (<a href="http://jointjs.com/tutorial/constraint-move-to-circle">http://jointjs.com/tutorial/constraint-move-to-circle</a>) to move the labels on the link, but I don't understand where to put the <code>ConstraintElementView</code>.</p>
<ol>
<... | 1 | 1,083 |
Why mesos-slave asked to kill a task? | <p>I'm running a mesos cluster with with three masters and slaves currently on the same machines.</p>
<p>My question is that sometime I see that a process gets abruptly stopped both in Marathon and Chronos. After checking the logs I saw, that every time, mesos-slave asked the frameworks to kill those tasks.
I've tried... | 1 | 2,342 |
Member initializer list, pointer initialization without argument | <p>In a large framework which used to use many smart pointers and now uses raw pointers, I come across situations like this quite often:</p>
<pre><code>class A {
public:
int* m;
A() : m() {}
};
</code></pre>
<p>The reason is because <code>int* m</code> used to be a smart pointer and so the initializer... | 1 | 2,535 |
Keycloak MySQL setup failed with error "Timeout after [300] seconds waiting for service container stability. Operation will roll back." | <p>I tried with 8.x and 10.x version of Keycloak, also with tried with Keycloak docker image but getting below issue, while configuring Keycloak with MySQL</p>
<pre><code>12:27:16,047 DEBUG [org.keycloak.connections.jpa.updater.liquibase.conn.DefaultLiquibaseConnectionProvider] (ServerService Thread Pool -- 71) Foreig... | 1 | 6,992 |
BackButtonStyle (Part of StandardStyles.xaml in metro app) causes other elements to be disabled | <p>I have used <code>BackButtonStyle</code> which is created in <code>StandardStyles.xaml</code> (while creating new metro project).</p>
<p>Problem is that it disables other controls. Button, and Slider are disabled and cannot be invoked.</p>
<p>When i remove the BackButtonStyle, the other Button/Slider works as norm... | 1 | 4,691 |
Unable to Initialize ngx-charts with API fetched Data | <p>I'm having some bad times while trying to initialize a chart built using <a href="https://github.com/swimlane/ngx-charts" rel="nofollow noreferrer">ngx-charts</a> with API fetched data.</p>
<p>I built a rest api that, upon a proper call, spits out some time-series data.</p>
<pre><code>{
"prices": [
{
... | 1 | 2,391 |
Play and stream transcribe audio with python speech_recognition | <p>I am new to Python and trying to figure out on how I can <strong>transcribe an audio speech from file in realtime</strong> with the sound playing along in the background.</p>
<p>Update:</p>
<blockquote>
<p>@petezurich Sorry for the bad question. Currently, I can hear the
audio playing in the background. Howeve... | 1 | 1,293 |
How to use react-select-async-paginate library on change of different select? | <p>I am trying to implement 2 select box
1st select box will be the simple select box.
2nd select box will have infinite scroller functionality and for this, I am using the <strong><a href="https://github.com/vtaits/react-select-async-paginate/tree/master/packages/react-select-async-paginate" rel="nofollow noreferrer">... | 1 | 1,776 |
Javascript insists it's not defined, it totally is | <p>I'm not used to writing JS, honestly, and to make matters worse I'm working with the Google Maps API which, while well-documented, is a bear. So, I've written a function that allows a users to zoom onto the map from a link. But the interpreter insists my function isn't defined when I call it. The function is "zoomTo... | 1 | 4,276 |
How simplifying fractions in matrices with sympy? | <p>I'm using <code>sympy</code> to find a matrix's inverse. I've the next problem. When I compute the inverse of matrix <code>A</code> and I want prove it, I got a matrix with fractions; I mean</p>
<pre><code>>> import sympy
>> from sympy import pprint
>> from sympy.abc import *
>> import sys
&... | 1 | 1,389 |
Creating a Unit Test of a Chunk Tasklet with Mockito | <p>I have a <code>Chunk Tasklet</code> with a reader and writer, and I am trying to make a Unit Test for it, but I face multiples issues.</p>
<p>I used the answer of the question below, to help creating my Unit Test:<br>
<a href="https://stackoverflow.com/questions/26907419/how-define-a-spring-batch-chunk-in-the-taskl... | 1 | 2,003 |
Test in Eclipse works but sbt throws MissingRequirementError: object scala.runtime in compiler mirror not found | <p>I am messing around with parsing and <code>scala.tools.nsc.interactive.Global</code> in Scala and I ran into a problem while executing tests under sbt. The tests run fine from Eclipse both with <code>JUnitRunner</code> and the <code>ScalaTest</code> plugin. After long time spent on Google I can't figure out how to f... | 1 | 1,822 |
RecyclerView creating and binding all ViewHolders when scrolling | <p>I have a weird issue which I cannot pinpoint. My app fetches movie data from a website, and specifically, a poster image. I created a RecyclerView that is supposed to show all of the posters in a 2-column grid.</p>
<p>Scrolling experience is extremely laggy, and for some reason the items are swapping places mid-scr... | 1 | 1,937 |
GitLab 5.0: Git push via SSH fails, but no errors with HTTPS or with direct SSH connection | <p>When I attempt to git push, I get the usual error</p>
<blockquote>
<p>fatal: Could not read from remote repository.</p>
<p>Please make sure you have the correct access rights
and the repository exists.</p>
</blockquote>
<p>However, pushing and pulling works fine via HTTPS.</p>
<p>I figured it would be a ... | 1 | 1,164 |
CSS / JS transform:translate3d and scrolling - smooth on Android, no momentum on iPhone | <p>I currently have a mobile website project in which I'm creating panels such that one panel can be viewed at a time, where when a user swipes left or right, the panel slides offscreen and a new panel slides in. Everything works fine on Android, and even behavior is acceptable on iPhone.</p>
<p>However, scrolling on ... | 1 | 1,411 |
Arithmetic Coding Compression Algorithm | <p>I am trying to implement arithmetic coding which is a compression algorithm. Here is the compression code in which when I compiled it, it shows "Usage: java ArithmeticCompress InputFile OutputFile" every time. I already give file path but don't understand what's the problem?</p>
<pre><code>public class ArithmeticCo... | 1 | 1,199 |
VB6 program fails opening Excel 2007 with Automation Error Library not registered | <p>I created this VB6 program on my Windows 7 32bit machine with Office 2010 32bit, which runs fine. Tested it on a Windows 8 64 bit machine with Office 2013 32bit, it works. On one machine with, Windows 7 64 bit and Office 2007(32 bit only) it throws an error during the following piece of code.</p>
<p>The actual erro... | 1 | 1,575 |
WScript.Echo output command in cmd | <p>I need some assistance with outputting an error in CMD.</p>
<p>We have a timesheet system that is failing to add holidays into the users time sheets, it's done via a script. here is the portion of the script in question.</p>
<pre><code> sql = "select h_user,h_date1,h_hrs,h_approved,hol_default from holidays,hol... | 1 | 1,215 |
Setting Focus on a Control Within a ControlTemplate (Part 2) | <p>I'm stumped on what must surely be one of the most common WPF requirements. I've read <a href="https://stackoverflow.com/questions/158536/setting-focus-on-a-control-within-a-controltemplate-in-wpf/" title="this">this question</a> but my implementation of the solution does not work.</p>
<p>Here's the markup for the... | 1 | 1,165 |
Programming Contest Question: Counting Polyominos | <p><strong>Please see my own answer, I think I did it!</strong></p>
<hr>
<p>Hi,</p>
<p>An example question for a programming contest was to write a program that finds out how much polyominos are possible with a given number of stones.</p>
<p>So for two stones (<code>n = 2</code>) there is only one polyominos:</p>
... | 1 | 2,981 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.