title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
The encoder required for this media is busy | <p>When attempting to concatenate multiple videos into one via the AVAssetWriter and AVAssetWriterInput approach. After the 3rd video I receive a 'Cannot Encode' error from the AVAssetWriter.error. </p>
<p>Additionally, I am able to see via the console successful reads to the buffer, but only the very last successfu... | 1 | 1,253 |
WebHttpBinding Security Question | <p>I have created a RESTful Service and implemented the Authentication. It accepts username and password and then grants access to the service requested. It Works fine. Now I want to use SSL on top of my Service. For this I Created Certificate, Then In IIS I gave the required settings. But my service is not working. I ... | 1 | 1,669 |
Silverlight: Binding to a LayoutRoot value from within a DataTemplate | <p>I have a <code>DataTemplate</code> for a <code>ListBox</code>, where I have several controls that bind to an item. I would also like to bind to a value on <code>LayoutRoot.DataContext</code>. I'm unsure of how to do this.</p>
<pre><code><!--LayoutRoot is the root grid where all page content is placed-->
<S... | 1 | 1,169 |
jQuery - Show and Hid div's with different based on class | <p>Hey all,
I am trying to make a portfolio page for my new website that will display portfolio items in a grid. The functionality of it seems simple but I can't seem to nail down the jQuery. Here is how I need it to work.</p>
<ol>
<li>By default I want all items to be shown.</li>
<li>On a specific catagory button cli... | 1 | 1,068 |
Cordova Plugin inappbrowser : How use Cordova in Cordova Webview? | <ol>
<li>I installed the plugin: In App Browser
<a href="https://ionicframework.com/docs/native/in-app-browser" rel="nofollow noreferrer">https://ionicframework.com/docs/native/in-app-browser</a></li>
</ol>
<p>Documentation is here:
<a href="https://github.com/apache/cordova-plugin-inappbrowser" rel="nofollow noreferr... | 1 | 1,170 |
SVG Fade in Animation | <p>Hi I have an SVG which is 5 arrow shapes stacked. I am wanting to fade in each arrow from the bottom up. When the top arrow has faded in, I want the first one to fade out, then the second etc. And then start the animation again by fading in each arrow.</p>
<p>Here is a code pen of the SVG code:
<a href="https://cod... | 1 | 1,356 |
Getting error on INSERT: "Number of query values and destination fields are not the same" | <pre><code>Imports System.Data
Imports System.Data.OleDb
Public Class form7
Dim inc As Integer
Dim con As New OleDb.OleDbConnection
Dim cmd As OleDbCommand
Dim dbprovider As String
Dim dbsource As String
Dim str As String
Dim ds As New DataSet
Dim da As OleDb.OleDbDataAdapter
Dim To... | 1 | 1,245 |
Tomcat server exception - java:comp is not bound in this Context | <p>In doing something else, I added a jar to my lib folder called catalina.jar . This allowed me to serve static content (which works), but my previously working struts actions (which access a database through hibernate) no longer work. The first indication of failure occurs on tomcat startup:</p>
<pre><code>SEVERE: N... | 1 | 3,862 |
Object #<Object> has no method 'dialog' | <p>I'm trying to work through a problem I'm having with jQuery's dialog box in an ASP.Net application.</p>
<p>I have a page that has two dialog boxes, <code>tos_text</code> and <code>tos_thankyou</code> which are of course simple <code><div></code> tags with the content to display.</p>
<p>First, I'm using the G... | 1 | 1,311 |
Iterate through list of dictionaries to create terraform resources with different values | <p><strong>Goal</strong>
Create two <code>aws_athena_named_query</code> resources using terraform. The configuration for each query is defined in separate dictionaries. All of the query dictionaries are nested in a list (see <code>query_dict</code> variable).</p>
<pre><code>variable query_dict {
default = [
... | 1 | 1,403 |
Java UDP send/receive small example does not work | <p>I have written a small UDP client which is sending packets to a certain local address, and another small UDP client which will receive them and print on console its containt. They are not working currently, and I don't know why.</p>
<p>This is the sending code:</p>
<pre><code>import java.io.*;
import java.net.*;
... | 1 | 1,282 |
How do I get my image to follow my mouse? | <p>How do I get my image to follow my mouse anywhere on the screen?</p>
<p>The below code makes the image move along the x axis.</p>
<pre><code>import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
i... | 1 | 1,746 |
Andventure game problems, moving between rooms Python | <p>So far I am able to get to all rooms except from fight to stairs. I get the description for the stairs to show up but when I try to give it the next direction nothing is recognized.</p>
<p>heres the code:</p>
<pre><code>def playGame():
location = "Porch"
showIntroduction()
while not (location == "Exit"):
... | 1 | 3,213 |
MySQL Query to find friends and number of mutual friends | <p>I have looked through the questions but I cant find anything that does exactly what I need and I can't figure out how to do it myself.</p>
<p>I have 2 tables, a user table and a friend link table. The user table is a table of all my users:</p>
<pre><code> +---------+------------+---------+---------------+
|... | 1 | 1,272 |
What is faster on division? doubles / floats / UInt32 / UInt64 ? in C++/C | <p>I did some speed testing to figure out what is the fastest, when doing multiplication or division on numbers. I had to really work hard to defeat the optimiser. I got nonsensical results such as a massive loop operating in 2 microseconds, or that multiplication was the same speed as division (if only that were true)... | 1 | 1,495 |
Parsing XML in Visual Basic | <p>I am having difficulty figuring out how to "properly" parse an XML response in Visual Basic. I happen to be running Visual Studio 2013. The response I get from the API I am querying looks exactly like this (some data changed to protect the innocent):</p>
<pre><code><?xml version="1.0" encoding="utf-8" standalo... | 1 | 2,091 |
HowTo JavaScript ES modules dynamic import with rollup.js? | <p>I try to use <a href="https://developers.google.com/web/fundamentals/primers/modules#browser" rel="noreferrer">JS ES modules with a fallback bundle</a>, generated by rollup.js.</p>
<p>Standard <code>import</code>s are no problem. But I have an issue with dynamic imports.</p>
<p>I uploaded the full example of the s... | 1 | 1,568 |
GET http://localhost:3000/api/jobdetail 404 (Not Found) | <p>In my database(MongoDB) I have 2 collections called users and jobdetail.I'm trying to connect to second collection jobdetail & retrieve the data. This is my app.js code.</p>
<pre><code>const express = require('express');
const path = require('path');
const bodyParser = require('body-parser');
const cors = requi... | 1 | 3,617 |
Programmatically controlling the order of xml elements | <p>I'm using a third part web service[WS] in my .Net app.
My application is using the entity classes generated from this WS's wsdl.
I fetch the data from db, fill it in entity objects and then generate an xml out of it using XmlSerializer class.</p>
<p>One of the methods of the WS requires this xml string as input.And... | 1 | 9,512 |
How to find UIView's frame after transform rotating | <p>I have a very simple <code>UIImageView</code> which is contained in a container view. They are the same size, no auto layout used. When user presses a button, <code>UIImageView</code> should be rotated by 90 degrees. When <code>UIImageView</code> (not <code>UIImageView.image</code>) is rotated it should fit its supe... | 1 | 1,544 |
JSON Android And Listview | <p>I'm looking for a good tutorial to parse JSON into Listview in Android.</p>
<p>The problem is my JSON file is like this </p>
<pre><code>[{"location_id":"823","company_id":"41","name":"Milj\u00f8station","address":"Aldersro \/ Aldersro 8","place":"","postal":"5700","city":"Svendborg","monday":"","tuesday":"","wedne... | 1 | 4,655 |
Datetime expression in JPA by passing as parameter | <p>I want to compare a datetime function in the JPA. Just wondering how to pass it. By the way I am very new to JPA. My input date will look like this <code>28/12/2014 16:20</code> and I am parsing it as date</p>
<p>I have to pass this as a parameter but the database table (MS SQL) consists of datetime format as <code... | 1 | 1,028 |
Including Woocommerce API library in Laravel | <p>I'm trying to include this <a href="https://packagist.org/packages/woothemes/woocommerce-api" rel="nofollow noreferrer">Woocommerce API library</a> into my project. This is not a Laravel specific package. But, I am having trouble while including this in my project.</p>
<h3><code>autoload-classmap.php</code></h3>
<pr... | 1 | 1,093 |
image from camera intent issue in android | <p>I am integrating facebook with android and I want when taking a phot , save it to sdcard and then upload it to facebook.</p>
<p>Here is my code:</p>
<pre><code>photo_up=(Button)findViewById(R.id.camera_foto_button);
photo_up.setOnClickListener(new View.OnClickListener() {
public void... | 1 | 2,583 |
Changing a Flash Video with Javascript | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/2830944/change-flash-src-with-jquery">Change flash src with jquery?</a> </p>
</blockquote>
<p><strong>EDIT</strong> <em>I figured out the first issue (not loading at all) so I took that portion out</em></p>
<p... | 1 | 2,241 |
How do i get an item from dynamodb table? | <p>Im trying to check if an item exists in my dynamodb table using the code below:
I want to be able to run something once I can retrieve the item. The partition key is <strong>envName</strong> and the sort key is <strong>configurationName</strong></p>
<pre><code>package com.dev.newlibs;
//all relevant imports added h... | 1 | 1,556 |
How do I update the cache after a mutation in Apollo / GraphQL? | <p>Firstly, thank you for your time reading this through.</p>
<p>I've tried to update the cache after a mutation based on a few methods.</p>
<p>At first, I was thinking of using context, but as I read through documents, I realized that this approach would be unnecessary with Apollo since the state is stored in the cach... | 1 | 1,085 |
How to hide bootstrap modal in mobile | <p>This is the code. Tried to use hidden-xs, but that does not work on modal, get the screen darkened view on mobile. Any help would be appreciated here. Have tried using the hidden-xs, and removing fade, both did not work.</p>
<pre><code> <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF... | 1 | 1,170 |
PEM_read_bio_PrivateKey returns NULL | <p>I have a JSON file containing the private key (downloaded it from Google Developer Console for Service Accounts). For building JWT, when I try to load the private key as a <code>EVP_PKEY</code> structure using <code>PEM_read_bio_PrivateKey()</code>, it returns <code>NULL</code> (an error).</p>
<h1>Code</h1>
<pre c... | 1 | 1,921 |
TypeError: Cannot read property 'categories' of null | <p>My back-end terminal returns <code>null</code> and <code>TypeError: Cannot read property 'categories' of null</code>, what do I lack on my code? It also returns <code>null</code> on my console.log(user) on my controllers</p>
<p><strong>This is my function:</strong></p>
<pre><code>function addCategory(e) {
e.prev... | 1 | 1,079 |
What's the VB.NET equivalent of async delegate in C#? | <p>I'm trying to convert the following extension method (<a href="https://devblogs.microsoft.com/pfxteam/implementing-a-simple-foreachasync-part-2/" rel="nofollow noreferrer">source</a>) from C# to VB:</p>
<pre><code>public static Task ForEachAsync<T>(this IEnumerable<T> source,
... | 1 | 1,175 |
youtube-dl returning <urlopen error [Errno 101] Network is unreachable> | <p>I have a google compute engine server that I'm trying to run youtube-dl. The server is in US Iowa, it is running debian 9.11</p>
<p>This is the returned debug output:</p>
<pre><code>youtube-dl -v https://youtu.be/tAfedFkfIiU
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Comma... | 1 | 6,642 |
Hide / Show tab contents based on PHP variable value | <p>I include one tab and display corresponding contents when user click on the tab. Here is the code for tab and contents.</p>
<p>HTML</p>
<pre><code><ul class="tabs" id="tab">
<li rel="tab1"><a id="t1" href="#" title="Login via 2FA" class="<?php echo $FAActive; ?>" onclick="CngClass(this);"&... | 1 | 1,814 |
Passing Data in React Navigation using setParam and getParam | <p>What I'm trying to do is to send the Image or Data to other Stack Navigator using getParams and setParams.</p>
<p>In GalleryScreen, what Image picked will set to <code>pickedImage</code> state, then I <code>setParams</code> the <code>pickedImage</code> state and I pass it to the parameter of <code>navigate(screen),... | 1 | 1,628 |
Python code to find minimum distance between points and a curve | <p>I have some data and I have plotted magnitude against wavelength (the blue points). I then have some code that reads a model stellar population from a file, and plots this on the same graph (the pink line). In this code, there is a scale that can be adjusted that moves this line up or down on the graph. So far I hav... | 1 | 1,297 |
R - dplyr - filter top_n rows based on multiple conditions | <h1>Hi, this is my first post,</h1>
<p>I hope to get it right and reproducible.</p>
<p>I was wondering if there is a more elegant solution than my approach below</p>
<p>I have a dataframe and would like to use conditional filters and extract rows that meet these conditions. </p>
<p><strong>As output I would like th... | 1 | 1,109 |
SELF JOIN to Update Rows Of the Table | <p>I have a Table with these columns</p>
<pre><code>- ProjectId
- Generation
- Expected
- CarryOver
</code></pre>
<p>I am trying to update my already populated table in this fashion:</p>
<pre><code> Generation = Integral Part of ((Generation + CarryOver of Previous Row)/10 )
CarryOver = decimal part of ((Ge... | 1 | 1,347 |
how to generate hash of flowfile attribute (some of them) | <p>I have a <code>flowfile</code> with 3 attributes a, b, c. I want to create 2 new attributes <code>a_b_hash</code>, <code>c_hash</code>.</p>
<pre><code>a_b_hash = hash of (value of a + '_' + value of b)
c_hash = hash of c
</code></pre>
<p>So at the end I want 5 attributes <code>a</code>, <code>b</code>, <code>c</co... | 1 | 7,085 |
Symfony2 repeated type does not validate | <p>I have two password fields. That extra is for confirmation.
And there is no error message when both are empty or when passwords don't match.</p>
<p>How to enable or debug this validation which I presume should be working out of the box (<a href="http://symfony.com/doc/current/reference/forms/types/repeated.html#val... | 1 | 1,465 |
Use Wix installer to add shortcut to subfolder in startmenu programs | <p>I am trying to add my program shortcut to an existing folder in the start menu shortcuts. For example <code>All Programs -> AppNameFolder -> AppNameVersionFolder -> AppShortcut</code></p>
<p>In order to achieve this I added the extra lines:</p>
<pre><code> <Directory Id="ProgramMenuFolderApp" ... | 1 | 1,308 |
TypeError: $(...).tooltip is not a function with webpack | <p>I'm trying to migrate my application from requirejs to webpack 2 but i'm having trouble.</p>
<p>My webpack config :</p>
<pre><code> rules: [
// rules for modules (configure loaders, parser options, etc.)
{
test: /\.jsx?$/,
include: [
path... | 1 | 1,269 |
Mongoose, find by element in array | <p>I'm trying to find all documents with a certain value in an array field using Mongoose and Node.js. I can do this in MongoDB with no trouble, but I'm having difficulty in Mongoose. I used <a href="https://stackoverflow.com/questions/18148166/find-document-with-array-that-contains-a-specific-value">Find document with... | 1 | 1,211 |
Create a Custom AdMob Plugin for Phonegap Build (for iOS and Android) | <p>Everything in my Phonegap Build app is working, including the Analytics and FacebookConnect plugins. However, now I would like to add AdMob ads.</p>
<p>Phonegap Build does not provide a built-in plugin for AdMob, but according to the <a href="https://build.phonegap.com/docs/plugins" rel="nofollow noreferrer">Phoneg... | 1 | 2,082 |
Setting up MongoDB + Django | <p>I am new to Mongo DB and Django. I've been trying to use Mongo DB as my primary Database for Django. I've installed MongoDB and Django-nonrel as per the following link:</p>
<p><a href="http://django-mongodb-engine.readthedocs.org/en/latest/topics/setup.html#django-mongodb-engine" rel="nofollow">Django - MongoDB set... | 1 | 1,373 |
Programmatically executing ANT script in Java | <p>I've built a swing gui in eclipse that is supposed to run a bunch of code previously developed, part of which involves running ant to build the code. When I run the any script outside of the GUI (in the original project) the ant executes correctly and builds the project. However when I try and run ant programmatic... | 1 | 1,131 |
Spring Security - Get username in AuthenticationSuccessHandler without UserDetails/UserDetailsService | <p>I'm trying to set the LastLogin time for a user in a custom AuthenticationSuccessHandler, however I don't know of a way of retrieving the username (since all the authority functions seem to return null because I'm not working with UserDetails).
The user data is stored in a MYSQL table and I'm using Hibernate to retr... | 1 | 1,180 |
How do you add bootstrap cdn to a wordpress theme? | <p>I am very new to wordpress development and I tried adding bootstrap through the function.php file. I get the bootstrap styles but some of the things like the dropdown and the the expanding hamburger menu are not working. Can someone explain what I am doing wrong?</p>
<p>This is my functions.php file:</p>
<pre><cod... | 1 | 1,506 |
Android Programming ViewPager from a GridView | <p>I am new to android programming and am looking to implement a gallery which has a grid view that then pushes on to a view pager but I am having a few problems getting this to work. I have it working currently just using a static Image Adapter but am not sure how to change this to use a view pager instead. I also wa... | 1 | 1,945 |
How to make smooth blur effect in java? | <p>I have blured an image. But it is not smooth. </p>
<p>I heard that if I use the gaussian blur technique then I can remove the box effect. </p>
<p>But I don't know how to implement it with my code (I did some random technique but it messes with the color). Can you suggest me how to do gaussian blur with my code?</p... | 1 | 1,115 |
The App keeps restarting itself | <p>I am trying to pass an intent from the doInBackground method to the onLocationchanged method in the inner LocationListent of the MainActivity. I am facing the problem the appp keeps restarting, then freezing and the device restart itself.</p>
<p>The routes varibale has these values [7,31]. </p>
<p>The app works fi... | 1 | 3,387 |
Divide and Conquer Algorithm for Finding the Maximum Subarray - How to also provide the result subarray indexes? | <p>Excuse me, I have an assignment to solve the <a href="https://en.wikipedia.org/wiki/Maximum_subarray_problem" rel="nofollow">Maximum Sub Array Problem</a> using the <a href="https://copingwithcomputers.com/2014/05/17/maximum-subarray-problem/" rel="nofollow">Brute Force Algorithm O(n^2)</a>, <a href="http://www.geek... | 1 | 1,118 |
How to map the action class using ajax request in Struts 2 | <p>I am new in Struts2 and and working on one project. While integrating front end with back-end module I am not getting any error or exception but the action class is not mapping with the JSP form where I need to populate the department list. I referred many examples from different blogs and its working, but in my mod... | 1 | 3,186 |
How do I return a List from Tornado? | <p>I'm trying to to get tornado to return a list.</p>
<pre><code>@tornado.gen.coroutine
@tornado.web.asynchronous
def get(self, param):
...
someList = [bla,bla,bla]
self.finish(someList)
</code></pre>
<p>but whenever I do I get</p>
<pre><code>HTTPRequest(protocol='http', host='tornado', method='GET', u... | 1 | 1,098 |
Testing code in a Rails engine with RSpec | <p>I'm trying to do something seemingly simple but it's proven rather hard.</p>
<p>I want to write tests using RSpec for classes that I've put in the <code>lib</code> directory of a Rails Engine.</p>
<p>Here are exactly the steps I'm using:</p>
<pre><code>rails plugin new mygem -T --mountable --full --dummy-path=spe... | 1 | 1,325 |
How can I use the Google API in a chrome extension? | <p>I'm now searching for hours how I can use the Google API in a chrome extension. All I want to do is to parse the contents of a website and insert it as a new event to Google Calender. I got the parsing and everything, but it seems to be impossible to use the Google API inside a Chrome extension. I'm just trying to w... | 1 | 1,698 |
MarshallingView in Spring MVC 3 | <p>I'm getting this error when I use MarshallingView to marshal my list (java.util.List) of FileManagement objects. This doesn't happen if I just add only one object to the model. So it's working with an object but not with the collection (List).</p>
<p><strong>Exception</strong>:</p>
<pre><code>javax.servlet.Servlet... | 1 | 2,213 |
'Did not understand "MustUnderstand" header(s)' Error in SoapUI Response | <p>Im trying to use SoapUI for automated tests of a webservice. When I send the request form the server where the test should be automated, I always get the following response: </p>
<pre><code>---------------- Request ---------------------------
Request Headers: Authorization : Basic
Host : domino.auto-partner.net
Co... | 1 | 1,838 |
Jackson - Processing JSON with multiple types | <p>Say I have a JSON file that looks like this:</p>
<pre><code>{
"response" : [
{
"id" : "10",
"period" : "month",
"values" : [
{
"value" : 100,
"date" : "2013-05-10"
}
],
"parent" : "1"
},
{
"id" : ... | 1 | 1,184 |
Object reference not set to an instance of an object on layout page | <p>I have an edit form in an edit page.When I come in the page for the first time everything is OK.But after submitting the form I see this error:</p>
<blockquote>
<p>Object reference not set to an instance of an object. Description: An
unhandled exception occurred during the execution of the current web
request... | 1 | 3,438 |
How can I disable TLS_RSA_WITH_AES_128_CBC_SHA without disabling others as well? | <p>I'm trying to narrow down the allowed SSL ciphers for a java application. In the java.security file, I am using:</p>
<blockquote>
<p>jdk.tls.disabledAlgorithms=SSLv2Hello, SSLv3, TLSv1, TLSv1.1, 3DES_EDE_CBC, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_128_GCM_SHA2... | 1 | 1,162 |
Why do checkboxes move when checked in Safari? | <p>I have a series of values with checkboxes pre-checked on this <a href="http://www.sewind.org/map/find-companies" rel="nofollow noreferrer">page</a>. The look and work fine in all browsers, except Safari. When I click on any of the checkboxes they 'jump' or 'drop' down and then move back into position.</p>
<p>I did ... | 1 | 1,437 |
UIPickerView appears but doesn't show data | <p>I've been all over the place for the last two days trying to find the answer to this, but I can't seem to get it. As far as I can tell, I have everything setup correctly, but it just doesn't want to work.</p>
<p>My app scans QRCode tags and saves them to a mutable array. I need to create a way so the user can remov... | 1 | 1,091 |
Error while NPM INSTALL inside angular project | <p>We are a team working on a angular project. After downloading the code from repo, when I try to run $npm install, im facing the following error.</p>
<p>I have tried installing node-gyp, node-sass, deleted node_modules under project directory but nothing resolves the issue while executing $npm install </p>
<bloc... | 1 | 1,432 |
wxPython - Resizing an image with the EVT_SIZE event of its parent panel | <p>My previous attempt at asking this question was horrible and I had also made some progress, please bear with me, I did not intend to re-ask this so many times, and it is not my style.</p>
<p>Here is the final version: I am resizing a window that contains a DC Client painted bitmap and on the EVT_SIZE event, I am r... | 1 | 2,845 |
Getting "Integrity constraint violation: 1452" in Laravel | <p>I am using two pivot tables to store two different relations of a table. One relation works fine on insert. but the next one throws the following error. I don't know what's causing this.</p>
<blockquote>
<p>SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key const... | 1 | 1,472 |
Not able to start Tomcat in Java | <p>I cannot start Apache Tomcat for this app. Could you please help me to get the solution? If I start tomcat without any project it starts, but if I do "Run on Server" for an specific project the error I get is: </p>
<pre><code>GRAVE: A child container failed during start
java.util.concurrent.ExecutionException: or... | 1 | 5,879 |
Django: How can I use a variable inside an if statement in the template? | <p>My views.py hands over a variable called "preSelect" that contains a Integer value.</p>
<p>Inside the template I want to use that Integer in an If statement to check if the current for loop counter is less equal or greater than than my value.</p>
<pre><code>{% if forloop.counter <= {{ preSelect }} %}
<td... | 1 | 2,156 |
ASP.NET AJAX Modal Popup - Dynamic Control Values | <p>I am working on adding a modal popup to ASP.NET pages. The popup will give the user some textboxes to fill in, with a Cancel and Submit button. </p>
<p>The issue I'm running into is that the textboxes are being created dynamically, as the number of textboxes needed and what they are asking for will change dependi... | 1 | 1,583 |
Drawing graph in graphviz layout in python using nx.draw_graphviz gives error | <p>I am trying to draw a 100 node multi-graph G in graphviz layout in python's networkx so I made two trials so far:</p>
<p><strong>Trial 1</strong> <a href="https://networkx.github.io/documentation/latest/reference/drawing.html" rel="nofollow">nx.draw_graphviz</a> function as follows <code>nx.draw_graphviz(G)</code> ... | 1 | 1,479 |
How to Execute a Function Inside a Stateless Component for Testing in Jest and Enzyme | <p>I've got a parent component that I've wrapped with Recompose <code>withHandlers</code> HOC. I've got a function called <code>removeGiftHandler</code> that I want to pass down to the child component as a callback that will change the state kept in the props in the parent component (using <code>withState</code>).</p>
... | 1 | 1,195 |
Maven cannot find spring social | <p>I need spring social for a web site, but my maven is having issues finding it. I added both the spring social core and spring social Facebook dependencies, but i get this in eclipse:</p>
<pre><code>Missing artifact org.springframework.social:spring-social-core:jar:1.1.0.BUILD-SNAPSHOT
Missing artifact org.springfr... | 1 | 4,997 |
CursorTreeAdapter with search implementation | <p>I'm making an application for <a href="/questions/tagged/android" class="post-tag" title="show questions tagged 'android'" rel="tag">android</a> and I'm using CursorTreeAdapter as ExpandableListView. I want to use a search box for displaying the filtered ExpandableListView items. Like this:</p>
<p><a href="h... | 1 | 10,483 |
How to display table data in Bold or color using jsp, javascript, css | <p>I have a web application which displays data from a database. It shows results in 0's or numbers. The numbers displayed should be bold or in some color. How do i do I display the results from database in bold in a webapplication.</p>
<pre><code><svp:tbody rowCount="0" maxDisplayRows="100">
... | 1 | 1,470 |
Running Spark application: java.lang.NoSuchMethod error | <p>I have a Spark application that was assembled using sbt 0.13.7, Scala 2.11.4, and Spark 1.2.0. I am running on Mac OSX Yosemite.</p>
<p>In <em>build.sbt</em>, I use "provided" for the Spark dependencies. I can run the application fine within sbt.</p>
<p>I run into problems when I try to run it from the command lin... | 1 | 1,751 |
How to get rid of No 'Access-Control-Allow-Origin' header is present on the requested resource error in java based web-service server | <p>I'm trying to build a webservice (Java based server and Javascript base client) I only need to send a Post request with json data and I need to get a post response with json data from server.Since client and server have different domains I think cors need to be supported. Up to now, I've implemented these: (My clien... | 1 | 1,469 |
Angular 6: subscribe does not exist on type void | <p>I want to display success messages to user after submitting a form.</p>
<p>form works perfectly when it come to submit the data but the flash message is not displayed and I get error: subscribe does not exist on type void</p>
<p>Here is what I have done , </p>
<p>Html: </p>
<pre><code><form [formGroup]="angFo... | 1 | 1,647 |
useState not updating the state | <p>I'm trying to filter users with input search inside the function <code>searchByName</code>.
I manage to get the right result in <code>copyUsers</code>variable but unfortunately it does not reflect the change inside the state.</p>
<p>Forgot to mention, using bare React-App with hooks and typescript.</p>
<p>For exam... | 1 | 1,681 |
No error but `md-table` not rendering data ( `connect()` is not called) | <p>I am trying to implement <a href="https://material.angular.io/components/table/overview" rel="nofollow noreferrer">Angular Material Table.</a>. The problem is that I do not get any error but there is no output. I have not used the typical example but am trying to implement using my own data. </p>
<ul>
<li>What am ... | 1 | 1,322 |
StartSSL SSL certificate showing up as net::ERR_CERT_AUTHORITY_INVALID in browser | <p>I've "purchased" a 3 year StartSSL free Class 1 DV certificate for my development domain, and installed it on NGINX as per their instructions.</p>
<p>I notice that the nginx certificate they provide contains the DV certificate, with my 10 domain aliases added to it, and also the intermediate certificate, which they... | 1 | 1,364 |
golang can not find package gin in sub directory | <p>I get the following error message:</p>
<pre><code>controllers/user.go:4:2: cannot find package "(underscore)/home/ubuntu/goapi/src/github.com/roes/api/vendor/github.com/gin-gonic/gin"
in any of: /usr/local/go/src/(underscore)/home/ubuntu/goapi/src/github.com/roes/api/vendor/github.com/gin-gonic/gin (from ... | 1 | 1,362 |
Datepicker change selectable date color CSS | <p>I have a date picker that has colors of days set dynamically. The only dates selectable are set to ALL Sundays only. My color pattern is set to every third day - the un-selectable dates are a muted red, the selectable dates are a bright red. - I want the selectable dates to be muted like the others.</p>
<p>CSS on s... | 1 | 1,176 |
How to stream data from Kafka to MongoDB by Kafka Connector | <p>I want to stream data from Kafka to MongoDB by using Kafka Connector.
I found this one <a href="https://github.com/hpgrahsl/kafka-connect-mongodb" rel="nofollow noreferrer">https://github.com/hpgrahsl/kafka-connect-mongodb</a>. But there is no step to do.</p>
<p>After googling, it seems to lead to Confluent Platform... | 1 | 3,895 |
How to detect privacy permission changes (Camera access for example) | <p>We've all been there. You want to take photos within your app, or access photos, microphone, contacts, etc... But first iOS must prompt the user for permission. In many cases the user will deny access. </p>
<p>If your app detects that the user has denied access, you can navigate the user to the App's privacy settin... | 1 | 1,032 |
terraform route53 simplest example to create a dns record in hosted zone pointing to public IP of ec2 instance | <p>I am trying to create a simplest example where in I can</p>
<ul>
<li>create a DNS A record pointing to the public IP of an EC2 instance created in default VPC.</li>
</ul>
<p>I have the following code for the same</p>
<h3>hostedzone.tf</h3>
<pre><code>resource "aws_route53_zone" "devopslink-public-zone... | 1 | 1,040 |
XMLHttpRequest has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response | <p>I am having issues creating new users from the form due to CORS. I was able to last week in this app but not sure what is missing from my server (methods, origin, headers, etc.)or my API call.</p>
<p>Here is what is suggested in the issues part of the console:</p>
<p>To fix this issue, include the additional request... | 1 | 1,471 |
XAML binding to CompositeCollection | <p>I have only one datagrid in a single view but the collections which are ItemsSource's of this datagrid are in different View Models. So is it possible to bind this single datagrid in view with the collections in two different View Models? </p>
<p>For each row in the grid, display an item from one collection, and an... | 1 | 1,360 |
Rabbitmq nodes unable to restart : Job for rabbitmq-server.service failed because the control process exited with error code | <p>I am configuring ansible scripts for creating HA setup for rabbitmq with 3 nodes, after the whole script is executed it runs handlers to restart rabbitmq server, but it is failing to restart the nodes. Initially when i was running the script without copying the erlang cookie in the other nodes, it was running well, ... | 1 | 2,611 |
javax.crypto.BadPaddingException: data hash wrong | <p>I try to write a crypto package in java that wraps the javax.crypto package and makes it more comfortable to use. So I implemented a RSACore class that only wraps javax.crypto. Then I implemented two classes RSAEncoder and RSADecoder to hide tha javax.crypto.Cipher and initiation of it.</p>
<p>Now to my problem:
I ... | 1 | 2,900 |
Spring Batch: not able to access jobexecutionConext in flatfileitemwriter | <p>hey i am trying to use the jobexecutioncontxt in my flatfileitemwriter and it shows me errors...</p>
<p>My xml is:-</p>
<pre><code><batch:job id="subrogationJob" incrementer="incrementer">
<batch:step id="subrogation" next="readFromDataBase">
<batch:tasklet ref="filetransferTasklet">
... | 1 | 9,038 |
Horizontal RecyclerView follows first item height with wrap_content | <p>I have a <code>RecyclerView</code> with a horizontal layout. The height of the individual adapter items can depend on the content of the item.</p>
<p>So in theory it can look like the following:</p>
<p><a href="https://i.stack.imgur.com/eBPJ3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eBPJ3.png" alt... | 1 | 1,134 |
How to Force On Load Browser Full Screen | <p>I need to make a webpage open in a browser without any borders, scrolls, menus or bars.
This script appears to do it onClick.
I wish to have the page open full screen onLoad instead. I have modified the script but no luck. </p>
<p>By the way I don't need the cancelFull screen. I just posted it in case someone want... | 1 | 1,650 |
Docker Swarm Overlay Network ICMP Works, But Not Anything Else | <p>I have a small 1-manager, 3-worker cluster setup to pilot a few things. It is running swarm orchestration and is able to spin up services across the cluster from any stack yaml and serve the webapps through the ingress network. I've made no changes to the default yum installation of docker-ce. Vanilla installation w... | 1 | 6,502 |
How to read xml string values using this path as shown in code(getFilesDir().getAbsolutePath()+ File.separator + "test.xml") | <p>Hi Everybody,</p>
<p>I am new to Android. I am using DOM parsing for reading xml string value. For that, I used following code, that code will work up to getting root element value after that it is giving exception please solve this problem,</p>
<p>Advance Thanks,</p>
<h2>Xml Code:</h2>
<pre><code><?xml versi... | 1 | 1,567 |
ModuleNotFoundError: No module named 'Crypto.Math' | <p>On Windows, I wanna run <code>pyinstaller myapp.py -w -f</code> but I have some errors with crypto modules.</p>
<p>In my code I use 4 imports, each one of these 4 imports (independently) gives me this same error </p>
<pre class="lang-py prettyprint-override"><code>from googleapiclient.discovery import build
from g... | 1 | 2,361 |
Loading images from assets | <p>i have been working on wallpaper app for a while and it's almost done but the size of app is pretty big cause i use .png extension so currently i'm trying to load jpg via assets instead of png in res</p>
<p>i tried to implement this answer
<a href="https://stackoverflow.com/questions/2752924/android-images-from-as... | 1 | 1,734 |
Exception when implementing JAX-WS client with transport level security | <p>I am trying to invoke method via webservice (SOAP)</p>
<p>I have generated Web service client with JAX-WS.</p>
<p>I can access the webservice only with transport level security.</p>
<p>I am getting the error:</p>
<pre><code>javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://10.99.36.26:8001/D... | 1 | 1,819 |
How to set border to widget, inherited from QFrame? | <p>I created widget of led light with radial gradient,(found example in internet). It was inheritated from qwidget and all type of borders that I could use in there are presented By QPaint. But I need more difficult shape for this LED, I saw this kind of borders in QFrame class, I inheritade my widget from it, but when... | 1 | 1,177 |
C# ASP.net MVC Ajax MySQL DATATABLES Column searching can't pass search value to Controller | <p><strong>Trying to Achieve</strong></p>
<p>Using Datatable, I am trying to implement column searching. I wish to pass <code>search[value]</code> and <code>column index</code> to <code>Controller</code> where I have a <code>filter method</code> that will filter and load the list.</p>
<p><a href="https://i.stack.imgu... | 1 | 2,483 |
PhoneGap orientation change crash even with Manifest changes | <p>I've seen lots of references or similar questions, but all of them teaches me to do this:
Add "android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" into the
<p>But it's done and on orientation change, the app crashes. I tried to follow every single tip and it doesn't work.</p>
<p>This is ... | 1 | 1,376 |
C++ while using priority queue Debug assertion failed, Expression: invalid heap | <p>Environment:<br>
- Win7 pro x64<br>
- VS2010<br>
- C++<br>
- Empty Project </p>
<p>Goal:
Implementation of Dijkstra's shortest path algo using a priority queue.</p>
<p>Problem:
When the program runs it gets a Debug assertion failed, Expression: invalid heap error. If the user inputs the source vertex as 1, eve... | 1 | 2,953 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.