title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Symfony2 UniqueEntity validation error with entity inheritance | <p>I have a patner, a buyer and an admin class that inherit a user class</p>
<p>When I want to add a partner, the validator do not work</p>
<pre><code> * @DoctrineAssert\UniqueEntity(fields="username", message="Ce nom d'utilisateur est déjà utilisé, veuillez en choisir un autre.", groups={"registration", "account"})
... | 1 | 2,094 |
How to get the output of dense layer as a numpy array using keras and tensorflow backend? | <p>I am new to Keras and Tensorflow. I am working on a face recognition project using deep learning. I am getting the class label of a subject as an output using this code (output of <strong>softmax layer</strong>) and the accuracy is 97.5% for my custom dataset of 100 classes.</p>
<p>But now I'm interested in the fea... | 1 | 2,040 |
How to join multiple tables in mongodb | <p>I currently have 5 tables that need to joined due to their coupling.
Using $lookup I can join the Order table with the Plan table and get what I need, but how do I go about the other tables?</p>
<p>Here is each table, and the Id/table it needs to connect with</p>
<pre><code>Plan - _id, unassignedOrderIds(arr... | 1 | 2,445 |
How to get the resource usage of a pod in Kubernetes? | <p>How can we get the real resource usage (not resource requests) of each pod on Kubernetes by command line?
Heapster is deprecated.
Meanwhile, Metrics-server still does not support <code>kubectl top pod</code>.</p>
<ol>
<li><p>Heapster - </p>
<p>I deployed Heapster using the following command </p>
<pre><code>$ heap... | 1 | 1,483 |
Delete Data from MySQL Using PHP & AJAX | <p>I have a one form and which have multiple form fields with remove button.All data is coming from DB.now when i am click on remove button i want to remove this data from DB using ajax.</p>
<p><strong>PHP Code:-</strong></p>
<pre><code><?php
for($i=0;$i<$hdntotal;$i++)
{
?>
<div clas... | 1 | 1,215 |
Is there an alternative to php imap extension | <p>My godaddy shared hosing service will not enable the IMAP extension for PHP. So I am in a pickle:</p>
<p>Is there a PHP function to replace the IMAP feature in PHP ?</p>
<p>Here is the error: </p>
<pre><code>Fatal error: Call to undefined function imap_last_error()
</code></pre>
<p>Here is the sample code that I... | 1 | 1,309 |
Git submodules fail to recurse at cloning from private git server | <p>This question has been asked zillions of times, but always in combination with the use of public git servers such as github. I am in the process of setting up my own private git server, which seems to be going alright, up to the point where I try to clone a project with submodules which I previously committed and pu... | 1 | 2,516 |
Failed to start service jboss.deployment.unit."RSSample.war".POST_MODULE: | <p>I want to deploy a jersey restful webservice that produces JSON.. but i get the following error </p>
<blockquote>
<p>14:08:26,743 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-9) MSC00001: Failed to start service jboss.deployment.unit."RSSample.war".POST_MODULE: org.jboss.msc.service.StartException in ... | 1 | 2,948 |
Bootstrap 4 Carousel controls not working | <p>Never had this issue before, but for whatever reason my carousel controls for a basic BS4 carousel are not working. Interestingly enough, the indicators are working when they are clicked?</p>
<pre><code><div class="col-md-6">
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carouse... | 1 | 1,093 |
LongListSelector with String group header | <p>I have this class <code>AlphaKeyGroup</code>:</p>
<pre><code>public class AlphaKeyGroup<T> : List<T>
{
/// <summary>
/// The delegate that is used to get the key information.
/// </summary>
/// <param name="item">An object of type T</param>
/// <returns>... | 1 | 1,817 |
Manifest mergeing - Android studio 0.8.1 upgrade build error: property 'manifestFile' does not exist | <p>I have just upgraded to Android Studio 0.8.1 and upgraded build tools ect. from Android Studio 0.6</p>
<p>But then I get this build error:</p>
<blockquote>
<p>A problem was found with the configuration of task
':processDevelopmentDebugResources'.</p>
<p>File 'C:\ProjectFolder\build\manifests\DevelopmentDe... | 1 | 2,864 |
React Bootstrap navbar doesn't collapse (Next.js) | <p>I am creating a Next.js app and I'm trying to integrate react-bootstrap. </p>
<p>I've managed to add the dependencies, but now when I try to collapse the navbar on mobile with the hamburger menu nothing happens.</p>
<p>This is what my files look like :</p>
<p>Navbar.js</p>
<pre><code>import React from 'react';
i... | 1 | 1,176 |
Angular 4 to 5 Upgrade - Observable.of | <p>I am attempting to update some Angular 4 /rxjs code to use the new version 5 syntax and am running into some trouble.</p>
<p>Original Import Statements:</p>
<pre><code>import { Injectable } from '@angular/core';
import { Http, Response, Headers, RequestOptions } from '@angular/http';
import { Observable } from 'rx... | 1 | 1,658 |
Gitlab-CI with Docker executor /usr/bin/bash: line 90: git: command not found | <p>I have a local GitLab server and gitlab-ci runner with Docker executor.</p>
<p>I want to use gitlab-ci to build (for the first stage) my Maven project. Since I use buildnumber-maven-plugin I added a Git service to my gitlab-ci.yml like this:</p>
<pre><code>image: maven:latest
services:
- alpine/git:latest
# Cach... | 1 | 2,674 |
How to expose a virtual camera on macOS? | <p>I want to write my own camera filters for videochat, and ideally apply them in any/all of the popular videochat applications (Zoom, Hangouts, Skype, etc.). The way I imagine this working is to write a macOS application that reads the camera feed, applies my filters, and exposes an additional virtual camera. This vir... | 1 | 1,049 |
How to use selenium-webdriver to automate CEF3 application | <p>I'm using selenium-webdriver to automate a CefSharp (CEF3) based application, but kept getting errors.</p>
<p>I use the following Ruby scripts to launch the CEF application:</p>
<pre><code>require "selenium-webdriver"
cefpath = 'C:\mypathto\cefapp.exe'
Selenium::WebDriver::Chrome.path = cefpath
browser = Selenium:... | 1 | 1,348 |
Application deployed on tomcat unable to find jdbc | <p>I have a problem with my java application, when I deploy it on tomcat the deploy fail there's a lot of excpetion, all speaking about jdbc and naming of some resources but I can't fidn whats wrong in my configuration</p>
<p>This is my web.xml</p>
<pre><code><web-app xmlns="http://java.sun.com/xml/ns/javaee"
... | 1 | 10,599 |
NoSuchElementError: no such element: Unable to locate element for protractor | <blockquote>
<p>element(By.xpath(("/html/body/div[2]/div[3]/md-content/md-card/md-card-content/div/div/div/div/md-custom-table/div/md-table-container/table/thead/tr/th[3]/span"))).click();</p>
</blockquote>
<p>This is the code I want to make it work.</p>
<p>This isxpath path of where I want to be clicked</p>
... | 1 | 2,326 |
com.sun.xml.ws.message.saaj.SAAJHeader cannot be cast to com.sun.xml.ws.security.opt.impl.outgoing.SecurityHeader | <p>I'm trying to access a third party web service that requires me to create a security header passing in time information, user name, and password. I've scoured the web for working examples and have tried numerous ways. I'm trying to do this with just what's built into Java 6. I'm not sure what I'm doing wrong. After ... | 1 | 2,425 |
set cell,title export to excel in codeigniter 2++ | <p>Dear all</p>
<p>I'm a newbie in PHP, and bad in English.</p>
<p>i have a controler</p>
<pre><code>function download($id)
{
$file_name = 'report1';
$fieldnames ='Tanggal,Bulan,Block,Afdeling,Jumlah Panen Terakhir';
$query = $this->main_model->get_report($id);
to_excel($query,$file_name,$field... | 1 | 1,195 |
android FATAL EXCEPTION: AsyncTask #2 | <p>i am coding android app but while using async task it is failing ,i have one async task and error is coming in it's doInBackground() method everything else looks good but doInBackground() method is not working properly . In doInBackground() method i have written the code for fetching the records from database whi... | 1 | 2,821 |
C# and serial communication how to flush the device to read same data again? | <p>Okay so I am stuck for almost <strong>20 days</strong> now in the same problem of a serial communication device. I have a hardware sensor which read tags and returns the tag code number on every read through serial com port 1 or 3.Any of these I use doesn't matter. I am using a program I wrote in c# to play with the... | 1 | 1,801 |
Rebuilding only one row in Flutter ListView? | <p>I followed example app on Flutter
<a href="https://codelabs.developers.google.com/codelabs/first-flutter-app-pt2/#0" rel="nofollow noreferrer">https://codelabs.developers.google.com/codelabs/first-flutter-app-pt2/#0</a></p>
<p>and noticed that every time i click the row (make wordpair favourite and display red hear... | 1 | 1,339 |
Import a Powershell Module on a Remote Server in a C# Runspace | <p>I need to be able to import a module that resides on a remote machine through a C# runspace.</p>
<p>To be clear what I mean by this: The service I'm creating resides on server A. It creates a remote runspace to server B using the method below. Through the runspace I'm trying to import a module on server B.</p>
... | 1 | 1,267 |
Getting R squared from a mixed effects multilevel model in metafor | <p>I am doing a meta-analysis in R of a specific treatment on forests. For this model I need to fit random effects to account for between study differences in method and variation in age of sites, since both of these are confounding variables and I am not explicitly interested in investigating the variation caused by t... | 1 | 1,355 |
Intent started in onCreate called multiple times | <p>I am making an app that uses the camera and I would like the default camera open as soon as the app is opened. I currently start my image capture intent in the onCreate method of my main activity. This works perfectly fine sometimes, but other times the camera intent is launched 3 consecutive times.</p>
<pre><code>... | 1 | 1,380 |
Always ensure only last 10 messages in ActiveMQ Topic | <p>We have an issue in ActiveMQ where we have a huge number of messages not dropping off topics.
The topics are set to non-persistent, non-durable.
Our Activemq.xml file is </p>
<pre><code><beans>
<broker xmlns="http://activemq.apache.org/schema/core" useJmx="false" persistent="false">
<!--
<... | 1 | 1,342 |
Gracefully finalizing the SoftReference referent | <p>I am using a search library which advises keeping search handle object open for this can benefit query cache. Over the time I have observed that the cache tends to get bloated (few hundred megs and keeps growing) and OOMs started to kick in. There is no way to enforce limits of this cache nor plan how much memory it... | 1 | 1,146 |
Unable to install mysqlclient with pip on ubuntu | <p>I'm trying to install mysqlclient on Ubuntu 20.04LTS, the main error is: mysql_config not found.</p>
<p>Whole Error:</p>
<pre><code>$ pip3 install mysqlclient==2.0.3
Defaulting to user installation because normal site-packages is not writeable
Collecting mysqlclient==2.0.3
Using cached mysqlclient-2.0.3.tar.gz (88... | 1 | 1,449 |
Sending iDOC from Java to SAP | <p>We have iDOC files that are generated from our system. Now we are trying to send them to SAP via RFC connection. I already etablished an RFC connection <strong>AS A CLIENT</strong> but i am unable to send iDOC!</p>
<p>I tried to create a sample iDOC to test it but it doesn't work!</p>
<pre><code>Exception in threa... | 1 | 4,804 |
Leaflet zoom onto location using link and map.setView | <p>I've run into a little problem regarding the awesome leaflet map. I want to display a map with a couple of markers on it. Below this map I want to place some content, including a link once in a while that, when clicked, will move and zoom to one of those markers. I found some code on Stack Overflow that supposedly s... | 1 | 1,107 |
MPAndroidChart BarChart xValues Issue | <p>I noticed an issue with the <code>BarChart</code> of <code>MPAndroidChart</code> and need a fix. First my code:</p>
<pre><code>this.barChart = (BarChart) view.findViewById(R.id.bar_fragment_bar_chart);
this.barChart.setDrawYValues(true);
this.barChart.setDrawXLabels(false);
this.barChart.setDrawValueAboveBar(true);... | 1 | 4,450 |
Why filtering an unsorted list is faster than filtering a sorted list | <p>I've been playing with Java 8 <code>Streams - API</code> and I decided to microbenchmark <code>stream()</code> and <code>parallelStream()</code> streams. As expected the <code>parallelStream()</code> was as twice as fast, but something else popped up - If I sort the data before passing them to the <code>filter</code... | 1 | 3,639 |
Socket Failed to load resource server (404 error) | <p>hey guys m using to files for server side server.js and at client side using javascript </p>
<p><strong><em>server.js</em></strong></p>
<pre><code>var express = require("express");
var io = require("socket.io").listen(app);
var app = express.createServer("localhost");
app.listen(3000);
app.get('/', function (req... | 1 | 1,026 |
NoSuchAlgorithmException: Error constructing implementation while connecting to SSL website through JAVA 8 | <p>I have done lots of Google on this exception and found so many hints but didn't find any solution or reason on this (may be I missed anyone of those), so finally with tired eyes posting question to seek help.</p>
<p>I have a website URL i.e <a href="https://oesinternational.mkcl.org/" rel="nofollow noreferrer">http... | 1 | 3,554 |
VBA - PivotTable Row Count and Copy Value to New Sheet | <p><strong>UPDATED</strong></p>
<p>I need to do a row count of the rows in the pivot table between the <em>"header"</em> row of the table and the <em>"grand total"</em> row of the table and then copy the value that the count finds, to a summary sheet.</p>
<p><strong>Header Row:</strong></p>
<p><a href="https://i.sta... | 1 | 1,742 |
Android emulator is not working properly. Why? | <p>I have been using Android studio and emulator for the past 2 months now, and it was working very well and fast.</p>
<p>Now, once I shut down my laptop while android studio running, I don't know if this is the reason that caused this.</p>
<p>Now, Android monitor goes crazy when I run my application, it doesn't happ... | 1 | 6,142 |
Update ViewBag with jQuery and rendering results | <p>I have an MVC3 application which uses ViewBag variables to dynamically fetch data from database and dynamically generate the interface.</p>
<p>I am using jQuery to call action method to insert some values to the database and update a ViewBag variable accordingly. I want to refresh the div with the new ViewBag value... | 1 | 1,315 |
Tap Gesture on tableViewCell Swift | <p>I would like to complete an action when the image in the table view cell is taped. I set a tap gesture through the storyboard but it reads the tap everytime the cell is touched.</p>
<p>How can I Complete a tap gesture when only the image in my table view cell is taped?</p>
<p><a href="https://i.stack.imgur.com/Mez... | 1 | 1,096 |
Wait cursor in MVVM | <p>Need a wait cursor for long operations.<br>
Mouse.OverrideCursor works in the ViewModel but not really an MVVM pattern.<br>
<strong>I have an IsBusy property - how do I get wait cursor in the View?</strong> </p>
<p>This kind of works<br>
But I only get the wait cursor over the button<br>
I want the wait cursor on ... | 1 | 2,951 |
Google reCAPTCHA ERROR for site owner: Invalid site key | <p>I cant get reCAPTCHA v3 working on my website. I have put the right code in from the Google reCAPTCHA v3 website but it shows "ERROR for site owner: Invalid site key" in the bottom right.</p>
<p>I'm only 7 and if I have missed something, please take it easy</p>
<pre><code> <!DOCTYPE html>
<html lang="en"&... | 1 | 1,030 |
Reshaping data.table with cumulative sum | <p>I want to reshape a data.table, and include the historic (cumulative summed) information for each variable. The <code>No</code> variable indicates the chronological order of measurements for object <code>ID</code>. At each measurement additional information is found. I want to aggregate the known information at each... | 1 | 1,343 |
Single sign on inside asp.net mvc web application | <p>I have two domains ,on our internal network:-</p>
<ol>
<li>DomainA</li>
<li>DomainB</li>
</ol>
<p>Both domains can communicate with each other’s, but they do <strong>NOT</strong> trust each other.</p>
<p>So currently I have deployed my asp.net MVC web application inside domainA on IIS, but I need users who are on... | 1 | 1,434 |
How do I get a JComponent to resize after calling `setVisible(true)`? | <p>Our application displays a 2D view of our data (mainly maps) and then allows the user to change to a 3D view. The 2D and 3D views are generated by custom C++ code that is SWIG'ed into our Swing GUI and wrapped within a <code>JComponent</code>. These <code>JComponent</code>s are then displayed within another parent J... | 1 | 2,772 |
How does Kotlin dispatch the invoke operator? | <p>How does Kotlin disambiguate function calls, constructors, companion objects and invocation overloads? In Kotlin <code>1.3.11</code>, I can declare two homonymous members in the same scope:</p>
<pre><code>fun main(args: Array<String>) {
val test = object {
operator fun invoke() = println("test inv... | 1 | 1,622 |
Flutter: Add location permission on IOS in permission handler | <p>I have a web view on my flutter project. Inside web view widget i am checking location permission with permission handler like below:</p>
<pre><code> void _checkLocationPermission() async {
if (await Permission.location.request().isGranted) {
Position position = await getCurrentPosition(desiredAccuracy: L... | 1 | 1,482 |
How to prevent pushing SNAPSHOT version in maven-release-plugin? | <p>I have a maven project with lots of modules (and modules inside modules). I am using <strong>maven-release-plugin</strong> for controlling the versions in the <strong>pom.xml</strong> files. </p>
<p>When running command <code>mvn release:prepare</code> plugin is pushing two commits with messages: <strong>"[maven-re... | 1 | 1,109 |
Have express.js send response from async callback | <p>I have a pretty simple scenario, with a RESTful endpoint in Node / Express.js that needs to invoke another REST service and return its result.</p>
<p>The trouble I'm facing is getting the response in the Express method to send the appropriate data back. </p>
<pre><code>var express = require('express');
var app = e... | 1 | 1,066 |
kubeadm install flannel get error, what's wrong? | <p>I install kubeadm (version : v1.13.2 ), after init, I install flannel, it fails, install command:</p>
<pre><code>kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/bc79dd1505b0c8681ece4de4c0d86c5cd2643275/Documentation/kube-flannel.yml
</code></pre>
<p>error is like below.</p>
<blockquote>
<p>Err... | 1 | 5,301 |
Try render components in a Root component | <p>I have this problem for week now and just can't find solutions.
I try to render the components in the Root component. </p>
<p><strong>index.js file:</strong></p>
<pre><code>import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import {
BrowserRouter as Router,
Route,
Link,
} from 'r... | 1 | 1,234 |
MySQL. WordPress. Slow query when using IN statements | <p>I'm trying to figure out a better way to write the following query that is generated by WordPress's <code>WP_Query</code> class. Right now it is <strong>very</strong> slow.</p>
<pre><code>SELECT SQL_CALC_FOUND_ROWS wp_posts.*
FROM wp_posts
INNER JOIN wp_postmeta ON (wp_posts.ID = wp_postmeta.post_id)
INNER JOIN wp_... | 1 | 7,161 |
how to read a table in a text file column wise in bash | <p>I am very new to bash scripting and today I have worked on a problem which I generally do it in python. The problem is I have a text file which is like this: (numbers in the row are separated by tabs)</p>
<pre><code>1 1 1 1 1
9 3 4 5 5
6 7 8 9 7
3 6 8 9 1
3 4 2 1 4
6 4 4... | 1 | 1,140 |
Angular 12 Universal Configuration 'development' is not set in the workspace | <p>I created new project - client - on Angular 11.
Then updated ng version to 12 Angular.
Then installed Universal:
ng add @nguniversal/express-engine</p>
<p>Then I'm trying to run my Universal Angular, but it throws error:</p>
<p>npm run dev:ssr</p>
<blockquote>
<p>client@0.0.0 dev:ssr
ng run client:serve-ssr</p>
</bl... | 1 | 5,023 |
How to use protobuf-net for xml-serialization? | <p>Maybe i misunderstood something for serialization. i wanna serialize my .net object fastest way. i made some googling i found protobuf. Myfirstquestion is ProtoBuf.Net has avility for xml serailization.if it has, can i use it for xml serialization.</p>
<p>My model:</p>
<pre><code>
[XmlType]
public class CT {
... | 1 | 1,158 |
Slow message consumption using AmazonSQSClient | <p>So, i used concurrency in spring jms 50-100, allowing max connections upto 200. Everything is working as expected but if i try to retrieve 100k messages from queue, i mean there are 100k messages on my sqs and i reading them through the spring jms normal approach.</p>
<pre><code>@JmsListener
Public void process (St... | 1 | 1,356 |
Auto Sizing Isotope | <p>I've been looking at this theme <a href="http://clapat.ro/berger/" rel="nofollow">http://clapat.ro/berger/</a> and the way it does it's grid in the middle of it. I've been snooping through the javascript files and it looks like it's auto sizing the '.item' class based on the width. </p>
<p>I'm trying to replicate t... | 1 | 6,646 |
how to insert multiple option listbox choices into mysql database | <p>I have a form with different input fields like text field, dropdowns, and a multiselect listbox. The multiselect listbox does not add to the database. Please help</p>
<pre><code> <form action = "A.php" method ="POST" enctype="multipart/form-data">
<fieldset>
... | 1 | 1,097 |
kubectl apply/create "unexcpected EOF" | <p>My kubectl can't read files and returns 'error: unexpected EOF' every time.</p>
<pre><code>kubectl apply -f service.yaml
> error: unexpected EOF
</code></pre>
<p>I use a realy simple service.yaml like this, also this keeps happening on every file i try to read with kubectl:</p>
<pre><code>apiVersion: v1
kind: ... | 1 | 2,492 |
database schema has changed | <p>I keep getting this error <code>database schema has changed near "1": syntax error</code>.</p>
<p>I am not changing my schema in the code.
This is the code where I make the schema.
wish to try each answer in order that you posted it.
This code is used to transfer a database to another database program.
So it has to... | 1 | 1,676 |
Country/Region and City List in a dropdownlist | <p>I need to create a dropdownlist with the Region (Asia, South East Asia, North America,..etc) and the Country together in the same dropdownlist.
Upon selecting the options, then i will populate the City based on the Country selected.</p>
<p>It will look something like this, but in a dropdownlist instead of expanding... | 1 | 2,101 |
iPad/iOS7: 'Page' modal view controller strange behaviour after presenting 'Full screen' view controller from it | <p>My iPad application opens modal view controller with 'Page' presentation style. As you know 'Page' presentation style doesn't cover status bar of presenting view controller to indicate page presentation.</p>
<p><img src="https://i.stack.imgur.com/StPF2.png" alt="Initial view controller"></p>
<p><img src="https://i... | 1 | 1,116 |
error: invalid use of non-static member function | <h2>Issue:</h2>
<p>I am trying to instantiate a class (say class A) inside another class (say class B) and then call all the member functions of class A inside the class B for the instantiated object. I get the following error message for every call of class A methods inside class B: </p>
<blockquote>
<p>error: inv... | 1 | 1,669 |
Android : How can make horizontal scroll view? | <p>I am working with android, i want to make horizontal scroll view at run time, means i want to make this horizontal view by java code.</p>
<p><strong>this is my code of java class</strong></p>
<pre><code>package com.pericent;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res... | 1 | 1,078 |
How to install numpy for python 2.7.9 | <p>I have two versions of python- 2.7.6 & 2.7.9 and numpy is installed for python 2.7.6 . I can't understand how to install numpy for python 2.7.9.</p>
<p>When I use <code>pip2 install --upgrade numpy</code>, it installs and updates for python 2.7.6.</p>
<p>How do I install numpy particularly for python 2.7.9?</p... | 1 | 1,175 |
Repeated column in mapping for entity (should be mapped with insert="false" update="false") | <p>I have 2 tables: Menu and Course. I mapped there are to 2 </p>
<pre><code>package ir.parhoontoos.hibernate;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import jav... | 1 | 1,862 |
Can't run Spark spark-shell | <p>The information from post <a href="https://stackoverflow.com/questions/33005734/cannot-start-spark-shell">Cannot start spark-shell</a> is not help</p>
<p>The next enviroment is set:</p>
<p>java -version
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9... | 1 | 1,126 |
iOS SecTrustRef Always NULL | <p>I'm trying to connect an iOS app to a Windows C# sever using TLS over TCP/IP.</p>
<p>The TLS connection is using <em>untrusted certificates</em> created from an <em>untrusted CA root certificate</em> using the <em>makecert</em> utility.</p>
<p>To test these certificates I created a simple C# client and using those... | 1 | 2,029 |
C# Windows Service won't start | <p>When I try to start my c# service it says:"starting" for a second and it turns back to being "stopped"
What can be the problem? I had the same code before, and it worked but made some changes in the code now and it stopped working. Here is what I added to my code:</p>
<p>App Config:</p>
<pre><code><add key="cu... | 1 | 1,637 |
Testing Stripe's webhooks - always an error | <p>I'm testing the web hooks in Stripe, I send an event from Stripe's website, here is my code:</p>
<pre><code>require 'json'
class StripeWebHooksController < ApplicationController
protect_from_forgery except: :webhook
def webhook
data_json = JSON.parse(request.body.read)
event = Stripe::Event.retriev... | 1 | 1,409 |
Google Maps API V2 android app on API level 8 up to 17 | <p>I am working with the Google maps API V2 and it is going fine. i have a 2.2.2 android device wich i use to debug my app.</p>
<p>now i just got a Galaxy Note 2, and when i try to debug on that device the app imidiatly crashed "project has stopped working".</p>
<p>So i just made a small example to test with. and aga... | 1 | 3,592 |
VB Design View not showing buttons and labels | <p>I made a new project and added the form1.vb and form1.desinger.vb form another project to the new project(was working at another computer and saved the two source to usb moved to home computer and thought i could just add the two source files from my usb to the project and it would work.) now my design view does not... | 1 | 6,895 |
Is there any possible to get Google Webmaster Tool (GWT) datas using PHP? | <p>I'm trying to get some datas from <strong>Google Webmaster Tool (GWT)</strong>, I have searched some of the API Documents and Implements, But they are returning few of the datas only from the GWT. </p>
<p><em><strong>My Needs :</em></strong> </p>
<p>Needs to get the datas of the following from GWT,</p>
<p>(1). TO... | 1 | 11,345 |
post data using Sharepoint 2010 REST API using Java http client | <p>I am trying to post a SharePoint list item to a SharePoint 2010 list using Java client.
I am able to read the SP list items using below code but I am not sure how to write to the SharePoint.
For the post operation, I am getting http 401 error.
Any guidance will be greatly appreciated.</p>
<p>GET Operation: </p>
<p... | 1 | 1,114 |
Making a fragment translucent in android | <p>I have a fragment A that covers up the whole screen and another fragment B that is at the bottom of the screen of 50dp.Fragment B overlaps some bottom portion of fragment A.I want to make fragment B translucent so the overlapped portion of fragment A is seen.</p>
<p>I tried using Theme.Translucent,used framelayouts... | 1 | 2,042 |
Jersey JAX-RS Instance injection | <p>I'm trying to inject an instance of a resource into a JAX-RS application with Singleton scope, however when I do this I get:</p>
<blockquote>
<p>WARNING: A provider com.test.jersey.app.MyResource registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to const... | 1 | 1,895 |
Nextjs - access url params on server side | <p>I am using the official <a href="https://github.com/vercel/next.js/tree/canary/examples/with-apollo" rel="nofollow noreferrer">with-apollo</a> example to create a nextjs frontend. I am trying to use the user's slug, which can be found in the url string to render the user profile. However, I am not able to use the ur... | 1 | 1,207 |
How to read frames using PyQt and OpenCV | <p>I have been trying to read frames from webcam, using OpenCV and PyQt. I know there are a lot of examples. But I would like to use MVC (model-view-controller).</p>
<p>OpenCV handles controller, i created models.py for model and views.py for GUI.</p>
<p>I don't see any error before run the code, when i run the code ... | 1 | 1,409 |
Spring Data Repository: "find" method with orderBy gets the wrong order | <p>I have a Spring Boot application with some JPA repositories.
I defined the following method inside one of the repository interfaces:</p>
<pre><code> public List<Post> findAllByOrderByPublishedOnDesc();
</code></pre>
<p>Quite obviously, I would like to retrive the list of all the <code>Post</code>s sorted ... | 1 | 3,365 |
.net core - build error with docker compose | <p>I try to create a release build from my backend project with the Visual Studio, but I get the error message </p>
<p><strong>Service 'backend_api' failed to build: The command '/bin/sh -c dotnet build ...</strong></p>
<p>With "docker-compose build" I get the same error.</p>
<p>In Debug-Mode of the Visual Studio it... | 1 | 1,233 |
Both Sided Slide menu in android | <p>This is not a duplicate of any questions asked before.
I want a double sided slide menu.
I <a href="https://github.com/jaylamont/AndroidFlyOutMenuDemo." rel="nofollow">referred this library</a></p>
<p>I tried to edit this project and here are my corresponding files:
<strong>Sample Activity.java</strong></p>
<pre><... | 1 | 4,756 |
Request Apache Accumulo error help using Hadoop and Zookeeper in a test environment | <p>I am setting up a test environment using apache accumulo ver 1.4.0, hadoop ver 0.20.2 and zookeeper ver 3.3.3. Please see below for the issue.</p>
<p>Hadoop and Zookeeper work great together, but when I start accumulo using the procedures on apache incubator I get the following zookeeper stream of info and a warn:... | 1 | 2,291 |
Jquery UI DatePicker In a JQGrid | <p>I am trying to use a datepicker when editing a cell in a JQGrid. When I click in the cell it does change to a text box and the datepicker does display, but after selecting a date I get the following error thrown</p>
<pre><code>Microsoft JScript runtime error: Missing instance data for this datepicker
</code></pre>
... | 1 | 1,215 |
Spring OAuth2RestTemplate can't obtain new accessToken | <p>I am using spring-boot-oauth2 with <strong>authorization_code flow</strong> and <strong>@EnableZuulProxy</strong> .I followed the example from <a href="https://github.com/spring-guides/tut-spring-security-and-angular-js/tree/master/oauth2" rel="nofollow noreferrer">tut-spring-security-and-angular-js with oauth2</a>.... | 1 | 3,827 |
How to debug asp.net mvc 4 source code? | <p>I download the latest source code from here: <a href="http://aspnetwebstack.codeplex.com/SourceControl/list/changesets" rel="nofollow noreferrer">http://aspnetwebstack.codeplex.com/SourceControl/list/changesets</a></p>
<p>1) add the system.web.mvc project to my Solution including other projects that system.web.mvc ... | 1 | 1,482 |
How to remove columns from a file using pandas DataFrame.drop with a list of column headers read in from a second file | <p>Python newbie and stackoverflow posting newbie.</p>
<p>My goal is to create a python script which will take two files entered at the command line and drop columns from the first file if column headers are present within the second file, and write the output to a new file.</p>
<p>I've tried several approaches to th... | 1 | 2,049 |
Code coverage report from jacoco.exec file using ant | <p>I am trying to generate the Code coverage report from jacoco.exec file using ant.</p>
<p>My ant build is:</p>
<pre><code><?xml version="1.0"?>
<project xmlns:jacoco="antlib:org.jacoco.ant" name="Example Ant Build with JaCoCo" default="rebuild">
<description>
Example Ant build file that demonst... | 1 | 1,477 |
Cannot serialize member of type System.ComponentModel.ISite | <p>I am trying to run vector.asmx in web browser and getting the following error. What is the problem?</p>
<p>Cannot serialize member System.ComponentModel.MarshalByValueComponent.Site of type System.ComponentModel.ISite because it is an interface.</p>
<p>[my code]</p>
<pre><code>using System;
using System.Collectio... | 1 | 1,125 |
How to proxy NGINX, Varnish, and PHP-FPM over SSL | <p>Trying to figure out how to host a WordPress site with NGINX and PHP-FPM, but also add Varnish for caching; and, to make it worse, have this offered over SSL.</p>
<p>I've worked with NGINX, Varnish, and Gunicorn for an SSL Django site, and I thought this might be similar. I've also setup Varnish, Apache and WordPr... | 1 | 4,662 |
JQuery .on('click'... issue referencing list-group-items | <p>I am writing a large website and I got stuck referencing a small navigation bar. I am using Twitter Bootstrap. </p>
<p>I'm sure I'm missing something novice. This is the JsFiddle: <a href="http://jsfiddle.net/ugdh2jmL/2/" rel="nofollow">http://jsfiddle.net/ugdh2jmL/2/</a>. I'm going to be referencing a series of dy... | 1 | 1,065 |
Signals and Observer(Reactive Swift) for form validation not working as expected | <p><strong>I am doing form validation using reactive swift. But I faced issue on resetting value & signal value.</strong></p>
<p>When I fill all the textfield correctly as directed by validation rule all signals(textfield continuoustextvalues) produce true value, which will allow me to send form data. I reset valu... | 1 | 2,220 |
Gap Statistic Method | <pre><code> import sys
import numpy as np
import scipy.io as sio
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
from sklearn.svm import SVC
filename = sys.argv[1]
datafile = sio.loadmat(filename)
data = datafile['bow']
sizedata=[len(data), len(data[0])]
ga... | 1 | 1,169 |
Check if specified element is already the logical child of another element | <p>I a beginner in C# and WPF. I'm programming plugin for a node based software called vvvv. I have implemented sliders, buttons and other simple ui elements. The following code shows how a sliders node look in c# :</p>
<pre><code>using System.Windows;
using System.Windows.Controls;
using System.Windows.Markup;
using ... | 1 | 2,589 |
Workaround to avoid "Cannot create default converter to perform 'two-way' conversions between types 'Derived_N' and 'Base'" error | <p>I have some types hierarchy:</p>
<pre><code>public class Base {}
public class Derived_1 : Base {}
public class Derived_2 : Base {}
// more descendants...
public class Derived_N : Base {}
</code></pre>
<p>Types from this hierarchy are used as lookup lists in view models:</p>
<pre><code>public class SomeViewModel
{... | 1 | 1,026 |
React Hook Form: How to reset the form content after submission | <p>I have a hidden field when you clicked the YES option, I want to reset the form to hide again the field after successful submission.</p>
<p>Below is my code and here is the <a href="https://codesandbox.io/s/react-hook-form-using-emailjs-2-m5bxm" rel="nofollow noreferrer">link</a> to sandbox.</p>
<pre><code>import { ... | 1 | 2,493 |
Group data in csv by season and year using python and pandas | <p>This is an extension of an <a href="https://stackoverflow.com/questions/22615288/group-data-by-seasons-using-python-and-pandas/22623876?noredirect=1#22623876">earlier question</a>.</p>
<p>I want to use Pandas and Python to iterate through my .csv file and group the data by season (and year) calculating the mean for... | 1 | 1,051 |
How can I make macOS frameworks available to clang in a Nix environment? | <p>I'm on macOS 10.13.5, learning to program Rust, and I use Nix to control my development environment.</p>
<p>Some actions, such as including the <code>jsonwebtoken</code> library or installing the <code>cargo-watch</code> module, cause a build that requires a macOS framework that appears to not be installed. I get ... | 1 | 1,464 |
Calculating how many Working Days between 2 Dates - T-SQL? | <p>I realise different solutions will have different variations of what "Working Days" means but in my case I mean Monday to Friday inclusive.</p>
<p>Basically I have Created a function to do the calculation for me and my current solution works. My concern (and reason for asking this question) is that I am worried tha... | 1 | 1,344 |
Keras - ValueError: could not convert string to float | <p>I have the code shown below, but get the following error:</p>
<blockquote>
<p>ValueError: could not convert string to float: BRAF</p>
</blockquote>
<p>Provided that this is a sample of my data (<code>|</code> is just a separator I added here for demonstration, you can imagine each value in a separate cell in a C... | 1 | 1,280 |
what actually word embedding dimensions values represent? | <p>I have a doubt in word2vec and word embedding , I have downloaded GloVe pre-trained word embedding (shape 40,000 x 50) and using this function to extract information from that:</p>
<pre><code>import numpy as np
def loadGloveModel(gloveFile):
print ("Loading Glove Model")
f = open(gloveFile,'r')
model =... | 1 | 1,035 |
XSLT 2.0 Sum of values considered as string | <p>I am confronted to what I thought it was a simple problem but I am stuck.
Here is an xml data</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<report endDate="2013/02/01 15:10:14" environment="Q000" startDate="2013/01/25 15:10:14">
<distrib appCode="LI" busLine="IL" context="" id="2013-01-25-15... | 1 | 1,129 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.