title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Eclipse Tomcat Error in Mac OS X | <p>I'm getting the following <strong>error</strong> when I try to run <code>Tomcat</code> from my <code>Eclipse</code>. </p>
<p>Till yesterday it was working fine. </p>
<p>I'm a beginner, please do help me:</p>
<blockquote>
<p>SEVERE: A child container failed during start
java.util.concurrent.ExecutionException:... | 2 | 2,623 |
Why is my Shiny app not working? ' there is no package called 'tidyverse' ' | <p>So, I wonder if anyone has a clue about this.</p>
<p>I have an app which works on my computer, but when I try to deploy it using shinyapps.io, I get nothing but an error message.</p>
<p>This is the error message I get:</p>
<pre><code>Error in value[[3L]](cond) : there is no package called ‘tidyverse’
Calls: local ..... | 2 | 1,603 |
ASP.NET Repeater, need new row after every 5 items | <p>So I have a repeater as follows :</p>
<pre><code> <asp:Repeater ID="footerMenuRepeater" runat="server" onitemdatabound="FooterMenuRepeaterItemDataBound">
<HeaderTemplate>
<ul id="mainMenuList">
</HeaderTemplate>
... | 2 | 3,915 |
Buttons in TableLayout cropped on Android 1.6 and 2.1 (but not on 1.5 or 2.2) | <p>I have four buttons arranged in a 2x2 TableLayout. These buttons each have an image on the left and some text. The buttons display fine in the emulator for 1.5, and for 2.2, but when testing with 1.6 the two buttons in the righthand column are cropped so that they are missing their righthand edge (the padding to t... | 2 | 1,025 |
TensorFlow takes too long to load data into a tf.Dataset | <p>I am using TensorFlow 1.9 to train an image dataset, which is too big to load from my hard drive into RAM. Therefore, I have split the dataset into two halves on my hard drive. I want to know what is the most efficient way to train on the entire dataset.</p>
<p>My GPU has 3 GB of memory, and my RAM has 32 GB of mem... | 2 | 1,217 |
Some parts of Javascript not working in Chrome, but work perfectly in other browsers | <p>General information: I'm trying to create a popup modal window to verify customer zip codes - the website is only for people within a particular range of codes, so I just need it to pop up, take their input, and if they're eligible to shop, close, let them shop, and not show up again at least for the session, and if... | 2 | 1,934 |
java - cannot split string on newline from JSON | <p>I'm writing a simple java program to read JSON file and extract certain information out of it. However, the String's split function does not split the string on <code>new line</code> OR <code>\n</code> character.</p>
<p>Following is my JSON file - <strong>sample.json</strong></p>
<pre><code>{
"seleniumLog": [
... | 2 | 4,078 |
Namespaces not working with Codeception (Yii2) | <p>Im using Codeception in Yii2 to make acceptance tests and there's no way to access my models because namespaces are not working into these tests.</p>
<p>I have this in my tests/_bootstrap.php</p>
<pre><code> require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
$con... | 2 | 1,223 |
How can I successfully use the Jackson "ObjectMapper()" inside a "process()" method | <p><strong><em>PROBLEM: using Jackson's "ObjectMapper()" within the "process()" method causes an exception...</em></strong></p>
<pre><code>public void process(org.apache.camel.Exchange exchange) throws IOException {
//...this statement causes the exception...
com.fasterxml.jackson.databind.ObjectMapper om = n... | 2 | 9,810 |
how to retrieve info from datastore using google app engine and display it in a list view on an android app using java? | <p>I am trying to make an android app that retrieves info from google app engine datastore and display it as a listview in the android app..can anyone help me out with some code or explain what exactly needs to be done for this purpose? i have already made modifications on the server side to store data on the datastore... | 2 | 1,037 |
Pass value to next page on table row click? | <p>I have a table that is not currently clickable. On row click, I would like to go to a detail page from this table, passing the id value in the process.</p>
<p>I understand I need to make an href on the table row and somehow pass the id value on click, but am not clear on how to do this. Relevant table and php:</p>
... | 2 | 3,638 |
loading modules and factories files using angular ui routing and ocLazyLoad | <p>i', using angular ui routing with ocLazyLoad to load the appendices files according to the choosen stat as the following code shows </p>
<p>my problem is: </p>
<p><strong>when i load a new state and click refresh sometime the factories is not initialized</strong> -i think it's because the files is not fully loaded... | 2 | 1,781 |
number of factors of n that are less than square root of n | <p>i want to find number of factors of a number say 900 that are less than its square root.
eg: there are 27 factors of 900 and i want to find number of factors smaller than root of 900 i.e, 30 which are 1,2,3,4,5,6,9,10,12,15,18,20,25.</p>
<p>i currently have this program that finds the number of factors by calculati... | 2 | 1,173 |
Button Listener not get registered on first click In android | <p>As i am new to android here i got the problem for button listeners
I am using OnClickListener for busttons but it <strong>doesnot performs after first click</strong> once i click more than one it performs well but how to make it possible on first click it self
here is my code:</p>
<pre><code>public class DashbordA... | 2 | 1,160 |
R - Color or shade area between lines | <p>I'm trying to replicate with R a chart I made on Excel, which should represent a 95% Confidence Interval (CI) around a time series forecast. The Excel chart looks like this:</p>
<p><a href="https://i.stack.imgur.com/LIp6Q.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LIp6Q.jpg" alt="enter image... | 2 | 9,192 |
JavaFX - Notify when user drags mouse from one Node to another? | <p>I have the following basic GUI for demonstration:</p>
<p><a href="https://i.stack.imgur.com/CZadU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CZadU.png" alt="enter image description here"></a></p>
<p>I'm trying to achieve the following functionality but I've exhausted all avenues that I've a... | 2 | 2,092 |
Update a UILabel using string value from another class in Swift | <p>How do I used a string value from a function in a another class to update an UILabel on my ViewController?
Here is my code:</p>
<p>View controller:</p>
<p>import UIKit</p>
<p>class ViewController: UIViewController, dataEnterdDelegate {</p>
<pre><code>@IBOutlet weak var auaTempLabel: UILabel!
override func viewD... | 2 | 1,580 |
paypal iOS integration | <p>I did button and when I pressed it call this method and on iPhone simulator 5 I got error and on iPhone simulator 4.3 work success but after more than one touch on button: </p>
<pre><code>- (void)simplePayment {
//dismiss any native keyboards
[PayPal initializeWithAppID:@"APP-80W284485P519543T" forEnvironment:ENV... | 2 | 1,096 |
eslint not linting though server is running | <p>I downloaded a frontend template online and yarn installed all packages and an .eslint.json file does exist and the extension is installed in Visual Studio Code but it does not show any linting errors.</p>
<p>Here is my .eslint.json file</p>
<pre><code>{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVe... | 2 | 1,463 |
How to start a Runnable? | <p>I need from my Class that implements <code>Runnable</code> was opening my Java EE application 7 Spring MVC. I declare my class in the <code>servlet.xml</code>:</p>
<pre><code><beans:bean class="MyClass" scope="singleton">
</beans:bean>
<annotation-driven />
<context:component-scan base-package=... | 2 | 1,058 |
html drop down menus not working in firefox and everything is wrong in older versions of IE | <p>Good evening everybody I am having trouble with my drop down menu's in firefox and IE.</p>
<p>I mistakenly developed this page and tested everything on chrome but when a buddy was checking it for me he used firefox and said he was not able to use my navigation. Could somebody please point me in the right direction ... | 2 | 2,219 |
Lodash in Angular JS - getting TypeError: Object function lodash(value) | <p>i've created an application in angular for performing a simple calculator.
The application works fine (<a href="http://jsfiddle.net/pz5Jc/5/" rel="nofollow">demo</a>) but here in the controller within the calculate method i've wrote some arithmetic calculation in javascript. So to make my angular code clean i create... | 2 | 1,147 |
angular gulp - how to split js file in dist folder according to each src folder | <p>i'm using <a href="https://github.com/Swiip/generator-gulp-angular" rel="nofollow">gulp-angular</a> for my projet and my problem is that i don't have enought experience with node and gulp to modify the default scripts task.</p>
<p>I want to be able to generate for each folder of my app to create an optimized js fil... | 2 | 1,693 |
How to send GET value and php available to another page using ajax? | <p>First i access to </p>
<pre><code>www.mysite.com/index.php?order_by=id asc
</code></pre>
<p>i want to sent <code>$name</code> AND <code>$_GET[order_by]</code> to <code>autoload_process.php</code> , How can i do ?</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>index.php</p>
<pre><code><!DOCTYPE html>
<html>
<... | 2 | 1,930 |
Configuring Jetty component in Camel 2.15 | <p>I'm trying to start using Jetty with Camel.
I have added the dependency to my pom:</p>
<pre><code> <dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jetty</artifactId>
<version>2.15.5</version>
</dependency>
</code></pre... | 2 | 1,029 |
How do I remove repeated column values from report | <p>FROM THIS: </p>
<pre><code>Hotel Type Room Guest From To
------------------------- ------ ---- ----------------------------------------- --------- ---------
University Inn & Suites Double 101 George Brown 11-S... | 2 | 1,743 |
jquery validation div | <p>I am using <strong>jquery.validate.js</strong> plugin for a dialog validation. My problem is that I would like on submit only the first problematic field to get a class and the field error to be displayed as a tip in a fading out div next to the field. (write now the plug in adds labels on every field)</p>
<p><img ... | 2 | 1,308 |
Could not deploy Spring-Boot war in tomcat with maven.compiler.source 1.8 | <p>I have written a simple getting started spring boot web application that I want to deploy in a tomcat (8.0.28). </p>
<p>Here is the Application.java file: </p>
<pre><code>package deployablewarsample;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplica... | 2 | 2,627 |
TypeError: Cannot convert undefined or null to object | <p>I'm a beginner here and i was working with some react course from udemy and while everything was working perfect and fine and all my files are double checked with the instructor by myself but at this point it is throwing an error which i'm unable to figure out.</p>
<p>the error is thrown as shown below.</p>
<pre><... | 2 | 1,551 |
400 bad request despite correct request handling | <p>I am having trouble getting an AJAX request to work. From this earlier thread it appears the request handler and hooks to register the handler are not the issue: <a href="https://stackoverflow.com/questions/55975499/wordpress-ajax-request-logs-400-bad-request-to-console/55979756?noredirect=1#comment98610957_55979756... | 2 | 1,467 |
Passing javascript variable to Paypal | <p>I am trying to pass a variable amount (this being the total order value) to the 'amount' variable in a paypal form. However, the value is generated from a drop down list. I've scoured the forums and tried a few things, but can't find what I thought would be a simple solution.</p>
<p>Below is the code. </p>
<p>As y... | 2 | 2,027 |
Authorization header not present in Graphql Request | <p>I have a:</p>
<ol>
<li><p>Frontend: React, Next.js. Uses apollo client. </p></li>
<li><p>Backend: NodeJs, Express server with a GraphQL endpoint.</p></li>
</ol>
<p>I apply a cookie to the GraphQL apollo client, here is the code of the instantiation. </p>
<pre><code> ({ ctx, headers, initialState }) =>
new... | 2 | 1,134 |
Prevent clicking scrollbar from triggering .blur | <p>I wrote a custom dropdown list for a web app I'm working on and I have a specific set of functionality I want to accomplish with it. First of all, I want the dropdown to stay open if you move the mouse off of the menu. I want it to close when you either re-click the dropdown title, click one of the elements in the d... | 2 | 2,748 |
Why won't my S_ISDIR and S_ISREG return the correct directory/file name? | <p>Why won't my S_ISDIR and S_ISREG return the correct directory/file name?</p>
<p>When I run my program using a test directory that I made with 3 other directories and a text file inside, only the printf() for Dir executes.</p>
<pre><code>#include "dirAssignment.h"
//Struct
typedef struct directories{
}directories... | 2 | 1,293 |
Blackberry MD5 authentication with HTTP Post | <p>I need to send to a server in POST an email (String) and a password (MD5 hash in byte[]).</p>
<p>Below how I get my MD5 hash where "password" is a String (what the user enter):</p>
<pre><code>byte[] passMD5 = Crypto.encodeStringMD5(password);
</code></pre>
<p>And the function:</p>
<pre><code>public static byte[]... | 2 | 1,210 |
ConstraintLayout Stuck at Parent top despite being constrained to View | <p>Searched around, can't find this issue specifically. Created an account specifically to ask WHAT'S HAPPENING HERE?!</p>
<p>Using a ConstraintLayout for the first time - I've had good success, but for some reason CANNOT get two of my Components to play nicely.</p>
<p>Here's what I WANT it to look like (accomplished... | 2 | 8,596 |
ViewModel is Null on HTTPPost | <p>I am new to MVC and I have been struggling with this problem for a few days now.
<br/>
<br/>
When I am posting a form back to the server, the values are always null. I have tried using the model itself, using a collection/list, and the last approach I have tried was using a ViewModel.
<br />
<br />
The Goal I'm tryi... | 2 | 1,820 |
Jackson @JsonProperty create duplicate name | <p>I have a class </p>
<pre><code>import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java... | 2 | 4,582 |
wso2 esb error Cannot get all services. Backend service may be unavailable | <p>Hi am working with WSO2 ESB 4.7.0</p>
<p>I am facing an error while accessing the wso2 esb management console as shown below.</p>
<p>Error says that one of my service is unable retrieve security scenario for service.</p>
<pre><code>The following error details are available. Please refer logs for more details.
org... | 2 | 1,406 |
Application crashes in nvcuda.dll after running for a long time | <p>I have a strange issue when my application crashes in nvcuda.dll after running for about 2 hours. After spending a lot of time trying to debug the issue, I think I have an idea what’s going on but I’d like to know if anybody else has seen this problem.</p>
<p>My application launches most of its kernels in non-defau... | 2 | 2,440 |
Selenium Webdriver Python- Page loads incompletely/ sometimes freezes on refresh | <p>I am scraping a website with a lot of javascript that is generated when the page is called. As a result, traditional web scraping methods (beautifulsoup, ect.) are not working for my purposes (at least I have been unsuccessful in getting them to work, all of the important data is in the javascript parts). As a resul... | 2 | 1,386 |
Yarn install not working after updating node | <p>I'm sorry that this is a very vague question, but I find it difficult with dependency management as sometimes when I get errors, I haven't a clue where to start looking to fix the problem.</p>
<p>I would be very grateful, for any direction or help to show how to fix the problem, and get yarn working again so that I... | 2 | 4,114 |
Running SICP Pattern Matching Rule Based Substitution Code | <p>I have found the code from this lesson online (http://groups.csail.mit.edu/mac/ftpdir/6.001-fall91/ps4/matcher-from-lecture.scm), and I am having a heck of a time trying to debug it. The code looks pretty comparable to what Sussman has written:</p>
<pre><code>;;; Scheme code from the Pattern Matcher lecture
;; Pa... | 2 | 3,748 |
java.util.ConcurrentModificationException while Inserting the values in arrayList | <pre><code>javax.faces.FacesException: #{scheduleBean.insert()}: java.util.ConcurrentModificationException
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
at javax.faces.component.UICommand.broadcast(UICommand.java:315)
at javax.faces.component.UIViewRoot.broadcast... | 2 | 1,509 |
Multiple actions on form using PHP and HTML | <p>I am creating a website, and part of the website should be a Bookings section. I have created a form, and the data entered into this form is to be stored in a database. Up to this point everything works fine. However, I also need to validate the data input by the user. Such as checking that characters only are enter... | 2 | 1,690 |
RecyclerView duplicate issue in Android | <p>Why does my Android RecyclerView duplicate items by scrolling them?</p>
<p>Here is my Code: </p>
<pre><code>import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBar;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.Li... | 2 | 2,146 |
Move an object along a plane in Three.js | <p>So basically what I want to do is when I have a selected object I want to be able to move it around on a plane that is facing the camera. I have OrbitControls.js in the scene so I have to disable that. Here is an example of what I want:
<a href="http://threejs.org/examples/webgl_interactive_draggablecubes.html" rel... | 2 | 4,132 |
Prevent users from registering with same username and e-mail | <p>I am trying to make a simple register page where users register with username, email, password and gender. I somehow stumbled over some problems, the code I made seems to let users register with a username or e-mail that already exists. I tried to prevent this in my code but it doesn't seem like it worked. </p>
<p>... | 2 | 2,470 |
Laravel: Undefined method fake on Laravel storage facades for file upload testing | <p>I am starting to learn TDD by experimenting in Laravel's HTTP test. Here's my test function:</p>
<pre><code>public function testLoginUsingUserDeni() {
$response = $this->json('POST', '/api/v1/login', [
'email' => 'ramadhanrperdana@gmail.com',
'password' => 'secret'
]);
... | 2 | 1,198 |
Error: Cannot GET / [QUASAR FRAMEWORK] [HEROKU DEPLOYEMENT] | <p>I'm trying to publish my Quasar app on Heroku. I'm using Express to serve my front.</p>
<p>I succeed to publish my app on Heroku with that link: <a href="https://quasar.dev/quasar-cli/developing-spa/deploying" rel="nofollow noreferrer">https://quasar.dev/quasar-cli/developing-spa/deploying</a>.
My application is dep... | 2 | 2,607 |
Asp.Net Core - Using Session variables in task | <p>I'm building a simulator with Asp.Net application where simulation is done as a separate task. I'm having problem with accessing data which is processed in this task.</p>
<p>I've tried to access task or threat I created, but don't see a way to track created task. </p>
<p>I've also tried to use Session, but after r... | 2 | 1,627 |
QT Inherit from QTableWidgetItem to Widget and overide '<' operator | <p>I want a <code>QTableWidget</code> with certain cells as customized <code>QProgressBar</code>s, and I want it to be possible to sort the columns containing these.</p>
<p>My customized <code>QProgressBar</code> is inheriting from both <code>QProgressBar</code> and <code>QTableWidgetItem</code>, and I am overiding th... | 2 | 2,171 |
Unable to run on device after migrating to AndroidX. failed for task ':app:mergeDebugResources' caused by Daemon startup failed | <p>Good day everybody,</p>
<p>I recently migrated to AndroidX and encounter some problems. The projects builds ok, but when I try to run on device, I get the error "Process unexpectedly exit." when running tasks. Specifically when it reach es app:MergeDebugResources</p>
<p>This is what i get:</p>
<blockquote>
<p>o... | 2 | 8,987 |
UICollectionView loading with noticeable lag the very first time | <p>I have a simple application that contains an in-app settings <code>Table View Controller</code>. When the user selects the "App Themes" cell, it <code>segues</code> (push) over to a <code>UICollectionView</code> embedded in a <code>UIViewController</code>. </p>
<p>This is 12 Cells in a 3x4 fashion where each cell h... | 2 | 1,792 |
Why can't I get radio buttons when using RadioSelect form in Django? | <p>I am working to build a page where the user can select a month via the use of radio buttons. I also need to collect other information with this such as first name, last name, email, phone number, and company. In doing this, I figured using Django forms should get the job done. I began and implemented everything a... | 2 | 3,321 |
How can I append template arguments repeatedly to a type? | <p>I want to create a metafunction, <code>Append</code> that takes a templated type and adds <code>N</code> number of arguments of type <code>T</code> to the template, for example, if I call <code>Append<2, int, std::tuple<>></code> I want to get <code>std::tuple<int, int></code>.</p>
<p>Here is what... | 2 | 1,464 |
Rails 6 + UJS: make ajax call on blur without jQuery | <p>I have a form with two input text fields. The datalist for the second field needs to be populated when the first field has a value. I have everything working as I want except I can't work out how to fire the ajax call when the first field loses focus (I have put in a link I can click to test everything else is worki... | 2 | 1,367 |
MVC 3 - Passing list of check boxes to and from a controller | <p>I have a list of information sources in a database that I need to pass to a view in MVC. I need an end user to be able to tick the sources of information that apply to their course.</p>
<p>I am able to successfully pass the view a list of information sources alongside check boxes using the following code.</p>
<pr... | 2 | 2,404 |
UWP Binding to ConverterParameter not working | <p>I am binding a VM property to my ConverterParemeter, but it always appear to be <code>null</code> in Converter, is there any alternative to pass property to the converter.</p>
<p>As I can't share the original code, below is the replica of the issue that I am facing. In my DummyConverter parameter is always null eve... | 2 | 2,611 |
Uncaught TypeError: Cannot read property '$bvModal' of undefined vue | <p>I'm guessing <code>this</code> isn't scoped properly in my function, when I try to call
<code>this.$bvModal.show("signinModal")</code> to show my modal I get this error:</p>
<pre><code>Uncaught TypeError: Cannot read property '$bvModal' of undefined
</code></pre>
<p>I know that <code>$bvModal</code> should be sco... | 2 | 1,215 |
Using SoapUI to test a WCF with Basic Authentication | <p>I am new to web service. I want to write a simple WCF with username and password authentication. When using SoapUI for testing, if the security mode is set to none (without basic authentication), it can be called successfully. Once the security mode is set to message (with basic authentication), it cannot return the... | 2 | 2,367 |
React/Firebase - unable to call this.props from within auth function | <p>I have a login function to that authenticates with Firebase and then should call a login function passed down from a parent as props. Here it is:</p>
<pre><code>class HeaderParentComponent extends Component {
toggleSignupLayoverAction(event){
this.props.toggleSignupLayover("true")
}
signIn(e){
... | 2 | 1,359 |
How to check CRC16 validity | <p>I'm working on receiving binary data from sensors for the first time.
The data is base64-encoded, I should decode the data and validate it and then save it to the database. One step of the validation process is to check for the CRC-16 validity.</p>
<p>Each payload I receive comes with a CRC code, I have the function... | 2 | 3,794 |
java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'RegistrationBean' available as request attribute | <p>I am getting this exception :</p>
<pre><code> java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'RegistrationBean' available as request attribute
</code></pre>
<p>This is my controller class</p>
<pre><code>@Controller
public class TenantRegistrationController {
@... | 2 | 4,626 |
SwiftUI - Dynamic List filtering animation flies to right side when data source is empty | <p>I have a <code>List</code> that gets data from my <code>people</code> array and displays their names.</p>
<p>I'm also filtering the list so that it only shows the names that contain the text field's text, which is <code>searchText</code>. Here's my code:</p>
<pre><code>struct Person: Identifiable {
let id = UUID... | 2 | 2,751 |
django.channels async consumer does not appear to execute asynchronously | <p>I have added django.channels to a django project in order to support long running processes that notify users of progress via websockets.</p>
<p>Everything appears to work fine except for the fact that the implementation of the long running process doesn't seem to respond asynchronously.</p>
<p>For testing I have ... | 2 | 1,157 |
Codeigniter 4 filters don't works | <p>hi i want create my own authorization to study the new veri=sion of framework ...
this is my route :</p>
<pre><code>
$routes->add('/user/login', 'User::login',['filter'=>'usersFiltersNoAuth']);
$routes->add('/login', 'User::login',['filter'=>'usersFiltersNoAuth']);
$routes->add('/user/registration', '... | 2 | 1,584 |
Exception created : java.lang.IllegalStateException: Cannot forward. Response already committed | <p>Can any body help me over this...? </p>
<p>Here is my line of code. I am using <code>struts 1.x</code> and I have included two JSP's into a single JSP. My code is as follows. I have debugged it and the request for "LeftMenu.do" is processed at server side and return the <code>actionForward succcesfuly</code> and th... | 2 | 6,960 |
@ExceptionHandler null pointer in console after spring-boot upgrade | <p>Today, I was feeling a bit lucky, so I upgraded from Spring boot 1.5.1 to the latest. When I run my JAR file, everything seems fine at first.</p>
<p>However, when I make a call that is expected to return an error response (negative test - say "record not found"), it returns a properly formatted JSON response as exp... | 2 | 1,649 |
Objective C- iCal not creating custom calendar and new event to it in iOS 9 | <p>This working perfectly in iOS 8.</p>
<p>But creating issue in iOS 9.Here is code :</p>
<pre><code>self.eventManager.eventStore requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted, NSError *error) {
if (granted) {
// Create a new calendar.
EKCalendar *calendar = [E... | 2 | 1,447 |
Swift Combine transform an array of publishers | <p>I'm getting my way through Combine bit I don't seem to wrap my head around some trivial operations. I'm building a Combine based to do some HealthKit operations. Mainly I have two operations:</p>
<ol>
<li><code>func workouts(_ limit: Int) -> AnyPublisher<[HKWorkout], Error></code></li>
<li><code>func workou... | 2 | 1,202 |
Spinner Selected one showing listview in android? | <p>In my app i have a Spinner with list of places(such as airport,mall..).When i click on Airport place from spinner,it should show list of airports auch as(sahara,juhu) below spinner in listview.I have tried this but it mixes list of places of airports and malls.
Whts wrong in this.Plz help me.Below is the json which... | 2 | 4,161 |
Xamarin No resource found that matches the given name (at 'theme' with value '@style/DesignTheme'). App1.Droid | <p>I am new to Xamarin. So I started a shared project. Then I google some link to add material design and did the following.</p>
<ol>
<li><p>I created the styles.xml.(I dont understand why the resources/value folder is not seen in visual studio but when I manually go the directory I could see so I created manually in ... | 2 | 1,543 |
Is this a valid x86 assembly instruction? | <p>I just downloaded the latest version of SmartMusic (http://www.smartmusic.com) and tried running it for the first time.<br>
The thing is, there is an unhandled Win32 exception at the splash screen.<br>
Being a geek/hacker (in the original sense of the word) I of course wanted to find out why things were that way, so... | 2 | 1,162 |
R: stack overflow error with randomForest on large dataset (48-512 GB RAM) | <p>I am attempting an R randomForest analysis in R on a wide genetic dataset(662 x 35350). All variables except the outcome are numeric and 99% of them are binary 0/1. I am quite familiar with R randomForest(), but have only worked with datasets with 5000-10000 variables previously. The next planned phase of analyses ... | 2 | 3,509 |
How can I retry the statements that were not executed after a batch execution fails? | <p>I'm need to update a table with data from a CSV. All data is validated before the update takes place: a validation method (witch is not presented bellow) checks if some assumptions are true and "flags" the object as valid or invalid. I've already test it a lot and it's working exactly as I want.</p>
<p>Even so, I w... | 2 | 1,398 |
JAVA Generic Tree Issue | <p>I am trying to understand generics and the tree structure and stuck on the following issue...</p>
<p>I have created 3 classes
1) Node
2) Person
3) NodeTest</p>
<pre><code>import java.util.*;
public class Node<T>
{
private Node<T> root; // a T type variable to store the root of the list
private... | 2 | 1,535 |
Adding carousel to panel | <p>First program logic:</p>
<p>I have a main panel and there is a list at the left side and another panel at the right side.</p>
<p>When user touches the list item some html appears in right panel. What i need to do is using carousel instead of right panel. </p>
<p>My view </p>
<pre><code> Ext.define('MyApp.view.... | 2 | 1,692 |
JsonPath Path Not Found Exception While Data Driving From Jsonfile So As To Randomize the data | <p>Is there a Issue to use below code,basically data driving from Jsonfile ,I am creating random numbers below that is eventidStart and eventidEnd are fetching their respective values from Json file which is shown below </p>
<pre><code>var idNumbers=(eventidStart to eventidEnd).iterator
def eventidStart: Int = JsonPa... | 2 | 2,835 |
Tensorflow object detection API tutorial error | <p>After struggling with compatibility issues between Tensorflow 2.00 and the object detection API, I downgraded to Tensorflow 1.15 to be able to train my own model. after completing the training I modified the jupyter notebook included in the <a href="https://github.com/tensorflow/models/blob/master/research/object_de... | 2 | 1,717 |
Adding image draft-js-image-plugin | <p>I've tried multiple different ways to try to attach an image in draft-js.</p>
<p>My attempts followed the example in the tutorial <a href="https://www.draft-js-plugins.com/plugin/image" rel="nofollow noreferrer">https://www.draft-js-plugins.com/plugin/image</a>. For the "Add Image Button Example", the full... | 2 | 2,109 |
Getting stackoverflow exception with Parallel for each , is this due to thread saftey? | <p>I have a foreach loop which works Well . But I want to implement TPL , so did the following:</p>
<pre><code>Parallel.ForEach(fileList, currentfileItem =>
{
_clientContext.Load(currentfileItem, w => w.File);
_clientContext.ExecuteQuery();
if (currentfileItem.File == null)
{
throw new E... | 2 | 1,228 |
getMappedResults() doesn't map correctly the raw result | <p>I am having problem getting mapped Result when using unwind operations in aggregation. </p>
<p>Following are my dependencies. Below the dependency I have mentioned the two model classes which I use with the aggregation code at the last. I am getting data in result in native query as well as Spring query. But the di... | 2 | 4,623 |
keycloak error:No access_token from server | <p>When I use Keycloak's function Identity Providers to connect Keycloak and the oauth2 project from spring's official website, Keycloak's console says 'No access_token from server'</p>
<pre><code>ERROR [org.keycloak.broker.oidc.AbstractOAuth2IdentityProvider] (default task-2) Failed to maenter code hereke identity p... | 2 | 3,395 |
'Sequence contains more than one element' (InvalidOperationException) thrown by external System.Core call when using Linq2Sql | <p>firstly let me explain that I fully understand why this <code>InvalidOperationException</code> has been thrown and that I am simply looking for a way to avoid it from being thrown. There is a call to <code>System.Linq.Enumerable.SingleOrDefault()</code> that I can see in the Visual Studio 2010 Call Stack window. How... | 2 | 1,988 |
How to dynamic set top css when element over top page or bottom page? | <p>How to dynamic set top css when element over top page or bottom page ?</p>
<p>First , mouse over first cat image. It's OK</p>
<pre><code>http://image.ohozaa.com/i/480/7YpWei.jpg
</code></pre>
<p>When i scroll page to bottom and mouses first cat image again , </p>
<pre><code>http://image.ohozaa.com/i/5b5/l2l3dj.j... | 2 | 1,681 |
How to fix the "Android MPAndroidChart Could not find method dependencyResolutionManagement() for arguments error in gradle"? | <p>well Im trying to use MPAndroidChart library in Android studio
my gradle version was 7.0.2 but it didnt work well.
so i changed gradle Version to 6.7.1, and Android Gradle Plugin Version to 4.2.2
i also changed the version of sdk to Android 11.0(R)
my Target SDK version is 30</p>
<p><strong>--build.gradle(project)</... | 2 | 1,246 |
Elasticsearch - searching with "keyword" type don't work | <p>I use Elasticsearch Java rest client 6.1. When I try to find logs due to a few parametrs than can be in one field I get nothing.</p>
<p>Here is my code:</p>
<pre><code> @Override
public SearchResponse findLogsByValues(ElasticSearchLogRequest esLogRequest, Pageable pageable) {
SearchRequest searchReques... | 2 | 2,139 |
Running fastapi with motor async framework | <p>I am trying to play around with fastapi by creating a simple mongo based rest api . Below is what i have done so far :</p>
<p>File : <code>mongo.py</code> This has all the code for getting the data from mongo db using <code>motor</code> framework:</p>
<pre><code>"""Module for handling the motor mongo ... | 2 | 3,389 |
Opening native maps app in iOS5 | <p>Hi I recently had to use cordova to open the native maps installed on the device.So far this is what I have done:</p>
<pre><code>function getMapsUrl() {
var isAndroid = navigator.userAgent.match(/Android/);
var isIos = navigator.userAgent.match(/(iPhone|iPod|iPad)/);
if (isAndroid) {
return "geo:0... | 2 | 1,247 |
Angular 2.4 No component factory found. Did you add it to @NgModule.entryComponents? | <p>I was following one of the guides around to add dynamic components.
The only difference I'm seeing with those guides is that I'm launching the dynamic component from a selector (instead of an event like a click event) and also, the angular version (2.4.8 in my case)</p>
<p>Things that I have tried:</p>
<ul>
<li>P... | 2 | 1,488 |
Glide library stopped in AsyncTask.doInBackground | <p>I have a Image URL that I retrieved from database and I want to show it inside image view. I use the Glide library for this purpose but I have an <code>Exception</code> while <code>doInBackground</code> is running.</p>
<pre><code>public class Main extends Fragment implements OnClickListener {
private static St... | 2 | 1,716 |
Triggering active class on scroll, Angular 5 without Jquery | <p>I need instructions on how to trigger adding classes when scrolling in my app and not to use jQuery. </p>
<p>I have side menu with this structure</p>
<pre><code><div class="menu">
<div class="menu-item">
<div class="line"></div>
<span class="home">Home</span>
</di... | 2 | 1,254 |
python cv2 incorrectly detecting square shape in multiple images | <p>I've run into a problem detecting a square with opencv. </p>
<ol>
<li>Here is the reference image where I find the shape to match against used in cv2.matchShapes</li>
</ol>
<p><a href="https://i.stack.imgur.com/IwtdX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IwtdX.png" alt="reference image... | 2 | 2,659 |
How to use SDL2 Texture as sort of updating canvas? | <p>I am trying to create a dynamic plotter in SDL2 for an embedded project. Currently, the code executes on both architectures, x86, and ARM. On x86 I get a smooth running plotter, however, on ARM it runs very slow at a fraction of the frames I get on x86. I am pretty sure this is because I rerender every pixel on the ... | 2 | 5,435 |
Oracle Service Bus (11.1.1.6.0): <xsd:include> issue | <p>IF I use this schema:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xsd:element name="Chick">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="count" type="x... | 2 | 1,903 |
Android: In a multi-threaded Service, is LocalBroadcastManager safe? | <p>In a multi-threaded Service is <code>LocalBroadcastManager.getInstance(this).sendBroadcast()</code>, called from different threads, already thread-safe?</p>
<pre><code>public class MyService extends Service
{
// [...] define binder to allow access to doSomething() and doSomethingElse(), etc.
@Override
... | 2 | 1,422 |
Create Channel failed in Hyperledger Fabric | <p>When I run the e2e-2Orgs demo in fabric-sdk-java-master, everything seemed ok.
<strong>docker-compose.yaml:</strong></p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>#
... | 2 | 7,359 |
Convert XML collection (of Pivotal Tracker stories) to Ruby hash/object | <p>I have a collection of stories in an XML format. I would like to parse the file and return each story as either hash or Ruby object, so that I can further manipulate the data within a Ruby script.</p>
<p>Does <a href="http://nokogiri.org" rel="nofollow noreferrer">Nokogiri</a> support this, or is there a better too... | 2 | 1,461 |
Logout of MVC Application From Angular 5 | <p>We have an angular 5 application built on top of MVC authentication. The application is served up from the Home/Index action, and once the application is loaded, the angular routing takes care of pretty much everything. We are doing this primarily because we wanted to use MVC's Authentication processes (we are usi... | 2 | 1,422 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.