title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Spring Security Cookie + JWT authentication | <p>I must say I am very confused about the entire model and I need help gluing all the floating pieces together.</p>
<p>I am not doing Spring REST, just plain WebMVC controllers.</p>
<p>My mission:
I want a form login with a username + pass authentication. I want to authenticate against a 3rd party service. Upon succ... | 0 | 1,663 |
@reboot is not working in CRON | <p>I'm trying to run a shell-script and a command at the start of my Ubuntu server. </p>
<p>Here is my <code>CRON</code></p>
<pre><code>@reboot /home/steam/check.sh
@reboot screen -d -S up -m node /var/www/html/Up1/server/server.js
</code></pre>
<p>What I'm getting in the logs:
<code>grep CRON /var/log/syslog</code... | 0 | 1,262 |
Bootstrap and iFrame google map | <p>I've used a Bootstrap template ("Stylish Portfolio" - <a href="http://startbootstrap.com/stylish-portfolio" rel="nofollow">http://startbootstrap.com/stylish-portfolio</a> ) to make a simple portfolio page for a friend of mine.</p>
<p>I should say, that I enjoy to do coding in my spare time, and I am as such not a p... | 0 | 1,044 |
Anaconda: Unable to import pylab | <p>I am unable to <code>import pylab</code> using the latest version of <a href="https://store.continuum.io/cshop/anaconda/">Anaconda</a> (Linux 64 bit). Other packages seem to work fine. (Note: I don't have <code>sudo</code> access)</p>
<pre><code>In [1]: import pylab as pl
-------------------------------------------... | 0 | 1,820 |
Android elevation of View in CardView is not shown | <p>I have a RelativeLayout inside a CardView that i want to elevate in Android Lollipop but the elevation is not shown (the shadow is not shown):</p>
<p><img src="https://i.stack.imgur.com/W4O38.jpg" alt="enter image description here"></p>
<p>My layout file:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>... | 0 | 1,643 |
Vertical Scrollbar disappears in absolutely positioned element | <p><strong>EDIT</strong> : Added : <a href="http://jsfiddle.net/bfNzH/1/" rel="nofollow noreferrer">http://jsfiddle.net/bfNzH/1/</a></p>
<p>My Html is structured like so :</p>
<pre><code> <body>
<div class="wrapper">
<div class="left">left bar</div>
<div class="right"... | 0 | 1,394 |
Deserialize multiple objects from stream by json.net | <p>Greatings! I need to deserialize a file of different objects serialized as json. Here is the resulting file:</p>
<pre><code>{
"Number": 1,
"Description": "Run version with strategy data",
"Context": "NA"
}[
{
"N": 0.0,
"T": 2.0,
"Adc": [
0.0,
0.0,
0.0,
0.0,
0.0,
... | 0 | 3,370 |
WPF Datagrid: Programmatically editing a cell | <p>I have a cell that needs its value to be set on it just being clicked. It is multibound to different properties. </p>
<p>Where am I supposed to do this? I have been trying to do it in the datagrid beginingedit handler like this (without much success). I am able to manually click twice(once to select cell and then t... | 0 | 1,095 |
Best way to structure a two column html form? | <p>What is the best way to align the following?</p>
<p>I want the <code>.inputTitle</code> on the left and the <code>inputInput</code> on the right with the error inbetween them both.</p>
<p><strong>CSS:</strong></p>
<pre><code>.crud_form{
width:430px;
margin:10px solid;
font-family:Verdana, Geneva, sans... | 0 | 1,081 |
How to start nginx via different port(other than 80) | <p>Hi I am a newbie on nginx, I tried to set it up on my server(running Ubuntu 4), which already has apache running.</p>
<p>So after I <code>apt-get install</code> it, I tried to start nginx. Then I get the message like this:</p>
<pre><code>Starting nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
conf... | 0 | 1,364 |
Address is invalid on local machine [on windows 8 only] | <p>I want to check the status code of request to url but getting code</p>
<pre><code>java.net.ConnectException: connect: Address is invalid on local machine or port is not valid on remote machine
</code></pre>
<p>here is my code</p>
<pre><code>public static boolean linkExists(String URLName){
URLName = "http... | 0 | 1,972 |
Angular: mat-form-field must contain a MatFormFieldControl | <p>I am trying to add a form field with custom telephone number input control. I used the example of the phone from <a href="https://material.angular.io/components/form-field/examples" rel="noreferrer">https://material.angular.io/components/form-field/examples</a>.</p>
<p>Here is the code:</p>
<pre class="lang-html pre... | 0 | 1,834 |
AngularJs Grid - Not working when place the code under a event | <p>Here is the code.</p>
<p>Working version - Grid displays and page load.</p>
<pre><code><html ng-app="myApp">
<head lang="en">
<meta charset="utf-8">
<title>Getting Started With ngGrid Example</title>
<link href="http://localhost:4090/Content/ng-grid.min.css" rel="styles... | 0 | 1,421 |
Animate lines in a line graph with D3.js | <p>I have my line graph, with 2 lines.
Data to draw my line graph is pulled from a .csv file.</p>
<p>Can anyone explain how I could start off with an empty graph, and when I click a button,
my lines animate across the graph?</p>
<p>Thanks in advance!!</p>
<p>
var button=d3.select("#button");</p>
<pre><code>var... | 0 | 1,809 |
ES6/Babel Class constructor cannot be invoked without 'new' | <p>I'm trying to create a custom Quill theme, extending the bubble one. I'm facing a strange ES6 inheritance problem, where it seems I cannot call <code>super()</code> in my constructor. Here is my code:</p>
<pre><code>import BubbleTheme, { BubbleTooltip } from 'quill/themes/bubble'
class LoopTheme extends BubbleThem... | 0 | 1,418 |
Send data from android bluetooth to PC with bluecove | <p>I'm trying to send data from android (using API from its SDK) to a PC using Bluecove on windows, being this last one the server.</p>
<p>I can get the android to connect to the server but when I write to the socket's output stream, nothing happens on server. I have the onPut method overriden but it is never called.... | 0 | 1,488 |
IMetadataExchange MEX endpoint error when hosting WCF service in console application | <p>I have a WCF service. I am trying to host the service in a console application.</p>
<p>I am following all the directions <a href="http://bloggingabout.net/blogs/dennis/archive/2006/10/18/WCF-Part-0-_3A00_-Introduction.aspx" rel="nofollow noreferrer">here</a>.</p>
<p>Now everything compiles fine, but I get an excep... | 0 | 1,134 |
PHP Undefined offset: 1 | <p>Here's my PHP script:</p>
<pre><code> <?php
$address = htmlentities(strtolower(Config::get('aac.ip')));
$port = Config::get('aac.port');
@$sock = fsockopen ($address, $port, $errno, $errstr, 1);
if(!$sock) echo '<small class="muted"><strong>Server status:</strong></small> <span cla... | 0 | 1,226 |
Webpack: Taking a long time to build | <p>I have an issue with webpack build times in my react application. Everything builds fine but it takes a long time.</p>
<p>Even I change just the JavaScript files the CSS rebuilds?</p>
<p>Also the CSS compilation is taking a longer than I think it should be (correct me if I am wrong)?</p>
<p>I am running a Core i7... | 0 | 1,425 |
Autowired not working, error 'required a bean of type...' | <p>I'm trying to run a Spring Boot application.
In the first place, I did not indicate the package in Application java with scanBasePackages. So my application run but I have an issue like that : <a href="https://stackoverflow.com/questions/36819277/issue-with-spring-there-was-an-unexpected-error-type-not-found-status... | 0 | 7,623 |
How to pass JsonWebToken x-access-token through angular js | <p>I created a node express RESTful API with jsonwebtoken as authentication method. But unable to pass the x-access-token as headers using angular js.</p>
<p>my JWT token authentication script is,</p>
<pre><code>apps.post('/authenticate', function(req, res) {
// find the item
Item.findOne({
name: req... | 0 | 1,347 |
PHP String concatenation and New Lines | <p>I need a bit of help understanding some PHP behavior that is not making sense to me, thanks in advance for the help.</p>
<p>First off, is there a difference between the use of <code>\r\n</code> and <code>\n\r</code>? I would think logically no, but I am thinking there has to be a practical reason why they are liste... | 0 | 1,352 |
how to fix 'Access to XMLHttpRequest has been blocked by CORS policy' Redirect is not allowed for a preflight request only one route | <p><a href="https://i.stack.imgur.com/8BpwB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8BpwB.png" alt="enter image description here"></a><a href="https://i.stack.imgur.com/FAz9Q.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FAz9Q.png" alt="enter image description here"></a>i'm setting a larav... | 0 | 1,713 |
how to use file system (fs) in angular 2 | <p>In my angular 2 application, need to use file system for uploading large files to Amazon S3 server. But, I have problem in importing file system in my application. Please help to implement file system in my application. </p>
<p>My component.ts file</p>
<pre><code>import { Component,ViewChild } from '@angular/core'... | 0 | 2,144 |
Cannot find name 'Ngform' | <p>I am new to angular and I am working with template driven form.When I am using NgForm Its throwing error : </p>
<p>src/app/pages/add-booking/servicing/servicing.component.ts(40,17): error TS2304: Cannot find name 'Ngform'.</p>
<p>Below is my is code : servicing.component.html</p>
<pre><code><form novalidate #a... | 0 | 2,268 |
How to wrap selected text in ckeditor | <p>I wanted to wrap selected words in <code>CKEditor</code> in a <code><p></code> element.</p>
<p>From:</p>
<pre><code><p>This is a paragraph. And this is Selected text.</p>
</code></pre>
<p>To:</p>
<pre><code><p>This is a paragraph. And this is</p>
<p class="myclass">Selected te... | 0 | 1,206 |
0 - Got Http response code 400 when accessing https://api.sandbox.paypal.com/v1/payments/payment | <p>I'm using the paypal rest API, but I am getting an error. Here is my code:</p>
<pre><code>function makePaymentUsingPayPal($total, $currency, $paymentDesc, $returnUrl, $cancelUrl) {
// set billing address
$addr = new Address();
$addr->setLine1('fh52 N Main ST');
$addr->setCity('Johnstownfhf');... | 0 | 1,053 |
Cannot read property 'toFixed' of undefined (Corrected) | <p>I've been looking at the code and breaking it apart but I can't seem to find what's causing the error. I'm not sure what I'm doing wrong with the .toFixed that's breaking the code. Can you help?</p>
<p>Code (corrected)</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
... | 0 | 2,140 |
Consuming a web service in java and SOAPUI | <p>I am consuming a webservice in java. This service is using UserNameToken, Timestamp and Signature for message level security. I have been given SoapUI project file(xml) to try and get the data from the service. Everything works fine in SoapUI.</p>
<p>Now when I am trying to use the same soapUI file to generate the ... | 0 | 1,910 |
Github Markdown - rendering code blocks with XML & HTML - kramdown vs redcarpet | <p>I'm running into some unusual errors in my git site.</p>
<p>NOTE: I am using Kramdown + highlight.js to highlight code. </p>
<p>Below is a lesson that I am working on. In this lesson, I need to render
<code>EML</code> (similar to XML) in code blocks. I am using kramdown.
I also want to render HTML in code blocks ... | 0 | 1,030 |
What's valid and what's not in a URI query? | <h1>Background (question further down)</h1>
<p>I've been Googling this back and forth reading RFCs and SO questions trying to crack this, but I still don't got jack.</p>
<p>So I guess we just vote for the "best" answer and that's it, or?</p>
<p>Basically it boils down to this.</p>
<blockquote>
<p>3.4. Query C... | 0 | 1,493 |
Equal height of elements inside grid item with CSS grid layout | <p>I have a sequence of articles inside a div of 4+ length, without any rounding row tag. I need to represent it as a table of 3 articles (columns) per row, probably with <code>display: grid</code>. Every article has a header, a section and a footer.</p>
<p>How would I implement an equal height for each header, an equ... | 0 | 1,704 |
Reading and writing to a server-side file in AngularJS | <p><b>I'm attempting to create a simple guestbook</b> with AngularJS, and read and write the names to a simple file. Trouble is, I can't seem to get my code to even read from the file.</p>
<p>This is my directory structure:</p>
<p><img src="https://i.stack.imgur.com/iNzmA.png" alt="Directory Structure"></p>
<p>This... | 0 | 1,081 |
Accessing S3 from Spark 2.0 | <p>I'm trying to access S3 file from SparkSQL job. I already tried solutions from several posts but nothing seems to work. Maybe because my EC2 cluster runs the new Spark2.0 for Hadoop2.7.</p>
<p>I setup hadoop this way:</p>
<pre><code>sc.hadoopConfiguration.set("fs.s3a.impl","org.apache.hadoop.fs.s3a.S3AFileSystem")... | 0 | 1,093 |
How to use nested pydantic models for sqlalchemy in a flexible way | <pre class="lang-py prettyprint-override"><code>from fastapi import Depends, FastAPI, HTTPException, Body, Request
from sqlalchemy import create_engine, Boolean, Column, ForeignKey, Integer, String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import Session, sessionmaker, relationship
fro... | 0 | 2,760 |
In App Purchase Crashes on [[SKPaymentQueue defaultQueue] addPayment:payment] | <p>My In-App-Purchases work. I present a ModalView with a "Buy" UIButton. You click the button and the In App Purchase goes through the process. You can even do it several times in a row.</p>
<p>The problem occurs if you open the Modal View, then close the Modal View (using a UITabBarButtonItem), then reopen the Modal... | 0 | 3,435 |
CAML IN operator and AND operator with multiple condition | <p>The Following CAML Query Not Working for me.. I am not aware much about sharepoint platform. i am using SP 2007 and trying to use IN operator for a lookup field.</p>
<pre><code>"<Where>"
+ "<And>"
+ "<And>"
... | 0 | 1,905 |
Database not copying from assets | <p>Little to say ill just paste my code hoping that someone will see what im missing:</p>
<p><strong>Database.Java</strong></p>
<pre><code>package gr.peos;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import android.content.Context;
import and... | 0 | 1,511 |
FirebaseOptions cannot be null when creating the default app | <p>I am trying to try a sample project in Flutter integration email and google based login, and planning to use firebase initialisation for doing it while I have followed all the steps as mentioned in tutorials I am getting this error as soon as firebase is attempted to be initialised.</p>
<pre><code>"FirebaseOpti... | 0 | 3,378 |
How to export Django model data into CSV file | <p>I want to export all my model data into CSV file :</p>
<p>models.py</p>
<pre><code>import ast
import uuid
import base64
from django.db import models
from django.contrib import admin
from qlu.settings import HOST_NAME,STATS_URI
from django.core.validators import URLValidator
#---------------------------------------... | 0 | 1,895 |
Spring MVC + Spring Security - Controller Authentication using JSON | <p>I'd like to use simple Spring controller to authenticate the Users using Spring Security.</p>
<p>My Controller</p>
<pre><code>@Controller
@Scope("request")
public class Authenticator {
private String username;
private String password;
@Autowired
private AuthenticationManager authenticationManager;
@RequestMappi... | 0 | 1,322 |
Take Picture without preview Android | <p>I would like to take a picture without any preview. I used this code but I'm getting an error:</p>
<pre><code> public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Camera.Parameters parameters = camera.getParameters();
parameters.setPi... | 0 | 1,570 |
Solr indexing - Master/Slave replication, how to handle huge index and high traffic? | <p>I'm currently facing an issue with SOLR (more exactly with the slaves replication) and after having spent quite a few time reading online I find myself having to ask for some enlightenment.</p>
<p><strong>- Does Solr have some limitation in size for its index?</strong></p>
<p>When dealing with a single master, whe... | 0 | 3,658 |
simple java program connecting to database server using JDBC has execution time varying all over the place | <p>I've got a very simple java program (J.java, see below) on my application server that successfully connects to an Oracle 11.2 database on a database server (both servers are Linux CentOS) using JDBC thin driver from Oracle. </p>
<p>As you can see from the setURL command in the Java code below, I've configured the a... | 0 | 1,532 |
Django Unit Testing taking a very long time to create test database | <p>For some time now, my unit testing has been taking a longer than expected time. I have tried to debug it a couple of times without much success, as the delays are before my tests even begin to run. This has affected my ability to do anything remotely close to test driven development (maybe my expectations are too hi... | 0 | 1,266 |
Tukeys post-hoc on ggplot boxplot | <p>Ok, so I think I'm pretty close with this, but I'm getting an error when I try to construct my box plot at the end. My goal is to place letters denoting statistical relationships among the time points above each boxplot. I've seen two discussion of this on this site, and can reproduce the results from their code, bu... | 0 | 1,182 |
Command failed with exit code 1: CI= npm run build | <p>I've been losing my mind over this <br>
I've used <a href="https://www.youtube.com/watch?v=hQAu0YEIF0g" rel="nofollow noreferrer">this</a> video as reference but I'm still getting the error below <br>
I've tried everything from <a href="https://answers.netlify.com/t/netlify-not-building-command-failed-with-exit-code... | 0 | 1,278 |
Creating an XML file from XSD from JAXB | <p>I'm having trouble creating an XML file from XSD using JAXB below is the XSD file used to create it. (Note: Names have been edited due to confidentiality)</p>
<pre><code> <?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespa... | 0 | 1,307 |
XMLHttpRequest: Multipart/Related POST with XML and image as payload | <p>I'm trying to POST an image (with Metadata) to Picasa Webalbums from within a Chrome-Extension. Note that a regular post with Content-Type image/xyz works, as I described <a href="https://stackoverflow.com/q/8243698/420615">here</a>. However, I wish to include a description/keywords and the <a href="http://code.goog... | 0 | 1,249 |
Cordova AJAX request not working | <p>I'm using Cordova 5.3.1, and I seem to be totally unable to make any network requests without errors. If I add</p>
<pre><code>$.ajax( "http://foo.bar.com/getfeed" )
.done(function() {
alert( "success" );
})
.fail(function(jqXHR, textStatus, errorThrown) {
alert( errorThrown );
})
.always(function() {
al... | 0 | 1,299 |
Adding dynamic columns to an ASP.NET Gridview | <p>I'm having a problem dynamically adding columns to a GridView. I need to change the layout -- i.e. the included columns -- based on the value in a DropDownList. When the user changes the selection in this list, I need to remove all but the first column and dynamically add additional columns based on the selection.... | 0 | 1,239 |
Using credentials from Jenkins store in a jenkinsfile | <p>I made a multibranch pipeline project in Jenkins. I need to use two repositories and both need credentials.</p>
<p>I created a Jenkinsfile in repository1:</p>
<pre><code>node ('label1'){
stage 'sanity check'
sh 'echo sanity check'
stage 'checkout other repository'
checkout([
$class: 'GitSCM', branche... | 0 | 5,365 |
Column is not iterable in pySpark | <p>So, we are a bit puzzled. In Jupyter Notebook we have the following data frame:</p>
<pre><code>+--------------------+--------------+-------------+--------------------+--------+-------------------+
| created_at|created_at_int| screen_name| hashtags|ht_count| single_hashtag|
+---------------... | 0 | 1,793 |
Nodejs: convert string to buffer | <p>I'm trying to write a string to a socket (socket is called "response"). Here is the code I have sofar (I'm trying to implement a byte caching proxy...):</p>
<pre><code>var http = require('http');
var sys=require('sys');
var localHash={};
http.createServer(function(request, response) {
var proxy = http.createC... | 0 | 1,517 |
No route matches {:controller=>"stocks", :action=>"create"} RSpec Rails 3 | <p>I don't understand why I'm getting this error message when I run RSpec: </p>
<pre><code>Failure/Error: post :create
ActionController::RoutingError:
No route matches {:controller=>"stocks", :action=>"create"}
</code></pre>
<p>The controller stocks exists, the action create exists, and the route it should ... | 0 | 1,405 |
iOS Paper fold (origami / accordion) effect animation, with manual control | <p>I'm looking for tips on how to implement the popular 'paper folding / origami' effect in my iOS project. </p>
<p>I'm aware of projects such as:
<a href="https://github.com/xyfeng/XYOrigami" rel="noreferrer">https://github.com/xyfeng/XYOrigami</a>
but they only offer the 'animated' effect, with no manual control ov... | 0 | 2,839 |
How to write data in multiple cells in Excel using java? | <p>I wrote a code for writing data in an Excel sheet.In this i have to write the data in multiple cells.But it is showing some Errors.For one cell it is able to change the data.I kept <strong>for loop</strong> for changing the data in multiple cells.For this it is showing Error.
Can any one tell me that where i did mis... | 0 | 1,333 |
Ruby error: undefined method `[]’ for nil:NilClass | <p>I am learning Ruby and I have a bug I cannot understand. I have a method that takes an array of strings (lines) and removes all lines up to a certain line containing a pattern.
The method looks as follows:</p>
<pre><code>def removeHeaderLines(lines)
pattern = "..." # Some pattern.
# If the pattern is not there... | 0 | 1,689 |
How to decode the response returned by powerprofiles.com | <p>Using python2.7.3 IDLE</p>
<pre><code>urllib2.urlopen( "http://www.powerprofiles.com/search?keyword=wholesale&location=&ctry=&sls=&yrs=&emps=&sort=").read()
</code></pre>
<p>It returns me the following response data.</p>
<pre><code>'\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\xed\\}s\xa2\xc8\... | 0 | 9,336 |
How to get div height 100% inside td of 100% | <p>This question seems to have been asked at least 10 other times here on stackoverflow but not one of them actually has an answer. This one is slightly different in that the issue appears in Firefox.</p>
<p>I have a <code>table</code> height 100%, with a <code>tr</code> height 100%. I set the border of the <code>td</c... | 0 | 1,486 |
XML validation No matching global declaration available for the validation root | <p>I have an XML schema provided by Cisco for an IOS XE router. When running the command 'show ip access-list test | format' in the router's cli, it spits out an XML fragment that <em>should</em> validate against this schema. However it does not. Instead I get the error ": <strong>No matching global declaration availab... | 0 | 1,887 |
What is wrong with my config? SEVERE: IOException while loading persisted sessions: java.io.EOFException | <p>I have a web program using struts2, spring3 and hibernate 4 running in Tomcat. It can work, but Tomcat reports a <code>java.io.EOFException</code>.</p>
<p>The following is the tomcat log:</p>
<pre><code>INFO: Deploying web application directory D:\apache-tomcat-7.0.29\webapps\manager
九月 10, 2012 4:27:02 下午 org.apa... | 0 | 1,513 |
Android - starting new Activity (java.lang.NullPointerException) | <p>good morning, I was trying the SharedPreferences Class and I have created two classes, "TestingActivity", extending android.app.Activity and AccountSettings with two static functions to set and recover a KEY from SharedPreferences.</p>
<p>I am having this error while running Intent from the main activity:</p>
<pre... | 0 | 3,645 |
How to Select Items in Dropdown in Selenium | <p>Firstly, I have been trying to get the dropdown from this web page: <a href="http://solutions.3m.com/wps/portal/3M/en_US/Interconnect/Home/Products/ProductCatalog/Catalog/?PC_Z7_RJH9U5230O73D0ISNF9B3C3SI1000000_nid=RFCNF5FK7WitWK7G49LP38glNZJXPCDXLDbl" rel="nofollow">http://solutions.3m.com/wps/portal/3M/en_US/Inter... | 0 | 1,439 |
Error creating bean with name 'entityManagerFactory defined in class path resource | <p>I am getting following error while running spring application. I am very new to spring so very much stuck here . Need some help to resolve this or tell me how can approach to debug and resolve this issue. I am just going through internet and doing different combinations in my Pom file.</p>
<pre><code>14:08:34 [31m[... | 0 | 6,366 |
hudson.util.HudsonFailedToLoad error in Jenkins | <p>I am getting below error when i am trying to access my Jenkins server,</p>
<pre><code>hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
at hudson.WebAppMain$3.run(WebAppMain.java:234)
Caused by: org.jvnet.hudson.reactor.ReactorExc... | 0 | 1,571 |
Keyboard hiding EditTexts in Fragments | <p><strong>edit:
I need to use the keyboard, but it hides my <code>EditText</code>, I need it to scroll so the keyboard is not hiding it.</strong> </p>
<p>I am using a Samsung tablet.</p>
<p>My style:</p>
<pre><code>parent="android:Theme.Holo.NoActionBar.Fullscreen"
</code></pre>
<p>The <code>EditText</code> field... | 0 | 3,701 |
clean-webpack-plugin only accepts an options object | <p>I'm getting</p>
<blockquote>
<p>Error: clean-webpack-plugin only accepts an options object. See:
<a href="https://github.com/johnagan/clean-webpack-plugin#options-and-defaults-" rel="noreferrer">https://github.com/johnagan/clean-webpack-plugin#options-and-defaults-</a></p>
</blockquote>
<p>My Webpack.config.... | 0 | 1,172 |
Change background color to gradient in react-chartjs-2 | <p>I have the following options and dataset:</p>
<pre><code>const chartData = {
labels: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'],
datasets: [{
label: 'Chart',
data: this.transformIntoArray(data),
backgroundColor: 'linear-gradient(to right, #20f08b, #07dfb1)',
bord... | 0 | 1,113 |
Making wide table fit bootstrap container | <p>I have a table like so:</p>
<pre><code><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div class="container">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-... | 0 | 8,121 |
RubyMine error of No Rails Found in the SDK | <p>I updated to Ruby 2.0 and Rails 4.0 and RubyMine stopped working.</p>
<p>If I do my Rails commands through command line tool, they work just fine but if I want to run my project through RubyMine (the latest version) I get <code>error 134</code> and <code>No Rails Founds in the SDK</code> error.</p>
<p>So I am sure... | 0 | 3,435 |
can't connect localhost:3000 ruby on rails in vagrant | <p>I tried to connect localhost:3000 in windows</p>
<p>rails server is running in vagrant(ubuntu 14.10)</p>
<p>portforwarding is done</p>
<p>when, I tried
<code>lynx 127.0.0.1:3000</code> in ubunutu, it works</p>
<p>but, in windows, I can't connect localhost:3000, 127.0.0.1:3000 too</p>
<p>just showed ERR_CONNECT... | 0 | 1,158 |
Spring boot - sending emails with Logback | <p>I am trying to configure Logback to send emails whenever an exception (Logging level: ERROR) occurs. I have not been able to make it work so far so I would like to ask for your help with the configuration.</p>
<p>I have a Spring boot application where some processing is done:</p>
<pre><code>private void foo() {
t... | 0 | 1,777 |
SqlDataReader does not work - does not read data | <p>I have a <code>SqlDataReader</code>, but it never enters into <code>Read()</code>.</p>
<p>When I debug it, it pass the loop <code>while(readerOne.Read())</code>. It never enter into this loop even though there is data.</p>
<pre><code>public static List<Pers_Synthese> Get_ListeSynthese_all(string codeClient, ... | 0 | 3,209 |
Populate HTML table with JSON data | <p>We would be grateful for some guidance, [we are early into coding] and have looked at lots of examples but can cannot get our JSON to import into the table.</p>
<p>At that moment we have the table data in-line however a correctly formatted JSON file is now available and automatically updates and we want to load it ... | 0 | 1,258 |
Item does not exist. It may have been deleted by another user | <p>I keep getting this error:</p>
<pre><code>Item does not exist. It may have been deleted by another user.
</code></pre>
<p>I dont know if theres something wrong with my assembly, but its breaking here:</p>
<pre><code>Line 227:
Line 228:
Line 229: SPListItem item = list.GetItemById(Int32.Parse(pr... | 0 | 1,768 |
How to embed HTML code in Android app? | <p>I am writing an app for which I need to embed HTML object in the Android app, I followed the tutorial given here: <a href="http://mobile.tutsplus.com/tutorials/android/android-sdk-embed-a-webview-with-the-webkit-engine/" rel="nofollow">http://mobile.tutsplus.com/tutorials/android/android-sdk-embed-a-webview-with-the... | 0 | 1,025 |
How to mock API calls made within a React component being tested with Jest | <p>I'm trying to mock a fetch() that retrieves data into a component.</p>
<p><a href="https://github.com/kentcdodds/react-testing-library-course/blob/master/src/__tests__/tdd-03-api.js" rel="noreferrer">I'm using this as a model for mocking my fetches</a>, but I'm having trouble getting it to work.</p>
<p>I'm getting t... | 0 | 1,353 |
Matrix Multiplication in Clojure vs Numpy | <p>I'm working on an application in Clojure that needs to multiply large matrices and am running into some large performance issues compared to an identical Numpy version. Numpy seems to be able to multiply a 1,000,000x23 matrix by its transpose in under a second, while the equivalent clojure code takes over six minute... | 0 | 1,475 |
Deadlock in MySQL due to Insert by multiple threads | <p>I have a multithreaded application that tries to <code>INSERT</code> a record in a table in multiple batches. Each thread processing one batch. At times I get Deadlock error, following is the trace.</p>
<p>The table I am trying to insert a record into is like this: </p>
<p><code>RecordBase (Col1, Col2, Col3)</code... | 0 | 2,403 |
AngularJS - dynamic loading of external JS based on routes | <p>I am trying to make a simple single page mobile app with multiple views and a next\back button to control each view. I am using the Angular Mobile UI library.</p>
<p>The basic mockup is as follows:</p>
<pre><code><html>
<head>
<link rel="stylesheet" href="mobile-angular-ui/dist/css/mobil... | 0 | 1,220 |
Error: connect ETIMEDOUT | <p>I am trying to work with Node and Mysql but i keep encountering error when trying to connect with the Database.</p>
<pre><code> //For mysql server
var mysql = require('mysql');
var connection = mysql.createConnection(
{
host: 'example.com',
user: 'abc',
password: '***',
database: 'abcd',
port: 3306,
});
... | 0 | 2,200 |
Align Card Buttons on bottom Material UI | <p>I am developing an app in ReactJS and i'm using the following: MaterialUI (for react) and React Flexbox.</p>
<p>The problem i'm having is trying to position the card buttons on bottom (the problem that seems to have spammed the internet in different frameworks).
I am using the card from here -> <a href="https://mat... | 0 | 1,225 |
how to update form data in codeigniter | <p>I am new in codeigniter.</p>
<p>I am using codeigniter for this project. I have not getting how to update form data in the database. I have inserting,showing data in the databse is done. But I cant understand, how to update data in the database.</p>
<p>My controller:</p>
<pre><code> class User extends CI_Controll... | 0 | 2,274 |
Embed a Console Window inside a WPF Window | <p>Is it possible to embed a console window inside a WPF window?</p>
<p>As a little background, at first, I tried to implement a console window from scratch in WPF, which was successful except for one huge problem -- it is extremely slow. See the question here:<br>
<a href="https://stackoverflow.com/questions/3219819/... | 0 | 1,084 |
ignore renderbody in razor _layout.cshtml | <p>I have a page for what u need to be signed in to watch it. So I want to try this code:</p>
<pre><code><!DOCTYPE html>
<html lang="de">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8" />
<title>@ViewBag.Title - Meine A... | 0 | 1,750 |
How to fix curl: (35) Cannot communicate securely with peer: no common encryption algorithm(s) | <p>I am trying to access and download some <code>.torrent</code> files from <code>https://torrage.com</code> using <code>php curl</code>.
But nothing happens , <code>curl_error($ch)</code> gives</p>
<pre><code>$ch = curl_init ('https://torrage.com/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent');
curl_setopt... | 0 | 2,951 |
Java Socket Write Error | <p>I'm getting a "Socket Write Error". While scouting around on StackOverflow I found some suggestions for using flush(); method to send bytes through the stream. The problem I'm having is that after using the flush(); method, I still get the error. I'm not sure what is causing the problem. Any ideas? This is the compl... | 0 | 2,516 |
grunt serve: concurrent:server aborts due to warnings | <p>suddenly my projects stops working with grunt. Unfortunately, I haven't committed my changes for a while into git, so I can't tell whats different.</p>
<p>When I run <code>grunt server --verbose</code>, I get the following output (everything above <code>...</code> passes with an <code>OK</code>):</p>
<pre><code>..... | 0 | 8,592 |
Linq to XML - Find an element | <p>I am sure that this is basic and probably was asked before, but I am only starting using Linq to XML.</p>
<p>I have a simple XML that i need to read and write to.</p>
<pre><code><Documents>
...
<Document>
<GUID>09a1f55f-c248-44cd-9460-c0aab7c017c9-0</GUID>
<ArchiveTime>... | 0 | 1,135 |
Auto Sends GPS Coordinates via SMS | <p>I made an Application that shows my GPS coordinates (Langitude and Latitude) number, which designed with out a map. But I would like to send the lat and long to mobile number/phone number Automatically (no need a send button) every time I open this Application. Anyone can help me.. </p>
<p><strong>Gps.java</strong>... | 0 | 1,102 |
"undefined method `title' for nil:NilClass" Rails Guides Tutorial | <p>I am working on RailsGuides Tutorial (creating a blog app). When I run server and open: <code>/posts/new</code> everything looks fine. But, when I try to create a post I get this error:</p>
<blockquote>
<p>NoMethodError in Posts#show</p>
<p>Showing /home/darek/rails_projects/blog/app/views/posts/show.html.er... | 0 | 2,241 |
Execution failed for task ':app:compileDebugKotlin' | <p>I recently updated my kotlin and kotlin extensions plugin and while building I am getting the following error. I tried clean build or sync project with gradle but nothing works</p>
<pre><code>e: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classp... | 0 | 1,438 |
how to upload a image in jsp and store database as blob | <pre><code><%@page import="java.sql.*" %>
<html>
<form method="get" action="blobexcode.jsp" onsubmit="txtvalidate()">
<head>
<style type="text/css">
body{
background-color:#d0e4fe;
}
</style>
</head>
<body>
<table>
<tr>
... | 0 | 1,110 |
overflow:auto doesn't work, does not show the scroll bar | <p>I need to put a vertical scrollbar on each md-content (content-left & content-right). I've been trying to figure this out for several hours, but it isn't working.</p>
<p>This is my example code: <a href="http://codepen.io/anon/pen/zvvodN" rel="noreferrer">http://codepen.io/anon/pen/zvvodN</a></p>
<p>html: </p... | 0 | 1,172 |
HSQL org.hsqldb.HsqlException: invalid schema name | <p>I am using HSQL to run a number of unit tests on my java application. I am using Spring + Hibernate. I am having a problem when switching from MySQL to HSQL. The tests run perfectly on MySQL but whenever I change to HSQL I get the following exception:</p>
<pre><code>Caused by: org.hsqldb.HsqlException: invalid sche... | 0 | 1,223 |
How to get the XML response body back from a JAX-WS client? | <p>I've found a read a number of threads on here about how to retrieve the XML response from a JAX-WS client. In my case, the client is generated from the WSDL via Oracle's JDeveloper product and is going to invoke a Document/Literal service endpoint that was written in .NET. What I want to do is obtain the XML respo... | 0 | 1,219 |
Change locale in android app (onto Hindi) | <p>Creating multi languages support for the app with possibility to change language in App settings.</p>
<p>As for now everything works fine for English, Spanish, Franch, Russian languages,
but doesn't work for Hindi and Chineese.</p>
<p>1) I specify the language name in original language
but in the app instead of ह... | 0 | 2,052 |
Cucumber 1.2.4 not finding step definitions: "You can implement missing steps with the snippets below" (2016) | <p>I'm trying to run Cucumber with Maven on a UNIX-like (unfortunately I'm forced to use Windows, though cmd.exe has the same results) command line:</p>
<p><code>mvn clean test -Dcucumber.options="src/test/resources/com/example/sqa/automation_cuke/pages/sample_test.feature"</code></p>
<p>Results in:</p>
<pre><code>R... | 0 | 4,623 |
Android: Adding a border and rounding to recyclerView items | <p>I have a recyclerView currently set up to add a drop shadow to the bottom of each item with spacing which works well. I want to add a thin gray border around each item as well as a soft rounding if possible. Code so far:</p>
<pre><code> public class VerticalSpaceItemDecorator extends RecyclerView.ItemDecoration ... | 0 | 2,564 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.