title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Xamarin: How to deal with an ACTION_ANSWER Activity | <p>I tried to deal with incoming calls to cancel or answer it but I can't.
I tried the following code:</p>
<pre><code>[BroadcastReceiver(Label = "Blocking Calls")]
[IntentFilter(new string[] { "android.intent.action.PHONE_STATE" })]
public class MyReceiver : Android.Content.BroadcastReceiver
{
private const string... | 3 | 1,232 |
Cannot explain behaviour of copyOfRange(int[] a, int from, int to) function | <p>I was trying to do some slice copy using Arrays static function copyOfRegion. My code is given below:</p>
<pre><code>public class MyJavaArrays {
static int[] findEquilibPoint(int[] A) {
int[] resArray = {-1};
/*
* Our equilibrium condition is that the index must be between 0 and lengt... | 3 | 1,220 |
QThread terminate and affinity | <p>This example is for testing QThread. The main objective is to be able to run one time consuming blocking method in a dedicated thread and
being able to terminate and restart the thread at any point. The blocking method is a 3rd party lib which is outside our control. I know the documentation of Qt discourages using ... | 3 | 1,234 |
Is there a way to sync up live audio and live video using Python? | <p>I am trying to write a bit of code to create a 2 person live chat application using Python 3. The code is working in the sense of having live audio and live video, (as tested by running the server and 2 clients on the same device), with the Client-Side code running most of the logic and running the camera and audio ... | 3 | 3,700 |
Ionic Capacitor Deep links (appUrlOpen) event running multiple times 10+ | <p>I'm building an app where I have deep links to open app and run a specific function based on the url.
But the event triggers multiple times and run same function after that I have 10+ alerts which needs to be confirmed.</p>
<p>This is from running app on real device with livereload</p>
<p>Here is my code as React Co... | 3 | 2,582 |
Vue accessing a child components computed property | <p>So I'm using a third party vue component called 'vue-tree-list' here's the link -> <a href="https://github.com/ParadeTo/vue-tree-list" rel="nofollow noreferrer">https://github.com/ParadeTo/vue-tree-list</a></p>
<p>in the component it has a computed property that basically analyzes the tree str... | 3 | 1,614 |
How to resolve Error: Unexpected token '<' in Asp.Net request? | <p>I am trying to call a WebService in my <code>ASP. Net</code> app and am getting the following error: <code>Error: Unexpected token '<'</code>. So far it seems like a <code>json</code> parsing issue, but I am not sure how to resolve it. In my app, I have a data manager that calls a stored procedure from a local <... | 3 | 1,032 |
ViewPager changed position checkBox event again active | <p>I have very simple question . I used View Pager with FragmentStatePagerAdapter in my app.</p>
<p><strong><em>View Pager Tabs position respectively : Game|Movie|Study</em></strong></p>
<p>I used checkbox in StudyFragment. First , I checked checkbox in Study Tab and changed tab position(for example Game Tab ). Then... | 3 | 1,458 |
MVC Controller unable to find Api Controller (same project) | <p>(Sorry if my english sucks a little)</p>
<p>I'm trying to call an api method from a mvc controller but the mvc seems unable to find the method. I set the route in the mvc controller as </p>
<p><code>[Route("[controller]")]</code></p>
<p>and in the api controller as</p>
<p><code>[Route("api/[controller]")]</code>... | 3 | 2,854 |
When editing data in popup, data of only first row is displayed for all rows in knockoutjs | <p>I am using knockoutjs to show multiple record in table using foreach loop, in previous version of our software when user clicks on row edit it shows the input fields within the tr so the user can edit. Now my task is to show the input fields in bootstrap popup when user clicks the username of that particular tr.
Th... | 3 | 4,686 |
What element raised ng-click in custom directive ng-repeater | <p>I have a repeater inside of a directive that spits out table rows.</p>
<p>When a user clicks on a row I want to highlight that row.</p>
<p>I have something that works, I was just wondering if there was a better way of doing it:</p>
<pre><code>.directive('userList', function(){
return{
restrict: 'A',
... | 3 | 1,257 |
How to enable back press to close nav drawer on fragment only | <p>I have implemented a navigation drawer for my fragment hence would like to know what's the best way to implement the back pressed feature for fragments only as well as where the code necessarily needs to go? I've used some back pressed code below but it doesn't work.</p>
<p><strong>activity class</strong></p>
<pre... | 3 | 2,527 |
Generate Google Cloud Endpoint Lib Failure with SocketTimeoutException: Read timed out | <p>Google app engine sdk version is 1.8.9
Google Plugin for Eclipse with <a href="https://dl.google.com/eclipse/plugin/4.3" rel="nofollow">https://dl.google.com/eclipse/plugin/4.3</a>
OS version is windows 7 x64
Language is English</p>
<p>Try to use the eclipse 4.3 to create the Guestbook sample as <a href="https://de... | 3 | 2,790 |
How to flip an image on canvas when it is edited? | <p>I am able to flip an image on the canvas. I am doing it by saving it in a file by using ImageGrab function and rotating that by using ImageOps and placing that on canvas but when the image is edited I mean when objects are rotated or dragged am not able to flip. The drag and rotate part is not there in code.It would... | 3 | 1,542 |
How to handle Exception when Zend_Acl is On? it gives Resource 'default::error::error' not found' | <p>i've implemeted the Zend_Acl and its seems to be working.my resources are links :</p>
<blockquote>
<p>module_name . "::" . controller_name . "::" . action_name;</p>
</blockquote>
<p>i've added something in my code that's breaking and it seems that's i'm redirected to the usual error page but that the Acl comes i... | 3 | 4,910 |
Laravel: Database is not storing my image but showing me only array | <p>I am new to Laravel. I have been trying to save an image to the database. Here is my controller method that I am trying for storing the image</p>
<pre><code> public function store(Request $request){
//validation for form
$validate= $request->validate([
'name' => 'required|min:2... | 3 | 1,054 |
BigQuery Python API copy_table copies schema but not data | <p>I'm trying to copy one BigQuery table to another, within the same dataset, working off of the example at <a href="https://cloud.google.com/bigquery/docs/managing-tables#copy-table" rel="nofollow noreferrer">https://cloud.google.com/bigquery/docs/managing-tables#copy-table</a></p>
<p>I've created a function to do the... | 3 | 1,253 |
I'm having an issue with the z-indexes of a logo I made with CSS, why isn't it displaying properly? | <p>For a school project I'm designing a website and I'm trying to incorporate an animated logo into the website, but I can't get all the components to display properly. You can view the live website here: <a href="http://students.washington.edu/torinw/anxiety/" rel="nofollow noreferrer">http://students.washington.edu/t... | 3 | 1,942 |
Google Chart incorrectly plotting data as overlapping | <p>I am plotting 2 lines on an area chart, but for some reason it is plotting the points as overlapping when they have very different values. <code>4 != 425</code></p>
<p><a href="https://i.stack.imgur.com/7yunp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7yunp.png" alt="enter image description ... | 3 | 1,882 |
An error occurred (AccessDenied) when calling the GetObjectTagging operation: Access Denied Even sync from public bucket | <p>The line that I am trying to run is</p>
<pre><code>aws s3 sync s3://sourcebucket.publicfiles s3://mybucket
</code></pre>
<p>I have been looking through multiple question like this and I have tried about everything.</p>
<p>I have changed my IAM policy to give full access</p>
<pre><code>{
"Version": &quo... | 3 | 1,893 |
Run GUI app in linux docker on linux server on windows host | <p>The following system was built (not by me):</p>
<p>Windows 10 operating system is installed on the local machine.
Connection goes to the remote server with Ubuntu 16.04 through a client (like SmarTTY or Bitwise SSH Client).
The docker container is launched on the server.</p>
<p>How do I configure the system so tha... | 3 | 1,698 |
Update Jersey 1.8 to 1.10+ causes ClassNotFoundException: com.sun.jersey.server.impl.cdi.AnnotatedCallableImpl | <p>I can't figure out why I'm unable to change jersey-server from 1.8 to 1.10 or newer versions, 1.9 still works fine but 1.10+ just crashes on deploy.</p>
<p>Using Glassfish 3.1.2 with some lib improvements like weld-osgi-bundle 1.1.28 that I guess is involved on this error, mojarra is 2.1.21. Attempting to follow Ja... | 3 | 5,172 |
JavaFX: Platform.runLater(task) not recognized for task = new FutureTask<>(new Runnable() {....}? | <p>Over the last two weeks I have studied 10 different ways to avoid problems with <code>sleep()</code>. The concept of running a block of code on the UI Thread that cannot be interrupted seems the most practical. So I have proceeded to create a <code>FutureTask<Void></code> object that contains the code not to... | 3 | 2,106 |
Python program stopped responding whenever I start a certain script | <p>I am creating a Twitch.tv chat bot and whenever I click 'Start' under the 'File' menu, running 'startSpenbot', I get the 'This program has stopped responding' error.</p>
<p>I have uploaded the full source code to GitHub, however I have deleted the entry for the file 'password.txt'.
You can find it here - <a href="h... | 3 | 6,080 |
Sorting string in alphabetical order | <p>The following code compiles, but the sortTitles() method does not sort the titles of the movies in alphabetical order as it is supposed to. How would you fix the compareTo() and sortTitles() methods?</p>
<p><strong>Movie2 Class</strong></p>
<pre><code>public class Movie2 implements Comparable<Movie2> {
/... | 3 | 2,077 |
How to put y axis of line chart to right when combined with bar chart in chart.js? | <p>I have a graph where I am trying to draw a pareto chart by using chart.js. I am combining bar chart and line chart to achieve this. Here is my sample graph:</p>
<p><a href="https://i.stack.imgur.com/aMwAW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aMwAW.png" alt="enter image description here"... | 3 | 1,078 |
Unable to deploy to Google App Engine using Github Actions - credentials not supplied | <p>I keep getting the same error when attempting to deploy my app from Github to Google App Engine using a GitHub action.</p>
<p>I've tried using both the <a href="https://github.com/google-github-actions/deploy-appengine" rel="nofollow noreferrer">deploy-appengine</a> action, as well as using <a href="https://github.c... | 3 | 2,254 |
How to progress game to next level | <p>For my project I am designing a game that has three levels, each set out as an array. Upon completing each level, the game should automatically progress to the next level. I currently have it progressing from the 1st to 2nd level, but upon completing level 2, it simply reloads levels 2 again. My teacher says I shoul... | 3 | 1,323 |
Creating an index date to filter by the date of an event contained in two different tables | <p>I'm working with a medical claims (<code>dx_claim_onc</code>) and a pharmacy claims database (<code>rx_claim_onc</code>), and I want to only return patient IDs (<code>ptnt_id</code>) that meet the following criteria:
a. 6 months of data prior to diagnosis
b. At least 2 months in data post-diagnosis</p>
<p>I'm pullin... | 3 | 1,404 |
How to set "DJANGO_SETTINGS_MODULE" for a "config" module divided into common, local, production files | <p>I'm setting up a wsgi.py to deploy my django app in DigitalOcean, but I'm getting the following errors during deployment phase after successful build. From the error trace, I think there is a problem with <code>os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config")</code> this line inside wsgi... | 3 | 3,734 |
Jackson Json Map or Key deserializer array data to Java hashmap<Integer,MyClass> | <p>New to Jackson and json so I appologize if I'm not clear enough.</p>
<p>I've seen some references to Key and Map Deserializers that might be a better fit for what I want to do but I haven't been able to locate a concrete example on how these would be put together. </p>
<p>I am looking for the best way to deseriali... | 3 | 2,952 |
Published Tableau workbook not working inside the html tabs in mozila browser | <p>I successfully published the <code>Tableau</code> worksheet on my website. It is showing the charts on the independent webpage but when I integrate it into my original website tabs it showing the error like
<a href="https://i.stack.imgur.com/3XxOC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3X... | 3 | 1,046 |
Android database update not working | <p>This is my databasehelper:</p>
<pre><code>public class PersonDatabaseHelper {
private static final String TAG = PersonDatabaseHelper.class.getSimpleName();
// database configuration
// if you want the onUpgrade to run then change the database_version
private static final int DATABASE_VERSION = 7;
private static f... | 3 | 4,832 |
Multiplying matrices by threads in java | <p>Currently I am creating a program that multiplies two matrices by using threads. This is a critical part of my learning of Java that I can't seem to figure out, so I'd really appreciate some assistance.</p>
<pre><code>package matrix;
import java.util.Random;
class ColumnCalculator implements Runnable {
Matr... | 3 | 2,705 |
How can I test bench a VHDL 24 hour Clock? | <p>I'm having a bit of problem when trying to test bench my VHDL.
I'm using a fpga Baysis 2 to run my code, and it is working pretty well on the hardware, but when I use the program Isim to simulate my code, it doesn't show any behavior for my out pins, only the letter U.</p>
<p>I'm looking through the internet and c... | 3 | 2,234 |
RecyclerView: keep changing data during scroll | <p>I have a RecyclerView. Each row has a switch button, I click on the switch to change its state.
when I scroll down and I come back, the recyclerview ignores the change I made in switch.
all the recyclerview will reset.</p>
<p>I want to keep any change in the recyclerview during scroll.</p>
<p>here is my Adapter </... | 3 | 2,103 |
Sonarqube Static Code Analysis for Clojure Codes | <p>I am Using Sonarqube Version <strong>7.5.0.20543</strong>,Sonar Scanner version <strong>sonar-scanner-4.2.0.1873</strong> and Sonar-Clojure Plugin (<a href="https://github.com/fsantiag/sonar-clojure" rel="nofollow noreferrer">https://github.com/fsantiag/sonar-clojure</a>)</p>
<p>I am trying to Analyse Clojure Codes... | 3 | 1,517 |
Custom Facebook chat flugin | <p>t am having performance issues the site loads, it's the facebook chat I integrated into taking a lot of time to start. I have a reference to the article:</p>
<p><a href="https://stackoverflow.com/questions/53500211/facebook-chat-plugin-kills-pagespeed-to-33">Facebook chat plugin "kills" Pagespeed to 33</a>... | 3 | 2,019 |
Loop through Item Template and save changes to database | <p>Hoping someone can help. </p>
<p>We have a webpage we are pulling data from a database into bootstrap items and a drop down. The front end user is able to change the value in the dropdown. </p>
<p>However in the c# we are unsure how to take the changed drop down values, iterate through the item template and update... | 3 | 1,190 |
Implementing Action In Notification In Android | <p>I have small app which downloads question papers from a server using Service. I need to implement a "Cancel All" action directly in notification there. Usually, it's pretty simple. I just need to stop a service which I can do. But I don't know how to implement code to stop service in notification. I guess I have to ... | 3 | 1,379 |
.btn-group hamburger menu issues and confusion | <p>I'm creating a responsive website, and I'm relatively new to bootstrap. I'm trying to create a responsive navigation that turns into a hamburger menu at less than 1340px. I'm using a split button setup right now, see <a href="https://jsfiddle.net/ethacker/u38scspb/" rel="nofollow noreferrer">https://jsfiddle.net/eth... | 3 | 5,639 |
Ruby while loop not stopping when condition is met | <p>I starting to learn Ruby, and i'm stuck with this program i'm writing which is suppose to be the game "Craps" small part of the game at least anyway, the code is looping at the 2nd while loop even when the random dice is meeting the loop's condition.</p>
<p>This is the loop that keeps looping </p>
<pre><code>while... | 3 | 1,564 |
Infer object's property type when access by key of specific type | <p>I have helper type for extract keys of specific type:</p>
<pre class="lang-js prettyprint-override"><code>/**
* From type S extract those keys that assignable to type T
*/
type KeysOfType<S, T> = {
[K in keyof S]: S[K] extends T ? K : never;
}[keyof S];
</code></pre>
<p><strong>Problem</strong></p>
<p>W... | 3 | 1,361 |
Unhandled exception when running Jekyll 4.0.0 using Bundler 1.17.2 | <p>I'm trying to set up automated deploys for Jekyll on my server, based on the <a href="https://jekyllrb.com/docs/deployment/automated/#git-post-receive-hook" rel="nofollow noreferrer">instructions here</a>. Whenever I run Jekyll commands on the server I get the following output:</p>
<pre><code>$ bundle install &... | 3 | 1,951 |
Occasional issue with asynchronous callback | <p>I have a process that runs asynchronously every morning to download a file from an FTP site. The process works fine most of the time, but occasionally it will not complete, so I have been trying to add logs to figure out what is happening. As far as I can tell, the callback just randomly won't execute. Here is the r... | 3 | 1,197 |
vis.js Graph3d Bar graph- Possible Bug? | <p>I am using the vis.js Graph3d library to plot 3D graphs with my data. Let's say the X-axis represent my nodes, Y-axis represent the last 5 hours and Z-axis represent the value. There can be hours when there are no readings for a node which I want to be represented as empty spaces. This works as expected if the first... | 3 | 1,565 |
Issue with first Firebase query item out of order until refresh | <p>I have a firebase database to pull 50 users with the highest integer value and to display them from highest to lowest. The issue will arise when I enter the leaderboard view for the first time. The order should show jlewallen18 at the top AND THEN appledev. But on first load appledev is at the top, until I back out ... | 3 | 1,379 |
Wordpress Network wp_get_attachment_url only gets first URL in a post loop | <p>I'm getting some really weird results trying to pull all the featured image URL's for a custom post type.</p>
<p>Only the first URL will be pulled all others show blank. I have checked the post ID and it does have a value. Also the thumbnail ID is pulling correctly. If I place that value into the function hardcoded... | 3 | 1,233 |
No matter where I put "score = 0" It ignores it and comes up with an error about local variable used before assignment | <p>On the python debugger the score is read first and I have tried globalising it to see if anything would work. Also I know the code is messy and there are better ways of doing it but I just want to solve this problem first. This is my first time using stack overflow so I don't know how to link the zip folders to the ... | 3 | 4,350 |
how to FetchData from this nested JsonObject? | <p>I am a learner and tryiyng to make website using frontend react.js and backend node.js.I have created Api using node.js and want to display the data in card.But I cann't fetch the nested jsondata.Like I want to fetch "popular-> imageUrl" or "allmenu ->imageUrl" using react map.</p>
<p>this ... | 3 | 2,270 |
Run a LaTeX file for PDF generation | <p>I found this code on the internet and I was deeply confused. Could you please help me out?</p>
<p>It seems like the file generated will be saved into a folder with name <code>cover_letters</code>, which should already be there. I ran the code, but I can't find the generated file at all even though no errors are giv... | 3 | 3,349 |
Numbers missing from stack and linkedlist JAVA? | <p>I am trying to implement code to convert decimal to binary with a certain precision, for that I use stack and linked list to add the non decimal and decimal parts calculated. I then use Stringbuilder to pop/poll element one by one to ge the final binary number. SOURCE : <a href="http://www.geeksforgeeks.org/convert-... | 3 | 1,204 |
display:table-cell not supported in Mozilla Firefox | <p>I have a following div </p>
<pre><code><div>Circle</div>
</code></pre>
<p>I applied styles to the circle using the nth-child, the circle and the text inside it are supposed to spin. In the beginning, when I created the circle, I used</p>
<pre><code>display:table-cell;
</code></pre>
<p>property to po... | 3 | 1,412 |
cuda compute wrong result in multiply counters | <p>i am writing a code in cuda to try learning some concepts , here is the problem : </p>
<p>in line <strong>@@@</strong> if i use <strong>(i*i)</strong> it works well and result of multiply is true . but when i'm putting <strong>(i*j)</strong> counter , instead of <strong>(i*i)</strong> it produce wrong results. i t... | 3 | 1,149 |
E/RecyclerView: No adapter attached; skipping layout. using ASYNC TASK | <p>i've had a problem, when i've tried to view this below fragment showing "skipping layout". Can any one help me out how to solve this problem please.
I'm getting this "No adapter attached; skipping layout." when i CLICK any imageview on ThirdFragment UI ayout, not when the images display in Thirdfragment UI layout.</... | 3 | 10,034 |
Error in showing alert dialog while clicking on a list view item | <p>Error in showing alert dialog while clicking on a list view item.</p>
<p>The code is given below.. this is a program done in android sqlite.The data retrieved is shown in the list view but the alert dialogue does not working properly for edit and delete.</p>
<p>please help me with the code......</p>
<pre class... | 3 | 1,574 |
I need a workaround for a safari/chrome bug that is becoming a thorn in my side | <p>So I have this neat little javascript function that I'm using to print text to the browser window in a cool command-prompty style. It takes a string and prints it one character at a time to the window at a set interval. Here it is: (I have cut out all the unnecessary parts so that this will work as a standalone exam... | 3 | 1,651 |
AWS Oracle with SSL java.sql.SQLRecoverableException: IO Error: Connection reset AWS | <p>I am trying to connect a simple java application to an AWS Oracle DB using the SSL connection with protocle=tcps
I have verified below
I have imported the rds-ca-2019.pem and rds-ca-2015.pem file to my trust store and the ssl handshake seems to be fine. I have used the below as outlined in AWS Doc</p>
<pre><code>im... | 3 | 1,555 |
GROUP BY function cancels DISTINCT | <p>I have an SQL query that joins several tables that produces duplicates on two of the rows. I use the <code>DISTINCT</code> keyword to eliminate duplicates:</p>
<pre><code>SELECT DISTINCT
o.day as day,
g.id AS id,
g.name AS name,
o.num AS num,
o.version as version
... | 3 | 1,303 |
Creating Xamarin.Forms .Net Standard app with Azure IOT Library? | <p>I'm making an iOS/Android app that will work with Azure IoT Hub. The latest Microsoft.Azure.Devices version from what I understand is only compatible with .Net Standard projects. I've been trying to follow these twho tutorials (<a href="https://xamarinhelp.com/upgrade-pcl-net-standard-class-library/" rel="nofollow n... | 3 | 1,138 |
Primefaces Push - TimeoutException | <p>I'm using the primefaces push framework in my application. It usually works fine and the sockets are sending the data without a problem. However sometimes it looks like my request is not being processed and after about 30 seconds the following exception is written to my log file.</p>
<pre><code>2016-02-15T15:50:26.... | 3 | 11,154 |
validation not appearing | <p>I have 2 problems. First problem is that it comes up with a notice stating roomChosen is undefined, this is a php error, and second of all, it doesn;t show a javascript error if room number in textbox does not match with a room number in database.</p>
<p>Please look at the application here: <a href="http://helios.h... | 3 | 1,179 |
Passing claims from Domain Controller (in Kerberos tickets) to Active Directory Federation Server | <p>I'm hoping someone can help me out as this has been puzzling me for quite some time now. I have a domain controller set up with kerberos armoring enabled to include claims in the issued kerberos tickets. I then have Dynamic Access Control configured to define some claim types to include in the kerberos tickets. The ... | 3 | 1,084 |
Project Euler #23 | <p>I'm currently trying to solve the project euler problem number 23 :</p>
<blockquote>
<p>A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means that 28 is a perfect number.</p... | 3 | 1,711 |
Pass date year month slug in html template ajax post request | <p>I have a blogost, comment and like model. The like model has a genericforeignkey field so I can link likes to blogposts and comments. </p>
<p>The view is working correctly however I am having trouble passing the parameters in the ajax request</p>
<p><strong>urls.py</strong></p>
<pre><code>urlpatterns =[
url(r'... | 3 | 2,311 |
How to make the modal scrollbar replacing the body scrollbar temporary without moving its contents to the right? | <p>I created a Modal. Everything went well. When there are lot of contents, a vertical scrollbar will show up.</p>
<p>The problem is if the body page and the modal have both a lot of contents there will be two vertical scrollbars.</p>
<p>Here an example:</p>
<p><div class="snippet" data-lang="js" data-hide="false" d... | 3 | 1,954 |
Spark SQL Group by and evaluate duplicates rows | <p>I'm begginner working with Spark SQL in Java API.
I have a dataset with duplicate clients grouped by ENTITY and DOCUMENT_I like this:</p>
<pre><code>.withColumn( "ROWNUMBER", row_number().over(Window.partitionBy("ENTITY", "ENTITY_DOC").orderBy("ID")))
</code></pre>
<pre><code>... | 3 | 2,505 |
Sphinx docs builds fail on readthedocs for private GitHub repository | <p>I have set up and built Sphinx docs (<code>2.1.2</code>) for a Python 3.6 project which is currently in a private GitHub repository. I want to host the docs on readthedocs.org after releasing the project publicly, but at the moment the readthedocs builds are always failing with this error message</p>
<pre><code> gi... | 3 | 1,275 |
can't enable probe / sensor | <p>I am using the <a href="http://code.google.com/p/funf-open-sensing-framework/" rel="nofollow">funf</a> framework in order to get access to the SMS's on the users' phone. </p>
<p>The framework consists of several packages. The provided probes all extend the abstract class Probe. </p>
<p>In order to utilize the fram... | 3 | 1,463 |
different custom contentmenu in different nodes in d3 | <p>On right clicking the node title is not returning the return value but the complete function as a title. I want only to show the what i pass in return. I am not able to understand how to solve this. Can any1 help me on this. The answer was not working as the function with parameter d was not referring to node. It gi... | 3 | 2,284 |
Echo Multiple PHP MySQL calls doesn't show in HTML | <p>I'm trying to echo a count result from my MySQL db in PHP, so it looks like</p>
<h3>NUMBER OF STUDENTS</h3>
<h3>[# count from db]</h3>
<p>but nothing is coming up on my HTML page. I ran this store procedure in my db and I'm getting 923 so I know it's not supposed to be empty. However, when I run this on the HTML pag... | 3 | 2,058 |
How do I get my car to both rotate and move? | <p>I would like my car to be able to move around the canvas, meaning when it rotates and I press the up arrow key, it moves towards the direction that the car is facing and vice versa for the down arrow key for reversing. I have absolutely no idea where to start for this so please can someone help me.</p>
<p>This is th... | 3 | 1,067 |
Calculating min, max, mean, and standard deviation of a large array doesn't return any output | <p>I am struggling to calculate the mean, standard deviation, and find the min and max values of a large array in Fortran. There are no errors in my code below, but I am not receiving any values in my output file. Therefore, I believe my code to calculate the mean, standard deviation, and obtain the min and max values ... | 3 | 1,906 |
Circumvent id selectors in a checkbox hack | <p>I've posted about this project before. Twice, actually. And while the answers have helped me to better understand my situation, they haven't really been applicable to my situation. I blame myself because I was posting a skeletal version of the final code which didn't fully illustrate what I needed to accomplish. ... | 3 | 6,415 |
Netbeans "Unable to launch the application" on Webstart | <p>I've tried copying my project to a new location, messing with project properties, copying the file location and pasting it in the jnlp and nothing works. I'm losing my mind here.</p>
<p>Exception tab:</p>
<pre><code>java.lang.NumberFormatException: For input string: "\Users\ak058214\OneDrive"
at java.lang.Numb... | 3 | 1,027 |
chartjs chart spilling out of container | <p>I have a chartjs chart, after I changed x axis's date format, the chart is spilling out of its container. It seems to be affected by that but I need for the format to stay dd-mm-yyyy. Can anyone think of why its doing that? I've tried changing the maintain aspect ratio/ responsive booleans around, i've tried changin... | 3 | 1,495 |
androidstudio - Could not find out the created layout.xml form the fragment | <p>I created a Fragment using <strong>Android Studio 3.6.2</strong>. While creating the fragment, I ticked the option to create the corresponding layout .xml also and layout .xml created. But when I try to access it by <strong>R.layout.fragment_blank</strong> in <strong>onCreateView()</strong>, it’s not able to find ... | 3 | 1,058 |
php $_POST is empty $HTTP_POST_VARS works | <p>I have made a page that uses 3 forms. 2 of the forms i can catch the post information using the $_POST var. One of my forms however returns an empty $_POST var. I can catch it using the old $_HTTP_POST_VARS</p>
<p>I have matched my form with the other forms and can find no differences.
My php version is 5.2.17
neit... | 3 | 1,266 |
Core Data issue. Data won't save | <p>So I have a utility app and I am trying to save some text into a "To" and "Message: text field on the Flipside View Controller. However, my data won't save. I am new to objective C and I have been using multiple different tutorials to the point where I have totally confused myself. Hopefully you can help me out. Not... | 3 | 1,898 |
reactjs. Error: Node Sass version 7.0.1 is incompatible with ^4.0.0 | <p>i am trying to use sass in my code but when i import the .scss file i got an error saying:</p>
<blockquote>
<p>you need to install node-sass</p>
</blockquote>
<p>then i install node-sass and get this error:</p>
<blockquote>
<p>Error: Node Sass version 7.0.1 is incompatible with ^4.0.0.</p>
</blockquote>
<p>after som... | 3 | 2,848 |
Hide button based on value of custom attribute in select option when chnaged | <p>I have a dropdown selector, and a button I need to hide or show depending on the value of a custom attribute in the select options.</p>
<p>HTML</p>
<pre><code><div id="container-3">
<div id="inside-container">
<select id="pa_size" class="" name="attribute_p... | 3 | 1,222 |
A Django Issue when testing my website with a dropdown | <p>I am following the tutorial at <a href="https://i.stack.imgur.com/pdVHA.png" rel="nofollow noreferrer">Django Tutorials</a>. The goal is to get a dropdown list to display a logout when I click on it. [![enter image description here][2]][2]</p>
<p>Here is my settings.py where the static files are held:</p>
<pre><co... | 3 | 1,391 |
Undefined variable: dataProvider in yii2 kartik grid | <p>I'm trying to learn about <strong>kartik grid view</strong> and I'm having trouble with dataProvider.</p>
<p><strong>Controller Code</strong></p>
<p>this is the full controller code (not all though, i just show the code until code containing the dataProvider that i asked why it's undefined)</p>
<pre><code>class S... | 3 | 1,326 |
When changing the background of app from java when a menu is clicked it doesn't take the right color | <p>I am trying to change the color of the background app when I click a menu for example change background black.
The color it is changing for the first time into transparent so like grey and than stays blue.</p>
<p>I want if the color is red to take red and other colors.
This is my code.</p>
<pre><code> mPopupMenu =... | 3 | 1,053 |
Keyboard hook storing keys | <p>I have implemented a keyboard hook as presented in <a href="https://stackoverflow.com/questions/11377977/global-hotkeys-in-wpf-working-from-every-window/11378213#11378213">this</a> answer. Everything works fine except for one case. If I want to hold a key pressed for some time, thus technically remaning in the metho... | 3 | 2,944 |
Using Scanner to read from text file | <p>I am writing a program that takes a year as user input and returns the super bowl winner for that year (using a text file of a list of super bowl winners). It compiles correctly but when I try to execute the program I get the error:</p>
<p>Exception in thread "main" java.util.NoSuchElementException: No line found
... | 3 | 1,070 |
Rails 4 Devise Call Back on Registration | <p>I have two models</p>
<blockquote>
<p>User(id, name, is_host,....)</p>
<p>Host(id, name, user_id,...)</p>
</blockquote>
<p>With the Association</p>
<blockquote>
<p>User hasOne Host</p>
</blockquote>
<p>I am using Devise for the User Registration. When a user wants to register as a Host i want to set <code>is_host = ... | 3 | 1,042 |
phonegap run android fails with "...\classes.dex does not exist" | <p>Just installed phonegap on windows 7 64bit and have run : </p>
<pre><code>phonegap create testpg
cd testpg
phonegap -V run andoid
</code></pre>
<p>The last command aborts with the following error message: </p>
<pre><code>[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[... | 3 | 1,065 |
Make an image in a table cell into a link | <p>I have created an e-commerce website and am using a label to display the products from my sql database, the image it shows of these products are not hyperlinks, but this is what I need them to be, I think I have written the right code but I have a "parentControl" error, could someone help plz?</p>
<p>Below is also ... | 3 | 1,131 |
Django how to show many2many extra fields in a form? | <p>here are my models.py:</p>
<pre class="lang-py prettyprint-override"><code>
class EssentialOil(models.Model):
name = models.fields.CharField(max_length=120, verbose_name="Nom")
latin_name = models.fields.CharField(max_length=120, verbose_name="Nom latin")
abbreviation = models.fie... | 3 | 2,762 |
Image blurred when container attached to mouse location | <p>Im trying create magnify view but have some problems that can't understand.
I have <code>NSWindow</code> that contains <code>NSImageView</code>. When I set static origin point position to window, and moving only cursor (mouse), all captured fine. But when I set origin point to window from mouse location, image is hu... | 3 | 1,410 |
Sending email with recordset data | <p>I've got a classic ASP page listing some properties from a database and with each property there is a small contact form - to enable a user to 'request a callback' from the property agent associated with that property.</p>
<p>However, whichever form I complete - the email to the agent always includes details of the... | 3 | 2,939 |
AttributeError: type object 'pandana.cyaccess.cyaccess' has no attribute '__reduce_cython__' | <p>I've installed pandana from git:</p>
<p><code>!{sys.executable} -m pip install git+git://github.com/udst/pandana.git</code> </p>
<p>on my jupyterlab: </p>
<p><code>/home/jupyterlab/conda/envs/python/lib/python3.6/site-packages (from fiona->geopandas>=0.2.1->osmnet>=0.1.2->pandana) (7.0)</code></p>
... | 3 | 1,225 |
cant import win32print on odoo 8 Windows | <p>I am trying to use the win32print operations on pos models and am getting error while running. which shows unable to import win32print. does I need to do anything extra configurations to import third party packages?</p>
<p>What I have tried:
here i tried to print the file, but its simply will work if the win32print... | 3 | 1,471 |
Google NPM modules fails on AWS Elastic Beanstalk | <p>When I tried to install google related npm modules in AWS Elastic Beanstalk, it fails and the environment gets degraded. Other packages like express or socket io works perfectly fine. Any idea on how to install google npm modules on AWS? I tried to write the module in package.json file with the version and zip it al... | 3 | 1,206 |
JAVA - String index out of range, I can't figure out why | <p>So I'm making a program that decodes a coded message, it compiles but when I run it I get a java.lang.StringIndexOutOfBoundsException: String index out of range: 1 error and I can't figure out where this is coming from.</p>
<p>Here's the code:</p>
<pre><code> import java.util.Scanner;
public class ReverseCodeP... | 3 | 2,251 |
What is the best way to control a variable with radio buttons? | <p>I'm very new to Android programming, and I'm unable to find out what the accepted way to reach my goal is:</p>
<p>I have a variable in my main activity (<code>sortOrder</code>), which I want to set using radio buttons in a different activity. At the moment, I just change MainActivity.sortOrder from the other activi... | 3 | 1,206 |
Merging Flow with one shot data | <p>I have a <code>Flow</code> that fetches items from database (this is easy using Room), and then I have another data source which is an API. I can call this API (they don't implement Flows because it is an old Java API) which will give me other set of items (same type as the database ones).</p>
<p>My Room database re... | 3 | 1,758 |
Formatting checkboxes with Bootstrap in Rails form erb? | <p>I'm using multiple check boxes in my Rails views form. I'm using Bootstrap 4 for styling. If there is a Bootstrap style for checkboxes like: </p>
<pre><code><div class="input-group mb-3">
<div class="input-group-prepend">
<div class="input-group-text">
<input type="checkbox" aria-la... | 3 | 1,631 |
Transpose CSV Row to Column based on Column Value | <p>I am trying to convert a 80K row data csv with 30 columns to sorted and filtered CSV based on specific column data from orignal CSV.</p>
<p>For Example My Data is in below format:</p>
<pre><code>PatchName MachineName IPAddress DefaultIPGateway Domain Name USERID UNKNOWN NOTAPPLICABLE INSTALLE... | 3 | 1,056 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.