title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
React-native npm install fatal error: 'CoreServices/CoreServices.h' file not found | <p>When I run "npm install" on my react-native project, I get errors when I don't run with sudo. Note, I get the same problem when I run the Facebook starter project "react-native init AwesomeProject".</p>
<p>This problem is new and so far I've tried:</p>
<pre><code>- re-installing xcode v7.3.1 (7D1014)
- re-install... | 2 | 3,996 |
Rails, be a pal and reset the database between test suites | <p>Work is transitioning from Rails 3 to Rails 4. Everything seems to be running more or less smoothly on the development side, but testing results in a multitude of varying failures when all suites - units, functionals, and integration - are run in one go with <code>rake:test</code>.</p>
<p>What's interesting is that... | 2 | 1,588 |
Android [LocationManager] requestLocationUpdates(), java.lang.RuntimeException | <p>I am getting this error when requestion for location updates inside <code>service</code>. Location permission is granted, <code>LocationManager</code> is not null, <code>Provider</code> is not null.</p>
<pre><code>LocationManager: [LocationManager] requestLocationUpdates(),
java.lang.RuntimeException
a... | 2 | 1,860 |
How to make REST Call Logout work with Spring Boot, Vaadin 10 and Keycloak 4? | <p>I tried this with Keycloak 4.4.0.Final and 4.6.0.Final. I checked the keycloak server log and I saw the following warning messages in the console output.</p>
<pre><code>10:33:22,882 WARN [org.keycloak.events] (default task-1) type=REFRESH_TOKEN_ERROR, realmId=master, clientId=security-admin-console, userId=null, i... | 2 | 1,640 |
Unable to get Token with Work Account for Teams OnlineMeeting API within MS Graph platform | <p><strong>Business Requirement:</strong>
We want to replace our Skype meeting URL with Teams meeting on our production system(within a ABAP daemon service without user integration). So I am trying to integrate with Teams using Microsoft Graph API to be able to generate one online meetings. Then this online meeting URL... | 2 | 1,084 |
"require 'capybara/rails'" gives "uninitialized constant Rack::Builder" | <p>I've been using cucumber in my app, which is a rails 2.2.2 app running in ruby 1.8.6 (upgrading isn't an option right now). Cucumber's been fine, now i'm trying to use Capybara. I've installed the <code>capybara (1.1.1)</code> gem and put the line <code>require 'capybara/rails'</code> in my <code>features/support/... | 2 | 1,633 |
First item of Recyclerview duplicate twice | <p>i'm trying to display images from a particular folder (3 images) and store them in <code>Recyclerview</code> using code below , But the first item of <code>Recyclerview</code> repeated twice ,appears in the first and last item and the last item not showing like the picture below : </p>
<p><a href="https://i.stack.... | 2 | 1,128 |
Get full process path from pid in kernel linux | <p>I'm building custom kernel linux for my device (like embeded device). I want to log all information of kill system call. So I modify code in kill system call and get pid to kill. But I can't get full process path for it, I have just get full path of current process.
This is my code to get process path from pid.</p>
... | 2 | 1,300 |
Accessing json array in AWS AppSync | <p>I am new to AWS AppSync and am trying to use an HTTP endpoint to fetch data from an external API. Here is an example of what that API returns.</p>
<pre><code>{
"status": 1,
"size": 3,
"result": [
{
"number": "123",
"program": "program name",
"team_name": "team name",
"robot_name": ... | 2 | 1,160 |
problems with ProgressDialog,RunOnUiThread and ListAdapter | <p>Ok i've written this android program that has 3 tabs(MEALS,DRINKS AND DESSERT) each in its own activity with a fragment.The problem i'm having now is with retrieving the list from a mysql database and displaying this list in each tab.I'de already ran and executed a custom code which displays a list of items retrieve... | 2 | 3,305 |
Conway's Game of Life using Sparse Matrix (Python) | <p>I am writing the game of life in python using a Sparse Matrix. My program takes coordinates from user input and sets the cells at the chosen coordinates to be alive. I have it to where it will print the first generation, but I can't seem to figure out why it wont print any subsequent generations. Any help would be a... | 2 | 3,514 |
Several multiple select (HTML) search with PHP and SQL | <p>I'm stuck in a piece of code that I can't make it work. I need help. Here it goes:</p>
<p>I want to construct a search with several multiselect, PHP and SQL. In the exemple I'll use 02 (two) multiselects:</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-c... | 2 | 1,291 |
RuntimeException: Malformed input around byte [...] | <p>I decided to move my play framework project on a ubuntu machine. <br>
On <strong>localhost</strong>, the project ran perfectly, but on <strong>Ubuntu</strong>, I get the following issue:</p>
<blockquote>
<p>[RuntimeException: Malformed input around byte 455]</p>
</blockquote>
<p>I know this mean there is a chars... | 2 | 3,255 |
Twitter Oauth Callback Override Failing | <p>So I have setup a twitter application so that people can reply to tweets inside my own app. I have a callback URL and when I do not try and override it everything seems to go fine. However Now I am having a problem getting the override of the callback to work the app runs on multiple sub domains and servers based on... | 2 | 1,031 |
WiX Burn: Reading LaunchTarget from Registry | <p>I'm new with WiX, and I'm trying to have my Bootstrapper launch my installed application when it completes. To accomplish this, I'm using</p>
<pre><code><Variable Name="LaunchTarget" Value="path_to_exe"/>
</code></pre>
<p>However, it is not easy for me to get the path to the executable. The reason for this i... | 2 | 1,087 |
OpenAPI / Swagger 3.0: Default discriminator value | <p>How do you set a default discriminator for each child class?</p>
<p>For example, take this schema:</p>
<pre><code>components:
schemas:
Pet:
type: object
required:
- petType
properties:
petType:
type: string
discriminator:
propertyName: petType
Cat:
... | 2 | 1,296 |
AngularJS string input for ngModel | <p>I am importing label / input information from a JSON file in order to try and reduce the size of the HTML and make it easier to modify in the future. Part of this means I am using string inputs for ngModel. </p>
<p>The trouble is with the two-way binding not acting as expected. I've seen a few threads where directi... | 2 | 1,628 |
How to launch a Win32 application to run like a Windows 10 assigned access AppX (kiosk mode) | <p>The requirement is to be able to run a kiosk application on Windows 10 which has unrestricted capability on the host computer to make arbitrary system calls and launch any kind of app including Appx and Win32. The kiosk app can be fully trusted - it may be thought of as a side-loaded in-house app for machines equipp... | 2 | 1,042 |
Using sqlalchemy and context manager the database is not updating | <p>I am trying to update a database using sqlalchemy and I need the connection/session to be closed after the execution of the script to be used by another action (delete). I rewrite a part of a previous code (not mine) and I tried both of codes below but unfortunately nothing new is written in the database. It is not ... | 2 | 1,350 |
FFmpeg (Thumbnail from video) works in command line, but not in PHP script | <p><strong>I looked at the similar questions, and the solutions there do not work in my case. Anyone has any idea? I am trying to capture a thumbnail from a given video file.</strong></p>
<p>Later, my goal is to capture a thumbnail from live streaming video file.</p>
<p><strong>Below is my current set up.</strong> </... | 2 | 3,118 |
Change interval time reading beacon RSSI on iOS with CoreBluetooth | <p>I try to read the RSSI of the beacon(estimote) more offen than once per second. I know that using Core Location nd method <code>locationManager (manager: CLLocationManager, didRangeBeacons beacons: [CLBeacon] inRegion region: CLBeaconRegion)</code> it is not possible.</p>
<p>I found suggestions to use Core Bluetoo... | 2 | 1,035 |
Can't access to Embedded Derby in Tomcat 8 | <p>I have a restful api-implementation running in a Tomcat 8 server. I decided to use the embedded Derby version to store data in a database via JDBC (using Eclipse). From my point of view, the official tutorial for the embedded version wasn't very helpfull. I followed the steps here:
<a href="http://www.nailedtothex.o... | 2 | 1,154 |
Java/javaFX: new connection to db for every query? | <p>So, I am creating an application in javaFX (for learning purposes only) which mainly consists of a tabpane with sub-fxmls for each tab. Each tab consist of a tableview with data collected from a database. To connect to the database I have a separate connection class that creates a new connection pool using c3p0.</p>... | 2 | 2,351 |
Code using async/await fails when an HttpClient request is sent | <p>I have a WinForms application that has two roles. If no command line parameters are present, the Main function calls Application.Run, and presents the UI. If command line parameters are present, Application.Run is NOT called. Instead, I call an async method like this:</p>
<pre><code>result = HandleCommandLine(args)... | 2 | 3,295 |
Splitting dataset to 90,10 instead of n_folds | <p>I use the randomforest algorithm. I would like to use the following code. Instead of evaluating the algorithm through n_folds, I would like to split it into 90% for train and 10% for test.
I changed the <code>n_folds</code> into <code>n_folds=1</code> and added the following lines:</p>
<pre><code>train, test = trai... | 2 | 4,015 |
Python selenium select option from angular js ng-select | <p>I've been trying to make a selection from a drop down but cannot seem to figure out how.</p>
<p>Here's what I'm trying to get:</p>
<pre><code><div _ngcontent-wdj-c58="" class="delivery-group">
<span _ngcontent-wdj-c58="">Guaranteed Delivery Time:</span>
<div _ngcontent-wdj-c58="" class... | 2 | 3,095 |
GZIP Compression Not Working For Wordpress Site | <p>I'm implementing a website in wordpress. When I test my site on google page speed, It's looking horrible. I'm getting some compression issues.</p>
<pre><code> Compressing https://static.xx.fbcdn.net/rsrc.php/v2/yK/r/XVnmkWxbmyb.js could save 152KiB (74% reduction).
Compressing https://static.xx.fbcdn.net/rsrc.ph... | 2 | 1,321 |
Android Install referral tracking uniqueness | <p>I implemented install referral tracking in my app from:
<a href="https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#google-play-campaigns" rel="nofollow">https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#google-play-campaigns</a></p>
<p>my referral rece... | 2 | 1,489 |
After moving inline css into stylesheet, works in design view but not while running | <p>I'm trying to move some css out of my master page into a stylesheet. Basically, what I did:</p>
<ul>
<li>Copy/Pasted inline css into new stylesheet</li>
<li>Referenced the stylesheet from the master page</li>
</ul>
<p>After doing this, the design view continued to display as expected (I saw my styles go away when... | 2 | 1,836 |
LoopBack: performance issue with relational databases | <p>In some situations, LoopBack seems to deal in a very inefficient way with relational databases. I've bumped into a performance issue and I was wondering if someone has found a way of working around it.</p>
<p>To demostrate this, I've created a MySQL database with three tables and a simple many-to-many relationship,... | 2 | 1,185 |
How to use session scoped bean properly | <p>There are 3 classes in my Spring MVC app: a <code>UserDetailsInterceptor</code> class, an <code>MyAdvice</code> class and a <code>UserDetails</code> class (session scoped).</p>
<p><strong>What I want to accomplish</strong> is simple:</p>
<ol>
<li><code>UserDetailsInterceptor</code> intercepts requests and set user... | 2 | 1,169 |
Spring boot UUID primary key entity doesn't show right id after created | <p>So I have entity with UUID as primary key. After I create the entity in my service, the response return wrong id.</p>
<p>My Role entity</p>
<pre><code>package denny.study.stock.entity
import denny.study.stock.util.converter.JsonToMapConverter
import org.hibernate.annotations.CreationTimestamp
import org.hibernate.a... | 2 | 1,150 |
second shortest / k-th shortest path | <p>With the code below, I am trying to find the second shortest path / k-th shortest path. </p>
<pre><code>// Run Dijkstra's algorithm on given graph
public static void shortestPath(GraphModel graph, int source, int destination, int numberOfVertices)
{
// create min heap and push source node having... | 2 | 1,263 |
Unsigned int or iterator when using vector? | <p>I am currently working on a c++ school project with some friends.</p>
<p>Before when i had vectors in c++ i did something like this to use them :</p>
<pre><code>unsigned int i = 0;
while (i != myVector.size())
{
doSomething(myVector[i]);
i++;
}
</code></pre>
<p>But during this project my friends were not ... | 2 | 1,059 |
array_map(): Argument #2 should be an array | <p>I'm getting this error<code>array_map(): Argument #2 should be an array</code> when a user trying to create a product</p>
<p>I changed my code from this solutions <a href="https://stackoverflow.com/questions/56496813/how-to-make-each-authenticated-user-only-see-their-own-product">How to make each authenticated user... | 2 | 1,202 |
MVC WebAPI Status 500 Authentication Error when using httpclient and json | <p>I've been banging on this all day and it's time to get some help. I am trying to call a .net MVC WebAPI application from some .net code. I am receiving a status code of 500 from the WebAPI with no real information even after upping the error detail policy to always. So I popped open Fiddler and now I can at least ... | 2 | 1,677 |
Why does SwiftUI UIHostingController have extra spacing? | <p>I'm trying to add a SwiftUI view to UIKit view using UIHostingController and it shows extra spacing(This sample is made to simulate an issue on a production app). Here is the screenshot.</p>
<p><img src="https://i.stack.imgur.com/QGwjQ.png" alt="enter image description here" /></p>
<p>Layout overview:</p>
<pre><code... | 2 | 1,934 |
Pythoncom PumpMessages from different thread | <p>I want to do something similar to what is asked <a href="https://stackoverflow.com/questions/49695160/how-to-continuously-monitor-a-new-mail-in-outlook-and-unread-mails-of-a-specific">here</a>, but using <code>threading</code> like <a href="https://stackoverflow.com/questions/53822692/outlook-via-com-via-multi-threa... | 2 | 1,330 |
Reindex from remote host connection timeout | <p>I used the reindex api like so</p>
<pre><code>POST _reindex?wait_for_completion=false
{
"source": {
"remote": {
"host": "http://*externalIp*:9200",
"socket_timeout": "10m",
"connect_timeout": "10m"
},
"index": "new_widget",
"type": "daddy_dj",
"query": {
"match_all": {}... | 2 | 1,537 |
How to set cookies in asp.net core during authenticaiton/authorization | <p>I am trying to set custom cookies during the cookie and openIdConnect authentication/authorization in asp.net core 3.1 but not having any success. I hope someone can point me in the right direction. Here is my middleware setup:</p>
<pre><code> services.AddAuthentication(options =>
{
op... | 2 | 1,998 |
Solved - Uncaught TypeError: $(...).datetimepicker is not a function at app.js:61 | <p><strong>Solved</strong>, but it still won't change the datatime format from MM-DD-YY to DD-MM-YY</p>
<p>I'm searching for the reason of my datepicker error, but nothing seems to work. Also, I've tried to make it DD-MM-YY hh:mm but it keeps making it MM-DD-YY.</p>
<p>The event:</p>
<pre><code> <div class="... | 2 | 3,551 |
In-App-Purchase - purchase successful then transaction failed | <p>When I run the app with the code below, i buy one of the products using my test account and I get this in my console:</p>
<pre><code>queue
queue
unlocked:
buy20
Transaction Failed
</code></pre>
<p>Somehow the purchase manages to be successful in the <code>- (void)paymentQueue:(SKPaymentQueue *)queue updatedTrans... | 2 | 2,601 |
How can I inject a boolean of value true into a payload in Node-RED | <p>I have 3 sensors set up, I add a timestamp to each of these sensors and then I want to inject a boolean value into their payload.</p>
<p>I have successfully injected the boolean into the payload of my <code>sensordata</code>, but I cannot get the boolean to be <code>true</code> as it should be whenever the inject n... | 2 | 1,607 |
iOS Passing data collection view controller to a table view controller | <p>Hi i am doing a food app and I am having a problem. I have a collection view controller which have 10 items(each one is a different dish). Each of those items have an image and a title and what i want to do is that when someone taps the item(the dish) it takes the user to a table view controller which have a list of... | 2 | 1,841 |
COSMOS DB Deployment failures | <p>I have been struggling to create a COSMOS DB since a couple of days...I am getting this below error which doesnt make any sense to me. What does this error mean and what to do?</p>
<p>{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for detai... | 2 | 1,533 |
java efficient concatenation of multiple lists | <p>I often find myself writing code that builds a List out of multiple sublists. As a simple example suppose you have a List that needs to be validated to a List. One way to write this (imperatively) would be:</p>
<pre><code>import static com.google.common.collect.Lists.newArrayList;
import java.util.List;
public cl... | 2 | 1,230 |
devbridge autocomplete query AJAX implementation | <p>I'm getting trouble with <a href="https://www.devbridge.com/sourcery/components/jquery-autocomplete/" rel="nofollow">devbridge autocomplete</a> in my form</p>
<p>my <strong>header</strong> section: </p>
<pre><code><script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<... | 2 | 1,551 |
How do I write Junit test case for marshalling and unmarshalling | <p>I have the below snippet of code which uses unmarshalling to read the data received from service response. I need to write test cases using junit to test if the code is able to parse both the success and error XML.</p>
<p>Code snippet :</p>
<pre><code>ExecuteLegacyAPICallResponse.ExecuteLegacyAPICallResult result ... | 2 | 3,574 |
hadoop error not able to place enough replicas | <p>I am using hadoop 1.2.1. It was active for about 2 years. Now following error start to appear in logs and hbase 0.94.14 could not connect with it. </p>
<p>NameNode Error:</p>
<pre><code>2016-03-09 11:57:23,965 WARN org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Not able to place enough replicas, still in nee... | 2 | 1,407 |
How to properly close hibernate session with mysql server | <p>I followed the <a href="https://docs.jboss.org/hibernate/orm/5.0/manual/en-US/html/" rel="nofollow">official hibernate tutorial</a> and also several others that describe how to get started with Hibernate (e.g. <a href="http://www.journaldev.com/2934/hibernate-many-to-many-mapping-join-tables-annotation-and-xml-confi... | 2 | 7,135 |
next/back button to retrieve next/previous record in Android | <p>Can you give me an idea on how I would be able to fetch next/previous data from database then show it on my textview? I have no idea with what to do.</p>
<p>Main objective: Create a next/back button that will retrieve data from database then show it on textview.</p>
<p>This is my MainActivity.</p>
<pre><code>publ... | 2 | 4,371 |
In Fusion Tables and Google Maps API, how do I change the Tables layer and the Map position based on dropdown menu selection? | <p>I am trying to make a site which uses different Fusion Tables. There is a dropdown menu which has several states. Each state has its own Fusion Table</p>
<p>I would like to make it so that when you pick a state, the map loads up that state' Fusion Table.</p>
<p>How do I do that?</p>
<p>Below is my JavaScript code... | 2 | 2,943 |
Compiler warning for multiple copy constructors | <p>I want to use a custom class as the type for a boost::heap::fibonacci_heap and also be able to iterate and modify the elements of the heap. I'm experimenting with the code provided by <a href="https://stackoverflow.com/questions/15102406/how-to-orderly-traverse-a-boost-heap-priority-queue-and-update-a-given-element/... | 2 | 1,250 |
Entity Framework: Insists on adding new entity in many-to-many instead of re-using existing FK | <p>I have got a many to many relationship, briefly<br>
<code>Cases -----< CaseSubjectRelationships >------ CaseSubjects</code></p>
<p>More fully:
Cases(<strong>ID</strong>, CaseTypeID, .......)<br>
CaseSubjects(<strong>ID</strong>, DisplayName, CRMSPIN)<br>
CaseSubjectsRelationships(<strong>CaseID</strong>, <str... | 2 | 3,474 |
Combine multiple neural network models | <p>I run a loop 200 times within which I:</p>
<ul>
<li><p>randomly divide my dataset into training and test sets</p></li>
<li><p>fit a neural networks model with R's <code>nnet()</code> command on the training set</p></li>
<li><p>assess performance on the test set</p></li>
</ul>
<p>I save each model to a list.</p>
<... | 2 | 2,421 |
Passing local string parameter as reference to const into a constexpr function? Why is that legal? | <p>A <em>constexpr function</em> accepts only parameters, which are of a <em>literal type</em>. An object of the class string is not a literal type itself, but a pointer (which is a <em>scalar type</em>) or a reference is a literal type. And therefore a reference to string is a literal type. </p>
<p>Furthermore a <em... | 2 | 1,264 |
Symfony2 assetic not loading correctly | <p><strong>tl;dr at the bottom</strong>
I want to set directories for Assetic files (css, js, images, whatever) to:</p>
<pre><code>/web/assets/{css,js,images}/
</code></pre>
<p>That would be the main directory, used in my <code>::base.html.twig</code> file.</p>
<p>Also, I will use <code>/web/assets/bootstrap/{css,js... | 2 | 3,755 |
Multiple domains all incorrectly point to the same VirtualHost with Django WSGI | <p>I'm running Django using wsgi. I have two domains and one sub domain pointing to three seperate apache2 virtual hosts. For some (probably very obvious) reason each domain is landing to the same site (the first one that was put online using a2ensite). My configuration is as follows:</p>
<pre><code><VirtualHost *:... | 2 | 1,533 |
Onclick event on search bar suggestions | <p>I have added a search bar with suggestion elements. On click of search bar all the elements is displayed but onclick event is not working on these list suggestion elements.</p>
<p>Have added click event to these suggestions which is stored in li .I want some actions to be performed onclick of these elements</p>
<p><... | 2 | 3,169 |
Hide _id from a nested document after a lookup operation | <p>I am trying to hide the _id value from a nested document but I am not able to achieve the proper syntax. I am always getting errors no matter how I try.</p>
<p>My actual code:</p>
<pre><code>db.integration.aggregate([
{
$match: {"integration_name" : "a-to-b" }
},
{
$lookup:
{
from: "serv... | 2 | 1,423 |
How to suppress outdated pip warning | <p>Every <code>pip</code> command ends with a warning:</p>
<blockquote>
<p>You are using pip version 18.1, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade
pip' command.</p>
</blockquote>
<p>However, updating pip doesn't work, see below. Can I suppress ... | 2 | 1,277 |
Image thumbnails size with JSSor | <p>I came across a similar question but not sure how best to implement the answer posted. I'm using the jssor plugin and each of my thumbnails vary in size. I need to have them conform to the sizes they are listed as but in the way this is set up now each one is set to be 72px x 72px. I've tried setting the width and h... | 2 | 1,160 |
Not able to trace a service from Jaeger UI using spring-boot application | <p>Unable to trace a services for springboot application on Jaeger UI(localhost:16686/search). Here I am able to run an application successfully, but unable to get a services in jaeger ui(Except defalut one jaeger-query). </p>
<p>I used docker cmd to start the jaeger service,</p>
<pre><code>docker run --rm -it --netw... | 2 | 2,096 |
SherlockFragment cannot be cast to Fragment, my activity is SherlockActivty | <p>I'm just getting started on learning fragments and this error is really frustrating me, I must be missing something simple:</p>
<p>I get an error on launch saying that the Fragment class cannot be cast to android.app.Fragment - I'm not sure why</p>
<p>xml for Activity:</p>
<pre><code><RelativeLayout xmlns:andr... | 2 | 2,844 |
Make sure checkbox is checked before submitting form? | <p>I have a simple "terms of use" checkbox set up and I want users to check it before submitting the form. I'm using the WordPress plugin "WP-Polls".</p>
<p>Here's what I've tried:</p>
<pre><code>$('.wp-polls-form').submit(function() {
if ($('input:checkbox', this).is(':checked')) {
// e... | 2 | 2,830 |
Github as Maven Repository | <p>I am attempting to use a private Github repository as a Maven repository, following the instructions on this page: <a href="https://stackoverflow.com/a/14013645/82156">Hosting a Maven Repository in Github</a></p>
<p>I am able to deploy properly, and I can see the artifacts (jars, poms, etc.) deploying to the Github... | 2 | 1,195 |
Select in Bootstrap modal window doesn't work in Firefox | <p>I want to make a modal window, in which i choose an option from form select and pass it for further functionallity.
The problem is, that when the select list drops down, i can't change the selected option. This problem occures only in Firefox. In Chrome it seems working well.</p>
<p>Below is the code, that i used i... | 2 | 1,089 |
maven-publish with Kotlin for android aars | <p>I have a Kotlin Android library that I'm trying to publish to an s3 maven repo I've set up. Everything works but I can't seem to see the sources. Here's what I have</p>
<pre><code>task sourceJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier 'sources'
}
publishing {
repositories {
... | 2 | 2,371 |
Different Variants of UTF-8 Comma? [,] [,] - CURL Response for MySQL Data | <p>Prepping a Curl Response for particular data to be inserted into a MySQL Table.</p>
<p>Noticed some special characters in the saved data for certain URL's.</p>
<pre><code>$curldata = curl_exec($curl);
$encoding = mb_detect_encoding($curldata);
</code></pre>
<p>brought back <code>ASCII</code> encoding.</p>
<p>Oka... | 2 | 1,161 |
Installing tree-1.6.0 in cygwin. What am I missing? | <p>I am trying to install <a href="ftp://mama.indstate.edu/linux/tree/tree-1.6.0.tgz" rel="nofollow">tree 1.6.0</a> in my cygwin console. To do that, I downloaded the source.</p>
<p>Here is the content of the file</p>
<pre><code> ===> ls -lh
total 269K
-rw-r--r-- 1 user None 8.8K Jun 24 2011 CHANGES
-rw-r--r-- ... | 2 | 2,277 |
How to change the color of NSAttributedStringKey.link Swift4 | <p>I am trying to change the color of <code>uitextview</code> link attribute. But i am cant able to get success. Please Help me here is my code. </p>
<p>I have one string name is the main string .IN this string i have hashtag string i am founding the hashtag value and converting in the clickable link . The problem is ... | 2 | 1,281 |
linking error when using sprintf() | <p>on my cortex-m3, i am trying to output a float variable to my UART port.. so i need to convert the <code>float DATA</code> into a <code>char outputstr[]</code>.</p>
<p>For this purpose, i used sprintf from the libc.a</p>
<ol>
<li>if i comment out the sprintf(), i can compile and link.</li>
<li>if i use <code>sprin... | 2 | 2,257 |
Unit testing ReactiveUI view models and commands | <p>I have a working view implemented using ReactiveUI and now I'm trying to write some unit tests for my view model, but my view model doesn't seem to work when used from the test. </p>
<p>Specifically, executing commands does not seem to trigger the subscribers. In this test below, I am invoking the AddPlayer command... | 2 | 1,133 |
Controller not a function got undefined error message angular js | <p>I am a beginner with MEAN Stack development. I was trying out to play around with some angular stuff but got completely messed up the the controllers.
Here is my main html file</p>
<pre><code><!--main.html-->
<html>
<head>
<title>Chirp</title>
<script src="https://ajax.goo... | 2 | 2,364 |
Valgrind reports uninitialized value inside standard library (vfprintf.c) | <p>I have a function which does a <code>vsnsprintf</code> into a temporary buffer in an object created on the stack. </p>
<p>In the object's constructor I initialise the first character of the buffer to null.</p>
<p>Valgrind complains about an <strong>uninitialised value</strong> created on the stack in <code>vfprint... | 2 | 1,086 |
JTabbedPane FlowLayout throws ArrayIndexOutOfBoundsException | <p>I'm trying to apply the flow layout to a JTabbedPane so that I can set the hgap(0) and vgap(0). The default layout for the JTabbedPane leaves gaps all around.</p>
<p>The following code throws when I try to set the layout:</p>
<pre><code>import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.lang.ref... | 2 | 1,661 |
jquery tooltipster work only on second hover | <p>i found problem like mine here, but no one topic help me, so i decide to write my own.</p>
<p><strong>Problem</strong> : i need to 'mouseover' twice to see tip. And i know this is because i call tooltip on second mouseover, but i have no idea, how to solve my problem.
I will be very thankful for any suggestion or... | 2 | 1,189 |
jqGrid filling select in EditForm | <p>I use jqGrid 4.2.0. In EditForm there are two selects:
1) REGION_ID - it fills in form opening
2) TOWN_ID - must show towns of the selected region</p>
<p>When I open the form in first time and change REGION the list of towns is not changeing and the function <strong>regionOnChange</strong> is not called.
But whe... | 2 | 2,399 |
Yii2: how to make bootstrap tab active if there is any yii2 error | <p>I have create a <code>CRUD</code> using <code>Yii2</code>.
Now i have added <code>multi-tab</code> using <code>bootstrap</code>
<a href="http://getbootstrap.com/javascript/#tabs-examples" rel="nofollow noreferrer">http://getbootstrap.com/javascript/#tabs-examples</a></p>
<p>Now i have some validation rule on field... | 2 | 1,756 |
MongoDB find() query scans documents twice (duplicate cursor used) when using limit() + sort()? | <p>I'm fairly new to MongoDB, though I haven't been able to find an explanation for what I'm seeing.</p>
<p>I have a small dataset of about 200 documents, when I run the following query:
<code>db.tweets.find({user:22438186})</code>
I get <em>n</em> / <em>nscannedObjects</em> / <em>nscanned</em> / <em>nscannedObjectsAl... | 2 | 11,526 |
Flink on EMR: submitted job with org.apache.flink.client.program.ProgramInvocationException: Could not retrieve the execution result | <p>I am running a flink emr job and getting the following results:</p>
<pre><code> at org.apache.flink.client.program.rest.RestClusterClient.submitJob(RestClusterClient.java:261)
at org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:483)
at org.apache.flink.streaming.api.environment.Stream... | 2 | 2,828 |
Adding a Skip Button to FastForward a .fadeIn / .fadeOut? | <p>Just to clarify, when you load my site I have a bit of text that fades in (quote), and then fades out. Afterwards a new bit of text (my brand name) fades in.</p>
<p>Since I want people to have enough time to read the first text (the quote) the fade in and fade out are a bit long, however I don't want people to get ... | 2 | 1,089 |
SQLSTATE[42S22]: Column not found: 1054 Unknown column in my code | <p>I have the following error in the code: </p>
<blockquote>
<p>"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'introducido' in 'field list' (SQL: insert into <code>cars</code> (<code>introducido</code>, <code>modelo</code>, <code>producido_en</code>, <code>updated_at</code>, <code>created_at</code>) values... | 2 | 2,337 |
Python multiprocessing on windows with large arrays | <p>I wrote a script on a linux platform using the multiprocessing module of python. When I tried running the program on Windows this was not working directly which I found out is related to the fact how child-processes are generated on Windows. It seems to be crucial that the objects which are used can be pickled.</p>
... | 2 | 1,859 |
Editing a userprofile on django | <p>How to create a userprofile editable page and upon clicking submission it updates the details provided during registration(the details stored in the database) using DJANGO?.</p>
<p>Creation of registration form for a user, and like i have said in my opening post, i want the user after he must have logged in to able... | 2 | 3,268 |
RabbitMQ crashes | <p>My rabbitmq instance crashed with the following reason. I know nothing about Erlang so I cannot fully understand the stacktrace. I checked Mnesia's documentation. It seems that my rabbitmq crashed because some Mnesia transaction got aborted, and abort reason is rabbit_runtime_parameters and cluster_name missing? But... | 2 | 1,185 |
android open socket crashing on device, works on AVD | <p>i try creating client-server app using socket.
i already succeed doing that with the AVD and run both server and client on my pc machine.
but when i try make it work in same Wifi network on my device, the app just crash.</p>
<p>yes, i'm using seperate thread for the connection
and already added the use of Internet ... | 2 | 1,223 |
Autherization service is not responsding with access_token while using zuul gateway | <p>I created multiple microservices with springboot 1.4. Last week I decided to implement oauth2 authorization service. My plan is something like,</p>
<ol>
<li><p>Every request should be handled by zuul gateway which is registered by Eureka.</p></li>
<li><p>So the new Authorization service will be called by eureka to ... | 2 | 1,209 |
Running Angular 5 app inside webworker causes window object to be undefined | <p>I am trying to upgrade <a href="https://github.com/akveo/ngx-admin" rel="noreferrer">this (ngx-admin)</a> free Angular template to Angular 5 and then trying to run the whole app inside WebWorker as mentioned in this <a href="https://stackoverflow.com/questions/43276044/angular-cli-generated-app-with-web-workers#answ... | 2 | 2,515 |
Javascript enemies follow player | <p>I am coding a lil js game for a university project.
I have a 2d map and I can move my player with arrows. Enemies are spawned every 5 seconds and they are guided by the function:</p>
<pre><code>enemy.updatePosition = function() {
if(enemy.isAttacking === false) {
var diffX = Math.floor(pl... | 2 | 1,730 |
Failed to query available provider packages | <p>I'm using the Powershell in the Azure Portal.
Terraform version = v1.0.3
Powershell version = 7.1.3</p>
<p>this is my code</p>
<pre><code>provider "azurerm" {
features {}
}
resource "azure_storage_account" "lab" {
name = "newbloddystoragegroup&... | 2 | 1,436 |
custom shaped transparent buttons | <p>I found 2 different solutions that don't work for me. The first one deals with transparency. The second one I would prefer because it's cleaner looking. The goal is to create custom shaped buttons using images that have transparency. I want to ignore the transparent sections and only take action when I click on the ... | 2 | 2,309 |
custom log4j class is not working over spark 2.0 EMR | <p>i am trying to write logs as json in spark 2.0 over EMR.
i was able to use custom log4j.properties file.</p>
<p>but when i tried to change the output to json with custom class (net.logstash.log4j.JSONEventLayoutV1), i get the following exception: </p>
<pre><code>log4j:ERROR Could not instantiate class [net.logstas... | 2 | 1,082 |
Choosing application.properties using properties-maven-plugin | <p>I have defined several application.properties files in my application. Each one is for different environments. In these files I have the data source defined for each environment. </p>
<p>I want to get Maven to choose the correct properties file based on the environment that the application is being deployed into.
... | 2 | 3,510 |
Spring Batch - reading multiple PDF files and passing them to ItemProcessor | <p>I would like to read a multiple pdf files and process them one by one.</p>
<p>I use MultiResourceItemReader and a custom delegate:</p>
<pre><code>public class MyItemReader implements ResourceAwareItemReaderItemStream<MyItem> {
private Resource resource;
@Override
public MyItem read() throws Exc... | 2 | 1,202 |
Setting up Wordpress and Rails in Nginx | <p>I have nginx set up for Rails application that has been working beautifully for me. Now I want to move my Wordpress blog from <code>blog.website.com</code> to <code>website.com/blog</code>, so web crawlers treat it as part of the site.</p>
<p>I created a symbolic link in my Rails app's <code>public/</code> director... | 2 | 1,056 |
OnElementChanged(...) not getting the new value of property | <p>I have a a map that displays a route between points. This is working but now <strong>I want to pass some color values from PCL</strong>. I have a custom renderer for android and a class acting as bridge between PCL and android with bindable properties in it.
(For the map I use the PCL implementation and extends it w... | 2 | 1,366 |
C# force integer when converting XML to JSON | <p>I am attempting to convert XML into JSON in order to generate a HTTP POST request to an API. I am getting an error because one of the fields is meant to be an integer instead of a string. From what i have read adding "json:Integer="true"" to the node will cause it to become an int, but this doesnt seem to be working... | 2 | 1,086 |
Why is Axios not including XSRF-TOKEN when POSTing from React sub-component? | <p>I have a Laravel 6.x app that I'm working on. Axios seems to not be consistent about when it sends XSRF-TOKEN headers.</p>
<p>Then I have two pages within the app that need to do axios posts. One of which works correctly, the other - which does the actual post from a Component included within a Component -
exclude... | 2 | 1,729 |
Error- Loading PDF from URL inside android Webview | <p>I am trying to load the PDF File from URL inside web-view without Downloading in android. Most of the time its loading perfectly ,but sometimes getting below mentioned errors.</p>
<p><strong>ERROR:1</strong></p>
<pre><code> ERROR:gles2_cmd_decoder.cc(2787)] [GroupMarkerNotSet(crbug.com/242999)!:B0F7473971000000] G... | 2 | 2,035 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.