title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
MKMapView not showing on device
<p>I have a little problem and i dont know why is it happening.</p> <p>My map view is woking fine in the simulator but on the real device I only see the pin on the gray area and the "google" logo. It's like the images cant be loaded, it look like when you zoom in and you wait for the view to draw around the square.</p...
2
1,141
Android Service not Register
<p>I am new to android. I want to build a app which start a service when the first activity start. And that service want to stay when I leave the main activity. Because the next Activity use that service to do some operation. </p> <p>So i write some code for that. (But i didn't write process for the second activity). ...
2
3,152
android:Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'
<p>After updating android studio and several dependencies i now get this error message</p> <blockquote> <p>Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/...
2
1,281
Why do I get a Key error when calling flask session?
<p>I have a problem with users trying to register on my application (which is a Flask app deployed on Pythonanywhere with MongoDB Atlas).</p> <p>Basically when they register they receive an email with a token that they need to click on to confirm. When they click on that link they should enter the application, but inst...
2
1,759
JSF 1.2 on Websphere 7.0.0.9 : backing beans' property not found
<p>I'm working on JSF1.2 + EJB3.0 + Websphere 7.0.0.3. The whole business logic layer and Data layer (EJB 3.0) are tested and work successfully from the beginning. After I integrated JSF1.2, I got these errors when I tried to get some data from database:</p> <pre><code>E com.ibm.ws.webcontainer.servlet.ServletWrapper ...
2
6,753
Need to clear values of textboxes placed in update panel after button click
<p>I have few textboxes in an update panel. On button click the values of textboxes is inserted into the database. I want the values to get cleared once the data has been inserted into the database.</p> <p>PS: I tried to clear the values using a function after calling it once the data has been inserted. It doesn't wor...
2
2,232
Angular 4 No provider for InjectionToken ORIGIN_URL
<p>I am using Angular 4 Server side Rendering and came across the issue where all service calls need an absolute URL. </p> <p>I am attempting to use "ORIGIN_URL" as was specified in my research. </p> <p>Here is my app.module:</p> <pre><code>import { NgModule, ErrorHandler, Inject, InjectionToken } from '@angular/c...
2
1,630
WebView get maximum scroll width
<p>Hello guys i am creating epub reader and loaded the book in android webview and also made webview to move horizontally refering <a href="https://stackoverflow.com/questions/36617345/use-horizontal-scroll-in-android-webview/36628228?noredirect=1#comment67688154_36628228">this</a> but now i want to make webview to mo...
2
1,359
How can I optimize my java implementation of Held-Karp algorithm to shorten the running time?
<p>I use Java implemented Held-Karp<a href="https://en.wikipedia.org/wiki/Held%E2%80%93Karp_algorithm" rel="nofollow">TSP algorithm</a> algo to solve a 25 cities TSP problem. The program passes with 4 cities. </p> <p>When it runs with 25 cities it won't stop for several hours. I use jVisualVM to see what's the hotspot...
2
3,171
Spring MVC 3 and validation error
<p>I'm trying to create simple validation with javax based on Spring MVC. I have enable annotation-driven. I want to display errors int the form but I get 500 page error:</p> <p><strong>500 error page</strong></p> <pre><code>org.springframework.web.util.NestedServletException: Request processing failed; nested except...
2
1,075
Custom validation: returning ValidationResult(true, null) still fails validation
<p>I'm entering a value that passes my custom validation check, yet WPF still comes up with a fail message:</p> <p><a href="https://i.stack.imgur.com/ZA7aP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZA7aP.png" alt="enter image description here"></a></p> <p>Validation code parses the percentage...
2
1,045
Not receiving Push Notifications from CloudKit Subscriptions
<p>I'm not receiving Push Notifications I expect from <code>CloudKit</code> Subscriptions. </p> <p>Here's what I've done so far:</p> <ul> <li>Enabled the <code>CloudKit</code> and Remote Notifications capabilities.</li> <li>Created a 'Test' Record Type using the CloudKit dashboard.</li> <li>Created a subscription for...
2
1,140
change name of select element in HTML form dynamically
<p>I have a HTML form that accepts user input (Number of Sectors (LTE)). Based on the user input I clone some elements of the form. Upon submission of the form the hash is passed to a program. I want the names of the keys to be unique for each of the instances (created based on user input). In the current setup I am on...
2
1,827
Java video output can only be opened using Quicktime but no other media player can open it
<p>I have a program and that captures the screen and then takes those images and turns them into a movie. (Using the JpegImagesToMovies.java that was customized to work with .png) I have tried multiple extensions: <code>.mov</code>, <code>.mp4</code>, <code>.avi</code> (I am open to trying others). However, regardless...
2
15,695
Testing that a value is passed to a method that emits an event, Vue
<p>I have a Child component that renders buttons based on an array of objects passed as a prop. The value passed to the event handler is an object that looks like this: <code>{ boxes: 1, cookieQty: 4, id: 'chocChip-4', price: 12 }</code>.</p> <pre class="lang-html prettyprint-override"><code>&lt;ul class=&quot;list-ite...
2
1,366
Github - failed to sync this branch [include logs]
<p>I could successfully upload filed on Github from other computer. </p> <p>However, it failed to sync uploaded files. I am suing Windows 8, and below image appeared.</p> <p><img src="https://i.stack.imgur.com/XvCKz.png" alt="enter image description here"></p> <p>So, I entered shell and typed "git status" and below ...
2
2,916
backtracking in haskell
<p>I have to traverse a matrix and say how many "characteristic areas" of each type it has. </p> <p>A characteristic area is defined as a zone where elements of value n or >n are adjacent. </p> <p>For example, given the matrix: </p> <pre><code>0 1 2 2 0 1 1 2 0 3 0 0 </code></pre> <p>There's a single characteristic...
2
1,337
Expand time series data in pandas dataframe
<p>I am attempting to interpolate between time points for all data in a pandas dataframe. My current data is in time increments of 0.04 seconds. I want it to be in increments of 0.01 seconds to match another data set. I realize I can use the DataFrame.interpolate() function to do this. However, I am stuck on how to ins...
2
1,154
PHP SOAP client help!
<p>I have to create a PHP SOAP client that sends leads, but I have never worked with SOAP before, and my XML isn't that great, here is the code I have managed to write so far. . .</p> <pre><code>&lt;?php try { $client = new SoapClient(null, array( 'location' =&gt; "https://wwa.website.co.za/Cal...
2
2,820
Weblogic Application server logs JSP error on servlet mapping to HTML file
<p>I got a Weblogic (12c) application server and deploy an EAR (contining my WAR) to it. In the web.xml I have a servlet-mapping to redirect to a HTML page like the following:</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XML...
2
2,197
OWIN service is not visible from network
<p>I created C# console application using <code>OWIN</code> and I have issue with visibility of application outside of localhost. For example if I made POST request with localhost in URL everything works fine, but when I replace URL in postman to my global IP address it stopped working. Port is opened, I can ping serve...
2
1,216
how to submit form using $.post without page redirection when bootstrap validation is success?
<p>using <em>bootstrap validator</em>; Validation On Success submit form and trying to write response in <code>#announcement-content</code> div</p> <p><strong>Issue: On Validation Success when <code>#announcementpublishbtn</code> Submit button click Form Posted using <code>$.post</code> and its redirected to <code>#an...
2
2,014
Two onActivityResults in one activity
<p>Do you know how to handle two <code>onActivityResult()</code>s in one activity?</p> <p>I need to use my camera and search for my photos in one activity.</p> <pre><code>public class MainActivity extends AppCompatActivity { public static final int REQUEST_CAPTURE = 1; Button button_Vyber_Fotku, but...
2
1,228
No mapping found for HTTP request with URI + Spring MVC
<p>I am learning Spring MVC but got an issue on my first application and I am not able to resolve it. I checked all articles available but still, I guess somewhere I am making some mistake.</p> <p>Will you please able to help me to fix this?</p> <p><strong>Web.xml</strong></p> <pre class="lang-xml prettyprint-overri...
2
1,075
adb shell dumpsys activity activities shows two instances of single task in separate stack
<p>I have a main activity having intent with CATEGORY_HOME to behave like a launcher. It also has CATEGORY_LAUNCHER so that user can access from App Drawer. Here is the main activity:</p> <pre><code>public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceStat...
2
9,120
CallOut popup doesn't position itself with zoom in/out
<p>I have an Arcgis map with pins.When i tap on a pin i am showing a callout(popover)over the pins which works perfectly fine.But when i zoom in/out the map, callout does't position itself with respect to the pin on the map.How can i always show callout on top of pin while zooming in/out.</p> <p>tap on pin and callou...
2
1,967
Python matplotlib error: Supplied function does not return a valid float
<pre><code>from __future__ import division import functools import warnings import numpy as np import scipy as sp from scipy import integrate from numpy import exp, pi import matplotlib.pyplot as plt warnings.simplefilter("ignore", np.ComplexWarning) def legendrePoly(a,n): def integrand(t): return ( ((a...
2
1,244
NgRx/Effects not triggering the Reducer
<p>I know the title of the question is vague, but unfortunately I don't exactly know what is causing my issue so please bear with me.</p> <p>I just started working on a small Angular 8 task, which uses NgRx/Store and NgRx/Effects as well. I am fetching an array of <code>Book</code> objects using a <code>getBooks</code...
2
1,596
Python Plotly Dash TypeError: String indices must be integers
<p>I am newbee to python Dash. I need help regarding how to use Dash Core Components clickData to update the graph.</p> <p>I have made a map and upon clicking its marker, it should display the graph of particular Network operator. However, whenever I click the graph, it displays that string indices must be integ...
2
5,501
Cakephp with ajax post request get error
<p>I have in Cakephp a form which is loaded by an ajax request. After sending the form via another ajax request, the magic is done in the controller and the controller is sending back new html code. So far so good. It works pretty well as long as I send a get request. If I change the ajax script to force a post request...
2
4,325
state machine for serial protocol
<p>i am writing a state machine in c for a serial protocol. My packet format looks like this.</p> <p>delim0 interface command_H command_L length_H length_l payload checksum delim1</p> <p>edit:my question is how to write a c code for computing the payload and checksum using this state machine. </p> <p>i am ne...
2
1,259
How to start market search of my app
<p>I'm trying to launch the page of my app in android market from my activity. I am novice and maybe I'm making wrong coding this is what I wrote in the note.class </p> <pre><code> import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.Menu; im...
2
8,246
No callbacks being called after Camera.takePicture()
<p>After following the steps given by the Android API documentation, I am not getting any callbacks after calling Camera.takePicture() (no shutter callback or image callback). I have the correct permissions declared in the manifest, I am not getting any exceptions, and I am able to use this code for recording videos. ...
2
1,554
Removing foreign accented characters before saving an Order in Magento
<p>I have a problem wherein my Orders in Magento sometimes have shipping and billing address and name with foreign accents like àòèù. I want to convert them to English alphabets aoeu before saving the order in Magento.</p> <p>I have the php code for it, which is a function </p> <pre><code>public function removeAccent...
2
1,747
How to use two databases/datasources in Spring and Hibernate
<p>I need to use two databases in my standalone application, one local HSQLDB and another remote MySQL. I use Spring 3.1.2, Hibernate 4.1.7. So far I managed to use only HSQLDB, this is how my DAO and configurations look like:</p> <pre><code>@Transactional public abstract class HibernateDao&lt;T, ID extends Serializab...
2
1,245
Login to GUI application
<p>I am not familiar with python and creating user login entry window to login to the another window. The problem is that how can I make sure that it is logged in after entering correct username and password. I could go to the window that I want to login by entering the username and password but I think the coding is ...
2
2,233
Not able to connect to database through java application
<p>I am not able to connect to database(<code>oracle 11g</code>) from my <code>java</code> application. I am getting <code>runtime</code> errors. </p> <p>I have already created the table used in my program. i am using eclipse ide here is my program:</p> <pre><code> package db; import java.sql.*; import jav...
2
2,110
Redirect React Component when submit form express
<p>I'm trying to redirect to a React Component when submit the form with express. This is my code:</p> <p><strong>Express.js</strong></p> <pre><code>app.use(bodyParser.urlencoded({extended: true})) app.use(express.static(publicPath)); app.get('*', (req, res) =&gt; { res.sendFile(path.join(publicPath, 'index.htm...
2
2,057
Unable to observe livedata set in viewmodel from activity
<p>I am a newbie Android developer, and I am trying to observe a boolean set in the ViewModel from its parent's activity. I can observe its initial state as soon as the app launches, but any change applied later on doesn't seem to trigger the observer (i.e. when I switch the fragments).</p> <p>Here is the code for my V...
2
1,050
Error: passport.initialize() middleware not in use what order to make calls?
<p>I have the follow - Generated initially by the Visual Studio Node Tools, uses Express and Jade as the client </p> <pre><code>/** * Module dependencies. */ var express = require('express'); var fs = require('fs'); var routes = require('./routes'); var user = require('./rou...
2
1,539
Access XML import: Add foreign key to child table
<p>I have An XML File that I want to import in MS-access. The problem is that it has multiple nested nodes which means access creates a new table for every different type of node. Now the problem is we cannot create any relationship between different tables, We can't even decipher their relationship in the database. Is...
2
1,421
Maven-src-plugin & Java 11 - unable to scan class files:
<p>I'm trying to upgrade my project setup to run on Java 11 &amp; Sling 11. For this purpose I have been trying to upgrade my Maven compiler to 3.8.0 but this seems to be causing issues with the maven-scr-plugin; making it unable to scan a simple class containing only an enum.</p> <p>The error I get when trying to bui...
2
16,309
Java Newbie: How to use Java Agent From the Command Line for Instrumentation
<p>I am attempting to load a java agent to use <code>java.lang.instrument.Instrumentation</code> to measure the size of an object. Here is my Java:</p> <pre><code>package com.example.memory.usage; import java.lang.instrument.Instrumentation; import java.util.*; public class MemoryUsage { public static void ma...
2
2,470
Swift Twilio Chat iOS 1401 unable to connect to twilio service
<p>I successfully integrate <code>Twilio Cha</code>t to <code>Android</code> and now I'm trying to integrate it to <code>iOS</code> using <code>Swift 3</code>.</p> <p>First things to say:</p> <ul> <li>I followed instructions as frameworks in <code>Embedded libraires</code> and <code>libstdc++</code> to Linked Libs an...
2
4,197
LogicApp - The template language function 'contains' expects its first argument 'collection' to be a string. The provided value is of type 'Null'
<p>I have created an Azure Logic App with the Azure Service Bus Queue Trigger (When a message is received in a queue (auto-complete)) for re-processing dead letter queue messages.</p> <p>In the same Logic App, I’m validating the dead letter message with <strong>DeadLetterReason</strong> and <strong>DeadLetterErrorDescr...
2
1,423
How to register Generic type with Unity container
<p>I am struggling to inject a generic type repository into my service class using Unity. At lease, I think this generic repository is what is causing the trouble. Can somebody please point out what am I doing wrong?. Please bear with me since I am fairly new to Unity. Firstly, here is the error message I receive the...
2
2,172
problem with a relationship ManyToMany between entities
<p>I have a problem with a ManyToMany relationship between entities. Adding works very well but I can't remove a Commune. </p> <p>Here are my entites:</p> <pre><code>public class Tuteur implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType...
2
2,450
Downloading image via libcurl
<p>I try to download image via libcurl (I know other options to download, but I need to get it done via libcurl)</p> <p>When I download &amp; save the image, I can not open it. The file size is different as when downloading file myself.</p> <pre><code>using System; using System.Windows.Forms; using SeasideResearch.Li...
2
1,068
Two different recipes names providing same package with different versions. How can one force a default one?
<p>I have my Yocto environment (on meta-oe/recipes-test) the old <code>gmock</code> and <code>gtest</code> libs.</p> <p>Nowadays I want to update it to newest release, although both libs were merged into a new one called <code>googletest</code>. To achieve that I'm adding the new recipe for <code>googletest</code> <a h...
2
1,253
PCAP headers, obtaining UDP info
<p>I'm trying to get the UDP information from a packet capture and I'm confused where that info lies. I know the Ethernet Header is 14 bytes and the IPv6 header is 40 bytes. Also, the UDP source port is the first 2 bytes in the UDP header. Therefore, it should be 14 + 40 - 1 = 53. So the UDP source port should be bytes...
2
1,559
Socket IO with React Native and Headless JS, can't kill it
<p>This is mi first post so I will try to show my problem in a clear way and I'm not an android developer with a basic kownledge of java.</p> <p>I'm trying to run a socket IO client in my react-native app, as I inquire in order to achieve this I use Headless JS task to have this socket running in the background and ev...
2
2,803
how to check whether tts has finished speaking?
<p>I've created a Text To Speech android application. I want to change button text from <strong>speak</strong> to <strong>stop</strong> and then again to <strong>speak</strong> when it finishes speaking.</p> <p>It has two buttons- <strong>clear all</strong> and <strong>speak</strong>. <strong>speak</strong> should cha...
2
1,208
Fatal Bad Object Error on npm install
<p>I am doing a <code>npm</code> install and getting the following error :</p> <pre><code>npm ERR! git rev-list -n1 8d27c06c2903538cd740a80edeae548922d057a5: fatal: bad object 8d27c06c2903538cd740a80edeae548922d057a5 npm ERR! git rev-list -n1 8d27c06c2903538cd740a80edeae548922d057a5: npm ERR! git rev-list -n1 e92ca1c2...
2
2,331
How to deploy ARM template with user managed identity and assign a subscription level role?
<p>The ARM template below is supposed to create the following resources:</p> <pre><code>resource group - user managed identity - subscription level Contributor role assignment </code></pre> <p>Currently the deployment is failing with the error <code>&quot;error&quot;: { &quot;code&quot;: &quot;ResourceGroupN...
2
2,247
Custom CSS dropdown to focus on dropdown elements
<p>I am trying to get the dropdown elements to focus while the list is in open state using CSS. Right now, the autofocus only selects the All, then closes the list dropdown. I want it to focus on cheese in an open state and focus tab through Toast and any components that could be after. I have tried placing tabIndex o...
2
1,724
Trying to understand clocks and timeouts in UPPAAL
<p>I need to model a system as a timed automaton with UPPAAL and I'm really puzzled with the way UPPAAL manages clocks and guards according to elapsed time: it looks like UPPAAL just ignores clock guards! I suppose my problem is that I'm approaching modelling from a very "physical" approach, and so I'm facing this kind...
2
1,512
Netlink giving kernel panic
<p>I tried <a href="https://stackoverflow.com/a/17606674/2689414">this program</a>. This program send "hello" to kernel and kernel replies "hello" to user space again for one time.</p> <p>My requirement: user has to send "hello" and have to receive message for every 2 seconds.</p> <p>What I have tried.</p> <p><stron...
2
1,680
Triggers not updating
<p>Here is the psuedo code for what I want to do</p> <pre><code>IF NOT ISDIRTY THEN VISIBILITY EQ VISIBILITY.COLLAPSED IF ISDIRTY AND ISVALID THEN VISIBILITY EQ VISIBILITY.VISIBLE AND COLOR = GREEN IF ISDIRTY AND NOT ISVALID THEN VISIBILITY EQ VISIBILITY.VISIBLE AND COLOR = RED </code></p...
2
1,150
Combine sub arrays in PHP
<p>I am trying to combine array(s) by key. So all sub arrays that start with the same sub-key will be combined into one sub array. Also, I want to keep the smallest value of the matched values.</p> <p>Currently this is what I have:</p> <pre><code>$statement = Array ( [662_0] =&gt; Array ( [0] ...
2
1,797
Zend Framework - Include JS does not work on new System
<p>I have a problem with ZF on my new server during JS file inclusions. Including external JS (google api) is no problem. It seems, that zf want to load the JS files not relative. </p> <p>The errormessage, displayed by FireBug in the Srcipt Tag of the html Console:</p> <pre><code>&lt;script src="/javascript/helper.js...
2
1,525
How to load .html files in the Home page with JQuery?
<p>I have created single page application. I used ColdFusion 2016, JQuery, JavaScript, HTML5 and Bootstrap 3. I tried to keep it simple and so far everything is running just fine. One thing that I would like to change is the way <code>.html</code> files are loaded in my application. Here is the current code example:</p...
2
2,412
paging without gridview in asp.net using vb
<p>I was searching for pagination example in asp.net, by which i can make the solution for my project online exam, in which user can navigate to the next and previous question and also he/she can directly move to the particular question. I googled this query, and i got the solution paging using gridview. Suggestion and...
2
1,418
bind data to the multiple radio buttons in angular 2
<p>I have rating star inputs made with the radio buttons. I can add this rating perfectly but when I want to show it on the page or edit it shows me only 1(1 start is highlighted of 5) even if the rating is 5. As I understood angular binds rating to the 1 star only. How can I bind it properly to all the stars??</p> <p...
2
1,138
Get form data in HTTP call using angular
<pre><code>This is how the authentication is supposed to be. </code></pre> <p>POST <a href="https://DomainName/api/v1/authentication?username=" rel="nofollow noreferrer">https://DomainName/api/v1/authentication?username=</a>{username}&amp;password={password}.. this is the typescript authentication call code</p> <pre>...
2
1,230
NSSortdescriptor ineffective on fetch result from NSManagedContext
<p>I'm trying to sort my NSFetchRequest result using a NSSortdescriptor using a key pointing to a NSDate value. My fetch results come out totally random for no clear reason.</p> <p>The NSManagedObjectContext I'm using is updated with a save from a nested child context created on a subclass of NSOperation. I know all t...
2
1,028
'QuerySet' object has no attribute 'filter_on_search' Python Django
<p>Can anyone please suggest me why I am getting this error. </p> <p>Following is model with Manager</p> <pre><code>class Customer(models.Model): customer_id = models.AutoField(primary_key=True) customer_name = models.CharField(max_length=256) customer_mobile = models.CharField(max_length=10) cu...
2
1,852
Customizing Grid of Kendo UI
<p>By default grid of Kendo shows values of columns but I'd like to customize it. For example I want to show an icon for each value of one column. I have a column in my grid that shows the status of activation or inactivation.Instead of showing "true" or "false", I want to show an icon that is proper for it. I've used ...
2
1,613
Sonar not showing violation using custom rules?
<p>I am trying to integrate Sonar for code review and analysis . I am working in typo3, so I added the following rules in <code>rules.xml</code> </p> <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; &lt;rules&gt; &lt;rule key="TYPO3.Commenting.FunctionDocComment.TagIndenst" priority="MA...
2
3,428
Why does deploy:assets:precompile fail with the error uninitialized constant RAILS_ENV?
<p>The deploy (to both staging &amp; production, on the same server) errors out with:</p> <pre><code> triggering after callbacks for `deploy:update_code' * executing `deploy:assets:precompile' * executing "cd /var/www/staging/releases/20130215205558 &amp;&amp; bundle exec rake RAILS_ENV=staging RAILS_GROUPS=ass...
2
1,585
C++ boost tcp-server
<p>I tried to create an tcp-server with the boost libs. I basically took example code from boost(the whole code was in 1 file there) and split it up into a class.</p> <p>Seems like something went wrong there and i dont really know whats missing.</p> <p>The main error is at the end of "tcp_server.cpp" i put the error ...
2
1,066
How to avoid the circular referencing asp.net core mvc [HttpPost("add-recipe")] web api
<p>My project is Application with Recipes (cooking) .NET Core 5.0</p> <p>And i have problem with adding a new recipe (HttpPost) web api</p> <p>On postman my response is:</p> <p><em>&quot;A possible object cycle was detected. This can either be due to a cycle or if the object depth is larger than the maximum allowed dep...
2
1,477
ITINERARY REQUIRED TO COMPLETE TRANSACTION after PassengerDetails Request
<p>Using Sabre SOAP API Orchestrated Air Booking. After SOAP EnhancedAirBook (version 3.2.0) request/result we are sending a PassengerDetails (version 3.1.0) request and we get the "<strong>ITINERARY REQUIRED TO COMPLETE TRANSACTION</strong>" message in results (see xmls below). How can we get the PNR after in the Pass...
2
5,427
Puppet lookup fails with expects a Sensitive value, got String
<p>I'm attempting to implement encrypted values in yaml in Hiera 5 to inject passwords securely into Puppet (enterprise) 5.3 via automatic lookup. There's excellent guidance from the <a href="https://puppet.com/blog/my-journey-securing-sensitive-data-puppet-code" rel="nofollow noreferrer">Puppet blog</a> and <a href="h...
2
1,114
Maven dependency in Mule project is not included in the build
<p>I have installed a JAR in local maven repository (because no longer available in Mule repository) and added as dependency in POM file</p> <pre><code> &lt;dependency&gt; &lt;groupId&gt;org.mule.modules&lt;/groupId&gt; &lt;artifactId&gt;mule-module-rest-router&lt;/artifactId&gt; &lt;v...
2
6,678
Login in Spring security redirects to error Thymeleaf and Java based Configuration
<p>I am trying to implement Role based Authentication on my Spring Application. However, I get Redirected to <a href="http://localhost:8080/login?error=true" rel="nofollow noreferrer">http://localhost:8080/login?error=true</a> even if the credentials are right and hibernate fetches the login credentials without an issu...
2
2,818
Invalid JSON primitive On Post
<p>I know this question has been asked multiple times in Stakoverflow.But none of the solution is helping me .Can anyone tell me what had been done wrong </p> <p>I have a Controller Action as below</p> <pre><code>&lt;HttpPost()&gt; Function WFUserEdited(ByVal userdetails As userdetails) As ActionResult ...
2
1,252
Jackson won't serialize null with a custom Serializer
<p>I have a custom bean serializer that I'd like to apply, but when I do, Jackson no longer includes null properties.</p> <p>The following code reproduces the issue:</p> <pre><code>import java.io.IOException; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.core.JsonGenerator; i...
2
2,211
How to share data between sibling vue.js components?
<p>Can someone help me share data between vue.js components? For example, I have a Table component that contains two components: a button and an input box. When I click on the button component, I want it to return data of the row it is in, including data in the input component. Right now, I am able to click the button ...
2
1,652
Unable to setup basic authentication with jdbc realm and Glassfish
<p>I'm fighting with a Glassfish v3 and a very simple JAX-RS service (taken at<a href="http://www.vogella.de/articles/REST/article.html" rel="nofollow noreferrer">http://www.vogella.de/articles/REST/article.html</a></p> <p>What I want to achieve is setup basic http authentication for all the resources. If wish when a ...
2
2,785
d3 v5 use nested values when scaling axis
<p>I have the following code that nests my data based on region and date. The problem I am having is that I don't know how to define yScale to dynamically draw the axis so that the max sum from the nested data is returned (the max val of the nested data is higher than the max val in the dataset bc it is aggregated). Th...
2
3,597
Icon in Task Bar for ClickOnce Application Vanishes when App Starts
<p>After logging in to our ClickOnce app, the icon in the task bar vanishes. </p> <p>Some details: This app, which we'll call ThisApp, was originally written in .NET 2.0 (VB) and has been migrated forward to .NET 4.0 But this issue has been persistent all along the way. In Windows 7 (and I think it did the same thi...
2
1,223
Using Primefaces 5, should I be able to *dynamically* build a simple p:menu containing only menuitems? ...i.e., without submenu(s)?
<p><strong>QUESTION:</strong> Using Primefaces 5, can I dynamically build a simple p:menu containing only menuitems - i.e., without submenu(s)?</p> <p>For example, I am able to successfully implement this static menu...</p> <pre><code> - - - &lt;h3&gt;Static p:menu (i.e., no submenus) - WORKING &lt;/...
2
1,292
VisualStateManager change background of templated control when HorizontalAlignment = Stretch
<p>I am using this excellent <a href="http://shemesh.wordpress.com/2010/07/10/silverlight-gridsplitter-with-a-collapse%C2%A0button-%E2%80%93-best/" rel="nofollow noreferrer">CollapsibleGridSplitter</a> in a silverlight application. The control template for this is below. </p> <p>What I would like to do is when the spl...
2
2,628
Double for loop over Pandas df
<p>I have a dataframe containing a column of subreddits and another column containing authors who have commented in that subreddit. Here is a snapshot:</p> <pre><code>subreddit user 0xProject [7878ayush, Mr_Yukon_C, NomChompsky92, PM_ME_Y... 100sexiest...
2
3,578
LoadError: incompatible library version - nokogiri
<p>I am facing below error when I tried to </p> <p><code>run rake db:migrate</code> </p> <p>Log:</p> <pre><code>rake aborted! LoadError: incompatible library version - /home/ubuntu/.rvm/gems/ruby-2.3.1/gems/nokogiri-1.8.0/lib/nokogiri/nokogiri.so /home/ubuntu/.rvm/gems/ruby-2.3.1/gems/nokogiri-1.8.0/lib/nokogiri.rb:...
2
1,510
two rich:ajax conflict problems (in 3 rich:select controls)
<p>I have 3 rich:select controls which have id select1, select2, select3.I want to click on select1, control “select2” will be rendered, and when I click on control select2, select3 will be rendered, like this. I made my application by netbeans 7.0.1, and use framework jsf 2.0, and richFaces 4.2.0. </p> <p>My solution...
2
2,025
Replace ListFragment
<p>I am using a ListFragment for displaying a list from a database in my activity. I have included a search function. Unfortunately the "old" ListFragments seem to remain in the background and the ListFragments containing the result of the query are displayed on top of it. How can I avoid, that the old ListFragments ar...
2
1,332
Got this error when tried a code using dagger hilt, Error:[Hilt] java.lang.reflect.InvocationTargetException (no error message)
<p>I tried a code to make a currency converter in native Android using an API. I have used Retrofit, Dagger-Hilt and the MVVM architectural design pattern. After doing all the coding ,this is the error I got. The API fetches live currency exchange rates,which were converted from json to kotlin and used.</p> <p><strong>...
2
1,510
how to add submenu under submenu dynamically using jquery?
<p>i need to create following menubar structure dynamically using jquery. </p> <pre><code>-Setting --System ---user ---group ---acl --Vresource ---vms ---vnet-conf --Configuration ---template ---image </code></pre> <p>in my case system's submenu{user,group,acl} falls under setting instead of System menu. </p> <p>i'v...
2
1,487
How to change the Image URL of an ImageButton after clicking them based on conditions?
<p>I am working on seating layout for a bus booking system using ASP.NET (C#). I want to allow user to select only one seat in a session.</p> <p>I have a list of Image buttons. I want that when I click a button then that click event should change its image URL, let's say from "aseat.png" to "sseat.png". But when I cli...
2
1,135
How to zoom in and Zoom out bitmap in android canvas from multiple bitmap?
<p>I have created <code>bitmap</code> on android canvas and I want zoom-in and zoom-out I am storing images on <code>Arraylist</code> . It's zooming correctly but when there is multiple <code>bitmap</code> all the <code>bitmap</code> zoom-in and zoom-out. I want to Zoom only Specific <code>bitmap</code> which I touch. ...
2
2,277
Send E-Mail with output log and success status in Python
<p>I want to send an E-Mail automatically after each script run, whether it was successfull or not. The E-Mail should include logs and in case of an error the stack trace. The subject should contain a postfix that tells whether there the run was with errors (&quot;ERROR&quot;) or without errors (&quot;SUCCESS&quot;).</...
2
1,373
import bean resources based on spring profiles
<p>Below is the code for servlet-context.xml in my spring project. I want to import demo.xml file in case the profile is prod and demo-test.xml if the profile is test.</p> <pre><code>&lt;beans:beans xmlns="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
2
1,057
Why is my T-SQL Query returning inconsistent output?
<p>I am using SQL Server 2014 and I have the following T-SQL query:</p> <pre><code>USE MyDatabase GO SELECT a.ReservationStayID ,c.PMSConfirmationNumber ,c.[PropertyCode] ,a.StayDate ,c.[MTH] ,1 AS 'RN' ,a.PackagePlanCode ,c.[Market Segment Code] ,c.[Status] ,c.[CurrencyCode] ...
2
3,399
A lot of calls to renderscript produces error "Created fewer than expected number of RS threads"
<p>I have an application with a spinner with lots of items and an image.</p> <p>Every time a user choises an item of the list, a number (1 to 5) of renderscript scripts are performed to change image's pixels.</p> <p>After making around 30 choices the application crashes with error.</p> <p>Here is the stack trace.</p...
2
2,020
Liquibase CDI unsatisfied dependencies for type DataSource
<p>I am migrating from JBoss 7.1 to Wildfly 8. When I try to deploy module, which contains Liquibase scripts for DB I am getting following error:</p> <pre><code>at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.0.Final.jar:1.2.0.Final] at java.util.concurr...
2
2,380
text overlapping at start of pdf when table row exceeds the length of the page
<p>I am attaching the pdf1.php which contain the code for rendering the data to a pdf. Data is represented in tables dynamically through database. Since the data is dynamic the table rows may extend to a new page which leads to the overlapping of text at the start of the pdf. I tried placing the table row in a div but ...
2
15,563
RtAudio - Playing samples from wav file
<p>I am currently trying to learn audio programming. My goal is to open a wav file, extract everything and play the samples with RtAudio.</p> <p>I made a WaveLoader class which let's me extract the samples and meta data. I used <a href="http://soundfile.sapp.org/doc/WaveFormat/" rel="nofollow noreferrer">this</a> guid...
2
1,502
Showing categories and lowest price with Laravel
<p>Trying to show all categories from database and based of products in category to show lowest price. So what I have so far is: Model <code>Categories.php</code></p> <pre><code>class Categories extends Eloquent { protected $table = 'category'; protected $primaryKey = 'category_id'; public $timestamps = f...
2
1,025
Android App Widget with SQlite query
<p>I'm working on an App Widget which is being updated by a service, started from the onUpdate() section of the AppWidgetProvider class. The problem is that whenever I use Cursors inside the widget service, the views are not being added to the widget. If I simply replace the sql query/result for a string, it works.</p>...
2
2,149