title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How do I properly impersonate another user in CoCreateInstanceEx using COAUTHIDENTITY? | <p>I am currently working on a MFC application which needs to retrieve data from a COM object running on another system. We already have this same data exchange mechanism working and fully supported when both systems are running Windows XP and the same manually set up user account (i.e. same username and password on bo... | 2 | 1,241 |
TFS 2012 How to build a solution with external dll reference | <p>I am new to TFS trying to set up the build on TFS 2012.</p>
<p>My Directory Structure is </p>
<pre><code>Web
_Common
thirdparty
Telerik
RadControls
2011.3.1305.40
Bin40 (All Dll's)
Utilities.NET4.0
Utilities(VB Project folder)
... | 2 | 1,884 |
Solr core creation on HDFS failing | <p>I am trying to make Solr 4.7.2 work with HDFS (using Hadoop 2.4.1).</p>
<p>Here is <code>solrconfig.xml</code>:</p>
<pre><code><?xml version='1.0' encoding='UTF-8' ?>
<config>
<luceneMatchVersion>LUCENE_47</luceneMatchVersion>
<lockType>hdfs</lockType>
<unlockOnStartup>tr... | 2 | 1,067 |
Flask endpoint issue - decorator login check | <p>I'm getting an issue</p>
<pre><code>BuildError: Could not build url for endpoint 'home'. Did you mean 'Welcome' instead?
</code></pre>
<p>Welcome is another function in the application (first function defined)</p>
<pre><code>def loginRequired(func):
def wrapper():
access_token = session.get('access_to... | 2 | 1,255 |
Increasing the volume of an HID device using feature reports | <p><strong>What hex code do I need to send to the device (and what report index) to trigger a volume change?</strong></p>
<p>I'm trying to use HID feature reports to increase the volume of a <a href="https://en.wikipedia.org/wiki/Jabra_(headset)" rel="nofollow noreferrer">Jabra</a> 410 headset. The Jabra provides the ... | 2 | 6,098 |
jQuery mouseover not working in MVC3 | <p>Earlier today I asked a question and got a good answer <a href="https://stackoverflow.com/questions/12493912/jquery-pause-delay-timer-on-mouseover/12494127#comment16814309_12494127">here</a>. However when I added the code to my MVC3 project the jQuery <code>mouseover</code> event never gets fired. The jsFiddle in th... | 2 | 1,274 |
Xcode can not be installed on OSX 10.9.2 | <p>Using OS X 10.9.2 Mavericks</p>
<p>I have troubles installing the github-pages gem. I need to install Xcode first, but that results in an error.
I tried to install Xcode using the command: <code>xcode-select --install</code>. The dialog box displays three options: Download Xcode, Not now, Install
When I select 'Ins... | 2 | 5,036 |
how to modify the width of search container column text? | <p>how to modify the width of search container column text?</p>
<p>I want to change the width of the <code><th></code> table.</p>
<p>I used the attribute <strong>cssClass</strong> of <code><liferay-ui:search-container-column-text></code> liferay taglib but I did not work for me.</p>
<p>Table header:</p>
... | 2 | 1,135 |
Swift: Contact detection between 2 nodes? | <p>Alright, so I've been following various other SO links and trying to figure this out- I need to have contact detection between 2 nodes. Not collision detection, which I learned results in the nodes bouncing each other around. I don't want them to knock each other around, I just want to know when they touch.</p>
<p>... | 2 | 1,639 |
ASP.NET MVC Post Controller Action Invoked multiple times | <p>I have an MVC application which is a very simple form of 6 fields. The form data is saved to my database via Entity Framework. Most of the time the data saves properly without issue, but randomly duplicates are appearing. I first thought it was a EF issue with duplicates (sometimes 1,3,5 of the same record) being sa... | 2 | 2,751 |
Dependent Dropdown with React Hooks | <p>I am new to react and have been having hard time implementing this dependent dropdown. I want to get the lists of states and filter out location that renders to the second dropdown. Below is what i tried implementing. The States and Location data is pulled from an API.</p>
<p>I was able to pull the states data but g... | 2 | 1,519 |
CSS Grid, ng-repeat and unknown data | <p>Here is the problem. The code is receiving data from a web service in a multidimensional array format. The number of rows and columns, and what those columns are called (keys) are also unknown until run-time. I need to display a grid of that data in a table-like structure. We would like to display this data using CS... | 2 | 1,546 |
Can't set LD_LIBRARY_PATH to launch gdb, from toolchain, from Visual Studio Code | <p>I tried on both:</p>
<ol>
<li>Windows 10, VSCode 1.52.1, Remote - WSL v0.52.0, Ubuntu 18.04 LTS</li>
<li>Virtual Ubuntu 20.04 LTS, VSCode 1.52.1</li>
</ol>
<p>And wasn't able to run GDB from VS Code, because I need to specify LD_LIBRARY_PATH for it.<br />
I can run it from console as:<br />
<code>LD_LIBRARY_PATH=/op... | 2 | 1,935 |
Passing parameter from one page to another - The scope of the object referenced by expression is shorter than the referring managed beans error | <p>I am trying to pass a parameter from one page to another, but when i press the button "Details" it gives me this error: "Unable to create managed bean agencyDetailBean. The following problems were found: - The scope of the object referenced by expression #{agency}, request, is shorter than the referring managed bean... | 2 | 1,520 |
VAT validation from php to javascript | <p>I have fine this interesting function at this <a href="https://stackoverflow.com/a/29955950/9358981">link</a>
This work well for check the VAT number in EU. But I can't integrate with my registration form. I will like to transform this in a js function, to use this before I send the registration data, I'm trying but... | 2 | 1,027 |
Checkboxes for taking input for a sql query in VBA (userform-excel) | <p>I am trying to create a userform - which will have checkboxes for different years and command buttons for different queries. So if for example a user choses three checkboxes -1990,1993, 1995 and then the user clicks on a particular query. Then that query must be executed with that year in going into the "<strong>whe... | 2 | 1,717 |
WPF usercontrol out of bounds of the Grid | <p>I have a WPF app that I'm testing which loads a XML and visualizes it in a usercontrol. Now the issue I'm having is that every time I load my user control the <code>HorizontalAlignment</code> is okay, but the <code>VerticalAlignment</code> doesn't adept to the height size of the usercontrol.</p>
<p>Anyone has an id... | 2 | 1,924 |
pip3 install ibm_db fails inside docker image | <p>I'm trying to have a python serive running on a Linux Ubuntu machine. My Dockerfile has a command that successfully installs all dependecies in requirement.txt, but fails for ibm_db due to time out error. Dockerfile sample below: </p>
<pre><code>FROM python:3.5
# This fails
RUN pip3 install ibm_db
# This passes w... | 2 | 2,309 |
Format-List w/ No Headers | <p>I am looking for a way to do the same thing as <code>Format-Table -HideTableHeaders</code>, except with <code>Format-List</code>, I have looked all around... but haven't found any solutions.</p>
<p>Background, I am importing the same csv over and over, but over time, new rows will be added. When they are, I am send... | 2 | 1,295 |
How can I write confusion_matrix and classification_report to txt | <p>I am trying to write to the txt the matrix obtained from the function - sklearn.metrics.confusion_matrix
and the statistic from - classification_report </p>
<p>I get the following error -
"Expected 1D or 2D array, got %dD array instead" % X.ndim)
ValueError: Expected 1D or 2D array, got 0D array instead</p>
<p>Do... | 2 | 1,152 |
Python SAX Parser | <p>Please help. I am trying to parse a large XML file and transfer the data into a CSV file. I keep loosing a lot of the data between tags and can't figure out why.</p>
<p>Here is some of the XML:</p>
<pre><code><testcase internalid="1256092" name="hls_vtt_single_default_diable_vtt">
<node_order><... | 2 | 1,143 |
Kotlin - unresolved reference for constant | <p>I'm trying to use the sample code of the new camera hardware API (android.hardware.camera2) for my android app. First, I converted the Java code to Kotlin code by the automatic conversion feature of the Kotlin plugin for Android Studio. Below is a piece of the converted code:</p>
<pre><code>private val mCaptureCall... | 2 | 1,225 |
How can I move my JS objects smoothly using keyboard input? | <p>So I am new to HTML5 and decided to start to code a pong game. I want to move my characters smoothly using my keyboard, the W and S keys for the one on the left and the Up and Down arrows for the one on the right. I can't seem to get it to work. It's probably quite easy, but me being the noob I am, I need a bit of h... | 2 | 2,004 |
Using protractor with directconnect=true - how to fix - This version of ChromeDriver only supports Chrome version | <h3>package.json</h3>
<pre class="lang-js prettyprint-override"><code>{
"name": "test1",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "npm run webdriver-update && npm run test-protractor",
"test-protractor": "protractor protractor.conf.js",
"webdriver-up... | 2 | 1,447 |
Apache Tomcat 10.0.0-M1 using JSP Absolute uri http://java.sun.com/jsp/jstl/core cannot be resolved | <p>I have tried everything in the multiple threads on this site (non of them were for Tomcat 10 and non of the solved problem. I am using Apache NetBeans 11.1 with Apache Tomcat 10.0.0-M1. Below is my configuration -- if I remove the taglib line from my jsp file, the error goes away.</p>
<p>web.xml:</p>
<pre><code>&... | 2 | 2,747 |
How to read all "last_changed" records from Firebird DB? | <p>My question is a bit tricky, because it's mostly a logical problem.<br>
I've tried to optimize my app speed by reading everything into memory but only those records, which changed since <em>"last read"</em> = greatest timestamp of records last time loaded. </p>
<p>FirebirdSQL database engine does not allow to upda... | 2 | 1,559 |
Dynamic IL method causes "Operation could destabilize the runtime" | <blockquote>
<p>System.Security.VerificationException:
Operation could destabilize the
runtime.
at Connance.CommunicatorApi.ReportApiClient.AcknowledgeRecallsAsyncDynamicHandler(Object
, AcknowledgeRecallsCompletedEventArgs
)</p>
</blockquote>
<p>That's the error I'm getting. What I'm trying to do (... | 2 | 1,306 |
XPages DateTextBox - setting constraints | <p>I am working with the date text box and had a few questions. This is with designer 9, so its using dojo 1.8 not that it should make too much difference.</p>
<p>Setting Min / Max dates</p>
<p>I don't see a way to do this in designer. There isn't anything in xe:djDateTimeConstraints that matches, so is this someth... | 2 | 1,112 |
How to import OpenMP and MPI to a large CLion CMake project? | <p>I am new to OpenMP and MPI, and I want to import OpenMP and MPI to my existing CMake project. Therefore --</p>
<p>First, I created a very simple MPI project. </p>
<p>main.cpp:</p>
<pre><code>#include "mpi.h"
#include "iostream"
int main(int argc, char** argv){
MPI_Init(NULL, NULL);
int world_size;
M... | 2 | 1,736 |
How to put a AdMob banner below a view with MATCH_PARENT height? | <p>I have a <code>ViewPager</code> with a <code>PagerTitleStrip</code> which has <code>MATCH_PARENT</code> height. The pages haves only a text, but some pages have vertical scroll because the text is very long.</p>
<p>Now I'm trying to find the best strategy to put an AdMob banner in the bottom of my layout. This is t... | 2 | 1,301 |
How can I allow only numbers, one comma, and two digits after the comma in my input field? | <p>I have an input field, that only allows numbers and one point. </p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>$('.number').keypress(function(event) {
var $this = $(th... | 2 | 1,449 |
Unity - EditorGUILayout show hidden element inside Serializable field | <p>I am using Unity 2018.3.14f1 and I am trying to create new <code>ScriptableObject</code>.
Here is my code:</p>
<pre><code>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Items;
using System;
#if UNITY_EDITOR
using UnityEditor;
#endif
[CreateAssetMenu(fileName = "New Weapon", me... | 2 | 1,109 |
What to do with negative rho values in hough transform? | <p>Here is my code for creating the <code>hough accumulator</code> for lines in image :</p>
<pre><code>void hough_lines_acc(cv::Mat img_a_edges, std::vector<std::vector<int> > &hough_acc) {
for (size_t r = 0; r < img_a_edges.rows; r++) {
for (size_t c = 0; c < img_a_edges.cols; c++) {
... | 2 | 1,618 |
Sharepoint Rest OData Api returns a strange error | <p>I am using the OData Rest Api of Sharepoint 2013 to get and post data in my .Net application. The get works fine but the post throws me a an error. I see this in my fiddler:</p>
<pre class="lang-xml prettyprint-override"><code><m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
... | 2 | 1,088 |
Using Generics with GWT-RPC isn't working as expected | <p>Rather than creating a hundred different GWT-RPC service and serviceAsync classes, I'm trying to create a single service using generics. Here's the interface:</p>
<pre><code>@RemoteServiceRelativePath("dispatch")
public interface CommandService extends RemoteService
{
public <T> Result<T> e... | 2 | 1,086 |
Android Fragment casting error with second FragmentTransaction.replace() call | <p>I have 3 types of fragments all being held in my <code>fragment_container</code>in my <code>classic_menu.xml</code>for my <code>MainActivity.java</code>. I start with fragment A and by pressing a button go to fragment B via a method I have that uses <code>FragmentTransaction.replace(R.id.fragment_container, B)</code... | 2 | 4,353 |
Rails Devise confirmable error | <p>Currently trying to integrate a confirmation mail with devise authentication. I followed the instruction's from the devise documentation: </p>
<p><a href="https://github.com/plataformatec/devise/wiki/How-To:-Add-:confirmable-to-Users" rel="nofollow noreferrer">https://github.com/plataformatec/devise/wiki/How-To:-Ad... | 2 | 1,037 |
Python file handling within threads | <p>Hello I have a program that looks through a range of data and finds anomalies in that data. To make my program faster I incorporated the use of threads (66 in total) now when my program finds the anomalies I would want it to write it to a file but however when i try to write to the file from within multiple threads... | 2 | 1,098 |
How to merge word documents with different headers using openxml? | <p>I am trying to merge multiple documents into a single one by following examples as posted in this other post.
I am using <code>AltChunk altChunk = new AltChunk()</code>. When documents are merged, it does not seem to retain seperate hearders of each document. The merged document will contain the headers of the first... | 2 | 1,160 |
MVC 3 DropDownList Syntax for a View/Model/Controller | <p>I have looked through most of the blog postings here dealing with MVC and how to use a DropDownList with little success.</p>
<p>I tried to mimic a post at this link but obviously not working for me: <a href="https://stackoverflow.com/questions/9689045/drop-down-menu-causing-invalid-model-state-asp-net-mvc-3">Drop-Do... | 2 | 1,196 |
iOS app converted to Android with Apportable crashing on launch | <p>I am new to Apportable but used it convert an iOS game to Android. I got some warnings about undefined/uninititated variables but no errors after removing some ad network libraries. Also I was getting a lot of errors when I was using Xcode 5 so I switched to using Xcode 4.6 as suggested in the documentation.</p>
<p... | 2 | 4,117 |
Edit table with a select box | <p>How can I only show the channel in the table that I pick from the select box?</p>
<pre><code><select>
<option style="display:none;">Channel</option>
<option value="all">All</option>
<option value="onlineButcher">Online Butcher</option>
<option value="theM... | 2 | 1,589 |
How to add new card dynamically to cardslib listview? | <p>I have this cardlibs listview in a fragment.</p>
<p>I have some dynamic data coming in through the main activity.</p>
<p>When I first call the fragment with the listview, to populate a card,
everything is cool. It' shows. I have the function set to check if the fragment
is activate and if it is just call a method ... | 2 | 1,109 |
WebAPI Serialization problems when consuming Recurly Rest API which returns XML | <p>I'm new to the ASP.Net Web API. I'm trying to interact with the Recurly REST based API and I am getting errors like below during my ReadAsAsync call which is the point I believe it attempts to serialize the response.</p>
<pre><code>{"Error in line 1 position 73. Expecting element 'account' from namespace 'http://sc... | 2 | 1,630 |
handle error during remove record | <pre><code>void deleteFilm(@PathVariable(value = "id") Integer id) {
try {
filmService.deleteFilm(id);
}
catch (ConstraintViolationException e) {
throw e;
}
catch (SQLIntegrityConstraintViolationException ex) {
}
}
2018-08-15 18:12:10.075 WARN 8568 --- [io-8080-exe... | 2 | 1,082 |
Slack Events API: Events are posted (multiple times) for responses of own bot user | <p>I seem to have a problem when responding to incoming messages via the Slack Events API (<a href="https://api.slack.com/events/message.im" rel="nofollow noreferrer">im.message event</a>).</p>
<ul>
<li><p>When a user (in this case <code>UQ364CBPF</code>) sends a message to my App Home, the events API correctly posts ... | 2 | 1,469 |
Conditional Renderings with JavaScript Regex | <p>I need to match on a string such as this:</p>
<p><code>'if Country equals "United States" then Show'</code></p>
<p>I'm working with the Webforms for Marketers Module in Sitecore. Sitecore is a .NET based CMS. The Webforms for Marketers Modules is a module that provides a GUI for non-developers to design forms wi... | 2 | 1,052 |
Exception in thread "main" "javax.xml.bind.UnmarshalException: unexpected element" BUT it is required to allow both test-classes and test-class | <p>I am getting an Exception while running the following code :</p>
<pre><code>JAXBContext context = JAXBContext.newInstance(TestClassesType.class , TestClassType.class);
Unmarshaller um = context.createUnmarshaller();
System.out.println("XMLFILE == " + xmlFilePath);
JAXBElement tcstJaxb = (JAXBElement) um.unmarshal(... | 2 | 2,861 |
How to use colspan in Bootstrap | <p>I am building an app using Angular 2 and Bootstrap. My code is like below,</p>
<pre><code><div class="panel-body">
<table class="table table-striped table-bordered" style="width:100%;">
<tr>
<th></th>
<th></th>
... | 2 | 2,366 |
Why is my keyboard input in javascript not working? | <p>I am trying to move an image in canvas based on arrow keys pressed by the user, but the image stays still without moving even if I press the arrow keys. Here is my html code.</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<title>Keyboard Animation Demo</title>
<met... | 2 | 2,051 |
Subscribing topics with Google Cloud Messenger token, Invalid argument received | <p>I am following the example that google provides to register the gcm token:
<a href="https://developers.google.com/cloud-messaging/android/start">https://developers.google.com/cloud-messaging/android/start</a></p>
<p>I have generated correctly the google-services.json file and I am able to receive the push tokens. B... | 2 | 2,681 |
Zipfile closed within context manager | <p>The following code is confusing the mess out of me. I've got a zip file which I am opening in a context manager. I'm trying to extract the contents of this zip file to a temporary directory. However, when I execute this code block, it tells me that there was an "Attempt to read ZIP archive that was already closed". ... | 2 | 2,700 |
Read lParam sent from c++ to C# as string | <p>I have a c++ application which uses <code>SendNotifyMessage</code> to redirect a <em>CB_FINDSTRINGEXACT</em> to C# code. Now, I want to change it to <em>WM_COPYDATA</em> but I can't make it work.</p>
<p>C++ code:</p>
<pre><code>static LRESULT CALLBACK GetMsgHookCallback(int code, WPARAM wparam, LPARAM lparam){
if ... | 2 | 1,827 |
compare special characters with variable javascript | <p>I have a code that compares if a variable that I get is equal to a certain value. So the code is something like this: </p>
<pre><code>if (data[name] == '1222 &euro;'){
ResultField = ResultField + 'Beschrijving van de maningsprocedure: : rekeningoverzichten ' + '<br>';
}
</code></pre>
<p>The proble... | 2 | 3,339 |
Backbone JS Model Fetch returns 200 in Fiddler but invokes error method | <p>I have some really weird stuff going on here. I have a model that I'm attempting a fetch on. I can look at the calls in Fiddler or call my API service manually and I get the JSON I would expect back, but the fetch method always throws an error in Backbone. It does not tell me why and the responseText is empty. In fi... | 2 | 2,554 |
ASP.Net Page Not Posting Back - Reloading Instead | <p>I have a simple ASP.Net login page. When the login button is clicked, the page should post back and the even should be handled by my server-side event handler. Instead, the page simply reloads. <code>Page.IsPostBack</code> is <strong><code>false</code></strong>. </p>
<p>I've put breakpoints in the Page_Load/Init (w... | 2 | 1,132 |
PHP XML UTF-8 with special characters throws errors | <p>I am having some issues receiving UTF-8 XML files back from DHL API. As long as I don't send it's way any special characters like ś or ó, everything works just fine, but with these characters my app crashes when trying to load XML file received from DHL throwing me errors:</p>
<pre><code>Warning: DOMDocument::load... | 2 | 1,070 |
Paypal: Unable to process payments | <p>I am using woocommerce/paypal plugin in wordpress.</p>
<p>I have the following request params:</p>
<pre><code>WC_Gateway_PPEC_Client::_request: remote request to https://api-3t.sandbox.paypal.com/nvp with params: Array (
[LOGOIMG] =>
[HDRIMG] =>
[PAGESTYLE] =>
[BRANDNAME] => Neeta Si... | 2 | 1,244 |
How resolve exceptions in Scala with IntelliJ? | <p>I am trying to run this <a href="https://github.com/salesforce/TransmogrifAI" rel="nofollow noreferrer">project</a> , I have added dependency in sbt file, My sbt file looks like:</p>
<pre><code>name := "HelloScala"
version := "0.1"
scalaVersion := "2.11.8"
libraryDependencies += "org.apache.spark" %% "spark-core" %... | 2 | 7,304 |
Communication Loop with a GUI | <p>I am making a GUI in Python for a machine. My python program runs on a Raspberry Pi 3 and it is communicating by serial with an Arduino UNO.</p>
<p>I've made a protocol; the arduino sends a "1". The raspberry knows the "1" stands for Run/Stop, and gives back the value of the RunStop variable (which is either 0 or 1... | 2 | 5,359 |
Emailing a dynamically created image | <p>I need to create an image dynamically then email it to the person. Here is the image creation script:</p>
<pre><code>//Get the blank coupon
$rImg = ImageCreateFromJPEG('coupon.jpg');
$color = imagecolorallocate($rImg, 0, 0, 0);
imagestring($rImg,5,135,140,'$first_name', 'black');
imagestring($rImg,5,135,160,'$las... | 2 | 1,151 |
Looking for a way (javascript) to remove .swf when finished | <p>I have an .swf (but not the .fla file, so I couldn't work with ActionScript), and would like to fade that movie out once it have finished playing, so the div containing it gets empty (showing some HTML content).</p>
<p>I think that using javascript (tweaking the special settings that Adobe outputs in the HTML file,... | 2 | 6,238 |
EditText in ListView focus | <p>I have a problem with focus a ListView that contains an edittext.
I use the method OnItemClickListener to select the row of the Listview, but when I click on the edit text it doesn't select the row.</p>
<p>I want that when I click on the edittext the row is selected thanks to the method OnItemClickListener, and a... | 2 | 1,823 |
Group JSON data into weeks / months without additional external library? | <p>I am looking for a solution to group data into weeks / months without external library. I have seen the D3.js nest() option here: <a href="https://stackoverflow.com/questions/26220936/how-can-i-group-json-data-into-the-weeks-according-to-calender">how can i group JSON data into the weeks according to calender?</a></... | 2 | 2,394 |
Unable to find the requested .NET Framework Data Provider (machine.config appears correct) | <p>I am trying to create a SQL CLR project (for SQL Server 2008 R2), and get "Unable to find the requested .NET Framework Data Provider". </p>
<p>I have spent over an hour googling for a solution, and most seems to be that there is an extra self-terminating entry or a missing "SqlClient Data Provider" in the machine... | 2 | 1,152 |
How do I only display hours and minutes in my Flutter Chart? | <p>I'm creating a flutter chart that shows temperature over time. Currently, the X axis shows the month and day, which I do not want. I would like it to show hours and minutes in a HH:MM format. Here is how my chart looks now:
<a href="https://i.stack.imgur.com/QhfCD.png" rel="nofollow noreferrer"><img src="https://i.s... | 2 | 1,042 |
Exception : Transaction Scope nested incorrectly | <p>I have created an console email application reading application from outlook. Whenever an a new message arrive in the inbox call an asynchronous method. This async method call a webservice by sending a web request and executes the function inside the service.These application is run like a scheduler job.These proces... | 2 | 1,208 |
hotchocolate: How to raise multiple errors in Errors[] array | <p>Is it possible to raise multiple errors in Errors[] array, like hotchocolate does when you try to use unknow properties ?</p>
<p>If yes, how can I do this ?</p>
<p>My use case is to return errors collection when validating an object with Validator.TryValidateObject</p>
<p>See below what hotchocolate returns when fie... | 2 | 1,151 |
Subscript indices must either be real positive integers or logicals Error + Code | <p>I was wondering if someone can explain to me what this error means. And, if possible, how to resolve it?
??? Subscript indices must either be real positive integers or logicals.</p>
<pre><code>Error in ==> interp2>linear at 344
F = ( arg3(ndx).*(onemt) + arg3(ndx+1).*t ).*(1-s) + ...
Error in ==> in... | 2 | 1,187 |
Akka quartz scheduler does not trigger the jobs | <p>I try to use this <a href="https://github.com/enragedginger/akka-quartz-scheduler" rel="nofollow noreferrer">akka-quartz-scheduler</a> in my play project.
I created two akka actors, added configuration for actors:</p>
<pre><code>akka {
quartz {
schedules {
HELLO_ACTOR {
description = "A cron job... | 2 | 1,091 |
Xcodebuild: [MT] IDETestOperationsObserverDebug | <p>I try to run my test on a iphonesimulator with Xcodebuild but I get always the same errors.</p>
<p>My command line:</p>
<pre><code>xcodebuild clean test -workspace App.xcworkspace -scheme "UI Tests" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.2'
</code></pre>
<p>The stacktrace: </... | 2 | 1,503 |
Heroku jar deployment of Spring Boot with Maven Application giving code=H10 | <p>I'm receiving the code error H10 for my deploy, when i try to access it.
I read that this happens because i have to set a dynamic port to the application.
I've tried all the configurations presented on Heroku's devcenter but with no lucky.</p>
<p>Here is my pom.xml:</p>
<pre><code>`
<groupId>dogbook<... | 2 | 4,724 |
PHP Calendar - Hide Days Previous To Today | <p>I have a calendar on my website using PHP/HTML and it works fine except that for some reason it is displaying the last 5 days previous to today's date when ideally I want them to be hidden. Here is my PHP & CSS code:</p>
<pre><code>.calendarHeader{
text-align: center;
text-decoration: underline;
col... | 2 | 1,940 |
Import-Module SQLServer cannot load file or assembly Microsoft.SqlServer.ConnectionInfo or Microsoft.SqlServer.Smo | <p>I have a Powershell script that takes CSV data and loads it into SQL Server but it appears I have some issues connecting to the server, so I'm taking a step back and trying to establish the connection without the rest of the script. My script uses Windows Authentication and when I call 'Import-Module SQLServer', I g... | 2 | 1,093 |
Print Time Slot In JavaScript | <p>The problem is that when I'm taking the current time using <code>localdate</code>(this is my start time) variable and I'm also taking end time so I print the time between this values with 15 min of increasing time.</p>
<p>Example: current time is 13:04 so the further time slots will be 13:19, 13:34 and so on till e... | 2 | 1,072 |
Running animation after animation, android studio | <p>I am new at android programming and I have a problem to run animation after animation in android studio. The thing is that I don't have specified number of animations I need, it depends on counter. </p>
<pre><code>package com.example.smartpc.memorygame;
import android.graphics.drawable.TransitionDrawable;
import a... | 2 | 2,245 |
java.lang.NoSuchMethodException: org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.<init>() in GRADLE project | <p>I am having a Gradle spring-boot project and getting the following error when starting the application.</p>
<p>Ran this cmd: gradle clean bootRun --warning-mode all</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-cod... | 2 | 5,076 |
ng-form and ng-submit in a ng-repeat | <p>I have been trying to get a nested form to validate properly and then call a function on my controller when the submit button is clicked. I have tried remove all buttons except the submit button and it does not work. The only thing that I have been able to get to work is Ng-click on the button but I need validation ... | 2 | 3,101 |
How to read large number of records from SQL table in batches using Task Parallel library | <p>I have a sql table called <strong>Accounts</strong> in SQL server where data is sorted with respect to date. The table has 20 columns including <code>AccountId</code>.<br>
I want to read the records for each day (<strong>Around 200K records</strong>). This way I would have to read the data of 6 months for each day.<... | 2 | 1,360 |
Ajax result rows - how to paginate? | <p>How to paginate my ajax result rows in codeigniter . I want to display my ajax result which would be 10-20 rows in batch of 4 or 5 rows per page . Hwlp me through. It is not Ajax pagination but it is ajax paginating in an ajax call. Thank you</p>
<p>This is my view file : </p>
<pre><code> <script type="text/ja... | 2 | 1,181 |
Tomcat 7 + Grails 3.1.10 - ClassNotFoundException: javax.servlet.http.HttpUpgradeHandler | <p><strong>Development environment:</strong></p>
<ul>
<li>Grails 3.1.10</li>
<li>Java: version "1.8.0_72" (Java HotSpot(TM) 64-Bit)</li>
<li>Ubuntu 14.04</li>
</ul>
<p><strong>Production environment (app deployment):</strong></p>
<ul>
<li>Java: version "1.8.0_101-b13" (Java OpenJDK 64-Bit Server VM)</li>
<li>Tomcat:... | 2 | 5,228 |
Why does an SSL Server Socket connection block in Java whereas a non SSL Server Socket does not? | <p>Consider the following code for a non-SSL Socket server and client all on the one thread:</p>
<pre><code>import java.io.DataInputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
public class ServerClient {
public static void main(String[] ar... | 2 | 1,378 |
How to check empty EditText before calculate | <p>In my project I have a button that calculate at at least 2 EditBox, but when I leave it empty and calculate I got crash app:</p>
<pre><code>java.lang.NumberFormatException: Invalid double: ""
at java.lang.StringToReal.invalidReal(StringToReal.java:63)
at java.lang.StringToReal.parseDouble(StringToReal.java:248)
at ... | 2 | 2,482 |
Weird Android intent-filter pathPattern issue while deep linking | <p>I want to create deeplinks for these two http urls</p>
<blockquote>
<p><a href="https://sample-app-123.appspot.com/backoffice/#/user_reset_password?email=abc@gmail.com" rel="nofollow">https://sample-app-123.appspot.com/backoffice/#/user_reset_password?email=abc@gmail.com</a>
<a href="https://sample-app-123.apps... | 2 | 1,265 |
How do setup mod_http_upload in ejabberd | <p>In ejabberd 18.01-2, installed in lxc container Ubuntu 18.04 Bionic LTS using <code>apt</code>, I'm trying to setup <code>mod_http_upload</code>.</p>
<p>In the section <code>listen</code>, I have</p>
<pre><code>listen:
-
port: 5444
module: ejabberd_http
tls: true
request_handlers:
"/upload"... | 2 | 1,123 |
Play video at specific interval of time using javascript and post messege | <p>I have a simple app which I have three different videos, I want each video to play at certain time. As example:</p>
<ol>
<li><p>First video to play.</p>
<p>between <code>5:00 AM</code> and <code>10:00 AM</code>.</p></li>
<li><p>Second video to play.</p>
<p>between <code>10:00 AM</code> and <code>22:00 PM</code>.<... | 2 | 2,149 |
java.lang.IllegalStateException: Expected STRING but was BEGIN_ARRAY In my mcmod.info JSON file? | <p>This is what i recive when trying to load my mcmod.info file for my mod in minecraft. What do you think it could possibly be? </p>
<pre><code>The mcmod.info file in naters305_Test_82635018.zip cannot be parsed as valid JSON. It will be ignored
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Ex... | 2 | 1,429 |
Android RecyclerView Adapter DataBinding - cannot find symbol {layout}BindingImpl | <p>I have a Fragment that displays a list of cities with weather informations. I am using a RecyclerView and I am trying to implement the Data Binding Library in my RecyclerView Adapter but for some reason I get this compile error : </p>
<pre><code>> error: cannot find symbol import
com.example.zach.weath... | 2 | 3,473 |
Highcharts: having trouble recreating stacked area chart from Excel with positive and negative values | <p>I'm converting a series of Excel charts into Highcharts, and came across a curious situation involving a stacked area chart with both positive and negative values.</p>
<p>Here is now the chart is displayed in Excel, along with the accompanying data points. For illustration purposes, I've selected series G. Despite ... | 2 | 1,302 |
WPF button template in app.xaml how to set the text in MainWindow.xaml | <p>I have created a glass button in the app.xaml file (code bottom of this post). I have a few buttons that reference this template in the mainwindox.xaml. What I do not know how to do is set the text that the button displays from within the MainWindow. The first section of code below is an example of one of the button... | 2 | 2,553 |
Adding data from a GUI in Java | <p>So I am trying to create a retail GUI. An employee chooses the department, enters the item name, the price, and the discount. He should be able to enter data for multiple items and then should be able to hit print and a Jtable should appear. The issue I am having is writing the code to be able to update the arraylis... | 2 | 2,228 |
Infinite loading Grid is triggering loadMoreRows at the wrong time | <p>I am using react-virtualized to build an <strong>infinite loading grid</strong>, which also uses <code>AutoSizer</code> to handle a dynamic grid width and <code>WindowScroller</code> to enable scrolling with the viewport. However, I am not able to successfully trigger <code>loadMoreRows</code> at the appropriate poi... | 2 | 5,187 |
PDF report with embedded HTML | <p>We have a Java-based system that reads data from a database, merges individual data fields with preset <code>XSL-FO</code> tags and converts the result to <code>PDF</code> with <code>Apache FOP</code>.</p>
<p>In <code>XSL-FO</code> format it looks like this:</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?... | 2 | 2,673 |
How to apply kind of loop for this Oracle query? | <p>I have a query that was developed using Oracle. I want update the same column </p>
<p>'5' times. below the query that i developed:</p>
<pre><code>MERGE INTO product pr
USING(
SELECT pr.uuid,
xmltype(pr.attributes_de_de).extract('//attr[@name = "SellingPoint1"]/string/text()') AS sellingpoint1,
... | 2 | 1,299 |
Ddrescue(GNU) algorithm | <p><a href="http://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html" rel="nofollow">http://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html</a></p>
<blockquote>
<p>The algorithm of ddrescue is as follows (the user may interrupt the
process at any point, but be aware that a bad drive can block ddr... | 2 | 1,226 |
Selected Value in Multi-Column ComboBox | <p>I have a table named Groups in my Database as follows:</p>
<pre><code>Groups
|--GroupID
|--GroupName
|--ParentID
|--NatureOfGroupID
|--EffectID
</code></pre>
<p>Here is the relationship diagram for above table:</p>
<p><img src="https://i.stack.imgur.com/lhgqM.jpg" alt="enter image description here"></p>... | 2 | 3,686 |
Null pointer Exception in TextView using RecyclerView | <p>I have build a RecyclerView and for that I have a CardAdapter. Following is the file:</p>
<pre><code>public class CardAdapter extends RecyclerView.Adapter<CardAdapter.ViewHolder> {
private ImageLoader imageLoader;
private Context context;
//List of Workers
List<Worker> workersList;
public class ViewH... | 2 | 4,420 |
Processing form after modal submit in JSP | <p>I am displaying a modal after a button click . The code of button for opening a modal is as follows : </p>
<pre><code> <button type="button" name="btnEditIP" data-toggle="modal" data-target="#myModal" class="sultan_btn">Edit IP</button>\
</code></pre>
<p>The code of modal is as follows : </p>
<pre><co... | 2 | 1,067 |
Locking resource in Jekinsfile pipeline for parallel and sequential stages at one time | <p>I'm trying to run the following process in my Jenkinsfile:</p>
<ol>
<li>Build the app</li>
<li>Trigger deploy of two components to the test environment, in parallel
<ul>
<li>foo deploy</li>
<li>bar deploy</li>
</ul></li>
<li>Run tests on a deployed app</li>
</ol>
<p>The steps 2 and 3 require locking a resource be... | 2 | 1,160 |
PHP Encrypt Streamed File From Javascript | <p>I am developing a File Uploader for big file. Upload from HTML script and send by byte from Javascript using ArrayBuffer and Unit8Array to PHP. The PHP script will stream the file and save it into folder.</p>
<p>Here's my Javascript looks like</p>
<pre><code>function upload(fileInputId, fileIndex)
{
va... | 2 | 1,339 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.