title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
deserializing JSON vb.net response google maps api | <p>need some help here.
I'm not getting deserialize this json in vb.net.
I need the values lat : -21.4105261 and lng : -42.1956855.</p>
<pre><code>{
"results" : [
{
"address_components" : [
{
"long_name" : "28460-000",
"short_name" : "28460-000",
... | 2 | 1,037 |
When resolving a symlink with boost the result doesn't equal the original path name | <p>Windows 10<br>
MS VS 2015<br>
C++11<br>
Boost 1.60 </p>
<p>I create this symbolic link:</p>
<p><code>mklink /J "C:\T4 2.0\ApplicationSymlinks\T4" "C:\T4 2.0\Data"</code></p>
<p>This is a much simplified version of a program to check if the symbolic link is linked to the proper directory:</p>
<pre><code>#includ... | 2 | 1,231 |
iOS WKWebView javascript alert crashing on ipad | <p>I'm using the solution in <a href="https://stackoverflow.com/a/40316507/5736403">this answer</a> that properly displays javascript alert/confirm/etc boxes and it works great on iphones.</p>
<pre><code>func webView(_ webView: WKWebView, runJavaScriptAlertPanelWithMessage message: String, initiatedByFrame frame: WKFr... | 2 | 1,061 |
passing a cell value into SQL query using Power Query Editor in Excel | <p>I'm using Excel Power Query Editor to query my database to pull info into excel that I can easy manipulate for reporting purposes. I have written a query in Microsoft SQL and pasted it into Power Query Editor. I had a pretty dumbed down query and was just filtering the data by a date in the table using a parameters ... | 2 | 6,076 |
Spring boot APPLICATION FAILED TO START because Autowired bean not found | <p>My app:-</p>
<pre><code> @SpringBootApplication
@ComponentScan("fi.ma.vegshopping")
@EnableJpaRepositories("fi.ma.vegshopping")
@EntityScan(basePackages = "fi.ma.vegshopping")
public class VegShoppingApplication {
public static void main(String[] args) {
SpringApplication.run... | 2 | 1,336 |
Downloading files with unicode characters from BaseHTTPServer in Python | <p>I'm using Python 2.7.8 to make an server from where I can download files. Problem is that many files include utf-8 characters such as čćžšđ and others. I tried decoding path but whenever I click on file name with unicode character it returns "error 404: file not found". How do I properly decode paths so it makes pos... | 2 | 3,072 |
SQL*Loader error ORA-00604 and ORA-02248 | <p>I've a Problem with Oracle's <code>SQL*Loader</code>.</p>
<pre><code>SQL*Loader: Release 11.2.0.3.0 - Production on Tue Feb 11 14:32:00 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
SQL*Loader-128: unable to begin a session
ORA-00604: Fehler auf rekursiver SQL-Ebene 1
ORA-02248: ... | 2 | 1,698 |
Why did Scala's library double its size between 2.7 and 2.8? | <p>Comparing <strong>Scala 2.7.7</strong> (last 2.7.x release) with <strong>Scala 2.8.1</strong> (latest 2.8.x release) I gathered the following metrics:</p>
<pre><code> Scala version | 2.7.7 2.8.1
------------------------------------------------
Compressed jar file |... | 2 | 1,194 |
.srt file types doesn't exist under 'Choose default apps by file type' after after formatting windows 10, what to do? | <p>Before I did a clean install of my desktop with windows 10 I had .srt to open by default in Sublime Text after I have formatted my computer I somehow miss the file format .srt under 'Choose default apps by file type'. </p>
<p>The .srt should be be between the .srf and .srw file types, but it isn't (as shown in the ... | 2 | 1,159 |
Create directory tree in Path-Class-Dir module | <p>The <a href="https://metacpan.org/module/Path%3a%3aClass" rel="nofollow"><code>Path::Class</code></a> module is a top-rated module and has very good <a href="http://cpanratings.perl.org/dist/Path-Class" rel="nofollow">reviews</a> at cpan.org. I wonder whether the <a href="https://metacpan.org/module/Path%3a%3aClass%... | 2 | 1,737 |
Dotnet SSL error between two docker containers | <p>I have a problem where I am running several containers using docker-compose for Visual Studio. The containers are hosted on the default network and are reachable from within using <code>host.docker.internal</code> on the exposed and mapped ports <code>42000</code>, <code>42001</code> and <code>42002</code>. The prob... | 2 | 1,977 |
How to sanitize inputs in nodejs to prevent sql injection? | <p>i have this sanitize function</p>
<pre><code> sanitizeXSS: string => {
const map = {
'&': '&amp;',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&#x27;',
"/": '&#x2F;',
};
c... | 2 | 2,771 |
`Unhandled Exception: Invalid argument: Instance of '_$_Category'` While sending data to firestore form a freezed generated class | <p>I created two model classes with freezed. One class is having parameter of other class inside it. The problem started when I try to send data to firestore. This following error appears.</p>
<pre class="lang-dart prettyprint-override"><code>E/flutter ( 6175): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exc... | 2 | 1,336 |
Cake PHP3 subquery in Join statement | <p>I need to use <code>cake php</code> method to build this custom query but is that possible to make this sub query in cake stranded way ? </p>
<pre><code>SELECT
m.chat_id AS chat_id,
m.message AS message,
m.created AS created,
g.title AS... | 2 | 1,432 |
@BeanParam in Swagger with Resteasy 3.0 and Wildfly 8.0 | <p>I'm trying to use Swagger to document my Rest API. I want to make use of @BeanParam annotation, however Swagger interprets the bean model as a single <i>body</i>. I've changed my swagger dependency to <i>swagger-jersey2-jaxrs_2.10</i> but that made Wildfly unable to start cause of <b>WELD-001408</b> error (as in fir... | 2 | 1,794 |
Styling forms using Django and Bootstrap | <p>Okay, so I've created a simple purchase form which makes use of some custom form fields. I've rendered a simple form to test if it works properly, and it does, as shown below.</p>
<pre><code><form id="category_form" method="post" action="/purchase/">
{% csrf_token %}
{% for hidden in form.hidd... | 2 | 1,889 |
Configuring api-platform to include header in OpenAPI (AKA Swagger) documentation | <p>I am using <a href="https://api-platform.com/docs" rel="nofollow noreferrer">API-Platform</a> with <a href="https://github.com/lexik/LexikJWTAuthenticationBundle" rel="nofollow noreferrer">JWTs</a> and have created a decorator to allow Swagger to display a <code>/authentication_token</code> endpoint as described by ... | 2 | 2,450 |
Laravel Sanctum + Nuxt JS I cannot pass CORS | <p>Before start, I'd like to say that I searched and tried many approaches and none of them seem to work properly. I also created a fresh Laravel installation but still, no success.</p>
<p>The problem is CORS, I get blocked by CORS always.</p>
<ul>
<li>The setup uses <code>Laravel Valet</code>.</li>
<li>The Laravel App... | 2 | 1,282 |
SwiftUI list row layout | <p>Back with a couple of SwiftUI layout questions :</p>
<p>I'm trying to display 2 lists side by side with custom cells.
I created the cell views (<code>EventRow.swift</code>) and I display them in my content view.</p>
<p>I added a border to my lists, for better visibility.</p>
<p>As you can see from the picture bel... | 2 | 3,237 |
How to pass multiple attribute in AngularJS directive | <p>How to pass multiple attribute to a directive.
How to pass value 12 of click-to-edit1 inside below div like </p>
<pre><code><div click-to-edit="location.state" click-to-edit1=12></div>
</code></pre>
<p>and should be accessible in directive controller.please help me out.</p>
<p><strong>Code:</strong>... | 2 | 1,207 |
LoadException while loading fxml file | <p>Hi i am using javaFx and i am new to it.
i need help in it.
while running the main application i am getting error of javafx.fxml.LoadException: </p>
<p>Please Help.</p>
<p>Code:
Main Code</p>
<pre><code>package mainApp;
import controller.LoginController;
import javafx.application.Application;
import javafx.fxml... | 2 | 2,652 |
Unrecognized DB Format-Excel VBA to Access Database | <p>Im using a .accdb file and connecting with the following code, which has worked for me multiple times, so I don't know why its corrupting the file this time.</p>
<pre><code>dbPath = ActiveWorkbook.Path & "\WaitAnalysisDB.accdb"
tblName = "Wait_Data_Table"
strcon = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=... | 2 | 2,561 |
C++ WinSDK header compilation error | <p>I am trying to compile a program in Visual Studio 2010 in Windows 7. I am getting a compilation error <strong>C2061: syntax error: identifier 'KNOWN_FOLDER_FLAG'</strong> in Windows header <code>shlobj.h</code> at the marked line:</p>
<pre><code>#if (NTDDI_VERSION >= NTDDI_VISTA)
typedef enum
{
KF_FLAG_DEFA... | 2 | 1,175 |
stop the video while close popup window | <p>while i click on open video button one popup window will display . but after closing that popup window video sound playing contentiously i want to stop that video at the time of closing popup window .</p>
<p>pop_video.html</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<title>Bo... | 2 | 1,410 |
Undefined symbols for architecture x86_64 Swift Xcode | <p>The error code from my compiler</p>
<pre><code>Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GTMOAuth2KeychainCompatibility", referenced from:
objc-class-ref in GoogleSignIn(GIDAuthStateMigration_bdf842e92d17b12b5f020e0e721bd017.o)
"_OBJC_CLASS_$_OIDServiceConfiguration", referenced... | 2 | 1,302 |
Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 -Retrofit | <p>i'm using retrofit for my project. when i try to access my webservice,in onFailure i'm getting <code>JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $</code> on LogCat.i can get response from POSTMAN</p>
<p>this is postman response</p>
<pre><code>{
"status": true,
"message": "o... | 2 | 1,653 |
Code 404 when fetching image in Django template | <p>I am trying to fetch some images located in a folder. The path is correct but they appear as broken link with code 404.
MY files and configurations are as follows:
settings.py</p>
<pre><code>MEDIA_ROOT = os.path.join( PROJECT_DIR, 'media/images/uploads')
# URL that handles the media served from MEDIA_ROOT. Make su... | 2 | 1,402 |
Getting "ValueError: Insufficient degrees of freedom to estimate" when trying to use ARIMA to predict energy consumption | <p>I'm trying to predict energy consumption using ARIMA model to benchmark and compare accuracy for deep learning. I get the "ValueError Insufficient degrees of freedom to estimate" when trying to run my code in Google's Colab.</p>
<p>I tried different P, D, Q values, but quite honestly I don't fully understand how th... | 2 | 1,737 |
How to implement a back arrow in fragment | <p>I have a nav drawer which in its first fragment i have a news page where the user clicks a button to see the whole news, and at that moment it enters another fragment.</p>
<p>I want to know how I implement an arrow to return to the previous fragment instead of the icon that opens the Navigation Drawer.</p>
<p>I've... | 2 | 1,376 |
Nested IF Functions in Excel not working | <p>I have quite a large excel document that has a good amount of vlookups, if functions, etc. In some of my tabs I cannot get my IF Functions to work and I have checked my logic 10 times over. I can't seem to figure out why excel is stopping at a certain condition and not checking the rest of my nests. Here's what a sa... | 2 | 1,308 |
com.android.tools.r8.utils.AbortException zza already has a mappin | <p>I'm running instrumentation tests and getting this compile error:</p>
<pre><code>org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesAndResourcesWithR8ForDebugAndroidTest'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsT... | 2 | 1,063 |
using ember trying to set value in controller from route model hook yields error | <p>I have a controller for this route that I have created and everything else in the controller seems to work great. I am trying to pass the meta value to a variable in the controller from the route and I get a console error:</p>
<pre><code>Error: Property set failed: object in path "controller" could not be found or ... | 2 | 1,383 |
Connecting Bluetooth Socket While Device Discovery is On | <p>I am using bluetooth socket connection in my andorid app to connect to medical devices in near range.I want to connect the bluetooth socket by clicking on a particuar device on the ListView,while the bluetooth discovery is not finished yet.
I am using the follwoing code to connect the bluetooth socket to connect to ... | 2 | 3,220 |
How to get index of changed array under $watch in vuejs | <p>I am using an array of objects</p>
<pre><code>({"code":"id1","color":"red","description":"eg1"})
</code></pre>
<p>where each object contains input fields.User can dynamically add and remove those objects.
Now I want that when he enters code rest of the field should be filled automatically.
For that I have develope... | 2 | 1,084 |
Is there any method to map or represent API data to Chart in ReactJS? | <p>I am using API data for showing it in a graphical representation using React Charts.
The API data looks like:</p>
<pre><code>0:
CPSA: "0.00"
CRSA: "0.00"
XBA: "0.00"
XSA: "0.00"
audbal: "1.00"
audnet: "1.00"
date: "2021-12-25T05:31:40.497Z"
xnaaud... | 2 | 1,102 |
React-Query useQuery sending infinite fetch requests | <p>When I use useQuery as I have below, in the manner it is used on react-query's documentation, it sends an infinite number of fetch requests. The documentation also said that fetch doesn't automatically throw an error. So, I tried the same code below but with getAlbums using a try-catch block. I've also tried to conf... | 2 | 2,236 |
NextJS bug: Component props are undefined when building the project (everything works fine on dev mode) | <p>I have this component that works totally fine on dev mode but when building it tells me that the <code>open</code> prop is <code>undefined</code> even though it works fine and when I <code>console.log</code> it on localhost I get the correct result.</p>
<pre><code>const FAQ = ({ faq, index, toggleFAQ }) => {
re... | 2 | 1,500 |
How to put Subrows inside dataTable in PrimeFaces v3.5 | <p>I simply wants to put some subrows in my <code>p:dataTable</code>. I have a list of cars which can be bought by any number of people. I want to show this in a datatable. In which first row contains the information about the car, the next following lines contains information about the buyer. This pattern will be repe... | 2 | 1,663 |
Relative layout doesnot take full screen | <p>In my application I want the <code>RelativeLayout</code> to cover the whole screen. But when I run my application the height is lesser than screen height.</p>
<p>Screen dimension: 720x1280
RelativeLayout dimensions: 720x1230</p>
<p>Here is the code: </p>
<pre><code><RelativeLayout xmlns:android="http://schema... | 2 | 1,342 |
Operation is not valid due to the current state of the object | <p>I am a student and my job was to build my own IoC container. I've read some tutorials/code samples and finally created it but when I try to create instance of it, I get exception like in the topic. Here is my IoC code and test code, I've been trying to figure out what's wrong but just can't find it.</p>
<p>IoC</p>
... | 2 | 1,826 |
Multiple AsyncTask, ConcurrentModificationException. Help! - Android | <p>I'm making a photo streaming app for Android. In order to avoid memory issues, I'm running two AsyncTasks to pull down data. One gets and parses a JSON object into a custom object (shown here:) </p>
<pre><code> package edu.iastate.its.webdev.training.photostream;
import java.io.IOException;
import java.io.Input... | 2 | 3,533 |
How to add Three Level ListView in ExpandableListView in xamarin android | <p>How to add one or more levels in Expandable listview in xamarin android.
or how to create a tree view in xamarin android.</p>
<p>I have found solution for a single level Listview.
Below is my code.
I am very new to xamarin android.
Please help.
Thanks in advance.</p>
<p><strong>My MainActivity.cs:</strong></p>
<p... | 2 | 2,239 |
Refresh div contents after making changes | <p>Below is my code which is working fine...</p>
<pre><code><Script type="text/javascript">
function im()
{
var Name=document.getElementById("Name").value;
var pointsize=document.getElementById("pointsize").value;
var format=document.getElementById("format").value;
var bckclr=document.getElementB... | 2 | 1,140 |
UIAlertView showing twice | <p>I have an application that, in part, loops through the contents of an NSSet and displays a UIAlertView for each item found in the set. When there is only one item in the set, the UIAlertView behaves itself properly. However, if there's more than one, the first view flashes up (normally with the contents of the last ... | 2 | 1,407 |
pyopencl errror : undefined symbol: clCreateSubDevices | <p>I have installed pyopencl. When I try :</p>
<pre><code> python /home/a/pyopencl/examples/benchmark.py
</code></pre>
<p>then I have an error :</p>
<pre><code> Traceback (most recent call last):
File "/home/a/pyopencl/examples/benchmark.py", line 6, in <module>
import pyopencl as cl
File "/usr/local/lib/py... | 2 | 1,095 |
Authenticating custom Umbraco controller with OWIN/OIDC against Azure AD B2C | <p>I am stuck.</p>
<p>I have a custom Umbraco controller which inherits from <code>RenderMvcController</code> and when the <code>Index()</code> action method is hit a file is returned. This works, but what I want to do is to protect it by decorating the action with an <code>AuthorizeAttribute</code> and then requiring... | 2 | 1,430 |
I can execute SSIS on visual studio, but it doesn't in a job of SQL Server 2008 | <p>I have a simple SSIS package that I made in visual studio, it takes data from an Access data base and pass it to an SQL database. I can execute the package without any problems in Visual Studio 2008 but when I try to implement and execute it on a job in SQL Server 2008 it fails, I get this error message as output:</... | 2 | 1,422 |
Different sidebars with different input widgets for different pages in flexdashboard | <p>Below is an app I am trying to make using flexdashboard, which consists of multiple pages.(Right now making second page which is called CH2)</p>
<pre><code>---
title: "Financial TS Analysis"
runtime: shiny
output:
flexdashboard::flex_dashboard:
orientation: rows
vertical_layout: fill
smooth_... | 2 | 3,558 |
Dismiss the xib view in swift | <p>I have created two xib files for my login condition. When first I click a button it presents the first xib file in that file there is another button on which when I click it to present another xib file upon the first one. Here I run my API and on success, I'm trying to dismiss the second xib file but it isn't dismis... | 2 | 1,877 |
decoding php code Recuresively | <p>i think this is a classic question, i have some encoded php code in a wordpress theme that i want to decode,
the code is responsible for linking to a couple of irrelevant websites, i wanna to replace them with a link to the source website instead. </p>
<p><strong>Edit:</strong> due to negative votes, maybe i have t... | 2 | 16,790 |
R: Matching rows by two columns | <p>I am currently trying to figure out a vectorized way to match by two values in the same row. I have the following two simplified data frames: </p>
<pre><code># Dataframe 1: Displaying all my observations
df1 <- data.frame(c(1, 2, 3, 4, 5, 6, 7, 8),
c("A", "B", "C", "D", "A", "B", "A", "C"),
... | 2 | 1,146 |
Mex file building with Octave (issue with wrappers) | <p>I am currently porting some code from Matlab to Octave. Some of the functions of the Matlab code use the Piotr's Computer Vision Matlab Toolbox (<a href="https://pdollar.github.io/toolbox/" rel="nofollow noreferrer">here</a>) that includes some mex files.
In Matlab, everything is working like a charm but when I run ... | 2 | 2,421 |
prevent navbar content from scrolling | <p>I have a React app with a navbar that scrolls the content inside it.I want to prevent it from scrolling the content inside itself. </p>
<p>I have tried making the links and the logo shorter, tried setting <code>min-height: 100vh;</code> and <code>height: 50%;</code> for <code>.toolbar</code> and <code>.toolbar__nav... | 2 | 2,368 |
Single writer multiple reader primitives map | <p>I am trying to write an actor implementation in Java. My design requires a high performance map data structure to be used for looking up what thread a particular actor is scheduled on. The look up is done with an int id. All actors have separate ids. I have following requirements:</p>
<p>i) Keys are <strong>primiti... | 2 | 1,195 |
How do I turn off overwrite warning for JavaFX FileChooser when appending to a file? | <p>I need to create a data-entry JavaFx class which outputs to a file in append mode. In the simplified runnable example below (imports deleted), I can create a file, put in initial data, and then append to it with no problem. However, if I close the program and run it again later, the FileChooser will help find the fi... | 2 | 1,409 |
Web widget creation using jquery with passing a parameter to it | <p>I am trying to create widget using jquery. So I create a js file, that is responsible for spitting html to any website (say xyz.com) . That js file is as follows:</p>
<pre><code>// @credit to:
// http://alexmarandon.com/articles/web_widget_jquery/
// http://stackoverflow.com/a/2190927/1560470
var MYCARD = MYCARD ... | 2 | 1,734 |
Three.js Points with multiple textures | <p>I am working on a Three.js scene in which I'd like to use many points with different textures. However, so far I haven't been able to change textures in my fragment shader. Despite the fact that the points in the following scene should alternate between texture 0 (a cat) and 1 (a dog), all points show the same textu... | 2 | 2,978 |
I get INVALID_ARGUMENT when I try to use Google Cloud Vision | <p>So I just want to detect text or labels from an image using the google cloud vision API. But When I run this code I always get: <code>com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request</code></p>
<p>But I don't know why...here is the full json output what I get:</p>
<pre><code>{
"... | 2 | 1,804 |
EditText inside TextInputLayout leaves empty space at the top | <p>I have password field and i wanted to implement hide/show password functionality. So I used TextInputLayout. But if I use EditText inside TextInputLayout, it leaves empty space at the top of the layout. And I need to have height of that password field smaller. With that gap there, it's not possible.
I've tried to s... | 2 | 2,936 |
How can I show print statements in debug mode of OPNET Modeler? | <p>I'm writing C++ code in OPNET Modeler.
I try to simulate my scenario in debugger mode & I need to trace the function that I wrote it. I need to show print statements which I put it in my code.</p>
<p>I used in debugger mode: <code>***ltr function_name()***</code> then <code>***c***</code></p>
<p>But the result... | 2 | 1,152 |
how to set pdf file path to download the file from server | <p>I want to download the pdf from my server, the path for the file I get from API response is like : E:\C1MS\REPORTS\003315150418.pdf</p>
<p>But, how can I download this file by giving my server's ip?</p>
<p>The path for server is : <a href="http://103.91.100.17:8080/creditOneFuelOneApp/" rel="nofollow noreferrer">h... | 2 | 1,069 |
PostgreSQL: This type of correlated subquery pattern is not supported due to internal error | <p>When I press execute button, sometimes it is OK, and then I roll back and press execute button again and again, after have been made about 5 times, it show the error message: </p>
<blockquote>
<p>This type of correlated subquery pattern is not supported due to
internal error</p>
</blockquote>
<p>My query is as... | 2 | 1,051 |
How to create an interface method with multiple return types | <p>This is a follow up to this question: <a href="https://stackoverflow.com/questions/45055953/interface-method-with-multiple-return-types/45057403?noredirect=1#comment107273413_45057403">Interface method with multiple return types</a></p>
<p>I have two structs which are slightly different. One is about a trade struct... | 2 | 1,153 |
How capture photo then iOS-app is minimized? | <p>How take picture from camera when iOS-app is minimized?<br>
(i.e. after <code>applicationDidEnterBackground:</code> / <code>applicationWillResignActive:</code> )</p>
<p><strong>AppDelegate.m:</strong> (<a href="https://stackoverflow.com/a/17591384/1309648">thank you link</a>)</p>
<pre><code>- (BOOL)application:(UI... | 2 | 1,026 |
Why has mongo ascending/descending sorting order flipped for a Date field? | <p>Mongo version: 2.6.0</p>
<p>I am not sure I understand this. It looks like mongo DB sort order has flipped for one of my fields somehow?</p>
<p>Here is ASCENDING order sort:</p>
<pre class="lang-js prettyprint-override"><code>> db.clicks.find({}, {"time": 1}).sort({"time": 1}).limit(1).pretty()
{
"_i... | 2 | 2,459 |
WPF Microsoft Ribbon Control does not work with FocusManager? | <p>I have a problem where I cannot get the FocusManager to recognize when a Ribbon Control has the focus. </p>
<p>The logic is simple. I put the focus on a text box. I have tried both a RibbonText and Textbox. I see that when I click the Textbox the GotFocus event fires showing that it now has the focus. When I move t... | 2 | 1,766 |
Executing code after SwingWorker.execute()...AFTER it | <p>In my application, I would like to do something like </p>
<ul>
<li>show a wait dialog, where some preparatory task is happening in the background</li>
<li>after that preparatory task is done, close the dialog</li>
<li>when dialog is closed (or <code>SwingWorker.done()</code>, execute the rest of my code)</li>
</ul>... | 2 | 1,846 |
Table Testing Go Generics | <p>I'm excited for Go 1.18 and wanted to test the new generics feature.
Feels pretty neat to use, but I stumbled over an issue:</p>
<p>How do you table test generic functions?</p>
<p>I came up with this <a href="https://gotipplay.golang.org/p/pnqIho7BEe_d" rel="nofollow noreferrer">code</a>, but I need to redeclare my ... | 2 | 1,473 |
Performing calculations on dynamically generated rows (jQuery) | <p>I am trying to perform some calculations on some dynamically generated rows in my table.The dropdowm options all carry numerical values and based on the values the RiskOfObsctacle and ValueOfObstacle will be calculated:<br>
ValueOfObstacle= Likelihood<em>Severity</em>Principal;<br>
RiskOfObsctacle= Likelihood*Severi... | 2 | 1,071 |
How to add safely Angular Material to an existing angular application? | <p>I'm trying to add Angular Material to my application. I installed Material components using this npm command </p>
<p><strong>npm install --save @angular/material @angular/animations @angular/cdk</strong></p>
<p>I had to update all my angular components to 7.0.2 version.
I added a new material module and referenced... | 2 | 1,741 |
How to pass const char[] arrays as constexpr template parameters using C++ STL libraries? | <p>I have this working code for <strong><code>C++ 17</code></strong> standard:</p>
<pre class="lang-cpp prettyprint-override"><code>template< int PathIndex, int PathLength, const char (path)[PathLength] >
constexpr const int findlastslash()
{
if constexpr( PathIndex < 1 || path[PathIndex] == '/' || path[P... | 2 | 2,884 |
Cloud functions crash with `Error: Can't determine Firebase Database URL.` | <p>We have some Cloud functions to send notifications to users. (and others that calculates other stuff). All these CF are using the Realtime database , that is where we are hosting all the data.</p>
<p>But few days ago, we added new functions that sincronize Realtime database to a new table in Firestore (due to migra... | 2 | 1,037 |
SurfaceView, onDraw and postInvalidate() something wrong | <p>App behave itself strangely. I have a class extends the SurfaceView and implements SurfaceHolder.Callback .<br>
I tried 3 options of code and only one works like i need (but I'm doubt that it is a right solution) and other have different behavior.<br> So, my question is why and what is wrong and if "right" solution ... | 2 | 1,031 |
Spark streaming (run-example vs spark-submit) | <p>It's a follow up question to <a href="https://stackoverflow.com/questions/33590622/spark-with-flume-configuration-classpath">Spark with Flume (configuration/classpath?)</a></p>
<p>Got that problem stored after trying a few things, the problem I now have is </p>
<p>$spark-submit --jars /opt/scala/spark-streaming-fl... | 2 | 1,396 |
org.hibernate.AnnotationException: Referenced property not a (One|Many)ToOne: | <p>I'm trying to set up a OneToOne relationship using Hibernate. I've tried doing what the other questions suggest, but I'm still getting issues.</p>
<p>I have a Company class that has its own set of Warehouse Rules. Each entity has a BusinessUnitNumber as the Id of the table.</p>
<pre><code>@Entity(name="COBUSMST")
... | 2 | 6,395 |
Hibernate query, QueryException exception | <p>i have a Query:</p>
<pre><code>final Query query2 = session.createQuery("FROM CallDetailHistoriesEntity WHERE unique_id = :id OR unique_id IN (SELECT linked_id FROM CallDetailHistoriesEntity WHERE unique_id = :id)");
</code></pre>
<p>But i have exception. Why?</p>
<pre><code>[nioEventLoopGroup-5-5] ERROR com.coru... | 2 | 4,496 |
Java: Image Not Displaying | <p>I am making a program where I need to display an image. I am using the ImageIcon and Image classes in order to do this. I declared the ImageIcon in the constuctor and then assigned the images value through i.getImage(). Everything but the image seems to be loading fine. Here is my code:</p>
<p>UPDATE: I have the im... | 2 | 1,363 |
How to invoke nicEdit (editbox) or jquery (datepicker for text box) after a XMLHttpRequest? | <p>Need help (or an example) as I don't seems to be able to invoke jquery datepick or nicEdit when using XMLHttpRequest.</p>
<p>My code comes with 4 php files:</p>
<pre><code><p>Main page:&nbsp;main.php<br />
++++++++++++++++++<br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1... | 2 | 2,812 |
ETW events in Azure diagnostics (SDK 2.5) are logged with incorrect / missing schema | <p>I upgraded to Azure SDK 2.5 and switched to semantic logging with <code>EventSources</code>.
Logging works locally with a custom <code>EventListener</code>.</p>
<p>When deployed, logs are written to a storage table, but only the <code>EventId</code>, <code>Pid</code>, <code>Tid</code> etc. are populated, the reall... | 2 | 1,765 |
Deserialize webapi repsonse to mvc4 viewmodel in application | <p>I am trying to setup and consume an asp.net webapi rest application and consume it from another project.</p>
<p>I have made a simple helper to call the service like</p>
<pre><code>public static string GetApiResponse(string apiMethod,Dictionary<string,string>queryString=null)
{
using (var client =... | 2 | 1,061 |
Hadoop secondary sort for values. Sorting, gorping loose values | <p>It's rather common problem, I don't understand what to pick.</p>
<p>I have fields: <strong>id, creationDate, state, dateDiff</strong></p>
<p><strong>id</strong> is a <strong>natural key</strong>.</p>
<p>I need to get in my reducer:</p>
<p><strong>KEY(id), VALUE(creationDate, state, dateDiff)</strong></p>
<p><st... | 2 | 2,113 |
How to change style of MenuItem in WPF | <p>I have a style of <code>MenuItem</code> for its TopLevelHeader. It's a default style except for changing background when <code>IsHightLight</code> is <code>True</code>. And the background for top level <code>MenuItem</code> will be Red when I mouse over it and Click it. </p>
<p>How can I change the style so that th... | 2 | 2,475 |
Is there a way to increment JSON array key value through multiple arrays instead of starting over with each array? | <p>This is my first time using JSON so I'm not even sure if I'm asking this question correctly but hopefully you can understand what I'm getting at.</p>
<p>I am using the following data that to populate a select option based on the selection made in the previous select:</p>
<pre><code> prods = {
Cookwa... | 2 | 1,134 |
React Hook useEffect has missing dependencies (witout moving function inside useEffect) | <p>This is my part of code. Everything works fine but eslint gives error.</p>
<blockquote>
<p>React Hook useEffect has missing dependencies: 'dispatch' and 'getData'. Either include them or remove the dependency array react-hooks/exhaustive-deps</p>
</blockquote>
<p>I found some solutions but all of say you need t... | 2 | 1,666 |
How do I move to last record of database with a button in JSP, using JavaScript function | <p>So i have created a code that display database record into a html textbox and I am able to move to the next record and move back a record using a javascript function that I assign to a button. but i having trouble creating a function that will allow me to move to the last record and a button to move back to the firs... | 2 | 1,897 |
How to draw OpenGL pixels with the GPU | <p><b>Brief:</b><br/>
I'm making a Powder Toy that makes use of Parallel Processing to do the game physics, its dealing with a 500 x 500 area of powder. The game does mostly everything with the particles on the GPU but it uses the CPU to render the particles (decreases speed by a lot). How would I render the particles ... | 2 | 3,734 |
Eclipse null pointer exception when invoking JFace plugin | <p>I have eclipse Mars on CentOS and I can't reach "java build path", "deployment assembly", "project facets" and some other tabs in my project's properties.
A <code>Problems occurred after invoking code from plug-in "org.eclipse.jface".</code> error windows comes up so I attached the screenshot of its details.
I searc... | 2 | 2,336 |
Swagger-UI Maximum call stack size exceeded -> Backreference | <p>When calling my swagger.json from the swagger-ui I get an error:</p>
<blockquote>
<p>Maximum call stack size exceeded</p>
</blockquote>
<p>I guess it is because I have</p>
<p><code>Token</code> which has an owner of Type <code>User</code></p>
<p><code>User</code> which has a Token of Type <code>Token</code></p... | 2 | 3,468 |
Cant run Spring integration test because container doesn't start | <p>I am trying to understand why my SpringBoot app is not starting from an integration test. I am completely confused, I don't know if it has to do something to do with my dependencies and how to solve it.</p>
<p>This is the test that I am running:</p>
<pre><code>@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplica... | 2 | 3,722 |
BlackBerry Screen Shot Utility ... Torch 9850 ... a how to guide on creating your own capture script/tool | <p>I am providing this for everyone to hopefully save you some brain damage in finding this yourself.</p>
<p>As I'm working on a BlackBerry project that will run on various devices I ran into an issue grabbing screenshots from the handset (including the Torch 9850 ... not quite as good as my iPhones or my Android EVO ... | 2 | 1,713 |
Error in pom.xml due to ribbon dependency | <p>Getting the project build error message </p>
<pre><code>Project build error:
'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-ribbon:
</code></pre>
<p>This my <code>pom.xml</code> file.</p>
<pre><code> <?xml version="1.0" encoding="UTF-8"?>
<project x... | 2 | 2,787 |
Vue.js For loop is not rendering content | <p>I am building a web application using vue.js, vue-resource, vue-mdl and google material design lite.
JS compilation is performed using webpack through laravel elixir.
In this app I have to render a table row for each object from an array returned from a Rest API (Django Rest Framework). I have made the following cod... | 2 | 1,532 |
ajax form is_valid returns false (django) | <p>I cannot figure out why my form is returning false to is_valid</p>
<p>i have a page called account that has an ajax function to submit a form</p>
<p>i pass my form in on my account view and my createform view</p>
<p>createform view: this is where my ajax is handled</p>
<pre><code>def createrecipe(request):
p... | 2 | 2,482 |
React-router <Route> tag not rendering component | <p>I'm running into an issue where my route tag in specific is not rendering any components.</p>
<p>Steps I have tried:</p>
<ul>
<li>Changed import of { Route } from "react-router-dom".</li>
<li>Changed paths to see if other paths render.</li>
<li>Rendered the component within tags (this worked).</li>
</ul>
... | 2 | 1,334 |
Read then write html to xml file using linq xml and xml writer | <p>I am reading the <code>Value</code> of a element <code><content>Text with <br /> break</content></code> into a string and showing that string in a <code>TextBox</code>. Afterwards the user can modify it possibly with additional HTML tags. Upon using linq to query the exact node to insert the user-i... | 2 | 1,083 |
RuntimeError: Conflicting 'userprofile_roles' models in application | <p>I am new in django and i have a project based on django 1.6.X and i want to upgrade it to 1.11.X to add some features but when i did it i found many problems and i solved some of them but this one i don't know what to do with it, it gives me when i run it:</p>
<pre><code>RuntimeError: Conflicting 'userprofile_roles... | 2 | 3,834 |
How can we customize Wordpress coding standards and use them in VSCode? | <p>How can we customize <a href="https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards" rel="nofollow noreferrer">Wordpress coding standards</a> on Windows and use them with VSCode?
I am trying to do this globally so I don't have to do it for every project (I don't think currently that this is a bad... | 2 | 1,224 |
Unable to use a CLR type from CLI class library in a C# project in Visual Studio 2012 targeting .NET 3.5 and compiling with Windows7.1SDK toolset | <p>I have a VS2012 solution with a C++/CLI Class Library project targeting .NET 3.5 and using the the Windows7.1SDK as Platform Toolset, which according to <a href="https://msdn.microsoft.com/en-us/library/ff770576%28v=vs.110%29.aspx" rel="nofollow noreferrer">MSDN</a> is the correct way to target previous versions of ... | 2 | 5,201 |
Vue-resource + FormData File Upload with Laravel Backend | <p>I Already asked my question on VueJS Forum : <a href="https://forum.vuejs.org/t/file-upload-with-formdata-vue-resource/20952/3" rel="nofollow noreferrer">https://forum.vuejs.org/t/file-upload-with-formdata-vue-resource/20952/3</a></p>
<p>But ! For duplicate my chances to success I'll ask you about my problem.</p>
... | 2 | 3,293 |
Startup loading dialog Android WebView | <p>I've got an Android app that uses a WebView. At the startup of the app it checks if the WebView can connect to the server or not. If it can connect there's no problem, the app loads instantly and the WebView is showing the page. But if the server is not available or the connection doesn't work, it takes a few second... | 2 | 1,678 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.