title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Include maven dependencies built with Java9 or Java10 in a Kotlin project
<p>Is it possible to include Java9 (or 10) dependencies? As Kotlin is only able to compile to Java 8 so far. I'm getting an <code>java.lang.UnsupportedClassVersionError</code> error obviously stating that a class in the JAR/dependency I'm including has been compiled by a more recent version of the Java Runtime. However...
1
8,705
ValueError: Array contains NaN or infinity in _assert_all_finite during LinearSVC
<p>I was trying to classify the wine data set here -<a href="http://archive.ics.uci.edu/ml/datasets/Wine+Quality" rel="nofollow noreferrer">http://archive.ics.uci.edu/ml/datasets/Wine+Quality</a> using logistic regression (with method ='bfgs' and l1 norm) and caught a singular value matrix error(raise LinAlgError('Sing...
1
2,001
How to access SQL server from linux c++ application?
<p>We have a Microsoft Sql 2014 database on a remote windows server. I am trying to develop a QT GUI app which connects to this database. The app is in Linux/c++ environment. I tried using QtSql APIs to connect to that database.</p> <pre><code>bool MainWindow::connect() { QSqlDatabase db=QSqlDatabase::addDatabase(...
1
1,306
Python Sklearn Covariance Matrix diagonal entries incorrect?
<p>I am trying to perform PCA on some data. From my knowledge, the correlation matrix should have entries of <code>1</code> along the main diagonal. This is not what I am seeing for <code>.get_covariance()</code> in sklearn PCA. I am wondering why this is the case?<br> For my own purposes, I can just perform a scaling ...
1
4,153
Angular 2 - Issues using $event.srcElement on firefox
<p>I've many parts of my code that's uses @event.srcElement, for example...</p> <pre><code>&lt;label&gt;&lt;input (change)="setCompare($event.srcElement.checked,item.id, item.name, item.capacity, item.photoId,item.occupiers[0])" type="checkbox"&gt;Compare availability&lt;/label&gt; </code></pre> <p>Works fine on Chro...
1
1,221
Unable to reference CloudFormation resource in serverless.yml. Invalid variable reference syntax for variable UserPoolId
<p>I am using the Serverless framework to deploy a serverless app to AWS. However, the CloudFormation part is not working as expected. I have looked up on the web and couldn't find anything wrong with my YAML.</p> <p>I am creating a <code>UserPool</code> and then <code>UserPoolClient</code> by using CloudFormation. I ...
1
1,761
Shortest path between two location in 2D matrix
<p>Here is a code that does path finder from index[0,0] looking for destination , example the value '9'. Should BFS or DFS do any better than the below algorithm? Any advice for better algorithms to accomplish the same?</p> <pre><code>using System; public class Test { public static int[,] matrix = { ...
1
1,350
Hamburger icon not showing in Vuetify 2.0
<p>I am upgrading to the new vuetify 2.0, and I noticed the hamburger icon is not showing on the app bar.</p> <p>In their examples with the same code, it does show.</p> <p><a href="https://vuetifyjs.com/en/components/app-bars" rel="nofollow noreferrer">https://vuetifyjs.com/en/components/app-bars</a></p> <p><a href=...
1
1,288
Gitlab-Runner on Kubernetes/Openshift
<p>I'm trying to deploy Gitlab-runner(s) on Openshift/K8S, but can't succeed in having runners communicating with Gitlab (itself deployed in pods on OCP).</p> <p>I followed couple of different instructions like these ones:</p> <ul> <li><a href="https://www.youtube.com/watch?v=EwbhA53Jpp4" rel="nofollow noreferrer">ht...
1
1,735
Redis Session with Java Spring boot
<p>I am trying to save my session instances withing the Redis server ruining on local host. When I start the application I am getting a error massage and application wont start. It looks like the class can not be found or bean is wrong but I do not understand the error message well. </p> <pre><code>[ERROR] Tests run:...
1
3,432
Trying to call custom function from ListElement in ListModel QML
<p>I have, for example, such model in my QML:</p> <pre><code>ListModel{ id: mainlist ListElement { name: "Name1" type: "subMenu" toogle: false iconSource: "" function actionClick() { console.log("actionclick is passed for 0 item!") } ...
1
2,895
CountIFs in Excel whit VBA Code is very slow
<p>I'm try to use the VBA code for first time, I did a lot of search before to write these draft code, but one piece It isn't work well. I used the Application.WorkSheetFunction.CountIfs but the code It is very slow, I need to read a Table with 140.000 row and 31 columns, the table with criteria for countif have 6000 ...
1
3,400
Getting XML from stored procedure
<p>I am getting an output of XML from a stored procedure. What I am trying to do is get that XML and pass it out via ASP.NET:</p> <pre><code>public XmlDocument GetPunchListXml(string communityDesc) { try { using (connection = new SqlConnection(connectionString)) { connection.Open()...
1
2,691
ERROR Task :expo:compileDebugKotlin FAILED
<p>I created an application using react-native init and was working fine until I tried to start using expo to test it on my telephone.</p> <p>Trying to start the app with expo (npx expo start), I have:</p> <pre><code>Developer tools running on http://localhost:19002 Opening developer tools in the browser... Some depend...
1
6,877
Wait for Room @Insert query completion
<p>I can't figure out how to do a "simple" operation with Room and MVVM pattern. I’m fetching some data with Retrofit. A “proper” response triggers an observer in the activity and a small part of the response itself is inserted in the database using Room library, wiping all previous values stored and inserting the fre...
1
1,390
Trying to insert a digital signature line in a docx file
<p>I'm trying to insert a digital signature line in an openxml (docx) version of a word document. I don't get any errors but I realize I might be missing a step. Here's my code. It's a windows forms application. Can some one tell me how to properly append a digital signature line to a Run instance? The //S// serves as ...
1
1,109
SignalR no transport
<p>Attempting to start signal-r hub reports "Error: No available transports found."</p> <p>However, a diagnostic capture shows that negotiation returns <em>three</em> available transports. </p> <pre><code>{ "connectionId": "IsHpe_1ETRLz-flnJ3uKPg", "availableTransports": [ { "transport": "...
1
1,676
PhpSpreadsheet with large data
<p>i have a multidimensional array with 3070 Values</p> <pre><code>$tbl= array( array( "KDNR" =&gt; 1, "GESCHL" =&gt; "test", "TITEL" =&gt; "test", "VORNAME" =&gt; "test", "FAMNAME" =&gt; "test", "PLZ" =&gt; "test", "ORT" =&gt; "test", "STRASSE" =&gt; "test", "EMAIL" =&gt; "test",...
1
1,935
keras model fit: ValueError: Failed to find data adapter that can handle input: <class 'method'>, <class 'NoneType'>
<p>I'm building a simple CNN Model for multi class classification. The training and test data is in <code>data_path</code> according to the classes sub directories as required by the <code>flow_from_directory</code> function of <code>ImageDataGenerator</code>.</p> <p>Here's my code to build and train the model on the d...
1
1,747
Spring-boot: Required request part 'file' is not present
<p>I receive error <code>Required request part 'file' is not present</code> when I want to upload pictures.<br> I intend to upload videos and images. Video upload works well but images won't work.<br> Here is my code. </p> <p>Spring-boot </p> <pre><code> @ApiOperation(value = "Post new file") @RequestMapping(valu...
1
1,540
Inheriting from std::basic_streambuf to write to a socket
<p>I would like to write a logging library of my own that provides abstraction for wherever the log entries are sent to.</p> <p>The IO library of C++ already provides that kind of abstraction with <code>std::stringstream</code> and <code>std::fstream</code>. I would also like to be able to read/write from/to a socket....
1
1,976
aws code-build fails on build step
<p>Hi I runned the aws code pipeline on aws since months now. Since monday I got this error:</p> <pre><code>[Container] 2017/11/16 14:46:37 Running command chmod +x buildspec_prebuild.sh &amp;&amp; ./buildspec_prebuild.sh Flag --email has been deprecated, will be removed in 1.13. Login Succeeded { "failures": [ { "fai...
1
1,535
Android App runs in emulator but says "Not Installed"
<p>I can run my app and do things fine on the emulator in Eclipse. When I go "Home" in the emulator and try to run the App again (by clicking its icon in the Apps folder) it says "App isn't installed"</p> <p>EDIT: Also I am not being prompted to give permissions on the device itself (emulator or Nexus 7)</p> <p>Also...
1
1,048
Entity Framework Core is not creating tables in my databases
<p>I've tried deleting and creating a new database, deleting and creating new migrations, and can't get anything to work. </p> <p>First, I created a new database, then put the connection string in appsettings, and tried to run "update-database". All I got was this:</p> <pre><code>Executed DbCommand (178ms) [Parameter...
1
11,329
Upload via Ajax in Yii2 not including files
<p>I'm trying to upload an image via Ajax request and seem to be hitting a similar issue as <a href="https://stackoverflow.com/questions/32055274/upload-ajax-file-in-yii2">this question</a> but it has no answer. I'm not sure if they are exactly the same so I'll post all the details I can here and hope the more detail ...
1
1,345
Blazor WASM PWA Cannot Change Icon, Cannot Change Name
<p>I'm struggling with a case where I've done good research on how to it. It works for everyone but not for me!!</p> <p>Environment:</p> <ul> <li>Microsoft Windows 10 Pro</li> <li>Visual Studio Community Edition 2019</li> </ul> <p>So I've created a project and selected Progressive Web Application (PWA) from the get-go ...
1
2,715
Swift Specialised Crash on UICollectionView cellForItemAtIndexPath
<p>Crashlytics is giving me the following stacktrace. The crash happens inconsistently. Happens on all iOS 9 devices but very infrequently. Unable to figure out the source of the problem. Has not happened on any of the devices I have, been trying to crash for the last 3 days.</p> <pre><code>Crashed: com.apple.main-th...
1
2,137
Spark RDD Block Removed Before Use
<p>I am using a Future to perform a blocking operation on an RDD like this:</p> <pre><code>dStreams.foreach(_.foreachRDD { rdd =&gt; Future{ writeRDD(rdd) } }) </code></pre> <p>Sometimes I get this error:</p> <pre><code>org.apache.spark.SparkException: Job aborted due to stage failure: Task creation failed: org....
1
6,090
Android USB Permissions Dialog never appears
<p>I've written a simple app to send commands to a USB printer connected to an Android 4.0 tablet via USB. For some reason, I am unable to get past obtaining permissions to claim an interface and open a connection. Here's the relevant code : </p> <pre><code>public class TestPrintActivity extends Activity { private Us...
1
1,458
Elasticsearch Bulk API
<p>I would like to ask about the Elasticsearch Bulk API </p> <p>This is my code for using Bulk API </p> <pre><code>public void bulkInsert(String index, ArrayList&lt;String&gt; jsonList) throws IOException { BulkRequest request = new BulkRequest(); for(String json: jsonList){ if(json != null&amp;&amp...
1
1,724
Bluecloth v2.0.10 with windows 7 not working
<p>WIth Ruby 187, I had downloaded devkit from <a href="http://rubyinstaller.org/downloads" rel="noreferrer">http://rubyinstaller.org/downloads</a> and followed the instruction per <a href="https://github.com/oneclick/rubyinstaller/wiki/Development-Kit" rel="noreferrer">https://github.com/oneclick/rubyinstaller/wiki/De...
1
1,094
Amazon Product API returns "SignatureDoesNotMatch"
<p>I want to write app for get book covers through ISBN (for charity programme). So I decided to use Amazon product API. I got access key and secret key. I got a code for generate secret key I passed URL but that returns like that</p> <pre><code>&lt;?xml version=&quot;1.0&quot;?&gt; &lt;ItemLookupErrorResponse xmlns=&q...
1
1,181
openssl ca vs openssl x509 (the openssl ca command doesn't register the same on certificate?)
<p>what is the difference between <code>openssl ca</code> and <code>openssl x509</code> commands? I'm using it to create and sign my root-ca, intermed-ca and clients certificates, but the <code>openssl ca</code> command does not register the cellphone and emailAddress on the certificates while <code>openssl x509</code>...
1
2,471
How to restrict access to .html pages using Spring Boot REST
<p>I'm trying to restrict access to a page called <code>dashboard.html</code> to unauthenticated users. So far, I've had no success. Here's my <code>WebSecurityConfigurerAdapter</code>:</p> <pre><code>@Configuration @Order(SecurityProperties.ACCESS_OVERRIDE_ORDER) public class CustomWebSecurityConfigurerAdapter extend...
1
2,364
MySQL memory usage growing up to 100%
<p>I have MariaDB (10.0.20) installed on machine with 256gb RAM. Memory usage is growing all day up to 100% until restarting it. After some restarts memory usage stops growing on 70% - but starts growing again in some hours.</p> <p>What the problem with my server or configuration?</p> <p><a href="http://i.stack.imgur...
1
2,068
Enable scrolling with drag-n-drop on touch devices
<p><img src="https://i.stack.imgur.com/NSAsU.png" alt="table with horizontal scroll on touch devices"></p> <p>Re-arranging columns and click is now working on touch devices. Now facing the issue with scrolling. I tried to resolve it with <code>iScroll</code> plugin but it didn't work. The screenshot I took from device...
1
1,398
Green Dao Could not init DAOConfig
<p>I tried to use an old android application, that's use Green Dao such us database also this applicatioh had a flavour, so I compile and I install the apk but the app wan't start it gives this exception :</p> <pre><code>Process: com.xxxx.boeufaujardin, PID: 20011 java.lang.RuntimeException: Unable to create applicati...
1
3,240
How to wait for a method with result callback to complete before continuing (Android)?
<p>So I am a noob at Android, and I'm writing a simple app that uses Google Fit to store the users fitness sessions and step count and then retrieve them.</p> <p>I have two methods, one that fetches all the sessions from a given date range from the cloud, the next method iterates through these and adds up the step cou...
1
1,132
Primefaces PickList target is empty on ajax transfer listener
<p>I have the following <code>p:pickList</code>:</p> <pre><code>&lt;p:pickList id="activityUser" value="#{activityEntryController.activityUserDualListModel}" var="model" itemLabel="#{model.fullName}" itemValue="#{model}" converter="activityUserListConverter" styleClass="activityUser" required="true" showSourceFilt...
1
2,194
Choose a File and send through POST with Flutter Web
<h3>Problem Statement</h3> <p>Hi, basically, what I want is to send a file through a POST to a python server-side Flask API. </p> <p>The goal is to provide the user with a file picker interface, and after him/her choosing the desired <code>.txt</code> file, send it through Dio using a POST request. </p> <p>A button ...
1
1,425
Android Facebook SDK with fragment
<p>I'm trying to follow the facebook tutorial here <a href="https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/" rel="nofollow">https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/</a> but i'm getting an error with onActivityResult any ideas? The only differe...
1
3,143
NSXMLDocument, nodesForXPath with namespaces
<p>I want to get a set of elements from a xml-file, but as soon the the elements involve namespaces, it fails.</p> <p>This is a fragment of the xml file: </p> <pre><code>&lt;gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0" creator="Ground...
1
1,381
Setting Time in Excel using POI
<p>I am trying to create an Excel Work sheet using POI api in Java. In that Excel Work Sheet I want to have a cell with TIME alone. By setting this we can include the cell in summation of that particuluar column as we do in number columns. For this we need to format the cell as Time >> 13:30:55. (The internal format is...
1
1,192
How do I correctly capture Materialize-CSS datepicker value in React?
<p>I am looking to create a form with a <a href="https://materializecss.com/pickers.html" rel="noreferrer">datepicker</a> in my React component with <a href="https://materializecss.com/" rel="noreferrer">materialize-css</a>. I don't have many fields this form is capturing and the structure is fairly simple. The form re...
1
1,626
Matching a delete request to a json object
<p>I am trying to delete a json object from the json file when that object values are displayed in a form using the AJAX Delete function. I am using express to generate a route for the json file like below:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class=...
1
2,883
wsdl Binding is not defined
<p>I am new to WSDL and trying to validate the WSDL. I have to generate code from WSDL. I get the following error</p> <blockquote> <p>The operation specified for the 'DictionaryServiceServiceSoapBinding' binding is not defined for port type 'DictionaryService'. All operations specified in this binding must be de...
1
4,309
How to return distance and score in spatial search using spring-data-solr
<p>I'm writing a Spring MVC based Search API using spring-data-solr 1.0.0.RELEASE with Solr 4.4.0 and Spring 3.2.4.RELEASE.</p> <p>I'm able to run basic queries but unable to find any good example how can I return score and distance:geodist() in the results. </p> <p>I know I can get results from Solr using query like...
1
1,603
Validation not working on submit
<p>I've tried a form validation using <code>jquery.validate.min.js</code>.</p> <p>When i click submit button that will show the empty required fields with red border. Problem is page was loading while click submit button.</p> <p>Validation not working. Don't know where is the issue. Thanks in advance.</p> <p><div cl...
1
2,908
Using different Redis databases for Spring sessions and custom data
<p>In my REST controllers Spring project, I want to store Session information in Redis and my custom information (whatever I need) in Redis also, but in a separate database.</p> <p>In my <em>application.properties</em> I have defined the following:</p> <pre><code>spring.session.store-type=redis spring.session.redis.n...
1
1,054
Extjs Menu insert new items with override
<p>I have a menu which is defined like that:</p> <pre><code>Ext.define('MyApp.FileBrowserContextMenu', { extend: 'Ext.menu.Menu', initComponent: function() { var me = this; Ext.applyIf(me, { items: [ { xtype: 'menuitem', text...
1
1,281
Recursive ->toArray() for Laravel
<p>I'm using Laravel as an API an AngularJS front end. Part of this is when the app loads I preload the app with the user signed in to save an http request.</p> <p>Is there an recursive <code>-&gt;toArray()</code> that will loop through all properties and convert all eloquent models to jsonable arrays?</p> <p>I have...
1
1,600
Testing getpass module: 'password input may be echoed'
<p>I'm looking for any insight into why the below error is raised. I'm wondering if the issue is with pytest?</p> <p>I'm otherwise using getpass with no issues in my application. However, I'm new to the testing world.</p> <p><strong>common.py</strong>:</p> <pre><code>def username_password(): """Get login credent...
1
1,195
Angular 2 sorting with lodash
<p>Component:</p> <pre><code>import { Component, OnInit } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import * as _ from 'lodash'; @Component({ selector: 'app-ore-table', templateUrl: './ore-table.component.html', styleUrls: ['./ore-table.component.less'] }) export class OreTableCom...
1
2,060
Unit test or runtime ActionResult string output response via ExecuteResult?
<h1>The Question...</h1> <p>What is the best way to Unit Test the <strong>string response</strong> and <strong>content type</strong> from several Controller methods?</p> <h2>Using...</h2> <p>Each method returns an <code>ActionResult</code>, some of which are <code>ViewResult</code> responses. I'm using ASP.NET <str...
1
1,682
Beginner Haskell problems (No instance for ... arising from)
<p>I recently started learning Haskell and I'm trying to rewrite something I did for an interview in python in Haskell. I'm trying to convert a string from camel case to underscore separated ("myVariableName" -> "my_variable_name"), and also throw an error if the first character is upper case.</p> <p>Here's what I ...
1
1,221
REST Web service - JSON request mapping to a java Complex object
<p><strong>I m trying to Map and Send a JSON to a Java Object for Rest Web Service . I m using a RESTful WS with Jersey Java.</strong></p> <p><strong><em>I am new to this REST, If am not sending correctly please correct me.</em></strong></p> <p>** Here Is a example of My JSON:</p> <p>MY Json Input in Google Rest Plu...
1
2,136
Calculating R squared for Poisson GLMM using MuMIn r.squaredGLMM
<p>I am modeling abundance for a species of bird using a Poisson generalized mixed model using glmer in the R package "lme4". An example of my data:</p> <pre><code>abund point_id patch_area vis_per_year year 6 EL_03Plot035 244.69412 C_5 2003 0 RC_BBSM08 101.68909 C_2 2004 0 RP...
1
1,798
Set programmatically margin in android?
<p>I have bellow <code>xml</code> . In this <code>xml</code> i need that set <code>MarginTop "@+id/imgFooter" programatically</code> toward <code>"@+id/imgCenter"</code> .But i Can't . My <code>XML</code> :</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_...
1
1,326
PSQLException: Large Objects may not be used in auto-commit mode
<p>I am using WildFly 10, Java EE, JPA, and Hibernate. Recently I migrated my application from MySQL to PostgreSQL. While using MySQL, I would store images in my entities using:</p> <pre><code>@Lob @Basic(fetch = FetchType.LAZY) private byte[] image; </code></pre> <p>This worked great, and MySQL used a <code>LONGBLOB...
1
1,389
Error When Loading View in My_Controller
<p>I have been trying to implement the solution referenced at:</p> <p><a href="https://stackoverflow.com/questions/4708639/error-when-trying-to-load-view-in-my-controller">Error when trying to load view in my_controller</a></p> <p>Don't know why, but Aptana indicates a syntax error on my line:</p> <pre><code>parent::lo...
1
1,181
Update image in SQL using FileUpload in ASP.NET
<p>I'm trying to store profile images for users in SQL. My problem is that nothing is saved in the database table. The column where I want to save the image has <code>image</code> as datatype.</p> <p>Here is my code:</p> <p>UPDATE: Code updated and working. The problem was the parameters used in the query. Many than...
1
1,199
Angular 6 Error: Cannot find a differ supporting object of type 'string'
<p>As you can see by the subject, I am receiving this error because one of the columns in the database is a string of JSON and I thought I could get around this by having an ngFor loop within an ngFor loop.</p> <p>The following is the html:</p> <pre><code> &lt;tbody&gt; &lt;tr *ngFor="let item of mf.data"&gt; &...
1
1,693
AttributeError: 'Tensor' object has no attribute 'assign' in an attention model
<p>I try to build up a document classification model with attention using keras(part of model in paper Hierarchical Attention Networks for Document Classification). The following codes are the test codes. I create a birnn and a custom attention layer refer to <a href="https://github.com/person-lee/LSTM_ATTENTION_CLASSI...
1
2,664
Action Dial works but Action Call gives issue and doesn't do what I want
<p>This code works like a charm but at dial screen i want it to auto make call. however i have changed ACTION_DIAL to ACTION CALL and still no luck. I have give full access in manifest but still not doing what i want it to. please help. </p> <pre><code>EditText firstNumber; Button btnAdd; int number = 35; @Override p...
1
1,421
java.io.NotSerializableException with spring and @ViewScoped bean
<p>I do migration form JSF 1.2 to JSF 2.1 in a quite large project. There is a few libraries use: hibernate 3.6, spring 3.1(far as i know updated form 2.x by my predecessor), acegi-security-1.0.5, tomahawk20, urlrewrite-3.2.0. I will update all of them, when i finish migration to jsf2.1</p> <p>I changed entries for be...
1
3,762
recyclerview inside nestedscrollview loading slow
<p>I have recyclerview inside my nestedscrollview, when my recyclerview loads, I have no problem with scrolling, its very smooth but its loading very slow at first (its not about my data or networking) slow line is <code>recyclerview.adapter = MyAdapter()</code></p> <p>when I move the recyclerview out of nestedscrollv...
1
10,358
Android one activity to to popup window
<p>My requirement is : List all sales route &amp; highlight default, It should be first option. If the salesperson select other option(not selected default), then popup window should come. The popup window contain one form, it talk to DB.After submit the popup window form , it return previous screen , It need to allow...
1
1,181
FATAL EXCEPTION:AsyncTask#4 at doInBackground()
<p>I am using an AsyncTask to run database querying in the background. I get this error when I run my app:</p> <pre><code>09-08 12:24:04.192: E/AndroidRuntime(882): FATAL EXCEPTION: AsyncTask #4 09-08 12:24:04.192: E/AndroidRuntime(882): java.lang.RuntimeException: An error occured while executing doInBackground() 09-...
1
4,927
KeyListener doesn't work
<p>I'm programing a game Bomberman-like, and I have a problem with my KeyListener.</p> <p>The thing is, when the game is running, the KeyListener doesn't respond, but when it's not running, it does what I tell him to.</p> <p>Here is my code </p> <pre><code>public class direction extends Canvas implements KeyListener...
1
2,348
Nested CollectionViews and display (with Visual Studio 2019, Xamarin XPlatform Android)
<ol> <li>Nested CollectionView with scrolling one inside another: is it officially supported?</li> <li>Display these collections problem</li> </ol> <p>See below my data model and the XAML code (I have no site to put the resulting screen image in)</p> <pre class="lang-cs prettyprint-override"><code>namespace Notes.Model...
1
1,925
scale buttons to screen size
<p>I have <code>RelativeLayout</code> with 3 <code>LinearLayouts</code> where I have buttons located. 2 button in each layout. button sizes remain same on devices with different size: <strong>Nexus 7 -</strong> <img src="https://i.stack.imgur.com/rcCe8.png" alt="http://i.imgur.com/rfCy2Me.png,"> </p> <p><strong>Nexus ...
1
1,712
Android app keeps crashing in emulator
<p>I am making my first android app. Android Studio shows no error in the code. However, the app keeps crashing as soon as I try to launch it in the Emulator. I am using the inbuilt Nexus 5X API 23 for the emulator. Please help me? Thank you!</p> <p>Here is my Manifest file:</p> <pre><code>&lt;?xml version="1.0" enco...
1
2,332
Maven Module Project not found
<p>I've a multi module maven project. I'm trying to access the content of a module from another module. Maven gives me this error.</p> <pre><code>Could not resolve dependencies for project net.twerion:wrapper:jar:1.0-SNAPSHOT: Failed to collect dependencies at net.twerion:cloud.packets:jar:1.0-SNAPSHOT: Failed to read...
1
3,421
How to connect 3 tables in yii2 and display in Gridview then make sorting work correctly
<p>I have used the gii tool to create crud application. I have 3 tables the tbl_targetcities, lib_cities, and lib_provinces. I was able to connect lib_cities to tbl_targetciteis but not the lib_provinces. And also the sorting of city / Municipality does not work. It seems that it sorts according ti the ID.</p> <p>tbl_...
1
1,182
JavaFx 2.x: How to write text on a chart?
<p>By left mouse click on a chart I would like to write text by creating a text area rectangle so to be able to resize and move.</p> <p>Any help really appreciated </p> <p><strong>Edit</strong>: Hi sarcan thank you very much for your kind reply.</p> <p>I tried your code, it compiles and it plots an area chart with a...
1
2,315
Ansible async task collecting results: could not find job
<p>I'm trying to fire-and-forget some tasks and collect results after that. Here's my playbook:</p> <pre><code>--- - hosts: node2 gather_facts: yes tasks: - name: 'Some long script no 1 on node2' shell: "time sleep $[ ( $RANDOM % 20 ) + 20 ]s" async: 40 poll: 0 register: script1 ...
1
1,048
Pragmatic use of code-behind in MVVM pattern
<p>I'm trying to follow the MVVM pattern in a WPF application as good as I can, mainly to be able to create unit tests for my ViewModel logic.</p> <p>In most cases data binding between ViewModel properties and properties of visual elements works fine and is easy. But sometimes I encounter situations where I cannot see...
1
1,682
Unable to load cached Images in my minikube, I have windows 10 enterprise edition
<p>I have <strong>tried reinstalling</strong> it but nothing seems to work.</p> <p>console output:</p> <pre><code>E1126 15:42:35.408904 19976 cache_images.go:80] CacheImage k8s.gcr.io/kube-scheduler:v1.16.2 -&gt; C:\Users\Sanket1.Gupta\.minikube\cache\images\k8s.gcr.io\kube-scheduler_v1.16.2 failed: getting destina...
1
2,189
ASP.NET Core Identity Exception for "Identity.External"
<p>I'm having a weird problem with an ASP.NET Core 2.1 site. When I sign into it, and refresh it 30 minutes later, I always get this exception thrown:</p> <blockquote> <p>InvalidOperationException: No sign-out authentication handler is registered for the scheme 'Identity.External'. The registered sign-out schemes ar...
1
3,064
Android SQLite database not open exception
<pre><code>11-01 18:20:09.953: E/AndroidRuntime(528): FATAL EXCEPTION: main 11-01 18:20:09.953: E/AndroidRuntime(528): java.lang.IllegalStateException: database not open 11-01 18:20:09.953: E/AndroidRuntime(528): at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1526) 11-01 18:20:09.95...
1
1,508
Read and write an ArrayList of ArrayLists containing Parcelable Objects to pass in an Intent
<p>I just changed all serializable classes in my project to parcelable classes. Everything is working fine, except for that one class which is made of an ArrayList containing another ArrayList. I already debugged. There is no error when writing this ArrayList. But I get an error while reading it.</p> <p>This is the cl...
1
1,037
Hardware PCF for Shadow Map using OpenGL
<p>I'm using OpenGL 4.3 under GeForce GTX 750 to create Shadow Map. Right now the basic effect, shown as below, seems to be correct: <a href="https://i.stack.imgur.com/4BbkW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4BbkW.png" alt="enter image description here"></a> To erase the blocky-effect, ...
1
1,044
Passing Stored Procedure query result from JSonResult to Ajax
<p>Good Day! I'm trying to display the result of a stored procedure query into a textbox on my page. This stored procedure only returns one result which is the daily sales. I'm trying to do this passing through JSonresult so that I can pass it to an ajax in my view page. But I couldn't seem to succeed in passing it. </...
1
1,757
C# redis vs mongodb performance
<p>I'm doing a research with different nosql caches/databases.</p> <p>The following performance test was done with C# mongo driver 1.8.3.9 and ServiceStack.Redis 3.9.57.0.</p> <p>MongoDB 2.4</p> <p>Redis 2.6.16</p> <pre><code>private List&lt;string&gt; GetListStrings() { var list = new List&lt;string&gt;(count)...
1
1,189
Android onStop onDestroy called after onCreate
<p>I hope you can help me. I don't understand why this is happening to me.</p> <p>My app is calling onPause(), onStop(), onDestroy() immediately after calling onCreate(). The screen is black. When I press the home button, onPause(), onStop(), onRestart(), onStart() and onResume() are called and everything is fine. Thi...
1
5,024
Feign Client, Spring Boot Application, and rx/Observable Class Not Found Error
<p>Some background: I have built two Spring Boot applications that are designed to be microservices. The first application (schedule provision) is a RESTful service that provides data for the other application (schedule checker). Therefore, there is a simple producer-consumer relationship between the two services. </...
1
7,746
Webpack: ES6 syntax gives Module build failed: SyntaxError: Unexpected token
<p>I'm trying to use an example of fixed-data-table, and bundle it with webpack.</p> <p>I'm using babel-loader and my code otherwise bundles without issues.</p> <p>Running <code>webpack</code> points to an error which to my knowledge is a part of ES6 syntax(not ES5) ... The <code>...</code> , such as here:</p> <p><c...
1
1,048
Camel route, how to use an Endpoint as a trigger, returning an immediate response but continuing with the process?
<p>I want to use Camel to implement a kind of trigger EIP.</p> <p>What I want is this: I have a web service that will act as a camel-route endpoint. This service receives a request and if the request is well-formed it must do two things in parallel: return a response to the original sender with a simple message "OK" o...
1
1,067
NHibernate cascade="all-delete-orphan" is deleting non-orphaned rows
<p>When using cascade="all-delete-orphan" NHibernate is deleting a child row that is not orphaned - it has simply been moved to a new parent.</p> <pre><code>using (var session = sessionFactory.OpenSession()) { using (var transaction = session.BeginTransaction()) { // Get the store we're moving him to ...
1
1,335
Radio button in recyclerview with kotlin MVVM and databinding
<p>Redio button in recyclerview with kotlin, dagger2, retrofit , livedata, MVVM and databinding,I need updated list from videModel and also set selected positions to find it is selected and other on is deselected. please suggest how to select only one in RadioButton in List. <strong>here are my adapter:-</strong> </p> ...
1
1,629
PHP: Notice: "Undefined index" when using $_SESSION
<p>I am using PHP and I return this value: <code>$_SESSION['sessionNum']</code> and I get an error:</p> <pre><code>Notice: Undefined index: sessionNum. </code></pre> <p>What does this error mean?</p> <p>Here is My buggy PHP code for the referring page (create_session2.php)</p> <pre><code>&lt;?php session_start();...
1
1,700
Rewriting paths with undertow-handlers.conf doesn't work as expected
<h1>Background</h1> <p>JBoss 7.1.5 EAP back-end with an Angular 7 UI.</p> <p>I need to make JBoss aware of the UI's routes, but rewrite them all to the UI's index page for routing by Angular.</p> <p>The project is structured thus:</p> <pre><code>webapp/ WEB-INF/ undertow-handlers.conf web.xml ...etc ...
1
1,567
Primefaces dataTable rowIndexVar with pagination
<p>I'm using a primefaces datatable with single row selection and pagination. For each row I have some commandlinks (one of which is disabled) that I want the user to click to perform operations on that row (example: delete, edit). In order to provide visual confirmation that the user clicked the button on the right ro...
1
1,696
VBA save word document as pdf from excel
<p>I have seen lots of people asking this question, but I cannot get it to work.</p> <p>Background - I am creating a mail merge, from excel into a WORD template, which I then need to save as a PDF. My VBA code is in excel - and ideally needs to stay there. Mail merge is working, creating and saving the word documents ...
1
1,258
Android: OnItemCLickListener not working in listview
<p>I'm relatively new to Android development but my project was all going fairly well until I hit this problem. I have researched this question but none of the solutions to other questions have fixed my problem.</p> <p>I have a <code>SportsAvtivity</code> which implements <code>AdapterView</code> <code>OnItemClickList...
1
6,890
How to test mutations when using vuex modules
<p>Before using vuex modules , my mutation tests were OK :</p> <pre><code>import mutations from '@/vuex/mutations.js' import vueAuthInstance from '@/services/auth.js' import { IS_AUTHENTICATED, CURRENT_USER_ID } from '@/vuex/mutation_types.js' describe('mutations.js', () =&gt; { var state beforeEach(() =&gt; { ...
1
1,957
Android webview :: Refused to display document because display forbidden by X-Frame-Options
<p>I am trying to load twitter widget file in webview . My webview loads correctly but When i try to open link inside webview (link inside twitter widget file) , i get the above mentioned error &amp; whole screen turns out blank. Below is the code i am using.</p> <pre><code> @Override protected void onCreate(Bundl...
1
1,097
Amcharts am4core function not defined
<p>I have created an interactive 2 series XY area chart for spreader beams using Amcharts, having enqued the amchart cdn files in to Wordpress, but the chart only show in the page builder, Elementor, not on site. There is an error, am4core function not defined, and a cross origin error from amcharts, though all the so...
1
3,089
Stacktrace was: java.util.concurrent.TimeoutException: Futures timed out after [5000 milliseconds]
<p>This is what my actor looks like </p> <pre><code>public final class DiskMonitorActor extends UntypedActor { private final File assetsDirectory; private final long thresholdPercentage; private final LoggingAdapter logging = Logging.getLogger(getContext().system(), this); public DiskMonitorActor(final File...
1
6,167
Must use import to load ES Module
<p>I am trying to create a service to convert an SVG to a PNG using the <a href="https://www.npmjs.com/package/svg2img" rel="nofollow noreferrer">svg2img</a> package. I have it working locally using <code>vercel dev</code>, however when I try to deploy to vercel I always get this error:</p> <pre><code>2021-09-27T01:11:...
1
1,194