title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Centralise node_modules in project with subproject | <p>is it possible to configure grunt in a way that you have the required modules on a central point?</p>
<p>I have following project structure</p>
<pre><code>-Project
-- subproject
-- subproject
-- subproject
</code></pre>
<p>I build the project via grunt with all subprojects, and I can build each subproject for its... | 0 | 1,573 |
Gravity Forms Ajax Not Working | <p>Using Gravity Forms 1.8.1 , no other plugins activated.
Tested also with latest build 1.9.2
Tested using Divi theme, as well as 2015 theme with same results.
Tested in Chrome and Firefox with same results.</p>
<p>Added the following shortcode:</p>
<pre><code>[gravityform id="1" name="test-form-1" ajax="true"]
</co... | 0 | 1,446 |
Invalid address or ENS name | <p>I can't understand what the problem is. When I am run the app I am getting this error:</p>
<pre><code>Unhandled Runtime Error
Error: invalid address or ENS name (argument="name", value=5.050201689117535e+47, code=INVALID_ARGUMENT, version=contracts/5.5.0)
</code></pre>
<p>My code is given below:</p>
<pre><... | 0 | 1,906 |
What is the correct way to read from NetworkStream in .NET | <p>I've been struggling with this and can't find a reason why my code is failing to properly read from a TCP server I've also written. I'm using the <code>TcpClient</code> class and its <code>GetStream()</code> method but something is not working as expected. Either the operation blocks indefinitely (the last read oper... | 0 | 1,190 |
onreadystatechange function not being called | <p>For some reason, onreadystatechange call back function is not being called in asynchronous mode. I tested the post in synchronous mode and confirmed that post itself is working fine (commented out testing code I used to check post in synchronous mode). The problem occurs both in safari and firefox latest version. Ca... | 0 | 1,155 |
Unable to implement A Star in java | <p>I've been trying all day to get this algorithm up and running, but I cant for the life of me. I've read many tutorials on the net, and source code in AS3, javascript, and C++; but I cannot adapt what I am seeing to my own code. </p>
<p>I have created an AStar class that has a nested class named Node. The map is a 2... | 0 | 1,722 |
open jQuery Dialog from codebehind | <p>So i have to show a jquery UI Dialog from codebehind.<br>
I've tried everything: <a href="http://blog.dreamlabsolutions.com/post/2009/06/03/run-jQuery-code-from-ASPNET-Server-Side.aspx" rel="nofollow noreferrer">this</a>, <a href="https://stackoverflow.com/questions/1613545/trigger-jquery-ui-dialog-from-codebehind">... | 0 | 2,207 |
Office 365 XOAUTH2 for IMAP and SMTP Authentication fails | <p>Recently the <a href="https://developer.microsoft.com/en-us/graph/blogs/announcing-oauth-2-0-support-for-imap-smtp-client-protocols-in-exchange-online/" rel="noreferrer">support for OAuth 2.0 for IMAP and SMTP in the Exchange Online</a> has been announced.
Following <a href="https://docs.microsoft.com/en-us/exchange... | 0 | 7,181 |
JBoss: can not connect to MySQL database | <p>I am running <code>JBoss</code> as standalone version. I would like to connect to my local <code>mysql database</code></p>
<p>I copied the mysql connector in modules folder</p>
<pre><code>me@air~/Downloads/jboss/standalone/configuration - 10:56:18 $ ls ../../modules/org/mysql/main/
mysql-connector-java-5.1.22-bin... | 0 | 1,924 |
Jackson bidirectional relationship (One-to-many) not working | <p>I'm using Spring(xml+annotations), Hibernate(annotations) in this web service project. The database relationship diagram, models, expected and actual output are given below,</p>
<p><a href="https://i.stack.imgur.com/hJUxl.png" rel="nofollow noreferrer">Database Table relationship</a></p>
<p>Customer.java</p>
<pre... | 0 | 1,569 |
Unable to initialize FacesServlet in Tomcat 7 - ClassNotFoundException | <p>I am trying out a simple hello world app in JSF but based on the exception thrown by tomcat on start I see that <code>FacesServlet</code> is not getting initialized. I have the required <code>jar</code> files <code>myfaces-api, bundle, impl</code> and commons beanutils, codec, collections, digester, logging. Apart f... | 0 | 1,630 |
How to integrate Karma with TeamCity | <p>I am able to run tests via Karma in TeamCity since you can run anything that's accessible via command line. But, TeamCity only reports overall pass/fail -- does not report details of any failed tests. If it fails, I just get "Process exited with code 1".</p>
<p>The karma homepage says there is a teamcity integrat... | 0 | 1,513 |
Running etcd in Docker container | <p>I want to run <a href="https://github.com/coreos/etcd" rel="noreferrer">etcd</a> in a Docker container with this command:</p>
<pre><code>docker run -p 2379:2379 -p 4001:4001 --name etcd -v /usr/share/ca-certificates/:/etc/ssl/certs quay.io/coreos/etcd:v2.3.0-alpha.1
</code></pre>
<p>and seems that everything is ok... | 0 | 1,605 |
MySQL Error 1118 (Row size too large) when restoring Django-mailer database | <p>I dumped a working production database from a django app and am trying to migrate it to my local development environment. The production server runs MySQL 5.1, and locally I have 5.6.</p>
<p>When migrating the django-mailer's "messagelog" table, I'm running into the dreaded Error 1118:</p>
<p><code>ERROR 1118 (42... | 0 | 1,166 |
Android: getSupportActionBar() always returns null in ActionBarSherlock library | <p>I'm trying to use the <a href="https://github.com/JakeWharton/ActionBarSherlock">ActionBarSherlock</a> library to provide backwards compatible ActionBar support with tabs in my Android app, so I downloaded the latest build, built the demo, and ran it. </p>
<p>If you go to Action Bar, then select Tab Navigation it c... | 0 | 1,521 |
how to access an object created in one stateful widget in another stateful widget in flutter | <p>I am stuck in my project where I have two stateful widgets created in flutter as two different dart files. Now, I have to access the instance of an object created in first widget in the second widget, but I am not so sure how I can do this in flutter when creating widgets.</p>
<p>One possible solution I thought of ... | 0 | 2,132 |
added facebook SDK now unable to resume activity force close | <p>My activity is throwing this error on crash:</p>
<pre><code>java.lang.RuntimeException: Unable to resume activity {com.beerportfolio.beerportfoliopro/com.example.mike.beerportfoliomaterial.MainDrawer2}: java.lang.IllegalArgumentException: Both context and applicationId must be non-null
at android.app.Activit... | 0 | 5,489 |
debugDescription: "Expected to decode Array<Any> but found a dictionary instead.", underlyingError: nil) | <p>I want to load an online json file into my application, but I am running into this error:</p>
<blockquote>
<p>typeMismatch(Swift.Array,
Swift.DecodingError.Context(codingPath: [], debugDescription:
"Expected to decode Array but found a dictionary instead.",
underlyingError: nil))</p>
</blockquote>
<p>I hav... | 0 | 1,611 |
JSF AJAX validation: execute="@this" render="@form" inconsistent depending on prior requests | <p>I have an <code>h:commandLink</code> that calls a method that changes a property bound to a radio input.</p>
<p>I also have a text input on the same form with some validation (required=true).</p>
<p>If I leave the text input blank, and click on <code>h:commandLink</code> with <code>execute="@this</code>, the radi... | 0 | 1,396 |
How to send an email in .Net according to new security policies? | <p>To better protect your users, GMail and others mail providers recommends to upgrade all of our applications to OAuth 2.0. </p>
<p>Am I right that this means that <code>System.Net.Mail</code> don't work anymore and we need to use another library like <code>MailKit</code>?</p>
<p>In general I'm trying to understand ... | 0 | 2,330 |
Material UI Picker - date-fns issue | <p>I am using material UI in my react application and I am having difficulty getting the material-ui-pickers example to work.
Here is the online example from Material UI.
<a href="https://codesandbox.io/s/52p74362pl" rel="noreferrer">https://codesandbox.io/s/52p74362pl</a></p>
<p>The error that i am getting is:</p>
<... | 0 | 1,337 |
Change Spinner dropdown icon | <p>The solutions I found to change the spinner dropdown icon where all:</p>
<p><strong>1. create a custom drawable</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable=... | 0 | 1,330 |
Spring-boot-starter RabbitMQ global error handling | <p>I am using spring-boot-starter-amqp 1.4.2.Producer and consumer working fine but sometimes the incoming JSON messages have an incorrect syntax. This results in the following (correct) exception:</p>
<pre><code>org.springframework.amqp.rabbit.listener.ListenerExecutionFailedException: Listener threw exception
Caused... | 0 | 1,329 |
Open XML - How to add a watermark to a docx document | <p>I'm trying to take an existing document and if a header doesn't exist, create one, and then add a watermark to the header that says "DRAFT" diagonally. I've followed an example posted <a href="http://social.msdn.microsoft.com/Forums/en-US/oxmlsdk/thread/c7c92ca7-94bf-4af3-822d-0b5965f3e5d5/?prof=required" rel="nore... | 0 | 6,374 |
Combobox refresh value and listview when object content change | <p>I would like to update my combobox when the content of the object used to display text in combo changes.</p>
<p>Here is a sample:</p>
<pre><code>package com.javafx.example.combobox;
import javafx.application.Application;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringPropert... | 0 | 2,245 |
Running Oracle on Windows 2008 R2 64-bits and WCF | <p>I'm trying to deploy to a Windows 2008 R2 64-Bits server running AppFabric a WCF 4.0 service that connects to an Oracle 10gR2 database. On my Windows 7 64-Bits, inside Visual Studio 2010, everything goes well.
I first started using Oracle ODP.NET and, on deploy, I started getting the:</p>
<pre><code>System.IO.FileN... | 0 | 1,222 |
Upgrade to 4.0: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?) | <p>I recently upgraded my solution from .net framework 3.5 to 4.0. All good except it gives me some errors in my website project.</p>
<pre><code>The type or namespace name 'Linq' does not exist in the namespace 'System'
(are you missing an assembly reference?)
The type or namespace name 'Linq' does not exist in the ... | 0 | 1,146 |
Enforce max characters on Swing JTextArea with a few curve balls | <p>I'm trying to add functionality to a Swing JLabel and JTextArea such that:</p>
<ul>
<li>The user is only allowed to enter 500 characters into the textarea (max)</li>
<li>The label contains a string message telling the user how many characters they have left (after every key stroke or backspace)</li>
<li>When the co... | 0 | 1,541 |
405 error without Access-Control-Allow-Origin in response from Google reCAPTCHA | <p>I am trying to implement reCaptcha by google, but the validation is failing when i call the api mentioned below. In reCaptcha/admin i have mentioned <strong>localhost</strong> in the Domains list.</p>
<blockquote>
<p>google.com/recaptcha/api/siteverify</p>
</blockquote>
<p>Below is the error that i have been get... | 0 | 8,654 |
java.lang.ClassNotFoundException: org.apache.logging.log4j.Logger after updating log4j 1.2.17 to 2.13.0 | <p>I am running Tomcat v9.0 server on a Java Eclipse project. Each time I run my application on the server I get this Problem Occured message: </p>
<blockquote>
<p>Server Tomcat v9.0 Server at localhost failed to start.</p>
</blockquote>
<p>This is the Console message that I get:</p>
<pre><code>Jan 02, 2020 11:21:... | 0 | 7,461 |
Azure Network Security Groups not working? (attached to subnet) | <p>I am trying to secure some subnets in a virtual network.</p>
<p>I have Virtual Network 1 with Subnets A, B, C.</p>
<p>I have a VM in each subnet with default endpoints (RDP and WinRM). </p>
<p>I used the following commands to create and attach the Network Security Group to subnet C:</p>
<pre><code>$SGName = 'Sec... | 0 | 1,397 |
Analyzing Connection Closed Exception in Spring/JPA/Mysql/Tomcat app | <p><strong>PROBLEM</strong></p>
<p>I have recently been put in charge of a Java web application with code already written and in place. The app receives moderately high traffic and has peak hours of traffic between 11am to 3pm everyday.
The application uses Spring, JPA(Hibernate), MYSQL DB.
Spring has been configured... | 0 | 2,521 |
Programmatically create auto generated coupon codes in Magento? | <p>Based on other stackoverflow posts, I've been able to use the following code to programmatically generate individual shopping cart price rule coupons in Magento. </p>
<p>How can I programmatically call the "Auto Generate Coupon" feature to create 100 unique coupons for each price rule I make? Thanks!</p>
<pre><cod... | 0 | 1,368 |
File res/drawable/abc_ic_ab_back_material.xml from drawable resource ID #0x7f020016 | <p>Recently <code>android support library</code> was updated to <code>23.2.0</code>. After downloading android sdk and updating android design support library into <code>23.2.0</code>, this error happens repeatedly. My project can't even be compiled. The complete error log says:</p>
<pre><code>03-02 12:00:04.945 9324-... | 0 | 2,839 |
Uncaught TypeError: Cannot read property 'call' of undefined after webpack rebuild CommonsChunkPlugin | <p>I have a strange error when trying to require an html file. The code in question is an AngularJs app written in typescript and using webpack.</p>
<p>app.directive.ts</p>
<pre><code>// require('./app.scss');
// import AppController from './app.controller';
function AppDirective(): ng.IDirective {
return {
r... | 0 | 1,407 |
Allow a user to add new users in Devise, and remain logged in as themselves | <p>I am using Ruby On Rails with Devise, Rails 4.1.0.rc1, Ruby 2.1.0p0, devise-3.2.4</p>
<p>I followed the tutorial from Rails Cast Episode #209 to get devise installed and working. I can login and log out and register new users. </p>
<p>I extended my user model to include non-changing information like birthdate, fi... | 0 | 2,426 |
Build a gem with native extension (Gem::Installer::ExtensionBuildError) | <p>I have the following configuration:</p>
<ul>
<li><strong>uname -a :</strong> Linux 2.6.24.2 i686 GNU/Linux (Ubuntu)</li>
<li><strong>ruby -v :</strong> ruby 1.9.0 (2007-12-25 revision 14709) [i486-linux]</li>
<li><strong>rails -v :</strong> Rails 3.0.0.beta3</li>
<li><strong>gem -v</strong> : 1.3.5</li>
<li><strong... | 0 | 2,216 |
how to pass input type file data in ajax call | <p>I've my form</p>
<pre><code><form name="photo" enctype="multipart/form-data" action="<?php echo $_SERVER["PHP_SELF"];?>" method="post">
Photo <input type="file" name="image" size="30" />
<input type="submit" name="upload" value="Upload" />
</form>
</code></pre>
<p>The fo... | 0 | 1,729 |
gnuplot horizontal key | <p>I'm using gnuplot in the multiplot environment. I want to have only one key box (which is not a problem) that i want to put in "horizontal mode" under the plots.</p>
<pre><code>Nice Plot1 | Nice Plot2
Nice Plot3 | Nice Plot4
the keybox
</code></pre>
<p>It seems that the total size of the keybox can't excee... | 0 | 1,153 |
SugarCRM- How to get POPUP when click on Save button? | <p>I want when click Save in Edit View of some module (example Contact) to get pop up with some message (later I will get options OK and Cancel on that pop up.).</p>
<p>My function </p>
<pre><code>YAHOO.SUGAR.MessageBox.show({msg: 'Foo'} );
</code></pre>
<p>is working when I put it at top of editviewdefs.php (I also... | 0 | 1,410 |
Is there any legitimate use for Intel's RDRAND? | <p>Today I thought: well, even if there is great suspicion on RDRAND implementation of <a href="http://en.wikipedia.org/wiki/NIST_SP_800-90A" rel="noreferrer">NIST SP 800-90A</a>, it is still a hardware implementation of pseudo-random number generator (PRNG) that must be good enough for non-sensitive applications. So I... | 0 | 1,214 |
How to make QWidget contents scrollable in PyQt? | <p>First, I started using PyQt few hours ago.
So far so good - im writing rss client to familiarize myself with PyQt
I got <code>QApplication</code>, <code>QMainWindow</code> and two custom widgets.
First custom widget is:</p>
<pre><code>class RssItem(QWidget):
__pyqtSignals__ = ("articleViewed(bool)",
... | 0 | 1,157 |
Not able to configure SSL with Tomcat 7 | <p>I am trying to configure SSL with Tomcat 7 but not able to do so. Please guide.</p>
<h1>Command for generating SSL certificate:</h1>
<pre><code>C:\Java\jdk1.7.0_40\bin>keytool -genkeypair -alias tomcat-keystore -keyalg RSA -keystore C:\my.keystore
</code></pre>
<h1>server.xml</h1>
<pre><code><Connector por... | 0 | 1,040 |
How to keep a method running continuously in background until the program ends? | <p>I want to know, how to keep a method running in the background. ie. this method starts when the program starts and keeps executing its statements until the program is closed.
For ex. lets say i have a method "gravity()" which continuously decrements a certain value while the program is running.
Right now for trying... | 0 | 2,516 |
Google maps set width for InfoWindow | <p>Hi I am using InfoWindow to get custom popup on google maps,
but I can't set it width, I tried setting it inline to wrapper tag, but it doesn't work.
In this case I need it to be 750px.</p>
<p>Here is jsfiddle: <a href="http://jsfiddle.net/xxast/" rel="nofollow">http://jsfiddle.net/xxast/</a>
and here is html file:... | 0 | 1,415 |
Getting error "After parsing a valid expression, there is still more data in the expression: 'lcurly({)'" | <p>I am using Spring-Integration for my project. I am experimenting with reading of the property/constant values from xml file (instead of .properties file).My xml file in which the properties/constants are placed is as below:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<config>
<persisten... | 0 | 4,607 |
java.net.SocketException: Malformed reply from SOCKS server, With apache FTPClient | <p>I am trying to connect to FTP Server using Apache FTPCleint in java web start aplication.
Below is the code i am using.</p>
<pre><code>ftpInstance = new FTPClient();
ftpInstance.setRemoteVerificationEnabled(false);
ftpInstance.connect(<HostName>);
int rpyCode = ftpInstance.getReplyCode();
if(!FTPReply.isPo... | 0 | 1,024 |
Running python script as root | <p>I have the following script:</p>
<pre><code>#!/usr/bin/env python
import sys
import pyttsx
def main(): ... | 0 | 1,029 |
Maven build number plugin, how to save the build number in a file? | <p>I've a Java project using Spring Framework and Git and I wanted to display a build number. I found the <a href="http://mojo.codehaus.org/buildnumber-maven-plugin/" rel="noreferrer">Build Number Maven plugin</a>. With Git the build number is a Git hash. I dislike that and I thought a date was much more expressive.</p... | 0 | 1,585 |
Why are .NET timers limited to 15 ms resolution? | <p>Note that I'm asking about something that will call a callback function more often than once every 15 ms using something like <code>System.Threading.Timer</code>. I'm not asking about how to accurately time a piece of code using something like <code>System.Diagnostics.Stopwatch</code> or even <code>QueryPerformance... | 0 | 1,984 |
React - Expand/Collapse All | <p>I would like to Expand/Collapse all using a single button click.</p>
<p>Created a new component CollapsiblePanel using reactstrap and using the created component in the container(index.js).</p>
<p>Now I can able to expand/collapse all the containers on clicking the button.</p>
<p><a href="https://codesandbox.io/s... | 0 | 2,048 |
urllib2 error no host given | <p>EDIT:(SOLVED) When I am reading the values in from my file a newline char is getting added onto the end.(\n) this is splitting my request string at that point.
I think it's to do with how I saved the values to the file in the first place. Many thanks.</p>
<p>I have I have the following code: </p>
<pre><code>result... | 0 | 1,299 |
Can I set two values for a submit button? | <p><strong><em>Note:</strong> This is a rewrite of an old post to clarify what was being asked.</em></p>
<p>Let's suppose I have a single form that displays a set of rows (for example, lines in an order), and I want to place a "delete" button besides each row, but unfortunately I can't create a single form for every r... | 0 | 1,059 |
How to run a smart loop for subplots in python | <p>So I'm trying to create a 3x3 box of 9 graphs, and while I've managed to do it by manually writing the code for each individual box, I want to learn how to do it using a loop. I can't seem to figure it out. Currently, I'm using the following:</p>
<pre><code>from matplotlib import gridspec
f, ((ax1, ax2, ax3), (ax4... | 0 | 1,417 |
Bootstrap Affix Nav Causes Div Below To Jump Up | <p>I've created a JSFiddle using Bootstrap's affix function to make a nav stay at the top of the screen once you scroll down and the header moves out of view.</p>
<p>The problem I'm having is that when using pure HTML, the text below the nav jumps up and hides behind the nav too early.</p>
<p>Check out the problemati... | 0 | 1,098 |
Can't find Python executable "/path/to/executable/python2.7", you can set the PYTHON env variable | <blockquote>
<p>bufferutil@1.2.1 install /home/sudthenerd/polymer-starter-kit-1.2.1/node_modules/bufferutil > <strong>node-gyp rebuild gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "/path/to/executable/python2.7", you can set the PYTHON env variable</strong>. gyp ERR! stack at fail... | 0 | 1,080 |
org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused in android | <p>I am making an application that uploads images to server and updates its database to server in android while executing it, it shows an error</p>
<pre><code>Connection to http://localhost refused
</code></pre>
<p>and many more errors, I researched this problem and found instead of providing the URL connection</p>
... | 0 | 2,115 |
TypeError: string indices must be integers error when parsing Json with Python | <p>Before you judge and think to yourself 'I've seen this question a thousand times' please read on and give me a chance, I've scoured the internet for answers but can't seem to find any help.</p>
<p>So I am trying to parse json from an API which I obtain using the following code:</p>
<pre><code>url = 'https://api.co... | 0 | 2,013 |
XSD for a tree of string key-value pairs | <p>I'd like to build a XSD for a tree of string key-value pairs.
Something to fit this:</p>
<pre><code><entry>
<key>root</key>
<entry key="name">john</entry>
<entry key="address">
<entry key="street">Rou de Flon 1</entry>
<entry key="city">Lau... | 0 | 1,757 |
How to force OpenSSL to use old ciphers | <p>I'm trying to check the "security" certificate on an APC power distribution unit using OpenSSL from this shell script, but kept getting back an empty response.</p>
<pre><code>#!/bin/bash
host=192.168.242.27
port=443
cert=$(openssl s_client -connect "$host":"$port" 2>/dev/null | sed -n '/BEGIN CERT/,/END CERT/p')... | 0 | 2,048 |
How to respond only to a single-tap gesture while letting objects behind respond to double-taps? | <p>I'm displaying a document in a UIWebView. I want to place a hotspot over the document to trigger an action when it is tapped, but I also want to maintain the default UIWebView behavior of auto-zooming the document when it is double-tapped. I can't figure out how to respond to the single-taps while letting the UIWebV... | 0 | 1,065 |
Best practice to query large number of ndb entities from datastore | <p>I have run into an interesting limit with the App Engine datastore. I am creating a handler to help us analyze some usage data on one of our production servers. To perform the analysis I need to query and summarize 10,000+ entities pulled from the datastore. The calculation isn't hard, it is just a histogram of i... | 0 | 2,866 |
ASP.NET MVC Single Sign-on and Roles | <p>I have basic Single Sign-On working across 2 MVC sites (call them SiteA and SiteB) using something along the lines of the following method:</p>
<p><a href="http://forums.asp.net/p/1023838/2614630.aspx" rel="nofollow noreferrer">http://forums.asp.net/p/1023838/2614630.aspx</a></p>
<p>They are on sub-domains of the ... | 0 | 1,414 |
Two-Way databinding in EditText | <p>I have this object </p>
<pre><code>ObservableInt someNumber;
public ObservableInt getSomeNumber()
{
return someNumber;
}
public void setSomeNumber(ObservableInt number)
{
this.someNumber = number;
}
</code></pre>
<p>and my AppCompatEditText is like this in xml code:</p>
<pre><code><android.support.v7... | 0 | 4,411 |
Spring MVC Neither BindingResult nor plain target object for bean name | <p>For some reason I cannot seem to fix this issue, even after looking at multiple examples on here.</p>
<p>I am trying to handle a form using Spring 3 MVC, but I am getting the following error:</p>
<pre><code> Neither BindingResult nor plain target object for bean name 'reverseString' available as request attribute
... | 0 | 1,539 |
.NET & MySQL error - A call to SSPI failed ... "message received was unexpected or badly formatted" AND "buffers supplied to a function was too small" | <p>I hope this is not too vague of a question, but I have looked far and wide but have not been able to find <strong>anything</strong> helpful for this error.</p>
<p>I have a .NET 4.5.2 web service tier (using ServiceStack & Dapper) that has been receiving these two errors infrequently ever since we deployed the s... | 0 | 2,198 |
Can maven parent project include a module at same directory level | <p>I am working in an established codebase with an existing standalone pom.xml.</p>
<p>Th intention is to incorporate a child project called "hive" in a subdirectory off of the parent one. Note: the hive/pom.xml does already exist and it works fine by itself.</p>
<p>So in the parent's pom.xml I added:</p>
<pre cla... | 0 | 1,285 |
Webpack 4 Code splitting generating separate vendor files for each route | <p>I am trying webpack 4 (4.0.1) with code splitting. I am using dynamic loading to load React components.The react components, in turn, are importing components from internal npm modules. For instance,
In my app I have the following routes.</p>
<pre><code><Route exact path="/" component={Home} />
<Route pat... | 0 | 1,442 |
tomcat startup issue on windows with intellij-idea | <p>I'm trying to move a spring mvc project from jboss 7.1.1 to Tomcat 8. I have Tomcat 8 installed via the windows service package and it's successfully running. I'm using intellij to deploy the exploded jar for the project, and I'm getting a startup error with Tomcat that I can't seem to figure out. It may be a simple... | 0 | 4,613 |
Opencv kalman filter prediction without new observtion | <p>I wan to use Opencv Kalman filter implementation for smooth some noise points. So I've tried to code a simple test for it.</p>
<p>Let's say I have an observation (a point). Each frame I'm receiving new observation, I call Kalman predict and Kalman correct. The state coming after opencv Kalman filter correct is "fol... | 0 | 2,440 |
upload file springboot Required request part 'file' is not present | <p>I want to add an upload function to my spring boot application;
this is my upload Rest Controller </p>
<pre><code>package org.sid.web;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
impor... | 0 | 1,059 |
unable to find attribute android:font for v7 support | <p>I've been developing a Linphone application but got stuck in below point. I've changed the app name and refactored all relative packages. The application was ok until I upgraded gradle to 3.0.0. </p>
<pre><code>AGPBI: {"kind":"error","text":"error: resource android:attr/fontStyle not found.","sources":[{"file":"~/.... | 0 | 3,157 |
mysqld: File '/var/log/mysql/mysql-bin.index' not found (Errcode: 13) | <p>I faced with this error after trying to restart MySQL server. </p>
<pre><code>root@private:/# mysqld_safe
140618 03:56:53 mysqld_safe Can't log to error log and syslog at the same time. Remove all --log-error configuration options for --syslog to take effect.
140618 03:56:53 mysqld_safe Logging to '/var/log/mysql... | 0 | 1,177 |
How do I cure the cause of Hibernate exception "IllegalArgumentException occurred while calling setter"? | <p>How do I cure the cause of the occasional exception <code>IllegalArgumentException occurred while calling setter</code> that Hibernate throws when my program attempts to load a user by name from the database?</p>
<p>Am I incorrectly mapping column <code>USER_RV</code> in table <code>User</code> to class <code>Integ... | 0 | 2,928 |
react with IE11 is not working, displaying blank screen | <p>when trying to load application in IE11 it just shows blank screen and errors with syntax error</p>
<p>on this line</p>
<p><code>class App extends __WEBPACK_IMPORTED_MODULE_0_react__["Component"] {</code></p>
<p><a href="https://i.stack.imgur.com/dD48t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgu... | 0 | 2,008 |
java.lang.IllegalArgumentException: Must specify an idToken or an accessToken | <p>I am trying to implement google sign in authentication using firebase.
I was following <a href="https://www.youtube.com/watch?v=-ywVw2O1pP8&t=4s" rel="noreferrer">this</a> tutorial.</p>
<p>Error log :</p>
<blockquote>
<p>java.lang.RuntimeException: Failure delivering result
ResultInfo{who=null, request=100... | 0 | 3,991 |
java.net.ConnectException: Connection refused: connect: localhost | <p>I am trying to connect to h2 database from a hibernate project.</p>
<p>It worked fine with Oracle but I need to migrate to H2.
The only things that I have changed are the driver and the hibernate.cfg.xml</p>
<p>pom.xml</p>
<pre><code><dependency>
<groupId>com.h2database</groupId>
<art... | 0 | 2,995 |
How to set Wallpaper style (Fill, stretch) according to windows version | <p>I am trying to make a wallpaper style stretched if Windows version is Vista,
and Fill in case of windows 7, in VB.NET. I got the program to change a Wallpaper , but Im having a problem with applying a style. ( Program consists of a browse button, picture box and Apply button).
Your help would be appreciated.
Here i... | 0 | 3,623 |
django uploading files without model | <p>I would like to upload files (text/images) without a model ( just using views and templates). I would ideally like to read or write to location.</p>
<p>My current code is as below:</p>
<p>In my template /foo/help/UploadFileContent.html</p>
<pre><code><!doctype html>
<html>
<body>
<link rel="... | 0 | 2,195 |
How to manually start a transaction on a shared EntityManager in Spring? | <p>I have a <code>LocalContainerEntityManagerFactoryBean</code> as <code>EntityManager</code> instance.</p>
<p>To quickly drop a full tables' content, I want to run the following code:</p>
<pre><code>@Service
public class DatabaseService {
@Autowired
private EntityManager em;
@Transactional
public vo... | 0 | 2,019 |
Google Places Api sort by distance | <p>Currently developing an <code>Android</code> application that returns the closest 20 location to the users current location. </p>
<p><code>Google Places API</code> is returning ~20 places close to the users location but not the <em>closest</em> 20 sorted by distance. </p>
<p>Looking at the <a href="https://develop... | 0 | 1,274 |
Kafka Consumer does not receive messages | <p>I am a newbie in Kafka. I read many instructions on the Internet to make a Kafka Producer and Kafka Consumer. I did the former successfully which can send messages to Kafka cluster. However, I did not complete with the latter one. Please kindly help me to solve this problem. I saw my problem likes some posts on Stac... | 0 | 3,963 |
OpenCV image transformation and perspective change | <p>I'm trying to achieve the following effect, shown here using the perspective tool in GIMP.</p>
<p><strong>original image (620x466 pixels)</strong></p>
<p><img src="https://i.stack.imgur.com/1RxIB.png" alt="original image (620x466 pixels)"></p>
<p><strong>transforming the image</strong></p>
<p><img src="https://i... | 0 | 1,655 |
ReferenceError: invalid assignment left-hand side | <p>What's wrong in the next code? It is inside $dialogContent.dialog</p>
<pre><code>buttons: {
save : function() {
calEvent.start = new Date(startdateField+' '+starttimeField.val()); // 11/25/2012 15:00
calEvent.end = new Date(endField.val())... | 0 | 1,540 |
Yii date, hour, minute -> datetime string -> MySQL datetime | <p>I'm using Yii to construct a web application. One of my input forms has a CJuiDatePicker for the date. I have two drop down lists, one for the hours, and one for the minutes.</p>
<p>My problem is in the data model, where I'm trying to convert the date, hour, and minute from the form into a MySQL datetime string. ... | 0 | 1,337 |
How DIV & CSS work with Rowspan & Colspan? | <p>I have studied few days about how to use div to create table cells and merge cells, Actually I can did this with TABLE, but can't do the same screen result in DIV, hope someone can help me drive me the better method or fix the code.</p>
<p>Actually, I want to make all the cells in same Width and Height (Except the ... | 0 | 2,066 |
RecyclerView IndexOutOfBoundsException | <p>Why exception execute when I removed some items in <code>RecyclerView</code> by using loop ?
I used <code>Collentions.synchronizedMap</code> in adapter and 'deleteItem method' use synchronized too (the method in fragment). </p>
<pre><code>public void elementController(JsonObject jsonObject , String type) {
if... | 0 | 1,913 |
Entity Framework Error: "The container 'XXXX' specified for the FunctionImport could not be found in the current workspace." | <p>I am executing this</p>
<pre><code> EntityConnection entityConnection = (EntityConnection)context.Connection;
EntityCommand command = entityConnection.CreateCommand();
command.CommandText = "Genesis.AL_Insert";
command.CommandType = CommandType.StoredProcedure;
//Parametr... | 0 | 1,107 |
Why am I getting error: initializing argument 1 of 'Item::Item(int)' [-fpermissive] in Eclipse when I try to compile my C++ code? | <p>I'm new to C++, and have finally given up on trying to get this to compile after staring at it for too long. The compiler seems to be rejecting the constructor prototype in the header file for some reason... I can't figure out what's wrong with it.</p>
<p>Item.h:</p>
<pre><code>#ifndef ITEM_H_
#define ITEM_H_
cl... | 0 | 1,156 |
Correlation failed. at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler during OIDC authentication | <p>I am hitting this with the following combination:</p>
<ol>
<li>Browser incognito mode (Chrome)</li>
<li>Application is behind Azure application gateway (no repro if it isn't). Cookie based affinity is turned OFF (default); if turned ON, seems to make repro happen more often.</li>
</ol>
<p>Code is rather plain vanill... | 0 | 1,039 |
Printing out all the objects in array list | <p>I need to be able to print out the Student objects(all variables) in my array list. Is this possible? When i try to print it outputs this sort of thing e.g <code>student.Student@82701e</code>. I think it's <code>hexadecimal</code> or something</p>
<p>This is my code:</p>
<pre><code>package student;
public class S... | 0 | 1,350 |
Parsing soap/XML response in Python | <p>I am trying to parse the below xml using the python. I do not understand which type of xml this is as I never worked on this kind of xml.I just got it from a api response form Microsoft.</p>
<p>Now my question is how to parse and get the value of <code>BinarySecurityToken</code> in my python code.</p>
<p>I refer t... | 0 | 1,878 |
How to set schema with node-postgres | <p>I'm trying to query against a schema called <code>DOCUMENT</code> in my postgres db using <a href="https://www.npmjs.com/package/pg" rel="noreferrer">node-postgres</a>.</p>
<p>I can't seem to get a query to run against the specified schema.</p>
<p>This query runs fine directly against postgres using psql</p>
<pre... | 0 | 1,096 |
Fatal error on /app/code/core/Mage/Core/Model/Resource/Resource.php in Magento | <p>Just upgraded a Magento install from 1.5 to 1.6, and left with this error:</p>
<blockquote>
<p>Fatal error: Call to a member function insert() on a non-object in
/hsphere/local/home/t21004/XXXXXXXXXXXXX.com/app/code/core/Mage/Core/Model/Resource/Resource.php
on line 133</p>
</blockquote>
<p>The contents of l... | 0 | 5,316 |
How do I stop getting ImportError: Could not import settings 'mofin.settings' when using django with wsgi? | <p>I can't get wsgi to import my settings file for my project 'mofin'.</p>
<p>The list of errors from the apache error log are as follows</p>
<pre><code>mod_wsgi (pid=4001): Exception occurred within WSGI script '/var/www/wsgi-scripts/django.wsgi'.
Traceback (most recent call last):
File "/usr/lib/python2.5/site-pa... | 0 | 2,132 |
ggplot/mapping US counties — problems with visualization shapes in R | <p>So I have a data frame in R called obesity_map which basically gives me the state, county, and obesity rate per county. It looks more or less like this:</p>
<pre><code>obesity_map = data.frame(state, county, obesity_rate)
</code></pre>
<p>I'm trying to visualize this on the map by showing various obesity rates per c... | 0 | 1,774 |
Exception 'could not find driver' while migration in yii2 | <p>This my stack trace:</p>
<pre><code> Exception 'yii\db\Exception' with message 'could not find driver'
in /opt/lampp/htdocs/advanced/vendor/yiisoft/yii2/db/Connection.php:534
#0 /opt/lampp/htdocs/advanced/vendor/yiisoft/yii2/db/Connection.php(836): yii\db\Connection->open()
#1 /opt/lampp/htdocs/advanc... | 0 | 1,466 |
could not find class referenced from method android java.lang.NoClassDefFoundError | <p>I'm calling for a separate class I have written in same package as my <code>MainActivity</code> class is saved. but when I run the application it gives me <code>java.lang.NoClassDefFoundError</code>. I can't understand why another class defined in same package cannot be identified. I have tried many methods suggest ... | 0 | 5,770 |
How to display Toast from a Service after main Activity finishes? | <p><strong>UPDATE:</strong> I don't agree that this is a duplicate - because I am seeking for a way to exit the main app and still show a Toast from the service.</p>
<p>In <a href="https://github.com/afarber/android-newbie/tree/q12/MyNotification/src/de/afarber/mynotification" rel="noreferrer">a very simple test app<... | 0 | 1,285 |
JSF 2 managed bean does not get instantiated | <p>I am having this problem in this sample jsf project I created. Managed beans do not get instantiated.
Bean class:</p>
<pre><code>@ManagedBean(name="loginMB")
@RequestScoped
public class LoginMB extends AbstractMB {
private static final long serialVersionUID = -8523135776442886000L;
@ManagedProperty("#{user... | 0 | 2,223 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.