title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Validation Query in org.apache.tomcat.jdbc.pool
<p>I'm recntly doing some tests with the new Tomcat JDBC connection pool (<code>org.apache.tomcat.jdbc.pool</code>, version 7.0.20). My understanding of using the validation query is, when I'm e.g. rebooting the database and the pool looses all connections, it automatically tries to recover them. </p> <p>Here the init...
1
1,074
Unable to resolve <JNDI>
<p>I have a SessionBean in JNDI bound under "ejb.Bb_restriction_USRemoteHome". This is confirmed by the Weblogic console too. </p> <p>But while accessing it through the following piece of code :</p> <pre><code>private static Context getInitialContext() throws NamingException { Context ctx = null; Hashtabl...
1
1,293
PHP Notice: Undefined index / PHP Notice: Undefined variable
<p>I am really getting frustrated. I am moving my website from php 5.2 to php 5.3. When adding information from my form to the mysql database an empty record is added and I am getting this error messages, which are connected to each other. The error log message is:</p> <pre><code>[Tue Jul 16 12:37:08 2013] [warn] [cli...
1
2,296
Run Teampass in docker with a running nginx proxy
<p>@Moderators: can you please add the Tag teampass to the tag list?</p> <p>I want to run <a href="http://teampass.net/" rel="nofollow">Teampass</a> as a docker container with a nginx as a proxy. </p> <p>I'm not sure if the problem, that Teampass brings it own Apache and works against my nginx or, if I got somethin...
1
1,125
Why async await doesn't working on IIS, but it's working on IIS Express
<p>I don't understand, why async/await doesn't resolve problem with IIS threads.</p> <p><strong>I see that we have limit on IIS threads equals 10, when I use IIS and no limits for IIS express.</strong></p> <p>I add 2 methods in HomeController for repeat this problem. One of them (method) use Thread.Sleep and other u...
1
2,615
steps to setting up gtk with code blocks?
<p>in windows 7 64bit i keep getting errors i have already downloaded the gtk bundle for windows, extracted it and ran some commands i am trying to go based on this artice <a href="http://forums.codeblocks.org/index.php?topic=16468.0" rel="nofollow">http://forums.codeblocks.org/index.php?topic=16468.0</a> im stuck at s...
1
3,771
Deleting node from linked list
<p>The delete from last functionality does not work properly. It shows that the node has been deleted but when I display it, it gets into an infinite loop and displays junk. Couldn't figure what's wrong!</p> <p>Here's the code:</p> <pre><code>using namespace std; class List { struct NODE { int item; ...
1
2,193
java.lang.ClassNotFoundException: org.hibernate.cfg.AnnotationConfiguration
<p>I'v got the following problem: I tried to create a simple Servlep with Eclipse:</p> <pre><code>@WebServlet(description = "Adress book servlet", urlPatterns = {"/new_address"}) public class CAddressBookServlet extends HttpServlet { public CAddressBookServlet() { super(); } protected void do...
1
1,995
How can I hide the bottom tab bar on a specific screen (react navigation 5.x)
<p>I wanted to know how to hide the bottom tab bar from a specific screen inside my stack navigator, my code is below. I just want to hide bottom tabs for the Player screen, or open Player screen with modal can anyone help me?</p> <p>This is my code for my main tab navigator</p> <pre class="lang-js prettyprint-override...
1
4,198
Mapping objects in an array to table in React
<p>Could you please help me in passing objects in a state array to the table using map method in react? I can able to push the object into the invoices array but I can't map into the table. Please suggest if any other method is possible.</p> <p>Please neglect the below comments as I am going repeat the above context....
1
4,442
scrapy: ERROR: Error downloading <GET http://stackoverflow.com/questions?sort=votes> TypeError: 'float' object is not iterable
<p>I am a new learner of python and scrapy, I copy these codes from a video, they worked well in the video but when I have a try, there is a <strong>TypeError</strong> of 'float' object is not iterable, here are the codes</p> <pre><code>import scrapy class StackOverflowSpider(scrapy.Spider): name="stackoverflow" st...
1
1,705
Configure Angular-cli proxy for custom headers in request to backend?
<p>the topic, as I understand it is quite fresh and relevant. Tell me where is my mistake?</p> <p>So, I did everything as in the documentation:</p> <p><a href="https://github.com/angular/angular-cli/blob/master/docs/documentation/stories/proxy.md" rel="nofollow noreferrer">https://github.com/angular/angular-cli/blob...
1
1,158
spring batch write to ActiveMQ
<p>I am try to write messages to a JMS queue which I take out in a next step to write to a database. The first part should be sync en the second async. The JMS part is really slow (1100 items to the queue in 1 minute).</p> <p>This is how my job looks.</p> <pre><code>@Bean public Job multiThreadedStepJob() { Flow ...
1
1,104
Model with collection - Html.ListBoxFor doesn't set selected items
<p>This one is driving me crazy and before I loose my sane please help.</p> <p>Summary of the issue: My model "Thread" has collection of "ForumMessage", each ForumMessage has one Multi select drop down list. All I want to do is set the selected value based on values coming from Database. I have gone thru many threads ...
1
1,319
How to fix error "Only one usage of each socket address is normally permitted"
<p>I have 1 process that acts as a server (TcpListener) and one or more processes that act as clients (TcpClient). The clients are sending Tcp requests to the server every 1-2 seconds to which the server responds with a result message.</p> <p>In normal conditions the server will use TcpListener.Stop when it closes, bu...
1
2,053
Postgres SSL connection error: Received fatal alert: handshake_failure
<p>Postgresql version 10 on Ubuntu Bionic</p> <p>Simple script to generate server certificate</p> <pre><code>#!/bin/bash if [ -z $1 ] || [ -z $2 ]; then echo "Usage: ./self-signed-server-certificates &lt;curve&gt; &lt;signing-user&gt;" exit 1 fi CURVE=$1 SIGNING_USER=$2 openssl ecparam -name $CURVE...
1
2,272
Slick slider same height images within nested flexbox
<p>I am new to using flexbox. I have deployed slick slider within one of the elements of a flexbox grid. I am using background images with bottom aligned gradient elements across the different elements of the grid. This is the code</p> <pre><code> &lt;div class="wrapper"&gt; &lt;div class="flex-container"&...
1
10,792
PHP Array_filter on "simple" multi-level array
<p>Can I and how can I use PHP's <code>array_filter</code> to filter the blank/nulls entries out of the following array structure?</p> <p><strong>From:</strong> The array is from a PDO call using Fetch BOTH so the numeric and named values are always equal in this case.</p> <pre><code>Array ( [2400] =&gt; Array ...
1
1,112
Gradle compileJava Task keeps failing
<p>alright i've been hiting my head against the wall for quite sometime now, and now i dont even know what to search for to find a solution, here are my files</p> <p>build.gradle</p> <pre><code> //Applying the Gradle BND Plugin for Workspace Builds //https://github.com/bndtools/bnd/blob/master/biz.aQute.bnd.gr...
1
1,577
Error while running this project in tomcat6
<p>When i am runig my project in myeclipse using tomcat6 then it will throw an error like so what should i do this error regarding spring class but i will load all spring library from myeclipse </p> <pre><code>Jan 12, 2011 5:24:09 PM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native li...
1
2,848
AHP algorithm working only for 3 criteria
<p>I am trying to implement AHP(Analytic Hierarchy Process) algorithm for computing criterion's weights(using eigen vetors). For example, I want to buy a smart phone. My criteria are: color, memory, delivery. For computing weights I have to make pair wise comparison among criteria. I will compare color with memory, co...
1
1,456
WCF Service multiple endpoint configuration
<p>I have a WCF service:</p> <pre><code>https://myservice/service.svc https://myservice/service.svc?wsdl </code></pre> <p>Given below are the related section of my WCF Application's web.config (let me know if you need more):</p> <pre><code>&lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="basicHttp"&gt;...
1
1,142
Zend Framework 2 Navigation's exception
<p>I was looking for show a navigation menu in the layout.phtml file:</p> <pre><code>&lt;?php echo $this-&gt;navigation('navigation')-&gt;menu(); ?&gt; </code></pre> <p>So, I added these lines to /module/Application/config/module.config.php in order to declare the menu's structure according to my app routes:</p> <pr...
1
3,114
How to click/select radio button with python/selenium
<p>I've been trying to automatize a report with python/selenium from a webpage. Right now I'm stock trying to select a radio button. Could you please help me with this issue, and if is possible some tips to make the code look/work better.</p> <p>I'm using XPath Helper to identify XPaths but I'm getting a "Null" value ...
1
1,898
Disabling textbox upon selecting specific value in drop down of gridview
<p>i have a gridview and each row has Drop down list,Containing VALID (1), INVALID (0)</p> <p>i want if user select Invalid from drop down then it should disable text box given in form, txtComplainant.</p> <p>i tried putting TxtboxComplainant.Visible = false; upon SelectedIndexChange Event but doesn't work.</p> <p>C...
1
1,438
Showing specified page when view pager is first created
<p>I have a fragment that contains a <code>ViewPager</code>. This <code>ViewPager</code> is backed by a <code>PagerAdapter</code> that uses a <code>Cursor</code>. The cursor is managed by <code>LoaderCallbacks</code>. I'm using the v4 support libraries here.</p> <p>What I want is to create the fragment and have the vi...
1
1,047
How to make nutch crawl files and subfolders - it only crawls the index of the folder
<p>EDIT: I found my answer and wrote it up below, but gave the bounty to tahagh, since he provided some good suggestions.</p> <hr> <p>I am setting up nutch to crawl a local folder (a samba mount). I have followed <a href="http://amac4.blogspot.dk/2013/07/setting-up-nutch-to-crawl-filesystem.html" rel="nofollow">this<...
1
1,752
Paypal integration controller not working in Laravel
<p>I create an account at paypal to test in my app.</p> <pre><code> composer require paypal/rest-api-sdk-php </code></pre> <p>Added the client ID and secret to the .env</p> <p>This is what I currently have in my view</p> <pre><code>@if ($message = Session::get('success')) &lt;div class="w3-panel w3-green w3-dis...
2
3,254
How to minimize the lag from the live stream using OpenCV/EmguCV WPF
<p>I am using EmguCV to get a live stream from a high-resolution webcam. (full HD) The issue is that there is a significant lag in the video. I compared with the Windows camera app and my application is much more delayed.</p> <p>Here is the code snippet I am using to get the live stream and show on the canvas. I am wo...
2
1,047
Bootstrap Modal in a While Loop
<p>I'm using Advanced Custom Fields plugin with Wordpress and Bootstrap for style.</p> <p>I'm having problems with a while loop to show some custom posts. Just the <strong>first</strong> post content modal-body "</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snip...
2
2,899
Can't create SimpleXMLElement from SOAP response of PHP Soap Client object
<p>I have created a site where a user can enter certain search parameters which are then fed into an XML SOAP Request in PHP to retrieve relevant data from a Web Service.</p> <p>I am retrieving this data but am having trouble extracting it from the Soap Client object it is returned in. Here is my PHP code:</p> <pre><...
2
3,413
Blogger Blogspot different header1 image for Mobile from Desktop
<p>looking to show a different background image on my mobile template theme versus the desktop theme on blogger/blogspot blog.</p> <p>Currently it is showing the same image uploaded for the desktop theme in Layout/Header1 Widget. </p> <p>The code snippet below shows the Header1 Widget. I would like to A: Use an image...
2
2,701
getting TypeError: Expected int32, got None of type 'NoneType' instead
<p>I have implemented sequence to sequence model with attention layer if I 300000 data points I'm not getting any error if I use all of my data points I'm getting following error model.fit</p> <pre><code>TypeError: Expected int32, got None of type 'NoneType' instead. </code></pre> <p><a href="https://i.stack.imgur.com/...
2
1,751
How to migrate mysqli to pdo
<p>Hi I was wondering how I would migrate a mysqli php file to use PDO. Would anyone be able to take a look at my code and see if I'm on the right track?</p> <p>This is my original (mysqli) code:</p> <pre><code>&lt;?php // connecting to database $conn = new mysqli('xxxxxx', 'xxxxxx', 'password', 'xxxxxx'); ...
2
1,185
Display other form elements based on radio selection
<p>I'm trying to display a specific block of html with some form elements based on whatever is selected in a radio button.</p> <p>Below is the framework of what I have, I didn't include any of the JQUERY that I tried because I couldn't get anything to work. Any chance someone could help me fill in the blanks?</p> <p>...
2
1,493
Referencing documents with @DBRef annotation on a Set
<p>I have the following class, which is a part of a larger domain structure. In other words, <code>Squad</code> is not the base of the document:</p> <pre><code>public class Squad { @DBRef private final Set&lt;Player&gt; players; public Squad(Set&lt;Player&gt; players) { this.players = ImmutableSet.copyOf(O...
2
7,206
Single Log Out not working in keycloak and spring security
<p>I'm using keycloak server along with its spring security adapter to secure two sample apps. Everything works fine, except that there's no Single Log Out solution out of the box. Is there any specific configuration for that?<br> <strong>Edit</strong><br> Here is my logout button: </p> <pre><code> &lt;c:url var=...
2
1,863
Primefaces dialog glued to right screen border after resize
<p>I've got a dialog with selectOneMenu. User chooses the decision, presses 'ok' and dialog content changes according to decision (rendering content1.xhtml or content2.xhtml).</p> <p>The problem is that initial combo is very small, whereas content1.xhtml contains a wide table. When user chooses 'decision1' and presses...
2
1,302
PHP SOAP request all lowercase
<p>I have created a web service and have used soapUI to verify that it works correctly. However, the PHP client is getting a fatal error when attempting to access it. </p> <p>I have a try/catch set up so that I can view the output SOAP Request and do a <code>var_dump</code>. When I view the request and <code>var_dump<...
2
1,622
algorithm for largest island in a given matrix
<p>Given a 2 X 2 matrix, return different island sizes that is possible</p> <p>For example, the following matrix should return <code>[5, 7]</code>.</p> <pre><code> 1 0 0 0 1 1 1 1 1 1 0 0 0 0 0 1 1 1 1 1 </code></pre> <p>This is fairly straightforward problem. I am using a boolean visited matrix of same size ...
2
1,044
I'm reading line by line from a text file but in the messagebox.show I see the same first line all the time
<p>In the constructor I did:</p> <pre><code>binFileToRead = @"d:\DenyTextHaunted.bin"; r = new StreamReader(binFileToRead); f = r.ReadToEnd(); translatedFile = @"d:\binText_1.txt"; h = new StreamReader(translatedFile); test(); </code></pre> <p>Now the code in test()</p> <pre><code>private void test() { S...
2
3,910
RuntimeException: Unable to resume activity
<p>I am newbie in Android and trying to create a database with two tables, but when I fire my project, I got the following errors in logcat:</p> <pre><code> 05-04 11:21:29.678 1634-1634/com.example.keco.myapplication E/SQLiteLog﹕ (1) near "TABLEstudents": syntax error 05-04 11:21:29.680 1634-1634/com.example.k...
2
2,423
Error: "The type cannot be used as type parameter in the generic type of method." Can this be solved with constraints or casting?
<p>I ran into a compilation error while working on an experiment with factories. This is not an actual factory implementation I would use, as I would probably use a DI system in real code. I wanted to state this up front since that's not what I'm looking for help with.</p> <p>What is confusing me with the snippet belo...
2
1,091
Calculating Josephus Permutations efficiently in Javascript
<p>While training in code-wars I came across a challenge about Joseph-permutations, I tried solving it on paper first and latter translate it to code.</p> <p>The problem is as follows: "Create a function that returns a Josephus permutation, taking as parameters the initial array/list of items to be permuted as if they...
2
1,273
DBCC SHRINKFILE failing
<p>I'm trying to shrink a database on a test system but the file won't get any smaller. The size of the mdf file is 47 GB and unused space is 38 GB. A lot of data was removed from the database hence the large amount of unused space. </p> <p>The following error appears: Start dbcc shrinkfile ( Olympus_dat, 46912 ) at 2...
2
1,550
snakemake - checkpoint and wildcards
<p>I have a snakemake workflow, which fails, because the last job creates either two output files, or none. I tried solving it with checkpoint, but I think I am stuck with the wildcards when trying to collate the outfiles in the aggregate function.</p> <p>The workflow (1) creates a fasta file from a biom community pro...
2
2,010
Blend mode on svg image
<p>Why blend mode works on a normal image (img tag) but not inside an svg (image tag)? Look at the example below to understand what I'm trying to achieve (I also want to keep the background clipped like the first image):</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"...
2
1,045
Show a link based on a condition in angularJS
<p>I'm creating a navigation bar in AngularJS. I am showing and hiding the submenu 'div.farm-links' on mouseover and mouseleave respectively on 'div.menu-links'.</p> <p>Now, in my submenu whenever 'child.thirdLevelChildList.length' is more than 5, it should show 5th link as 'View all' and hide all the remaining links....
2
9,403
Android WebView: cannot save or upload image taken with camera to HTML5 canvas, but can upload existing images from storage
<p><strong>Background:</strong> I'm trying to build a very basic WebView app for accessing a responsive web app/website I recently built. One feature in the website involves a "choose photo" button that allows the user to upload an image to an HTML5 canvas for temporary image review and data extraction. This button is ...
2
7,944
Handle multiple forms with dynamic HTML element ids through jQuery
<p>I have a situation where my php page generates multiple forms based on the data received through a third party api.</p> <p>My requirement is to handle a jQuery modal confirmation for these dynamically generated form elements but I'm at a loss since jQuery is unable to handle this in my case.</p> <p>I have tried JS...
2
1,381
MapReduce - reducer does not combine keys
<p>I have a simple map reduce job where I am building reverse index.</p> <p>My mapper works correctly (I checked that) and outputs the key pair of word and docID:TFIDF value:</p> <p>Mapper (only the output shown):</p> <pre><code>context.write(new IntWritable(wordIndex), new Text(index + ":" + tfidf)); </code></pre> ...
2
1,363
How to bind observableArray by index to the element
<p>I've been developing a web application that will display a table containing list of candidates. I want to display the candidate collection (get from the server) to the table, but with fixed row count to display, let's say 5 rows. So if the collection only have 2 candidates, the table will be having 5 rows, with the ...
2
1,155
It is not possible to use the google maps API with Angular 2 (http.get)
<p>I need some guidance in this matter. I am using Angular2 and I just want to use the google maps API (distance Matrix API) to calculate the distance between two points.</p> <p>I tested first the link at the browser (sorry the google Maps API Key is not attached): <a href="https://maps.googleapis.com/maps/api/distanc...
2
1,480
Heroku push failing, perhaps timeout from rubygems
<p>I'm trying to push to heroku using</p> <pre><code>git push heroku master </code></pre> <p>It gets stuck when trying to access rubygems:</p> <pre><code> -&gt; Heroku receiving push -----&gt; Removing .DS_Store files -----&gt; Ruby/Rails app detected -----&gt; Installing dependencies using Bundler version 1.1...
2
1,799
How to call this API in Kotlin?
<p>I'm trying to call this API: <a href="https://dog-facts-api.herokuapp.com/api/v1/resources/dogs?number=2" rel="nofollow noreferrer">https://dog-facts-api.herokuapp.com/api/v1/resources/dogs?number=2</a></p> <p>As you can see, it returns a Json with random facts about dogs, my problem is when I put my baseUrl with re...
2
1,063
Django - Can't Initialize Selected Radio Button when using ModelChoiceField with RadioSelect Widget
<p>I have a form that I want to be pre-populated with data from a model instance when a user is attempting to update an existing database record. When the form is rendered none of the radio buttons pre-selected even though a model instance has been passed to the ModelForm. In a much larger form than listed below, all o...
2
1,192
'loadComplete' event on jqGrid doesn't work if a function is called directly. If we wrap it in anonymous function it works fine
<p>If I use this:</p> <pre><code>loadComplete: rowCount() </code></pre> <p>it's not working.<br> I want to know reason why it is not working if we call directly.</p> <p>Code Snippet:</p> <pre><code>function rowCount() { var recCount = $("#fbDetailTable").jqGrid('getGridParam', 'records'); if (recCount == 0...
2
1,342
Configuring Unity to intercept an interface using both an InterfaceInterceptors and a method interceptor
<p>What I'm trying to do is to make unity register two different InterceptorBehaviors on an object. I've found two examples of applying interceptors through the container. They seem to work individually but when I attempt to use them together it appears that the Interface interception behavior doesn't attempt to determ...
2
1,091
Rejected app No full-size app banner for Android TV on Google Play
<p>I tried to submit an app for Android TV on Google Play, my app is rejected</p> <p><strong>No full-size app banner Your app does not contain a full-size app banner or is it not visible in the launcher. We are targeting 1080P, which we consider xhdpi. Apps should include the banner in the xhdpi (320 dpi) drawables fol...
2
2,357
UIView removeFromSuperview inside animation PROPERLY
<p>Now, this question have partially been asking alot, but none actually considering how (or when) the messages <code>-viewWillDisappear</code> &amp; <code>-viewDidDisappear</code> are being sent. Almost every example use the following design:</p> <pre><code>[UIView animateWithDuration:0.5 delay:1.0 options: U...
2
1,628
How to start a new activity on navigation drawer item click
<p>I've created a custom list navigation drawer in my app and i want it to start a new activity when an item is clicked. I've tried a lot of the solutions suggested in other similar questions but none of them seem to work for me. Here is my Main Activity code.</p> <pre><code>package com.nav.drawer; import android.con...
2
2,135
Transactionrequiredexception, no transaction in progress
<p>I've been currently working on a Maven + Spring + Hibernate project. Actually, this is just a test project just to get familiar on how Spring works with Hibernate (+Maven). I've already setup and prepare the necessary dependencies. i.e. the appcontext.xml for Spring, the persistence.xml for Hibernate, the entity and...
2
2,643
How can I keep the menu open on page reload using an accordian drop menu?
<p>I am trying to achieve keeping the menu open on the tab selected as the page reloads to the link clicked.</p> <p>Here is the html code:</p> <pre><code>&lt;nav&gt; &lt;ul id="nav"&gt; &lt;li&gt;&lt;a href="#"&gt;&lt;img id="icon" src="icons/setup(48).png" /&gt;Setup&lt;/a&gt; &lt;ul&gt; &lt;li&...
2
1,510
What does an illegal class literal mean when trying to run a program?
<p>I have created a project in Dr. Java which after compiling can automatically be converted into a Jar file to then converted into an <code>.exe</code> however I keep getting this error:</p> <pre><code> Illegal class literal </code></pre> <p>when i try to test run the project any idea why this would be happening?</p...
2
3,149
Read image files and display it on SVG issues (JavaScript)
<p>I have been playing with the FileSystem API for JavaScript, I already succeeded at store the file to the file storage provided by the API,</p> <p>I tried to read the file that was stored, which is a JPG image, and read it using the <code>FileReader</code> with the <code>readAsDataURL</code> method, so I can display...
2
1,539
Need help to write jasmine unit test case for print functionality
<p>I have searched solution for this scenario. I found nothing. So, I am posting as a new question. I have a method in component which prints data in document like (control+P). </p> <pre><code>printContents; popupWin; print(): void { this.printContents = document.getElementById('print-section2').innerHTML; ...
2
1,058
How to make style="?attr/actionButtonStyle" workable for rectangle toolbar button
<p>In our previous holo designed app (<code>targetSdkVersion</code> 21, with theme <code>Theme.Sherlock.Light.DarkActionBar</code>), we are using system style attribute <strong><code>attr/actionButtonStyle</code></strong> to define our custom action bar button style.</p> <h2>actionbar_custom_view_done_discard.xml</h2>...
2
2,369
Import CSV with power query vba
<p>I would like the user to select a csv file and import the file using power query. I'm stuck and have difficulties to find the answer I'm looking for. This is what I have so far:</p> <pre><code>Dim importPathVar1, importPathVar2 As Variant Dim Filename As String i = 1 With Application.FileDialog(msoFileDialogFileP...
2
1,512
Tomcat started but application is not running
<p>I created a spring application and deployed it in tomcat server (Tomcat v5.5 Server). I checked in tomcat manager and found my application is listed.But while i try to run my application,i am getting a page showing </p> <p>**This program cannot display the webpage </p> <p>Most likely causes: You are not connected ...
2
7,130
Android Collapsing Toolbar not using inertia like Google Play App does
<p>I'm using the Android Design Support Library to create an Activity with a Collapsible Toolbar with a nice fading effect, just like Google Play or Whatsapp's Contact profile. I will put the activity layout at the end but bear in mind this is just the default Collapsible Activity layout to which I added an ImageView t...
2
1,837
Android Studio SQLite Query to listview
<p>I have spent days going through the forums and have come up with no solution.</p> <p>I am trying to retrieve all records from a database and show them in a listView</p> <pre><code>public class list_loans extends Activity { ListView loanList; @Override protected void onCreate(Bundle savedInstanceState)...
2
1,552
Error: AMQ154003: Unable to connect to JMS ActiveMQ using Wildfly
<p>I'm trying to create a simple JMS ActiveMQ connection in WildFly 19, using IntelliJ. I've followed setup guidelines, but I'm hitting a connection error.</p> <p>I'm running Wildfly as a local server, in standalone mode. I've updated the Startup Script environment variables in IntelliJ, to point to standalone-full.xm...
2
7,477
How to use jQuery to get Input Field Value of dynamic table
<p>I'm currently using <strong>Meteor/Blaze framework</strong> to build a table. The row in the table will change according to the selected supplier. I have added <code>class={{_id}}</code> to the field and <code>q.{{_id}}</code> , <code>lot.{{_id}}</code> , and <code>exp.{{_id}}</code> to the quantity, lot , and expir...
2
1,546
Visual Studio separate .h and .cpp files for a set of functions
<p>I'm trying to get used to Visual Studio's c++ environment and I'm having an issue with a set of functions which I wish to define into their own .h and .cpp files. </p> <p>Within my project, there is a file containing some common variables and definitions called "common.h".</p> <p>So far I have a simple main.cpp a...
2
1,061
How to decode a JSON into a pandas dataframe?
<p>I am trying to decode a JSON I get from a RESTful API into a pandas dataframe. Here is snippet of how the JSON looks like:</p> <pre><code>{ "success":true, "data":[ { "id":26, "name":"A", "comment":"", "start_time_plan":null, "start_time_actual":"2016-09-13 0...
2
1,327
Slow graph rendering with ggplot2 / Rstudio - GPU issue?
<p>I am making a graph from table that contains circa 500k rows using ggplot2.</p> <p>On my ubuntu 20.04 laptop (CPU i5 8265U) it takes around 15 sec and displays correctly in the plot tab of Rstudio. Now i just got a PC with win 10, a better CPU (i5 10400F) and a GPU (GTX 1660 Super). The same graph takes forever to ...
2
1,410
React Hot Loader - Ignored an update to unaccepted module
<p>I am new to React and React Hot Loader. I have a Symfony 2.7 application and started to use webpack and react.</p> <p>In general everything works fine, but when I want to use Hot Reloading, I get the error:</p> <pre><code>Ignored an update to unaccepted module ./app/Resources/js/app.js -&gt; 0 [HMR] The following ...
2
1,634
jQuery plugin Validation email check if else CRAZY WIERD
<p>I have successfully implemented the Jquery Validation Plugin <a href="http://posabsolute.github.com/jQuery-Validation-Engine/" rel="nofollow">http://posabsolute.github.com/jQuery-Validation-Engine/</a> but i am now trying to get an ajax database email check to work (email exists / email available) and i have written...
2
3,342
How can I set a gradient color shade in DT::datable colums?
<p>I've got a shiny App where I want to fill numeric column spaces of a matrix output with different colors from low to high according each row value (all of them but 'topic'). I saw <a href="https://rstudio.github.io/DT/functions.html" rel="nofollow noreferrer">in this link</a> a way to color spaces with <code>color =...
2
1,187
Eclipse error: "make: *** No rule to make target `all'. Stop."
<h1>Background for the question</h1> <p>When I studied CS in the university, we had to build a CBIR project with C (and we got C++ file that does all the "hard work" of image processing). </p> <p>Now I'm trying to create this project in Java. </p> <p>I didn't know how to implement in Java some of the things in that ...
2
1,940
jQuery and Spring-Boot file upload causes "Required request part 'file' is not present"
<p>I have a file I'm trying to upload to my spring-boot microservice. I'm using jQuery to post file using the FormData javascript object. Spring-boot is not calling my endpoint in my controller due to the failure to match my FormData's file to a RequestParam file.</p> <p>JavaScript:</p> <pre><code>var name = "TEST";...
2
4,921
Is it a bug in Kivy? DropDown + ScreenManager not working as expected
<p>I've reproducable difficulties using ScreenManager and DropDown, if there are screens before the screen with the DropDown. I'm struggling with this for days now, since I'm a beginner, I assumed it's my fault here.<br> I melted the code down to the core of the problem, so that my intended functionality is lost. Inte...
2
1,663
IllegalTransactionStateException when running in Jetty
<p>I have a WAR application as follows:</p> <ul> <li>JPA/Hibernate 4.1.9.Final</li> <li>Hibernate Envers 4.1.9.Final</li> <li>Spring 3.1.3.RELEASE</li> <li>Spring MVC with JSON/REST</li> </ul> <p>My frontend (web page) makes a request, this leads to a new entity to be saved (this seems to succeed in any case) and the...
2
1,081
Data transfer between JSF pages in separate projects
<p>Two JSF/JSF pages and associated managed beans in two separate projects (maybe different servers) Name them PageA.jsp and PageB.jsp with BackingBeanA.java and BackingBeanB.java (again, separate projects)</p> <p>Desire is to redirect from PageA.jsp to PageB.jsp and pass an object (FilterData)</p> <p>The following w...
2
1,233
How can we filter subquery in oracle?
<p>The query I am using is</p> <pre><code>select count(*) as count, TO_CHAR(firstTable1.firstTable_date, 'DD-MON-YY') as dateAndTime from ( select * from firstTable where firstTable_status = 'Open' and firstTable_date &gt; sysdate-10 ) firstTable1 group by TO_CHAR(firstTable1.firstTable_date, ...
2
1,063
Creating a multi-step form using a ModelForm in Django
<p>I am attempting to create a multi-step ModelForm using a library called <a href="https://django-formtools.readthedocs.io/en/latest/wizard.html#how-to-work-with-modelform-and-modelformset" rel="nofollow noreferrer">FormWizard</a>. However, I am having difficulty getting the results I want.</p> <blockquote> <p><str...
2
2,426
These policy alternatives can not be satisifed
<p>So I am trying to test a SOAP endpoint with SoapUI. </p> <p>This is how my SOAP request looks like </p> <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://docs.oasis-open.org/ws-sx/ws-trust/200512" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-...
2
1,671
Database is locked - how to fix?
<p>I set <code>fireBase</code> in my project and in <code>crashReporting</code> show bellow errors :</p> <pre><code>Exception java.lang.Throwable: android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode #################################################...
2
8,803
Running google-chrome in chroot
<p>I've installed schroot by following <a href="https://wiki.debian.org/Schroot" rel="nofollow noreferrer">https://wiki.debian.org/Schroot</a> Than after going into my newly created chroot I've done</p> <pre class="lang-sh prettyprint-override"><code>$ sudo schroot -c google-chrome $ cd ~ $ apt-get update $ apt-get in...
2
1,314
'Prism.Modularity.ModuleTypeLoadingException' in Prism.Wpf.dll is thrown when Prism 6 WPF application is starting
<p>When my Prism 6 WPF modular application using Unity is starting then "Prism.Modularity.ModuleTypeLoadingException" in Prism.Wpf.dll is thrown. Below is screen shot of the exception:</p> <p><a href="https://i.stack.imgur.com/vqxP1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vqxP1.png" alt="en...
2
1,155
How to Generate XML from Database
<p>I am fetching data from two tables CARRIER_IFTA ,IFTA_NAME. My Select Query is like below..</p> <pre><code>SELECT t1.IFTA_LICENSE_NUMBER,t1.IFTA_BASE_STATE,t2.NAME_TYPE,t2.NAME from CARRIER_IFTA t1 inner join IFTA_NAME t2 on t1.IFTA_LICENSE_NUMBER=t2.IFTA_LICENSE_NUMBER </code></pre> <p>My Data is coming in ...
2
1,805
java.net.SocketException: Permission denied: listen failed with Gradle
<p>On my console: my server is running fine with <code>gradle run</code>, but when I go into my website\trunk and try to run <code>gradlew appRun</code>, I get the following errors. </p> <pre><code>java.net.SocketException: Permission denied: listen failed </code></pre> <p>I have checked my firewall settings, and al...
2
3,488
gradle installDist: How do I prepend the group id to dependency jar name (clashing due to different group id but same artifact id and version)?
<h3>The problem in Gradle</h3> <p>I have this <code>build.gradle</code> in a directory named <code>proj</code>:</p> <pre><code>apply plugin: 'java' apply plugin: 'java-library-distribution' repositories { mavenCentral() } dependencies { compile 'com.davfx:util:1.0.0' compile 'org.johnnei:util:1.0.0' } </c...
2
1,325
Rotating views in a LinearLayout problem
<p>I have a LinearLayout with a vertical orientation, within that layout I have three buttons (ImageButtons to be exact) and when the orientation changes (via an OrientationEventListener) I have them set to perform a rotation animation. The top and bottom buttons rotate perfectly, however the middle one does not. Its...
2
1,129
why universal links are not working even though validated right by apple?
<p>When validating my apple app site association file, I get passed for the main domain and sub domains</p> <p><a href="https://i.stack.imgur.com/o33xs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o33xs.png" alt="aasa"></a></p> <p>and of course have entitlements enabled and added</p> <p><a href...
2
4,935
Build MSI in Azure DevOps using Wix Toolkit
<p>I have a Visual Studio solution consisting of two projects; MyProject and MyProject.Installer where the latter is a Wix Toolset project. I do <strong>not</strong> reference MyProject from the Wix project because I do not want the typical build output, but rather the stand-alone binaries (see pipeline).</p> <p>I do a...
2
1,119
Spring: bean conflict with existing non-compatible bean
<p>Our project uses spring 2.5.5 and Tomcat. I have just migrated tomcat from 5.5 to 7. But when tomcat loads webapp context, we get this exception . It seems spring scanned all the same components at least twice. Has anybody met this exception before?</p> <pre><code>Aug 16, 2012 1:54:36 PM org.apache.catalina.core.A...
2
3,536
Simple switch in "for" loop and toLowerCase() method
<p>I am very much a beginner in Java. I am making a simple switch, in which the user is entering a number in words. For training I added a "for" loop.</p> <pre><code>package JavaExc; import java.util.Scanner; public class JavaStart { public static void main(String[] args) { Scanner sck = new Scanner(Sys...
2
1,047
Unable to insert row into table using an Oracle Connection
<p>I would like to know what's the problem, or your advice to connect to Oracle. I'm trying with this but when I try to insert values, it doesn't work.</p> <p>I'm using the Visual Web Developer 2008 and when I add a database on Database Explorer connections, it's working. But when I try to connect via this connection ...
2
1,233
current user id saved from _form or controller
<p>I'm using Devise to manage users and my goal get the current user to be saved with the created record.</p> <p>I have tried to save the current user in the controller or in the _form, but either ways it has failed!</p> <p>Thank you all for your help.</p> <p>My record Model</p> <pre><code>class Record &lt; ActiveR...
2
1,808