title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Android Maps API: Failed resolving interface | <p>I implemented a map method using the Google Maps API. Yesterday, it was working fine. Since then, I've made absolutely no changes whatsoever to eclipse, any map related method (including views and the MapActivity class) or anything in the its corresponding entry in the manifest - the only thing I changed was to add ... | 1 | 3,936 |
Having trouble with grid formating | <p>I'm trying to create an inline grid. I was able to set up the grid columns and such with no issue, but the divs that are supposed to assign each div to a certain area aren't. Most likely a problem with nesting, but not sure where. Also, please note that this is technically inside another grid but the problem persist... | 1 | 3,212 |
locationManager.getLastKnownLocation() returns null | <p>I am making a program and i want to get gps coordinates of my device.The problem is that when locationManager.getLastKnownLocation() is called it returns null.My device runs android 4.4 API 19.</p>
<p>Here is my code:</p>
<pre><code>import android.Manifest;
import android.app.Activity;
import android.content.Cont... | 1 | 1,868 |
Material Ui Table Sort with pagination | <p>I'm trying to get my table to sort via the different columns following the material UI documentation. I'm not sure why its not working but upon clicking on the header the sort order shows up and i can see everything firing it just not sorting. I believe i have a tiny error somewhere in my code and after staring at i... | 1 | 11,387 |
Calculating XIRR using R | <p>I'm attempting to calculate IRR (internal rate of return) for non-periodic cashflows using R (similar to the Excel function named XIRR). The only problem is that it doesn't work. I sure could use some help in figuring out what's is going wrong..</p>
<pre><code>R>cashflow <- c(275,275,275,275,275,275,275,275,2... | 1 | 1,498 |
Configuring a WCF service binding in code | <p>I have a self hosted web service that is created in code:</p>
<pre><code>protected void StartService(Type serviceType, Type implementedContract, string serviceDescription)
{
Uri addressTcp = new Uri(_baseAddressTcp + serviceDescription);
ServiceHost selfHost = new ServiceHost(serviceType, addressTcp);
G... | 1 | 1,228 |
Jackson fails to serialize a null Double | <p>I am trying to serialize an object into an array and Jackson fails to do so with NPE.</p>
<p>I am expecting something like [1, null, 10] in the response, but do not understand why Jackson throws NPE instead of serializing a null value.</p>
<pre><code>@JsonFormat(shape = JsonFormat.Shape.ARRAY)
public static class ... | 1 | 2,444 |
How send NfcA command to the MIFARE card? | <p>I'm writing an Android application. I'm trying to send <code>NfcA</code> low-level commands (in my case: HALT and WAKE-UP) to my Mifare Plus S card. The <code>NfcA</code> tech is for "low-level" access to ISO 14443 Type A tags (i.e. the
proprietary protocol as mentioned in ISO 14443-3).</p>
<p>This is part of my co... | 1 | 1,089 |
How to remap app.config for assembly Oracle.DataAccess from Version '2.112.2.0' to '2.112.3.0' | <p>I am new to C#.</p>
<p>I wrote a C# console application which uses ODP to connect with Oracle database using Oracle.DataAccess.Client namespace. My dev machine is using Oracle.DataAccess ver 2.112.2.0 and the dev server is also using Oracle.DataAccess ver 2.112.2.0 and the program works fine. The prod server using ... | 1 | 1,169 |
Wordpress Pagination for single.php | <p>I've implemented category-based numeric pagination in my Wordpress theme:</p>
<p><img src="https://i.stack.imgur.com/2viAm.png" alt="pagination"></p>
<p>What I've done so far is create a custom page template with a list of paginated excerpts. Once a user clicks on an excerpt to view the full article I'd also like ... | 1 | 1,612 |
Spring Boot Swagger HTML documentation is not getting displayed | <p>I am setting up a REST API / Micro-services project using Spring Boot. I am also trying to enable swagger documentation. When I run spring boot application, I am able to see browse to the localhost:8080/v2/api-docs and it returns API documentation. However, when I attempt browsing <a href="http://localhost:8080/docu... | 1 | 2,258 |
What is correct example to use Multi-cURL? | <p>What is correct example (up-to-date approach) use CURL-MULTI? I use the below code, but many times, it fails to get the content (returns empty result, and neither I have experience how to retrieve the correct repsonse/error):</p>
<pre><code>public function multi_curl($urls)
{
$AllResults =[];
$mch... | 1 | 1,280 |
Model Binding Issue with ASP.NET5 MVC6 | <p>Im trying to post some JSON data on an angular form to my ASP.NET5 MVC6 Controller action. The model binder does not seem to be working. Not sure what I'm missing here.</p>
<p>My ASP Controller:</p>
<pre><code>public class DefaultController : Controller
{
public IActionResult Index()
{
return View(... | 1 | 1,160 |
MIPS assembly - removing vowels from an input string | <p>The following is my code for a MIPS assembly program that is intended to remove vowels from an input string and then print the new string. As it stands, the program simply does not remove the vowels and just reprints the same string that was input.</p>
<pre><code> .text
.globl main
main:
# display pro... | 1 | 1,076 |
Duplicate key value violates unique constraint, but it shouldn't [Spring Boot, PostgreSQL] | <p><strong>A short description of the code:</strong></p>
<p>User can create a category. Other users then can see that and other categories. They can then press 'follow' on a category and then they are saved to a database. There is picture bellow which shows how it looks in the DB. Everything works fine up to this point... | 1 | 3,054 |
Why does Kubernetes not terminating PODs after a node crash? | <p>I am running a self managed Kubernetes cluster 1.18.1. I have deployed some pods with persistence volumes (based on the longhorn project).
Now after doing some testing I observe the following behavior:</p>
<p>If I simulate a hard shutdown of one node, after a while (5 minutes) Kubernetes is recognizing the loss and ... | 1 | 1,151 |
nesting jQuery templates | <p>I'm trying to display JSON data in a table using nested jQuery templates.</p>
<p>I can get it to work up to the first level only. </p>
<p>Here's an example of what I'm trying to achieve:</p>
<p>A <code>Client</code> has a list of Orders and a <code>Fullname</code>. This is displayed using the <code>clientTemplate... | 1 | 1,067 |
Wordpress Ajax insert data to MySQL | <p>I am working with Wordpress and I am trying to develop a plugin for my personal purpose (studying).
At the moment I have created a main file (<code>wp-maincat.php</code>) for the plugin activation and deactivation, and it creates the custom table in the Wordpress called <code>categ_tag</code>.</p>
<p>This file crea... | 1 | 1,810 |
wavesurfer.js multiple instances on page | <p>I'm using <a href="https://github.com/katspaugh/wavesurfer.js" rel="nofollow">wavesurfer.js</a> which works fine when there is only one instance on the page, but I have multiple instances and have no idea (as I am a total javascript novice) how to link the play button to different instances.</p>
<p>I just need some... | 1 | 1,062 |
“.builders['browser']” should have required property 'class' | <p>After installing the dependencies successfully using npm install, I got the following error while running the server:</p>
<pre><code>Schema validation failed with the following errors: Data path ".builders['browser']" should have required property 'class'.
</code></pre>
<p>After searching for a while, I think the ... | 1 | 2,806 |
I have an error when upload file to aws s3 bucket by using php | <pre><code><?php
require_once(APPPATH.'libraries/REST_Controller.php');
require 'vendor/autoload.php';
use Aws\S3\S3Client;
use Aws\S3\Exception\S3Exception;
$s3_config = array(
'key' => '*************',
'secret' => '*****************************');
$s3 = S3Client::factory([
... | 1 | 1,440 |
how to recursively iterate over json object/array | <p>I am trying to figure out how to recursively iterate over this JSON no matter how many levels of nesting are present when I get this data as the amount of nesting can be any amount. I can get it to go one level deep but then it seems no matter what I do, if I want an additional level of nesting, I have to put in a t... | 1 | 12,881 |
Tailwind CSS with JIT not work with webpack | <p>The Tailwind classes which are already in my HTML are working but I cannot add new ones.</p>
<p>I don't understand where this came from. If I desete JIT everythings work as exepted but hot reload with webpack dev server is so long.</p>
<p><strong>Version of Tailwind CSS:</strong> 2.1.1</p>
<p><strong>Reproduction re... | 1 | 1,629 |
build.phonegap plugin unsupported: cordova-plugin-whitelist @ 1 | <p>i've updated my phonegape to 5.3.7 and now after i run android platform and i try to upload to build.phonegap.com i get this error <code>plugin unsupported: cordova-plugin-whitelist @ 1</code>. I don't know how to make it work. I search on google but without luck. If any of you had this problem and you know how to f... | 1 | 2,813 |
TRANSFORMERS: Asking to pad but the tokenizer does not have a padding token | <p>In trying to evaluate a bunch of transformers models sequentially with the same dataset to check which one performs better.</p>
<p>The list of models is this one:</p>
<pre><code>MODELS = [
('xlm-mlm-enfr-1024' ,"XLMModel"),
('distilbert-base-cased', "DistilBertModel"),
('bert-... | 1 | 1,421 |
SpringBoard quit unexpectedly | <p>Can anyone help me with the following problem please ? Every time when I try touch and swipe down the notification. I get following error and iOS simulators restarts. I tried reinstall Xcode and It didn`t help. I tried different version of simulators. From iphone 6 to iphone 8</p>
<pre><code>Process: ... | 1 | 1,375 |
Tensorflow Precision, Recall, F1 - multi label classification | <p>I am trying to implement a multi label sentence classification model using tensorflow. There are around 1500 labels.
The model works pretty fine, however I am not sure about the metrics it generates. </p>
<p>This is the piece of code that generates metrics:</p>
<pre><code> with tf.name_scope('loss'):
lo... | 1 | 3,096 |
How to fetch and display data from db inside a common layout file and to display on all views in laravel 5.2 | <p>Im new to laravel and im doing a study project in laravel 5.2. I had created a web template, various pages and given their routes, created corresponding controllers and models required to display the webpages. The datas on each of the webpages is fetched from the database. Upto this part its working fine. Right now ... | 1 | 1,795 |
Objective C check if element exists in web view | <p>ANSWER: here is how you do it, since I couldn't get any of the solutions below to work. Basically, you got to javascript, check if a document is ready, and return a value to objective c. simple and elegant.
in objective C, webviewdidfinishload:</p>
<pre><code> NSLog(@"Didload:Check if webview %d loading or l... | 1 | 1,269 |
Azure, SignalR and Web Api not sending message to client | <p>I have been inspired by the video "<a href="http://channel9.msdn.com/Events/Build/2013/3-502" rel="nofollow">Scaling the Real-time Web with ASP.NET SignalR</a>" at the 56 min an 11 sec section.</p>
<p><em>Imagine a web based chat client using SignalR to communicate with the server. When the client connects, its e... | 1 | 2,033 |
Nuget package for just content files | <p>I am trying to create a .NET standard nuget package of content files (with no managed assemblies), to be consumed by .NET Framework assemblies. My aim is to get this folder of files copied to the bin folder of the consuming assembly.</p>
<p>This question is similar <a href="https://stackoverflow.com/q/19478775">Add... | 1 | 1,559 |
How to save an image to BMP/PNG/JPG with GDI+? | <p>Here I have a GUID for BMP:</p>
<pre><code>const
GBmp: TGUID = '{b96b3cab-0728-11d3-9d7b-0000f81ef32e}';
</code></pre>
<p>I have some initialization with GdiplusStartup(...).
Then I load a JPG and the ShowMessage says 'Ok'</p>
<pre><code> Err :=GdipLoadImageFromFile('C:\a.jpg', GdiImage);
ShowMessage(... | 1 | 2,039 |
how to bring the selected node front in d3 js? | <p>I am using the <code>d3</code> v3 script to visualize the Data. I need to highlight and bring the node front in mousecenter and vice versa in mouseleave. Now I can able to high light the node by increasing height and width of the node.</p>
<p>Can't able to bring the node front. I've tried using CSS like opacity, z-... | 1 | 6,460 |
AWS Glue Crawler Access Denied with AmazonS3FullAccess attached | <p>I've just set up an AWS Glue crawler to crawl an S3 bucket. I've set up an IAM Role for the crawler and attached the managed policies "AWSGlueServiceRole" and "AmazonS3FullAccess" to the Role. I've ensured that the crawler is using the role. However, every time I run the crawler I get an error message similar to thi... | 1 | 2,205 |
Matrices multiply, Cannon algorithm implementation using MPI | <p>First of all, of course I saw similar questions and solutions, but my implementation is a little bit different.
The main problem is that, the my code works only for one process, but it doesn't work for more processes.
I don't know what is the cause of this... Probably in communication between processes but I can't f... | 1 | 2,057 |
onItemSelected / setOnItemSelectedListener not triggering | <blockquote>
<blockquote>
<p>I am opening spiiner with onclick on button but my spinner is not
trigger setOnItemSelectedListener this portion of code is not working public void onItemSelected(AdapterView arg0, View arg1,
int pos,
long id) {
... | 1 | 1,507 |
JButton ActionListener doesn't work (in Eclipse plugin) | <hr>
<h2>Question resolved: I mixed up <a href="https://developers.google.com/java-dev-tools/wbpro/" rel="nofollow noreferrer">windowbuilder</a>'s quickly test/preview button with eclipse's compile button:</h2>
<p><img src="https://i.stack.imgur.com/8Wgkd.png" alt="enter image description here">
(only found out by ... | 1 | 1,653 |
Why is WebAPI Throwing a 'No MediaTypeFormatter' Error? | <p>I have a strange issue happening with my WebAPI controller.</p>
<p>In my development environment (Win7, IIS 7.5) the method on the controller is called and the result is returned as expected.</p>
<p>In my integration environment (WIn Server 2003, IIS 6.0) I have deployed the code by copying it from my development ... | 1 | 3,710 |
SurfaceView does not display video from media player | <p>I am making a custom video player for which i am using surfaceview along with video player, but when I run the application, it just displays black screen and plays audio. </p>
<p>My Code: </p>
<pre><code>public class MainActivity extends Activity implements SurfaceHolder.Callback {
private SeekBar seekbar;
... | 1 | 2,284 |
Java Online Compiler Issue | <p>I am doing an assignment for school on pearson myprogramming lab, which completely sucks by the way, and I am getting no output from my program. However, on netbeans my application is solid, compiling and giving desired output. I've looked through the forums and found a similar problem but the fix suggest did not wo... | 1 | 1,304 |
Helm Override common template values | <p>First day helm user here. Trying to understand how to build common templates for k8s resources.
Let's say I have 10 cron jobs within single chart, all of them different by args and names only. Today 10 full job manifests exists and 95% of manifest content is equal. I want to move common part in template and create 1... | 1 | 1,123 |
SSE broken after deploying with Kubernetes and connecting via Ingress | <p>I've a ReactJS client which uses EventStream and a golang backend which implements SSE.</p>
<p>Everything seemed to work when I connected my browser to the backend running on localhost, as well as when my backend was running on k8s with port forwarding.</p>
<p>As soon as I created an ingress with a hostname (so th... | 1 | 2,475 |
Tomcat server HTTP Status 500 ? Internal Server Error | <h3>Code</h3>
<pre><code>@WebServlet("/TestMySqlServlet")
public class TestMySqlServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
@Resource(name="jdbc/test")
private DataSource dataSource;
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletExcep... | 1 | 1,844 |
Adding and setting NSLayoutConstraint via code | <p>I have some trouble with <code>NSLayoutConstraint</code>.</p>
<p>NSLayoutConstraint gives me an exception if I try to alter <code>constant</code> using the <code>setConstant:</code> method. I only have this problem when I add the height constraint via code.</p>
<p>First off, I'm getting the height constraint like ... | 1 | 1,428 |
C error - free(): invalid next size (fast) | <p>I am not sure why I am getting the below error. Strangely enough, this error doesn't occur when I use Mac OS X, but it does when I use my Linux (Debian) partition.</p>
<pre><code>-----------
Empty Queue: 0 0 0 0 0 0 0 0 0 0
---------------
Populated Queue: 5 3 1 7 6 3 2 1 4 4
-------------
After Dequeue: 3 1 7 ... | 1 | 2,683 |
Cropping and displaying images using PIL and Tkinter | <p>I am beginning to learn Python after being trapped using VB6 forever. To help myself learn some gui with Tkinter, I'm making a simple slot machine. To animate the wheels, I have a ~300x2000 image that has all of the pictures I intend to use displayed as a strip. About 6 pictures right now. I just show part of the im... | 1 | 1,208 |
Capistrano puma:restart not working, but puma:start does | <p>I am using Capistrano to deploy my Rails 5 app to AWS EC2 instance. When I type:</p>
<pre><code>cap production deploy
</code></pre>
<p>Things go smoothly and the deployment is successful. However, the process of restarting puma is not working. The last task I see as:</p>
<pre><code>puma:restart
01 ~/.rvm/bi... | 1 | 1,455 |
Connect to a WPA/ WPA2 PSK WiFi network | <p>I have been through several threads on stackoverflow itself and other blogs and sites about connecting to a WiFi network programmatically. I have got the guide of them and developed a code snippet also, which is published below. I have a secured WPA/WPA2 PSK secured WiFi network at my place and what I want to know i... | 1 | 1,270 |
In Tomcat6.0 "The requested resource () is not available." occurred | <p>Yesterday I encountered one problem when programming with java servlet on remote server.</p>
<p>Our assignment is to build a simple shopping cart and user can add items by typing the name and clicking "submit", then servlet will be invoked and show the items purchased.</p>
<p>After I coded it, the server tells me ... | 1 | 1,666 |
when upgrade to Spring Boot 2 from 1.5.16 start to get error NoClassDefFoundError: ObjectMapper | <p>When I upgraded the project from spring boot 1.5.16 to spring boot 2.0.5 I start to get the following error</p>
<blockquote>
<p>14:54:29.752 ERROR org.springframework.boot.web.embedded.tomcat.TomcatStarter-62: Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Messa... | 1 | 7,659 |
How to solve internal error: retry receiver class not set yet and GCMBaseIntentService : SERVICE_NOT_AVAILABLE error | <p>I am getting this logcat on running my app on Micromax Canvas 2, my phone is configured to Google services and google account, Here I am <strong>not getting the GCM registration ID</strong> whereas I am <strong>getting it in emulator</strong>. Any suggestions why ? Thanx in advance.</p>
<pre><code>07-11 13:52:48.14... | 1 | 1,496 |
How to sort decimal values in a data frame in R | <p>I have the following data frame.</p>
<pre><code> Ensembl_ID GeneNames score
ENSG00000011422 PLAUR 39.5685
ENSG00000078328 A2BP1 50.00768
ENSG00000081803 CADPS2 64.84489
ENSG00000105976 MET 97.11081
ENSG00000106366 SERPINE1 4... | 1 | 1,340 |
Android - Calculate Time in Background Even When App is Closed | <p>I have a <strong>textview</strong> which acts a an <strong>stepuptimer</strong>. I used a handler and updating it every second and its working perfectly. But when I close the app and open, the timer starts from "0". I want the time to be running background and when I opened the activity, the elapsed time should be d... | 1 | 1,896 |
Laravel 5: Updating Multiple Records | <p>I have a <strong>Simple Todo App</strong>, that doesn't persist the update of multiple records at once. The client version works properly here: <a href="http://codepen.io/anon/pen/bVVpyN" rel="nofollow noreferrer">http://codepen.io/anon/pen/bVVpyN</a></p>
<p>Everytime I make an action, I fire a http request to my l... | 1 | 1,999 |
IE 11 fails to load resource files | <p>I have an application employing FontAwesome's glyph fonts for icons, and everything works fine when I host the files from my server. When I enable CDN support on my site, IE 11 behaves rather strangely in regards to the font files. When navigating to a page either via clicking a link or manually entering a URL, th... | 1 | 2,317 |
Implementing opengl sphere example code | <p>Trying to implement a sphere example code I <a href="https://stackoverflow.com/questions/5988686/how-do-i-create-a-3d-sphere-in-opengl-using-visual-c?lq=1">found here on stackoverflow</a> I have been running into problems. Note that I am not using the draw code, I am using the <code>void SolidSphere</code> function ... | 1 | 1,566 |
Display Image in android Imageview using Asynctask | <p>I have an image being sent to me through a JSON string. I want to convert that string into an image in my android app and then display that image in my imageview.I have a problem, I am using Asynctask and this is my code in the doInBackground method:</p>
<pre><code>protected Boolean doInBackground(final String... a... | 1 | 1,034 |
ASP.Net c# - How do I instantiate an instance of a WebUserControl from within a App_Code class? | <p>Aloha,</p>
<p>I have a custom control that I need to instantiate from within a class and add to a page. My class has a function that I pass the <code>Page</code> to so i have access to the controls on the page. I'm using this method to add standard ASP controls already and everything it working as expected. My prob... | 1 | 1,246 |
2.1.6 Spring Boot - Elasticsearch Healthcheck failure | <p>***Update - I found a useful StackOverflow post where other people were having similar issues with the Healthcheck monitor failing for Elasticsearch <a href="https://stackoverflow.com/questions/54363302/springboot-elastic-search-health-management-connectexception-connection-refus">Springboot elastic search health ma... | 1 | 3,681 |
Error creating AWS CloudFormation Stack (AMI cannot be described) | <p>I want to create a Amazon Web Services stack (CloudFormation) (clicking the New Stack Button to create a new AWS CLoudFormation Stack)
based on this template:</p>
<pre><code>{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CodeDeploy infra",
"Parameters" : {
"VPCID": {
"Description... | 1 | 8,128 |
Unable to upload file from PHP to Centos server? | <p>I am having trouble uploading a file from PHP to Centos 7.0 Apache Server</p>
<p>PHP CODE</p>
<pre><code> <html>
<head>
<title>Upload your files</title>
</head>
<body>
<form enctype="multipart/form-data" action="index.php" method="POST">
<p>Upload your file&... | 1 | 1,135 |
matplotlib not working in import | <blockquote>
<p><a href="https://stackoverflow.com/questions/35236953/attributeerror-module-object-has-no-attribute-cbook">AttributeError: 'module' object has no attribute 'cbook'</a> does not answer my question.</p>
</blockquote>
<p><code>import matplotlib.pyplot as plt</code> is not working. Error ... | 1 | 1,543 |
Entity Framework throws exception: index was outside the bounds of the array | <p>I've been struggling with having a foreign key to' AspNetUsers' table a lot.</p>
<p>I renamed the table to <code>Users</code> in my SQL Server database just to clarify. I have a foreign key in my <code>Tutorial</code> table to the <code>Users</code> table. Here's my EF model class for <code>Tutorial</code> table: <... | 1 | 2,133 |
FullCalendar json error | <p>I've been trying to figure this out for over a day now. I have FullCalendar installed (v1.5.1) and i'm working with AgendaWeek. I have asp.net v.3.5 installed and I"m trying to populate the calendar with events from a Json feed but it's not working. Here is my code and errors. If anybody can help, that would be ... | 1 | 2,931 |
NameError: name 'train_gen' is not defined | <p>I'm new to python and tensorflow. I'm now testing Improved WGAN code from <a href="https://github.com/igul222/improved_wgan_training" rel="nofollow noreferrer">https://github.com/igul222/improved_wgan_training</a>
After adjusting the code to python 3.6, it still gives "NameError: name 'train_gen' is not defined" whe... | 1 | 4,039 |
Swift 3 - Reload UICollectionView inside the UITableViewCell | <p>I have a UICollectionView inside a UITableViewCell. You may refer the image at <a href="https://stackoverflow.com/questions/33867005/how-to-use-storyboard-quick-build-a-collectionview-inside-uitableviewcell">here</a></p>
<p>I would like to reload the collectionView if any update happen.</p>
<p>I have done some res... | 1 | 1,048 |
Linux x86 NASM - Subroutine: Print a dword from EAX | <p>So I'm learning x86 Linux assembly with NASM syntax (<em>Oh god, not this again</em>, you're all thinking). I'm trying to make a subroutine that will simply print the value in EAX to stdout. The code runs and exits without error, but nothing prints. I can't figure out why. First of all, here is the file I'm working ... | 1 | 2,109 |
Faulting module name: clr.dll, version: 4.0.30319.544 | <p>I have a WPF application targeted on Win 7. While working on the app I suddenly got the Application closing error. </p>
<p>When i checked the event logs i got the following error: </p>
<p>Machine Details: </p>
<p>4 GB Ram, Win 7 Professional and 64 Bit machine.</p>
<pre><code>Log Name: Application
Source: ... | 1 | 1,838 |
Retrieving data from MySQL database using NodeJS and passing it to AngularJS page | <p>I've searched and searched for a clear answer but can't seem to find it.
I'm "new" to programming, at least when it's about AngularJS and NodeJS (base languages like HTML, CSS and plain JS I'm familiar with because of school).</p>
<p>I want to be able to get data from a MySQL database using NodeJS and then send tha... | 1 | 1,386 |
Livebinding JSON objects and arrays | <p>Good evening all.</p>
<p>I'm currently trying to get to grips with livebindings in Delphi as I'd like to refresh one of my current projects (complete rework from the base for the purpose of pushing to other platforms, optimizing performance and minimizing the code). I'm working with a web API which returns JSON dat... | 1 | 1,124 |
Futoshiki C recursive solver | <p>So i have this program that should solve a futoshiki puzzle in C
wich is loaded from a text file having this formatting :</p>
<pre>
5
0 | 0 | 0 | 0 | 0
- - - - v - - - -
0 > 0 | 0 | 0 | 3
- - - - - - - - -
0 | 0 < 2 | 0 | 0
- - - - v - - - -
0 | 0 | 0 | 0 | 4
^ - v - - - - - -
0 | 0 | 0 | 0 | 0
</pre>
<p... | 1 | 2,800 |
VB.NET TO C# - Gridview Code behind for a search from a listbox w a stored procedure | <p>I am looking for the correct code behind syntax in C# for displaying Search Results from multiple parameters in Gridview. I just did something similar in VB.NET but I have to update a project in C#.NET and am unsure of:</p>
<p>1) the correct codebehind syntax in C#.NET (code in VB.NET)</p>
<p>2) how to specify mul... | 1 | 1,349 |
SignalR: Unable to connect to the server with any of the available transports | <p>I'm using Microsoft.AspNetCore.SignalR.Client (1.1.0v) in a WPF application targeting .Net 4.6.2. I'm setting up the client like:</p>
<pre><code>public class SignalRClient
{
private readonly HubConnection hubConnection;
public SignalRClient()
{
this.hubConnection = new HubConnectionBuilder()
... | 1 | 1,436 |
asp.net Chart Controls on a user control in MVC | <p>I am new to the MVC Framework. Im working on a dashboard project in the MVC framework. The project consists of a bunch of charting control in a user controls contained in a master page. I did a test on a charting control on a aspx page..and it works...but when I moved the code to a ascx (usercontrol) the chart does... | 1 | 2,762 |
Changing the fill color of SVG image loaded by data-URL inside a stylesheet | <p>I want to have different colored images that are loaded inside of a stylesheet via url('data...') property. All images are embedded inside of the css-file. The only difference is the fill color that should be used. Here is my current code:</p>
<pre><code>.icon.save {
background-image: url('data:image/svg+xml;utf8... | 1 | 1,169 |
D3.csv not loading data from local csv file | <p>I created a copy of the csv file in my local folder because i wanted to mess around with the data a little bit. When i get rid of the link and replace it with the name of my local csv file, the graph doesnt render for some reason. I have added a picture that shows my local file structure. it is in the same folder. W... | 1 | 2,325 |
AS3 : How to remove movieclip properly without Error 1009 overflow? | <p>I have a class Catcher which lets you control a movieclip in a game. I'm trying to program the game so it finishes and you can restart. So I need to remove everything and go back to the menu. Should be a simple thing to solve but I can't seem to find out how.</p>
<p>So far I just have ourCatcher.parent.removeChild(... | 1 | 1,385 |
Android: Algorithms for SensorManager.getRotationMatrix and SensorManager.getOrientation() | <p>To get orientation as a from of euler angles (e.g., pitch, roll, azimuth) in Android, it is required to execute followings:</p>
<ol>
<li>SensorManager.getRotationMatrix(float[] R, float[] I, float[] gravity, float[] geomagnetic); <br/></li>
<li>SensorManager.getOrientation(float[] R, float[] orientation); <br/></li... | 1 | 1,105 |
Using mariadb nodeJS connector with multiple queries | <p>I've got a server running Node.js connecting to a MariaDb database. I'm using the <a href="https://mariadb.com/kb/en/library/getting-started-with-the-nodejs-connector/" rel="nofollow noreferrer">Node.js connector</a> and it's working fine for single queries. However, when I try to do multiple queries it's throwing... | 1 | 1,037 |
Xcode 11 crashes when copy/pasting views from different storyboards | <p>I have a problem with Xcode 11 running on Catalina (it had the same problem with Moave).
When I try to copy/paste a view or a ViewController from one storyboard to another Xcode crashes with this exception:</p>
<pre><code>...
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x00... | 1 | 1,185 |
LinearLayout Visibility Gone | <p>Alright, I'm running into a bizarre problem with my Android Layout. I have two LinearLayouts in my xml layout definition. What I want to do is hide them both at the start of the program, and then set the visibility of each of them dynamically at runtime, just showing one at a time.</p>
<p>This is my xml layout:</p>... | 1 | 2,217 |
Laravel how to return selected column with auth:user() | <p>From last few days, I have started learning Laravel with Passport and followed this wonderful article <a href="https://medium.com/techcompose/create-rest-api-in-laravel-with-authentication-using-passport-133a1678a876" rel="noreferrer">Create REST API in Laravel with authentication using Passport</a>. </p>
<p>I have... | 1 | 1,628 |
Cant get API Gateway `RequestId` in Lambda function | <p>I sent a post and get the response from amazon API Gateway as:</p>
<pre><code>{"MD5OfMessageBody": "bc709a65868c21309969a07cfeeac12f", "MD5OfMessageAttributes": "8a66ae91e9109cb75717520c287736eb", "MessageId": "b70a5453-5f30-4914-8006-b6cf7fa4ff93", "ResponseMetadata": {"RequestId": "1a38fbb5-859a-53f9-9551-a805d86... | 1 | 1,174 |
How to decode a cookie from the header of a websocket connection handshake? (Ruby) | <p>I am running a <code>Sinatra</code> app within an <code>EventMachine.run</code> loop and in my <code>ws.onopen</code> method I wish to check the <code>handshake</code> header's cookie to ensure that the incoming request is coming from a registered user of my webapp.</p>
<p>My <code>Sinatra</code> app includes the f... | 1 | 1,188 |
css min-width works on first level <li> lists but doesn't on second level in hierarchy | <p>Basically problem is the <code><li>text</li></code> in the second level of the menu won't stretch, and defaults to whatever min-width I give it - if I declare <code>min-width:30px</code> and the text is longer it stops at 30px and wraps the text. Basically behaves like max-width would, but it happens onl... | 1 | 1,439 |
UDPClient Async BeginReceive is very slow | <p>I am using UDPClient to send multicast request and receive response from various clients on the network. I am able to send request and also getting response, but response that I get is very slow. It take 2-3 minutes to get response from all the clients. On send request on the network I checked in the WireShark, the... | 1 | 1,580 |
Gradle failed to build with error Multiple dex files define | <p>Gradle failed to build after I added google play services</p>
<p>gradle Dependencies I've tried both with play-services-wearable entries together and the second one excluded</p>
<pre><code>dependencies {
compile 'com.google.android.gms:play-services-wearable:6.5.+'
compile 'com.android.support:support-v13:... | 1 | 2,727 |
Building Json Newtonsoft Jarray | <p>I have hours stuck on this, I dont know why I lose my json, with lose I mean it has the 'structure' but not the values. I am trying to return a JArray with JObjects of the Newtonsoft .Json library. this is a simple example, I am trying to do this with Linq, but get the same results.</p>
<p>I am using asp mvc, I to... | 1 | 1,047 |
java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogFactoryImpl | <p>I am writing a command for a maven project in Java using the 'CommandLine' class. The command will take two integer values as parameters on a command line and displays its sum. However, my project does not build and throws exception as follows:</p>
<pre><code>java.lang.ClassNotFoundException: org.apache.commons.log... | 1 | 1,415 |
MVC4 Validate Item Selected In DropDownList | <p>I have a page to create <code>objects</code>, and in this I have a <code>DropDownList</code>. If I select an item from the list my page will save correctly, however if I don't select an item it looks like it fails on a postback as the objects will be null.</p>
<p>What I want is to try and validate whether the user... | 1 | 1,144 |
Two instances of same application on JBoss throws this exception: java.lang.Exception: Port 8083 already in use | <p>On a Windows Server 2008 box, I'm trying to run two instances of the same application. This application (i2b2) is using Apache Axis 2 web services. The JAX-WS web services are running on port 9090, and are calling our application source code in JBoss on port 8083. I made a complete copy of the application code (w... | 1 | 7,221 |
spring.main.allow-bean-definition-overriding=true is ignored and ConflictingBeanException is thrown | <p>I am working on a spring-boot application with version <strong>2.2.0</strong>.</p>
<p>I wanted to override a bean, which spring-boot provides by default. So I tried <code>spring.main.allow-bean-definition-overriding=true</code> in my <code>workflow.properties</code> file.</p>
<p>The code is same in both java files, ... | 1 | 1,979 |
using MySQL by Hibernate : org.hibernate.exception.SQLGrammarException | <p>I am using Hibernate to access MySQL database for my java application. I configured Hibernate using <a href="http://netbeans.org/kb/docs/java/hibernate-java-se.html" rel="nofollow">this instructions</a> .Now I want to have query to my database; using this code:</p>
<pre><code>java.util.List categList = null;
Sessio... | 1 | 2,177 |
Hibernate JDBC connection blocking | <p>I'm using spring + hibernate + tomcat jdbc in my java application. I want to be able to handle connection problem when , for exemple, a database crash occur. The problem I got is that hibernate block on trying to get a jdbc connection (when for exemple the mysql is down) and never timeout making the http request h... | 1 | 1,397 |
Why is my URLLoader not dispatching when it completes? | <p>I'm using a URLLoader to send a few key/value pairs to a php script, which then turns them into an e-mail, sends it (or not), and then echoes a string with a response.</p>
<p>At first it works fine. The URLLoader posts, and I get my e-mail a minute later, but for some reason I'm not getting my response back. In fac... | 1 | 1,048 |
How to add org.springframework.scheduling.concurrent to spring boot pom.xml file? | <p>I have created a simple spring mvc application using spring-boot-starter-thymeleaf and STS. Now I want to add an asynchronous task and need to add org.springframework.scheduling.concurrent as a dependency. The exact error message is</p>
<blockquote>
<p>org.springframework.beans.factory.NoSuchBeanDefinitionExcepti... | 1 | 1,312 |
Upgrade to Spring Boot 1.3 causes java.lang.NoSuchMethodError: org.springframework.beans.factory.config.ConfigurableBeanFactory.getSingletonMutex() | <p>Running the test, the stack trace is entirely in the Spring framework and jUnit:</p>
<pre><code>java.lang.NoSuchMethodError: org.springframework.beans.factory.config.ConfigurableBeanFactory.getSingletonMutex()Ljava/lang/Object;
at org.springframework.context.event.AbstractApplicationEventMulticaster.setBeanFact... | 1 | 1,760 |
Selenium + JUnit: test order/flow? | <p>I am using Selenium to test my java web app's html pages (JSPs actually). My web app requires a flow to access each pages (it is a small online game web app), as in: to get to page B you'd need to go to page A, enter some text and press a button to get to page B. Obviously I already have some tests to verify that pa... | 1 | 1,041 |
AsyncTask onPostExecute() not called in Unit Test Case | <p>I've seen a bunch of posts related to this, but none seem to have the same issue I'm getting. GetBusinessRulesTask extends AsyncTask. When I execute this in a unit test case the onPostExecute() never gets called. However, if I use the real client code then onPostExecute() is called everytime. Not sure what I'm doing... | 1 | 2,079 |
java.net.URISyntaxException: Expected authority at index 7: http:// | <p>I am getting error:</p>
<blockquote>
<p>Caused by: java.net.URISyntaxException: Expected authority at index 7:
http://</p>
</blockquote>
<p>For below code:</p>
<pre><code>try
{
return new RemoteWebDriver(new URL("http://" + username + ":" + authkey +"@hub.crossbrowsertesting.com:80/wd/hub"), caps);
}
ca... | 1 | 1,160 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.