title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
ERROR ----> Task :expo-permissions:compileDebugKotlin FAILED | <p>The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build.</p>
<p>This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins { ... }' DSL if they specify explicit versions, even if the versions are equal.
Please add the Ko... | 1 | 1,174 |
Instagram ?__a=1 query: Why do I get login page instead of JSON? | <p>Here is a sample url that returns JSON of the instagram user's data: <a href="https://www.instagram.com/therock/?__a=1" rel="nofollow noreferrer">https://www.instagram.com/therock/?__a=1</a></p>
<p>And it returns JSON like this:</p>
<pre><code>{
"logging_page_id":"profilePage_232192182",
&q... | 1 | 1,392 |
Highlight current UICollectionViewCell tvOS | <p>I'm currently developing an app as a proof of concept for the appleTV. And I'm trying to show a queue. Which is separated in different departments. We've got Mac, iPhone, iPad... And I'd like to update my collectionView automatically to show which departement is showing. </p>
<p>I've already succeeded to update my ... | 1 | 2,356 |
ViewPager's PageAdapter get reset on orientation change | <p>I'm using a <code>ViewPager</code> for a multiple-choice exam app, which chooses out randomly thirty questions out of a bigger set. I do this in the <code>PageAdapter</code> that is supplying the pages to the <code>ViewPager</code>.</p>
<p>The problem is that when an orientation change occurs, not only the pager bu... | 1 | 1,069 |
Vue js data binding doesn't work | <p>I'm trying to create a vue component but whenever I want to hide some elements with <code>v-show</code> it doesn't work.</p>
<p>When you click any element on the list I want to hide it and on the click event <code>element.visible</code> is set to false, so in the component template I bind that value to <code>v-show... | 1 | 1,551 |
NullInjectorError: No provider for t! NullInjectorError: StaticInjectorError(ba)[Cw -> t]: | <p>When I run my prod build of my Angular 8 app, I am getting this error in console. The build runs fine and I've included all services in my provider. </p>
<p>I've run the following commands but do not get any errors.
<code>ng build --prod --optimization=false</code>
Is there any way to tell what is failing? Even wh... | 1 | 1,049 |
Apple Sign In "invalid_client", signing JWT for authentication using PHP and openSSL | <p>I'm trying to implement Apple sign in into an Android App using this <a href="https://github.com/willowtreeapps/sign-in-with-apple-button-android" rel="noreferrer">library</a>. The main flow is described in the documentation: the library returns an authorization code on the Android side. This authorization code has ... | 1 | 1,733 |
AngularJS errors in IE8 | <p>I am working with a new angular app and need to make it backward compatible to IE8. From what it looks like it loads in my routing info, loads the template (to a point) but in the concole log i see the following error. </p>
<blockquote>
<p>TypeError: Object doesn't support this property or method <code><div
... | 1 | 2,699 |
How to set SSL_connect on non blocking socket with select on linux platform | <p>I am trying to use the select function to have non-blocking connection from a client to server.I found a tutorial with some code and tried to adapt to this:</p>
<pre><code>...
sockfd = socket(AF_INET, SOCK_STREAM, 0);
err = connect(sockfd,(struct sockaddr*)&sa,sizeof(sa));
...
SSL_set_fd(pssl,sockfd);
err = SSL... | 1 | 1,140 |
npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration | <p>I am stuck at this for long, checked several post but no solution. I am trying to deploy firebase functions.</p>
<p>I have run, npm install -g firebase-tools, npm firebase login, firebase init functions, and when i get to npm install i see this issue with python on terminal</p>
<pre><code>npm ERR! gyp info it worked... | 1 | 1,142 |
How can I get the public key of a secure webpage using java | <p>I need to get the public keys of a secured website programmatically through java. I have read <a href="https://stackoverflow.com/questions/15449343/get-the-public-key-of-a-websites-ssl-certificate">this</a>, <a href="https://stackoverflow.com/questions/20160595/how-to-get-the-public-key">this</a>, <a href="https://s... | 1 | 1,480 |
Uncaught argumentCountError | <p>I am having error here it says that i have uncaught arugmentcount error but I am just following the tutorial it has no error but when I do it has. I checked all the possible errors even the spelling and semi colons </p>
<blockquote>
<p>Fatal error: Uncaught ArgumentCountError: Too few arguments to function data... | 1 | 2,029 |
UnsatisfiedLinkError in native method | <p>I m getting unsatisfied link error in native method </p>
<p>Logcat main exception</p>
<pre><code>UnsatisfiedLinkError: Native method not found: rg.sqlite.database.sqlite.SQLiteConnection.nativeHasCodec:()Z
</code></pre>
<p>Complete Logcat</p>
<pre><code>02-04 16:29:12.807: E/AndroidRuntime(5087): FATAL EXCEPTION... | 1 | 4,493 |
Access base class properties from a derived class | <p>So I have come across a problem I have created a object of a class, this class also have a derived class from where I need to acces these properties. I actually already have two solutions to this problem, which I will present here later. I am not sure if this will be considered a valid question or just a code review... | 1 | 1,634 |
Warning: Module 'curl' already loading in Unknown on line 0 (Fix this from a custom.php.ini file) | <p>After doing some research on the site this error occurs because of the php.ini file most likely including a reference to load the extension when it was already compiled into the PHP.</p>
<p>That said, I'm using Docker and Docker-Compose. I found a way to keep the default php.ini file and any changes would be overw... | 1 | 9,589 |
jQuery UI Modal Popup Window - Button Click | <p>I' m trying to have my register button in a form lead in a modal window which will show the input of user's info. I have 3 problems so far.</p>
<ol>
<li>After closing the modal window, my form is missing </li>
<li>I want to rename the "close" button of the modal window to "confirm" if possible</li>
<li>After closin... | 1 | 1,414 |
Using dplyr summarise_each() with is.na() | <p>I'm trying to wrap some dplyr magic inside a function to produce a data.frame that I then print with xtable.</p>
<p>The ultimate aim is to have a dplyr version of <a href="http://gettinggeneticsdone.blogspot.co.uk/2011/02/summarize-missing-data-for-all.html" rel="noreferrer">this</a> working, and reading around I c... | 1 | 1,054 |
Wait until my FormlyFieldConfig has finished loading | <p>I am running into an issue where I'm trying to use UI elements before they've completely loaded, resulting in undefined exceptions. </p>
<p>The form is loaded in the components constructor, and then I call the initializeElements method to work with the UI elements. However, as I mentioned I'm getting null and undef... | 1 | 1,261 |
Readers-writers problem with writer priority | <h1>Problem</h1>
<p>In the book "Little Book of Semaphores", p. 71, there is the following problem:</p>
<blockquote>
<p>Write a solution to the readers-writers problem that gives priority to writers. That is, once a writer arrives, no readers should be allowed to enter until all writers have left the system.</p>
</... | 1 | 1,502 |
Symfony2, Doctrine search and order by distance | <p>I have a database of places which I store the latitude and longitude for. I want to query the database to find all places within a radius (<code>$requestedDistance</code>) of a specific latitude (<code>$latitude</code>) and longitude (<code>$longitude</code>).</p>
<p>The below query works and returns only those pla... | 1 | 1,288 |
Select range of rows from PostgreSQL table | <p>I want to select range or rows from PostgreSQL table. I tried this code:</p>
<pre><code> public List<CustomersObj> list(int firstRow, int rowCount, String sortField, boolean sortAscending) throws SQLException
{
String SqlStatement = null;
if (ds == null)
{
... | 1 | 1,303 |
Error: Attempt to assign property "name" on null | <p>I am Working On a E-commerce Project with Laravel-8. I am facing a problem in editing the products og this E-commerce site. when I am clicking on 'Update' after editing the details of any product. It's Saying "Error
Attempt to assign property "name" on null"</p>
<p>Here's My Web.php code</p>
<pre... | 1 | 9,030 |
Pandas stack/groupby to make a new dataframe | <p>I have a problem of creating and rearrange a dataset. I Looked at the pandas groupby function and think it might help me do it but I am to inexperienced to make it happen.
I have created an example of my problem below:
my df:</p>
<pre><code> vehicle color a b c d A1 A2 A3 B1 B2 B3 C1 C2 C3 D1 D2... | 1 | 2,551 |
Spring JPA Repository ignoring FetchType.LAZY | <p>I have my entity classes with <code>OneToMany</code> mappings defined and Spring JPA repository interfaces created by extending <code>JpaRepository</code> interface of spring. </p>
<p>I have set fetch as <code>FetchType.LAZY</code> explicitly on the associations in <code>OneToMany</code> annotation.</p>
<p>The pro... | 1 | 1,066 |
This item is not compatible with your device on Samsung GT-S5360, whereas I can install/test on my device | <p>I am getting a strange error on Android Market. I am not able to download my app due to the following error - "This item is not compatible with your device".</p>
<p>As I am the developer of this app, I can install and run this successfully, however Android Market is throwing me an error. Any resolutions, ideas? Wha... | 1 | 1,388 |
Popup with StaysOpen = False | <p>I have set up a simple control with three rectangles, each of which has a popup attached to it. Initially all three popups are set to open (IsOpen=True), and all three have the StaysOpen flag set to false. The XAML for this is posted below.</p>
<p>From the MSDN documentation on StaysOpen, I gather that when it is f... | 1 | 1,072 |
How to echo the value of a select to a text box | <p>I have code in which I try to echo the value of a <code>select</code> with <code>onclick</code>.</p>
<p>I have a <code>select</code> which is getting its data from a database. Now I want that the option I click on is echoed into the text box. But I fail.</p>
<p>Here is my code:</p>
<pre><code><?php
require_onc... | 1 | 1,052 |
Thymleaf Template not being used properly within spring boot | <p>I'm having trouble to set up properly my spring boot application.</p>
<p>Basically I have this pom.xml :</p>
<pre><code><parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.3.RELEASE</version>
... | 1 | 2,391 |
Recursive CTE with tree hierarchy SQL Server | <p>I need to use recursive with SQL Server, but i don't know how use it with my hierarchy tree.</p>
<p>I need some help for creating my query and know if it's possible with CTE Recursion.</p>
<p>My example : </p>
<p>I have two tables : piece (piece_id) and piece_equivalence(piece1_id, piece2_id)</p>
<p>First, i nee... | 1 | 1,508 |
Get strings for some specific region | <p>I need to use the powershell code to get the string of some specific area</p>
<p>please see the picture below, the content of the green rectangle needs to be retained, and all other strings are deleted.</p>
<p>I added some substrings in the second area. They look more complicated. I want to know if I can extract t... | 1 | 2,122 |
JPA's context injection | <p>I'm trying to use JPA's Context Injection. Currently my code fails to have the context injected, throwing a NullPointerException:</p>
<blockquote>
<p>Exception in thread "main"
java.lang.NullPointerException at
learn.spring.dao.ListingDao.findById(ListingDao.java:19)</p>
</blockquote>
<p>Below is my code, an... | 1 | 1,234 |
Pod doesn't start (not Available and ReplicaFailure) | <p>Pod doesn't start. Pod is not shown by <code>oc(kubectl) get pods</code> command.</p>
<p>Error summary:</p>
<p>Type : Status : Reason</p>
<p>Progressing : True : NewReplicaSetAvailable</p>
<p>Available : False : MinimumReplicasUnavailable</p>
<p>ReplicaFailure : True : FailedCreate</p>
<p... | 1 | 4,707 |
Kubernetes 1.7.7: how to enable Cron Jobs? | <p>I've added <code>—-runtime-config=batch/v2alpha1=true</code> to the <code>kube-apiserver</code> config like so:</p>
<pre><code> ... other stuff
command:
- "/hyperkube"
- "apiserver"
- "--admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,ResourceQu... | 1 | 1,178 |
React JS Adding Remove button to each item | <p>I currently have a button at the bottom of the page which removes the item at the second index (position 1) when pressed i.e. James Johnson then George Brown.</p>
<p>However I want to add this button to every item in the list so it removes the item at that index.</p>
<p>Example,</p>
<p>John Smith - Remove</p>
<p... | 1 | 1,093 |
Writing messages to client socket using DataOutputStream to Server Socket only sent after closing the Client Socket why? | <p>I had a Socket-Client programming in Java . I am using DataOutputStream to send messages to the Server Socket . Sometimes writed messages on DataOutputstream was not sent to the ServerSocket . I think it's due to i am not flushing after sent message . I do this but no use . If I terminate the class execution then on... | 1 | 1,723 |
Canvas object says undefined getContext() method in Angular JS/iONIC? | <p>I have been working on ionic Framework to develop a hybrid app.The app requires Signature plugin ,I have seen <a href="http://willowsystems.github.io/jSignature/#/about/" rel="nofollow noreferrer">JSignature</a>&<a href="https://github.com/szimek/signature_pad" rel="nofollow noreferrer">SiganturePad</a> had nice... | 1 | 1,582 |
How to unwind the stack to get backtrace for the specified stack pointer (SP)? | <p>I'm writing this for Android (ARM only), but I believe the principle is the same for generic Linux as well.</p>
<p>I'm trying to capture the stack trace from within the signal handler, so that I can log it when my app crashes. This is what I've come up with using <code><unwind.h></code>.<br>
Initialization:</... | 1 | 1,513 |
ViewWillAppear Getting Called twice | <p>I am writing an application on iOS 7 using storyboards.</p>
<p>I have a navigation controller as my root view controller and I embed a view controller within it.</p>
<p>When the application loads, viewDidLoad gets called once and viewWillAppear gets called once. This is correct (also I check for data & update ... | 1 | 3,182 |
Kafka retention policy doesn't work as expected | <p>I want to implement a data replay for some use cases we have, and for that, I need to use Kafka retention policy (I am using join and I need the window time to be accurate).
P.S. I am using Kafka version 0.10.1.1</p>
<p>I am sending data into the topic like this:</p>
<pre><code> kafkaProducer.send(
... | 1 | 1,258 |
Can't access docker application from localhost using docker-compose | <p>before I start: I have searched this question already and implemented what the "Solutions" were and it did not help (setting host to 0.0.0.0). So, with that out of the way,</p>
<p>Directory structure</p>
<pre><code>|-- osr
| |-- __init__.py
|-- requirements.txt
|-- Dockerfile
|-- docker-compose.yml
</code></pre... | 1 | 1,219 |
how to use a stored procedure in nhibernate | <p>Hello
I try to use stored procedure in nhibernate and I found some methods :</p>
<pre><code><?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<sql-query name="CO_Visites_Treeview_Sel">
exec CO_Visites_Treeview_Sel :Idclient, :Idmagasin, :Autre, :T... | 1 | 1,841 |
Application crashed while importing songs from Ipod library in iPhone for iOs 5.0 | <p>Hello i am using below framworks,</p>
<pre><code>#import <MediaPlayer/MediaPlayer.h>
#import <AudioToolbox/AudioToolbox.h>
#import <AVFoundation/AVFoundation.h>
</code></pre>
<p>In one of button event i have implemented below code to open Library.</p>
<pre><code> MPMediaPickerController *... | 1 | 4,847 |
How to add multiple textfields and get the values from it in flutter | <p>I'm trying to add multiple <code>textformfileds</code> on <strong>click</strong> of add more <strong><code>Button</code></strong> and trying to access the values of all fields on form submit.</p>
<p>I'm not getting the values of <code>dynamic</code> added fields.</p>
<p>I follow <a href="https://medium.com/dev-geniu... | 1 | 3,100 |
Django save() method not saving | <p>I am using a signal to update fields in the profile table when a new investment is made. </p>
<p>Having used a number of print statements inside the update_users_investments function I can see that the function is being called and it is doing the right calculation. </p>
<p>However, it is not saving to the database... | 1 | 1,395 |
Classic ASP HTML email form | <p>I'm using Gmails external mail server to send product inquiry forms from my website. The form itself sends fine, however the email that's dispatched doesn't include the product information included in my form. </p>
<p>My simplified form looks like this:</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.... | 1 | 1,809 |
CannotGetJdbcConnectionException and StaleConnectionException problems | <p>I have recently run into a problem while trying to access my database through a java web application. I keep getting a <strong>CannotGetJdbcConnectionException</strong> along with a <strong>StaleConnectionException</strong>. I am using Websphere v8.5 as my local machine server. I have tried testing the Data Sourc... | 1 | 2,767 |
Read OTP/SMS in MI device not working (Android) | <p>I have integrated <strong><code>Auto read OTP</code></strong> in my code and it's working fine except in <strong>MIUI</strong> devices. <code>BroadcastReceiver</code> never wake up in case of <strong>MI devices</strong> when <code>sms</code> is received. After some efforts I think <code>MI devices</code> runs on its... | 1 | 1,126 |
UICollectionView Cells Not Showing | <p>I've got this bit of code, and I can't get the cells to show up. I've tried setting a background colour to see if they were showing up and it was just the images within them that weren't appearing, but it seems that the cells aren't showing up at all. </p>
<p>Edit: This is the full code, with everything from other ... | 1 | 5,974 |
Setup of maven plugin for using QueryDSL with a MySQL database | <p>I'm trying to setup my project so that I can use querydsl-sql against a MySQL database.
I'd like to get the classes and generate the classes using maven and am having problems setting up the plugin.</p>
<p>I've tried configuring the pom.xml from the example available <a href="http://blog.mysema.com/2011/01/querying... | 1 | 1,886 |
Drag and drop data into shiny app | <p>How can I drag and drop data into a shiny app? I can drag and drop into an area and read it with javascript, but I'm not sure how to have shiny register it so I can process it on the server. Here is an example setup -- it's kinda long b/c I don't think there is a javascript function builtin to deal with drag-n-dro... | 1 | 1,279 |
How to call another function in the "static main" method? | <p>I am a beginner of C# and I would like to call a function namely <code>SetTimer()</code> in the <code>static void Main()</code> but it gave some errors as <code>SetTimer(11, 48, 00);</code> and <code>SetTimer(11, 35, 40);</code> below. Actually, it might work well in a Form vice versa with the <code>Main()</code> fu... | 1 | 1,189 |
Parse JSON YQL Output with jQuery append to IDs | <p>I have a YQL output JSON string at this URL: <a href="http://query.yahooapis.com/v1/public/yql?q=select%20%2a%20from%20html%20where%20url=%22http://www.missoulaavalanche.org/current-advisory/%22%20and%20xpath=%27//div%5B@id=%22content%22%5D/div%5B1%5D%27&format=json&callback=cbfunc" rel="nofollow">YQL JSON</... | 1 | 1,703 |
Module not found: Can't resolve 'child_process' | <p>while using reactjs I am getting this.webpack error incounter while npm start. </p>
<pre><code> `./~/csvtojson/libs/core/workerMgr.js
Module not found: Can't resolve 'child_process' in '/var/www/html/ReactLogin/node_modules/csvtojson/libs/core'`
File : CsvRead.jsx
import React from 'react';
impo... | 1 | 1,664 |
Android paired to a RFCOMM device can not connect | <p>At first I have to say, that I'm a beginner on android. I'm working on an App, which should connect to a measuring instrument without any operating elements(no Buttons, no Display) over bluetooth and receive the measured data. Unfortunately I don't know much about the measure instrument and the manufacturer as well.... | 1 | 1,061 |
Android studio Hide and Show buttons from a condition | <p>my android app needs a function that has a button that needs to show and hide based on one <code>TextView</code>. Here is my code and ill explain further.</p>
<pre><code>public class currentCar extends Fragment implements AsyncResponse, AdapterView.OnItemClickListener {
final String TAG = this.getClass().getName();
... | 1 | 6,363 |
validate two forms with one submit button with jquery validate plugin | <p>I have two forms on one page with a starting and closing <code><form></form></code> tag for each form. I m validating it with JQuery Validate Plugin. I have to validate both forms with one single button. The problem is that validation of both forms required a separate button for each form which is not re... | 1 | 1,281 |
Why I get 30 fps in chrome dev tool performance panel, but JS and React both say it's 60? | <p>I'm trying to use react to develop the classic game tutorial <a href="http://www.lostdecadegames.com/how-to-make-a-simple-html5-canvas-game/" rel="nofollow noreferrer">how-to-make-a-simple-html5-canvas-game</a>.</p>
<p>Everything went well until I found my movement is a little bit glitchy, <a href="https://catchgob... | 1 | 1,518 |
Single Sign On with Azure Active Directory | <p>I have a bunch of web apps that I've created. Some of them use old-style webforms authentication, and some other sites at our company use different authentication patterns.</p>
<p>I'm trying to consolidate this, under one SSO pattern using Azure Active Directory. I've been trying to following guides/tutorials but i... | 1 | 1,368 |
Highcharts - Can a column chart drill down to a bar chart? | <p>I have a project where the data in the main chart is best represented as a column chart and the data in a drilldown should be a bar chart.</p>
<p>However when I try to drilldown, the drilldown is still a column chart even with the type set to bar.</p>
<p>Is this possible to do with the provided Highcharts drilldow... | 1 | 9,002 |
overridePendingTransition not work in adapter(android) | <p>I want run new Activity in Adapter use animation, but i have some error </p>
<pre><code>06-19 09:54:29.253: E/AndroidRuntime(11464): FATAL EXCEPTION: main
06-19 09:54:29.253: E/AndroidRuntime(11464):
java.lang.ClassCastException: android.app.Application cannot be cast
to android.app.Activity 06-19 09:54:29.253: E/... | 1 | 2,951 |
Apache POI XSSFPivotTable setDefaultSubtotal | <p>I am having an issue with the setDefaultSubtotal method for axisRow pivotFields. When I set the value to false for a RowLabel field Excel doesn't like it. Manually setting things up how I want them in Excel and then saving produces dramatically different XML, too different for me to contemplate fixing behind the sce... | 1 | 2,265 |
selectOneButton change listener always returning null | <p>I'm using JSF 2 along with primefaces, i have a selectOneButton which have 2 values, EN/FR, i want to be notified each time the language is changed, and then change the locale of the page, i have set valueChangeListener and an ajax event,
but everytime the change listener is fired, the new value is always null!
her... | 1 | 1,258 |
How to bind N number of parameters using mysqli prepared statements? | <p>In old mysql code, I had a query below which worked perfectly which is below:</p>
<pre><code>$questioncontent = (isset($_GET['questioncontent'])) ? $_GET['questioncontent'] : '';
$searchquestion = $questioncontent;
$terms = explode(" ", $searchquestion);
$questionquery = "
SELECT q.QuestionId, q.QuestionContent, ... | 1 | 1,554 |
Importing matplotlib with reticulate in R | <p>I just started using the reticulate package in R, and I'm still getting a few of the kinks figured out. In particular, importing matplotlib is not going well. I've tried it two different ways, with different error messages for each.</p>
<p>First, using repl_python in RStudio's interactive shell:</p>
<pre><code>lib... | 1 | 1,254 |
maven Return code is: 409, ReasonPhrase: Conflict | <p>I have problem to deploy my multi-module python project with following structure</p>
<pre><code>parent pom.xml # common pom for others project
project/
pom.xml # project pom
common_features/
sub-project-1/pom.xml # sub project 1 pom
sub-project-2/pom.xml # sub project 2 pom
</code></pre>
<p>... | 1 | 5,045 |
Yii2 Invalid Configuration, cookieValidationKey must be configured with a secret key error when accessing the API | <p>I am encountering an error whenever I am trying to access my self written API.</p>
<blockquote>
<p>{
"name": "Invalid Configuration",
"message": "yii\web\Request::cookieValidationKey must be configured with a secret key.",
"code": 0,
"type": "yii\base\InvalidConfigException",
"file":... | 1 | 1,838 |
Ruby on Rails Import CSV into MySQL | <p>Newbie question....</p>
<p>Trying to start a project in rails. I have different spreadsheets in csv format I'd like to import into the MySQL database to be able to manipulate the data.</p>
<p>After looking around on stackoverflow, Google, etc. I wrote a rake task requiring fastercsv to do the job. I keep getting e... | 1 | 2,037 |
How to check if previous task is still running and stop/cancel it? | <p>I have a background task that I run in the following way.</p>
<p>This is in an attached behavior on a textbox text changed event.</p>
<p>What I would like is if the text is changed and then changed again, on the second change check if the previous task is still running, if so, stop it and continue with the latest ... | 1 | 1,638 |
MySql5.6 extended features listed as deactivated after being added | <p>MySql5.6 Apache2.4 PHP5.6 win8.1</p>
<p>I imported and ran the script from <b>/examples/create_tables.sql</b> </p>
<p>phpmyadmin pma structure is now...</p>
<pre><code>pma__bookmark
pma__central_columns
pma__column_info
pma__designer_coords
<b>pma__favorite</b>
pma__history
pma__navigationhiding
p... | 1 | 1,456 |
Android: Call function of Activity out of DialogFragment | <p>I have a problem to call a function of my Activity out of DialogFragment. There are public functions in my MainActivity which I need to call for some calculations that are done in the DialogFragment. Everytime I try to call a function with getActivity(). there occurs the problem "Cannot resolve method". </p>
<p>He... | 1 | 1,645 |
Unable to resolve module prop-types, but grep prop-types reveals nothing | <p>I got sources for an ios app dropped (from end 2016) in my lap, and am now trying to build and run it in the simulator. I am just learning React Native.</p>
<p>Full error message is here:</p>
<pre><code>Unable to resolve module prop-types from /Users/raarts/work/MobileApp/app/node_modules/react-redux/lib/component... | 1 | 1,340 |
Entity Framework 6: Schema specified is not valid | <p>I have 4 following projects in my solution. All the projects use target framework version 4.0. </p>
<ul>
<li><code>1. Durabuilt.CantorERP.Entities</code> > Class library project > Used ADO.NET Entity Data Model to expose tables and views in SQL Database named CantorERP </li>
<li><code>2. Durabuilt.Duranet2.Entities... | 1 | 3,054 |
Linking static libs built with VS2008 from a VS2012 project? Are they compatible? | <p>I have a bunch of static .lib files including mysqlclient.lib, v8_base.lib and mysqlpp.lib that I link into my project, these were all built using Visual Studio 2008, they are built using the /MT runtime library option.</p>
<p>I've just tried upgrading to VS2012 and the code compiles fine but when the project get l... | 1 | 3,517 |
TypeError: $(...).parent(...).delegate is not a function | <p>I am using <code>WebGrid</code> in my project. When I inspect my code(of <code>aspx</code> page) in browser, I found error on console. It is : <code>TypeError: $(...).parent(...).delegate is not a function</code> and when I click on error line it shows me following CODE:</p>
<pre><code>$(function() {
$('table[data-... | 1 | 1,767 |
bind: cannot assign requested address | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/7640619/cannot-assign-requested-address-possible-causes">Cannot assign requested address - possible causes?</a> </p>
</blockquote>
<pre><code>#include <sys/types.h>
#include <sys/socket.h>
#include ... | 1 | 2,763 |
Unable to download file using AsyncPostBackTrigger in RadGrid | <p>Hi all I am using RadGrid in my application, as I want my RadGrid not to refresh I had my RadGrid in an Update Panel as follows</p>
<pre><code><asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="RadGrid1" Event... | 1 | 1,402 |
prime factorization using sieve method | <p>What's wrong with my code ?
<br>I am trying to find the prime factor, but it didn't work after getting input it crash's.</p>
<p>What should I do now ? I am using separate method to generate the primes after generating prime i just call the prime function in main. </p>
<pre><code>#include<iostream>
#include&... | 1 | 1,039 |
Tinymce problem - extra paragraphs | <p>im trying to use TinyMCE as part of a web form. Integration works fine, but once you submit the form, of course the data will be validated.</p>
<p>If validation evaluates to false, for example some other input has not been filled out, then of course I don't want the user to reenter all data. So i pass the Tinymce c... | 1 | 1,096 |
Expo SDK 44 upgrade ERROR - App.js: [BABEL]: Unexpected token '.' | <p>I have recently upgraded my app from SDK 40 to SDK 44 and came across this error App.js: [BABEL]: Unexpected token '.' (While processing: /Users/user/path/to/project/node_modules/babel-preset-expo/index.js)</p>
<p>Error Stack Trace:</p>
<pre><code>App.js: [BABEL]: Unexpected token '.' (While processing: /Users/user/... | 1 | 3,597 |
ControlsFX 8.20.7 Wizard examples - getting Wizards to work | <p>I am trying to develop a wizard using the new ControlsFX 8.20.7 release. I have taken a look at the following example: <a href="https://bitbucket.org/controlsfx/controlsfx/src/8b76d20d7286b027e0953ab74118377f80db2f18/controlsfx-samples/src/main/java/org/controlsfx/samples/dialogs/HelloNewDialog.java?at=default#cl-49... | 1 | 1,595 |
parsley.js form validation - confirm when no errors found on form submission | <p>I have read the parsley.js docs but I am still learning JQuery so it goes in one ear and out the other.</p>
<p>I think I need to add a custom event listener to achieve what I need, but I am really not sure, so some help would be appreciated.</p>
<p>I have a form with parsley.js embedded. The form works as expected... | 1 | 1,149 |
Why Neo4J docker authentication doesn't work | <p>I want to run a Neo4J instance through docker using a docker-compose.</p>
<p><strong>docker-compose.yml</strong></p>
<pre><code>version: '3'
services:
neo4j:
container_name: neo4j-lab
image: neo4j:latest
environment:
- NEO4J_dbms_memory_pagecache_size=2G
- NEO4J_dbms_memory_heap_maxSize=4... | 1 | 1,407 |
Could not open the editor: An unexpected exception was thrown in Eclipse Android | <p>I am getting error when I am trying to open xml files in <strong>res/layout/</strong> folder in Eclipse.</p>
<p>I am getting the following error</p>
<pre><code>java.lang.NullPointerException
at com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationComposite.syncRenderState(ConfigurationCom... | 1 | 1,939 |
I am getting Uncaught TypeError: Cannot read properties of null (reading 'addEventListener') | <p>I am building an e-com site using the Django framework. to make it more efficient I am using javascript here and there. So the problem occurs at the checkout page and specifically if a user is logged in. On my site, a user can shop even if he is not logged in as a guest user. so if a guest user is going to the check... | 1 | 3,704 |
How to write JUnit test cases for GET API? | <p>I have a GET API which accepts different parameters in controller class. According to the boolean parameter, the API should return a different result. How can I write JUnit test cases for the same? </p>
<pre><code>@CrossOrigin
@RequestMapping(value = "/api/brand/multi-get", method = RequestMethod.GET, consumes =
... | 1 | 1,282 |
Cannot forward after response has been committed Servlet error | <p>When I run this code, I get an IllegalStateException: Cannot forward after respons has been committed. I apologize, I am new to servlets. What should I do to fix this problem? This occurs at this line: </p>
<pre><code>RequestDispatcher rd = request.getRequestDispatcher("/displayjobs.jsp");
rd.forward(request, respo... | 1 | 2,664 |
How to correctly use the mock-ajax library with Jasmine | <p>I have a function which calls out for JSON and then in the success function makes some changes to the DOM. I'm trying to use the <a href="https://github.com/pivotal/jasmine-ajax" rel="nofollow">mock-ajax library</a> in my Jasmine tests to avoid having to expose the various private functions for mocking.</p>
<p>Eve... | 1 | 1,450 |
How to Inject property values into a static property or method of an enum or normal class using Spring? | <p>I am in serious trouble due to a situation. Here's my problem.</p>
<p><strong>PROBLEM:</strong> Need to inject a simple static string field /property in an enum class FROM spring config XML.
Here's some similar code I tested : </p>
<pre><code>public enum AppProperty {
NUMBER_OF_ACCOUNTS("accounts"), NUMB... | 1 | 1,309 |
Multiple Custom Markers with Bing Maps API | <p>I've got the code to add multiple markers with infoboxes with Bing Maps API, currently using default pin markers. I know there's documentation on adding a custom marker but I'm looking to use a different custom image marker for each point. Managed to implement with Google Maps API but need to use Bing maps and stuck... | 1 | 1,186 |
FFMPEG - Scale video filter not providing expected results | <p>Apologies if this question has been asked. I couldn't find it, but if it has, please let me know and I'll close this out.</p>
<p>I'm attempting a simple scale of a video whose original dimensions are 480x360 and whose target dimensions are 400x300. The video starts as an FLV and eventually needs to end up as an M... | 1 | 1,608 |
jquery how to add comments to a post | <p>Hello I'm currently making a "forum" in which a user can submit a post and will be displayed. I would like the option to add a comment to it. </p>
<p>I am doing everything client side.</p>
<p>Here is the code to generate the forum:</p>
<pre><code>$.get(url, page, function(data){
$("#forum").html("");
... | 1 | 1,041 |
Android How to dynamically update a listview? | <p>I have an app that loads the traffic report from a server and shows it in a timeline (like twitter), the app is configured to load the data from the server every 10 seconds using this code:</p>
<pre><code> @Override
public void onResume() {
super.onResume();
autoUpdate = new Timer();
... | 1 | 3,757 |
Ansible nested loops and conditional together in the same task | <pre><code>---
- hosts: leaf-1, leaf-2
vars_files:
- /vars/all.yml
tasks:
- name: collect the vlan databse
raw: "show vlan brief"
register: vlan_db
- name: compare vlan_id(.*)Ports against the vlan_db
set_fact:
fact1: "{{ item.1.vlan_id }}"
... | 1 | 1,841 |
BottomNavigationView Back button not working properly | <p><a href="https://i.stack.imgur.com/5uKXw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5uKXw.png" alt="enter image description here"></a></p>
<p>When is press back button my fragment is changing to home page, but bottom icon is not changing. I posted my all code here. If i select more then two navigatio... | 1 | 2,507 |
.NET 3.5 C# Bug with System.Timer System.ObjectDisposedException: Cannot access a disposed object | <p>In my Windows service app I am using timers a lot. I'm using only System.Timers.
I've never experienced this problem before, but suddenly I got this exception:</p>
<pre><code>System.ObjectDisposedException: Cannot access a disposed object.
at System.Threading.TimerBase.ChangeTimer(UInt32 dueTime, UInt32 period)
... | 1 | 1,660 |
How to fetch data from oracle in xml format using php | <p>I would be very happy if anyone help me :)</p>
<p>I am trying to write php web service that read a query from Oracle DB and display the result as XML. I spent days in searching for solution but unfortunately it didn't work</p>
<p>Below is some queries I tried it:</p>
<pre><code> <?php
$db ="(DESCRIPTION=
... | 1 | 1,626 |
How to Insert Record and Upload file using the FreeASPUpload Script | <p>I want to Insert record and upload file at the same time, right now im using <a href="http://www.freeaspupload.net/" rel="nofollow">FreeASPUpload</a> Script. When i submit the form it returns this error </p>
<pre><code>Cannot use the generic Request collection after calling BinaryRead
</code></pre>
<p><strong>Here... | 1 | 2,699 |
elasticsearch sort error using script | <p>Currently I encountered a weird issue: when I sort based on a field, it throws out an exception:</p>
<pre><code>curl -XGET 'http://localhost:9200/pb/p/_search?pretty' -d '{
"query": {"match" : {"first_name" : "john"}},
"sort" : {
"_script" : {
"script" : "doc['dob_size'].value * factor1",
"type" : "... | 1 | 2,212 |
JasperReports: getting java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number | <p>I am trying to generate excel reports from <em>Java</em>. I am using <em>Spring</em> on <em>Java</em> side and <em>iReport</em> to develop the jasper files. I am getting <code>ClassCast</code> exception although the report runs fine on <em>iReport</em>. The language I am using at <em>iReport</em> side for report is ... | 1 | 2,342 |
How to dynamically extend the CARD widget height size based on the text in the card? | <p>So if I put a lot of text in a widget card the text will exceed the card widget and I can t see anymore the rest of it.</p>
<p>Only if I manually the size of each card it will show all the text.</p>
<p>Is it possible to dynamically extend the CARD widget height size based on the text in the card?</p>
<p>For examp... | 1 | 1,158 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.