title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Unable to provide CLASSPATH in docker? | <p><strong>Problem:</strong></p>
<p>I am facing a <strong>classNotFoundException</strong> when i try to connect jsp container to mysql container by running an web application(.html, .jsp files) in browser.</p>
<p><strong>Note:</strong> It is executing as expected in Eclipse</p>
<p><strong>Description:</strong></p>
... | 1 | 1,679 |
Deploying flask app to Heroku - error H10 (App crashed) | <p>I am trying to deploy a simple flask application to Heroku, it is working fine locally, but when deploying to Heroku I get this error:</p>
<pre><code>2016-05-05T18:39:24.897207+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/favicon.ico" host=read-
laterr.herokuapp.com request_id=2ab42... | 1 | 1,222 |
Hand-coded GUI - Java | <p>I'm trying to hand-code a Java GUI using Swing and AWT. I'm using various layouts to try and achieve or something similar to the GUI posted below (it's a mock layout made with Pencil):</p>
<p><img src="https://i.stack.imgur.com/3jlHt.png" alt="Mock Layout - (Made with Pencil)"></p>
<p>What I got so far is this, bu... | 1 | 2,145 |
Execution Failed capacitor-cordova-android-plugins:compileDebugJavaWithJavac in Ionic 6 | <p>I am using Cordova plugin to use fileOpener in the capacitor ionic project. Before this, everything was working fine as I install following packages:</p>
<pre><code>npm install @ionic-native/file
npm install cordova-plugin-file
npm install @ionic-native/file-opener
npm install cordova-plugin-file-opener2
</code></pr... | 1 | 2,597 |
Java - "invalid stream header" with Serialization of ArrayList | <p>I have a trouble with my java project. After several searches, i'm still blocked.</p>
<p>I have a class named <code>ListFromFile</code> that extends <code>ArrayList</code> :</p>
<pre><code>public class ListFromFile<T> extends ArrayList<T> implements Serializable {
private String listFile;
pub... | 1 | 1,700 |
How to best include assets (images and fonts) referenced in scss files in rollup bundle | <p>I am writing a react component library with typescript, sass and rollup, and I want it to be as standalone as possible.</p>
<p>Does anyone have a suggestion on how to best include assets (images and fonts) referenced in scss files?</p>
<p>One solution could be some sort of loader (for instance a postcss processor) r... | 1 | 1,963 |
Razor Pages SelectListItem not selected | <p>I’m working on an ASP.net Razor Page and having a problem with the tag-helper for a select-list.
Especialy with the selected-property of the SelectListItem.</p>
<p>I’ve got a list of Operating Systems from my database which one is assigned via a DeviceId to a device.</p>
<p>When I fireup the Page I assume to have ... | 1 | 1,161 |
C# 5 Async Await .Task.Factory.StartNew cancellation | <p>I have the async code that implements cancellation token. It's working but Im not pretty sure if this is the right way to do it so I just want feedback about it.</p>
<p>Here is the actual code:</p>
<pre><code> /// <summary>
///
/// </summary>
private async void SaveData() {
if ... | 1 | 1,095 |
xsl-fo apply radius to top borders | <p>Good day<br>
I have this XSL-FO <BR></p>
<pre><code><fo:table table-layout="fixed" border-width="0.2mm" border-color="#330099" border-style="groove"
border-collapse="separate" background-color="white" line-height="16pt" space-before.optimum="10pt"
space-after.optimum="6pt" text-align="... | 1 | 1,281 |
One-way Anova loop through pandas dataframe - results in a single table | <p>I have a pandas dataframe containing 16 columns, of which 14 represent variables where i perform a looped Anova test using <code>statsmodels</code>. My dataframe looks something like this (simplified):</p>
<pre><code>ID Cycle_duration Average_support_phase Average_swing_phase Label
1 23.1 ... | 1 | 1,308 |
Tesseract training - Finetuning Characters | <p>I want to train my existing tesseract model for a new character. I already tried the tutorial on </p>
<p><a href="https://github.com/tesseract-ocr/tesseract/wiki/TrainingTesseract-4.00#lstmtraining-command-line" rel="nofollow noreferrer">https://github.com/tesseract-ocr/tesseract/wiki/TrainingTesseract-4.00#lstmtra... | 1 | 2,367 |
Error retrieving credentials from the instance profile metadata server | <p>I am attempting to upload file to s3 from a php script following a tutorial I found on YouTube</p>
<p>I have the following php files</p>
<p>upload.php
<pre><code>use Aws\S3\Exception\S3Exception;
require 'start.php';
if(isset($_FILES['file'])){
$file=$_FILES['file'];
$name = $file['name'];
$tm... | 1 | 1,344 |
how to establish sip session in .c programming between client and server | <p>this is client server application I want to establish SIP (session initiation protocol) between client and server.</p>
<p>So please anyone guide me how can I do this.</p>
<hr>
<p><i>server.c:</i></p>
<hr>
<pre><code>#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <er... | 1 | 3,298 |
Error when decode AAC with avcodec_decode_audio4() | <p>I'm trying to decode AAC with FFmpeg native decoder and encountered an error</p>
<pre><code>SSR is not implemeted. Update your FFmpeg version to newest from Git. If the problem still occurs, it mean that your file has a feature which has not implemented.
</code></pre>
<p>Function <em>avcodec_decode_audio4()</... | 1 | 2,781 |
The conversion of a varchar data type to a datetime data type resulted in an out-of-range value | <p>I am getting the following error "The conversion of a varchar data type to a datetime data type resulted in an out-of-range value." and the date format is "DD/MM/YY"</p>
<pre><code> public DataSet GetSynchronizeDataForDLDocs(string date_pushed)
{
DataSet ds = new DataSet();
string strQuery=string.Empty;
... | 1 | 1,106 |
Parse xml using XmlPullParser | <p>i am working with android and using xmlpullparser in android to parse an xml document that is like:</p>
<pre><code><spaces>
<space>
<name></name>
<desc></desc>
<songs>
<song>
<name></name>
<thumb></thumb>
... | 1 | 1,674 |
NoExecuteTaintManager falsely deleting Pod? | <p>I am receiving NoExecuteTaintManager events that are deleting my pod but I can't figure out why. The node is healthy and the Pod has the appropriate tolerations. </p>
<p>This is actually causing infinite scale up because my Pod is setup so that it uses 3/4 Node CPUs and has a Toleration Grace Period > 0. This force... | 1 | 9,925 |
How to pass XSL variable in to a Javascript function? | <p>Below is my sample XSL file</p>
<pre><code><?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<xsl:template match="/">
<html>
<head>
... | 1 | 3,474 |
BUILD FAILURE in maven | <p>I am trying to build my <code>new-webapp</code> module using maven, and whenever I am doing <code>mvn install</code> from the command prompt using cygwin, it gives me this error - </p>
<pre><code>$ mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------... | 1 | 8,974 |
Best way to enable/disable multiple bootstrap button (Jquery) | <p>I want to enable and disable bootstrap buttons. There are 4 buttons on the page, On load, the 1st button is enabled and rest are disabled. Now when I click on button1 then rest of the button should be enabled and button1 will disabled.</p>
<p>Below is my code it can disable the first button but rest button are not ... | 1 | 1,489 |
how to change Java code to access database using JDBC after creating JDBC connection pool in GlassFish? | <p>I'm new to JDBC. I've installed GlassFish 3.1.1 on Centos 6.2 and need to use it with an application that connects to an Oracle 11G database on another server. I've read through the documentation for GlassFish and think I understand how to create a JDBC connection pool as well as a JDBC resource. My question is, how... | 1 | 1,929 |
UITableView - Scroll to bottom before viewDidAppear | <p>In case it's not obvious by the title, what I want should be simple, for the <code>tableView</code> to start scrolled all the way to the bottom when the users first sees it (<strong>before he sees it, and without animations</strong>).</p>
<p>So, I know that this has been answered a few times, but none of those solu... | 1 | 1,499 |
Don't show FormArray if it is empty or undefined in a Reactive Form | <p>I've just started to learn Angular 4 doing my first project.</p>
<p>I have created a Reactive Form to show a form with the following structure:</p>
<pre><code>Form (FormGroup)
|
--> aggLevels (FormArray)
|
--> aggregationLevelName (FormControl? I show it in a label)
|
--> v... | 1 | 3,498 |
page.rb:220: warning: encountered \r in middle of line, treated as a mere space on Mac | <p>I am trying to run a test in ruby cucumber, selenium webdriver, framework. The tests were written in windows machine and I am using Mac. I am getting the following error. I found at this Git hub link - <a href="https://github.com/rdoc/rdoc/pull/280" rel="nofollow">https://github.com/rdoc/rdoc/pull/280</a>
that this... | 1 | 4,024 |
how to make a responsive accordion layout using bootstrap 3? | <p>How do i layout bootstrap grids if i want to make this responsive layout?</p>
<p>In the images below, the small box is like a tab, when clicked it will show the content at the bottom of it.</p>
<p>When the window / viewed in smaller screen it will reduce the columns accordingly however it should preserve its funct... | 1 | 1,604 |
PHP/IOS6 prvent image from rotating when uploading from iphone using exif | <p>I have a photo upload script written in PHP that works fine on regular pc images, however, when uploading images snapped on an iphone, it rotates them 90 degrees. Apparently, the problem is that the iphone as a newer camera encodes the image with attributes including orientation spelled out in the latest standard an... | 1 | 1,449 |
JPA entities from external jar not found in war | <p>I have the following structure of a web application (war) running on JBoss EAP 6.1 with JPA 2 and Hibernate 4.2:</p>
<ul>
<li>Entity.jar (from other internal project)</li>
<li>Application.war (containing the Entity.jar in WEB-INF/lib, included as maven dependency, not as maven module)</li>
</ul>
<p>In my web appli... | 1 | 1,511 |
libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary | <p>I have been testing prior to submission of an update... from iOS4, and have run into the following... 1) creating PDFs from my app. 2) appears to be inconsistent, as I can create new PDFs without issue in most cases. 3) the crash log indicates a crash at line 341 of ExportView, which I have configured so that the on... | 1 | 4,783 |
Android - Actionbar tabs and fragments save fragement state between tabs | <p>I have an android app have four action bar navigation tabs on the top. And I have added fragment to each of them as this suggested. It worked.</p>
<pre><code>// here I created an ActionBar Navigation Tabs from MainActivity
public function initActionBar () {
this.getActionBar().setDisplayShowHomeEnabled(fals... | 1 | 2,098 |
ALU with Structural VHDL?? | <p>I am trying to create an ALU using structural code in VHDL. The code was originally in Verilog and then I manually changed it all over to VHDL, so that's why I have many separate files...but in theory these should work. The following are the associated codes and files:</p>
<p>--dwl_fulladd code--</p>
<pre><code>LI... | 1 | 4,371 |
Struts 2: Action classes | <p>So, I have next situation:</p>
<p>I have a page with form -> this form submitted to the server -> On the server, present special struts 2 Action for processing submitted form -> and on the last step for user show again this page with form.</p>
<p>when, I try testing this workflow I see one strange for me moment:</... | 1 | 1,339 |
Java text filter | <p>For a project I need to develop een Java application which checks a string on multiple parts:</p>
<ol>
<li>First a text check if the word contains a word of a specified list.<br>
Keep reminded that:
<ul>
<li>It is possible that the input can contain a word of the list but there can be spaces or special characters ... | 1 | 1,386 |
Send PDF file by mail using PHP | <p>I have PHP code as below:</p>
<pre><code><?php
if (!empty($_POST)) {
// Used for later to determine result
$success = $error = false;
// Object syntax looks better and is easier to use than arrays to me
$post = new stdClass;
// Usually there would be much more validation and filtering, but this
// will work f... | 1 | 1,495 |
How can I show NEW products per row from specific categories in Magento? | <p>As the title suggests, I like to show new products called in from specific categories separated by rows in the home page.</p>
<blockquote>
<p>Row 1 -> New products from Category 1</p>
<p>Row 2 -> New products from Category 2</p>
<p>Row 3 -> New products from Category 3</p>
<p>...etc</p>
</blockquote>
<p>In ... | 1 | 2,694 |
Templates, nested classes, and "expected constructor, destructor, or conversion before '&' token" | <p>While working with some templates and writing myself a basic container class with iterators, I found myself needing to move the body of member functions from a template class into a separate file to conform to style guidelines. However, I've run into an interesting compile error:</p>
<blockquote>
<p>runtimearray.... | 1 | 1,407 |
cmake error for header-only library: `include could not find load file` | <p>I've been trying to change a makefile c++ project into a cmake project, and I've been having som difficulty. <code>cmake</code> seems to be looking for stuff in <code>/usr/local/lib/</code> instead of <code>/usr/local/include/</code> and I'm not sure why that is.</p>
<p>This library is header-only, and so I've been ... | 1 | 1,819 |
geoJson layer to save [for send DB] the features drawn on the map-Leaflet-Draw | <p>I used <a href="https://github.com/learn-js/making-maps-with-leafletjs/blob/master/chapters/07-drawing.md" rel="nofollow">this method</a>, but</p>
<pre><code>var features = [];
map.on('draw:created', function (e) {
drawnItems.addLayer(e.layer);
var layers = drawnItems._layers;
for (var key in layers) features... | 1 | 2,278 |
Integration test for authentication filter with Spring Boot | <p>I would like to implement an integration test to test my authentication filter, implemented with Spring Security, with Spring Boot. But... I am lost...</p>
<p>First, here is my "production" implementation:</p>
<p>I have my web configurer adapter creating an authentication manager and declaring my filter:</p>
<pre... | 1 | 1,956 |
Tensorflow not running on GPU in jupyter notebook | <p>Installed Cuda and cudnn sucessfully for the GTX 1080 ti on Ubuntu, running a simple TF program in the jupyter notebook the speed does not increase in a conda environment running tensorflow-gpu==1.0 vs tensorflow==1.0.</p>
<p>When I run nvidia-smi :</p>
<pre><code>+-------------------------------------------------... | 1 | 1,106 |
Updating cedet 1.0 to 1.1 | <p>I'm currently on emacs24 on OS X.</p>
<pre><code>CEDET Version: 1.0
Requested File Loaded
Package Version Version Version
----------------------------------------------------------
cedet: 1.0 nil ok
... | 1 | 1,288 |
I detached packages and now I can't assign values | <p>Oops. I unchecked a bunch of packages in RStudio and I think I unchecked a critical one that I shouldn't have touched. Now, I can't even do basic things like assign a variable a value e.g., <code>a <- 1</code>. I keep getting the error: </p>
<blockquote>
<pre><code>Error in object.size(obj) : could not find func... | 1 | 1,977 |
How to implement ViewPager to load images using Picasso or Universal Image Loader? | <p>I've been searching for a fully made example where the author loads images from a URL into a ViewPager using an image loading library like Picasso or Universal Image Loader. Every tutorial's solution I've found either uses an array of images from the resource files, does not work at all/is outdated, or is just diffe... | 1 | 2,374 |
Use ssl certificate in SOAP client | <p>I am creating a SOAP client to communicate with a webservice.
I have a .pfx certificate in order to communicate with the webservice but I'm not sure how to use it.</p>
<p>If I understand correctly, I need to load the certificate into the jvm. This is what I have right now:</p>
<pre><code>System.setProperty("javax... | 1 | 3,014 |
Putting the results of grep & cut in a variable in a bash script | <p>I'm new to Stackoverflow and pretty new to bash-scripting as well, so please forgive me for asking such a dork question. I've really browsed trough a lot of answers in here but nothing seems to work for me.</p>
<p>I'm trying to make this little script to check wordpress.org for the latest version, and check if I al... | 1 | 1,227 |
How to make this recursive function faster in Python or Java? | <p>I have this recursive function:
F(n)=4F(n-1)+F(n-2), for all n>=2, where F(0)=0 and F(1)=1.
This is my code in python</p>
<pre><code>def f(n):
res = 0;
if n == 0:
return 0
elif n == 1:
return 1
else:
res=(4*(f(n-1)))+f(n-2)
return res
print f(2424)
</code></pre>... | 1 | 1,173 |
Regex for SPARQL | <p>I have downloaded dbpedia_quotationsbook.zip from <a href="http://downloads.dbpedia.org/1.0/" rel="nofollow">dbpedia</a> which contains dbpedia_quotationsbook.nt triplestore.</p>
<p>In this triplestore </p>
<blockquote>
<p>subject is authorname<br>
predicate is "sameas"<br>
object is authorcode</p>
</bl... | 1 | 2,169 |
how to get a value from a list in angularjs inside controller | <p>I am newbie to angularjs and have made a demo of list using onsen ui,i succeed in that,but now i want to get value associated to particular listitem when its clicked,the list hase items of radio buttons,I have tried but it gives me only first value.can anyone help me to get it?pls
<strong>html</strong></p>
<pre><co... | 1 | 1,045 |
Exception in thread "AWT-EventQueue-0" NullPointerException | <p>I'm a newbie in Java and I'm trying to add a button in my window, but I'm having some troubles. </p>
<p>First of all, I created a new jLabel, left blank the "text" and chose a image from my images folder (inside my project). After that, I added a new jButton, and again leftblank the "text" and chose a imagem from m... | 1 | 1,586 |
Primefaces dataTable with checkbox not work | <p>I am using Primefaces 4.0 with jsf2.2.</p>
<p>When I use dataTable with checkbox, it won't send back any record whenever I select records.</p>
<p>It supposed to send back the record once I click the checkbox.</p>
<p>I remove extra stuff and make my code simple to test it:</p>
<p>There is a polling printing selec... | 1 | 1,280 |
Display sqlite3 results in Table View using xcode | <p>I am an Objective C newbie (background includes perl/php/VB...non object oriented). I am trying to learn Objective C and xcode and working on a project that involves data as a test case. It uses story board.</p>
<p>I have a database class, a class for single items and a class for multiple items and a view control... | 1 | 2,622 |
SignalR 2.0.0.0: $.connection is undefined | <p>I am trying to run my first SignalR v2 project but with no luck, $.connection is undefined. </p>
<p>Here is the error from web console:</p>
<ol>
<li>Uncaught TypeError: Cannot read property 'chatHub' of undefined (anonymous function)</li>
<li>k</li>
<li>l.fireWith</li>
<li>p.extend.ready</li>
<li>D</li>
</ol>
<p>... | 1 | 2,025 |
Unit tests in Angular can't read property | <p>I have a next component with a form for sign-up writed on Angular 9.1 </p>
<pre><code>import { Component, OnInit, EventEmitter, Input, Output } from '@angular/core';
import { FormBuilder, Validators, FormGroup, FormControl, FormGroupDirective, NgForm } from '@angular/forms';
@Component({
selector: 'app-sign-up-f... | 1 | 3,827 |
Dynamic web project: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver | <p>I am trying to connect my Database class inside the Register servlet but I am getting the error below. I have already imported the mysql jar as the following: </p>
<p><a href="https://stackoverflow.com/questions/17484764/java-lang-classnotfoundexception-com-mysql-jdbc-driver-in-eclipse">java.lang.ClassNotFoundExcep... | 1 | 3,802 |
Why Delete link doesn't work in this Ruby on Rails project? | <p>I am practicing this RoR tutorial project of Michael Hartl: <a href="http://ruby.railstutorial.org/ruby-on-rails-tutorial-book" rel="nofollow">http://ruby.railstutorial.org/ruby-on-rails-tutorial-book</a></p>
<p>I am using Ruby 1.9.2 and Rails 3.1 on Ubuntu 11.04 with Apache and MySQL.</p>
<p>I am here now: <a hre... | 1 | 1,068 |
google sheets script conditionally move row to another spreadsheet | <p>I am new to this and I am having some trouble trying to figure this out. I have a spreadsheet that collects data from a google form. I am trying to find a way to move that data based on a column answer to a different google sheet. (Not a sheet in the same document but a different document all together). It seems lik... | 1 | 1,145 |
[__NSCFTimer copyWithZone:]: unrecognized selector sent to instance | <pre><code> var searchDelayer:NSTimer?
func searchBar(searchBar: UISearchBar!, textDidChange searchText: String!) {
searchDelayer?.invalidate()
searchDelayer = nil
searchDelayer = NSTimer.scheduledTimerWithTimeInterval(1.5, target: self, selector: Selector("doDelayedSearch:"), userInfo: ... | 1 | 1,245 |
Error in starting pods- kubernetes. Pods remain in ContainerCreating state | <p>I have installed kubernetes trial version with minikube on my desktop running ubuntu. However there seem to be some issue with bringing up the pods.
Kubectl get pods --all-namespaces shows all the pods in ContainerCreating state and it doesn't shift to Ready.</p>
<p>Even when i do a kubernetes-dahboard, i get</p>
... | 1 | 2,335 |
Weblogic 12c and Spring-Data-JPA Deployment JPA 2.1 Conflict | <p>I'm trying to deploy a spring-data-jpa,apache-cxf integrated project to Oracle Weblogic 12c (12.1.3) with below dependencies and getting below exception.</p>
<ul>
<li>jdk :1.7</li>
<li>weblogic : 12c(12.1.3)</li>
<li>spring.version>4.1.0.RELEASE</li>
<li>spring.data.version>1.7.2.RELEASE</li>
<li>hibernate.version>... | 1 | 4,151 |
None of the policy alternatives can be satisfied Exception | <p>I have tried many options mentioned in the previous messages/forums.None of them seem to work. </p>
<p>Please help me in this regard.Please note that I just have to write a client as the service is already hosted by a different vendor: </p>
<p>Problem: </p>
<p>I am using jboss-4.2.3GA on JAVA 1.5 with Apache CXF ... | 1 | 11,506 |
Bootstrap dropdown menu not appearing | <p>My dropdown menu in Bootstrap doesnt appear to be working - can anyone alert me to the problem? Right now it displays the dropdown icon when less than 768px wide, but clicking it does nothing. Thanks!</p>
<pre><code><header>
<div class="navbar-wrapper"></div>
<div class="navbar navb... | 1 | 1,359 |
Receiving EnvCommandError when run poetry install on Apple M1 MacOs Monterey | <p>I'm facing the issue when running <code>poetry install</code> command in my new Macbook Pro using Apple M1 chip and MacOS Monterey. I tried many suggestions so far but still cannot make it fixed.
Python version: 3.8.12</p>
<pre><code>>>> poetry install
Installing dependencies from lock ... | 1 | 1,296 |
Segmentation Fault in PHP7 | <p>We have encountered this weird issue with PHP 7.0. We are running Magento2's indexers on PHP 7.0 and have different outcomes on different environments.
If we use CentOS, and get PHP 7.0 from either <a href="http://rpms.famillecollet.com/" rel="nofollow">Remi's Repo</a> or <a href="https://webtatic.com/projects/yum-r... | 1 | 1,074 |
OpenGL ES 2.0 GLKit with transparent background | <p>Is there a way to make the background of a GLKView transparent? I've tried the solution <a href="https://stackoverflow.com/questions/3193607/is-it-possible-to-make-an-opengl-es-layer-transparent">here</a> but that isn't working for me.</p>
<p>*EDIT: I need help making it completely transparent. The background is... | 1 | 1,078 |
Flutter: preserve state when changing body in Drawer | <p>I am creating a Flutter application with a navigation drawer by using the <code>Drawer</code> class of the Material library. The <code>Widget</code> containing the <code>Drawer</code> is a <code>StatefulWidget</code> and the <code>Scaffold</code>'s content is displayed according to the selected item on the navigatio... | 1 | 1,195 |
Hibernate bidirectional parent/child problem | <p>I'm having a problem implementing a bi-directional parent/child relationship using hibernate 3. The parent, in this case is of the class ReportCriteria. The child is of class PkVisit. I've pasted my hibernate configuration files as well as the underlying java objects below.</p>
<p>ReportCriteria configuration:</p>
... | 1 | 1,391 |
Worker failed to connect to master in Spark Apache | <p>I'm deploying a Spark Apache application using standalone cluster manager. My architecture uses 2 Windows machines: one set as a master, and another set as a slave (worker).</p>
<p>Master: on which I run: <code>\bin>spark-class org.apache.spark.deploy.master.Master</code> and this is what the web UI shows:
<a hre... | 1 | 1,397 |
ORA-19228: XPST0008 - undeclared identifier in oracle sql | <p>I have xml string which i have mentioned below and i want to extract code from xml string. I have written below select query to extract the value from <code><ax2140:code>0</ax2140:code></code> which is <code>0</code> but i am getting error as </p>
<pre><code>ORA-19228: XPST0008 - undeclared identifier: ... | 1 | 1,458 |
Resource structure in Apache Cordova (PhoneGap) and loading the files from the filesystem | <p>We have a fairly complex JS webapp that loads different resources (HTML templates, extra JS/CSS files, JSON data, images, videos, sounds) in different ways (string, arrayBuffer, base64, binary) online in the browser (just reading no writing). Now we'd like to make changes to it to have everything work offline (resou... | 1 | 1,741 |
LSTM. Calculating RMSE using inverse_transform | <p>I'm having some trouble calculating the RMSE (root-mean-squared-error) in my LSTM model. The model fits fine and I'm getting a good loss reduction, however when trying to inverse_transform my yhat results I get the following error: </p>
<pre><code>non-broadcastable output operand with shape (399,1) doesn't match th... | 1 | 1,782 |
Error while provisioning Terraform subnet using azurerm | <p>Recently i figured out that my AKS cluster holds a subnet which is too small. Therefor im trying to add a second subnet and nodepool which is possible with the Azure CNI nowadays and then create a single proper subnet instead and migrate it back.</p>
<p>During <code>terraform plan</code> all goes well with a valid r... | 1 | 1,323 |
how to decode packet data, packet analysis | <p>I need help for my project. I not good at this. here are my server receiver. this coding is done for the physical pc. basically this coding in physical pc is to receive the data packet from the virtual receiver. It works. but somehow i had problem in decode the packet info and i noob at all this. </p>
<pre><code>#... | 1 | 3,458 |
Jquery Flexslider Add and Remove Class on Slide Change | <p>I'm using the jquery plugin <a href="http://www.woothemes.com/flexslider/" rel="nofollow">Flexslider</a>. I'm using the carousel as navigation for the slider. I'm trying to add a css class "active" to the first carousel element when the page loads, then remove the "active" class from the first element as the user ch... | 1 | 1,339 |
Functional Decomposition | <p>Hi I've wrote a program to print out a Diamond for a CS class; I've been asked to use function decomposition (global variables I think?) and I have no idea how to do this; some insight would help me out; my code isn't really pretty; but it does the job.</p>
<pre><code> public class SquareDiamondMid
{
public ... | 1 | 1,287 |
Highcharts - Turning on and off gridlines on show, hide, or legendItemClick | <p>I have a multi-series column chart with multiple y-axes. The y-axis is set such that only the first yAxis in the array has a gridLineWidth=1. The rest are zero. </p>
<p>What I'm seeing is that if I hide all the series items whose yAxis has a <a href="http://www.highcharts.com/ref/#yAxis--gridLineWidth" rel="nofo... | 1 | 1,033 |
base64 decoding to UTF-8, one character not displaying correctly | <p>I am trying to decode a string from base64 to UTF-8 for an assignment.</p>
<p>Not having programmed Java for a while I am probably not using the most efficient method, however I managed to implement a function working 99% correctly.</p>
<p>Decoding the example string in Base64: <strong>VGhpcyBpcyBhbiBBcnhhbiBzYW1w... | 1 | 3,711 |
Collapsing all other Recyclerview items when one is expanded | <p>I have a well-setup expandable recyclerview. When clicked on any item, it gets expanded to show more details. But I want a change here. When one item is clicked to expand, all other items should be collapsed. Here's my adapter code:</p>
<pre><code>public class DataAdapter extends RecyclerView.Adapter<DataAdapter... | 1 | 3,877 |
Dynamic shipping fee based on custom radio buttons in Woocommerce | <p>In Woocommerce, I have added two custom radio buttons on the checkout page and on click, I called an ajax function to add a delivery fee. </p>
<p>Here is my code:</p>
<pre><code>$(document).on('change','#shipping_method_0_local_pickup5',function(e) {
$('.woocommerce-shipping-fields').css(... | 1 | 1,103 |
"Unresolved dependency" / "import cannot be resolved" in VS Code Java language support when working with Artifactory dependecies | <p>We have a bunch of private Java dependencies published to Artifactory. We are using Gradle to build our project.</p>
<p>The issue is that VSCode Language Support for Java does not recognize the dependencies / imports in <code>build.gradle</code> or in our Java source code.</p>
<p><em>Note: All the snippets below wer... | 1 | 2,204 |
Using Django's JSONResponseMixin to respond to AJAX requests | <p>I'm working with Django & AJAX. Basically, I simply want the javascript (vote.js) to POST some data
to the Django View, and in turn, the View to respond with a JSON data to the html, so that my javascript's callback function can use that response from the server.</p>
<p>So here is my code:</p>
<p><strong>vote... | 1 | 1,094 |
In a JSP file , how to call a Scriptlet code within a javascript | <p>I have a static scriptlet code which works fine. I want to call this static code when the user clicks on a button in the html page. So is it possible to create a function in javascript, which is called when the user clicks the html button and inside the function the scriptlet code be placed?</p>
<p>Please give the ... | 1 | 1,101 |
Echo arrays in foreach loop codeigniter | <p>I've been using codeigniter for years but there's a really big gap in between so i always find myself in situations where i forgot how to do things and its almost midnight here so my brain isn't working fast. Can someone show me how to echo the array i have and explain to me how they are processed in the foreach loo... | 1 | 1,850 |
Configuration to be able to @Inject EntityManager in Seam 3 | <p>In my project I use <code>Seam 3</code> and I am having issues injecting the <code>EntityManager</code> with the <code>@Inject</code> annotation. I am pretty sure there is some kind of configuration to make sure the <code>EnityManager</code> knows which <code>PersistenceUnit</code> to use. For example with <code>EJB... | 1 | 2,054 |
RadioGroup inside an AlertDialog : only single RadioButton shown | <p>I'm trying to set up a RadioGroup inside an AlertDialog. I'm using the following construct for that.</p>
<pre><code>new AlertDialog.Builder(this)
.setTitle("Set icon for " + item_cursor.getString(1))
.setView(radioGroupView)
.setPositiveButton("Ok",
new Dialog... | 1 | 1,219 |
cryptography AssertionError: sorry, but this version only supports 100 named groups | <p>I'm installing several python packages via <code>pip install</code> on travis, </p>
<pre><code>language: python
python:
- '2.7'
install:
- pip install -r requirements/env.txt
</code></pre>
<p>Everything worked fine, but today I started getting following error:</p>
<pre><code> Running setup.py install for cryptogr... | 1 | 1,643 |
Wrong SOAP request is generated | <p>I have generated WSDL client using this <a href="https://stackoverflow.com/questions/4455195/how-to-avoid-the-need-to-specify-the-wsdl-location-in-a-cxf-or-jax-ws-generated">answer</a> for my WSDL. The stub is generated successfully however when I invoke the server I get below error message</p>
<pre><code>undeclare... | 1 | 3,544 |
Listeners and reactions in Scala Swing | <p>I've done a fair bit of searching and some trial and error in eclipse, but there seems to be a gap in my understanding of listeners and reactions when writing a GUI in Scala using Swing.</p>
<p>Does each listener get a reactions block, or do I register listeners on all components that might generate an event and re... | 1 | 2,614 |
duplicate key value violates unique constraint in django | <p>I have function for creating new user in django as follows:</p>
<pre><code>def initialize(username, password, email, title, firstName, lastName, telephoneNumber, mobileNumber, smsActive, for_company_id = 1):
sUsername = username.lower()
if len(username) > 30:
sUsername = username[:30].lower()
... | 1 | 1,146 |
Trying to get a JQuery Post to communicate with WCF, but the JSON data is not being accepted | <p>I am using the following JQuery\JavaScript code to communicate with a WCF 4 REST service.</p>
<pre><code><script>
var serviceUrl = "http://services.xiine.com/Xiine/Live/AccountService/rest/json/Login";
var userInfo = {
"IsNotEncrypted":true,
"Password":null,
"User... | 1 | 1,148 |
Navigation Property not loading when only the ID of the related object is populated | <p>I am trying to establish a many-to-one relationship. The entity that represents the “many” has a navigation property pointing back to the parent entity. It looks like this:</p>
<pre><code>public abstract class BaseEntity
{
/// <summary>
/// Key Field for all entities
/// </summary>
/// ... | 1 | 1,244 |
React pass date as props : "undefined is not iterable" | <p>I am a noob in React.
I am trying to get a variable that comes from another component.</p>
<p>this is in a js file for the MapLeaflet component</p>
<pre><code>const date = props => {
return (
props.date);
};
</code></pre>
<p>And the first component (the one where the variable is date is created) is :</p... | 1 | 1,168 |
How to prin RRD Graph data with PHP | <p>Thanks in advance for your time and effort. This is my first script with PHP and RRD's. While I was writing a short program for SNMP I came across with RRD a powerful tool for graphical output. I tried to wright a short operating script to imitate the output of a graph. I read as much as possible documentations rega... | 1 | 2,955 |
How to use an ui.Image as an ImageProvider data source | <p>I can set a standard flutter image from memory or from a file, but not an ImageProvider as required by the PhotoView framework.</p>
<p>The PhotoView framework accepts an AssetImage as a type of provider but not any of the other ImageProvider types (File and Memory). </p>
<p>What might be a workaround? I'd think th... | 1 | 1,110 |
Error running wsgi application: ModuleNotFoundError | <p>I am trying to host my local web app on pythonanywhere. [<em>Beginner to Django and web-development</em>]</p>
<p>I am facing the following error while launching the app:</p>
<pre><code>Error running WSGI application
2021-04-26 21:46:32,020: ModuleNotFoundError: No module named 'myapp'
2021-04-26 21:46:32,020: File... | 1 | 1,106 |
SAX Parser Exception | <p>getting this error:</p>
<p>SAX Parser Exception.</p>
<p>cvc-elt.1: Cannot find the declaration of element 'xs:schema'.</p>
<p>with this xsd:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"targetNamespace="http://nrg.wustl.edu/tx" xmlns:tx="ht... | 1 | 6,211 |
How to create Excel file in asp.net | <p>I want to create Excel Sheet in asp.net. I have already done code for this and it is working fine in local system but when I am testing it on server then it gives the following error.</p>
<p><strong>Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the fo... | 1 | 1,757 |
Liferay 6.2 clustering issue with multicast | <p>I am trying to cluster ehcache and lucene with Liferay 6.2 EE sp2 bundle on 2 servers with mutlicast enabled. WE have Apache HTTPD servers fronting tomcat servers using reverse proxy. A valid 6.2 license is deployed on both the nodes.</p>
<p>We user the following properties in the portal-ext.properties:</p>
<pre><... | 1 | 1,455 |
Error in C# application . System.ArgumentException: The path is not of a legal form? | <p>I am not getting why this error is coming i serach in net and not able to get answer .
Technologies using : C#<br>
Visual Studio for debugging the project</p>
<p><strong>I have a code</strong> </p>
<pre><code> private void InitializeWatcher(string sourceDirectoryPath, string watcherFilter, bool isWatcherIncludeSu... | 1 | 1,143 |
PIC Assembly function calling | <p>I'm writing a pretty basic program in PIC18 assembly. It requires that I write a subroutine to multiply two 16-bit numbers. This is what I have right now:</p>
<pre><code>;***********************************************************************
; mul_16bit: subroutine that multiplies two 16 bit numbers stored in
; ... | 1 | 1,379 |
Angular, error declaration of 2 modules,, how solve it? | <p>When I run <code>ng serve</code> the application starts.</p>
<p>However, when i run <code>ng build --prod</code>, it give me an error on <code>footerComponent</code> that says i have declared it in 2 modules. How is it possible?</p>
<p>This is the full error:</p>
<blockquote>
<pre class="lang-none prettyprint-o... | 1 | 1,200 |
Inner html add by ng-bind-html in angularjs | <p>I am generating bootstrap navigation menu by using angular directive. All of the things were Ok but when I reached finally to generate dropdown menu then I need to generate HTML dynamically. To generate HTML I have used angular ng-bind-html. The angular ng-bind-html is creating HTML very well. The ng-bind-html gener... | 1 | 1,502 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.