title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Android wait for another activity result - it didn't work | <p>How to wait to another activity result in android.
I have written the following code but after the activity finishes, it always goes to onCreate() method.</p>
<p><strong>I have tab activity.From one tab activity , i called another activity, that is popup window......After finished popup window It should go back to... | 1 | 2,016 |
Getting Error While running dynamic web project in eclipse | <blockquote>
<p>A child container failed during start
java.util.concurrent.ExecutionException:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/AdjunctConnectionWSFax]]
at java.util.concurrent.FutureTask.report(Unknown Sourc... | 1 | 2,802 |
Variable speed of response with jQuery Ajax requests | <p>When I perform an asynchronous request with jQuery Ajax, sometimes the response is returned quickly in 800 ms, somtimes it's slow and the response is returned in 2.50s (avg), and sometimes it hangs, and just shows the loading images. I'm not sure if it's because of my PHP code or jQuery Ajax code. I send some values... | 1 | 1,084 |
Error 403 when feign client makes POST/PUT request to micro-service | <p>I've got a legacy app in java that can't use spring cloud. It uses a feign client to access a microservice throug the gateway.</p>
<p>Gateway and service are generated by jhipster 5.7.2 with OAuth2/OIDC option.</p>
<p>In my client, the a RequestInterceptor calls keycloak in order to get a token (direct access grant)... | 1 | 2,101 |
Procedure or function has too many arguments specified winform c# | <pre><code>SqlCommand cmmd = new SqlCommand("INSERT into Vows(MemberID, VowAmount, VowDate, Description) Values (@MemberID, @vowAmount, @vowDate, @vowDesc)", con);
SqlCommand storedprocedure = new SqlCommand("UPDATEINCOME", con);
storedprocedure.CommandType = CommandType.StoredProcedure;
storedprocedure.Parameters.Add... | 1 | 1,193 |
how to create a list view using action bar tabs with fragment? | <p>i am creating a simple app that allow user to login then display the action bar that contain three tabs that each one of it contains a list using list view .</p>
<p>the problem is that i do not know how to build a list view inside fragments can anyone help me ?????</p>
<h1>AndroidNavigationTabsActivity</h1>
<pre>... | 1 | 2,583 |
Apache CXF client for claims-mode xRM (Microsoft Dynamics CRM 2011)? | <p>I'm trying to create an Apache CXF (2.7.5) client for the Microsoft Dynamics CRM 2011 ("xRM") web services (which I understood to be based on WCF 4) where CRM is in claims mode, so that the WSDL for this web service points to an STS (in my case AD FS 2.0).</p>
<p>My main question: <strong>Are there any tutorial, su... | 1 | 2,177 |
&& and || in while loop problems | <p>I have been assigned to make a dice game of high or low for my intro to java course. I have all the methods completed, however, I need to use a while loop so that I can continue to play the game until my cash hits 0 or if I bet 0 dollars. I do not want to use a break if I do not have to. So my question is what can I... | 1 | 1,592 |
Entity Framework Forcing Distributed Transaction | <p>I am unable to get the following code that only touches a single database using a single context to run without escalating to MSDTC, and is throwing an exception on context.SaveChanges():</p>
<pre><code>public void DeleteGroupDetails(int groupId)
{
// Note there is no ambient tx
var thisIsNull = Transaction... | 1 | 6,705 |
No mapping found with @RestController an @RequestMapping | <p>I have the following Controller</p>
<pre><code>@RestController("/person")
public class PersonController {
@Autowired
PersonService personService;
@RequestMapping(value = "/list",
method = RequestMethod.GET,
produces = MediaType.APPLICATION_JSON_VALUE
... | 1 | 3,534 |
Communicating between Pure Data and MATLAB using OSC | <p>I'm trying to receive a message sent over OSC from Pure Data (or Max/MSP) to MATLAB.</p>
<ul>
<li>I'm able to send OSC messages from Pure Data to Pure Data</li>
<li>I can send messages from MATLAB to MATLAB</li>
<li>I can even send messages from MATLAB to Pure Data</li>
<li>...I'm really struggling to get Pure Data... | 1 | 1,167 |
SSLHandshakeException due to missing TLS cipher suites in Domino JVM | <p>In my XPages application the following exception is raised when I try to open a HTTPS connection to another server which only allows TLSv1 and newer (no SSLv3):</p>
<pre><code>javax.net.ssl.SSLHandshakeException: No appropriate protocol
</code></pre>
<p>Setting <code>javax.net.debug=ssl:handshake</code> provides t... | 1 | 1,097 |
angular-devkit/build-angular version 0.13.4 - configuration.output has an unknown property 'futureEmitAssets' | <p>I just upgraded a project from angular-devkit/build-angular v0.11.4 to v0.13.4. I now receive the following error:</p>
<pre><code>Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.output has an unknown property 'futureEmitAss... | 1 | 3,148 |
Large file upload when using ssl and client certificates (uploadReadAheadSize) but dont want all data to be readahead | <p>I tried to search the internet/stack overflow and couldn't find any relevant answer that worked for me.</p>
<p>I have an asp.net web api2 application (uses ssl only).
I'm trying to allow large file upload (up to ~36mb) but unless i change uploadReadAheadSize to readahead this size I get an error from IIS that the r... | 1 | 1,476 |
pip install for Python 3 in virtualenv on Mac OSX? | <p>I can <code>pip install</code> and <code>import</code> just about any package on my Mac in a virtual environment, doing the following:</p>
<p>Setting up the virtual environment:</p>
<pre><code>Last login: Mon Oct 3 18:47:06 on ttys000
me-MacBook-Pro-3:~ me$ cd /Users/me/Desktop/
me-MacBook-Pro-3:Desktop me$ virtu... | 1 | 1,030 |
mysql AS clause | <p>I have written a query, and from the date of birth field, and I working out the age of a person and then using <code>AS age</code> to create an age field.</p>
<p>My question is, is it possible to the match again that age field?</p>
<p>Something like this,</p>
<pre><code>SELECT `candidates`.`candidate_id`,
... | 1 | 1,053 |
How to receive Push notification message in iphone app? | <p>I created .pem file following steps</p>
<ol>
<li>Log-in to the iPhone Developer Program Portal. </li>
<li>Choose App IDs from the menu on the right.</li>
<li>Create an App ID without a wildcard.</li>
<li>Click the Configure link next to this App ID and then click on the button to start the wizard to generate a new ... | 1 | 1,191 |
Accessing MySQL database using Python over SSH Tunnel port forwarding | <p>I have MySQL database on a remote server and before accessing it I would need to do port forwarding using ssh tunnel. Without python I usually execute the below command and type in my password in the shell. Once authenticated I access the database in mysql workbench by connecting to localhost:3306. I do everything f... | 1 | 1,268 |
Creating a Count Up timer to Break in java | <p>I'm trying to implement a timer based scoring system for a puzzle application i am writing.</p>
<p>Can someone provide me with an example case of creating a JLabel or Panel in swing, containing a visibly counting timer (in seconds from 0), which stops, on a call from a method. And returns its value.</p>
<p>Example... | 1 | 1,268 |
How do I change the text color in Swift? | <p>I found the indicator function on Stackoverflow. I like it too, but I couldn't change the text color, actually, I change the code that is blackColor() but it doesn't work. How do I fix it? I want to see text and indicator are black.</p>
<pre><code>class ProgressHUD: UIVisualEffectView {
var text: String? {
... | 1 | 1,124 |
How can my android app draw a line or tracks of my movements with gps on google map | <p>I'm developing an android app that can trace the users locations and movements, using GPS and draw and save a line or the tracks that can be sent to a receiver who can open and see the saved tracks on Google map. </p>
<p>I already have a working code that can send the location but the receiver can only see the sing... | 1 | 5,178 |
Fail to Render Line Chart in EXTJS 4 if Using Ext.data.Store with Proxy | <p>I have problem rendering Line Chart in EXTJS 4. I have Viewport that contain accordion Layout. In that layout, I create very simple Chart.</p>
<p>Here is my code:</p>
<pre class="lang-js prettyprint-override"><code>var chartBox = Ext.create('Ext.chart.Chart', {
width: 500,
height: 300,
style: 'backgrou... | 1 | 1,512 |
How to search with multiple filter using criteria builder | <p>I would like to make a multiple filter in java, I use Spring Boot. And my query are written using criteria.</p>
<p>SearchApp.java:</p>
<pre><code>@Entity
@Table(name = "searchapp")
public class SearchApp implements Serializable {
@Column(name = "code")
private String code;
@Column(name = "release")
private String... | 1 | 1,289 |
JAXB HashMap unmappable | <p>I want to convert a HashMap in a POJO class to XML. I tried using the XmlAdapter but it results in only the key and value pairs of the HashMap being the attributes of the XML Elements. I need the Key to be the Element itself and the value of the HashMap to be the value of the element. For instance, I need the follow... | 1 | 1,659 |
How to send ajax callback param with Primefaces? | <p>I'm trying to send an Ajax callback with RequestContext but I can't get it work.</p>
<p>I tried the <a href="http://www.primefaces.org/showcase/ui/dialogLogin.jsf" rel="nofollow">Primefaces login demo</a>, but "args.loggedIn" in the javascript function is always undefined, whereas "args" is an Object. </p>
<p>Her... | 1 | 1,499 |
How to change the default table/model (User) for JWT authentication in Laravel and Dontrine? | <p>I am working on a project that was built on <code>Laravel 5.4.24</code> and integrated with <code>Symfony</code> component and <code>Doctrine</code>. I need to authenticate staffs on request from <strong><code>site_staffs</code></strong> table <strong><code>(SiteStaff model)</code></strong> and return the token.
<s... | 1 | 1,120 |
ImageView loading high resolution image as very poor quality | <p>I am using a <code>ListFragment</code> to display a <code>ListView</code> of Lazy Loaded <code>ImageView</code> objects using the <a href="https://github.com/nostra13/Android-Universal-Image-Loader" rel="nofollow noreferrer">Android Universal Image Loader</a>. The correct data is coming from my datasource and I have... | 1 | 1,115 |
Calling Stored Procedure w/ Output Parameter within Stored Procedure - Invalid Column Name | <p>I have written a stored procedure that uses an output variable. The stored procedure runs fine, I know that for a fact. I can run the stored procedure using the snippet below</p>
<pre><code>DECLARE @return_value int,
@coEfficientAlpha float
EXEC @return_value = [dbo].[getTestCoEfficientAlphaByDasIdAndKeySta... | 1 | 2,671 |
Java Map replaceAll with multiple String matches | <p>I have the following program that I would like to replace all occurrences of a string where a word exists as a key in a map with its corresponding value.</p>
<p>I have implemented 4 methods. Each of them perform roughly the same function but in a different way. The output for the first 3 are incorrect as the next r... | 1 | 1,752 |
Child items not movable in QGraphicsView when ItemIsMovable flag is set | <p>To resize items in a <a href="http://qt-project.org/doc/qt-5.0/qtwidgets/qgraphicsview.html" rel="nofollow noreferrer">QGraphicsView</a>, I'm putting child items representing vertices onto the item to be moved (using the parent-child relationship established in the constructor). Those are the four blue circles in t... | 1 | 1,214 |
Spring Boot Actuator: How to get metrics uptime inside a custom HealthIndicator? | <p>I want to do a custom HealthIndicator that depends on the application uptime. </p>
<pre><code>@Component
public class HealthActuator implements HealthIndicator {
private final MetricsEndpoint metricsEndpoint;
@Autowired
public HealthActuator(MetricsEndpoint metricsEndpoint) {
this.metricsEndpo... | 1 | 1,044 |
Can't connect to .net web service (.asmx) with Eclipse | <p>I am new to Eclipse and Android programming in general but I have been tasked to create an app for my company that will connect to our SQL Server to read some data as proof of concept. I have downloaded and installed Eclipse Eplison and the Java/Android SDK's needed. I wanted to start simple so I created an app wi... | 1 | 1,036 |
Another postgres not starting: "could not map anonymous shared memory" | <p>I noticed there are several questions about Postgres (10) not able to boot because of the shared memory; despite that I couldn't really make it run. Now everytime I try to start the cluster I keep getting this error:</p>
<pre><code>2021-10-24 10:13:43.269 UTC [11253] FATAL: could not map anonymous shared memory: C... | 1 | 1,426 |
Show a progress dialog in android tab layout | <p>I need to show a progress dialog, while clicking a tab, </p>
<p>My code id </p>
<pre><code>public class SIPTabWidget extends TabActivity{
Intent intent;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
requestWi... | 1 | 1,376 |
DataTable showing "Cannot read property 'each' of null" | <p>I've being trying to implement data table,but its not working.Checking with my google chrome debugger;it returns error that "Cannot read property 'each' of null".I've been trying to debug this but am not getting it through.</p>
<p>here is a reference to the website, to see examples <a href="http://www.datatables.ne... | 1 | 4,877 |
How to know when Parse.initialize() has already been called? | <p>Right now I am using a static boolean to tell when the initialization has occurred. Is there an easier way to know that I have already called initialize?</p>
<p>Thank you!!!</p>
<p>SOLVED!!!! Thank you so much for your comments. You need to initialize parse in a class that extends an application, and then add it t... | 1 | 1,539 |
Angular 7 - [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience | <p>All,</p>
<p>I am running on an Apple MacBook Pro running OS X El Capitan v.10.11.6.</p>
<p>I know this question has been asked many times over. I have read them all, carefully, assessing the responses and ever-refined my code in an attempt to isolate the issue. I have refined this to the point where I:</p>
<ol>... | 1 | 1,509 |
No exact matches in call to initializer SwiftUI | <p>I have the following code. I added new items to my json file but for some reason I can't display team.Pos even though I added all the models etc. The original data works but not the newly added ones. Any idea why? Additionally I am also trying to display array data as well. But again it also has the same error</p>
<... | 1 | 1,459 |
Zend Framework2 Fatal error: Call to a member function setAttribute() on a non-object in C:\dir\module\Application\view\layout\layout.phtml on line 39 | <p>How can i resolve this error? i tried to find solution in google and some docs of Zend Framework2 but i don't have luck, any help i would appreciate. i just want to display the form without using database. Please help me</p>
<p>here's my code of scheduleRequestForm.php</p>
<pre><code>namespace Application\Form;
... | 1 | 2,283 |
glfwOpenWindowHint not declared in this scope GLFW3 & GLEW | <p>Following some OpenGL tutorials for OpenGL 3+, Right out of the gate, I've run into some discrepancies, here is the code I managed to get, but right out of the gate, I'm getting this massive slew of errors, none of which say it can't find the included headers, but merely that the headers don't define the core functi... | 1 | 1,235 |
Modal image using JS | <p>I am trying to create a modal image so that when you click on the image it opens the image bigger in a pop up.</p>
<p>The code I have (see below) only allows me to open only one image in a pop up. it does not allow me to open the rest of the images,</p>
<p>HTML</p>
<pre><code><section id="responsive">
&... | 1 | 2,866 |
Lateral flatten array with multiple JSON objects in Snowflake | <p>I have an array with multiple JSON objects. The max number of elements in any JSON array located in the table is 8.</p>
<p>Here's an example of the raw value of the array:</p>
<pre><code> variants
----------------------------------------------------------------
[
{
"id":... | 1 | 1,823 |
android Can't open file for reading | <p>Hi I created my first Hello World app and followed instructions as
posted on developer.android but when I connect my sony xperia s with
debugging enabled and run my app , i see in the logcat errors saying
"E/(4446): Can't open file for reading" I am using the ADT plugin for
Eclipse</p>
<pre><code>package com.examp... | 1 | 1,580 |
Parquet files written from Spark Dataframe appear corrupted | <p>I am writing data to Parquet files using Spark, reading data output from AWS Kinesis in an hourly fashion based upon AWS Kinesis hourly partitions.</p>
<p>When writing, I partition the data output by <code>year/month/day/hour/eventType</code>, and then append & save to S3:</p>
<pre><code>fooDf
.withColumn("t... | 1 | 2,822 |
gRPC client: error in compiled file (io.grpc.protobuf does not exist) | <p>I made a simple protobuf+gRPC server/client example with Python, and wanted now to complete it with an Android Java client. However, I struggled through the documentation and got it mostly working (.proto compiles in Android Studio), BUT now I get Errors in the output *Grpc.java file (i.e. if I fix it it will just b... | 1 | 1,213 |
Issues connecting a Symfony2 app to a database container in Docker | <p>I've got a Symfony2 application in a docker project, using docker-compose. </p>
<p>I get the following error when trying to run schema updates to my database.
<code>
[Doctrine\DBAL\Exception\DriverException]
An exception occured in driver: SQLSTATE[HY000] [1130] Host '172.17.0.129' is not allowed to connect to ... | 1 | 1,202 |
Permission (java.lang.RuntimePermission exitVM) was not granted while executing jetty stop with Maven Ant Task | <p>I get the following ant error in console while running jetty:stop command using mvn tasks,</p>
<pre><code>[artifact:mvn] org.apache.tools.ant.ExitException: Permission (java.lang.RuntimePermission exitVM) was not granted.
[artifact:mvn] at org.apache.tools.ant.types.Permissions$MySM.checkExit(Permissions.java:196)... | 1 | 1,975 |
AWS Cognito NEW_PASSWORD_REQUIRED challenge requiring address, but it dosen't seems to accept any form of address types | <p>Im trying to implement a spring boot back end for cognito, I managed to create one and perform signing in, after the sign in i got to the new password is required to change the default password, so I have submitted my request but got an exception saying:</p>
<pre><code>Invalid attributes given, address is missing.
... | 1 | 1,491 |
How to add values to <option> tag loaded from array | <p>I have a multi part form to load color options based on size selection however it will not add values to the option tag and I cant seem to find the solution. What I would like is. </p>
<ol>
<li><p>To add values to the option tags example:</p>
<p>option value="X">Clear,option value="T">Smoke,option value="GS">Gunsm... | 1 | 1,228 |
How to use OnListItemClick action to open a new ListFragment? | <p>I have the following ListItem listener, which I want when I click in one of the list open up another list with different options.</p>
<pre><code>public class MyList extends ListFragment {
...
public void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, posit... | 1 | 1,159 |
Is there any way to trigger two changes by clicking on just one label? | <p>I have been playing with HTML and CSS to create a simple 2-player board game without using any JavaScript. I use labels, radio buttons, and checkboxes to create different states and mimic some logic so the piece will move around the board.</p>
<p>It works "fine", although the usability is not great. For example, af... | 1 | 2,106 |
GCDAsyncSocket background VOIP | <p>I'm trying to implement <a href="http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AdvancedAppTricks/AdvancedAppTricks.html#//apple_ref/doc/uid/TP40007072-CH7-SW12" rel="nofollow">this</a>(Configuring Sockets for VoIP Usage) using <a href="https://github.com/robbiehanso... | 1 | 1,255 |
Updating MAMP to PHP 5.4.8 | <p>I used this guide <a href="https://stackoverflow.com/questions/1746719/how-do-you-upgrade-mamps-php-to-php-5-3">How do you upgrade MAMP's PHP to PHP 5.3 ?</a> to update my PHP-Version on MAMP but it does not work.</p>
<p>I'm not sure if I did everything right.
I downloaded php 5.4.8 und put the folder into MAMP... | 1 | 1,548 |
How do I set my Web Form in the jQuery Modal Dialog and use this? | <p>I have a ASP.NET application for list all search User in a <code>ListView</code> in "BenutzerListe.aspx". A client user can select a User and show that user's Properties in an extra Web Form, named "benutzer.aspx". In "Benutzer.aspx", the user can change these Properties. </p>
<p>I want show this informations, not ... | 1 | 3,659 |
A* Algorithm 8-puzzle | <p>I have read many pseudo code for the A* algorithm, but neither of them actually explain how to output the solution. I believe I understand the concept of using a priority queue for the not yet visited and a has table for the explored, but when I go through the algorithm I don't know at what point to print out the re... | 1 | 1,604 |
Spring embedded ldap server Unable to perform the search | <p>I am getting below error while using spring embedded ldap server.</p>
<p>Your login attempt was not successful, try again.</p>
<blockquote>
<p>Reason: [LDAP: error code 32 - Unable to perform the search because base entry 'ou=people,dc=example,dc=com' does not exist in the server.]; nested exception is javax.nam... | 1 | 1,413 |
Serde error in Kafka Streams process with Spring Cloud Stream | <p>I´m trying to process some Kafka records using Spring Cloud Stream 3.0.3.RELEASE, but I´m having trouble with Serdes configuration getting an error as soon as a record enters the stream pipeline.</p>
<p>This is the stack trace:</p>
<pre><code>30-03-2020 19:28:33 ERROR org.apache.kafka.streams.KafkaStreams ... | 1 | 4,997 |
"Unable to add dynamic content" using AngularJS for Windows Store App, yet it works | <p>I'm creating an Windows Store App (or metro app, or whatever they call it) using AngularJS.</p>
<p>I solved to Javascript RunTime Error "Unable to add dynamic content" which crashed the application (see <a href="http://onehungrymind.com/windows-8-and-angularjs/" rel="nofollow">here</a>) and everything went fine unt... | 1 | 1,325 |
How to sort records (with code) in a grouped ListGrid? | <p>This is the scenario: I'm working with a listgrid that needs to be grouped, and also needs to have its records ordered within each group. I've already used the <code>ListGrid.sort()</code> and the <code>ListGrid.sort(String, SortDirection)</code> methods but none of them works properly.</p>
<p>This problem doesn't ... | 1 | 1,840 |
Spring oAuth2 with user rights | <p>I am very new to oauth and especially spring oauth2. In my project currently I am using basic spring oauth by enabling spring security provider through xml config.</p>
<p>Current configuration supports the access to my service using ROLE_CLIENT.
The db for that is just the reference db as specified in spring refere... | 1 | 3,265 |
PyQt5 QWebView: Load .html file that loads .js file | <p>I am trying to show a leaflet map with <code>QWebView</code> (inspired from <a href="https://snorfalorpagus.net/blog/2014/09/13/embedding-a-leaflet-map-in-a-qt-application/" rel="nofollow noreferrer">here</a>). The structure of my folder looks as follows:</p>
<pre><code>webkit_leaflet/
├── map.html
├── map.js
└── m... | 1 | 1,789 |
Can I call a method in a Self-Hosted WCF Service locally? | <p>I have a WCF Service contract which is basically the Publish Subscriber pattern.</p>
<p>The WCF Service is hosted inside the Windows Service that I want to publish from. The Clients subscribe to messages and when the Windows Service does something it publishes to all clients.</p>
<p>To host the service I have decl... | 1 | 1,674 |
How do I autofill username and password in UIWebView iOS app? | <p>I am teaching myself how to program an iPhone app by looking at code examples from various sources online, so it is fair to say that I do not understand the language (yet). </p>
<p>I am have successfully built a UIWebView browser app that goes to a login page. However, I am trying to take it one step further by h... | 1 | 1,847 |
Compile error when Angular Material dialog is imported | <p>I am trying to show a model dialog in my application. For that as a first step I imported Material Dialog
into my component.ts file</p>
<pre class="lang-js prettyprint-override"><code>import {MatDialog} from '@angular/material/dialog';
</code></pre>
<p>But after importing this I am getting tones of compile errors li... | 1 | 2,817 |
Uncaught TypeError: _firebase_app__WEBPACK_IMPORTED_MODULE_0___default.a.registerVersion is not a function in IONIC v4 | <p><strong>problem</strong></p>
<p>when run/deploy the app (ionic serve)
in the console see this error</p>
<pre><code>Uncaught TypeError: _firebase_app__WEBPACK_IMPORTED_MODULE_0___default.a.registerVersion is not a function
at auth.esm.js:372
at auth.esm.js:372
at Module.<anonymous> (auth.esm.js:... | 1 | 4,306 |
Laravel echo with vue.js | <p>I'm trying to make a task app with <code>Laravel echo</code> (just for checking out Laravel echo). (I use Laravel 5.3)</p>
<p>But I've 2 errors that I cannot fix. In my console I receive the following:</p>
<p><a href="https://i.stack.imgur.com/orPi3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co... | 1 | 1,852 |
QPID - Spring CachingConnectionFactory - Reconnect | <p>Spring Configuration</p>
<pre><code> <bean id="jmsQueueConnectionFactory" class="org.apache.qpid.client.AMQConnectionFactory">
<constructor-arg index="0"
value="amqp://guest:guest@localhost/test?brokerlist='tcp://localhost:5672'" />
</bean>
<bean id="cachingConnectionFactory" class... | 1 | 2,996 |
Camera2 video recording without preview on Android: mp4 output file not fully playable | <p>I am trying to record video from the back camera (the one that faces the face) on my Samsung Galaxy S6 (which supports 1920x1080 at about 30 fps). I do not want to have to use any surface for previewing if I do not have to as this is to just happen in the background.</p>
<p>I seem to have it working, but the outpu... | 1 | 4,978 |
How to use sentry/raven in django views | <p>I managed to install sentry successfully and I can see the sentry interface webservice at localhost and doing a </p>
<pre><code>raven test http://jsifslkdjfklsdfjklsdjfklMYCODE
</code></pre>
<p>works, the tests shows up in the interface.</p>
<p>The problem is I can't find any examples or documentation on what ex... | 1 | 1,057 |
Symfony3 "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'catId' cannot be null " | <p>I'm trying to save data with ManyToOne relations in a DataFixtures class. And I get this error on saving data.</p>
<p>Please, help me.</p>
<p>Sources:</p>
<p><strong>Entity/DealsCategory.php:</strong></p>
<pre><code><?php
namespace AppBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctr... | 1 | 2,865 |
xamarin forms: Couldn't change the background color of selected item on ListView | <p>I'm trying to remove or at least change the color of the selected item on a ListView (Master Detail).</p>
<p>I didn't see any option to change the background color of the selected item.</p>
<p>Here is what I have done so far:</p>
<pre><code> <ListView ItemsSource="{Binding MenuItems}"
... | 1 | 1,187 |
Moving processed files in remote S(ftp) using Java DSL | <p>I'm trying to move files on remote SFTP once the batch has successfully processed the files using Spring integration and Java DSL.</p>
<p>What would be the best way to achieve that? </p>
<ol>
<li>Adding a step in batch to move remote files ?</li>
<li>Or using FTP Outbound Gateway and provide the MV command ?</li>
... | 1 | 3,773 |
Dismissing a MFMailComposeViewController causes EXC_BAD_ACCESS | <p>I'm displaying a MFMailComposeViewController like so:</p>
<pre><code>- (IBAction) contactUs: (id) sender {
[Tracker trackContactUsPressed: [MFMailComposeViewController canSendMail]];
if ([MFMailComposeViewController canSendMail] == NO) {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @"Em... | 1 | 1,161 |
Nested complex-type elements never get populated when calling AXIS-based web service from .NET | <p>I've been trying for a couple of days now to get a .NET client working fully with a Web Server provided by my Coldfusion-based web app. I'm not a .NET developer, per se, but I happen to have a copy of VS 2003, which seems like it should do the trick.</p>
<p>I can use a simple multiplier() method in my web service t... | 1 | 9,136 |
Hidden size vs input size in RNN | <p><strong>Premise 1:</strong></p>
<p>Regarding neurons in a RNN layer - it is my understanding that at "each time step, every neuron receives both the input vector x (t) and the output vector from the previous time step y (t –1)" <sup>[1]</sup>:</p>
<p><img src="https://i.stack.imgur.com/dSxLU.png" alt="https://gith... | 1 | 1,725 |
TailwindUI transitions & transforms | <p>I'm using TailwindCSS, TailwindUI and StencilJS to build a dropdown TailwindUI component, but i'm having difficulty figuring out how to apply the suggested transitions provided next to the tailwind UI component.</p>
<p>Here is the tailwindUI component:</p>
<pre class="lang-html prettyprint-override"><code><div cl... | 1 | 9,463 |
Elasticsearch cannot parse date using custom format | <p>According to the documentation (<a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-date-format.html" rel="nofollow">http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-date-format.html</a>), it should be possible to parse dates using a Joda time compatibl... | 1 | 1,232 |
Unable to install robot-framework-ride with python 3.7 | <p>I need to install robot framework.</p>
<p>i had installed python 3.7, wxPython and robotframework. Need to install robotframework-ride. While trying <code>pip install robotframework-ride</code>, getting error <code>pip._internal.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code... | 1 | 2,897 |
Remove image from folder after deleting in codeigniter | <p>I want to delete the image not only in database, but in folder too.</p>
<p>this is my model</p>
<pre><code> public function delete($id)
{
if ($this->db->delete("np_gallery", "id = ".$id))
{
return true;
}
}
</code></pre>
<p>this is my contr... | 1 | 1,278 |
Can not parse JSON data(containing HTML tags) in ajax response | <p><strong>EDIT</strong></p>
<p>I simplified the array that I was trying to JSON encode in php script. The <strong>returnArr</strong> in php script now has only one key, value pair and still I am getting invalid character error:</p>
<pre><code>PHP script:
$returnArr["a"] = "val";
er('Content-type:application/... | 1 | 1,263 |
JavaFX TableView data not visible with CellValueFactory | <p>I'm working on a finance control type application for my parents in Java using JavaFX, but I'm having a problem with the GUI. I've searched Google and the code for a problem, but I can't seem to find anything wrong.</p>
<p>This is the link I'm using as a guideline: <a href="http://docs.oracle.com/javafx/2/ui_contro... | 1 | 2,151 |
Issue on using CMAKE with MSYS/MinGW linking dll files using DevIL image library | <p>actually i create a CMake script to localize the DevIL library using MSYS/MinGW on win32 platform. I've extend the origin FindDevIL CMake script to regard the MinGW root when try to find DevIL:</p>
<pre><code>project (DevILTest)
cmake_minimum_required(VERSION 2.6)
FIND_PACKAGE(OpenGL)
IF(OPENGL_FOUND)
MESSAGE(ST... | 1 | 1,291 |
Implementing Bouncy Castle Cipher Algorithms with Android | <p>How can I use the Bouncy Castle provider to implement algorithms such as Serpent and Twofish, because Sun's providers don't implement these at all. I know when multiple providers can implement the same algorithm, you get the implementation form the highest ranking provider which is going to be the Sun provider. If f... | 1 | 1,158 |
kubernetes services stuck in not ready | <p>I have a running container showing running but not ready and I can't for the life of my figure out what's wrong. I am on google container engine running kubectl server 1.64 and kubectl client 1.62</p>
<p>My healthcheck route is indicating that the healthcheck is being requested, albeit directly on the pod ip and no... | 1 | 2,094 |
java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext | <p>I am returning data from spring controller as below:</p>
<pre><code> HashMap hm = new HashMap();
hm.put("totalPage", pageQuery.count());
ArrayList al = new ArrayList();
while(iterator.hasNext()){
Vertex v = iterator.next();
MyPageList myPageList = new MyPageList();
myPageList.... | 1 | 3,839 |
fwrite() - image may be damaged after writing as png | <p>I am trying to download an image to the server then send to client-side for local download, the image data will come from google charts. (Google chart currently doesn't support 'download chart as image'). </p>
<p>It is now downloading to the server but I cannot open it, it says: </p>
<pre><code>"It may be damaged ... | 1 | 9,740 |
Junit Tests with Spring Boot Actuator gives Exception | <p>When I enable Actuators in my Spring Boot application, my Junit tests failed with a NullPointer Exception.
The actuators are working fine, and the tests were working fine before I added the actuator artifact in my pom.xml file.</p>
<p>Seems like the </p>
<pre><code>@MockBean
MailSender mailSender;
</code></pre>
<... | 1 | 3,292 |
ValidationMessage always displays / Summary doesn't - ASP.NET MVC 3 | <h2>The problem is:</h2>
<p>I have the an Ajax.BeginForm, that essentially consists of two dropdownlists and the submit button. I want MVC 3 validation to kick in if the user doesn't select an option from both of the dropdownlists.</p>
<p>This is isn't happening. Instead, the page opens with the ValidationMessages ... | 1 | 1,741 |
flutter_map - Why the location is changing, and the map is not moving? | <p>I use flutter_map and geolocator packages for my app. I have built MainMap widget to manage the Stream from Geolocator(), and pass it to another widget. It's all fine, my marker is moving, when my location changes, but my map still stays in the same place. I don't know why the center property is not changing at all.... | 1 | 2,263 |
Invoke operation in wcf ria service | <p>I use some invoke operation method in wcf ria service.like following method:</p>
<pre><code> [Invoke]
public int GetCountOfAccountsByRequestId(long requestId)
{
return ObjectContext.Accounts.Count(a => a.RequestId ==requestId);
}
</code></pre>
<p>When i want get data from this method , i ... | 1 | 1,137 |
Orthographic camera and selecting objects with raycast | <p>I am running into a bit of difficulty selecting objects with the orthographic camera using the raycaster. Though, I have no problem with it when I use a perspective camera. The only thing I am changing when switching between the two is the type camera.</p>
<p>I am able to select faces on the orthographic view, but ... | 1 | 1,696 |
Creating a multi-window application in PySide | <p>I am new to PySide, I want to create a multi-window application. For example, the first window will be login window, and if the login is correct then the login window should hide and the next window should appear.</p>
<p>How can I achieve this?</p>
<pre><code>import sys
from PySide.QtGui import *
from PySide.QtCo... | 1 | 1,068 |
PHP Notice: Undefined property: stdClass::$disposition | <p>Question No. 1 - can anybody tell me whats wrong with the code?? I have a script getting only the pdf file....</p>
<p>Question No. 2 - is there a way get the username and password in another php file like this;</p>
<pre><code>define("Email", "xxxxx.com");
define("Password", "******");
</code></pre>
<p>how can I d... | 1 | 2,886 |
IndexError: tuple index out of range when I try to create an executable from a python script using auto-py-to-exe | <p>I have been trying out an open-sourced personal AI assistant script. The script works fine but I want to create an executable so that I can gift the executable to one of my friends. However, when I try to create the executable using the auto-py-to-exe, it states the below error:</p>
<pre><code>Running auto-py-to-exe... | 1 | 7,521 |
TypeError: this.props.data.map is not a function | <p>As a beginner, I tried to create my first React application following the tutorial : <a href="https://facebook.github.io/react/docs/tutorial.html" rel="nofollow">https://facebook.github.io/react/docs/tutorial.html</a></p>
<p>My server was running at <a href="http://localhost:3000" rel="nofollow">http://localhost:30... | 1 | 3,337 |
Error trying to update Sharepoint list with javascript | <p><strong>Update</strong></p>
<p>I have now tried a new approach. This works when I call it one time but the second time it tells me that the collection hasnt been initiated for some reason. The comments in the test function of this code snippet will clarify my problem.</p>
<p>Javascript:</p>
<pre><code>function te... | 1 | 1,830 |
Multiple series in Highcharts with multiple drilldowns | <p>I found <a href="http://jsfiddle.net/highcharts/kh5jY/" rel="nofollow">this</a> example, however I'm struggling to make it work with two series together. </p>
<p>I want to have two series, each of which are drilled down to two series when we drilldown on either of the parent series. </p>
<p>If I don't put in the d... | 1 | 4,563 |
WPF DataTemplate performance | <p>Well the problem here is that if you have one DataTemplate for a type of object, each time the object is present, the DataTemplate will be created, that sounds about right.</p>
<p>My problem is that our DataTemplate is sort of heavy AND the app could have around 1000 objects using that DataTemplate.</p>
<p>I creat... | 1 | 1,328 |
Error: connect ECONNREFUSED 127.0.0.1:9200 ElasticSearch Firebase | <p>From the firebase elastic search project flashlight: <a href="https://github.com/firebase/flashlight.git" rel="nofollow">https://github.com/firebase/flashlight.git</a></p>
<p>I imported data from example/seed/data.json into my <a href="https://flashlighttest.firebaseio.com" rel="nofollow">https://flashlighttest.fir... | 1 | 1,225 |
Configuring Grails/Hibernate/Postgres for UUID | <p>So I'm trying to make a grails app that hooks into an existing DB where the primary key column is a UUID:</p>
<pre><code> Column | Type | Modifiers
-------------------+-----------------------------+-----------
uuid | uuid | not null
</code></pr... | 1 | 2,764 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.