title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How should I solve "Attempted import error: 'Component' is not exported from './Component'." | <p>I tried to import ResponseForm
but
the error</p>
<blockquote>
<p>Failed to compile. ./src/components/projects/ProjectDetails.js
Attempted import error: 'ResponseForm' is not exported from './ResponseForm'.</p>
</blockquote>
<p>happens.</p>
<p>ResponseForm component actually exists.
The path seems to be correct.
How ... | 1 | 1,128 |
Using Scapy to send tcp payload: Why a byte is eaten? | <p>My issue is as follows: I want to implement a listen service using scapy to stimulate a honeypot (because honeypot uses a fake ip, so I can't use OS sockets) and I chose scapy.</p>
<p>I implemented a very simple TCP hand-shake procedure, however one thing frustrated me: one byte of the packet I use PSH to send is ea... | 1 | 1,523 |
Azure Website ASP.net WebPages "The page cannot be displayed because an internal server error has occurred." | <p>I've developed an application in WebPages and im hosting the website on Azure. Its giving me the error "The page cannot be displayed because an internal server error has occurred."
I'm not sure what i'm doing wrong.
Heres the Web.config file.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<configura... | 1 | 1,188 |
ALSA: proper way to playback audio - blocking mode and threads | <p>I cannot get the correct way to write my loop to play audio and/or I don't understand correctly the meaning of start_threshold, stop_threshold and avail_min parameters for Alsa. I'd like to reach the lowest latency and know the correct parameters to modify in order to make my capture-process-playback chain tolerant ... | 1 | 1,865 |
Robot Framework: Multiple Resource-Files accessing the same Library | <p>Hello to all RobotFramework users</p>
<h1>Problem</h1>
<p>We have many keywords at different levels of abstraction and are looking for a simple way to import them while maintaining support for autocompletion etc. in IDEs.</p>
<p>The inheritance could look as follows:</p>
<pre><code> /---------------------> ... | 1 | 1,407 |
strutstileslistener not found in struts 2 tiles program | <p>i cant find what is wrong with my application. Using struts 2 and tiles. web.xml:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi... | 1 | 4,427 |
How to add and remove html element with javascript or jquery? | <p>I have a number of <code>CheckBox</code> elements in my html page. What I want is whenever any of these are checked, dynamically add one <code>input type='checkbox'</code> to the html page. If unchecked then remove the element which was added. No element should be repeated.</p>
<pre><code><html><head>
... | 1 | 5,515 |
Error while compiling with Laravel Mix - Vue | <p><br><br>
I've been using Laravel 8 beside Vue Js and they worked well together. I tried to start a project with Laravel and Vue Js again, but after a week it gave me an error. I used the commands below:<br>
<code>Laravel v8.26.1 (PHP v7.4.3)</code></p>
<pre><code>composer create-project --prefer-dist laravel/laravel... | 1 | 1,495 |
Can't get Stream 1: EOF reached while reading in Java 11 HTTP/2 Client | <p>I'm currently learning HTTP/2 Client in Java 11(<code>java.net.http</code> module)</p>
<p>My purpose is send a <code>POST</code> <code>JSON</code> data to local server using Java 11 HTTP/2 Client, but I occurred some <code>IOException</code>, <code>EOFException</code>.</p>
<p><strong>Exceptions</strong></p>
<pre>... | 1 | 2,016 |
Lumen 5.4 with Laravel Mailable | <p>Naive question: is there a way to use Artisan to create a Mailable class within Lumen framework like this: <code>php artisan make:mail OrderShipped</code> (example taken from the docs).</p>
<p>Here is the <strong>composer.json</strong></p>
<pre><code>{
"name": "laravel/lumen",
"description": "The Laravel Lumen Fra... | 1 | 1,716 |
Cannot close Asynchronous C# Server Socket connection | <p>I am writing code allowing a Android client to connect to a C# server socket. The client and server are working correctly but I am unable to shutdown or disconnect the socket.</p>
<p>The server is started by an on click event:</p>
<pre><code>private void btnStartServer_Click(object sender, EventArgs e)
{
Async... | 1 | 3,318 |
Remove `\t` from JSON created from multidimensional array (php) | <p>I am coverting array <code>$arrData</code> into JSON using <code>json_encode()</code>. I gatherd data from web and put it into php array. The problem is that output is full of tabs. I tried <code>$arrData = trim(preg_replace('/\t/', '', $arrData));</code> - but it deletes <code>\t</code> and all arrays inside arrays... | 1 | 2,619 |
Gulp - build files with custom folders | <p>I'm creating a workflow to build custom e-mail templates. In my folder, I have this structure:</p>
<pre class="lang-html prettyprint-override"><code>folder/
templates/
template-001.html
image-001.jpg
images/
image-default.jpg
src/
style.scss
</code></pre>
<p>I'm using <c... | 1 | 1,756 |
Json returns every character as a separate object? | <p>I have a json object that I'm loading from wordpress using the JSON API plugin. When I load the json object and try to log out the parts of it, it seems like it treats every single character as its own object so the loop returns me a couple thousand objects all with item in it which is a single character. This is my... | 1 | 1,190 |
DEBUG Build fingerprint crash ! | <p>When I try to start a Bluetooth socket, I receive this, and my android application crash without error log :</p>
<pre><code>05-20 09:59:07.790 E/BluetoothConnectionService (3162): socket connect failed
05-20 09:59:07.790 I/BluetoothConnectionService (3162): close socket
05-20 09:59:07.800 I/DEBUG ( 1064): ***... | 1 | 8,130 |
Discrete data plots in matplotlib | <p>I have two data arrays and I am looking to plot them in a single plot using <code>matplotlib</code></p>
<p>The data arrays are: </p>
<pre><code>date_array=['2018-03-26', '2018-03-27', '2018-03-28', '2018-03-29', '2018-04-02', '2018-04-03', '2018-04-04', '2018-04-05', '2018-04-06', '2018-04-09', '2018-04-10', '2018... | 1 | 1,902 |
ASP.NET MVC - Using a Form in a Bootstrap Modal to call an Action from a Controller | <p>I have a Form that creates an entry into my database. I am trying to add an additional form via a modal that will allow the user to populate the first form by searching a property on the webservice. </p>
<p>What I need is for when the user types hits search in the modal it will call an action on controller that th... | 1 | 3,213 |
Table auto-scroll with min height | <p>I'm using Twitter Bootstrap and I have a pretty annoying problem.
I have a table (call F) with a row and two cells, in the first cell I have another table (called T) and in the second cell some content (called C), see <a href="http://jsfiddle.net/mcJvU/" rel="nofollow">http://jsfiddle.net/mcJvU/</a>.</p>
<pre><code... | 1 | 1,909 |
Uncaught TypeError: Object #<Object> has no method 'replace' line 75 | <p>I'm putting together a tournament bracket system allowing you to drag 'winners' to the next round, and if applicable the loser is automatically transfered to his place in a losers bracket. After each drop I'm sending to php details about the match for both individual tracking purposes as well as refilling the posit... | 1 | 2,409 |
How can we set Java classpath in shell script? | <p>I need a help with this concept. I searched several threads in this forum but none matched my problem. </p>
<p>I write two java classes and a shell script. I zip them into a folder and send it to another person who does not know java. He would just unpack and run the shell script.</p>
<p>The person will extract th... | 1 | 3,224 |
How to properly use flex to align two components side by side (Material UI + ReactJS)? | <p>I am attempting to achieve side by side components of two cards ( <a href="http://www.material-ui.com/#/components/card" rel="nofollow noreferrer">http://www.material-ui.com/#/components/card</a> )and did so successfully. But when I expand the card, the following occurs:</p>
<p><a href="https://i.stack.imgur.com/rY... | 1 | 1,482 |
How to resolve css loader in webpack config? | <p>I am trying to set up a react project and managed to add components correctly. Now I am trying to add css to this project but I having a hard time.</p>
<p>I have tried numerous approaches with no result and I have some basic knowledge of how to go about it however no attempt worked. I have added the loader and th... | 1 | 3,493 |
Google reCaptcha verification handshake exception | <p>I'm using reCatpcha for my application and I can integrate it on my page with no issues. However, when I try to verify the response through a POST request I'm getting a handshake error. Here's the error I'm getting:</p>
<pre><code>javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX ... | 1 | 2,412 |
JavaFX 2.2 : Styling a table cell and handling row pseudo-classes (hover, selected, etc) | <p>I'm working on a JavaFX application which include a TableView with special cell, such that when the data in the cell is invalid, the cell turns red.</p>
<p>That's easy enough with css, but I'm having trouble covering all of the pseudo-classes of the TableCell.</p>
<pre><code>import javafx.application.Application;
... | 1 | 2,643 |
Text below image in grid made with divs | <p>I made a grid with divs and there are images on it. Now i want to get the text directly below image somehow. I don't know how to do it. This is my code:</p>
<pre><code><div id="grid">
<div id="gridtop1">
<img src="img/img.jpeg" />
<p>Text here</p>
</div>
... | 1 | 1,100 |
Maven repository issue | <p>Maven tries to download packages/dependencies from localhost on port 8081. This nexus url takeover is unwanted and has not happend to me before.</p>
<p>After running the usual <code>mvn clean install</code> this happens:</p>
<pre><code>Downloading:
http://192.168.10.46:8081/nexus/content/groups/public/org/codehaus... | 1 | 2,994 |
How to access value inside vector of vectors of type class | <p>I'm in an introductory C++ class and we've been tasked to write a program that reads a .ppm picture file, copies it, then writes it to an output file.</p>
<p>To do this, my PpmPicture class has a vector of vectors, where each index contains a Pixel with red, green, and blue ints.</p>
<p>My problem is with my outpu... | 1 | 1,456 |
Referencing the correct version of Oracle.DataAccess in .NET | <p>I'm trying to reference Oracle.DataAccess from a .NET 4.0 project, written on Visual Studio 2013. My machine's GAC has two versions of Oracle.DataAccess installed: 4.112.1.2 (provided by Oracle version 11gr2) and 4.121.2.0 (provided by Oracle version 12c). </p>
<p>I want to reference version 4.112.1.2 (my project m... | 1 | 1,257 |
java.lang.AssertionError: assertion failed: | <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>[error] (run-main-0) java.lang.AssertionError: assertion failed:
[error] java.lang.AssertionError: assertion failed:
[error] at s... | 1 | 1,170 |
Angular error : Http failure response for http://localhost:3000/login: 404 Not Found | <p>I want to get login information that user enters at backend.
Here is the backend code :- </p>
<pre><code>package main
import (
"fmt"
"net/http"
"github.com/gorilla/mux"
"github.com/gorilla/handlers"
"encoding/json"
"log"
)
type LoginDetails struct {
Username string `json:"username"`
... | 1 | 1,096 |
Proguard obfuscation results in java.lang.IllegalArgumentException: class declares multiple JSON fields named "a" | <p>Upon starting up my app logs two errors, but only after obfuscation. Without obfuscation there are no errors.</p>
<p>Unless I'm being misled, the errors are like:</p>
<blockquote>
<p>class Property declares multiple JSON fields named a</p>
</blockquote>
<p>and same for class PropertyDefinition.</p>
<pre><code>... | 1 | 1,218 |
AVCaptureSession rotation | <p>I'm trying to get my app to create a UIImage the correct way round.</p>
<p>Most of my code is taken from Apple examples...</p>
<pre><code>@interface CameraManager () <AVCaptureVideoDataOutputSampleBufferDelegate>
@property (nonatomic, strong) CIContext *context;
@property (nonatomic, strong) AVCaptureDevice... | 1 | 2,592 |
WPF MaterialDesign Dialog Host | <p>I am building a WPF application and I would like to have custom MessageBox but I saw that is really tedious and I thought of using the DialogHost provided by MaterialDesign. The problem is that I can't get it to work the way I want it to so let me describe the current behaviour and the wanted one.</p>
<p>The current... | 1 | 2,394 |
Spring Thymeleaf pass map to form | <p>I have a Properties hashmap, that i pass to my form in settings.html:</p>
<pre><code><form action="#" th:action="@{/settings/modify}" method="post" th:object="${properties}">
<div th:each="property : ${properties}">
<div class="form-group">
<label th:for="${prope... | 1 | 1,381 |
Custom config.ini in Eclipse RCP product | <p>My eclipse RCP (3.7) application is currently in a good shape, in which product can be exported successfully for multiple platforms and runs just fine. What I need is to change some properties in <code>config.ini</code> file, in particular <code>osgi.instance.area.default</code> and <code>osgi.configuration.area</co... | 1 | 1,109 |
Error creating bean with name 'batchDataSource': Requested bean is currently in creation: Is there an unresolvable circular reference? | <p>I have a batch configuration. I saw the batch process is default using <code>InMemoryMap</code>. Instead I need to use the MySQL to send all the execution details by Batch. But when I use the following code I am getting the following error,</p>
<blockquote>
<p>Error creating bean with name 'batchDataSource': Request... | 1 | 1,071 |
Can I assign multiple data-id values to one attribute in one element? | <p>I use WordPress. I have an audio player on my site. When a user clicks the play button on an individual song, it will play the song. The post ID is how the player determines which song to play. </p>
<p>So in the DIV that wraps the button tag, I assign an attribute: <code>data-id</code> which is the post id of the s... | 1 | 1,663 |
Android: How to make a default dialer app? | <p>Today I got a rejection from Google for my app <a href="https://play.google.com/store/apps/details?id=com.gazman.beep" rel="noreferrer">Facetocall</a></p>
<blockquote>
<ul>
<li><p>Your app does not appear to prompt the user to be a default handler prior to requesting related permissions as required by the polic... | 1 | 1,819 |
Registering Custom URL Handler in C# on Windows 8 | <pre><code>using System;
using System.Windows.Forms;
using Microsoft.Win32;
namespace Aodb
{
internal static class AodbProtocol
{
private const string _Protocol = "aodb";
private const string _ProtocolHandler = "url.aodb";
private static readonly string _launch = string.Format(
... | 1 | 1,611 |
NoClassDefFoundError: Could not initialize class org.slf4j.MDC | <p>How to fix <code>NoClassDefFoundError: Could not initialize class org.slf4j.MDC</code>? I have in <code>pom.xml</code> flyway plugin where <code>slf4j</code> is excluded in favor of newer one. </p>
<pre><code>[INFO] | \- org.slf4j:slf4j-simple:jar:1.5.6:compile
[INFO] +- org.springframework:spring-beans:jar:4.1.4.... | 1 | 1,215 |
Radgrid performance Issue with more records | <p>I recently bought Telerik controls. I am getting performance issue with radgrid.</p>
<ol>
<li>I implemented paging to the radgrid with 6000 records. And i created viewall option on rg402_ItemCreated to the radcombo. When i select viewall its taking 20 sec to bind the data to the grid and after that the brower get... | 1 | 4,966 |
Including file breaks php script | <p>Whenever I include a certain file in my PHP script, it breaks the code and only loads the stylesheet. I'm not sure what might be causing this issue. Is it caused by dependencies? I'm not sure if PHP inherits values, etc. </p>
<p>search.php calls a function in tablegen.php. </p>
<pre><code>include 'tablegen.php';
<... | 1 | 3,236 |
Sweet Alert not waiting until user clicks ok | <p>I am using SweetAlert with Symfony and I want the user to confirm before completing a delete action.</p>
<p>What's happening is when the user clicks the delete button the SweetAlert pops up, then disappears right away and the item was deleted.</p>
<p>I do not want the item deleted until the user clicks ok from the... | 1 | 1,189 |
How to create a mysql persistent connection from a java application? | <p>Hi I'm writing a java application which needs to create a persistent connection with a mysql database. I don't have access to the database server so I can't change anything on the database server so that it does not close connection.</p>
<p>I am getting following error:</p>
<pre><code>Exception in thread "main" co... | 1 | 3,377 |
setOnItemLongClickListener and setOnItemClickListener are not triggered when using drag-sort-listview (DSLV) | <p>I'm using the excellent drag-sort-listview by Carl Bauer (https://github.com/bauerca/drag-sort-listview) to implement a drag-sort enabled listview. However, my requirement is not to need a drag handle on the list, but instead to allow the user to drag the list items using the item itself.</p>
<p>I've gotten that pa... | 1 | 1,076 |
EJB3.0 How to use MDB | <p>Hey, I am new to coding in j2ee. My question is regarding MDB.
I have already set up my weblogic 11g server. and the queue has been set up. </p>
<p>I have written the client code which is a java se client that sends a msg to the queue.</p>
<pre><code>import java.util.Hashtable;
import java.util.Properties;
import... | 1 | 1,359 |
Debugging ASP.NET Cannot use a leading .. to exit above the top directory | <p>I'm getting the dreaded <code>Cannot use a leading .. to exit above the top directory.</code></p>
<p>Unfortunately for me it's being generated...somewhere?....out of my control. Are there tools that will help me find out where it's being generated? Or even the actual text of the hyperlink? Maybe intellitrace someho... | 1 | 1,514 |
Solve 500 response Laravel (Uncaught UnexpectedValueException: Laravel.log) | <p>I have a problem with my (new/clean) Laravel (tried v5.2 and v5.5) application on Centos 7. It shows a 500 error when i visited the URL of the application with no error. I checked the log file of apache (/etc/httpd/logs/error-log.log) what contained the 2 errors bellow:</p>
<blockquote>
<p>[Mon Dec 04 10:32:34.10... | 1 | 1,154 |
npm run build-storybook fails with "Module parse failed: Unexpected token (20:25)" | <p>I am trying to setup Storybook from scratch for a new project. I am hitting a wall and finding no useful information online around a babel/webpack issue that appears during build.</p>
<p>Note that I am able to correctly run Storybook locally, this issue only happens during build time.</p>
<p>The project has no webpa... | 1 | 9,137 |
How to wait until element is available in selenium python | <p>I am writing script using selenium python but there is problem i have tried to find solution but i can not find one that was helpful to me. here is the code </p>
<pre><code>from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
import unittest
from... | 1 | 1,061 |
logback-classic SocketAppender and Lilith log viewer | <p>In a JEE6 project deployed in glassfish 3.1. I have the following issue: </p>
<p>Lilith - a logviewer which listens to a socket - only catches the first log message then misses the rest of the messages. What makes it even worse is that the behavior is not consistent and occasionally it might catch the first and the... | 1 | 2,898 |
Android open InfoWindow on cluster marker | <p>I implemented a option to find the nearest marker from the actual position. I have all the markers in a ClusterItem with a custom InfoWindow. On a normal google map without clustering I could just use <code>marker.showInfoWindow();</code> and the InfoWindow would popup. It seems there is no such method when using cl... | 1 | 1,356 |
Three.js not possible to load textures | <p>I have an Three.js project with augmented reality and now I try to load a model with textures. For some reason my model is black and I have no textures. I checked the box in blender to export the images, I also see that in the .js file of the t-rex (model I'm using) that it lists the textures but my application wont... | 1 | 1,804 |
Apply CSS to only one input field | <p>I Have a jsp page. It contains no.of input fields. I added Css for my jsp page. Now the problem is, when i use the css attached below it is applying for all input fields.I just want to apply it for UserName field only.</p>
<p>JSP Page</p>
<pre><code><form method="post" action="./DataCaptureServlet" autocomplet... | 1 | 3,581 |
Tic Tac Toe - Detecting win, lose, or draw | <p>This is a tic tac toe generator. Computer vs. Computer only, a little different than the usual Player vs. Computer. I have most of my code written for this, but the issue I am having is sometimes when I generate the game, the whole board fills up and there will be a line of X's and a line of O's and it will come up ... | 1 | 2,759 |
How to disable click of a column from a DataGridView? | <p>I have a <code>DataGridView</code> on WindowsForm where I'm passing data from my database. The purpose of this <code>DataGridView</code> is to enable to user to click on a value and modify it. However, I don't want the user to leave the value blank, add words, only numbers.. and of course not change the Id, which is... | 1 | 2,372 |
Flutter: avoid UI freeze when massive Database operation is in progress | <p><strong>UPDATE</strong> (15 july 2020)</p>
<blockquote>
<p><em>mFeinstein's</em> response, for now, is the only answer which gives me the first acceptable solution.</p>
</blockquote>
<hr />
<p><strong>QUESTION</strong></p>
<p>I have to ask you what is the best approach for doing what i'm trying to do:</p>
<ol>
<li>C... | 1 | 1,982 |
Access token retrieved:null. com.google.android.gms.auth.GoogleAuthException: Unknown | <p>My app allows users to login with Google Plus, and gets their name, and email address. I am tried to access the token. </p>
<p>Code to access the token:</p>
<pre><code>Toast.makeText(this, "User is connected!", Toast.LENGTH_LONG).show();
GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationCo... | 1 | 1,269 |
Curl Command Failing - SSL Certificate (Exit Code 60) Inside Docker Container Running on Windows Machine | <p>There is a shell script that builds a Docker Image (calling a Dockerfile). In the Dockerfile there are several CURL commands like this:
The Docker Container is using base OS as : <code>Debian GNU/Linux 10</code></p>
<pre><code>RUN curl -s -L \
https://repo1.maven.org/ ...
RUN curl -s -L \
https://github.com... | 1 | 1,644 |
Warning: Each child in a list should have a unique "key" prop. React table | <p>I am getting this warning and I don't know how to solve it. I think it has to be with react-tables-2, the complete warning says this:</p>
<pre><code>index.js:1375 Warning: Each child in a list should have a unique "key" prop. See..
in Cell (created by ReactTable)
in div (created by TdComponent)
in TdComponent (crea... | 1 | 1,049 |
Freeglut program compiles but when run, shows the error: libglut.so.3: cannot open shared object file | <p>This is my program:</p>
<pre><code>#include </usr/local/include/GL/glut.h>
int main(int argc, char **argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA);
glutInitWindowPosition(100,100);
glutInitWindowSize(320,320);
glutCreateWindow("Lighthouse3D-... | 1 | 1,315 |
Custom Marker in Google Map in swift | <p>I'm trying to show my custom view on click of pin in google map. I have mad my custom view for it in xib file and call that file in the delegate method of <code>func mapView(_ mapView: GMSMapView, didTap marker: GMSMarker) -> Bool {</code> But when i run the app and tap the marker it does not show my view. How ca... | 1 | 1,800 |
Replace column names in a pandas data frame that partially match a string | <h3>Background</h3>
<p>I would like to identify column names in a dataframe that partially match a string, and replace them with the original names plus some new elements added to them. The new elements are integers defined by a list. Here is a <a href="https://stackoverflow.com/questions/40202268/partially-renaming-c... | 1 | 2,647 |
Invariant Violation: React error #130 | <p>So i was currently trying to render the code for a custom sidebar found in the site: <a href="https://ashiknesin.com/blog/build-custom-sidebar-component-react/" rel="nofollow noreferrer">How to build a custom sidebar in React</a>
. But i am getting the error: </p>
<blockquote>
<p>Element type is invalid: expecte... | 1 | 1,757 |
Two way data binding an array angular 6 | <p>I wanted to know how to make a two-way data binding of an array variable. I would like to retrieve them in an input field and to be able to modify them. But I do not know how to do that with an array.</p>
<p>If I come to you it's because I did a lot of research that did not allow me to solve the problem. I read the... | 1 | 1,893 |
filtering foreach data with Laravel | <p>i have data in table...look my image below</p>
<p><a href="https://i.stack.imgur.com/PXksN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PXksN.png" alt="enter image description here"></a></p>
<p>I want filter data in category name.....,if filter 1 data like "congratulation"...its work....look ... | 1 | 4,297 |
Google Maps API: find a route between two points in Israel | <p>I am trying to find a route between two points i enter manually at my html page but i get ZERO_RESULTS return value.</p>
<p>The users enters two locations src_address = "Tel Aviv" and dst_address = "Haifa".</p>
<p>i get their geometric location by calling geocoder.geocode twice for each address. then set :
src_la... | 1 | 1,858 |
JQuery $.ajax output data format | <p>I have the following code I am using to connect to a vender. When run, I am getting back a status code 0. When evaluating using Wireshark, I am finding that the request is failing because of the following:</p>
<p><strong>Error: The incoming message has an unexpected message format 'Raw'. The expected message format... | 1 | 1,215 |
Wildcard search on nested object in ElasticSearch | <p>Let's say we are storing objects of type vehicle which have a reference to a type owner in the following structure. Then Running the following request:</p>
<p>`POST: localhost:9200/15/vehicles/_search'</p>
<p>with the following body:</p>
<pre><code> { "query": { "wildcard": {"make":"*toy*"} }}
</code></pre>
<p>r... | 1 | 1,176 |
Saving Recorded Audio (Swift) | <p>I'm trying to record an audio with AVAudioRecorder and then save it so i can use it later. So far I have Made the Recorder and it does the job well and plays the audio after recording but as soon as i close the program, it's gone. what can I do? Here's the entire code I have written so far :</p>
<pre><code>class Re... | 1 | 1,227 |
How to debug socket error | <p>1 upload_odl function</p>
<pre><code>import os
import urllib2_files
import urllib2
user = 'patrick'
password = 'mypass'
url = 'http://localhost:8000/api/odl/'
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm()
password_manager.add_password(
None, url, user, password
)
auth_handler = urllib2.HTTPBa... | 1 | 1,420 |
Error CORS Laravel -- Access-Control-Allow-Origin | <p>I have developed a rest Laravel API with Angular.</p>
<ul>
<li>Laravel: -> 5.7 * </li>
<li>Angular: -> 8.2.9</li>
<li>__________Angular CLI: 8.3.8</li>
</ul>
<p>The project is separated by 2 folders each with its different technology.</p>
<p>Once the project is finished, move it to production with the IONOS serve... | 1 | 1,603 |
Why is my flutter app not displaying anything but a blank screen? | <p>I can't seem to get what the problem is. It is supposed to output two Text widgets with 16 buttons. What I get instead is a blank white screen. Any help would be greatly appreciated, thanks!</p>
<p>/* I'm only adding this for the sake of getting my question passed. I seriously don't have anything to add to the main... | 1 | 5,522 |
Recyclerview item click not always work and sometimes can work but with more more click (don't know how many click) | <p><code>Recyclerview</code> item click not always work and sometimes can work but with more more click (don't know how many click).If just click once that can't clicked.</p>
<p><strong>Note</strong> few days ago I tried to click once and it's worked, but now when I tried to running again using AS it's not work, even ... | 1 | 1,245 |
Using jQuery Datatable's fnFooterCallback after adding data using fnAddData | <p>I'm trying to get the total of my Totals column placed in the footer using "fnFooterCallback" but I'm not having any luck and I keep getting the "Cannot reinitialise Datatable" warning on me.</p>
<p>Here is my HTML code:</p>
<pre><code> <table id="hours" border="1" class="display dataTable">
... | 1 | 1,836 |
HTML canvas saving on mysql database | <p>I'm stuck with my code.</p>
<p><strong>Problem</strong>: I have canvas and inside it I draw the lines. And after I finished I want that lines to stay in the right place where i left that(before reload website). So I need to send that canvas to mysql data base. But here I stuck. Did I first need to create .png image... | 1 | 1,167 |
Plotting bus route with Google Maps | <p>I'm working on a property rental site. On the site I'd like to have a Google map, with all of the properties marked, and the local bus routes drawn, so that renters can see the proximity of the properties to the route.</p>
<p>I've achieved the first part of the problem; I've plotted the properties using markers. No... | 1 | 1,669 |
How can I get WPF menus to align like the old win forms menu? | <p>I have a WPF app that I am working on. Everything is very simple at the moment as I've not implemented any of the "meat" yet. One of the things that is bothering some of the users with the prototype is that the menu drops down "backwards" from how it used to in win forms.</p>
<p><a href="https://i.stack.imgur.com/7... | 1 | 1,431 |
How to connect to Microsoft SQL Server from Python code? | <p>I am trying to run <a href="https://hub.docker.com/_/microsoft-mssql-server" rel="nofollow noreferrer">Microsoft SQL Server in Docker</a> and connect to it via Python with <code>pyodbc</code>.</p>
<p>It is the first time I am working with this database and drives me nuts because it killed my system 5 times in a row... | 1 | 1,951 |
elasticsearch sort by date is not working | <p>I am having the problem with sorting by date on elasticsearch. As per the documentation provided by elasticsearch <a href="http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/_sorting.html" rel="nofollow">http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/_sorting.html</a> </p>
<p>I use... | 1 | 1,982 |
Image::Magick (perlmagick) resizing aspect ratio and quality issues (different than convert command line utility) | <p>I am attempting to do some bulk resizing operations of images using ImageMagick and perlmagick (Image::Magick). All of the images I have as sources are large images and I want to resize them down to various intervals or either height or width. I want to always preserve the aspect ratio.</p>
<p>Given an example im... | 1 | 1,036 |
Configure gradle.properties android.enableAapt=false on travis yml file | <p>In my android's <code>gradle.properties</code> I have the following:</p>
<pre><code>android.enableAapt2=false
</code></pre>
<p>My <code>gradle.properties</code> is located in my <code>~/.gradle/gradle.properties</code> in my local machine.</p>
<p>I am wondering how I can add <code>android.enableAapt=false</code> ... | 1 | 1,952 |
boost::asio over SocketCAN | <p>I was thinking of making use of <a href="http://www.boost.org/doc/libs/1_49_0/doc/html/boost_asio.html" rel="noreferrer">Boost Asio</a> to read data from a <a href="http://en.wikipedia.org/wiki/SocketCAN" rel="noreferrer">Socket CAN</a>.
There's nothing fancy going on in <a href="http://os1a.cs.columbia.edu/lxr/sour... | 1 | 1,517 |
Cygwin reports “-bash: /usr/bin/svn: Bad address” | <p>Upon</p>
<pre><code>$ svn co http://plugins.svn.wordpress.org/jetpack-easy-playlists/ jep/
</code></pre>
<p>or</p>
<pre><code>$ svn --version
</code></pre>
<p>I get -bash: <code>/usr/bin/svn: Bad address</code></p>
<pre><code>$ ls -l /usr/bin/svn
</code></pre>
<p>gives me <code>-rwxr-xr-x 1 JFishwick Domain Users 1... | 1 | 1,596 |
Feign and HAL/resources | <p>I've got a server that exposes resources through spring-data-rest and this uses, as far as I understand HAL or HATEOAS. But when I try to use it in combination with Feign, I can't seem to be able to register a Jackson2HalModule that gets picked up.</p>
<p>Is there something I have to do to connect the Feign "client... | 1 | 1,225 |
symfony route not working but showing in console router:debug | <p>I've added a route in my controller but it does not work even though i can see it in router:debug from the console.</p>
<pre><code>/**
* @Route("/apilucky", name="lucky")
*/
public function numberAction(Request $request)
{
// returns '{"username":"jane.doe"}' and sets the proper Content-Type header
return $th... | 1 | 1,070 |
Manual Review - Some vulnerabilities require your attention to resolve | <pre class="lang-none prettyprint-override"><code>npm audit
=== npm audit security report ===
# Run npm update terser-webpack-plugin --depth 3 to resolve 1 vulnerability
Moderate Cross-Site Scripting
Package ... | 1 | 3,883 |
How to create NetSuite SuiteTalk search with multiple terms? | <p>How does one create a SuiteTalk (NetSuite web api) search query specifying multiple search terms indicating a logical OR operator?</p>
<p>For example, I want to retrieve TimeBill records whose <em>create</em> OR <em>last modified dates</em> are within a particular range. Here's my code that works great for a single... | 1 | 1,384 |
Rotating JPEGs in .NET with minimal loss of quality | <p>I am attempting to support rotating JPEG images from ASP.NET MVC (in 90 degree increments). I am attempting to use <code>System.Drawing</code> (GDI+), however I am running into issues.</p>
<p>I tried using <a href="http://msdn.microsoft.com/en-us/library/system.drawing.image.rotateflip.aspx" rel="noreferrer"><code>... | 1 | 1,083 |
AngularJS and canvasJS Issue | <p>I am trying to make a simple website with angularJS which will involve charts being updated and changed depending on the data selected. However when I try and input canvasJS I get errors. I have looked an examples how to use canvasJS but it's still not helping. I generated the app using fountainjs. I am also using g... | 1 | 1,667 |
How to continuously send and receive packets? | <p>I am programming a server / client communication system where a client requests to log in to the server and can request to view other client's online status. I can make the client log in fine, but when I try to log in (successfully) and then send another packet requesting another client's information, the server doe... | 1 | 1,564 |
simple html login form using C#.net | <p>I am start to learn simple C#.
Please help me How to pass the HTML parameter to .ASPX page to .CS page?</p>
<p><strong>INDEX.axpx PAGE</strong></p>
<pre><code> <div class="title">
<h4>
User Login</h4>
<... | 1 | 1,074 |
why componentdidmount called two times | <p>I have React Component in <strong>componentDidMount</strong> fetch data from the server. The issue is <strong>componentDidMount</strong> called twice also the API called twice. I have a view increment API like youtube video views increment twice in the database because of twice API calling.</p>
<pre><code>class Sing... | 1 | 2,471 |
How do I access auth User's User.objects.create_user(...) in a south migration? | <p>Instead of using django's auth module I've used my own and already regret it a lot.</p>
<p>In an effort to rectify the situation, I'm trying to migrate the data from my User model to django.auth.models.User.</p>
<p>I've created a data migration as follows:</p>
<pre><code>def forwards(self, orm):
"""Migrate us... | 1 | 1,120 |
java httpclient 4.x performance guide to resolve issue | <p>There was nice article <a href="http://hc.apache.org/httpclient-3.x/performance.html" rel="nofollow">http://hc.apache.org/httpclient-3.x/performance.html</a> related to http performance, pooling, e.t.c.
Can't find the same for the latest 4.x version. Did anyone see it? I met perf issues under heavy load and would li... | 1 | 1,542 |
Plotting a masked surface plot using python, numpy and matplotlib | <p>I'm plotting a surface using matplotlib 1.1.0.</p>
<p>The plot Z axis is masked like so:</p>
<pre><code>Zm = ma.masked_where((abs(z_grid) < 1.09) & (abs(z_grid) > 0.91), (z_surface))
surf = ax.plot_surface(X, Y,Zm, rstride=2, cstride=2, cmap=colors,linewidth=0, antialiased=False)
</code></pre>
<p>But I'... | 1 | 1,362 |
IntelliJ java.lang.ClassNotFoundException: com.mysql.jdbc.Driver - connecting to XAMPP MySQL database | <p>Trying to create a basic login page in Java using IntelliJ. I've added the JAR to the CLASSPATH using these instructions: <a href="https://stackoverflow.com/questions/16742085/adding-jar-files-to-intellijidea-classpath">Adding Jar files to IntellijIdea classpath</a>. The error I'm getting is below. </p>
<pre><code>... | 1 | 1,523 |
Accurate memory usage estimate of a pandas dataframe | <p>I discovered a mismatch between memory usage reported by pandas and python, and actual memory usage of a python process reported by the OS (Windows, in my case).</p>
<p>After I import numpy, pandas and some other standard libs (like os, sys), RAM consumption of the own process, reported psutil and consistent with T... | 1 | 1,053 |
Create dynamic List Object in thymeleaf by Adding rows to Table | <p>Here is my Code Sample with Controller.</p>
<p>Controller class</p>
<pre><code>import java.util.ArrayList;
import org.CodeDaemons.dao.Document;
import org.CodeDaemons.dao.Documents;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotatio... | 1 | 4,363 |
The binding to use to communicate to the federation service at url is not specified | <p>I'm currently using ADFS as a security token service. I want to federate the WCF service with ADFS. I created WCF service and added the STS reference of ADFS by using Federation utility.</p>
<p>Inorder to use the federated wcf service, I created WPF application and added service reference. I called the service api ... | 1 | 1,708 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.