title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Packaging Blackberry OAuth app throwing error
<p>I am creating an application that will post a link onto Twitter. The following code refuses to package up for me, throwing the following error:</p> <blockquote> <p>Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified</p> </blockquote> <p>Here is the code:</p> <pre><c...
1
2,218
Slideshow with multiple animation and Viewpager images
<p>I have <code>listactivity</code> app forming many rows , one row is images Slideshow , when you click the row open activity showing <code>ImageView</code> , also there is optionmenu of one item which is( slideshow animation setting ), when you click it , it open checkbox preference animations screen with multiple ...
1
3,533
Twitter Bootstrap Legacy: Uniform height on spans
<p>See the following image:</p> <p><img src="https://i.stack.imgur.com/VYMV6.png" alt="enter image description here"></p> <p>What I need is to enlarge the B column to match the first column height, or if I had several columns they always maintains the same height, adjusting to the largest column height.</p> <p>I hav...
1
1,267
Flutter dependency injection set-up problem with get_it
<p>I'm trying to learn how to setup the dependency injection in flutter projects and I faced with one problem:</p> <pre><code>I/flutter (14507): ══║ EXCEPTION CAUGHT BY WIDGETS LIBRARY β•žβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β• I/flutter (14507): The following assertion was thrown building _InheritedP...
1
3,150
Correct way to show downloadable content in UITableView (with ProgressBar etc.)
<p>I think this a rather complex question. I have a TableView that displays a number of downloadable content. When you click it on a button within the cell the download starts.</p> <p>But I'm having several issues: 1.How can I make sure that the progressBar will be shown all the time (even if the user scrolls scrolls ...
1
1,654
SonarQube C# Analysis Fails to 'Not a Valid Line Offset for Pointer'
<p>I have projects that I've been analysing with SonarQube succesfully for a while, but now I'm having some errors. The exact error is:</p> <pre><code>12:26:01.413 ERROR: Error during SonarQube Scanner execution java.lang.IllegalArgumentException: 74 is not a valid line offset for pointer. File [blaablaablaa...] has 7...
1
1,993
Image processing framework using Android camera2 API and OpenCV
<p>I am new to camera2 api. I want to build an image processing framework on my Android phone.</p> <p><strong>Step1:</strong> use the Camera2 API to open a camera preview stream</p> <p><strong>Step2:</strong> feed the preview frame data to OpenCV for processing</p> <p><strong>Step3:</strong> display the processed re...
1
1,442
When executing proguard-maven-plugin, "CreateProcess error=206, The filename or extension is too long" occurs
<p>We are developing our own Eclipse plugin jars used by our Eclipse-based application. We are currently using <code>proguard-maven-plugin</code> version 2.0.8 to obfuscate them. However, when running <code>mvn install</code> on some plugins, we are currently encountering the following error:</p> <pre><code>[INFO] ---...
1
1,443
Runtime.getRuntime().exec JAVA method not working with tshark -o
<p>I am trying to capture packets using tshark from JAVA.[Pls find below]</p> <p>If i tried the command from terminal (Ubuntu) its working. But from JAVA its throwing error tshark:</p> <blockquote> <p>Invalid -o flag "column.format:""source","</p> </blockquote> <p>I tried following alternatives [error msg same]</p...
1
1,037
Nginx and angular: Uncaught SyntaxError: Unexpected token <
<p>so my problem is, that nginx is apparently not loading all the dependecies for angular defined at the beginning of the .html view.</p> <p>This is an excerpt from the <code>start_game.html</code></p> <pre><code>` &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;meta http-equi...
1
1,220
ESP32 UART Interrupt
<p>I am trying to run UART1 interrupt on ESP32 WROVER but in process of compilation I get:</p> <pre><code>../main/scan.c: In function 'uart_intr_handle': ../main/scan.c:195:12: error: 'UART1' undeclared (first use in this function) status = UART1.int_st.val; // read UART interrupt Status ^~~~~ ../main/s...
1
1,059
Parsing date and AM/PM using java 8 DateTime API
<p>I'm trying to parse a date time string using java 8 DateTime API.</p> <p>The string to parse contains date, month, year and AM/PM marker such as <code>17/02/2015 PM</code>. I use the following pattern: <code>dd/MM/yyyy aa</code> and I expect the parsed LocalDateTime time part to be set at <code>12:00:00</code> or <...
1
1,178
UISearchController causes black screen Swift 2.0
<p>I have a strange problem in <strong>iOS 9 with Swift 2.0</strong>. I added <code>UISearchController</code> in my <code>tableViewController</code> but it causes a strange <strong>black screen</strong> problem. When I press the search bar and write something it shows my filtered results without any problem but when I ...
1
1,667
Pandas read_csv file importing error
<p>I am trying to import a csv file in Pandas but it throws an error. The format of the data when opened in notepad++ is as follows with first row being column names:</p> <pre><code>"End Customer Organization ID,End Customer Organization Name,End Customer Top Parent Organization ID,End Customer Top Parent Organization...
1
1,554
java.io.EOFException: End of input at line 1 column 1 in retrofit 2.0
<p>I don't know where is problem</p> <pre><code>{ "success": "1", "wallpapers": [ { "id": "1", "image": "http://cyphersol.com/apps/ringtona/uploads/gallery/1477685052.jpg" }, { "id": "2", "image": "http://cyphersol.com/apps/ringtona/uploads/gallery/14776850521.jpg" }, { ...
1
1,353
ERROR [io.undertow.request] (default task-1) UT005071: Undertow request failed HttpServerExchange
<p>I'm doing a maven project with WildFly as a server, although the web page opens, it shows that the localhost isn't sending any data</p> <p>that's what shows on my WildFly output regarding to errors:</p> <pre><code>14:37:21,257 ERROR [io.undertow.request] (default task-1) UT005071: Undertow request failed HttpServerE...
1
9,789
Elasticsearch watcher and Microsoft Teams webhook
<p>I have been trying desperately for 5 days to create an elasticsearch watcher alert that sends a notification on an incoming webhook teams. However, the answer I receive is "Bad payload received by generic incoming webhook". I do not understand why it does not work.</p> <pre><code>{ "trigger": { "schedule": { ...
1
2,667
Eclipse with Websphere 7.0.0.17: EJB project does not work with resources within the workspace, but works with resources on Server
<p>My application works with Maven and has three modules:</p> <ul> <li>ear-module </li> <li>web-module </li> <li>ejb-module</li> </ul> <p>EJB Version is 3.0.</p> <p>Deployment works in both ways without error messages.</p> <p>When I try to run the application with the Publishing settings for Websphere "Run server w...
1
2,212
Get text box with textfields on radio button click
<p>I'm coding a page with some radio buttons and stuck with some problems. Here is my current output</p> <p><img src="https://i.stack.imgur.com/UUAb2.png" alt="enter image description here"></p> <p>Below is my code</p> <pre><code>&lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;link rel="stylesheet" href="ht...
1
2,214
java import error "the type android.widget.Filter.FilterResults is not visible"
<p>This question was already asked: <a href="https://stackoverflow.com/questions/18135039/the-type-android-widget-filter-filterresults-is-not-visible">the type android.widget.Filter.FilterResults is not visible</a> But there was no clear answer, and now I'm getting the same problem. In that discussion there was somethi...
1
4,845
Why does Haskell use mergesort instead of quicksort?
<p>In <a href="https://en.wikibooks.org/wiki/Haskell" rel="noreferrer">Wikibooks' <em>Haskell</em></a>, there is <a href="https://en.wikibooks.org/wiki/Haskell/Higher-order_functions" rel="noreferrer">the following claim</a>:</p> <blockquote> <p>Data.List offers a sort function for sorting lists. It does not use qui...
1
1,102
Failed to execute goal on project..Could not resolve dependencies for
<p>eclipse build failed and i got like this:-</p> <p>Failed to execute goal on project : Could not resolve dependencies for project com.ericsson:JCA-CA-SADM:jar:1.0.0: Failed to collect dependencies at org.apache.maven.plugins:maven-resources-plugin:jar:2.5 -> org.apache.maven:maven-project:jar:2.0.6 -> org.apache.mav...
1
16,726
Failure Build failed with an exception after updated Android Gradle Plugin to 4.1.0
<p>I am getting Build Failure Exception after I updated AGP to 4.1.0 and gradle wrapper to 6.5-all</p> <p>compileSdkVersion and targetSdkVersion is 30</p> <blockquote> <p>./gradlew --stacktrace assemble</p> </blockquote> <p>is throwing following error if I am setting <strong>minifyEnabled = true</strong> , it is Buildi...
1
5,662
Match and copy data between worksheets
<p>I have two worksheets, one main and other that is constantly changing. I want to compare data and if there is a match, copy data to the main worksheet.</p> <p>I have created a userform inside the main worksheet where there is a textbox asking the file name ("Change" in this example).</p> <p>After I have inserted t...
1
2,144
Using Key by Azure Key Vault to Encrypt and Decrypt text
<p>I'm trying use a key from Azure Key Vault to Encrypt and Decrypt the cookies of a web API.</p> <p>To encryption proccess I'm using the RSA, in that class:</p> <pre><code> public class SimpleRSA { private RSA _rsa; public SimpleRSA(RSA rsa) { _rsa = rsa; } ...
1
1,104
TypeError: $(...).selectpicker is not a function with angularJs and angus
<p>i'm having some hard time figuring out what does not works with angular select plugin.</p> <p>I'm working in a project where the codebase is huge and works well, and the imports are managed with angus, so i have a file in which are declared all css, scripts and so on, and for developing reasons, i'm adding some new...
1
1,314
Getting "Integrity constraint violation: 1048 Column 'payment_id' cannot be null" using Doctrine & Symfony
<p>I've been stuck for a couple of days dealing with this issue. I've been reviewing other StackOverflow questions and different forums but I couldn't get this to work, so that's the reason of this question.</p> <p>I'm developing a system that contains payments, so I've created a "Payment" class as follow:</p> <pre><...
1
1,587
JavaFX: Best way to update GridPane after row deletion?
<p>I am using a GridPane (inside a ScrollPane) as a table with user entries. Each row incorporates a username (Label), an icon depicting its state (ImageView) and two buttons, the second of which is used to delete the user entry. The two images below depict the scroll pane before and after the user entry deletion</p> ...
1
1,670
android org.xmlpull.v1.xmlpullparserexception expected start_tag http //schemas.xmlsoap.org/soap/envelope/ envelope position start tag
<p>I am suing asp.net webservice (visual studio 2008) for DBConnection in android.</p> <p>It runs sucessfully. </p> <p>My android code is:</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final Al...
1
1,489
a simple GUI multiplication table
<p>I'm supposed to create a simple multiplication table using GUI and for the most part, it's doing what it is supposed to do. But I just can't figure out the bottom portion of it where if you click on a specific button, a text will say what the two numbers are being multiplied and the answer.</p> <p>No matter what bu...
1
1,157
jQuery Ajax form submit error handling
<p>I have the following code:</p> <pre><code>var url = "save.php"; // the script where you handle the form input. $.ajax({ type: "POST", url: url, data: $("#frmSurvey").serialize(), // serializes the form's elements. success: function(){ alert('success'); }, ...
1
1,113
AEM CQ5 - Multifield custom xtype inside a mutlifield custom xtype
<p>I am trying to create a component in AEM CQ5 which will generate a quiz module. My requirement is to create a dialog which will allow me to create multiple questions each with multiple answers. My dialog xml is as follows - </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;jcr:root xmlns:cq="http://w...
1
3,977
How to remove plot margin in plotly tools.make_subplots?
<p>I want to remove the margin of the subplot: tools.make_subplots ( see code plot g01). <code>horizontal_spacing</code> or <code>vertical_spacing</code> does not help.</p> <p>For a normal plot I can do this with go.Margin(l=0, r=0 ..). (see plot g11 in code).</p> <p>I just want the same behavior for subplots. Anyone...
1
1,351
Populating a Bootstrap datepicker based on date a passed from controller not working
<p>Main problem solved however still can't get datepicker to disable. More info at bottom of post.</p> <p>I'm using MVC 5 and trying to use a <code>bootstrap datepicker</code> on one of my forms.</p> <p>My view works like this: I have a ID number field that when populated with a valid ID from my country (which takes ...
1
2,506
How to change a value in hidden field from a modal
<p>Having a modal with the Terms and Conditions, I need to change the hidden input field value, (name="agree") which is outside the modal, from "no" to "yes" if user accept the terms by clicking the Accept (Acepto) button. The reason for doing this is that the form can be sent with the acceptance of the Terms and Condi...
1
1,152
JHipster Atmosphere websocket does not connect
<p>With a newly scaffolded app generated from "yo jhipster" and started with "mvn spring-boot:run" and "grunt server" I am able to load the app and do operations like login, view metrics, see sessions, settings, logs, and audits. However, whenever I view the "User Tracker" page I don't see anything?</p> <p>I believe t...
1
1,033
Doubly Linked list in Python
<p>Hey guys I'm really lost. I am writing a Doubly Linked List program for my Data Structures class and I just can't figure it out.</p> <p>UPDATE: So I have my singly linked list assignment done. How can I convert it to a doubly linked list and use the data provided to load it in and print it?</p> <h2>Objective</h2> ...
1
1,380
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details
<p>I'm Learning Webapi so I'm trying to build a simple Api connected to SQL server and I got this error when I add new Movie data</p> <p>Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details. ---&gt; Microsoft.Data.SqlClient.SqlException ...
1
1,639
How can I fix issues launching an app in PM2 on Windows?
<p>I am trying to run <a href="https://v2.docusaurus.io/docs/installation" rel="nofollow noreferrer">Docusaurus</a> on Windows Server 2016 with Node.js version 12.14.0 via PM2 on IIS10. I am using PM2 so I can have the apps restart after a server reboot. I have to admit now that today is the first time I have ever atte...
1
2,319
Error in deploying ear to GlassFish
<p>I am facing to following error when I try to deploy ear to GlassFish server. Do you have any idea?</p> <pre><code>[#|2014-01-28T19:54:39.068+0900|SEVERE|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=24;_ThreadName=Thread-2;|Exception while loading the app : EJB Containe...
1
2,621
Why am I getting org.xml.sax.SAXException for this block of XML?
<p>I've anonymised a bit of this. Hopefully it doesn't detract from the useful message. stringARRAY is where I think I'm getting thrown at, but I'm not sure, so if I'm looking at the wrong place, lemme know.</p> <p>From the WSDL</p> <pre><code> &lt;xsd:element name="LongishOpName"&gt; &lt;xsd:complexType&gt; ...
1
1,128
How to erase spaces in paste function to build URL?
<p>In advance, thank you for your help. Essentially, I am scripting a program that builds a URL which will provide a CSV file. The program asks the user for several inputs and then appends those inputs to the base URL. The problem I am getting is that there is an added space between each of the user inputs when I try...
1
1,040
Rendering SQL data on HTML/JS with Flask
<p>I have created a simple web app that intends to pull data from a sql database (specifically, forest fire occurrences and relevant metadata in the U.S.). I am able to query the database in Python using flask/sqlite3 and print the resulting list of tuples that match the query. However, I am unfamiliar with how I could...
1
1,145
Passing data RecyclerView data to another activity on click
<p>I am currently in the process of passing information from my recyclerview to another activity called "partyInformation", in respective to the clicked cell. The information in my recyclerView is fetched from parse.com. My recyclerview consists of textviews as well as imageViews and I would like to populate my "partyI...
1
6,975
FileUpload ERROR
<p>i have the following code to upload files:</p> <pre><code>package upload; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.Iterator; import java.util.List; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.Http...
1
2,354
Spring Boot 2 with Bucket4j to prevent DDOS Attacks
<p>I would like to prevent DDOS attacks on my spring boot 2 web application and I came across the framework <code>bucket4j</code> (<a href="https://github.com/MarcGiffing/bucket4j-spring-boot-starter" rel="noreferrer">bucket4j-github</a>). My application will run on heroku, and there they suggested doing so (<a href="h...
1
1,230
cmake not finding boost linux
<p>Im trying to use the program_options library from Boost. However, CMake can and can't find boost... What am I doing wrong?</p> <p>CMakeLists.txt:</p> <pre><code>cmake_minimum_required (VERSION 3.8) project(myProject) set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_FLAGS "-std=c++0x -g -Wall -O3") set(CMAKE_CXX_FLAGS_DEB...
1
2,072
Recursive binary tree insert
<p>When I added node into binary tree and trying to show information about it, info isn't showing. I think that i have some problems with references in recursive insert algorithm, but can't fix it.</p> <pre><code>package test; class BinaryTree&lt;T&gt; { private static class Node&lt;T&gt; { int key; ...
1
1,505
creating a php captcha from scratch
<p>I need to add a simple captcha like word captcha or math captcha to the registration form. However the code is not working. Following is the code: (Please help me in fixing the code)</p> <pre><code>&lt;?php session_start(); //random string generator function function random($length){ //create a or array string call...
1
1,587
C# - Reporting Services (rdlc) - Error: Object reference not set to an instance of an object
<p>I'm quite new in using <strong>Reporting Services</strong>, and I'm currently facing this problem:</p> <p>I have two report files (.rdlc). One of them was made by one partner of mine in my entreprise, the other by me. I want to Add a new Dataset to my report, so I can use it in a Tablix. The <em>Data source</em> is...
1
1,193
Qt binary reading error in qDatastream
<p>I am reading a binary file that is a produced by a sensor. I am having problem in reading float with different precision (32 or 64). I can read them in MATLAB (64 bit version) but Qt (32 bit version on windows) is giving wrong values. I can read till <code>dtmth</code> (please ref structure below) . After it I am ge...
1
1,075
angular js index.html to home redirect
<p>I am developing a website, when I am typing the url it is directing to index.html even though I used route providers to navigate to home , what am I suppose tot do I have attached my code below,Please got through that and let me know what I need to change, when I called the website address it directly redirects to w...
1
1,743
React-Quill - addRange(): The given range isn't in document
<p>I am trying to make a simple blog using React-Quill text editor. I want to get the value of the ReactQuill Editor and preview it on a different <strong>route</strong>. I've been trying to achieve this since quite a while now and each time I face the same issue, the quill editor loses focus after every key press and ...
1
1,442
Locust, on_start method doesn't work with tasks
<p>I am trying to add some variables (e.g. self.boolean_flag) to HttpUser. Which represents the user state. This variable is used in scenario load testing.</p> <p>According to the documentation, I should use <em>on_start</em> to initialise variables. However, when I use tasks = [TaskSet] like below, The on_start doesn'...
1
1,412
WH_MOUSE_LL Hook doesn't get called for injected events (mouse_event, SendInput)
<p>My code uses a WH_MOUSE_LL hook to initially suppress all mouse input, unless the dwExtraInfo property is set to a certain value. The program is also registered for raw input for mouse devices, so that I can identify which device is responsible for the input. When I get a WM_INPUT message and determine the source,...
1
9,434
Plot Binary Matrix in Pandas
<p>I have a dataframe (data) in pandas that has a datetimeindex (ca. 25.000 days of data) and 527 columns of IDs.</p> <pre><code> work_id_10 work_id_100 work_id_1007 work_id_1009 concert_date 1917-01-27 0 0 0 0 1917-01-28 0 0 ...
1
1,268
WPF - How does Parent know of on "Checked" event for child control checkbox?
<p>I have a child control that has a checkbox and webbrowser:</p> <pre><code>&lt;UserControl x:Class="Some.MyUserControl" etc.&gt; &lt;Grid&gt; &lt;CheckBox x:Name="chkA" Content="Analysis" Checked="chkA_Checked"&gt;&lt;/CheckBox&gt; &lt;WebBrowser Margin="0,30,0,0" Name="wbA"&gt;&lt;/WebBrowser&gt; &lt;/G...
1
1,126
How to read from and write to EEPROM suing SPI communication
<p>I am using PIC32MX350F128L Microcontroller to read from and write to EEPROM(SST26VF032B) using SPI communication. SPI communication in this program is working, I have checked it by sending JEDEC code which is provided in the SST26VF032B datasheet. So when i send 0x9F i am getting 3 bytes of data as mentioned in the ...
1
5,124
What network error could be responsible for Status (failed) and type Pending in Chrome?
<p>From time to time a site I'm maintaining get failed GET requests on some resources. The status is returned as (failed) and the type as Pending. The headers containg nothing more than the request itself, no response whatsoever.</p> <p>The server is running Drupal and Varnish.</p> <p>Any thoughts on what causes the ...
1
8,306
Failed to deduce bean type for org.springframework.boot.actuate.autoconfigure.beans.BeansEndpointAutoConfiguration.beansEndpoint
<p>After adding the dependency of the <code>spring-boot-starter-actuator and spring-data-rest-hal-browser</code> in the pom.xml. </p> <p>Not able to start the spring boot application it is failing with error mentioned below. Is there any dependency problem with the other modules already used or any specific version i ...
1
2,849
Tensorflow 2: Getting "WARNING:tensorflow:9 out of the last 9 calls to <function> triggered tf.function retracing. Tracing is expensive"
<p>I think this error is coming from a problem with shapes, but I have no idea where. The complete error message suggests to do the following: </p> <blockquote> <p>Also, tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. </p> </blockquote> <p>Whe...
1
1,516
How to get values from multiple DropDownLists in a GridView on button_click?
<p>I have a <code>GridView</code> on my asp.net webform with all the columns and rows created in C# code from behind. Except the first column, every cell in each column is a <code>DropDownList</code> with a <code>DataSource</code>.</p> <p>Here is my <code>GridView</code>:</p> <pre><code> &lt;asp:GridView ID="gv_Rota"...
1
1,578
JSch : channel never closed or EOF
<p>I am new to JSch and I have a problem with some of my script I try to execute remotely and which seems to never end (and does not do the same thing as when I run it using putty).</p> <p>I have redirected error and output stream to my System.out and see indeed error when the script is executed but the script is fini...
1
1,074
Is it possible to catch a runtime exception and throw an application exception instead in the same transaction ? (ejb)
<p>Summary :</p> <p>Somebody decided that EntityExistsException is a RuntimeException to avoid to force the developer to catch the exception. What is the way to avoid this exception to rollback the transaction ? If you catch the EntityExistsException, the transaction is already rolled back by the container... imho Ent...
1
3,827
How to Create a Data Access Layer in ASP.Net which must be generic?
<p>I have looked several sites CodeProject,CSharpCorner,MSDN,CSharpPearls etc including one StackOverflow link:-</p> <p><a href="https://stackoverflow.com/questions/8714345/how-to-create-single-data-access-layer-to-access-two-different-data-source-in-as">how to create single Data Access Layer to access two different d...
1
2,655
Unable to setup C++ debugging in VSCode; Debug type not recognized
<p>I'm trying to set up VSCode to start learning C++. As part of this, I need to be able to debug the code, so I've installed the C/C++ extension with the .vsix file to allow it to add C++ debugging configurations. However, when I try to set up a configuration, I do not see C++ as an option for environments; only nod...
1
1,218
XSLT function " substring-before " / " substring-after "
<p>I have following XML code</p> <pre><code>&lt;Testlog&gt; &lt;Event Type="General" Headline="Sys_TmxProcesses: Step: 1; Action:" Result="INFORMATION"&gt; &lt;/Event&gt; &lt;Event Type="General" Headline="Test_013 testMain: Step 1 Passed" Result="INFORMATION"&gt; &lt;/Event&gt; &lt;Event Type...
1
1,163
File input data not transferred with POST data of Dropzone form
<p>This is a continuation of <a href="https://stackoverflow.com/questions/23298481/how-do-the-files-to-upload-get-passed-from-dropzone-to-the-action-url">this question</a>, after making some progress with the suggestions given there.</p> <p>I have a Typo3 form, with approximately this mark-up: </p> <pre><code>&lt;for...
1
1,453
mypy error, overload with Union/Optional, "Overloaded function signatures 1 and 2 overlap with incompatible return types"
<p>So, let's start with an example. Suppose we have several types that can be combined together, let's say we are using <code>__add__</code> to implement this. Unfortunately, due to circumstances beyond our control, everything has to be "nullable", so we are forced to use <code>Optional</code> everywhere. </p> <pre><c...
1
2,213
How to recognize QMouseEvent inside child widgets?
<hr> <p>EDIT and Some Self Critisicm I tried both given solutions, which both solved my problem, and thus I thank you both! I marked the transparent solution as accepted because I thought it is was the easiest implementation when I only had one child widget, but I wish to share some insight for other beginners:</p> <...
1
1,292
Golang: fatal error: unexpected signal during runtime execution
<p>I am randomly getting the following error when I am executing the binary (sometime it works):</p> <pre><code>fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x47 pc=0x7f07a019b448] </code></pre> <p><a href="https://pastebin.com/LZtKfPaY" rel="nofollow nor...
1
2,032
JPA: Column 'AdressId' cannot be null
<p>i'm trying to persist school entity that have a unidirectional oneToOne relationship with Adresse, but i'm getting <code>Column 'AdressId' cannot be null</code>, note that MySQL DB generate ids for School and Adresse here is my code: in JSF, when submit button is clicked the createSchool method is invoked.</p> <pr...
1
1,233
How to import packages within my Aurelia application
<p>I have a successful app running using Aurelia, however I developed it using VSCode and the skeleton that Aurelia gives you. Now that the CLI is available I'm trying to port the application over to a VS2015/Asp.net Core project but I'm having some difficulties. </p> <p>In the VSCode project, there's a bundles.js fil...
1
2,270
Factories in Java without a switch statement
<p>I am trying to build a factory object, but having trouble working out a good way of doing it in Java.</p> <p>The application I am writing is used for processing files in various formats, so there is a CodecInterface which applies to all classes which are used for reading and writing files. Let's assume it defines t...
1
1,426
Revert DataGridView cell contents to original value
<p>(<strong>I have rephrased this entire question in an attempt to be more clear in what I'm trying to do</strong>)</p> <p>This is a VB.Net WinForms project being written in VS2012.</p> <p>When the user changes the contents of a DataGridView's cell, I am changing the background color of the cell to visually indicate ...
1
1,072
HttpClient login, search and get the XML content
<p>I want to login to a site using <code>HttpClient</code> and after logging in I want to search for something and retrieve the contents of the search result.</p> <pre><code>/** * A example that demonstrates how HttpClient APIs can be used to perform * form-based logon. */ public class TestHttpClient { public ...
1
1,108
implementation of trapezoidal numerical integration in C
<p>I'm trying to implement numerical integration using the trapezoidal approximation using this formula : <img src="https://i.stack.imgur.com/iI67G.png" alt="formel"></p> <p>My problem is I don't get how to implement this correctly. To test I wrote a file with <code>22050</code> double values all equal to 2 like :</...
1
1,237
Django - Unit Tests on localhost creating objects in main database, but not finding them in the test database later in the method
<p>Experiencing some fairly strange behaviour with django unit tests. I have a class inherited from django.test.testcase that verifies a registration form creates a person object and a user object, which it does, but I can subsequently look for and find the objects in the Admin interface after the tests have finished. ...
1
1,396
Display value on a label from a specific column of the gridview which is not viewable physically
<p>I'm creating this thread as a followed up from my previous one <a href="https://stackoverflow.com/questions/17964878/how-to-hide-a-specific-valuecolumn-from-the-gridview/17965047?noredirect=1#17965047">here</a>.</p> <p>I'm trying to create a gridview filled some data from my database. However, as you can see from t...
1
1,422
Insert data into MySql using nusoap web service?
<p>I have created this code to insert data into my database using nusoap. Everything is working fine but the data are not inserted at my database.</p> <p>Here is the code</p> <pre><code>require_once('nusoap/nusoap.php'); $server = new soap_server(); $server-&gt;configureWSDL('Insert Order', 'urn:InsertOrder'); $se...
1
1,147
Webcam color calibration using OpenCV
<p>Having ordered half a dozen webcams online for a project I notice that the colors on the output are not consistent. </p> <p>In order to compensate for this I have attempted to take a template image and extract the R,G and B histograms and tried to match the target images's RGB histograms based on this. </p> <p>Thi...
1
1,703
Python issue with pycurl and openssl
<p>I am trying to run code that uses pycurl but when I do i get the following error:</p> <pre><code>uilleann-pipes-160:data_collection Jim$ python xlsxDownloader.py Traceback (most recent call last): File "xlsxDownloader.py", line 21, in &lt;module&gt; from import_hedgehogs import Link File "/Users/Jim/Documents/H...
1
1,261
Flutter infinite loop when StreamBuilder inside LayoutBuilder
<p>So i am making a page with a <strong>LayoutBuilder</strong> as described <a href="https://docs.flutter.io/flutter/widgets/SingleChildScrollView-class.html#expanding-content-to-fit-the-viewport" rel="nofollow noreferrer">here</a> </p> <p>Inside the LayoutBuilder i put a <strong>StreamBuilder</strong> with a <strong>...
1
2,012
Removing last 2 layers from a BERT classifier results in " 'tuple' object has no attribute 'dim' " error. Why?
<p>I fine tuned a huggingface transformer using Keras (with ktrain) and then reloaded the model in Pytorch.</p> <p>I want to access the third to last layer (<code>pre_classifier</code>), so I removed the two last layers:</p> <pre><code>BERT2 = torch.nn.Sequential(*(list(BERT.children())[:-2])) </code></pre> <p>Runn...
1
2,200
how can I set a timer overflow for ATmega328p in assembly?
<p>I've been trying to create a program in assembly that rotate a single bit either to left or right, every time a Timer Overflow interrupt occurs. Here is my code, but for some reason it doesn't works. I'm new in this world of programming assembly and I wish that someone could help me here, because I'm stuck. Here is ...
1
2,341
Error in connecting to MongoDB on localhost in Mac
<pre><code>$ mongo MongoDB shell version: 2.4.5 connecting to: test Mon Jul 29 19:44:07.569 JavaScript execution failed: Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112 exception: connect failed </code></pre> <p>The above really shoud connect to mongo. I've already tried 'brew update...
1
1,978
Sending emails from 1and1 smtp server using Zend Framework
<p>I know there have been a plenty of questions about smtp, 1and1 hosting and Zend Framework already. I've been reading them for hours and still got nothing (maybe I've omitted the most important one?). So lets get to the point:</p> <ul> <li><p>I'm getting over and over again the same error β€œMessage: Connection refused...
1
2,056
Variable values in Terraform for aws security groups
<p>I am new to terraform and trying to create an AWS security group with ingress and egress rules. Rather than hardcoding the values and creating multiple ingress and egress blocks, I am trying to make use of terraform <code>lookup</code> function.</p> <p><code>main.tf</code> file looks like this:</p> <pre><code>provid...
1
1,039
How to insert a json object into a mysql field and read it back?
<p>I have an array which i must convert to a json variable and store it in a mysql table field and I do this by the following code:</p> <pre><code>$arr = array( 'title_it' =&gt; $category-&gt;title-&gt;attributes()-&gt;it, 'desc_it' =&gt; $category-&gt;desc-&gt;attributes()-&gt;it, 'tags_it' =&...
1
1,065
GL3W and GLFW undefined reference errors
<p>I got a problem while trying to write an OpenGL application using GL3W and GLFW. Every time I build the code Code::Blocks(using GNU GCC Compiler) I get several "undefined reference" errors to several gl3w* and glfw* functions. I rechecked my build options (Linkers: opengl32, glu32, gdi32; Search directories/Compiler...
1
1,221
Connection to http://xxxxx.com refused
<p>I am using SoapUI to test the third party web service(asmx). The testing service is SSL required, generally in most production cases the service is used over http, for the test goal the third party asks us to use SSL.</p> <p>So I added the https uri to the SoapUI and invoked it.</p> <p>However I got the error:</p>...
1
1,823
How to change background colour of individual list items of a nested list upon hover (and to full menu width)
<pre><code>&lt;!DOCTYPE html&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;style type='text/css' media='all'&gt; #menu {width: 50%;} .high {background: #0F0;} .list-item :hover {backgrou...
1
1,672
defaultValue of showTime attribute in antd datePicker couldn't set the time
<p>I'm using ant design for my react hook based development. I am retrieving date from database over a network call and the date retrieved from database is look like &quot;2020-09-01T05:02:00.000+0000&quot;. It is a string. I have to parse this date and show the date value and time value through antd datePicker in my ...
1
1,053
javascript isn't working in IE unless debugger is running
<p>the following code works perfectly in FireFox 7, but when pulling up the same page in IE 9, the jQuery functions (hide and show) don't work. However if you open debugger in IE and refresh, everything works fine. It's like the jQuery code won't work unless debugger is running and you refresh the page (or start IE w...
1
1,648
How $this->app->singleton() works in laravel?
<p>In my laravel project I have following interface, repository and controller.</p> <p>This is Interface</p> <pre><code>interface TrainingClassTypeInterfaces { public function updateTrainingClassType($id, $request); } </code></pre> <p>This is Repository</p> <pre><code>use App\Models\Trainings\AppTrainingClassType;...
1
1,036
Spring Boot - RESTful controllers, hateoas and JSON
<p>So I went through some documentation and examples on using spring hateoas (with spring-boot). And so by following examples I have created 2 Controllers.</p> <p>Here is a snippet of the first one:</p> <pre><code>@RestController @RequestMapping(value = "/users", produces = MediaType.APPLICATION_JSON_VALUE) public cl...
1
2,504
Spring security using @security annotation in controller
<p>I am working with spring security and create a demo application.It contains one login controller and 2 jsp pages for login and success.</p> <p>I want to aply method level security in controller using @secure annotation but is is not working, when I apply this in my service class it works well.</p> <p>Can any one h...
1
5,918
React native expo background location not working
<p>I'm newbiee in react native, I'm using expo I'm trying to get user location if app is in the background or killed. I used Taskmanager but I don't why it's not working. when app is running in foreground it is working fine but when app is in background or killed it's not giving me location.</p> <p>I'm using Location ...
1
1,077
Magento installation stuck in a redirect loop
<p>I am installing Magento 1.7.0.2 on my GoDaddy Linux Server.</p> <p>My domain <code>example.com</code> is pointing to a folder <code>\magento</code> on my server</p> <p>I uploaded all the magento files to this location: <code>\magento</code>.</p> <p>When I go to my website now, <code>http://www.example.com</code>,...
1
2,050
Working with very huge XML file in C#
<p>I have this very huge XML file of size 2.8GB. This is Polish Wikipedia's articles dump. The size of this file is very problematic for me. The task is to <strong>search</strong> this file for some big amount of data. All I have are titles of the articles. I thought that I could sort that titles and use one linear loo...
1
1,341